From 4e321d85071bf23ae4fa0ae9b5928ee799fac564 Mon Sep 17 00:00:00 2001 From: Richard Marmorstein Date: Fri, 19 Mar 2021 18:21:03 -0400 Subject: [PATCH] Codegen for openapi f4bfd6d --- types/2020-08-27/Accounts.d.ts | 2 +- types/2020-08-27/Capabilities.d.ts | 8 +++++++- types/2020-08-27/Checkout/Sessions.d.ts | 10 ++++++++++ types/2020-08-27/Invoices.d.ts | 2 +- types/2020-08-27/Prices.d.ts | 2 +- types/2020-08-27/Products.d.ts | 18 +++++++++--------- 6 files changed, 29 insertions(+), 13 deletions(-) diff --git a/types/2020-08-27/Accounts.d.ts b/types/2020-08-27/Accounts.d.ts index a98da3930d..02d24ddc9b 100644 --- a/types/2020-08-27/Accounts.d.ts +++ b/types/2020-08-27/Accounts.d.ts @@ -58,7 +58,7 @@ declare module 'stripe' { details_submitted: boolean; /** - * The primary user's email address. + * An email address associated with the account. You can treat this as metadata: it is not used for authentication or messaging account holders. */ email: string | null; diff --git a/types/2020-08-27/Capabilities.d.ts b/types/2020-08-27/Capabilities.d.ts index 3bd0d861aa..206be588de 100644 --- a/types/2020-08-27/Capabilities.d.ts +++ b/types/2020-08-27/Capabilities.d.ts @@ -52,7 +52,13 @@ declare module 'stripe' { currently_due: Array; /** - * If the capability is disabled, this string describes why. Possible values are `requirement.fields_needed`, `pending.onboarding`, `pending.review`, `rejected_fraud`, or `rejected.other`. + * If the capability is disabled, this string describes why. Possible values are `requirement.fields_needed`, `pending.onboarding`, `pending.review`, `rejected_fraud`, `rejected.unsupported_business` or `rejected.other`. + * + * `rejected.unsupported_business` means that the account's business is not supported by the capability. For example, payment methods may restrict the businesses they support in their terms of service: + * + * - [Afterpay Clearpay's terms of service](https://stripe.com/afterpay-clearpay/legal#restricted-businesses) + * + * If you believe that the rejection is in error, please contact support@stripe.com for assistance. */ disabled_reason: string | null; diff --git a/types/2020-08-27/Checkout/Sessions.d.ts b/types/2020-08-27/Checkout/Sessions.d.ts index f503744b1d..9c852440a7 100644 --- a/types/2020-08-27/Checkout/Sessions.d.ts +++ b/types/2020-08-27/Checkout/Sessions.d.ts @@ -557,6 +557,11 @@ declare module 'stripe' { */ amount_discount: number; + /** + * This is the sum of all the line item shipping amounts. + */ + amount_shipping?: number | null; + /** * This is the sum of all the line item tax amounts. */ @@ -724,6 +729,11 @@ declare module 'stripe' { */ shipping_address_collection?: SessionCreateParams.ShippingAddressCollection; + /** + * The shipping rate to apply to this Session. Currently, only up to one may be specified + */ + shipping_rates?: Array; + /** * Describes the type of transaction being performed by Checkout in order to customize * relevant text on the page, such as the submit button. `submit_type` can only be diff --git a/types/2020-08-27/Invoices.d.ts b/types/2020-08-27/Invoices.d.ts index ca792ef35d..7f07dfbcfa 100644 --- a/types/2020-08-27/Invoices.d.ts +++ b/types/2020-08-27/Invoices.d.ts @@ -101,7 +101,7 @@ declare module 'stripe' { /** * The ID of the customer who will be billed. */ - customer: string | Stripe.Customer | Stripe.DeletedCustomer; + customer: string | Stripe.Customer | Stripe.DeletedCustomer | null; /** * The customer's address. Until the invoice is finalized, this field will equal `customer.address`. Once the invoice is finalized, this field will no longer be updated. diff --git a/types/2020-08-27/Prices.d.ts b/types/2020-08-27/Prices.d.ts index 7519009ff7..dce49e31a1 100644 --- a/types/2020-08-27/Prices.d.ts +++ b/types/2020-08-27/Prices.d.ts @@ -54,7 +54,7 @@ declare module 'stripe' { metadata: Stripe.Metadata; /** - * A brief description of the plan, hidden from customers. + * A brief description of the price, hidden from customers. */ nickname: string | null; diff --git a/types/2020-08-27/Products.d.ts b/types/2020-08-27/Products.d.ts index 487a91098c..575b127362 100644 --- a/types/2020-08-27/Products.d.ts +++ b/types/2020-08-27/Products.d.ts @@ -69,12 +69,12 @@ declare module 'stripe' { name: string; /** - * The dimensions of this product for shipping purposes. A SKU associated with this product can override this value by having its own `package_dimensions`. Only applicable to products of `type=good`. + * The dimensions of this product for shipping purposes. */ package_dimensions: Product.PackageDimensions | null; /** - * Whether this product is a shipped good. Only applicable to products of `type=good`. + * Whether this product is shipped (i.e., physical goods). */ shippable: boolean | null; @@ -99,7 +99,7 @@ declare module 'stripe' { updated: number; /** - * A URL of a publicly-accessible webpage for this product. Only applicable to products of `type=good`. + * A URL of a publicly-accessible webpage for this product. */ url: string | null; } @@ -202,12 +202,12 @@ declare module 'stripe' { metadata?: Stripe.MetadataParam; /** - * The dimensions of this product for shipping purposes. A SKU associated with this product can override this value by having its own `package_dimensions`. May only be set if type=`good`. + * The dimensions of this product for shipping purposes. */ package_dimensions?: ProductCreateParams.PackageDimensions; /** - * Whether this product is shipped (i.e., physical goods). Defaults to `true`. May only be set if type=`good`. + * Whether this product is shipped (i.e., physical goods). */ shippable?: boolean; @@ -230,7 +230,7 @@ declare module 'stripe' { unit_label?: string; /** - * A URL of a publicly-accessible webpage for this product. May only be set if type=`good`. + * A URL of a publicly-accessible webpage for this product. */ url?: string; } @@ -315,14 +315,14 @@ declare module 'stripe' { name?: string; /** - * The dimensions of this product for shipping purposes. A SKU associated with this product can override this value by having its own `package_dimensions`. May only be set if `type=good`. + * The dimensions of this product for shipping purposes. */ package_dimensions?: Stripe.Emptyable< ProductUpdateParams.PackageDimensions >; /** - * Whether this product is shipped (i.e., physical goods). Defaults to `true`. May only be set if `type=good`. + * Whether this product is shipped (i.e., physical goods). */ shippable?: boolean; @@ -340,7 +340,7 @@ declare module 'stripe' { unit_label?: string; /** - * A URL of a publicly-accessible webpage for this product. May only be set if `type=good`. + * A URL of a publicly-accessible webpage for this product. */ url?: string; }