Skip to content

Commit

Permalink
Update generated code for v427
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Jul 21, 2023
1 parent ce783a9 commit e968c53
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v426
v427
12 changes: 12 additions & 0 deletions checkout_session.go
Original file line number Diff line number Diff line change
Expand Up @@ -1696,6 +1696,8 @@ type CheckoutSessionParams struct {
//
// If you'd like information on how to collect a payment method outside of Checkout, read the guide on configuring [subscriptions with a free trial](https://stripe.com/docs/payments/checkout/free-trials).
PaymentMethodCollection *string `form:"payment_method_collection"`
// The ID of the payment method configuration to use with this Checkout session.
PaymentMethodConfiguration *string `form:"payment_method_configuration"`
// Payment-method-specific configuration.
PaymentMethodOptions *CheckoutSessionPaymentMethodOptionsParams `form:"payment_method_options"`
// A list of the types of payment methods (e.g., `card`) this Checkout Session can accept.
Expand Down Expand Up @@ -1945,6 +1947,14 @@ type CheckoutSessionInvoiceCreation struct {
Enabled bool `json:"enabled"`
InvoiceData *CheckoutSessionInvoiceCreationInvoiceData `json:"invoice_data"`
}

// Information about the payment method configuration used for this Checkout session.
type CheckoutSessionPaymentMethodConfigurationDetails struct {
// ID of the payment method configuration used.
ID string `json:"id"`
// ID of the parent payment method configuration used.
Parent string `json:"parent"`
}
type CheckoutSessionPaymentMethodOptionsACSSDebitMandateOptions struct {
// A URL for custom mandate text
CustomMandateURL string `json:"custom_mandate_url"`
Expand Down Expand Up @@ -2424,6 +2434,8 @@ type CheckoutSession struct {
PaymentLink *PaymentLink `json:"payment_link"`
// Configure whether a Checkout Session should collect a payment method.
PaymentMethodCollection CheckoutSessionPaymentMethodCollection `json:"payment_method_collection"`
// Information about the payment method configuration used for this Checkout session.
PaymentMethodConfigurationDetails *CheckoutSessionPaymentMethodConfigurationDetails `json:"payment_method_configuration_details"`
// Payment-method-specific configuration for the PaymentIntent or SetupIntent of this CheckoutSession.
PaymentMethodOptions *CheckoutSessionPaymentMethodOptions `json:"payment_method_options"`
// A list of the types of payment methods (e.g. card) this Checkout
Expand Down

0 comments on commit e968c53

Please sign in to comment.