squareup/models/
square_account_details.rs

1//! Model struct for SquareAccountDetails type.
2
3use crate::models::errors::Error;
4use serde::{Deserialize, Serialize};
5
6/// Details about a Square Account payment. The details are only populated if the source_type is SquareAccount.
7#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)]
8pub struct SquareAccountDetails {
9    /// Unique identifier for the payment source used for this payment.
10    /// Max length 255
11    pub payment_source_token: Option<String>,
12    /// Information about errors encountered during the request.
13    pub errors: Option<Vec<Error>>,
14}