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

stripe / stripe-go / 11296113556

11 Oct 2024 04:42PM UTC coverage: 62.991% (-0.02%) from 63.015%
11296113556

Pull #1934

github

stripe-openapi[bot]
Update generated code for v1291
Pull Request #1934: Update generated code for beta

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

469 existing lines in 20 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
/testhelpers_confirmationtoken.go
1
//
2
//
3
// File generated from our OpenAPI spec
4
//
5
//
6

7
package stripe
8

9
// If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
10
type TestHelpersConfirmationTokenPaymentMethodDataACSSDebitParams struct {
11
        // Customer's bank account number.
12
        AccountNumber *string `form:"account_number"`
13
        // Institution number of the customer's bank.
14
        InstitutionNumber *string `form:"institution_number"`
15
        // Transit number of the customer's bank.
16
        TransitNumber *string `form:"transit_number"`
17
}
18

19
// If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
20
type TestHelpersConfirmationTokenPaymentMethodDataAffirmParams struct{}
21

22
// If this is an `AfterpayClearpay` PaymentMethod, this hash contains details about the AfterpayClearpay payment method.
23
type TestHelpersConfirmationTokenPaymentMethodDataAfterpayClearpayParams struct{}
24

25
// If this is an `Alipay` PaymentMethod, this hash contains details about the Alipay payment method.
26
type TestHelpersConfirmationTokenPaymentMethodDataAlipayParams struct{}
27

28
// If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method.
29
type TestHelpersConfirmationTokenPaymentMethodDataAmazonPayParams struct{}
30

31
// If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account.
32
type TestHelpersConfirmationTokenPaymentMethodDataAUBECSDebitParams struct {
33
        // The account number for the bank account.
34
        AccountNumber *string `form:"account_number"`
35
        // Bank-State-Branch number of the bank account.
36
        BSBNumber *string `form:"bsb_number"`
37
}
38

39
// If this is a `bacs_debit` PaymentMethod, this hash contains details about the Bacs Direct Debit bank account.
40
type TestHelpersConfirmationTokenPaymentMethodDataBACSDebitParams struct {
41
        // Account number of the bank account that the funds will be debited from.
42
        AccountNumber *string `form:"account_number"`
43
        // Sort code of the bank account. (e.g., `10-20-30`)
44
        SortCode *string `form:"sort_code"`
45
}
46

47
// If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
48
type TestHelpersConfirmationTokenPaymentMethodDataBancontactParams struct{}
49

50
// Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
51
type TestHelpersConfirmationTokenPaymentMethodDataBillingDetailsParams struct {
52
        // Billing address.
53
        Address *AddressParams `form:"address"`
54
        // Email address.
55
        Email *string `form:"email"`
56
        // Full name.
57
        Name *string `form:"name"`
58
        // Billing phone number (including extension).
59
        Phone *string `form:"phone"`
60
}
61

62
// If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method.
63
type TestHelpersConfirmationTokenPaymentMethodDataBLIKParams struct{}
64

65
// If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method.
66
type TestHelpersConfirmationTokenPaymentMethodDataBoletoParams struct {
67
        // The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)
68
        TaxID *string `form:"tax_id"`
69
}
70

71
// If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method.
72
type TestHelpersConfirmationTokenPaymentMethodDataCashAppParams struct{}
73

74
// If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method.
75
type TestHelpersConfirmationTokenPaymentMethodDataCustomerBalanceParams struct{}
76

77
// If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method.
78
type TestHelpersConfirmationTokenPaymentMethodDataEPSParams struct {
79
        // The customer's bank.
80
        Bank *string `form:"bank"`
81
}
82

83
// If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method.
84
type TestHelpersConfirmationTokenPaymentMethodDataFPXParams struct {
85
        // Account holder type for FPX transaction
86
        AccountHolderType *string `form:"account_holder_type"`
87
        // The customer's bank.
88
        Bank *string `form:"bank"`
89
}
90

91
// If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
92
type TestHelpersConfirmationTokenPaymentMethodDataGiropayParams struct{}
93

