• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

stripe / stripe-go / 11295426688

11 Oct 2024 03:52PM UTC coverage: 62.991% (-0.02%) from 63.015%
11295426688

Pull #1934

github

stripe-openapi[bot]
Merge upstream and update generated code for v1290
Pull Request #1934: Update generated code for beta

0 of 8 new or added lines in 2 files covered. (0.0%)

472 existing lines in 21 files now uncovered.

6209 of 9857 relevant lines covered (62.99%)

15.67 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/confirmationtoken.go
1
//
2
//
3
// File generated from our OpenAPI spec
4
//
5
//
6

7
package stripe
8

9
// This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to “unspecified”.
10
type ConfirmationTokenPaymentMethodPreviewAllowRedisplay string
11

12
// List of values that ConfirmationTokenPaymentMethodPreviewAllowRedisplay can take
13
const (
14
        ConfirmationTokenPaymentMethodPreviewAllowRedisplayAlways      ConfirmationTokenPaymentMethodPreviewAllowRedisplay = "always"
15
        ConfirmationTokenPaymentMethodPreviewAllowRedisplayLimited     ConfirmationTokenPaymentMethodPreviewAllowRedisplay = "limited"
16
        ConfirmationTokenPaymentMethodPreviewAllowRedisplayUnspecified ConfirmationTokenPaymentMethodPreviewAllowRedisplay = "unspecified"
17
)
18

19
// The method used to process this payment method offline. Only deferred is allowed.
20
type ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentOfflineType string
21

22
// List of values that ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentOfflineType can take
23
const (
24
        ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentOfflineTypeDeferred ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentOfflineType = "deferred"
25
)
26

27
// How card details were read in this transaction.
28
type ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentReadMethod string
29

30
// List of values that ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentReadMethod can take
31
const (
32
        ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentReadMethodContactEmv               ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentReadMethod = "contact_emv"
33
        ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentReadMethodContactlessEmv           ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentReadMethod = "contactless_emv"
34
        ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentReadMethodContactlessMagstripeMode ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentReadMethod = "contactless_magstripe_mode"
35
        ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentReadMethodMagneticStripeFallback   ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentReadMethod = "magnetic_stripe_fallback"
36
        ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentReadMethodMagneticStripeTrack2     ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentReadMethod = "magnetic_stripe_track2"
37
)
38

39
// The type of account being debited or credited
40
type ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentReceiptAccountType string
41

42
// List of values that ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentReceiptAccountType can take
43
const (
44
        ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentReceiptAccountTypeChecking ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentReceiptAccountType = "checking"
45
        ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentReceiptAccountTypeCredit   ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentReceiptAccountType = "credit"
46
        ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentReceiptAccountTypePrepaid  ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentReceiptAccountType = "prepaid"
47
        ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentReceiptAccountTypeUnknown  ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentReceiptAccountType = "unknown"
48
)
49

50
// The type of mobile wallet, one of `apple_pay`, `google_pay`, `samsung_pay`, or `unknown`.
51
type ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentWalletType string
52

53
// List of values that ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentWalletType can take
54
const (
55
        ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentWalletTypeApplePay   ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentWalletType = "apple_pay"
56
        ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentWalletTypeGooglePay  ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentWalletType = "google_pay"
57
        ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentWalletTypeSamsungPay ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentWalletType = "samsung_pay"
58
        ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentWalletTypeUnknown    ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentWalletType = "unknown"
59
)
60

61
// The type of the card wallet, one of `amex_express_checkout`, `apple_pay`, `google_pay`, `masterpass`, `samsung_pay`, `visa_checkout`, or `link`. An additional hash is included on the Wallet subhash with a name matching this value. It contains additional information specific to the card wallet type.
62
type ConfirmationTokenPaymentMethodPreviewCardWalletType string
63

64
// List of values that ConfirmationTokenPaymentMethodPreviewCardWalletType can take
65
const (
66
        ConfirmationTokenPaymentMethodPreviewCardWalletTypeAmexExpressCheckout ConfirmationTokenPaymentMethodPreviewCardWalletType = "amex_express_checkout"
67
        ConfirmationTokenPaymentMethodPreviewCardWalletTypeApplePay            ConfirmationTokenPaymentMethodPreviewCardWalletType = "apple_pay"
68
        ConfirmationTokenPaymentMethodPreviewCardWalletTypeGooglePay           ConfirmationTokenPaymentMethodPreviewCardWalletType = "google_pay"
69
        ConfirmationTokenPaymentMethodPreviewCardWalletTypeLink                ConfirmationTokenPaymentMethodPreviewCardWalletType = "link"
70
        ConfirmationTokenPaymentMethodPreviewCardWalletTypeMasterpass          ConfirmationTokenPaymentMethodPreviewCardWalletType = "masterpass"
71
        ConfirmationTokenPaymentMethodPreviewCardWalletTypeSamsungPay          ConfirmationTokenPaymentMethodPreviewCardWalletType = "samsung_pay"
72
        ConfirmationTokenPaymentMethodPreviewCardWalletTypeVisaCheckout        ConfirmationTokenPaymentMethodPreviewCardWalletType = "visa_checkout"
73
)
74

75
// The method used to process this payment method offline. Only deferred is allowed.
76
type ConfirmationTokenPaymentMethodPreviewCardPresentOfflineType string
77

78
// List of values that ConfirmationTokenPaymentMethodPreviewCardPresentOfflineType can take
79
const (
80
        ConfirmationTokenPaymentMethodPreviewCardPresentOfflineTypeDeferred ConfirmationTokenPaymentMethodPreviewCardPresentOfflineType = "deferred"
81
)
82

83
// How card details were read in this transaction.
84
type ConfirmationTokenPaymentMethodPreviewCardPresentReadMethod string
85

86
// List of values that ConfirmationTokenPaymentMethodPreviewCardPresentReadMethod can take
87
const (
88
        ConfirmationTokenPaymentMethodPreviewCardPresentReadMethodContactEmv               ConfirmationTokenPaymentMethodPreviewCardPresentReadMethod = "contact_emv"
89
        ConfirmationTokenPaymentMethodPreviewCardPresentReadMethodContactlessEmv           ConfirmationTokenPaymentMethodPreviewCardPresentReadMethod = "contactless_emv"
90
        ConfirmationTokenPaymentMethodPreviewCardPresentReadMethodContactlessMagstripeMode ConfirmationTokenPaymentMethodPreviewCardPresentReadMethod = "contactless_magstripe_mode"
91
        ConfirmationTokenPaymentMethodPreviewCardPresentReadMethodMagneticStripeFallback   ConfirmationTokenPaymentMethodPreviewCardPresentReadMethod = "magnetic_stripe_fallback"
92
        ConfirmationTokenPaymentMethodPreviewCardPresentReadMethodMagneticStripeTrack2     ConfirmationTokenPaymentMethodPreviewCardPresentReadMethod = "magnetic_stripe_track2"
93
)
94

95
// The type of mobile wallet, one of `apple_pay`, `google_pay`, `samsung_pay`, or `unknown`.
96
type ConfirmationTokenPaymentMethodPreviewCardPresentWalletType string
97

98
// List of values that ConfirmationTokenPaymentMethodPreviewCardPresentWalletType can take
99
const (
100
        ConfirmationTokenPaymentMethodPreviewCardPresentWalletTypeApplePay   ConfirmationTokenPaymentMethodPreviewCardPresentWalletType = "apple_pay"
101
        ConfirmationTokenPaymentMethodPreviewCardPresentWalletTypeGooglePay  ConfirmationTokenPaymentMethodPreviewCardPresentWalletType = "google_pay"
102
        ConfirmationTokenPaymentMethodPreviewCardPresentWalletTypeSamsungPay ConfirmationTokenPaymentMethodPreviewCardPresentWalletType = "samsung_pay"
103
        ConfirmationTokenPaymentMethodPreviewCardPresentWalletTypeUnknown    ConfirmationTokenPaymentMethodPreviewCardPresentWalletType = "unknown"
104
)
105

106
// The customer's bank. Should be one of `arzte_und_apotheker_bank`, `austrian_anadi_bank_ag`, `bank_austria`, `bankhaus_carl_spangler`, `bankhaus_schelhammer_und_schattera_ag`, `bawag_psk_ag`, `bks_bank_ag`, `brull_kallmus_bank_ag`, `btv_vier_lander_bank`, `capital_bank_grawe_gruppe_ag`, `deutsche_bank_ag`, `dolomitenbank`, `easybank_ag`, `erste_bank_und_sparkassen`, `hypo_alpeadriabank_international_ag`, `hypo_noe_lb_fur_niederosterreich_u_wien`, `hypo_oberosterreich_salzburg_steiermark`, `hypo_tirol_bank_ag`, `hypo_vorarlberg_bank_ag`, `hypo_bank_burgenland_aktiengesellschaft`, `marchfelder_bank`, `oberbank_ag`, `raiffeisen_bankengruppe_osterreich`, `schoellerbank_ag`, `sparda_bank_wien`, `volksbank_gruppe`, `volkskreditbank_ag`, or `vr_bank_braunau`.
107
type ConfirmationTokenPaymentMethodPreviewEPSBank string
108

