1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Model struct for SquareAccountDetails type.

use serde::{Deserialize, Serialize};
use crate::models::errors::Error;

use super::enums::Product;

/// Details about a Square Account payment. The details are only populated if the source_type is SQUARE_ACCOUNT.
#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)]
pub struct SquareAccountDetails {
    /// Unique identifier for the payment source used for this payment.
    /// Max length 255
    pub payment_source_token: Option<String>,
    /// Information about errors encountered during the request.
    pub errors: Option<Vec<Error>>,
}