94
// If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
95
type TestHelpersConfirmationTokenPaymentMethodDataGrabpayParams struct{}
96

97
// If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
98
type TestHelpersConfirmationTokenPaymentMethodDataIDEALParams struct {
99
        // The customer's bank.
100
        Bank *string `form:"bank"`
101
}
102

103
// If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
104
type TestHelpersConfirmationTokenPaymentMethodDataInteracPresentParams struct{}
105

106
// If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method.
107
type TestHelpersConfirmationTokenPaymentMethodDataKakaoPayParams struct{}
108

109
// Customer's date of birth
110
type TestHelpersConfirmationTokenPaymentMethodDataKlarnaDOBParams struct {
111
        // The day of birth, between 1 and 31.
112
        Day *int64 `form:"day"`
113
        // The month of birth, between 1 and 12.
114
        Month *int64 `form:"month"`
115
        // The four-digit year of birth.
116
        Year *int64 `form:"year"`
117
}
118

119
// If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method.
120
type TestHelpersConfirmationTokenPaymentMethodDataKlarnaParams struct {
121
        // Customer's date of birth
122
        DOB *TestHelpersConfirmationTokenPaymentMethodDataKlarnaDOBParams `form:"dob"`
123
}
124

125
// If this is a `konbini` PaymentMethod, this hash contains details about the Konbini payment method.
126
type TestHelpersConfirmationTokenPaymentMethodDataKonbiniParams struct{}
127

128
// If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method.
129
type TestHelpersConfirmationTokenPaymentMethodDataKrCardParams struct{}
130

131
// If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
132
type TestHelpersConfirmationTokenPaymentMethodDataLinkParams struct{}
133

134
// If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
135
type TestHelpersConfirmationTokenPaymentMethodDataMbWayParams struct{}
136

137
// If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method.
138
type TestHelpersConfirmationTokenPaymentMethodDataMobilepayParams struct{}
139

140
// If this is a `multibanco` PaymentMethod, this hash contains details about the Multibanco payment method.
141
type TestHelpersConfirmationTokenPaymentMethodDataMultibancoParams struct{}
142

143
// If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method.
144
type TestHelpersConfirmationTokenPaymentMethodDataNaverPayParams struct {
145
        // Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
146
        Funding *string `form:"funding"`
147
}
148

149
// If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method.
150
type TestHelpersConfirmationTokenPaymentMethodDataOXXOParams struct{}
151

152
// If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method.
153
type TestHelpersConfirmationTokenPaymentMethodDataP24Params struct {
154
        // The customer's bank.
155
        Bank *string `form:"bank"`
156
}
157

158
// If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method.
159
type TestHelpersConfirmationTokenPaymentMethodDataPaycoParams struct{}
160

161
// If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method.
162
type TestHelpersConfirmationTokenPaymentMethodDataPayNowParams struct{}
163

164
// If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
165
type TestHelpersConfirmationTokenPaymentMethodDataPaypalParams struct{}
166

167
// If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
168
type TestHelpersConfirmationTokenPaymentMethodDataPaytoParams struct {
169
        // The account number for the bank account.
170
        AccountNumber *string `form:"account_number"`
171
        // Bank-State-Branch number of the bank account.
172
        BSBNumber *string `form:"bsb_number"`
173
        // The PayID alias for the bank account.
174
        PayID *string `form:"pay_id"`
175
}
176

177
// If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
178
type TestHelpersConfirmationTokenPaymentMethodDataPixParams struct{}
179

180
// If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
181
type TestHelpersConfirmationTokenPaymentMethodDataPromptPayParams struct{}
182

183
// Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
184
type TestHelpersConfirmationTokenPaymentMethodDataRadarOptionsParams struct {
185
        // 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.
186
        Session *string `form:"session"`
187
}
188

189
// Customer's date of birth
190
type TestHelpersConfirmationTokenPaymentMethodDataRechnungDOBParams struct {
191
        // The day of birth, between 1 and 31.
192
        Day *int64 `form:"day"`
193
        // The month of birth, between 1 and 12.
194
        Month *int64 `form:"month"`
195
        // The four-digit year of birth.
196
        Year *int64 `form:"year"`
197
}
198