109
// List of values that ConfirmationTokenPaymentMethodPreviewEPSBank can take
110
const (
111
        ConfirmationTokenPaymentMethodPreviewEPSBankArzteUndApothekerBank                ConfirmationTokenPaymentMethodPreviewEPSBank = "arzte_und_apotheker_bank"
112
        ConfirmationTokenPaymentMethodPreviewEPSBankAustrianAnadiBankAg                  ConfirmationTokenPaymentMethodPreviewEPSBank = "austrian_anadi_bank_ag"
113
        ConfirmationTokenPaymentMethodPreviewEPSBankBankAustria                          ConfirmationTokenPaymentMethodPreviewEPSBank = "bank_austria"
114
        ConfirmationTokenPaymentMethodPreviewEPSBankBankhausCarlSpangler                 ConfirmationTokenPaymentMethodPreviewEPSBank = "bankhaus_carl_spangler"
115
        ConfirmationTokenPaymentMethodPreviewEPSBankBankhausSchelhammerUndSchatteraAg    ConfirmationTokenPaymentMethodPreviewEPSBank = "bankhaus_schelhammer_und_schattera_ag"
116
        ConfirmationTokenPaymentMethodPreviewEPSBankBawagPskAg                           ConfirmationTokenPaymentMethodPreviewEPSBank = "bawag_psk_ag"
117
        ConfirmationTokenPaymentMethodPreviewEPSBankBksBankAg                            ConfirmationTokenPaymentMethodPreviewEPSBank = "bks_bank_ag"
118
        ConfirmationTokenPaymentMethodPreviewEPSBankBrullKallmusBankAg                   ConfirmationTokenPaymentMethodPreviewEPSBank = "brull_kallmus_bank_ag"
119
        ConfirmationTokenPaymentMethodPreviewEPSBankBtvVierLanderBank                    ConfirmationTokenPaymentMethodPreviewEPSBank = "btv_vier_lander_bank"
120
        ConfirmationTokenPaymentMethodPreviewEPSBankCapitalBankGraweGruppeAg             ConfirmationTokenPaymentMethodPreviewEPSBank = "capital_bank_grawe_gruppe_ag"
121
        ConfirmationTokenPaymentMethodPreviewEPSBankDeutscheBankAg                       ConfirmationTokenPaymentMethodPreviewEPSBank = "deutsche_bank_ag"
122
        ConfirmationTokenPaymentMethodPreviewEPSBankDolomitenbank                        ConfirmationTokenPaymentMethodPreviewEPSBank = "dolomitenbank"
123
        ConfirmationTokenPaymentMethodPreviewEPSBankEasybankAg                           ConfirmationTokenPaymentMethodPreviewEPSBank = "easybank_ag"
124
        ConfirmationTokenPaymentMethodPreviewEPSBankErsteBankUndSparkassen               ConfirmationTokenPaymentMethodPreviewEPSBank = "erste_bank_und_sparkassen"
125
        ConfirmationTokenPaymentMethodPreviewEPSBankHypoAlpeadriabankInternationalAg     ConfirmationTokenPaymentMethodPreviewEPSBank = "hypo_alpeadriabank_international_ag"
126
        ConfirmationTokenPaymentMethodPreviewEPSBankHypoBankBurgenlandAktiengesellschaft ConfirmationTokenPaymentMethodPreviewEPSBank = "hypo_bank_burgenland_aktiengesellschaft"
127
        ConfirmationTokenPaymentMethodPreviewEPSBankHypoNoeLbFurNiederosterreichUWien    ConfirmationTokenPaymentMethodPreviewEPSBank = "hypo_noe_lb_fur_niederosterreich_u_wien"
128
        ConfirmationTokenPaymentMethodPreviewEPSBankHypoOberosterreichSalzburgSteiermark ConfirmationTokenPaymentMethodPreviewEPSBank = "hypo_oberosterreich_salzburg_steiermark"
129
        ConfirmationTokenPaymentMethodPreviewEPSBankHypoTirolBankAg                      ConfirmationTokenPaymentMethodPreviewEPSBank = "hypo_tirol_bank_ag"
130
        ConfirmationTokenPaymentMethodPreviewEPSBankHypoVorarlbergBankAg                 ConfirmationTokenPaymentMethodPreviewEPSBank = "hypo_vorarlberg_bank_ag"
131
        ConfirmationTokenPaymentMethodPreviewEPSBankMarchfelderBank                      ConfirmationTokenPaymentMethodPreviewEPSBank = "marchfelder_bank"
132
        ConfirmationTokenPaymentMethodPreviewEPSBankOberbankAg                           ConfirmationTokenPaymentMethodPreviewEPSBank = "oberbank_ag"
133
        ConfirmationTokenPaymentMethodPreviewEPSBankRaiffeisenBankengruppeOsterreich     ConfirmationTokenPaymentMethodPreviewEPSBank = "raiffeisen_bankengruppe_osterreich"
134
        ConfirmationTokenPaymentMethodPreviewEPSBankSchoellerbankAg                      ConfirmationTokenPaymentMethodPreviewEPSBank = "schoellerbank_ag"
135
        ConfirmationTokenPaymentMethodPreviewEPSBankSpardaBankWien                       ConfirmationTokenPaymentMethodPreviewEPSBank = "sparda_bank_wien"
136
        ConfirmationTokenPaymentMethodPreviewEPSBankVolksbankGruppe                      ConfirmationTokenPaymentMethodPreviewEPSBank = "volksbank_gruppe"
137
        ConfirmationTokenPaymentMethodPreviewEPSBankVolkskreditbankAg                    ConfirmationTokenPaymentMethodPreviewEPSBank = "volkskreditbank_ag"
138
        ConfirmationTokenPaymentMethodPreviewEPSBankVrBankBraunau                        ConfirmationTokenPaymentMethodPreviewEPSBank = "vr_bank_braunau"
139
)
140

141
// Account holder type, if provided. Can be one of `individual` or `company`.
142
type ConfirmationTokenPaymentMethodPreviewFPXAccountHolderType string
143

144
// List of values that ConfirmationTokenPaymentMethodPreviewFPXAccountHolderType can take
145
const (
146
        ConfirmationTokenPaymentMethodPreviewFPXAccountHolderTypeCompany    ConfirmationTokenPaymentMethodPreviewFPXAccountHolderType = "company"
147
        ConfirmationTokenPaymentMethodPreviewFPXAccountHolderTypeIndividual ConfirmationTokenPaymentMethodPreviewFPXAccountHolderType = "individual"
148
)
149

150
// The customer's bank, if provided. Can be one of `affin_bank`, `agrobank`, `alliance_bank`, `ambank`, `bank_islam`, `bank_muamalat`, `bank_rakyat`, `bsn`, `cimb`, `hong_leong_bank`, `hsbc`, `kfh`, `maybank2u`, `ocbc`, `public_bank`, `rhb`, `standard_chartered`, `uob`, `deutsche_bank`, `maybank2e`, `pb_enterprise`, or `bank_of_china`.
151
type ConfirmationTokenPaymentMethodPreviewFPXBank string
152

153
// List of values that ConfirmationTokenPaymentMethodPreviewFPXBank can take
154
const (
155
        ConfirmationTokenPaymentMethodPreviewFPXBankAffinBank         ConfirmationTokenPaymentMethodPreviewFPXBank = "affin_bank"
156
        ConfirmationTokenPaymentMethodPreviewFPXBankAgrobank          ConfirmationTokenPaymentMethodPreviewFPXBank = "agrobank"
157
        ConfirmationTokenPaymentMethodPreviewFPXBankAllianceBank      ConfirmationTokenPaymentMethodPreviewFPXBank = "alliance_bank"
158
        ConfirmationTokenPaymentMethodPreviewFPXBankAmbank            ConfirmationTokenPaymentMethodPreviewFPXBank = "ambank"
159
        ConfirmationTokenPaymentMethodPreviewFPXBankBankIslam         ConfirmationTokenPaymentMethodPreviewFPXBank = "bank_islam"
160
        ConfirmationTokenPaymentMethodPreviewFPXBankBankMuamalat      ConfirmationTokenPaymentMethodPreviewFPXBank = "bank_muamalat"
161
        ConfirmationTokenPaymentMethodPreviewFPXBankBankOfChina       ConfirmationTokenPaymentMethodPreviewFPXBank = "bank_of_china"
162
        ConfirmationTokenPaymentMethodPreviewFPXBankBankRakyat        ConfirmationTokenPaymentMethodPreviewFPXBank = "bank_rakyat"
163
        ConfirmationTokenPaymentMethodPreviewFPXBankBsn               ConfirmationTokenPaymentMethodPreviewFPXBank = "bsn"
164
        ConfirmationTokenPaymentMethodPreviewFPXBankCimb              ConfirmationTokenPaymentMethodPreviewFPXBank = "cimb"
165
        ConfirmationTokenPaymentMethodPreviewFPXBankDeutscheBank      ConfirmationTokenPaymentMethodPreviewFPXBank = "deutsche_bank"
166
        ConfirmationTokenPaymentMethodPreviewFPXBankHongLeongBank     ConfirmationTokenPaymentMethodPreviewFPXBank = "hong_leong_bank"
167
        ConfirmationTokenPaymentMethodPreviewFPXBankHsbc              ConfirmationTokenPaymentMethodPreviewFPXBank = "hsbc"
168
        ConfirmationTokenPaymentMethodPreviewFPXBankKfh               ConfirmationTokenPaymentMethodPreviewFPXBank = "kfh"
169
        ConfirmationTokenPaymentMethodPreviewFPXBankMaybank2e         ConfirmationTokenPaymentMethodPreviewFPXBank = "maybank2e"
170
        ConfirmationTokenPaymentMethodPreviewFPXBankMaybank2u         ConfirmationTokenPaymentMethodPreviewFPXBank = "maybank2u"
171
        ConfirmationTokenPaymentMethodPreviewFPXBankOcbc              ConfirmationTokenPaymentMethodPreviewFPXBank = "ocbc"
172
        ConfirmationTokenPaymentMethodPreviewFPXBankPbEnterprise      ConfirmationTokenPaymentMethodPreviewFPXBank = "pb_enterprise"
173
        ConfirmationTokenPaymentMethodPreviewFPXBankPublicBank        ConfirmationTokenPaymentMethodPreviewFPXBank = "public_bank"
174
        ConfirmationTokenPaymentMethodPreviewFPXBankRhb               ConfirmationTokenPaymentMethodPreviewFPXBank = "rhb"
175
        ConfirmationTokenPaymentMethodPreviewFPXBankStandardChartered ConfirmationTokenPaymentMethodPreviewFPXBank = "standard_chartered"
176
        ConfirmationTokenPaymentMethodPreviewFPXBankUob               ConfirmationTokenPaymentMethodPreviewFPXBank = "uob"
177
)
178

179
// The customer's bank, if provided. Can be one of `abn_amro`, `asn_bank`, `bunq`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
180
type ConfirmationTokenPaymentMethodPreviewIDEALBank string
181

182
// List of values that ConfirmationTokenPaymentMethodPreviewIDEALBank can take
183
const (
184
        ConfirmationTokenPaymentMethodPreviewIDEALBankAbnAmro       ConfirmationTokenPaymentMethodPreviewIDEALBank = "abn_amro"
185
        ConfirmationTokenPaymentMethodPreviewIDEALBankAsnBank       ConfirmationTokenPaymentMethodPreviewIDEALBank = "asn_bank"
186
        ConfirmationTokenPaymentMethodPreviewIDEALBankBunq          ConfirmationTokenPaymentMethodPreviewIDEALBank = "bunq"
187
        ConfirmationTokenPaymentMethodPreviewIDEALBankHandelsbanken ConfirmationTokenPaymentMethodPreviewIDEALBank = "handelsbanken"
188
        ConfirmationTokenPaymentMethodPreviewIDEALBankIng           ConfirmationTokenPaymentMethodPreviewIDEALBank = "ing"
189
        ConfirmationTokenPaymentMethodPreviewIDEALBankKnab          ConfirmationTokenPaymentMethodPreviewIDEALBank = "knab"
190
        ConfirmationTokenPaymentMethodPreviewIDEALBankMoneyou       ConfirmationTokenPaymentMethodPreviewIDEALBank = "moneyou"
191
        ConfirmationTokenPaymentMethodPreviewIDEALBankN26           ConfirmationTokenPaymentMethodPreviewIDEALBank = "n26"
192
        ConfirmationTokenPaymentMethodPreviewIDEALBankNn            ConfirmationTokenPaymentMethodPreviewIDEALBank = "nn"
193
        ConfirmationTokenPaymentMethodPreviewIDEALBankRabobank      ConfirmationTokenPaymentMethodPreviewIDEALBank = "rabobank"
194
        ConfirmationTokenPaymentMethodPreviewIDEALBankRegiobank     ConfirmationTokenPaymentMethodPreviewIDEALBank = "regiobank"
195
        ConfirmationTokenPaymentMethodPreviewIDEALBankRevolut       ConfirmationTokenPaymentMethodPreviewIDEALBank = "revolut"
196
        ConfirmationTokenPaymentMethodPreviewIDEALBankSnsBank       ConfirmationTokenPaymentMethodPreviewIDEALBank = "sns_bank"
197
        ConfirmationTokenPaymentMethodPreviewIDEALBankTriodosBank   ConfirmationTokenPaymentMethodPreviewIDEALBank = "triodos_bank"
198
        ConfirmationTokenPaymentMethodPreviewIDEALBankVanLanschot   ConfirmationTokenPaymentMethodPreviewIDEALBank = "van_lanschot"
199
        ConfirmationTokenPaymentMethodPreviewIDEALBankYoursafe      ConfirmationTokenPaymentMethodPreviewIDEALBank = "yoursafe"
200
)
201

202
// The Bank Identifier Code of the customer's bank, if the bank was provided.
203
type ConfirmationTokenPaymentMethodPreviewIDEALBIC string
204

