Skip to content

Commit 3e773ce

Browse files
Update generated code for v1448
1 parent 617b637 commit 3e773ce

10 files changed

+91
-1
lines changed

OPENAPI_VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1446
1+
v1448

charge.go

+2
Original file line numberDiff line numberDiff line change
@@ -1936,6 +1936,7 @@ type ChargePaymentMethodDetailsP24 struct {
19361936
// Przelewy24 rarely provides this information so the attribute is usually empty.
19371937
VerifiedName string `json:"verified_name"`
19381938
}
1939+
type ChargePaymentMethodDetailsPayByBank struct{}
19391940
type ChargePaymentMethodDetailsPayco struct {
19401941
// A unique identifier for the buyer as determined by the local payment processor.
19411942
BuyerID string `json:"buyer_id"`
@@ -2148,6 +2149,7 @@ type ChargePaymentMethodDetails struct {
21482149
NaverPay *ChargePaymentMethodDetailsNaverPay `json:"naver_pay"`
21492150
OXXO *ChargePaymentMethodDetailsOXXO `json:"oxxo"`
21502151
P24 *ChargePaymentMethodDetailsP24 `json:"p24"`
2152+
PayByBank *ChargePaymentMethodDetailsPayByBank `json:"pay_by_bank"`
21512153
Payco *ChargePaymentMethodDetailsPayco `json:"payco"`
21522154
PayNow *ChargePaymentMethodDetailsPayNow `json:"paynow"`
21532155
Paypal *ChargePaymentMethodDetailsPaypal `json:"paypal"`

checkout_session.go

+5
Original file line numberDiff line numberDiff line change
@@ -2132,6 +2132,9 @@ type CheckoutSessionPaymentMethodOptionsP24Params struct {
21322132
TOSShownAndAccepted *bool `form:"tos_shown_and_accepted"`
21332133
}
21342134

2135+
// contains details about the Pay By Bank payment method options.
2136+
type CheckoutSessionPaymentMethodOptionsPayByBankParams struct{}
2137+
21352138
// contains details about the PAYCO payment method options.
21362139
type CheckoutSessionPaymentMethodOptionsPaycoParams struct {
21372140
// Controls when the funds will be captured from the customer's account.
@@ -2366,6 +2369,8 @@ type CheckoutSessionPaymentMethodOptionsParams struct {
23662369
OXXO *CheckoutSessionPaymentMethodOptionsOXXOParams `form:"oxxo"`
23672370
// contains details about the P24 payment method options.
23682371
P24 *CheckoutSessionPaymentMethodOptionsP24Params `form:"p24"`
2372+
// contains details about the Pay By Bank payment method options.
2373+
PayByBank *CheckoutSessionPaymentMethodOptionsPayByBankParams `form:"pay_by_bank"`
23692374
// contains details about the PAYCO payment method options.
23702375
Payco *CheckoutSessionPaymentMethodOptionsPaycoParams `form:"payco"`
23712376
// contains details about the PayNow payment method options.

confirmationtoken.go

+3
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,7 @@ const (
365365
ConfirmationTokenPaymentMethodPreviewTypeNaverPay ConfirmationTokenPaymentMethodPreviewType = "naver_pay"
366366
ConfirmationTokenPaymentMethodPreviewTypeOXXO ConfirmationTokenPaymentMethodPreviewType = "oxxo"
367367
ConfirmationTokenPaymentMethodPreviewTypeP24 ConfirmationTokenPaymentMethodPreviewType = "p24"
368+
ConfirmationTokenPaymentMethodPreviewTypePayByBank ConfirmationTokenPaymentMethodPreviewType = "pay_by_bank"
368369
ConfirmationTokenPaymentMethodPreviewTypePayco ConfirmationTokenPaymentMethodPreviewType = "payco"
369370
ConfirmationTokenPaymentMethodPreviewTypePayNow ConfirmationTokenPaymentMethodPreviewType = "paynow"
370371
ConfirmationTokenPaymentMethodPreviewTypePaypal ConfirmationTokenPaymentMethodPreviewType = "paypal"
@@ -925,6 +926,7 @@ type ConfirmationTokenPaymentMethodPreviewP24 struct {
925926
// The customer's bank, if provided.
926927
Bank ConfirmationTokenPaymentMethodPreviewP24Bank `json:"bank"`
927928
}
929+
type ConfirmationTokenPaymentMethodPreviewPayByBank struct{}
928930
type ConfirmationTokenPaymentMethodPreviewPayco struct{}
929931
type ConfirmationTokenPaymentMethodPreviewPayNow struct{}
930932
type ConfirmationTokenPaymentMethodPreviewPaypal struct {
@@ -1079,6 +1081,7 @@ type ConfirmationTokenPaymentMethodPreview struct {
10791081
NaverPay *ConfirmationTokenPaymentMethodPreviewNaverPay `json:"naver_pay"`
10801082
OXXO *ConfirmationTokenPaymentMethodPreviewOXXO `json:"oxxo"`
10811083
P24 *ConfirmationTokenPaymentMethodPreviewP24 `json:"p24"`
1084+
PayByBank *ConfirmationTokenPaymentMethodPreviewPayByBank `json:"pay_by_bank"`
10821085
Payco *ConfirmationTokenPaymentMethodPreviewPayco `json:"payco"`
10831086
PayNow *ConfirmationTokenPaymentMethodPreviewPayNow `json:"paynow"`
10841087
Paypal *ConfirmationTokenPaymentMethodPreviewPaypal `json:"paypal"`

paymentintent.go

+9
Original file line numberDiff line numberDiff line change
@@ -1818,6 +1818,8 @@ type PaymentIntentPaymentMethodDataParams struct {
18181818
OXXO *PaymentMethodOXXOParams `form:"oxxo"`
18191819
// If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method.
18201820
P24 *PaymentMethodP24Params `form:"p24"`
1821+
// If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method.
1822+
PayByBank *PaymentMethodPayByBankParams `form:"pay_by_bank"`
18211823
// If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method.
18221824
Payco *PaymentMethodPaycoParams `form:"payco"`
18231825
// If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method.
@@ -2609,6 +2611,9 @@ type PaymentIntentPaymentMethodOptionsP24Params struct {
26092611
TOSShownAndAccepted *bool `form:"tos_shown_and_accepted"`
26102612
}
26112613

2614+
// If this is a `pay_by_bank` PaymentMethod, this sub-hash contains details about the PayByBank payment method options.
2615+
type PaymentIntentPaymentMethodOptionsPayByBankParams struct{}
2616+
26122617
// If this is a `payco` PaymentMethod, this sub-hash contains details about the PAYCO payment method options.
26132618
type PaymentIntentPaymentMethodOptionsPaycoParams struct {
26142619
// Controls when the funds are captured from the customer's account.
@@ -3046,6 +3051,8 @@ type PaymentIntentPaymentMethodOptionsParams struct {
30463051
OXXO *PaymentIntentPaymentMethodOptionsOXXOParams `form:"oxxo"`
30473052
// If this is a `p24` PaymentMethod, this sub-hash contains details about the Przelewy24 payment method options.
30483053
P24 *PaymentIntentPaymentMethodOptionsP24Params `form:"p24"`
3054+
// If this is a `pay_by_bank` PaymentMethod, this sub-hash contains details about the PayByBank payment method options.
3055+
PayByBank *PaymentIntentPaymentMethodOptionsPayByBankParams `form:"pay_by_bank"`
30493056
// If this is a `payco` PaymentMethod, this sub-hash contains details about the PAYCO payment method options.
30503057
Payco *PaymentIntentPaymentMethodOptionsPaycoParams `form:"payco"`
30513058
// If this is a `paynow` PaymentMethod, this sub-hash contains details about the PayNow payment method options.
@@ -5282,6 +5289,7 @@ type PaymentIntentPaymentMethodOptionsP24 struct {
52825289
// When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication).
52835290
SetupFutureUsage PaymentIntentPaymentMethodOptionsP24SetupFutureUsage `json:"setup_future_usage"`
52845291
}
5292+
type PaymentIntentPaymentMethodOptionsPayByBank struct{}
52855293
type PaymentIntentPaymentMethodOptionsPayco struct {
52865294
// Controls when the funds will be captured from the customer's account.
52875295
CaptureMethod PaymentIntentPaymentMethodOptionsPaycoCaptureMethod `json:"capture_method"`
@@ -5579,6 +5587,7 @@ type PaymentIntentPaymentMethodOptions struct {
55795587
NaverPay *PaymentIntentPaymentMethodOptionsNaverPay `json:"naver_pay"`
55805588
OXXO *PaymentIntentPaymentMethodOptionsOXXO `json:"oxxo"`
55815589
P24 *PaymentIntentPaymentMethodOptionsP24 `json:"p24"`
5590+
PayByBank *PaymentIntentPaymentMethodOptionsPayByBank `json:"pay_by_bank"`
55825591
Payco *PaymentIntentPaymentMethodOptionsPayco `json:"payco"`
55835592
PayNow *PaymentIntentPaymentMethodOptionsPayNow `json:"paynow"`
55845593
Paypal *PaymentIntentPaymentMethodOptionsPaypal `json:"paypal"`

paymentlink.go

+1
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ const (
158158
PaymentLinkPaymentMethodTypeMultibanco PaymentLinkPaymentMethodType = "multibanco"
159159
PaymentLinkPaymentMethodTypeOXXO PaymentLinkPaymentMethodType = "oxxo"
160160
PaymentLinkPaymentMethodTypeP24 PaymentLinkPaymentMethodType = "p24"
161+
PaymentLinkPaymentMethodTypePayByBank PaymentLinkPaymentMethodType = "pay_by_bank"
161162
PaymentLinkPaymentMethodTypePayNow PaymentLinkPaymentMethodType = "paynow"
162163
PaymentLinkPaymentMethodTypePaypal PaymentLinkPaymentMethodType = "paypal"
163164
PaymentLinkPaymentMethodTypePayto PaymentLinkPaymentMethodType = "payto"

paymentmethod.go

+8
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,7 @@ const (
305305
PaymentMethodTypeNaverPay PaymentMethodType = "naver_pay"
306306
PaymentMethodTypeOXXO PaymentMethodType = "oxxo"
307307
PaymentMethodTypeP24 PaymentMethodType = "p24"
308+
PaymentMethodTypePayByBank PaymentMethodType = "pay_by_bank"
308309
PaymentMethodTypePayco PaymentMethodType = "payco"
309310
PaymentMethodTypePayNow PaymentMethodType = "paynow"
310311
PaymentMethodTypePaypal PaymentMethodType = "paypal"
@@ -583,6 +584,9 @@ type PaymentMethodP24Params struct {
583584
Bank *string `form:"bank"`
584585
}
585586

587+
// If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method.
588+
type PaymentMethodPayByBankParams struct{}
589+
586590
// If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method.
587591
type PaymentMethodPaycoParams struct{}
588592

@@ -759,6 +763,8 @@ type PaymentMethodParams struct {
759763
OXXO *PaymentMethodOXXOParams `form:"oxxo"`
760764
// If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method.
761765
P24 *PaymentMethodP24Params `form:"p24"`
766+
// If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method.
767+
PayByBank *PaymentMethodPayByBankParams `form:"pay_by_bank"`
762768
// If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method.
763769
Payco *PaymentMethodPaycoParams `form:"payco"`
764770
// If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method.
@@ -1285,6 +1291,7 @@ type PaymentMethodP24 struct {
12851291
// The customer's bank, if provided.
12861292
Bank string `json:"bank"`
12871293
}
1294+
type PaymentMethodPayByBank struct{}
12881295
type PaymentMethodPayco struct{}
12891296
type PaymentMethodPayNow struct{}
12901297
type PaymentMethodPaypal struct {
@@ -1460,6 +1467,7 @@ type PaymentMethod struct {
14601467
Object string `json:"object"`
14611468
OXXO *PaymentMethodOXXO `json:"oxxo"`
14621469
P24 *PaymentMethodP24 `json:"p24"`
1470+
PayByBank *PaymentMethodPayByBank `json:"pay_by_bank"`
14631471
Payco *PaymentMethodPayco `json:"payco"`
14641472
PayNow *PaymentMethodPayNow `json:"paynow"`
14651473
Paypal *PaymentMethodPaypal `json:"paypal"`

paymentmethodconfiguration.go

+47
Original file line numberDiff line numberDiff line change
@@ -614,6 +614,25 @@ const (
614614
PaymentMethodConfigurationP24DisplayPreferenceValueOn PaymentMethodConfigurationP24DisplayPreferenceValue = "on"
615615
)
616616

617+
// The account's display preference.
618+
type PaymentMethodConfigurationPayByBankDisplayPreferencePreference string
619+
620+
// List of values that PaymentMethodConfigurationPayByBankDisplayPreferencePreference can take
621+
const (
622+
PaymentMethodConfigurationPayByBankDisplayPreferencePreferenceNone PaymentMethodConfigurationPayByBankDisplayPreferencePreference = "none"
623+
PaymentMethodConfigurationPayByBankDisplayPreferencePreferenceOff PaymentMethodConfigurationPayByBankDisplayPreferencePreference = "off"
624+
PaymentMethodConfigurationPayByBankDisplayPreferencePreferenceOn PaymentMethodConfigurationPayByBankDisplayPreferencePreference = "on"
625+
)
626+
627+
// The effective display preference value.
628+
type PaymentMethodConfigurationPayByBankDisplayPreferenceValue string
629+
630+
// List of values that PaymentMethodConfigurationPayByBankDisplayPreferenceValue can take
631+
const (
632+
PaymentMethodConfigurationPayByBankDisplayPreferenceValueOff PaymentMethodConfigurationPayByBankDisplayPreferenceValue = "off"
633+
PaymentMethodConfigurationPayByBankDisplayPreferenceValueOn PaymentMethodConfigurationPayByBankDisplayPreferenceValue = "on"
634+
)
635+
617636
// The account's display preference.
618637
type PaymentMethodConfigurationPayNowDisplayPreferencePreference string
619638

@@ -1290,6 +1309,18 @@ type PaymentMethodConfigurationP24Params struct {
12901309
DisplayPreference *PaymentMethodConfigurationP24DisplayPreferenceParams `form:"display_preference"`
12911310
}
12921311

1312+
// Whether or not the payment method should be displayed.
1313+
type PaymentMethodConfigurationPayByBankDisplayPreferenceParams struct {
1314+
// The account's preference for whether or not to display this payment method.
1315+
Preference *string `form:"preference"`
1316+
}
1317+
1318+
// Pay by bank is a redirect payment method backed by bank transfers. A customer is redirected to their bank to authorize a bank transfer for a given amount. This removes a lot of the error risks inherent in waiting for the customer to initiate a transfer themselves, and is less expensive than card payments.
1319+
type PaymentMethodConfigurationPayByBankParams struct {
1320+
// Whether or not the payment method should be displayed.
1321+
DisplayPreference *PaymentMethodConfigurationPayByBankDisplayPreferenceParams `form:"display_preference"`
1322+
}
1323+
12931324
// Whether or not the payment method should be displayed.
12941325
type PaymentMethodConfigurationPayNowDisplayPreferenceParams struct {
12951326
// The account's preference for whether or not to display this payment method.
@@ -1535,6 +1566,8 @@ type PaymentMethodConfigurationParams struct {
15351566
P24 *PaymentMethodConfigurationP24Params `form:"p24"`
15361567
// Configuration's parent configuration. Specify to create a child configuration.
15371568
Parent *string `form:"parent"`
1569+
// Pay by bank is a redirect payment method backed by bank transfers. A customer is redirected to their bank to authorize a bank transfer for a given amount. This removes a lot of the error risks inherent in waiting for the customer to initiate a transfer themselves, and is less expensive than card payments.
1570+
PayByBank *PaymentMethodConfigurationPayByBankParams `form:"pay_by_bank"`
15381571
// PayNow is a Singapore-based payment method that allows customers to make a payment using their preferred app from participating banks and participating non-bank financial institutions. Check this [page](https://stripe.com/docs/payments/paynow) for more details.
15391572
PayNow *PaymentMethodConfigurationPayNowParams `form:"paynow"`
15401573
// PayPal, a digital wallet popular with customers in Europe, allows your customers worldwide to pay using their PayPal account. Check this [page](https://stripe.com/docs/payments/paypal) for more details.
@@ -1986,6 +2019,19 @@ type PaymentMethodConfigurationP24 struct {
19862019
Available bool `json:"available"`
19872020
DisplayPreference *PaymentMethodConfigurationP24DisplayPreference `json:"display_preference"`
19882021
}
2022+
type PaymentMethodConfigurationPayByBankDisplayPreference struct {
2023+
// For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
2024+
Overridable bool `json:"overridable"`
2025+
// The account's display preference.
2026+
Preference PaymentMethodConfigurationPayByBankDisplayPreferencePreference `json:"preference"`
2027+
// The effective display preference value.
2028+
Value PaymentMethodConfigurationPayByBankDisplayPreferenceValue `json:"value"`
2029+
}
2030+
type PaymentMethodConfigurationPayByBank struct {
2031+
// Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
2032+
Available bool `json:"available"`
2033+
DisplayPreference *PaymentMethodConfigurationPayByBankDisplayPreference `json:"display_preference"`
2034+
}
19892035
type PaymentMethodConfigurationPayNowDisplayPreference struct {
19902036
// For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
19912037
Overridable bool `json:"overridable"`
@@ -2233,6 +2279,7 @@ type PaymentMethodConfiguration struct {
22332279
P24 *PaymentMethodConfigurationP24 `json:"p24"`
22342280
// For child configs, the configuration's parent configuration.
22352281
Parent string `json:"parent"`
2282+
PayByBank *PaymentMethodConfigurationPayByBank `json:"pay_by_bank"`
22362283
PayNow *PaymentMethodConfigurationPayNow `json:"paynow"`
22372284
Paypal *PaymentMethodConfigurationPaypal `json:"paypal"`
22382285
Payto *PaymentMethodConfigurationPayto `json:"payto"`

setupintent.go

+10
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,9 @@ type SetupIntentPaymentMethodDataP24Params struct {
515515
Bank *string `form:"bank"`
516516
}
517517

518+
// If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method.
519+
type SetupIntentPaymentMethodDataPayByBankParams struct{}
520+
518521
// If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method.
519522
type SetupIntentPaymentMethodDataPaycoParams struct{}
520523

@@ -685,6 +688,8 @@ type SetupIntentPaymentMethodDataParams struct {
685688
OXXO *SetupIntentPaymentMethodDataOXXOParams `form:"oxxo"`
686689
// If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method.
687690
P24 *SetupIntentPaymentMethodDataP24Params `form:"p24"`
691+
// If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method.
692+
PayByBank *SetupIntentPaymentMethodDataPayByBankParams `form:"pay_by_bank"`
688693
// If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method.
689694
Payco *SetupIntentPaymentMethodDataPaycoParams `form:"payco"`
690695
// If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method.
@@ -1258,6 +1263,9 @@ type SetupIntentConfirmPaymentMethodDataP24Params struct {
12581263
Bank *string `form:"bank"`
12591264
}
12601265

1266+
// If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method.
1267+
type SetupIntentConfirmPaymentMethodDataPayByBankParams struct{}
1268+
12611269
// If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method.
12621270
type SetupIntentConfirmPaymentMethodDataPaycoParams struct{}
12631271

@@ -1428,6 +1436,8 @@ type SetupIntentConfirmPaymentMethodDataParams struct {
14281436
OXXO *SetupIntentConfirmPaymentMethodDataOXXOParams `form:"oxxo"`
14291437
// If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method.
14301438
P24 *SetupIntentConfirmPaymentMethodDataP24Params `form:"p24"`
1439+
// If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method.
1440+
PayByBank *SetupIntentConfirmPaymentMethodDataPayByBankParams `form:"pay_by_bank"`
14311441
// If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method.
14321442
Payco *SetupIntentConfirmPaymentMethodDataPaycoParams `form:"payco"`
14331443
// If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method.

testhelpers_confirmationtoken.go

+5
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,9 @@ type TestHelpersConfirmationTokenPaymentMethodDataP24Params struct {
167167
Bank *string `form:"bank"`
168168
}
169169

170+
// If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method.
171+
type TestHelpersConfirmationTokenPaymentMethodDataPayByBankParams struct{}
172+
170173
// If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method.
171174
type TestHelpersConfirmationTokenPaymentMethodDataPaycoParams struct{}
172175

@@ -336,6 +339,8 @@ type TestHelpersConfirmationTokenPaymentMethodDataParams struct {
336339
OXXO *TestHelpersConfirmationTokenPaymentMethodDataOXXOParams `form:"oxxo"`
337340
// If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method.
338341
P24 *TestHelpersConfirmationTokenPaymentMethodDataP24Params `form:"p24"`
342+
// If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method.
343+
PayByBank *TestHelpersConfirmationTokenPaymentMethodDataPayByBankParams `form:"pay_by_bank"`
339344
// If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method.
340345
Payco *TestHelpersConfirmationTokenPaymentMethodDataPaycoParams `form:"payco"`
341346
// If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method.

0 commit comments

Comments
 (0)