199
// If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
200
type TestHelpersConfirmationTokenPaymentMethodDataRechnungParams struct {
201
        // Customer's date of birth
202
        DOB *TestHelpersConfirmationTokenPaymentMethodDataRechnungDOBParams `form:"dob"`
203
}
204

205
// If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
206
type TestHelpersConfirmationTokenPaymentMethodDataRevolutPayParams struct{}
207

208
// If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
209
type TestHelpersConfirmationTokenPaymentMethodDataSamsungPayParams struct{}
210

211
// If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
212
type TestHelpersConfirmationTokenPaymentMethodDataSEPADebitParams struct {
213
        // IBAN of the bank account.
214
        IBAN *string `form:"iban"`
215
}
216

217
// If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
218
type TestHelpersConfirmationTokenPaymentMethodDataSofortParams struct {
219
        // Two-letter ISO code representing the country the bank account is located in.
220
        Country *string `form:"country"`
221
}
222

223
// If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
224
type TestHelpersConfirmationTokenPaymentMethodDataSwishParams struct{}
225

226
// If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
227
type TestHelpersConfirmationTokenPaymentMethodDataTWINTParams struct{}
228

229
// If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method.
230
type TestHelpersConfirmationTokenPaymentMethodDataUSBankAccountParams struct {
231
        // Account holder type: individual or company.
232
        AccountHolderType *string `form:"account_holder_type"`
233
        // Account number of the bank account.
234
        AccountNumber *string `form:"account_number"`
235
        // Account type: checkings or savings. Defaults to checking if omitted.
236
        AccountType *string `form:"account_type"`
237
        // The ID of a Financial Connections Account to use as a payment method.
238
        FinancialConnectionsAccount *string `form:"financial_connections_account"`
239
        // Routing number of the bank account.
240
        RoutingNumber *string `form:"routing_number"`
241
}
242

243
// If this is an `wechat_pay` PaymentMethod, this hash contains details about the wechat_pay payment method.
244
type TestHelpersConfirmationTokenPaymentMethodDataWeChatPayParams struct{}
245

246
// If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method.
247
type TestHelpersConfirmationTokenPaymentMethodDataZipParams struct{}
248