205
// List of values that ConfirmationTokenPaymentMethodPreviewIDEALBIC can take
206
const (
207
        ConfirmationTokenPaymentMethodPreviewIDEALBICABNANL2A ConfirmationTokenPaymentMethodPreviewIDEALBIC = "ABNANL2A"
208
        ConfirmationTokenPaymentMethodPreviewIDEALBICASNBNL21 ConfirmationTokenPaymentMethodPreviewIDEALBIC = "ASNBNL21"
209
        ConfirmationTokenPaymentMethodPreviewIDEALBICBITSNL2A ConfirmationTokenPaymentMethodPreviewIDEALBIC = "BITSNL2A"
210
        ConfirmationTokenPaymentMethodPreviewIDEALBICBUNQNL2A ConfirmationTokenPaymentMethodPreviewIDEALBIC = "BUNQNL2A"
211
        ConfirmationTokenPaymentMethodPreviewIDEALBICFVLBNL22 ConfirmationTokenPaymentMethodPreviewIDEALBIC = "FVLBNL22"
212
        ConfirmationTokenPaymentMethodPreviewIDEALBICHANDNL2A ConfirmationTokenPaymentMethodPreviewIDEALBIC = "HANDNL2A"
213
        ConfirmationTokenPaymentMethodPreviewIDEALBICINGBNL2A ConfirmationTokenPaymentMethodPreviewIDEALBIC = "INGBNL2A"
214
        ConfirmationTokenPaymentMethodPreviewIDEALBICKNABNL2H ConfirmationTokenPaymentMethodPreviewIDEALBIC = "KNABNL2H"
215
        ConfirmationTokenPaymentMethodPreviewIDEALBICMOYONL21 ConfirmationTokenPaymentMethodPreviewIDEALBIC = "MOYONL21"
216
        ConfirmationTokenPaymentMethodPreviewIDEALBICNNBANL2G ConfirmationTokenPaymentMethodPreviewIDEALBIC = "NNBANL2G"
217
        ConfirmationTokenPaymentMethodPreviewIDEALBICNTSBDEB1 ConfirmationTokenPaymentMethodPreviewIDEALBIC = "NTSBDEB1"
218
        ConfirmationTokenPaymentMethodPreviewIDEALBICRABONL2U ConfirmationTokenPaymentMethodPreviewIDEALBIC = "RABONL2U"
219
        ConfirmationTokenPaymentMethodPreviewIDEALBICRBRBNL21 ConfirmationTokenPaymentMethodPreviewIDEALBIC = "RBRBNL21"
220
        ConfirmationTokenPaymentMethodPreviewIDEALBICREVOIE23 ConfirmationTokenPaymentMethodPreviewIDEALBIC = "REVOIE23"
221
        ConfirmationTokenPaymentMethodPreviewIDEALBICREVOLT21 ConfirmationTokenPaymentMethodPreviewIDEALBIC = "REVOLT21"
222
        ConfirmationTokenPaymentMethodPreviewIDEALBICSNSBNL2A ConfirmationTokenPaymentMethodPreviewIDEALBIC = "SNSBNL2A"
223
        ConfirmationTokenPaymentMethodPreviewIDEALBICTRIONL2U ConfirmationTokenPaymentMethodPreviewIDEALBIC = "TRIONL2U"
224
)
225

226
// How card details were read in this transaction.
227
type ConfirmationTokenPaymentMethodPreviewInteracPresentReadMethod string
228

229
// List of values that ConfirmationTokenPaymentMethodPreviewInteracPresentReadMethod can take
230
const (
231
        ConfirmationTokenPaymentMethodPreviewInteracPresentReadMethodContactEmv               ConfirmationTokenPaymentMethodPreviewInteracPresentReadMethod = "contact_emv"
232
        ConfirmationTokenPaymentMethodPreviewInteracPresentReadMethodContactlessEmv           ConfirmationTokenPaymentMethodPreviewInteracPresentReadMethod = "contactless_emv"
233
        ConfirmationTokenPaymentMethodPreviewInteracPresentReadMethodContactlessMagstripeMode ConfirmationTokenPaymentMethodPreviewInteracPresentReadMethod = "contactless_magstripe_mode"
234
        ConfirmationTokenPaymentMethodPreviewInteracPresentReadMethodMagneticStripeFallback   ConfirmationTokenPaymentMethodPreviewInteracPresentReadMethod = "magnetic_stripe_fallback"
235
        ConfirmationTokenPaymentMethodPreviewInteracPresentReadMethodMagneticStripeTrack2     ConfirmationTokenPaymentMethodPreviewInteracPresentReadMethod = "magnetic_stripe_track2"
236
)
237

238
// The local credit or debit card brand.
239
type ConfirmationTokenPaymentMethodPreviewKrCardBrand string
240

241
// List of values that ConfirmationTokenPaymentMethodPreviewKrCardBrand can take
242
const (
243
        ConfirmationTokenPaymentMethodPreviewKrCardBrandBc          ConfirmationTokenPaymentMethodPreviewKrCardBrand = "bc"
244
        ConfirmationTokenPaymentMethodPreviewKrCardBrandCiti        ConfirmationTokenPaymentMethodPreviewKrCardBrand = "citi"
245
        ConfirmationTokenPaymentMethodPreviewKrCardBrandHana        ConfirmationTokenPaymentMethodPreviewKrCardBrand = "hana"
246
        ConfirmationTokenPaymentMethodPreviewKrCardBrandHyundai     ConfirmationTokenPaymentMethodPreviewKrCardBrand = "hyundai"
247
        ConfirmationTokenPaymentMethodPreviewKrCardBrandJeju        ConfirmationTokenPaymentMethodPreviewKrCardBrand = "jeju"
248
        ConfirmationTokenPaymentMethodPreviewKrCardBrandJeonbuk     ConfirmationTokenPaymentMethodPreviewKrCardBrand = "jeonbuk"
249
        ConfirmationTokenPaymentMethodPreviewKrCardBrandKakaobank   ConfirmationTokenPaymentMethodPreviewKrCardBrand = "kakaobank"
250
        ConfirmationTokenPaymentMethodPreviewKrCardBrandKbank       ConfirmationTokenPaymentMethodPreviewKrCardBrand = "kbank"
251
        ConfirmationTokenPaymentMethodPreviewKrCardBrandKdbbank     ConfirmationTokenPaymentMethodPreviewKrCardBrand = "kdbbank"
252
        ConfirmationTokenPaymentMethodPreviewKrCardBrandKookmin     ConfirmationTokenPaymentMethodPreviewKrCardBrand = "kookmin"
253
        ConfirmationTokenPaymentMethodPreviewKrCardBrandKwangju     ConfirmationTokenPaymentMethodPreviewKrCardBrand = "kwangju"
254
        ConfirmationTokenPaymentMethodPreviewKrCardBrandLotte       ConfirmationTokenPaymentMethodPreviewKrCardBrand = "lotte"
255
        ConfirmationTokenPaymentMethodPreviewKrCardBrandMg          ConfirmationTokenPaymentMethodPreviewKrCardBrand = "mg"
256
        ConfirmationTokenPaymentMethodPreviewKrCardBrandNh          ConfirmationTokenPaymentMethodPreviewKrCardBrand = "nh"
257
        ConfirmationTokenPaymentMethodPreviewKrCardBrandPost        ConfirmationTokenPaymentMethodPreviewKrCardBrand = "post"
258
        ConfirmationTokenPaymentMethodPreviewKrCardBrandSamsung     ConfirmationTokenPaymentMethodPreviewKrCardBrand = "samsung"
259
        ConfirmationTokenPaymentMethodPreviewKrCardBrandSavingsbank ConfirmationTokenPaymentMethodPreviewKrCardBrand = "savingsbank"
260
        ConfirmationTokenPaymentMethodPreviewKrCardBrandShinhan     ConfirmationTokenPaymentMethodPreviewKrCardBrand = "shinhan"
261
        ConfirmationTokenPaymentMethodPreviewKrCardBrandShinhyup    ConfirmationTokenPaymentMethodPreviewKrCardBrand = "shinhyup"
262
        ConfirmationTokenPaymentMethodPreviewKrCardBrandSuhyup      ConfirmationTokenPaymentMethodPreviewKrCardBrand = "suhyup"
263
        ConfirmationTokenPaymentMethodPreviewKrCardBrandTossbank    ConfirmationTokenPaymentMethodPreviewKrCardBrand = "tossbank"
264
        ConfirmationTokenPaymentMethodPreviewKrCardBrandWoori       ConfirmationTokenPaymentMethodPreviewKrCardBrand = "woori"
265
)
266

267
// Whether to fund this transaction with Naver Pay points or a card.
268
type ConfirmationTokenPaymentMethodPreviewNaverPayFunding string
269

270
// List of values that ConfirmationTokenPaymentMethodPreviewNaverPayFunding can take
271
const (
272
        ConfirmationTokenPaymentMethodPreviewNaverPayFundingCard   ConfirmationTokenPaymentMethodPreviewNaverPayFunding = "card"
273
        ConfirmationTokenPaymentMethodPreviewNaverPayFundingPoints ConfirmationTokenPaymentMethodPreviewNaverPayFunding = "points"
274
)
275

276
// The customer's bank, if provided.
277
type ConfirmationTokenPaymentMethodPreviewP24Bank string
278

279
// List of values that ConfirmationTokenPaymentMethodPreviewP24Bank can take
280
const (
281
        ConfirmationTokenPaymentMethodPreviewP24BankAliorBank            ConfirmationTokenPaymentMethodPreviewP24Bank = "alior_bank"
282
        ConfirmationTokenPaymentMethodPreviewP24BankBankMillennium       ConfirmationTokenPaymentMethodPreviewP24Bank = "bank_millennium"
283
        ConfirmationTokenPaymentMethodPreviewP24BankBankNowyBfgSa        ConfirmationTokenPaymentMethodPreviewP24Bank = "bank_nowy_bfg_sa"
284
        ConfirmationTokenPaymentMethodPreviewP24BankBankPekaoSa          ConfirmationTokenPaymentMethodPreviewP24Bank = "bank_pekao_sa"
285
        ConfirmationTokenPaymentMethodPreviewP24BankBankiSpbdzielcze     ConfirmationTokenPaymentMethodPreviewP24Bank = "banki_spbdzielcze"
286
        ConfirmationTokenPaymentMethodPreviewP24BankBLIK                 ConfirmationTokenPaymentMethodPreviewP24Bank = "blik"
287
        ConfirmationTokenPaymentMethodPreviewP24BankBnpParibas           ConfirmationTokenPaymentMethodPreviewP24Bank = "bnp_paribas"
288
        ConfirmationTokenPaymentMethodPreviewP24BankBoz                  ConfirmationTokenPaymentMethodPreviewP24Bank = "boz"
289
        ConfirmationTokenPaymentMethodPreviewP24BankCitiHandlowy         ConfirmationTokenPaymentMethodPreviewP24Bank = "citi_handlowy"
290
        ConfirmationTokenPaymentMethodPreviewP24BankCreditAgricole       ConfirmationTokenPaymentMethodPreviewP24Bank = "credit_agricole"
291
        ConfirmationTokenPaymentMethodPreviewP24BankEnvelobank           ConfirmationTokenPaymentMethodPreviewP24Bank = "envelobank"
292
        ConfirmationTokenPaymentMethodPreviewP24BankEtransferPocztowy24  ConfirmationTokenPaymentMethodPreviewP24Bank = "etransfer_pocztowy24"
293
        ConfirmationTokenPaymentMethodPreviewP24BankGetinBank            ConfirmationTokenPaymentMethodPreviewP24Bank = "getin_bank"
294
        ConfirmationTokenPaymentMethodPreviewP24BankIdeabank             ConfirmationTokenPaymentMethodPreviewP24Bank = "ideabank"
295
        ConfirmationTokenPaymentMethodPreviewP24BankIng                  ConfirmationTokenPaymentMethodPreviewP24Bank = "ing"
296
        ConfirmationTokenPaymentMethodPreviewP24BankInteligo             ConfirmationTokenPaymentMethodPreviewP24Bank = "inteligo"
297
        ConfirmationTokenPaymentMethodPreviewP24BankMbankMtransfer       ConfirmationTokenPaymentMethodPreviewP24Bank = "mbank_mtransfer"
298
        ConfirmationTokenPaymentMethodPreviewP24BankNestPrzelew          ConfirmationTokenPaymentMethodPreviewP24Bank = "nest_przelew"
299
        ConfirmationTokenPaymentMethodPreviewP24BankNoblePay             ConfirmationTokenPaymentMethodPreviewP24Bank = "noble_pay"
300
        ConfirmationTokenPaymentMethodPreviewP24BankPbacZIpko            ConfirmationTokenPaymentMethodPreviewP24Bank = "pbac_z_ipko"
301
        ConfirmationTokenPaymentMethodPreviewP24BankPlusBank             ConfirmationTokenPaymentMethodPreviewP24Bank = "plus_bank"
302
        ConfirmationTokenPaymentMethodPreviewP24BankSantanderPrzelew24   ConfirmationTokenPaymentMethodPreviewP24Bank = "santander_przelew24"
303
        ConfirmationTokenPaymentMethodPreviewP24BankTmobileUsbugiBankowe ConfirmationTokenPaymentMethodPreviewP24Bank = "tmobile_usbugi_bankowe"
304
        ConfirmationTokenPaymentMethodPreviewP24BankToyotaBank           ConfirmationTokenPaymentMethodPreviewP24Bank = "toyota_bank"
305
        ConfirmationTokenPaymentMethodPreviewP24BankVelobank             ConfirmationTokenPaymentMethodPreviewP24Bank = "velobank"
306
        ConfirmationTokenPaymentMethodPreviewP24BankVolkswagenBank       ConfirmationTokenPaymentMethodPreviewP24Bank = "volkswagen_bank"
307
)
308

