squareup 2.13.0

Rust SDK for the Square Developer API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Model struct for CashAppDetails type.

use crate::models::enums::Country;
use serde::{Deserialize, Serialize};

/// Brand-specific details for payments with the brand of CASH_APP.
#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)]
pub struct CashAppDetails {
    /// The name of the Cash App account holder.
    pub buyer_full_name: Option<String>,
    /// The country of the Cash App account holder, in ISO 3166-1-alpha-2 format.
    /// Min Length 2, Max Length 2
    pub buyer_country_code: Option<Country>,
    /// **Read only** $Cashtag of the Cash App account holder.
    pub buyer_cashtag: Option<String>,
}