249
// If provided, this hash will be used to create a PaymentMethod.
250
type TestHelpersConfirmationTokenPaymentMethodDataParams struct {
251
        // If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
252
        ACSSDebit *TestHelpersConfirmationTokenPaymentMethodDataACSSDebitParams `form:"acss_debit"`
253
        // If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
254
        Affirm *TestHelpersConfirmationTokenPaymentMethodDataAffirmParams `form:"affirm"`
255
        // If this is an `AfterpayClearpay` PaymentMethod, this hash contains details about the AfterpayClearpay payment method.
256
        AfterpayClearpay *TestHelpersConfirmationTokenPaymentMethodDataAfterpayClearpayParams `form:"afterpay_clearpay"`
257
        // If this is an `Alipay` PaymentMethod, this hash contains details about the Alipay payment method.
258
        Alipay *TestHelpersConfirmationTokenPaymentMethodDataAlipayParams `form:"alipay"`
259
        // 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`.
260
        AllowRedisplay *string `form:"allow_redisplay"`
261
        // If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method.
262
        AmazonPay *TestHelpersConfirmationTokenPaymentMethodDataAmazonPayParams `form:"amazon_pay"`
263
        // If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account.
264
        AUBECSDebit *TestHelpersConfirmationTokenPaymentMethodDataAUBECSDebitParams `form:"au_becs_debit"`
265
        // If this is a `bacs_debit` PaymentMethod, this hash contains details about the Bacs Direct Debit bank account.
266
        BACSDebit *TestHelpersConfirmationTokenPaymentMethodDataBACSDebitParams `form:"bacs_debit"`
267
        // If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
268
        Bancontact *TestHelpersConfirmationTokenPaymentMethodDataBancontactParams `form:"bancontact"`
269
        // Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
270
        BillingDetails *TestHelpersConfirmationTokenPaymentMethodDataBillingDetailsParams `form:"billing_details"`
271
        // If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method.
272
        BLIK *TestHelpersConfirmationTokenPaymentMethodDataBLIKParams `form:"blik"`
273
        // If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method.
274
        Boleto *TestHelpersConfirmationTokenPaymentMethodDataBoletoParams `form:"boleto"`
275
        // If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method.
276
        CashApp *TestHelpersConfirmationTokenPaymentMethodDataCashAppParams `form:"cashapp"`
277
        // If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method.
278
        CustomerBalance *TestHelpersConfirmationTokenPaymentMethodDataCustomerBalanceParams `form:"customer_balance"`
279
        // If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method.
280
        EPS *TestHelpersConfirmationTokenPaymentMethodDataEPSParams `form:"eps"`
281
        // If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method.
282
        FPX *TestHelpersConfirmationTokenPaymentMethodDataFPXParams `form:"fpx"`
283
        // If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
284
        Giropay *TestHelpersConfirmationTokenPaymentMethodDataGiropayParams `form:"giropay"`
285
        // If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
286
        Grabpay *TestHelpersConfirmationTokenPaymentMethodDataGrabpayParams `form:"grabpay"`
287
        // If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
288
        IDEAL *TestHelpersConfirmationTokenPaymentMethodDataIDEALParams `form:"ideal"`
289
        // If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
290
        InteracPresent *TestHelpersConfirmationTokenPaymentMethodDataInteracPresentParams `form:"interac_present"`
291
        // If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method.
292
        KakaoPay *TestHelpersConfirmationTokenPaymentMethodDataKakaoPayParams `form:"kakao_pay"`
293
        // If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method.
294
        Klarna *TestHelpersConfirmationTokenPaymentMethodDataKlarnaParams `form:"klarna"`
295
        // If this is a `konbini` PaymentMethod, this hash contains details about the Konbini payment method.
296
        Konbini *TestHelpersConfirmationTokenPaymentMethodDataKonbiniParams `form:"konbini"`
297
        // If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method.
298
        KrCard *TestHelpersConfirmationTokenPaymentMethodDataKrCardParams `form:"kr_card"`
299
        // If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
300
        Link *TestHelpersConfirmationTokenPaymentMethodDataLinkParams `form:"link"`
301
        // If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
302
        MbWay *TestHelpersConfirmationTokenPaymentMethodDataMbWayParams `form:"mb_way"`
303
        // 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`.
304
        Metadata map[string]string `form:"metadata"`
305
        // If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method.
306
        Mobilepay *TestHelpersConfirmationTokenPaymentMethodDataMobilepayParams `form:"mobilepay"`
307
        // If this is a `multibanco` PaymentMethod, this hash contains details about the Multibanco payment method.
308
        Multibanco *TestHelpersConfirmationTokenPaymentMethodDataMultibancoParams `form:"multibanco"`
309
        // If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method.
310
        NaverPay *TestHelpersConfirmationTokenPaymentMethodDataNaverPayParams `form:"naver_pay"`
311
        // If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method.
312
        OXXO *TestHelpersConfirmationTokenPaymentMethodDataOXXOParams `form:"oxxo"`
313
        // If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method.
314
        P24 *TestHelpersConfirmationTokenPaymentMethodDataP24Params `form:"p24"`
315
        // If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method.
316
        Payco *TestHelpersConfirmationTokenPaymentMethodDataPaycoParams `form:"payco"`
317
        // If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method.
318
        PayNow *TestHelpersConfirmationTokenPaymentMethodDataPayNowParams `form:"paynow"`
319
        // If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
320
        Paypal *TestHelpersConfirmationTokenPaymentMethodDataPaypalParams `form:"paypal"`
321
        // If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
322
        Payto *TestHelpersConfirmationTokenPaymentMethodDataPaytoParams `form:"payto"`
323
        // If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
324
        Pix *TestHelpersConfirmationTokenPaymentMethodDataPixParams `form:"pix"`
325
        // If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
326
        PromptPay *TestHelpersConfirmationTokenPaymentMethodDataPromptPayParams `form:"promptpay"`
327
        // Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
328
        RadarOptions *TestHelpersConfirmationTokenPaymentMethodDataRadarOptionsParams `form:"radar_options"`
329
        // If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
330
        Rechnung *TestHelpersConfirmationTokenPaymentMethodDataRechnungParams `form:"rechnung"`
331
        // If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
332
        RevolutPay *TestHelpersConfirmationTokenPaymentMethodDataRevolutPayParams `form:"revolut_pay"`
333
        // If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
334
        SamsungPay *TestHelpersConfirmationTokenPaymentMethodDataSamsungPayParams `form:"samsung_pay"`
335
        // If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
336
        SEPADebit *TestHelpersConfirmationTokenPaymentMethodDataSEPADebitParams `form:"sepa_debit"`
337
        // If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
338
        Sofort *TestHelpersConfirmationTokenPaymentMethodDataSofortParams `form:"sofort"`
339
        // If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
340
        Swish *TestHelpersConfirmationTokenPaymentMethodDataSwishParams `form:"swish"`
341
        // If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
342
        TWINT *TestHelpersConfirmationTokenPaymentMethodDataTWINTParams `form:"twint"`
343
        // 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.
344
        Type *string `form:"type"`
345
        // If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method.
346
        USBankAccount *TestHelpersConfirmationTokenPaymentMethodDataUSBankAccountParams `form:"us_bank_account"`
347
        // If this is an `wechat_pay` PaymentMethod, this hash contains details about the wechat_pay payment method.
348
        WeChatPay *TestHelpersConfirmationTokenPaymentMethodDataWeChatPayParams `form:"wechat_pay"`
349
        // If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method.
350
        Zip *TestHelpersConfirmationTokenPaymentMethodDataZipParams `form:"zip"`
351
}
352