309
// The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.
310
type ConfirmationTokenPaymentMethodPreviewType string
311

312
// List of values that ConfirmationTokenPaymentMethodPreviewType can take
313
const (
314
        ConfirmationTokenPaymentMethodPreviewTypeACSSDebit        ConfirmationTokenPaymentMethodPreviewType = "acss_debit"
315
        ConfirmationTokenPaymentMethodPreviewTypeAffirm           ConfirmationTokenPaymentMethodPreviewType = "affirm"
316
        ConfirmationTokenPaymentMethodPreviewTypeAfterpayClearpay ConfirmationTokenPaymentMethodPreviewType = "afterpay_clearpay"
317
        ConfirmationTokenPaymentMethodPreviewTypeAlipay           ConfirmationTokenPaymentMethodPreviewType = "alipay"
318
        ConfirmationTokenPaymentMethodPreviewTypeAmazonPay        ConfirmationTokenPaymentMethodPreviewType = "amazon_pay"
319
        ConfirmationTokenPaymentMethodPreviewTypeAUBECSDebit      ConfirmationTokenPaymentMethodPreviewType = "au_becs_debit"
320
        ConfirmationTokenPaymentMethodPreviewTypeBACSDebit        ConfirmationTokenPaymentMethodPreviewType = "bacs_debit"
321
        ConfirmationTokenPaymentMethodPreviewTypeBancontact       ConfirmationTokenPaymentMethodPreviewType = "bancontact"
322
        ConfirmationTokenPaymentMethodPreviewTypeBLIK             ConfirmationTokenPaymentMethodPreviewType = "blik"
323
        ConfirmationTokenPaymentMethodPreviewTypeBoleto           ConfirmationTokenPaymentMethodPreviewType = "boleto"
324
        ConfirmationTokenPaymentMethodPreviewTypeCard             ConfirmationTokenPaymentMethodPreviewType = "card"
325
        ConfirmationTokenPaymentMethodPreviewTypeCardPresent      ConfirmationTokenPaymentMethodPreviewType = "card_present"
326
        ConfirmationTokenPaymentMethodPreviewTypeCashApp          ConfirmationTokenPaymentMethodPreviewType = "cashapp"
327
        ConfirmationTokenPaymentMethodPreviewTypeCustomerBalance  ConfirmationTokenPaymentMethodPreviewType = "customer_balance"
328
        ConfirmationTokenPaymentMethodPreviewTypeEPS              ConfirmationTokenPaymentMethodPreviewType = "eps"
329
        ConfirmationTokenPaymentMethodPreviewTypeFPX              ConfirmationTokenPaymentMethodPreviewType = "fpx"
330
        ConfirmationTokenPaymentMethodPreviewTypeGiropay          ConfirmationTokenPaymentMethodPreviewType = "giropay"
331
        ConfirmationTokenPaymentMethodPreviewTypeGrabpay          ConfirmationTokenPaymentMethodPreviewType = "grabpay"
332
        ConfirmationTokenPaymentMethodPreviewTypeIDEAL            ConfirmationTokenPaymentMethodPreviewType = "ideal"
333
        ConfirmationTokenPaymentMethodPreviewTypeInteracPresent   ConfirmationTokenPaymentMethodPreviewType = "interac_present"
334
        ConfirmationTokenPaymentMethodPreviewTypeKakaoPay         ConfirmationTokenPaymentMethodPreviewType = "kakao_pay"
335
        ConfirmationTokenPaymentMethodPreviewTypeKlarna           ConfirmationTokenPaymentMethodPreviewType = "klarna"
336
        ConfirmationTokenPaymentMethodPreviewTypeKonbini          ConfirmationTokenPaymentMethodPreviewType = "konbini"
337
        ConfirmationTokenPaymentMethodPreviewTypeKrCard           ConfirmationTokenPaymentMethodPreviewType = "kr_card"
338
        ConfirmationTokenPaymentMethodPreviewTypeLink             ConfirmationTokenPaymentMethodPreviewType = "link"
339
        ConfirmationTokenPaymentMethodPreviewTypeMbWay            ConfirmationTokenPaymentMethodPreviewType = "mb_way"
340
        ConfirmationTokenPaymentMethodPreviewTypeMobilepay        ConfirmationTokenPaymentMethodPreviewType = "mobilepay"
341
        ConfirmationTokenPaymentMethodPreviewTypeMultibanco       ConfirmationTokenPaymentMethodPreviewType = "multibanco"
342
        ConfirmationTokenPaymentMethodPreviewTypeNaverPay         ConfirmationTokenPaymentMethodPreviewType = "naver_pay"
343
        ConfirmationTokenPaymentMethodPreviewTypeOXXO             ConfirmationTokenPaymentMethodPreviewType = "oxxo"
344
        ConfirmationTokenPaymentMethodPreviewTypeP24              ConfirmationTokenPaymentMethodPreviewType = "p24"
345
        ConfirmationTokenPaymentMethodPreviewTypePayco            ConfirmationTokenPaymentMethodPreviewType = "payco"
346
        ConfirmationTokenPaymentMethodPreviewTypePayNow           ConfirmationTokenPaymentMethodPreviewType = "paynow"
347
        ConfirmationTokenPaymentMethodPreviewTypePaypal           ConfirmationTokenPaymentMethodPreviewType = "paypal"
348
        ConfirmationTokenPaymentMethodPreviewTypePayto            ConfirmationTokenPaymentMethodPreviewType = "payto"
349
        ConfirmationTokenPaymentMethodPreviewTypePix              ConfirmationTokenPaymentMethodPreviewType = "pix"
350
        ConfirmationTokenPaymentMethodPreviewTypePromptPay        ConfirmationTokenPaymentMethodPreviewType = "promptpay"
351
        ConfirmationTokenPaymentMethodPreviewTypeRechnung         ConfirmationTokenPaymentMethodPreviewType = "rechnung"
352
        ConfirmationTokenPaymentMethodPreviewTypeRevolutPay       ConfirmationTokenPaymentMethodPreviewType = "revolut_pay"
353
        ConfirmationTokenPaymentMethodPreviewTypeSamsungPay       ConfirmationTokenPaymentMethodPreviewType = "samsung_pay"
354
        ConfirmationTokenPaymentMethodPreviewTypeSEPADebit        ConfirmationTokenPaymentMethodPreviewType = "sepa_debit"
355
        ConfirmationTokenPaymentMethodPreviewTypeSofort           ConfirmationTokenPaymentMethodPreviewType = "sofort"
356
        ConfirmationTokenPaymentMethodPreviewTypeSwish            ConfirmationTokenPaymentMethodPreviewType = "swish"
357
        ConfirmationTokenPaymentMethodPreviewTypeTWINT            ConfirmationTokenPaymentMethodPreviewType = "twint"
358
        ConfirmationTokenPaymentMethodPreviewTypeUSBankAccount    ConfirmationTokenPaymentMethodPreviewType = "us_bank_account"
359
        ConfirmationTokenPaymentMethodPreviewTypeWeChatPay        ConfirmationTokenPaymentMethodPreviewType = "wechat_pay"
360
        ConfirmationTokenPaymentMethodPreviewTypeZip              ConfirmationTokenPaymentMethodPreviewType = "zip"
361
)
362

363
// Account holder type: individual or company.
364
type ConfirmationTokenPaymentMethodPreviewUSBankAccountAccountHolderType string
365

366
// List of values that ConfirmationTokenPaymentMethodPreviewUSBankAccountAccountHolderType can take
367
const (
368
        ConfirmationTokenPaymentMethodPreviewUSBankAccountAccountHolderTypeCompany    ConfirmationTokenPaymentMethodPreviewUSBankAccountAccountHolderType = "company"
369
        ConfirmationTokenPaymentMethodPreviewUSBankAccountAccountHolderTypeIndividual ConfirmationTokenPaymentMethodPreviewUSBankAccountAccountHolderType = "individual"
370
)
371

372
// Account type: checkings or savings. Defaults to checking if omitted.
373
type ConfirmationTokenPaymentMethodPreviewUSBankAccountAccountType string
374

375
// List of values that ConfirmationTokenPaymentMethodPreviewUSBankAccountAccountType can take
376
const (
377
        ConfirmationTokenPaymentMethodPreviewUSBankAccountAccountTypeChecking ConfirmationTokenPaymentMethodPreviewUSBankAccountAccountType = "checking"
378
        ConfirmationTokenPaymentMethodPreviewUSBankAccountAccountTypeSavings  ConfirmationTokenPaymentMethodPreviewUSBankAccountAccountType = "savings"
379
)
380

381
// All supported networks.
382
type ConfirmationTokenPaymentMethodPreviewUSBankAccountNetworksSupported string
383

384
// List of values that ConfirmationTokenPaymentMethodPreviewUSBankAccountNetworksSupported can take
385
const (
386
        ConfirmationTokenPaymentMethodPreviewUSBankAccountNetworksSupportedACH            ConfirmationTokenPaymentMethodPreviewUSBankAccountNetworksSupported = "ach"
387
        ConfirmationTokenPaymentMethodPreviewUSBankAccountNetworksSupportedUSDomesticWire ConfirmationTokenPaymentMethodPreviewUSBankAccountNetworksSupported = "us_domestic_wire"
388
)
389

390
// The ACH network code that resulted in this block.
391
type ConfirmationTokenPaymentMethodPreviewUSBankAccountStatusDetailsBlockedNetworkCode string
392

