Skip to content

Commit

Permalink
Update generated code for v966
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Apr 17, 2024
1 parent 8ed7605 commit 5763ed2
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 1 deletion.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v964
v966
25 changes: 25 additions & 0 deletions types/Checkout/Sessions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,11 @@ declare module 'stripe' {
*/
return_url?: string;

/**
* Controls saved payment method settings for the session. Only available in `payment` and `subscription` mode.
*/
saved_payment_method_options: Session.SavedPaymentMethodOptions | null;

/**
* The ID of the SetupIntent for Checkout Sessions in `setup` mode.
*/
Expand Down Expand Up @@ -1485,6 +1490,26 @@ declare module 'stripe' {

type RedirectOnCompletion = 'always' | 'if_required' | 'never';

interface SavedPaymentMethodOptions {
/**
* Controls which payment methods are eligible to be redisplayed to returning customers. Corresponds to `allow_redisplay` on the payment method.
*/
allow_redisplay_filters: Array<
SavedPaymentMethodOptions.AllowRedisplayFilter
> | null;

/**
* Enable customers to choose if they wish to save their payment method for future use.
*/
payment_method_save: SavedPaymentMethodOptions.PaymentMethodSave | null;
}

namespace SavedPaymentMethodOptions {
type AllowRedisplayFilter = 'always' | 'limited' | 'unspecified';

type PaymentMethodSave = 'disabled' | 'enabled';
}

interface ShippingAddressCollection {
/**
* An array of two-letter ISO country codes representing which countries Checkout should provide as options for
Expand Down
41 changes: 41 additions & 0 deletions types/Checkout/SessionsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,11 @@ declare module 'stripe' {
*/
payment_method_configuration?: string;

/**
* This parameter allows you to set some attributes on the payment method created during a Checkout session.
*/
payment_method_data?: SessionCreateParams.PaymentMethodData;

/**
* Payment-method-specific configuration.
*/
Expand Down Expand Up @@ -202,6 +207,11 @@ declare module 'stripe' {
*/
return_url?: string;

/**
* Controls saved payment method settings for the session. Only available in `payment` and `subscription` mode.
*/
saved_payment_method_options?: SessionCreateParams.SavedPaymentMethodOptions;

/**
* A subset of parameters to be passed to SetupIntent creation for Checkout Sessions in `setup` mode.
*/
Expand Down Expand Up @@ -947,6 +957,17 @@ declare module 'stripe' {

type PaymentMethodCollection = 'always' | 'if_required';

interface PaymentMethodData {
/**
* Allow redisplay will be set on the payment method on confirmation and indicates whether this payment method can be shown again to the customer in a checkout flow. Only set this field if you wish to override the allow_redisplay value determined by Checkout.
*/
allow_redisplay?: PaymentMethodData.AllowRedisplay;
}

namespace PaymentMethodData {
type AllowRedisplay = 'always' | 'limited' | 'unspecified';
}

interface PaymentMethodOptions {
/**
* contains details about the ACSS Debit payment method options.
Expand Down Expand Up @@ -1785,6 +1806,26 @@ declare module 'stripe' {

type RedirectOnCompletion = 'always' | 'if_required' | 'never';

interface SavedPaymentMethodOptions {
/**
* Controls which payment methods are eligible to be redisplayed to returning customers. Corresponds to `allow_redisplay` on the payment method.
*/
allow_redisplay_filters?: Array<
SavedPaymentMethodOptions.AllowRedisplayFilter
>;

/**
* Enable customers to choose if they wish to save their payment method for future use.
*/
payment_method_save?: SavedPaymentMethodOptions.PaymentMethodSave;
}

namespace SavedPaymentMethodOptions {
type AllowRedisplayFilter = 'always' | 'limited' | 'unspecified';

type PaymentMethodSave = 'disabled' | 'enabled';
}

interface SetupIntentData {
/**
* An arbitrary string attached to the object. Often useful for displaying to users.
Expand Down

0 comments on commit 5763ed2

Please sign in to comment.