Skip to content

Commit

Permalink
Update generated code for v1105
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Jun 28, 2024
1 parent 276a569 commit 6432054
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1104
v1105
24 changes: 12 additions & 12 deletions types/CustomerSessions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
declare module 'stripe' {
namespace Stripe {
/**
* A customer session allows you to grant client access to Stripe's frontend SDKs (like StripeJs)
* control over a customer.
* A Customer Session allows you to grant Stripe's frontend SDKs (like Stripe.js) client-side access
* control over a Customer.
*/
interface CustomerSession {
/**
Expand All @@ -13,14 +13,14 @@ declare module 'stripe' {
object: 'customer_session';

/**
* The client secret of this customer session. Used on the client to set up secure access to the given `customer`.
* The client secret of this Customer Session. Used on the client to set up secure access to the given `customer`.
*
* The client secret can be used to provide access to `customer` from your frontend. It should not be stored, logged, or exposed to anyone other than the relevant customer. Make sure that you have TLS enabled on any page that includes the client secret.
*/
client_secret: string;

/**
* Configuration for the components supported by this customer session.
* Configuration for the components supported by this Customer Session.
*/
components?: CustomerSession.Components;

Expand All @@ -30,12 +30,12 @@ declare module 'stripe' {
created: number;

/**
* The customer the customer session was created for.
* The Customer the Customer Session was created for.
*/
customer: string | Stripe.Customer;

/**
* The timestamp at which this customer session will expire.
* The timestamp at which this Customer Session will expire.
*/
expires_at: number;

Expand All @@ -53,7 +53,7 @@ declare module 'stripe' {
buy_button: Components.BuyButton;

/**
* This hash contains whether the payment element is enabled and the features it supports.
* This hash contains whether the Payment Element is enabled and the features it supports.
*/
payment_element?: Components.PaymentElement;

Expand All @@ -73,34 +73,34 @@ declare module 'stripe' {

interface PaymentElement {
/**
* Whether the payment element is enabled.
* Whether the Payment Element is enabled.
*/
enabled: boolean;

/**
* This hash defines whether the payment element supports certain features.
* This hash defines whether the Payment Element supports certain features.
*/
features: PaymentElement.Features | null;
}

namespace PaymentElement {
interface Features {
/**
* Controls whether the Payment Element displays the option to remove a saved payment method."
* Controls whether the Payment Element displays the option to remove a saved payment method. This parameter defaults to `disabled`.
*
* Allowing buyers to remove their saved payment methods impacts subscriptions that depend on that payment method. Removing the payment method detaches the [`customer` object](https://docs.stripe.com/api/payment_methods/object#payment_method_object-customer) from that [PaymentMethod](https://docs.stripe.com/api/payment_methods).
*/
payment_method_remove: Features.PaymentMethodRemove;

/**
* Controls whether the Payment Element displays a checkbox offering to save a new payment method.
* Controls whether the Payment Element displays a checkbox offering to save a new payment method. This parameter defaults to `disabled`.
*
* If a customer checks the box, the [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) value on the PaymentMethod is set to `'always'` at confirmation time. For PaymentIntents, the [`setup_future_usage`](https://docs.stripe.com/api/payment_intents/object#payment_intent_object-setup_future_usage) value is also set to the value defined in `payment_method_save_usage`.
*/
payment_method_save: Features.PaymentMethodSave;

/**
* Controls whether the Payment Element displays the option to update a saved payment method.
* Controls whether the Payment Element displays the option to update a saved payment method. This parameter defaults to `disabled`.
*/
payment_method_update: Features.PaymentMethodUpdate;
}
Expand Down
16 changes: 8 additions & 8 deletions types/CustomerSessionsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ declare module 'stripe' {
components: CustomerSessionCreateParams.Components;

/**
* The ID of an existing customer for which to create the customer session.
* The ID of an existing customer for which to create the Customer Session.
*/
customer: string;

Expand All @@ -27,7 +27,7 @@ declare module 'stripe' {
buy_button?: Components.BuyButton;

/**
* Configuration for the payment element.
* Configuration for the Payment Element.
*/
payment_element?: Components.PaymentElement;

Expand All @@ -47,34 +47,34 @@ declare module 'stripe' {

interface PaymentElement {
/**
* Whether the payment element is enabled.
* Whether the Payment Element is enabled.
*/
enabled: boolean;

/**
* This hash defines whether the payment element supports certain features.
* This hash defines whether the Payment Element supports certain features.
*/
features?: PaymentElement.Features;
}

namespace PaymentElement {
interface Features {
/**
* Controls whether the Payment Element displays the option to remove a saved payment method."
* Controls whether the Payment Element displays the option to remove a saved payment method. This parameter defaults to `disabled`.
*
* Allowing buyers to remove their saved payment methods impacts subscriptions that depend on that payment method. Removing the payment method detaches the [`customer` object](https://docs.stripe.com/api/payment_methods/object#payment_method_object-customer) from that [PaymentMethod](https://docs.stripe.com/api/payment_methods).
*/
payment_method_remove?: Features.PaymentMethodRemove;

/**
* Controls whether the Payment Element displays a checkbox offering to save a new payment method.
* Controls whether the Payment Element displays a checkbox offering to save a new payment method. This parameter defaults to `disabled`.
*
* If a customer checks the box, the [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) value on the PaymentMethod is set to `'always'` at confirmation time. For PaymentIntents, the [`setup_future_usage`](https://docs.stripe.com/api/payment_intents/object#payment_intent_object-setup_future_usage) value is also set to the value defined in `payment_method_save_usage`.
*/
payment_method_save?: Features.PaymentMethodSave;

/**
* Controls whether the Payment Element displays the option to update a saved payment method.
* Controls whether the Payment Element displays the option to update a saved payment method. This parameter defaults to `disabled`.
*/
payment_method_update?: Features.PaymentMethodUpdate;
}
Expand All @@ -99,7 +99,7 @@ declare module 'stripe' {

class CustomerSessionsResource {
/**
* Creates a customer session object that includes a single-use client secret that you can use on your front-end to grant client-side API access for certain customer resources.
* Creates a Customer Session object that includes a single-use client secret that you can use on your front-end to grant client-side API access for certain customer resources.
*/
create(
params: CustomerSessionCreateParams,
Expand Down

0 comments on commit 6432054

Please sign in to comment.