393
// List of values that ConfirmationTokenPaymentMethodPreviewUSBankAccountStatusDetailsBlockedNetworkCode can take
394
const (
395
        ConfirmationTokenPaymentMethodPreviewUSBankAccountStatusDetailsBlockedNetworkCodeR02 ConfirmationTokenPaymentMethodPreviewUSBankAccountStatusDetailsBlockedNetworkCode = "R02"
396
        ConfirmationTokenPaymentMethodPreviewUSBankAccountStatusDetailsBlockedNetworkCodeR03 ConfirmationTokenPaymentMethodPreviewUSBankAccountStatusDetailsBlockedNetworkCode = "R03"
397
        ConfirmationTokenPaymentMethodPreviewUSBankAccountStatusDetailsBlockedNetworkCodeR04 ConfirmationTokenPaymentMethodPreviewUSBankAccountStatusDetailsBlockedNetworkCode = "R04"
398
        ConfirmationTokenPaymentMethodPreviewUSBankAccountStatusDetailsBlockedNetworkCodeR05 ConfirmationTokenPaymentMethodPreviewUSBankAccountStatusDetailsBlockedNetworkCode = "R05"
399
        ConfirmationTokenPaymentMethodPreviewUSBankAccountStatusDetailsBlockedNetworkCodeR07 ConfirmationTokenPaymentMethodPreviewUSBankAccountStatusDetailsBlockedNetworkCode = "R07"
400
        ConfirmationTokenPaymentMethodPreviewUSBankAccountStatusDetailsBlockedNetworkCodeR08 ConfirmationTokenPaymentMethodPreviewUSBankAccountStatusDetailsBlockedNetworkCode = "R08"
401
        ConfirmationTokenPaymentMethodPreviewUSBankAccountStatusDetailsBlockedNetworkCodeR10 ConfirmationTokenPaymentMethodPreviewUSBankAccountStatusDetailsBlockedNetworkCode = "R10"
402
        ConfirmationTokenPaymentMethodPreviewUSBankAccountStatusDetailsBlockedNetworkCodeR11 ConfirmationTokenPaymentMethodPreviewUSBankAccountStatusDetailsBlockedNetworkCode = "R11"
403
        ConfirmationTokenPaymentMethodPreviewUSBankAccountStatusDetailsBlockedNetworkCodeR16 ConfirmationTokenPaymentMethodPreviewUSBankAccountStatusDetailsBlockedNetworkCode = "R16"
404
        ConfirmationTokenPaymentMethodPreviewUSBankAccountStatusDetailsBlockedNetworkCodeR20 ConfirmationTokenPaymentMethodPreviewUSBankAccountStatusDetailsBlockedNetworkCode = "R20"
405
        ConfirmationTokenPaymentMethodPreviewUSBankAccountStatusDetailsBlockedNetworkCodeR29 ConfirmationTokenPaymentMethodPreviewUSBankAccountStatusDetailsBlockedNetworkCode = "R29"
406
        ConfirmationTokenPaymentMethodPreviewUSBankAccountStatusDetailsBlockedNetworkCodeR31 ConfirmationTokenPaymentMethodPreviewUSBankAccountStatusDetailsBlockedNetworkCode = "R31"
407
)
408

409
// The reason why this PaymentMethod's fingerprint has been blocked
410
type ConfirmationTokenPaymentMethodPreviewUSBankAccountStatusDetailsBlockedReason string
411

412
// List of values that ConfirmationTokenPaymentMethodPreviewUSBankAccountStatusDetailsBlockedReason can take
413
const (
414
        ConfirmationTokenPaymentMethodPreviewUSBankAccountStatusDetailsBlockedReasonBankAccountClosed         ConfirmationTokenPaymentMethodPreviewUSBankAccountStatusDetailsBlockedReason = "bank_account_closed"
415
        ConfirmationTokenPaymentMethodPreviewUSBankAccountStatusDetailsBlockedReasonBankAccountFrozen         ConfirmationTokenPaymentMethodPreviewUSBankAccountStatusDetailsBlockedReason = "bank_account_frozen"
416
        ConfirmationTokenPaymentMethodPreviewUSBankAccountStatusDetailsBlockedReasonBankAccountInvalidDetails ConfirmationTokenPaymentMethodPreviewUSBankAccountStatusDetailsBlockedReason = "bank_account_invalid_details"
417
        ConfirmationTokenPaymentMethodPreviewUSBankAccountStatusDetailsBlockedReasonBankAccountRestricted     ConfirmationTokenPaymentMethodPreviewUSBankAccountStatusDetailsBlockedReason = "bank_account_restricted"
418
        ConfirmationTokenPaymentMethodPreviewUSBankAccountStatusDetailsBlockedReasonBankAccountUnusable       ConfirmationTokenPaymentMethodPreviewUSBankAccountStatusDetailsBlockedReason = "bank_account_unusable"
419
        ConfirmationTokenPaymentMethodPreviewUSBankAccountStatusDetailsBlockedReasonDebitNotAuthorized        ConfirmationTokenPaymentMethodPreviewUSBankAccountStatusDetailsBlockedReason = "debit_not_authorized"
420
)
421

422
// Indicates that you intend to make future payments with this ConfirmationToken's payment method.
423
//
424
// The presence of this property will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete.
425
type ConfirmationTokenSetupFutureUsage string
426

427
// List of values that ConfirmationTokenSetupFutureUsage can take
428
const (
429
        ConfirmationTokenSetupFutureUsageOffSession ConfirmationTokenSetupFutureUsage = "off_session"
430
        ConfirmationTokenSetupFutureUsageOnSession  ConfirmationTokenSetupFutureUsage = "on_session"
431
)
432

433
// Retrieves an existing ConfirmationToken object
434
type ConfirmationTokenParams struct {
435
        Params `form:"*"`
436
        // Specifies which fields in the response should be expanded.
437
        Expand []*string `form:"expand"`
438
}
439

440
// AddExpand appends a new field to expand.
UNCOV
441
func (p *ConfirmationTokenParams) AddExpand(f string) {
×
UNCOV
442
        p.Expand = append(p.Expand, &f)
×
UNCOV
443
}
×
444

445
// If this is a Mandate accepted online, this hash contains details about the online acceptance.
446
type ConfirmationTokenMandateDataCustomerAcceptanceOnline struct {
447
        // The IP address from which the Mandate was accepted by the customer.
448
        IPAddress string `json:"ip_address"`
449
        // The user agent of the browser from which the Mandate was accepted by the customer.
450
        UserAgent string `json:"user_agent"`
451
}
452

453
// This hash contains details about the customer acceptance of the Mandate.
454
type ConfirmationTokenMandateDataCustomerAcceptance struct {
455
        // If this is a Mandate accepted online, this hash contains details about the online acceptance.
456
        Online *ConfirmationTokenMandateDataCustomerAcceptanceOnline `json:"online"`
457
        // The type of customer acceptance information included with the Mandate.
458
        Type string `json:"type"`
459
}
460

461
// Data used for generating a Mandate.
462
type ConfirmationTokenMandateData struct {
463
        // This hash contains details about the customer acceptance of the Mandate.
464
        CustomerAcceptance *ConfirmationTokenMandateDataCustomerAcceptance `json:"customer_acceptance"`
465
}
466

467
// This hash contains the card payment method options.
468
type ConfirmationTokenPaymentMethodOptionsCard struct {
469
        // The `cvc_update` Token collected from the Payment Element.
470
        CVCToken string `json:"cvc_token"`
471
}
472

473
// Payment-method-specific configuration for this ConfirmationToken.
474
type ConfirmationTokenPaymentMethodOptions struct {
475
        // This hash contains the card payment method options.
476
        Card *ConfirmationTokenPaymentMethodOptionsCard `json:"card"`
477
}
478
type ConfirmationTokenPaymentMethodPreviewACSSDebit struct {
479
        // Name of the bank associated with the bank account.
480
        BankName string `json:"bank_name"`
481
        // Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
482
        Fingerprint string `json:"fingerprint"`
483
        // Institution number of the bank account.
484
        InstitutionNumber string `json:"institution_number"`
485
        // Last four digits of the bank account number.
486
        Last4 string `json:"last4"`
487
        // Transit number of the bank account.
488
        TransitNumber string `json:"transit_number"`
489
}
490
type ConfirmationTokenPaymentMethodPreviewAffirm struct{}
491
type ConfirmationTokenPaymentMethodPreviewAfterpayClearpay struct{}
492
type ConfirmationTokenPaymentMethodPreviewAlipay struct{}
493
type ConfirmationTokenPaymentMethodPreviewAmazonPay struct{}
494
type ConfirmationTokenPaymentMethodPreviewAUBECSDebit struct {
495
        // Six-digit number identifying bank and branch associated with this bank account.
496
        BSBNumber string `json:"bsb_number"`
497
        // Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
498
        Fingerprint string `json:"fingerprint"`
499
        // Last four digits of the bank account number.
500
        Last4 string `json:"last4"`
501
}
502
type ConfirmationTokenPaymentMethodPreviewBACSDebit struct {
503
        // Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
504
        Fingerprint string `json:"fingerprint"`
505
        // Last four digits of the bank account number.
506
        Last4 string `json:"last4"`
507
        // Sort code of the bank account. (e.g., `10-20-30`)
508
        SortCode string `json:"sort_code"`
509
}
510
type ConfirmationTokenPaymentMethodPreviewBancontact struct{}
511
type ConfirmationTokenPaymentMethodPreviewBillingDetails struct {
512
        // Billing address.
513
        Address *Address `json:"address"`
514
        // Email address.
515
        Email string `json:"email"`
516
        // Full name.
517
        Name string `json:"name"`
518
        // Billing phone number (including extension).
519
        Phone string `json:"phone"`
520
}
521
type ConfirmationTokenPaymentMethodPreviewBLIK struct{}
522
type ConfirmationTokenPaymentMethodPreviewBoleto struct {
523
        // Uniquely identifies the customer tax id (CNPJ or CPF)
524
        TaxID string `json:"tax_id"`
525
}
526

527
// Checks on Card address and CVC if provided.
528
type ConfirmationTokenPaymentMethodPreviewCardChecks struct {
529
        // If a address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
530
        AddressLine1Check string `json:"address_line1_check"`
531
        // If a address postal code was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
532
        AddressPostalCodeCheck string `json:"address_postal_code_check"`
533
        // If a CVC was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
534
        CVCCheck string `json:"cvc_check"`
535
}
536

537
// Details about payments collected offline.
538
type ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentOffline struct {
539
        // Time at which the payment was collected while offline
540
        StoredAt int64 `json:"stored_at"`
541
        // The method used to process this payment method offline. Only deferred is allowed.
542
        Type ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentOfflineType `json:"type"`
543
}
544

545
// A collection of fields required to be displayed on receipts. Only required for EMV transactions.
546
type ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentReceipt struct {
547
        // The type of account being debited or credited
548
        AccountType ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentReceiptAccountType `json:"account_type"`
549
        // EMV tag 9F26, cryptogram generated by the integrated circuit chip.
550
        ApplicationCryptogram string `json:"application_cryptogram"`
551
        // Mnenomic of the Application Identifier.
552
        ApplicationPreferredName string `json:"application_preferred_name"`
553
        // Identifier for this transaction.
554
        AuthorizationCode string `json:"authorization_code"`
555
        // EMV tag 8A. A code returned by the card issuer.
556
        AuthorizationResponseCode string `json:"authorization_response_code"`
557
        // Describes the method used by the cardholder to verify ownership of the card. One of the following: `approval`, `failure`, `none`, `offline_pin`, `offline_pin_and_signature`, `online_pin`, or `signature`.
558
        CardholderVerificationMethod string `json:"cardholder_verification_method"`
559
        // EMV tag 84. Similar to the application identifier stored on the integrated circuit chip.
560
        DedicatedFileName string `json:"dedicated_file_name"`
561
        // The outcome of a series of EMV functions performed by the card reader.
562
        TerminalVerificationResults string `json:"terminal_verification_results"`
563
        // An indication of various EMV functions performed during the transaction.
564
        TransactionStatusInformation string `json:"transaction_status_information"`
565
}
566
type ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentWallet struct {
567
        // The type of mobile wallet, one of `apple_pay`, `google_pay`, `samsung_pay`, or `unknown`.
568
        Type ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentWalletType `json:"type"`
569
}
570
type ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresent struct {
571
        // The authorized amount
572
        AmountAuthorized int64 `json:"amount_authorized"`
573
        // Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
574
        Brand string `json:"brand"`
575
        // The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card.
576
        BrandProduct string `json:"brand_product"`
577
        // When using manual capture, a future timestamp after which the charge will be automatically refunded if uncaptured.
578
        CaptureBefore int64 `json:"capture_before"`
579
        // The cardholder name as read from the card, in [ISO 7813](https://en.wikipedia.org/wiki/ISO/IEC_7813) format. May include alphanumeric characters, special characters and first/last name separator (`/`). In some cases, the cardholder name may not be available depending on how the issuer has configured the card. Cardholder name is typically not available on swipe or contactless payments, such as those made with Apple Pay and Google Pay.
580
        CardholderName string `json:"cardholder_name"`
581
        // Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
582
        Country string `json:"country"`
583
        // A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.)
584
        Description string `json:"description"`
585
        // Authorization response cryptogram.
586
        EmvAuthData string `json:"emv_auth_data"`
587
        // Two-digit number representing the card's expiration month.
588
        ExpMonth int64 `json:"exp_month"`
589
        // Four-digit number representing the card's expiration year.
590
        ExpYear int64 `json:"exp_year"`
591
        // Uniquely identifies this particular card number. You can use this attribute to check whether two customers who've signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number.
592
        //
593
        // *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.*
594
        Fingerprint string `json:"fingerprint"`
595
        // Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
596
        Funding string `json:"funding"`
597
        // ID of a card PaymentMethod generated from the card_present PaymentMethod that may be attached to a Customer for future transactions. Only present if it was possible to generate a card PaymentMethod.
598
        GeneratedCard string `json:"generated_card"`
599
        // Issuer identification number of the card. (For internal use only and not typically available in standard API requests.)
600
        IIN string `json:"iin"`
601
        // Whether this [PaymentIntent](https://stripe.com/docs/api/payment_intents) is eligible for incremental authorizations. Request support using [request_incremental_authorization_support](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-payment_method_options-card_present-request_incremental_authorization_support).
602
        IncrementalAuthorizationSupported bool `json:"incremental_authorization_supported"`
603
        // The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.)
604
        Issuer string `json:"issuer"`
605
        // The last four digits of the card.
606
        Last4 string `json:"last4"`
607
        // Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
608
        Network string `json:"network"`
609
        // This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. The first three digits of the Trace ID is the Financial Network Code, the next 6 digits is the Banknet Reference Number, and the last 4 digits represent the date (MM/DD). This field will be available for successful Visa, Mastercard, or American Express transactions and always null for other card brands.
610
        NetworkTransactionID string `json:"network_transaction_id"`
611
        // Details about payments collected offline.
612
        Offline *ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentOffline `json:"offline"`
613
        // Defines whether the authorized amount can be over-captured or not
614
        OvercaptureSupported bool `json:"overcapture_supported"`
615
        // EMV tag 5F2D. Preferred languages specified by the integrated circuit chip.
616
        PreferredLocales []string `json:"preferred_locales"`
617
        // How card details were read in this transaction.
618
        ReadMethod ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentReadMethod `json:"read_method"`
619
        // A collection of fields required to be displayed on receipts. Only required for EMV transactions.
620
        Receipt *ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentReceipt `json:"receipt"`
621
        Wallet  *ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentWallet  `json:"wallet"`
622
}
623

