Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update generated code for beta #1642

Merged
merged 9 commits into from
Apr 20, 2023
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v298
v306
5 changes: 4 additions & 1 deletion identity_verificationsession.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ type IdentityVerificationSessionOptionsDocument struct {
RequireMatchingSelfie bool `json:"require_matching_selfie"`
}
type IdentityVerificationSessionOptionsIDNumber struct{}

// A set of options for the session's verification checks.
type IdentityVerificationSessionOptions struct {
Document *IdentityVerificationSessionOptionsDocument `json:"document"`
IDNumber *IdentityVerificationSessionOptionsIDNumber `json:"id_number"`
Expand Down Expand Up @@ -234,7 +236,8 @@ type IdentityVerificationSession struct {
// 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.
Metadata map[string]string `json:"metadata"`
// String representing the object's type. Objects of the same type share the same value.
Object string `json:"object"`
Object string `json:"object"`
// A set of options for the session's verification checks.
Options *IdentityVerificationSessionOptions `json:"options"`
// Redaction status of this VerificationSession. If the VerificationSession is not redacted, this field will be null.
Redaction *IdentityVerificationSessionRedaction `json:"redaction"`
Expand Down
35 changes: 35 additions & 0 deletions paymentintent.go
Original file line number Diff line number Diff line change
Expand Up @@ -707,6 +707,18 @@ const (
PaymentIntentPaymentMethodOptionsWeChatPaySetupFutureUsageNone PaymentIntentPaymentMethodOptionsWeChatPaySetupFutureUsage = "none"
)

// Indicates that you intend to make future payments with this PaymentIntent's payment method.
//
// Providing this parameter 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. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes.
//
// When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication).
type PaymentIntentPaymentMethodOptionsZipSetupFutureUsage string

// List of values that PaymentIntentPaymentMethodOptionsZipSetupFutureUsage can take
const (
PaymentIntentPaymentMethodOptionsZipSetupFutureUsageNone PaymentIntentPaymentMethodOptionsZipSetupFutureUsage = "none"
)

// Type of the payment method for which payment is in `processing` state, one of `card`.
type PaymentIntentProcessingType string

Expand Down Expand Up @@ -1518,6 +1530,18 @@ type PaymentIntentPaymentMethodOptionsWeChatPayParams struct {
SetupFutureUsage *string `form:"setup_future_usage"`
}

// If this is a `zip` PaymentMethod, this sub-hash contains details about the Zip payment method options.
type PaymentIntentPaymentMethodOptionsZipParams struct {
// Indicates that you intend to make future payments with this PaymentIntent's payment method.
//
// Providing this parameter 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. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes.
//
// When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication).
//
// If `setup_future_usage` is already set and you are performing a request using a publishable key, you may only update the value from `on_session` to `off_session`.
SetupFutureUsage *string `form:"setup_future_usage"`
}

// Payment-method-specific configuration for this PaymentIntent.
type PaymentIntentPaymentMethodOptionsParams struct {
// If this is a `acss_debit` PaymentMethod, this sub-hash contains details about the ACSS Debit payment method options.
Expand Down Expand Up @@ -1584,6 +1608,8 @@ type PaymentIntentPaymentMethodOptionsParams struct {
USBankAccount *PaymentIntentPaymentMethodOptionsUSBankAccountParams `form:"us_bank_account"`
// If this is a `wechat_pay` PaymentMethod, this sub-hash contains details about the WeChat Pay payment method options.
WeChatPay *PaymentIntentPaymentMethodOptionsWeChatPayParams `form:"wechat_pay"`
// If this is a `zip` PaymentMethod, this sub-hash contains details about the Zip payment method options.
Zip *PaymentIntentPaymentMethodOptionsZipParams `form:"zip"`
}

// Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
Expand Down Expand Up @@ -2565,6 +2591,14 @@ type PaymentIntentPaymentMethodOptionsWeChatPay struct {
// When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication).
SetupFutureUsage PaymentIntentPaymentMethodOptionsWeChatPaySetupFutureUsage `json:"setup_future_usage"`
}
type PaymentIntentPaymentMethodOptionsZip struct {
// Indicates that you intend to make future payments with this PaymentIntent's payment method.
//
// Providing this parameter 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. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes.
//
// When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication).
SetupFutureUsage PaymentIntentPaymentMethodOptionsZipSetupFutureUsage `json:"setup_future_usage"`
}

// Payment-method-specific configuration for this PaymentIntent.
type PaymentIntentPaymentMethodOptions struct {
Expand Down Expand Up @@ -2600,6 +2634,7 @@ type PaymentIntentPaymentMethodOptions struct {
Sofort *PaymentIntentPaymentMethodOptionsSofort `json:"sofort"`
USBankAccount *PaymentIntentPaymentMethodOptionsUSBankAccount `json:"us_bank_account"`
WeChatPay *PaymentIntentPaymentMethodOptionsWeChatPay `json:"wechat_pay"`
Zip *PaymentIntentPaymentMethodOptionsZip `json:"zip"`
}
type PaymentIntentProcessingCardCustomerNotification struct {
// Whether customer approval has been requested for this payment. For payments greater than INR 15000 or mandate amount, the customer must provide explicit approval of the payment with their bank.
Expand Down
Loading