1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
use serde::{Serialize, Deserialize};
///
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
pub struct AccountCapabilities {
///The status of the Canadian pre-authorized debits payments capability of the account, or whether the account can directly process Canadian pre-authorized debits charges.
#[serde(skip_serializing_if = "Option::is_none")]
pub acss_debit_payments: Option<String>,
///The status of the Affirm capability of the account, or whether the account can directly process Affirm charges.
#[serde(skip_serializing_if = "Option::is_none")]
pub affirm_payments: Option<String>,
///The status of the Afterpay Clearpay capability of the account, or whether the account can directly process Afterpay Clearpay charges.
#[serde(skip_serializing_if = "Option::is_none")]
pub afterpay_clearpay_payments: Option<String>,
///The status of the BECS Direct Debit (AU) payments capability of the account, or whether the account can directly process BECS Direct Debit (AU) charges.
#[serde(skip_serializing_if = "Option::is_none")]
pub au_becs_debit_payments: Option<String>,
///The status of the Bacs Direct Debits payments capability of the account, or whether the account can directly process Bacs Direct Debits charges.
#[serde(skip_serializing_if = "Option::is_none")]
pub bacs_debit_payments: Option<String>,
///The status of the Bancontact payments capability of the account, or whether the account can directly process Bancontact charges.
#[serde(skip_serializing_if = "Option::is_none")]
pub bancontact_payments: Option<String>,
///The status of the customer_balance payments capability of the account, or whether the account can directly process customer_balance charges.
#[serde(skip_serializing_if = "Option::is_none")]
pub bank_transfer_payments: Option<String>,
///The status of the blik payments capability of the account, or whether the account can directly process blik charges.
#[serde(skip_serializing_if = "Option::is_none")]
pub blik_payments: Option<String>,
///The status of the boleto payments capability of the account, or whether the account can directly process boleto charges.
#[serde(skip_serializing_if = "Option::is_none")]
pub boleto_payments: Option<String>,
///The status of the card issuing capability of the account, or whether you can use Issuing to distribute funds on cards
#[serde(skip_serializing_if = "Option::is_none")]
pub card_issuing: Option<String>,
///The status of the card payments capability of the account, or whether the account can directly process credit and debit card charges.
#[serde(skip_serializing_if = "Option::is_none")]
pub card_payments: Option<String>,
///The status of the Cartes Bancaires payments capability of the account, or whether the account can directly process Cartes Bancaires card charges in EUR currency.
#[serde(skip_serializing_if = "Option::is_none")]
pub cartes_bancaires_payments: Option<String>,
///The status of the Cash App Pay capability of the account, or whether the account can directly process Cash App Pay payments.
#[serde(skip_serializing_if = "Option::is_none")]
pub cashapp_payments: Option<String>,
///The status of the EPS payments capability of the account, or whether the account can directly process EPS charges.
#[serde(skip_serializing_if = "Option::is_none")]
pub eps_payments: Option<String>,
///The status of the FPX payments capability of the account, or whether the account can directly process FPX charges.
#[serde(skip_serializing_if = "Option::is_none")]
pub fpx_payments: Option<String>,
///The status of the giropay payments capability of the account, or whether the account can directly process giropay charges.
#[serde(skip_serializing_if = "Option::is_none")]
pub giropay_payments: Option<String>,
///The status of the GrabPay payments capability of the account, or whether the account can directly process GrabPay charges.
#[serde(skip_serializing_if = "Option::is_none")]
pub grabpay_payments: Option<String>,
///The status of the iDEAL payments capability of the account, or whether the account can directly process iDEAL charges.
#[serde(skip_serializing_if = "Option::is_none")]
pub ideal_payments: Option<String>,
///The status of the india_international_payments capability of the account, or whether the account can process international charges (non INR) in India.
#[serde(skip_serializing_if = "Option::is_none")]
pub india_international_payments: Option<String>,
///The status of the JCB payments capability of the account, or whether the account (Japan only) can directly process JCB credit card charges in JPY currency.
#[serde(skip_serializing_if = "Option::is_none")]
pub jcb_payments: Option<String>,
///The status of the Klarna payments capability of the account, or whether the account can directly process Klarna charges.
#[serde(skip_serializing_if = "Option::is_none")]
pub klarna_payments: Option<String>,
///The status of the konbini payments capability of the account, or whether the account can directly process konbini charges.
#[serde(skip_serializing_if = "Option::is_none")]
pub konbini_payments: Option<String>,
///The status of the legacy payments capability of the account.
#[serde(skip_serializing_if = "Option::is_none")]
pub legacy_payments: Option<String>,
///The status of the link_payments capability of the account, or whether the account can directly process Link charges.
#[serde(skip_serializing_if = "Option::is_none")]
pub link_payments: Option<String>,
///The status of the OXXO payments capability of the account, or whether the account can directly process OXXO charges.
#[serde(skip_serializing_if = "Option::is_none")]
pub oxxo_payments: Option<String>,
///The status of the P24 payments capability of the account, or whether the account can directly process P24 charges.
#[serde(skip_serializing_if = "Option::is_none")]
pub p24_payments: Option<String>,
///The status of the paynow payments capability of the account, or whether the account can directly process paynow charges.
#[serde(skip_serializing_if = "Option::is_none")]
pub paynow_payments: Option<String>,
///The status of the promptpay payments capability of the account, or whether the account can directly process promptpay charges.
#[serde(skip_serializing_if = "Option::is_none")]
pub promptpay_payments: Option<String>,
///The status of the RevolutPay capability of the account, or whether the account can directly process RevolutPay payments.
#[serde(skip_serializing_if = "Option::is_none")]
pub revolut_pay_payments: Option<String>,
///The status of the SEPA Direct Debits payments capability of the account, or whether the account can directly process SEPA Direct Debits charges.
#[serde(skip_serializing_if = "Option::is_none")]
pub sepa_debit_payments: Option<String>,
///The status of the Sofort payments capability of the account, or whether the account can directly process Sofort charges.
#[serde(skip_serializing_if = "Option::is_none")]
pub sofort_payments: Option<String>,
///The status of the tax reporting 1099-K (US) capability of the account.
#[serde(rename = "tax_reporting_us_1099_k")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tax_reporting_us1099_k: Option<String>,
///The status of the tax reporting 1099-MISC (US) capability of the account.
#[serde(rename = "tax_reporting_us_1099_misc")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tax_reporting_us1099_misc: Option<String>,
///The status of the transfers capability of the account, or whether your platform can transfer funds to the account.
#[serde(skip_serializing_if = "Option::is_none")]
pub transfers: Option<String>,
///The status of the banking capability, or whether the account can have bank accounts.
#[serde(skip_serializing_if = "Option::is_none")]
pub treasury: Option<String>,
///The status of the US bank account ACH payments capability of the account, or whether the account can directly process US bank account charges.
#[serde(skip_serializing_if = "Option::is_none")]
pub us_bank_account_ach_payments: Option<String>,
///The status of the Zip capability of the account, or whether the account can directly process Zip charges.
#[serde(skip_serializing_if = "Option::is_none")]
pub zip_payments: Option<String>,
}
impl std::fmt::Display for AccountCapabilities {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
write!(f, "{}", serde_json::to_string(self).unwrap())
}
}