624
// Transaction-specific details of the payment method used in the payment.
625
type ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetails struct {
626
        CardPresent *ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresent `json:"card_present"`
627
        // The type of payment method transaction-specific details from the transaction that generated this `card` payment method. Always `card_present`.
628
        Type string `json:"type"`
629
}
630

631
// Details of the original PaymentMethod that created this object.
632
type ConfirmationTokenPaymentMethodPreviewCardGeneratedFrom struct {
633
        // The charge that created this object.
634
        Charge string `json:"charge"`
635
        // Transaction-specific details of the payment method used in the payment.
636
        PaymentMethodDetails *ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetails `json:"payment_method_details"`
637
        // The ID of the SetupAttempt that generated this PaymentMethod, if any.
638
        SetupAttempt *SetupAttempt `json:"setup_attempt"`
639
}
640

641
// Contains information about card networks that can be used to process the payment.
642
type ConfirmationTokenPaymentMethodPreviewCardNetworks struct {
643
        // All available networks for the card.
644
        Available []string `json:"available"`
645
        // The preferred network for co-branded cards. Can be `cartes_bancaires`, `mastercard`, `visa` or `invalid_preference` if requested network is not valid for the card.
646
        Preferred string `json:"preferred"`
647
}
648

649
// Contains details on how this Card may be used for 3D Secure authentication.
650
type ConfirmationTokenPaymentMethodPreviewCardThreeDSecureUsage struct {
651
        // Whether 3D Secure is supported on this card.
652
        Supported bool `json:"supported"`
653
}
654
type ConfirmationTokenPaymentMethodPreviewCardWalletAmexExpressCheckout struct{}
655
type ConfirmationTokenPaymentMethodPreviewCardWalletApplePay struct{}
656
type ConfirmationTokenPaymentMethodPreviewCardWalletGooglePay struct{}
657
type ConfirmationTokenPaymentMethodPreviewCardWalletLink struct{}
658
type ConfirmationTokenPaymentMethodPreviewCardWalletMasterpass struct {
659
        // Owner's verified billing address. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
660
        BillingAddress *Address `json:"billing_address"`
661
        // Owner's verified email. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
662
        Email string `json:"email"`
663
        // Owner's verified full name. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
664
        Name string `json:"name"`
665
        // Owner's verified shipping address. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
666
        ShippingAddress *Address `json:"shipping_address"`
667
}
668
type ConfirmationTokenPaymentMethodPreviewCardWalletSamsungPay struct{}
669
type ConfirmationTokenPaymentMethodPreviewCardWalletVisaCheckout struct {
670
        // Owner's verified billing address. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
671
        BillingAddress *Address `json:"billing_address"`
672
        // Owner's verified email. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
673
        Email string `json:"email"`
674
        // Owner's verified full name. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
675
        Name string `json:"name"`
676
        // Owner's verified shipping address. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
677
        ShippingAddress *Address `json:"shipping_address"`
678
}
679

680
// If this Card is part of a card wallet, this contains the details of the card wallet.
681
type ConfirmationTokenPaymentMethodPreviewCardWallet struct {
682
        AmexExpressCheckout *ConfirmationTokenPaymentMethodPreviewCardWalletAmexExpressCheckout `json:"amex_express_checkout"`
683
        ApplePay            *ConfirmationTokenPaymentMethodPreviewCardWalletApplePay            `json:"apple_pay"`
684
        // (For tokenized numbers only.) The last four digits of the device account number.
685
        DynamicLast4 string                                                     `json:"dynamic_last4"`
686
        GooglePay    *ConfirmationTokenPaymentMethodPreviewCardWalletGooglePay  `json:"google_pay"`
687
        Link         *ConfirmationTokenPaymentMethodPreviewCardWalletLink       `json:"link"`
688
        Masterpass   *ConfirmationTokenPaymentMethodPreviewCardWalletMasterpass `json:"masterpass"`
689
        SamsungPay   *ConfirmationTokenPaymentMethodPreviewCardWalletSamsungPay `json:"samsung_pay"`
690
        // The type of the card wallet, one of `amex_express_checkout`, `apple_pay`, `google_pay`, `masterpass`, `samsung_pay`, `visa_checkout`, or `link`. An additional hash is included on the Wallet subhash with a name matching this value. It contains additional information specific to the card wallet type.
691
        Type         ConfirmationTokenPaymentMethodPreviewCardWalletType          `json:"type"`
692
        VisaCheckout *ConfirmationTokenPaymentMethodPreviewCardWalletVisaCheckout `json:"visa_checkout"`
693
}
694
type ConfirmationTokenPaymentMethodPreviewCard struct {
695
        // Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
696
        Brand string `json:"brand"`
697
        // Checks on Card address and CVC if provided.
698
        Checks *ConfirmationTokenPaymentMethodPreviewCardChecks `json:"checks"`
699
        // Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
700
        Country string `json:"country"`
701
        // A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.)
702
        Description string `json:"description"`
703
        // The brand to use when displaying the card, this accounts for customer's brand choice on dual-branded cards. Can be `american_express`, `cartes_bancaires`, `diners_club`, `discover`, `eftpos_australia`, `interac`, `jcb`, `mastercard`, `union_pay`, `visa`, or `other` and may contain more values in the future.
704
        DisplayBrand string `json:"display_brand"`
705
        // Two-digit number representing the card's expiration month.
706
        ExpMonth int64 `json:"exp_month"`
707
        // Four-digit number representing the card's expiration year.
708
        ExpYear int64 `json:"exp_year"`
709
        // Uniquely identifies this particular card number. You can use this attribute to check whether two customers who've signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number.
710
        //
711
        // *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.*
712
        Fingerprint string `json:"fingerprint"`
713
        // Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
714
        Funding string `json:"funding"`
715
        // Details of the original PaymentMethod that created this object.
716
        GeneratedFrom *ConfirmationTokenPaymentMethodPreviewCardGeneratedFrom `json:"generated_from"`
717
        // Issuer identification number of the card. (For internal use only and not typically available in standard API requests.)
718
        IIN string `json:"iin"`
719
        // The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.)
720
        Issuer string `json:"issuer"`
721
        // The last four digits of the card.
722
        Last4 string `json:"last4"`
723
        // Contains information about card networks that can be used to process the payment.
724
        Networks *ConfirmationTokenPaymentMethodPreviewCardNetworks `json:"networks"`
725
        // Contains details on how this Card may be used for 3D Secure authentication.
726
        ThreeDSecureUsage *ConfirmationTokenPaymentMethodPreviewCardThreeDSecureUsage `json:"three_d_secure_usage"`
727
        // If this Card is part of a card wallet, this contains the details of the card wallet.
728
        Wallet *ConfirmationTokenPaymentMethodPreviewCardWallet `json:"wallet"`
729
}
730

731
// Contains information about card networks that can be used to process the payment.
732
type ConfirmationTokenPaymentMethodPreviewCardPresentNetworks struct {
733
        // All available networks for the card.
734
        Available []string `json:"available"`
735
        // The preferred network for the card.
736
        Preferred string `json:"preferred"`
737
}
738

