-
Notifications
You must be signed in to change notification settings - Fork 472
/
Copy pathtesthelpers_confirmationtoken.go
427 lines (365 loc) · 25.7 KB
/
testhelpers_confirmationtoken.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
//
//
// File generated from our OpenAPI spec
//
//
package stripe
// If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
type TestHelpersConfirmationTokenPaymentMethodDataACSSDebitParams struct {
// Customer's bank account number.
AccountNumber *string `form:"account_number"`
// Institution number of the customer's bank.
InstitutionNumber *string `form:"institution_number"`
// Transit number of the customer's bank.
TransitNumber *string `form:"transit_number"`
}
// If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
type TestHelpersConfirmationTokenPaymentMethodDataAffirmParams struct{}
// If this is an `AfterpayClearpay` PaymentMethod, this hash contains details about the AfterpayClearpay payment method.
type TestHelpersConfirmationTokenPaymentMethodDataAfterpayClearpayParams struct{}
// If this is an `Alipay` PaymentMethod, this hash contains details about the Alipay payment method.
type TestHelpersConfirmationTokenPaymentMethodDataAlipayParams struct{}
// If this is a Alma PaymentMethod, this hash contains details about the Alma payment method.
type TestHelpersConfirmationTokenPaymentMethodDataAlmaParams struct{}
// If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method.
type TestHelpersConfirmationTokenPaymentMethodDataAmazonPayParams struct{}
// If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account.
type TestHelpersConfirmationTokenPaymentMethodDataAUBECSDebitParams struct {
// The account number for the bank account.
AccountNumber *string `form:"account_number"`
// Bank-State-Branch number of the bank account.
BSBNumber *string `form:"bsb_number"`
}
// If this is a `bacs_debit` PaymentMethod, this hash contains details about the Bacs Direct Debit bank account.
type TestHelpersConfirmationTokenPaymentMethodDataBACSDebitParams struct {
// Account number of the bank account that the funds will be debited from.
AccountNumber *string `form:"account_number"`
// Sort code of the bank account. (e.g., `10-20-30`)
SortCode *string `form:"sort_code"`
}
// If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
type TestHelpersConfirmationTokenPaymentMethodDataBancontactParams struct{}
// Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
type TestHelpersConfirmationTokenPaymentMethodDataBillingDetailsParams struct {
// Billing address.
Address *AddressParams `form:"address"`
// Email address.
Email *string `form:"email"`
// Full name.
Name *string `form:"name"`
// Billing phone number (including extension).
Phone *string `form:"phone"`
}
// If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method.
type TestHelpersConfirmationTokenPaymentMethodDataBLIKParams struct{}
// If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method.
type TestHelpersConfirmationTokenPaymentMethodDataBoletoParams struct {
// The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)
TaxID *string `form:"tax_id"`
}
// If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method.
type TestHelpersConfirmationTokenPaymentMethodDataCashAppParams struct{}
// If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method.
type TestHelpersConfirmationTokenPaymentMethodDataCustomerBalanceParams struct{}
// If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method.
type TestHelpersConfirmationTokenPaymentMethodDataEPSParams struct {
// The customer's bank.
Bank *string `form:"bank"`
}
// If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method.
type TestHelpersConfirmationTokenPaymentMethodDataFPXParams struct {
// Account holder type for FPX transaction
AccountHolderType *string `form:"account_holder_type"`
// The customer's bank.
Bank *string `form:"bank"`
}
// If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
type TestHelpersConfirmationTokenPaymentMethodDataGiropayParams struct{}
// If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
type TestHelpersConfirmationTokenPaymentMethodDataGopayParams struct{}
// If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
type TestHelpersConfirmationTokenPaymentMethodDataGrabpayParams struct{}
// If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
type TestHelpersConfirmationTokenPaymentMethodDataIDBankTransferParams struct {
// Bank where the account is held.
Bank *string `form:"bank"`
}
// If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
type TestHelpersConfirmationTokenPaymentMethodDataIDEALParams struct {
// The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
Bank *string `form:"bank"`
}
// If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
type TestHelpersConfirmationTokenPaymentMethodDataInteracPresentParams struct{}
// If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method.
type TestHelpersConfirmationTokenPaymentMethodDataKakaoPayParams struct{}
// Customer's date of birth
type TestHelpersConfirmationTokenPaymentMethodDataKlarnaDOBParams struct {
// The day of birth, between 1 and 31.
Day *int64 `form:"day"`
// The month of birth, between 1 and 12.
Month *int64 `form:"month"`
// The four-digit year of birth.
Year *int64 `form:"year"`
}
// If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method.
type TestHelpersConfirmationTokenPaymentMethodDataKlarnaParams struct {
// Customer's date of birth
DOB *TestHelpersConfirmationTokenPaymentMethodDataKlarnaDOBParams `form:"dob"`
}
// If this is a `konbini` PaymentMethod, this hash contains details about the Konbini payment method.
type TestHelpersConfirmationTokenPaymentMethodDataKonbiniParams struct{}
// If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method.
type TestHelpersConfirmationTokenPaymentMethodDataKrCardParams struct{}
// If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
type TestHelpersConfirmationTokenPaymentMethodDataLinkParams struct{}
// If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
type TestHelpersConfirmationTokenPaymentMethodDataMbWayParams struct{}
// If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method.
type TestHelpersConfirmationTokenPaymentMethodDataMobilepayParams struct{}
// If this is a `multibanco` PaymentMethod, this hash contains details about the Multibanco payment method.
type TestHelpersConfirmationTokenPaymentMethodDataMultibancoParams struct{}
// If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method.
type TestHelpersConfirmationTokenPaymentMethodDataNaverPayParams struct {
// Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
Funding *string `form:"funding"`
}
// If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method.
type TestHelpersConfirmationTokenPaymentMethodDataOXXOParams struct{}
// If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method.
type TestHelpersConfirmationTokenPaymentMethodDataP24Params struct {
// The customer's bank.
Bank *string `form:"bank"`
}
// If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method.
type TestHelpersConfirmationTokenPaymentMethodDataPayByBankParams struct{}
// If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method.
type TestHelpersConfirmationTokenPaymentMethodDataPaycoParams struct{}
// If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method.
type TestHelpersConfirmationTokenPaymentMethodDataPayNowParams struct{}
// If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
type TestHelpersConfirmationTokenPaymentMethodDataPaypalParams struct{}
// If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
type TestHelpersConfirmationTokenPaymentMethodDataPaytoParams struct {
// The account number for the bank account.
AccountNumber *string `form:"account_number"`
// Bank-State-Branch number of the bank account.
BSBNumber *string `form:"bsb_number"`
// The PayID alias for the bank account.
PayID *string `form:"pay_id"`
}
// If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
type TestHelpersConfirmationTokenPaymentMethodDataPixParams struct{}
// If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
type TestHelpersConfirmationTokenPaymentMethodDataPromptPayParams struct{}
// If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
type TestHelpersConfirmationTokenPaymentMethodDataQrisParams struct{}
// Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
type TestHelpersConfirmationTokenPaymentMethodDataRadarOptionsParams struct {
// A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
Session *string `form:"session"`
}
// Customer's date of birth
type TestHelpersConfirmationTokenPaymentMethodDataRechnungDOBParams struct {
// The day of birth, between 1 and 31.
Day *int64 `form:"day"`
// The month of birth, between 1 and 12.
Month *int64 `form:"month"`
// The four-digit year of birth.
Year *int64 `form:"year"`
}
// If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
type TestHelpersConfirmationTokenPaymentMethodDataRechnungParams struct {
// Customer's date of birth
DOB *TestHelpersConfirmationTokenPaymentMethodDataRechnungDOBParams `form:"dob"`
}
// If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
type TestHelpersConfirmationTokenPaymentMethodDataRevolutPayParams struct{}
// If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
type TestHelpersConfirmationTokenPaymentMethodDataSamsungPayParams struct{}
// If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
type TestHelpersConfirmationTokenPaymentMethodDataSEPADebitParams struct {
// IBAN of the bank account.
IBAN *string `form:"iban"`
}
// If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
type TestHelpersConfirmationTokenPaymentMethodDataShopeepayParams struct{}
// If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
type TestHelpersConfirmationTokenPaymentMethodDataSofortParams struct {
// Two-letter ISO code representing the country the bank account is located in.
Country *string `form:"country"`
}
// If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
type TestHelpersConfirmationTokenPaymentMethodDataSwishParams struct{}
// If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
type TestHelpersConfirmationTokenPaymentMethodDataTWINTParams struct{}
// If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method.
type TestHelpersConfirmationTokenPaymentMethodDataUSBankAccountParams struct {
// Account holder type: individual or company.
AccountHolderType *string `form:"account_holder_type"`
// Account number of the bank account.
AccountNumber *string `form:"account_number"`
// Account type: checkings or savings. Defaults to checking if omitted.
AccountType *string `form:"account_type"`
// The ID of a Financial Connections Account to use as a payment method.
FinancialConnectionsAccount *string `form:"financial_connections_account"`
// Routing number of the bank account.
RoutingNumber *string `form:"routing_number"`
}
// If this is an `wechat_pay` PaymentMethod, this hash contains details about the wechat_pay payment method.
type TestHelpersConfirmationTokenPaymentMethodDataWeChatPayParams struct{}
// If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method.
type TestHelpersConfirmationTokenPaymentMethodDataZipParams struct{}
// If provided, this hash will be used to create a PaymentMethod.
type TestHelpersConfirmationTokenPaymentMethodDataParams struct {
// If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
ACSSDebit *TestHelpersConfirmationTokenPaymentMethodDataACSSDebitParams `form:"acss_debit"`
// If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
Affirm *TestHelpersConfirmationTokenPaymentMethodDataAffirmParams `form:"affirm"`
// If this is an `AfterpayClearpay` PaymentMethod, this hash contains details about the AfterpayClearpay payment method.
AfterpayClearpay *TestHelpersConfirmationTokenPaymentMethodDataAfterpayClearpayParams `form:"afterpay_clearpay"`
// If this is an `Alipay` PaymentMethod, this hash contains details about the Alipay payment method.
Alipay *TestHelpersConfirmationTokenPaymentMethodDataAlipayParams `form:"alipay"`
// 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`.
AllowRedisplay *string `form:"allow_redisplay"`
// If this is a Alma PaymentMethod, this hash contains details about the Alma payment method.
Alma *TestHelpersConfirmationTokenPaymentMethodDataAlmaParams `form:"alma"`
// If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method.
AmazonPay *TestHelpersConfirmationTokenPaymentMethodDataAmazonPayParams `form:"amazon_pay"`
// If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account.
AUBECSDebit *TestHelpersConfirmationTokenPaymentMethodDataAUBECSDebitParams `form:"au_becs_debit"`
// If this is a `bacs_debit` PaymentMethod, this hash contains details about the Bacs Direct Debit bank account.
BACSDebit *TestHelpersConfirmationTokenPaymentMethodDataBACSDebitParams `form:"bacs_debit"`
// If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
Bancontact *TestHelpersConfirmationTokenPaymentMethodDataBancontactParams `form:"bancontact"`
// Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
BillingDetails *TestHelpersConfirmationTokenPaymentMethodDataBillingDetailsParams `form:"billing_details"`
// If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method.
BLIK *TestHelpersConfirmationTokenPaymentMethodDataBLIKParams `form:"blik"`
// If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method.
Boleto *TestHelpersConfirmationTokenPaymentMethodDataBoletoParams `form:"boleto"`
// If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method.
CashApp *TestHelpersConfirmationTokenPaymentMethodDataCashAppParams `form:"cashapp"`
// If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method.
CustomerBalance *TestHelpersConfirmationTokenPaymentMethodDataCustomerBalanceParams `form:"customer_balance"`
// If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method.
EPS *TestHelpersConfirmationTokenPaymentMethodDataEPSParams `form:"eps"`
// If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method.
FPX *TestHelpersConfirmationTokenPaymentMethodDataFPXParams `form:"fpx"`
// If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
Giropay *TestHelpersConfirmationTokenPaymentMethodDataGiropayParams `form:"giropay"`
// If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
Gopay *TestHelpersConfirmationTokenPaymentMethodDataGopayParams `form:"gopay"`
// If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
Grabpay *TestHelpersConfirmationTokenPaymentMethodDataGrabpayParams `form:"grabpay"`
// If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
IDBankTransfer *TestHelpersConfirmationTokenPaymentMethodDataIDBankTransferParams `form:"id_bank_transfer"`
// If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
IDEAL *TestHelpersConfirmationTokenPaymentMethodDataIDEALParams `form:"ideal"`
// If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
InteracPresent *TestHelpersConfirmationTokenPaymentMethodDataInteracPresentParams `form:"interac_present"`
// If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method.
KakaoPay *TestHelpersConfirmationTokenPaymentMethodDataKakaoPayParams `form:"kakao_pay"`
// If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method.
Klarna *TestHelpersConfirmationTokenPaymentMethodDataKlarnaParams `form:"klarna"`
// If this is a `konbini` PaymentMethod, this hash contains details about the Konbini payment method.
Konbini *TestHelpersConfirmationTokenPaymentMethodDataKonbiniParams `form:"konbini"`
// If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method.
KrCard *TestHelpersConfirmationTokenPaymentMethodDataKrCardParams `form:"kr_card"`
// If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
Link *TestHelpersConfirmationTokenPaymentMethodDataLinkParams `form:"link"`
// If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
MbWay *TestHelpersConfirmationTokenPaymentMethodDataMbWayParams `form:"mb_way"`
// Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
Metadata map[string]string `form:"metadata"`
// If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method.
Mobilepay *TestHelpersConfirmationTokenPaymentMethodDataMobilepayParams `form:"mobilepay"`
// If this is a `multibanco` PaymentMethod, this hash contains details about the Multibanco payment method.
Multibanco *TestHelpersConfirmationTokenPaymentMethodDataMultibancoParams `form:"multibanco"`
// If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method.
NaverPay *TestHelpersConfirmationTokenPaymentMethodDataNaverPayParams `form:"naver_pay"`
// If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method.
OXXO *TestHelpersConfirmationTokenPaymentMethodDataOXXOParams `form:"oxxo"`
// If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method.
P24 *TestHelpersConfirmationTokenPaymentMethodDataP24Params `form:"p24"`
// If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method.
PayByBank *TestHelpersConfirmationTokenPaymentMethodDataPayByBankParams `form:"pay_by_bank"`
// If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method.
Payco *TestHelpersConfirmationTokenPaymentMethodDataPaycoParams `form:"payco"`
// If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method.
PayNow *TestHelpersConfirmationTokenPaymentMethodDataPayNowParams `form:"paynow"`
// If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
Paypal *TestHelpersConfirmationTokenPaymentMethodDataPaypalParams `form:"paypal"`
// If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
Payto *TestHelpersConfirmationTokenPaymentMethodDataPaytoParams `form:"payto"`
// If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
Pix *TestHelpersConfirmationTokenPaymentMethodDataPixParams `form:"pix"`
// If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
PromptPay *TestHelpersConfirmationTokenPaymentMethodDataPromptPayParams `form:"promptpay"`
// If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
Qris *TestHelpersConfirmationTokenPaymentMethodDataQrisParams `form:"qris"`
// Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
RadarOptions *TestHelpersConfirmationTokenPaymentMethodDataRadarOptionsParams `form:"radar_options"`
// If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
Rechnung *TestHelpersConfirmationTokenPaymentMethodDataRechnungParams `form:"rechnung"`
// If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
RevolutPay *TestHelpersConfirmationTokenPaymentMethodDataRevolutPayParams `form:"revolut_pay"`
// If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
SamsungPay *TestHelpersConfirmationTokenPaymentMethodDataSamsungPayParams `form:"samsung_pay"`
// If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
SEPADebit *TestHelpersConfirmationTokenPaymentMethodDataSEPADebitParams `form:"sepa_debit"`
// If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
Shopeepay *TestHelpersConfirmationTokenPaymentMethodDataShopeepayParams `form:"shopeepay"`
// If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
Sofort *TestHelpersConfirmationTokenPaymentMethodDataSofortParams `form:"sofort"`
// If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
Swish *TestHelpersConfirmationTokenPaymentMethodDataSwishParams `form:"swish"`
// If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
TWINT *TestHelpersConfirmationTokenPaymentMethodDataTWINTParams `form:"twint"`
// 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.
Type *string `form:"type"`
// If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method.
USBankAccount *TestHelpersConfirmationTokenPaymentMethodDataUSBankAccountParams `form:"us_bank_account"`
// If this is an `wechat_pay` PaymentMethod, this hash contains details about the wechat_pay payment method.
WeChatPay *TestHelpersConfirmationTokenPaymentMethodDataWeChatPayParams `form:"wechat_pay"`
// If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method.
Zip *TestHelpersConfirmationTokenPaymentMethodDataZipParams `form:"zip"`
}
// AddMetadata adds a new key-value pair to the Metadata.
func (p *TestHelpersConfirmationTokenPaymentMethodDataParams) AddMetadata(key string, value string) {
if p.Metadata == nil {
p.Metadata = make(map[string]string)
}
p.Metadata[key] = value
}
// Shipping information for this ConfirmationToken.
type TestHelpersConfirmationTokenShippingParams struct {
// Shipping address
Address *AddressParams `form:"address"`
// Recipient name.
Name *string `form:"name"`
// Recipient phone (including extension)
Phone *string `form:"phone"`
}
// Creates a test mode Confirmation Token server side for your integration tests.
type TestHelpersConfirmationTokenParams struct {
Params `form:"*"`
// Specifies which fields in the response should be expanded.
Expand []*string `form:"expand"`
// ID of an existing PaymentMethod.
PaymentMethod *string `form:"payment_method"`
// If provided, this hash will be used to create a PaymentMethod.
PaymentMethodData *TestHelpersConfirmationTokenPaymentMethodDataParams `form:"payment_method_data"`
// Return URL used to confirm the Intent.
ReturnURL *string `form:"return_url"`
// Indicates that you intend to make future payments with this ConfirmationToken's payment method.
//
// 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.
SetupFutureUsage *string `form:"setup_future_usage"`
// Shipping information for this ConfirmationToken.
Shipping *TestHelpersConfirmationTokenShippingParams `form:"shipping"`
}
// AddExpand appends a new field to expand.
func (p *TestHelpersConfirmationTokenParams) AddExpand(f string) {
p.Expand = append(p.Expand, &f)
}