353
// AddMetadata adds a new key-value pair to the Metadata.
UNCOV
354
func (p *TestHelpersConfirmationTokenPaymentMethodDataParams) AddMetadata(key string, value string) {
×
355
        if p.Metadata == nil {
×
356
                p.Metadata = make(map[string]string)
×
UNCOV
357
        }
×
358

UNCOV
359
        p.Metadata[key] = value
×
360
}
361

362
// Shipping information for this ConfirmationToken.
363
type TestHelpersConfirmationTokenShippingParams struct {
364
        // Shipping address
365
        Address *AddressParams `form:"address"`
366
        // Recipient name.
367
        Name *string `form:"name"`
368
        // Recipient phone (including extension)
369
        Phone *string `form:"phone"`
370
}
371

372
// Creates a test mode Confirmation Token server side for your integration tests.
373
type TestHelpersConfirmationTokenParams struct {
374
        Params `form:"*"`
375
        // Specifies which fields in the response should be expanded.
376
        Expand []*string `form:"expand"`
377
        // ID of an existing PaymentMethod.
378
        PaymentMethod *string `form:"payment_method"`
379
        // If provided, this hash will be used to create a PaymentMethod.
380
        PaymentMethodData *TestHelpersConfirmationTokenPaymentMethodDataParams `form:"payment_method_data"`
381
        // Return URL used to confirm the Intent.
382
        ReturnURL *string `form:"return_url"`
383
        // Indicates that you intend to make future payments with this ConfirmationToken's payment method.
384
        //
385
        // 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.
386
        SetupFutureUsage *string `form:"setup_future_usage"`
387
        // Shipping information for this ConfirmationToken.
388
        Shipping *TestHelpersConfirmationTokenShippingParams `form:"shipping"`
389
}
390

391
// AddExpand appends a new field to expand.
UNCOV
392
func (p *TestHelpersConfirmationTokenParams) AddExpand(f string) {
×
UNCOV
393
        p.Expand = append(p.Expand, &f)
×
UNCOV
394
}
×
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