739
// Details about payment methods collected offline.
740
type ConfirmationTokenPaymentMethodPreviewCardPresentOffline struct {
741
        // Time at which the payment was collected while offline
742
        StoredAt int64 `json:"stored_at"`
743
        // The method used to process this payment method offline. Only deferred is allowed.
744
        Type ConfirmationTokenPaymentMethodPreviewCardPresentOfflineType `json:"type"`
745
}
746
type ConfirmationTokenPaymentMethodPreviewCardPresentWallet struct {
747
        // The type of mobile wallet, one of `apple_pay`, `google_pay`, `samsung_pay`, or `unknown`.
748
        Type ConfirmationTokenPaymentMethodPreviewCardPresentWalletType `json:"type"`
749
}
750
type ConfirmationTokenPaymentMethodPreviewCardPresent struct {
751
        // Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
752
        Brand string `json:"brand"`
753
        // The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card.
754
        BrandProduct string `json:"brand_product"`
755
        // The cardholder name as read from the card, in [ISO 7813](https://en.wikipedia.org/wiki/ISO/IEC_7813) format. May include alphanumeric characters, special characters and first/last name separator (`/`). In some cases, the cardholder name may not be available depending on how the issuer has configured the card. Cardholder name is typically not available on swipe or contactless payments, such as those made with Apple Pay and Google Pay.
756
        CardholderName string `json:"cardholder_name"`
757
        // Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
758
        Country string `json:"country"`
759
        // A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.)
760
        Description string `json:"description"`
761
        // Two-digit number representing the card's expiration month.
762
        ExpMonth int64 `json:"exp_month"`
763
        // Four-digit number representing the card's expiration year.
764
        ExpYear int64 `json:"exp_year"`
765
        // Uniquely identifies this particular card number. You can use this attribute to check whether two customers who've signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number.
766
        //
767
        // *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.*
768
        Fingerprint string `json:"fingerprint"`
769
        // Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
770
        Funding string `json:"funding"`
771
        // Issuer identification number of the card. (For internal use only and not typically available in standard API requests.)
772
        IIN string `json:"iin"`
773
        // The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.)
774
        Issuer string `json:"issuer"`
775
        // The last four digits of the card.
776
        Last4 string `json:"last4"`
777
        // Contains information about card networks that can be used to process the payment.
778
        Networks *ConfirmationTokenPaymentMethodPreviewCardPresentNetworks `json:"networks"`
779
        // Details about payment methods collected offline.
780
        Offline *ConfirmationTokenPaymentMethodPreviewCardPresentOffline `json:"offline"`
781
        // EMV tag 5F2D. Preferred languages specified by the integrated circuit chip.
782
        PreferredLocales []string `json:"preferred_locales"`
783
        // How card details were read in this transaction.
784
        ReadMethod ConfirmationTokenPaymentMethodPreviewCardPresentReadMethod `json:"read_method"`
785
        Wallet     *ConfirmationTokenPaymentMethodPreviewCardPresentWallet    `json:"wallet"`
786
}
787
type ConfirmationTokenPaymentMethodPreviewCashApp struct {
788
        // A unique and immutable identifier assigned by Cash App to every buyer.
789
        BuyerID string `json:"buyer_id"`
790
        // A public identifier for buyers using Cash App.
791
        Cashtag string `json:"cashtag"`
792
}
793
type ConfirmationTokenPaymentMethodPreviewCustomerBalance struct{}
794
type ConfirmationTokenPaymentMethodPreviewEPS struct {
795
        // The customer's bank. Should be one of `arzte_und_apotheker_bank`, `austrian_anadi_bank_ag`, `bank_austria`, `bankhaus_carl_spangler`, `bankhaus_schelhammer_und_schattera_ag`, `bawag_psk_ag`, `bks_bank_ag`, `brull_kallmus_bank_ag`, `btv_vier_lander_bank`, `capital_bank_grawe_gruppe_ag`, `deutsche_bank_ag`, `dolomitenbank`, `easybank_ag`, `erste_bank_und_sparkassen`, `hypo_alpeadriabank_international_ag`, `hypo_noe_lb_fur_niederosterreich_u_wien`, `hypo_oberosterreich_salzburg_steiermark`, `hypo_tirol_bank_ag`, `hypo_vorarlberg_bank_ag`, `hypo_bank_burgenland_aktiengesellschaft`, `marchfelder_bank`, `oberbank_ag`, `raiffeisen_bankengruppe_osterreich`, `schoellerbank_ag`, `sparda_bank_wien`, `volksbank_gruppe`, `volkskreditbank_ag`, or `vr_bank_braunau`.
796
        Bank ConfirmationTokenPaymentMethodPreviewEPSBank `json:"bank"`
797
}
798
type ConfirmationTokenPaymentMethodPreviewFPX struct {
799
        // Account holder type, if provided. Can be one of `individual` or `company`.
800
        AccountHolderType ConfirmationTokenPaymentMethodPreviewFPXAccountHolderType `json:"account_holder_type"`
801
        // The customer's bank, if provided. Can be one of `affin_bank`, `agrobank`, `alliance_bank`, `ambank`, `bank_islam`, `bank_muamalat`, `bank_rakyat`, `bsn`, `cimb`, `hong_leong_bank`, `hsbc`, `kfh`, `maybank2u`, `ocbc`, `public_bank`, `rhb`, `standard_chartered`, `uob`, `deutsche_bank`, `maybank2e`, `pb_enterprise`, or `bank_of_china`.
802
        Bank ConfirmationTokenPaymentMethodPreviewFPXBank `json:"bank"`
803
}
804
type ConfirmationTokenPaymentMethodPreviewGiropay struct{}
805
type ConfirmationTokenPaymentMethodPreviewGrabpay struct{}
806
type ConfirmationTokenPaymentMethodPreviewIDEAL struct {
807
        // The customer's bank, if provided. Can be one of `abn_amro`, `asn_bank`, `bunq`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
808
        Bank ConfirmationTokenPaymentMethodPreviewIDEALBank `json:"bank"`
809
        // The Bank Identifier Code of the customer's bank, if the bank was provided.
810
        BIC ConfirmationTokenPaymentMethodPreviewIDEALBIC `json:"bic"`
811
}
812

813
// Contains information about card networks that can be used to process the payment.
814
type ConfirmationTokenPaymentMethodPreviewInteracPresentNetworks struct {
815
        // All available networks for the card.
816
        Available []string `json:"available"`
817
        // The preferred network for the card.
818
        Preferred string `json:"preferred"`
819
}
820
type ConfirmationTokenPaymentMethodPreviewInteracPresent struct {
821
        // Card brand. Can be `interac`, `mastercard` or `visa`.
822
        Brand string `json:"brand"`
823
        // The cardholder name as read from the card, in [ISO 7813](https://en.wikipedia.org/wiki/ISO/IEC_7813) format. May include alphanumeric characters, special characters and first/last name separator (`/`). In some cases, the cardholder name may not be available depending on how the issuer has configured the card. Cardholder name is typically not available on swipe or contactless payments, such as those made with Apple Pay and Google Pay.
824
        CardholderName string `json:"cardholder_name"`
825
        // Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
826
        Country string `json:"country"`
827
        // A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.)
828
        Description string `json:"description"`
829
        // Two-digit number representing the card's expiration month.
830
        ExpMonth int64 `json:"exp_month"`
831
        // Four-digit number representing the card's expiration year.
832
        ExpYear int64 `json:"exp_year"`
833
        // Uniquely identifies this particular card number. You can use this attribute to check whether two customers who've signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number.
834
        //
835
        // *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.*
836
        Fingerprint string `json:"fingerprint"`
837
        // Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
838
        Funding string `json:"funding"`
839
        // Issuer identification number of the card. (For internal use only and not typically available in standard API requests.)
840
        IIN string `json:"iin"`
841
        // The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.)
842
        Issuer string `json:"issuer"`
843
        // The last four digits of the card.
844
        Last4 string `json:"last4"`
845
        // Contains information about card networks that can be used to process the payment.
846
        Networks *ConfirmationTokenPaymentMethodPreviewInteracPresentNetworks `json:"networks"`
847
        // EMV tag 5F2D. Preferred languages specified by the integrated circuit chip.
848
        PreferredLocales []string `json:"preferred_locales"`
849
        // How card details were read in this transaction.
850
        ReadMethod ConfirmationTokenPaymentMethodPreviewInteracPresentReadMethod `json:"read_method"`
851
}
852
type ConfirmationTokenPaymentMethodPreviewKakaoPay struct{}
853

854
// The customer's date of birth, if provided.
855
type ConfirmationTokenPaymentMethodPreviewKlarnaDOB struct {
856
        // The day of birth, between 1 and 31.
857
        Day int64 `json:"day"`
858
        // The month of birth, between 1 and 12.
859
        Month int64 `json:"month"`
860
        // The four-digit year of birth.
861
        Year int64 `json:"year"`
862
}
863
type ConfirmationTokenPaymentMethodPreviewKlarna struct {
864
        // The customer's date of birth, if provided.
865
        DOB *ConfirmationTokenPaymentMethodPreviewKlarnaDOB `json:"dob"`
866
}
867
type ConfirmationTokenPaymentMethodPreviewKonbini struct{}
868
type ConfirmationTokenPaymentMethodPreviewKrCard struct {
869
        // The local credit or debit card brand.
870
        Brand ConfirmationTokenPaymentMethodPreviewKrCardBrand `json:"brand"`
871
        // The last four digits of the card. This may not be present for American Express cards.
872
        Last4 string `json:"last4"`
873
}
874
type ConfirmationTokenPaymentMethodPreviewLink struct {
875
        // Account owner's email address.
876
        Email string `json:"email"`
877
        // [Deprecated] This is a legacy parameter that no longer has any function.
878
        // Deprecated:
879
        PersistentToken string `json:"persistent_token"`
880
}
881
type ConfirmationTokenPaymentMethodPreviewMbWay struct{}
882
type ConfirmationTokenPaymentMethodPreviewMobilepay struct{}
883
type ConfirmationTokenPaymentMethodPreviewMultibanco struct{}
884
type ConfirmationTokenPaymentMethodPreviewNaverPay struct {
885
        // Whether to fund this transaction with Naver Pay points or a card.
886
        Funding ConfirmationTokenPaymentMethodPreviewNaverPayFunding `json:"funding"`
887
}
888
type ConfirmationTokenPaymentMethodPreviewOXXO struct{}
889
type ConfirmationTokenPaymentMethodPreviewP24 struct {
890
        // The customer's bank, if provided.
891
        Bank ConfirmationTokenPaymentMethodPreviewP24Bank `json:"bank"`
892
}
893
type ConfirmationTokenPaymentMethodPreviewPayco struct{}
894
type ConfirmationTokenPaymentMethodPreviewPayNow struct{}
895
type ConfirmationTokenPaymentMethodPreviewPaypal struct {
896
        // Uniquely identifies this particular PayPal account. You can use this attribute to check whether two PayPal accounts are the same.
897
        Fingerprint string `json:"fingerprint"`
898
        // Owner's email. Values are provided by PayPal directly
899
        // (if supported) at the time of authorization or settlement. They cannot be set or mutated.
900
        PayerEmail string `json:"payer_email"`
901
        // PayPal account PayerID. This identifier uniquely identifies the PayPal customer.
902
        PayerID string `json:"payer_id"`
903
        // Owner's verified email. Values are verified or provided by PayPal directly
904
        // (if supported) at the time of authorization or settlement. They cannot be set or mutated.
905
        VerifiedEmail string `json:"verified_email"`
906
}
907
type ConfirmationTokenPaymentMethodPreviewPayto struct {
908
        // Bank-State-Branch number of the bank account.
909
        BSBNumber string `json:"bsb_number"`
910
        // Last four digits of the bank account number.
911
        Last4 string `json:"last4"`
912
        // The PayID alias for the bank account.
913
        PayID string `json:"pay_id"`
914
}
915
type ConfirmationTokenPaymentMethodPreviewPix struct{}
916
type ConfirmationTokenPaymentMethodPreviewPromptPay struct{}
917
type ConfirmationTokenPaymentMethodPreviewRechnungDOB struct {
918
        // The day of birth, between 1 and 31.
919
        Day int64 `json:"day"`
920
        // The month of birth, between 1 and 12.
921
        Month int64 `json:"month"`
922
        // The four-digit year of birth.
923
        Year int64 `json:"year"`
924
}
925
type ConfirmationTokenPaymentMethodPreviewRechnung struct {
926
        DOB *ConfirmationTokenPaymentMethodPreviewRechnungDOB `json:"dob"`
927
}
928
type ConfirmationTokenPaymentMethodPreviewRevolutPay struct{}
929
type ConfirmationTokenPaymentMethodPreviewSamsungPay struct{}
930

931
// Information about the object that generated this PaymentMethod.
932
type ConfirmationTokenPaymentMethodPreviewSEPADebitGeneratedFrom struct {
933
        // The ID of the Charge that generated this PaymentMethod, if any.
934
        Charge *Charge `json:"charge"`
935
        // The ID of the SetupAttempt that generated this PaymentMethod, if any.
936
        SetupAttempt *SetupAttempt `json:"setup_attempt"`
937
}
938
type ConfirmationTokenPaymentMethodPreviewSEPADebit struct {
939
        // Bank code of bank associated with the bank account.
940
        BankCode string `json:"bank_code"`
941
        // Branch code of bank associated with the bank account.
942
        BranchCode string `json:"branch_code"`
943
        // Two-letter ISO code representing the country the bank account is located in.
944
        Country string `json:"country"`
945
        // Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
946
        Fingerprint string `json:"fingerprint"`
947
        // Information about the object that generated this PaymentMethod.
948
        GeneratedFrom *ConfirmationTokenPaymentMethodPreviewSEPADebitGeneratedFrom `json:"generated_from"`
949
        // Last four characters of the IBAN.
950
        Last4 string `json:"last4"`
951
}
952
type ConfirmationTokenPaymentMethodPreviewSofort struct {
953
        // Two-letter ISO code representing the country the bank account is located in.
954
        Country string `json:"country"`
955
}
956
type ConfirmationTokenPaymentMethodPreviewSwish struct{}
957
type ConfirmationTokenPaymentMethodPreviewTWINT struct{}
958

959
// Contains information about US bank account networks that can be used.
960
type ConfirmationTokenPaymentMethodPreviewUSBankAccountNetworks struct {
961
        // The preferred network.
962
        Preferred string `json:"preferred"`
963
        // All supported networks.
964
        Supported []ConfirmationTokenPaymentMethodPreviewUSBankAccountNetworksSupported `json:"supported"`
965
}
966
type ConfirmationTokenPaymentMethodPreviewUSBankAccountStatusDetailsBlocked struct {
967
        // The ACH network code that resulted in this block.
968
        NetworkCode ConfirmationTokenPaymentMethodPreviewUSBankAccountStatusDetailsBlockedNetworkCode `json:"network_code"`
969
        // The reason why this PaymentMethod's fingerprint has been blocked
970
        Reason ConfirmationTokenPaymentMethodPreviewUSBankAccountStatusDetailsBlockedReason `json:"reason"`
971
}
972

973
// Contains information about the future reusability of this PaymentMethod.
974
type ConfirmationTokenPaymentMethodPreviewUSBankAccountStatusDetails struct {
975
        Blocked *ConfirmationTokenPaymentMethodPreviewUSBankAccountStatusDetailsBlocked `json:"blocked"`
976
}
977
type ConfirmationTokenPaymentMethodPreviewUSBankAccount struct {
978
        // Account holder type: individual or company.
979
        AccountHolderType ConfirmationTokenPaymentMethodPreviewUSBankAccountAccountHolderType `json:"account_holder_type"`
980
        // Account number of the bank account.
981
        AccountNumber string `json:"account_number"`
982
        // Account type: checkings or savings. Defaults to checking if omitted.
983
        AccountType ConfirmationTokenPaymentMethodPreviewUSBankAccountAccountType `json:"account_type"`
984
        // The name of the bank.
985
        BankName string `json:"bank_name"`
986
        // The ID of the Financial Connections Account used to create the payment method.
987
        FinancialConnectionsAccount string `json:"financial_connections_account"`
988
        // Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
989
        Fingerprint string `json:"fingerprint"`
990
        // Last four digits of the bank account number.
991
        Last4 string `json:"last4"`
992
        // Contains information about US bank account networks that can be used.
993
        Networks *ConfirmationTokenPaymentMethodPreviewUSBankAccountNetworks `json:"networks"`
994
        // Routing number of the bank account.
995
        RoutingNumber string `json:"routing_number"`
996
        // Contains information about the future reusability of this PaymentMethod.
997
        StatusDetails *ConfirmationTokenPaymentMethodPreviewUSBankAccountStatusDetails `json:"status_details"`
998
}
999
type ConfirmationTokenPaymentMethodPreviewWeChatPay struct{}
1000
type ConfirmationTokenPaymentMethodPreviewZip struct{}
1001

1002
// Payment details collected by the Payment Element, used to create a PaymentMethod when a PaymentIntent or SetupIntent is confirmed with this ConfirmationToken.
1003
type ConfirmationTokenPaymentMethodPreview struct {
1004
        ACSSDebit        *ConfirmationTokenPaymentMethodPreviewACSSDebit        `json:"acss_debit"`
1005
        Affirm           *ConfirmationTokenPaymentMethodPreviewAffirm           `json:"affirm"`
1006
        AfterpayClearpay *ConfirmationTokenPaymentMethodPreviewAfterpayClearpay `json:"afterpay_clearpay"`
1007
        Alipay           *ConfirmationTokenPaymentMethodPreviewAlipay           `json:"alipay"`
1008
        // This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to “unspecified”.
1009
        AllowRedisplay ConfirmationTokenPaymentMethodPreviewAllowRedisplay  `json:"allow_redisplay"`
1010
        AmazonPay      *ConfirmationTokenPaymentMethodPreviewAmazonPay      `json:"amazon_pay"`
1011
        AUBECSDebit    *ConfirmationTokenPaymentMethodPreviewAUBECSDebit    `json:"au_becs_debit"`
1012
        BACSDebit      *ConfirmationTokenPaymentMethodPreviewBACSDebit      `json:"bacs_debit"`
1013
        Bancontact     *ConfirmationTokenPaymentMethodPreviewBancontact     `json:"bancontact"`
1014
        BillingDetails *ConfirmationTokenPaymentMethodPreviewBillingDetails `json:"billing_details"`
1015
        BLIK           *ConfirmationTokenPaymentMethodPreviewBLIK           `json:"blik"`
1016
        Boleto         *ConfirmationTokenPaymentMethodPreviewBoleto         `json:"boleto"`
1017
        Card           *ConfirmationTokenPaymentMethodPreviewCard           `json:"card"`
1018
        CardPresent    *ConfirmationTokenPaymentMethodPreviewCardPresent    `json:"card_present"`
1019
        CashApp        *ConfirmationTokenPaymentMethodPreviewCashApp        `json:"cashapp"`
1020
        // The ID of the Customer to which this PaymentMethod is saved. This will not be set when the PaymentMethod has not been saved to a Customer.
1021
        Customer        *Customer                                             `json:"customer"`
1022
        CustomerBalance *ConfirmationTokenPaymentMethodPreviewCustomerBalance `json:"customer_balance"`
1023
        EPS             *ConfirmationTokenPaymentMethodPreviewEPS             `json:"eps"`
1024
        FPX             *ConfirmationTokenPaymentMethodPreviewFPX             `json:"fpx"`
1025
        Giropay         *ConfirmationTokenPaymentMethodPreviewGiropay         `json:"giropay"`
1026
        Grabpay         *ConfirmationTokenPaymentMethodPreviewGrabpay         `json:"grabpay"`
1027
        IDEAL           *ConfirmationTokenPaymentMethodPreviewIDEAL           `json:"ideal"`
1028
        InteracPresent  *ConfirmationTokenPaymentMethodPreviewInteracPresent  `json:"interac_present"`
1029
        KakaoPay        *ConfirmationTokenPaymentMethodPreviewKakaoPay        `json:"kakao_pay"`
1030
        Klarna          *ConfirmationTokenPaymentMethodPreviewKlarna          `json:"klarna"`
1031
        Konbini         *ConfirmationTokenPaymentMethodPreviewKonbini         `json:"konbini"`
1032
        KrCard          *ConfirmationTokenPaymentMethodPreviewKrCard          `json:"kr_card"`
1033
        Link            *ConfirmationTokenPaymentMethodPreviewLink            `json:"link"`
1034
        MbWay           *ConfirmationTokenPaymentMethodPreviewMbWay           `json:"mb_way"`
1035
        Mobilepay       *ConfirmationTokenPaymentMethodPreviewMobilepay       `json:"mobilepay"`
1036
        Multibanco      *ConfirmationTokenPaymentMethodPreviewMultibanco      `json:"multibanco"`
1037
        NaverPay        *ConfirmationTokenPaymentMethodPreviewNaverPay        `json:"naver_pay"`
1038
        OXXO            *ConfirmationTokenPaymentMethodPreviewOXXO            `json:"oxxo"`
1039
        P24             *ConfirmationTokenPaymentMethodPreviewP24             `json:"p24"`
1040
        Payco           *ConfirmationTokenPaymentMethodPreviewPayco           `json:"payco"`
1041
        PayNow          *ConfirmationTokenPaymentMethodPreviewPayNow          `json:"paynow"`
1042
        Paypal          *ConfirmationTokenPaymentMethodPreviewPaypal          `json:"paypal"`
1043
        Payto           *ConfirmationTokenPaymentMethodPreviewPayto           `json:"payto"`
1044
        Pix             *ConfirmationTokenPaymentMethodPreviewPix             `json:"pix"`
1045
        PromptPay       *ConfirmationTokenPaymentMethodPreviewPromptPay       `json:"promptpay"`
1046
        Rechnung        *ConfirmationTokenPaymentMethodPreviewRechnung        `json:"rechnung"`
1047
        RevolutPay      *ConfirmationTokenPaymentMethodPreviewRevolutPay      `json:"revolut_pay"`
1048
        SamsungPay      *ConfirmationTokenPaymentMethodPreviewSamsungPay      `json:"samsung_pay"`
1049
        SEPADebit       *ConfirmationTokenPaymentMethodPreviewSEPADebit       `json:"sepa_debit"`
1050
        Sofort          *ConfirmationTokenPaymentMethodPreviewSofort          `json:"sofort"`
1051
        Swish           *ConfirmationTokenPaymentMethodPreviewSwish           `json:"swish"`
1052
        TWINT           *ConfirmationTokenPaymentMethodPreviewTWINT           `json:"twint"`
1053
        // The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.
1054
        Type          ConfirmationTokenPaymentMethodPreviewType           `json:"type"`
1055
        USBankAccount *ConfirmationTokenPaymentMethodPreviewUSBankAccount `json:"us_bank_account"`
1056
        WeChatPay     *ConfirmationTokenPaymentMethodPreviewWeChatPay     `json:"wechat_pay"`
1057
        Zip           *ConfirmationTokenPaymentMethodPreviewZip           `json:"zip"`
1058
}
1059

1060
// Shipping information collected on this ConfirmationToken.
1061
type ConfirmationTokenShipping struct {
1062
        Address *Address `json:"address"`
1063
        // Recipient name.
1064
        Name string `json:"name"`
1065
        // Recipient phone (including extension).
1066
        Phone string `json:"phone"`
1067
}
1068

1069
// ConfirmationTokens help transport client side data collected by Stripe JS over
1070
// to your server for confirming a PaymentIntent or SetupIntent. If the confirmation
1071
// is successful, values present on the ConfirmationToken are written onto the Intent.
1072
//
1073
// To learn more about how to use ConfirmationToken, visit the related guides:
1074
// - [Finalize payments on the server](https://stripe.com/docs/payments/finalize-payments-on-the-server)
1075
// - [Build two-step confirmation](https://stripe.com/docs/payments/build-a-two-step-confirmation).
1076
type ConfirmationToken struct {
1077
        APIResource
1078
        // Time at which the object was created. Measured in seconds since the Unix epoch.
1079
        Created int64 `json:"created"`
1080
        // Time at which this ConfirmationToken expires and can no longer be used to confirm a PaymentIntent or SetupIntent.
1081
        ExpiresAt int64 `json:"expires_at"`
1082
        // Unique identifier for the object.
1083
        ID string `json:"id"`
1084
        // Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
1085
        Livemode bool `json:"livemode"`
1086
        // Data used for generating a Mandate.
1087
        MandateData *ConfirmationTokenMandateData `json:"mandate_data"`
1088
        // String representing the object's type. Objects of the same type share the same value.
1089
        Object string `json:"object"`
1090
        // ID of the PaymentIntent that this ConfirmationToken was used to confirm, or null if this ConfirmationToken has not yet been used.
1091
        PaymentIntent string `json:"payment_intent"`
1092
        // Payment-method-specific configuration for this ConfirmationToken.
1093
        PaymentMethodOptions *ConfirmationTokenPaymentMethodOptions `json:"payment_method_options"`
1094
        // Payment details collected by the Payment Element, used to create a PaymentMethod when a PaymentIntent or SetupIntent is confirmed with this ConfirmationToken.
1095
        PaymentMethodPreview *ConfirmationTokenPaymentMethodPreview `json:"payment_method_preview"`
1096
        // Return URL used to confirm the Intent.
1097
        ReturnURL string `json:"return_url"`
1098
        // Indicates that you intend to make future payments with this ConfirmationToken's payment method.
1099
        //
1100
        // The presence of this property will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete.
1101
        SetupFutureUsage ConfirmationTokenSetupFutureUsage `json:"setup_future_usage"`
1102
        // ID of the SetupIntent that this ConfirmationToken was used to confirm, or null if this ConfirmationToken has not yet been used.
1103
        SetupIntent string `json:"setup_intent"`
1104
        // Shipping information collected on this ConfirmationToken.
1105
        Shipping *ConfirmationTokenShipping `json:"shipping"`
1106
        // Indicates whether the Stripe SDK is used to handle confirmation flow. Defaults to `true` on ConfirmationToken.
1107
        UseStripeSDK bool `json:"use_stripe_sdk"`
1108
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc