From c0fd4c2f455e5d679a1c91dce9b476c920fc8cb1 Mon Sep 17 00:00:00 2001 From: Richard Marmorstein Date: Thu, 13 Oct 2022 12:20:17 -0700 Subject: [PATCH] Codegen for openapi v202 --- OPENAPI_VERSION | 2 +- types/2022-08-01/Accounts.d.ts | 4 ++++ types/2022-08-01/Capabilities.d.ts | 4 ++++ types/2022-08-01/Checkout/Sessions.d.ts | 22 +------------------- types/2022-08-01/Coupons.d.ts | 2 +- types/2022-08-01/Invoices.d.ts | 5 +++++ types/2022-08-01/Issuing/Authorizations.d.ts | 12 +++++++++++ types/2022-08-01/PaymentIntents.d.ts | 5 +++++ types/2022-08-01/Persons.d.ts | 4 ++++ types/2022-08-01/SetupAttempts.d.ts | 5 +++++ types/2022-08-01/SetupIntents.d.ts | 5 +++++ types/2022-08-01/index.d.ts | 2 +- 12 files changed, 48 insertions(+), 24 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index bd1eedd478..adcc792206 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v201 \ No newline at end of file +v202 \ No newline at end of file diff --git a/types/2022-08-01/Accounts.d.ts b/types/2022-08-01/Accounts.d.ts index 6e08f94748..b5846be44b 100644 --- a/types/2022-08-01/Accounts.d.ts +++ b/types/2022-08-01/Accounts.d.ts @@ -709,6 +709,7 @@ declare module 'stripe' { type Code = | 'invalid_address_city_state_postal_code' | 'invalid_dob_age_under_18' + | 'invalid_representative_country' | 'invalid_street_address' | 'invalid_tos_acceptance' | 'invalid_value_other' @@ -749,6 +750,7 @@ declare module 'stripe' { | 'verification_failed_keyed_match' | 'verification_failed_name_match' | 'verification_failed_other' + | 'verification_failed_residential_address' | 'verification_failed_tax_id_match' | 'verification_failed_tax_id_not_issued' | 'verification_missing_executives' @@ -833,6 +835,7 @@ declare module 'stripe' { type Code = | 'invalid_address_city_state_postal_code' | 'invalid_dob_age_under_18' + | 'invalid_representative_country' | 'invalid_street_address' | 'invalid_tos_acceptance' | 'invalid_value_other' @@ -873,6 +876,7 @@ declare module 'stripe' { | 'verification_failed_keyed_match' | 'verification_failed_name_match' | 'verification_failed_other' + | 'verification_failed_residential_address' | 'verification_failed_tax_id_match' | 'verification_failed_tax_id_not_issued' | 'verification_missing_executives' diff --git a/types/2022-08-01/Capabilities.d.ts b/types/2022-08-01/Capabilities.d.ts index 9c695dd846..13d9f297f2 100644 --- a/types/2022-08-01/Capabilities.d.ts +++ b/types/2022-08-01/Capabilities.d.ts @@ -120,6 +120,7 @@ declare module 'stripe' { type Code = | 'invalid_address_city_state_postal_code' | 'invalid_dob_age_under_18' + | 'invalid_representative_country' | 'invalid_street_address' | 'invalid_tos_acceptance' | 'invalid_value_other' @@ -160,6 +161,7 @@ declare module 'stripe' { | 'verification_failed_keyed_match' | 'verification_failed_name_match' | 'verification_failed_other' + | 'verification_failed_residential_address' | 'verification_failed_tax_id_match' | 'verification_failed_tax_id_not_issued' | 'verification_missing_executives' @@ -250,6 +252,7 @@ declare module 'stripe' { type Code = | 'invalid_address_city_state_postal_code' | 'invalid_dob_age_under_18' + | 'invalid_representative_country' | 'invalid_street_address' | 'invalid_tos_acceptance' | 'invalid_value_other' @@ -290,6 +293,7 @@ declare module 'stripe' { | 'verification_failed_keyed_match' | 'verification_failed_name_match' | 'verification_failed_other' + | 'verification_failed_residential_address' | 'verification_failed_tax_id_match' | 'verification_failed_tax_id_not_issued' | 'verification_missing_executives' diff --git a/types/2022-08-01/Checkout/Sessions.d.ts b/types/2022-08-01/Checkout/Sessions.d.ts index 13afebb3a2..c8dfe49522 100644 --- a/types/2022-08-01/Checkout/Sessions.d.ts +++ b/types/2022-08-01/Checkout/Sessions.d.ts @@ -1536,7 +1536,7 @@ declare module 'stripe' { metadata?: Stripe.MetadataParam; /** - * The mode of the Checkout Session. Required when using prices or `setup` mode. Pass `subscription` if the Checkout Session includes at least one recurring item. + * The mode of the Checkout Session. Pass `subscription` if the Checkout Session includes at least one recurring item. */ mode?: SessionCreateParams.Mode; @@ -1728,31 +1728,11 @@ declare module 'stripe' { */ amount?: number; - /** - * [Deprecated] Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). Required if `amount` is passed. - */ - currency?: string; - - /** - * [Deprecated] The description for the line item, to be displayed on the Checkout page. - */ - description?: string; - /** * The [tax rates](https://stripe.com/docs/api/tax_rates) that will be applied to this line item depending on the customer's billing/shipping address. We currently support the following countries: US, GB, AU, and all countries in the EU. */ dynamic_tax_rates?: Array; - /** - * [Deprecated] A list of image URLs representing this line item. Each image can be up to 5 MB in size. If passing `price` or `price_data`, specify images on the associated product instead. - */ - images?: Array; - - /** - * [Deprecated] The name for the item to be displayed on the Checkout page. Required if `amount` is passed. - */ - name?: string; - /** * The ID of the [Price](https://stripe.com/docs/api/prices) or [Plan](https://stripe.com/docs/api/plans) object. One of `price` or `price_data` is required. */ diff --git a/types/2022-08-01/Coupons.d.ts b/types/2022-08-01/Coupons.d.ts index 473650408e..c4768190ad 100644 --- a/types/2022-08-01/Coupons.d.ts +++ b/types/2022-08-01/Coupons.d.ts @@ -157,7 +157,7 @@ declare module 'stripe' { }; /** - * Specifies how long the discount will be in effect if used on a subscription. Can be `forever`, `once`, or `repeating`. Defaults to `once`. + * Specifies how long the discount will be in effect if used on a subscription. Defaults to `once`. */ duration?: CouponCreateParams.Duration; diff --git a/types/2022-08-01/Invoices.d.ts b/types/2022-08-01/Invoices.d.ts index 4ce0946231..2839bf0356 100644 --- a/types/2022-08-01/Invoices.d.ts +++ b/types/2022-08-01/Invoices.d.ts @@ -619,6 +619,11 @@ declare module 'stripe' { */ payment_method_type?: string; + /** + * A URL to the request log entry in your dashboard. + */ + request_log_url?: string; + /** * A SetupIntent guides you through the process of setting up and saving a customer's payment credentials for future payments. * For example, you could use a SetupIntent to set up and save your customer's card without immediately collecting a payment. diff --git a/types/2022-08-01/Issuing/Authorizations.d.ts b/types/2022-08-01/Issuing/Authorizations.d.ts index 95514ec376..936d99a094 100644 --- a/types/2022-08-01/Issuing/Authorizations.d.ts +++ b/types/2022-08-01/Issuing/Authorizations.d.ts @@ -88,6 +88,11 @@ declare module 'stripe' { */ metadata: Stripe.Metadata; + /** + * Details about the authorization, such as identifiers, set by the card network. + */ + network_data: Authorization.NetworkData | null; + /** * The pending authorization request. This field will only be non-null during an `issuing_authorization.request` webhook. */ @@ -178,6 +183,13 @@ declare module 'stripe' { state: string | null; } + interface NetworkData { + /** + * ID from the network that identifies the acquiring financial institution. For Visa and Mastercard credit transactions this is as 6 digit code. For Maestro debit transactions this is a 9 digit code. Uncommonly, acquiring institution ID is not provided. When this occurs, the value will be null. + */ + acquiring_institution_id: string | null; + } + interface PendingRequest { /** * The additional amount Stripe will hold if the authorization is approved, in the card's [currency](https://stripe.com/docs/api#issuing_authorization_object-pending-request-currency) and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). diff --git a/types/2022-08-01/PaymentIntents.d.ts b/types/2022-08-01/PaymentIntents.d.ts index 9ee206724a..56ba8fe1ba 100644 --- a/types/2022-08-01/PaymentIntents.d.ts +++ b/types/2022-08-01/PaymentIntents.d.ts @@ -317,6 +317,11 @@ declare module 'stripe' { */ payment_method_type?: string; + /** + * A URL to the request log entry in your dashboard. + */ + request_log_url?: string; + /** * A SetupIntent guides you through the process of setting up and saving a customer's payment credentials for future payments. * For example, you could use a SetupIntent to set up and save your customer's card without immediately collecting a payment. diff --git a/types/2022-08-01/Persons.d.ts b/types/2022-08-01/Persons.d.ts index ef735d1634..13bf6ec673 100644 --- a/types/2022-08-01/Persons.d.ts +++ b/types/2022-08-01/Persons.d.ts @@ -307,6 +307,7 @@ declare module 'stripe' { type Code = | 'invalid_address_city_state_postal_code' | 'invalid_dob_age_under_18' + | 'invalid_representative_country' | 'invalid_street_address' | 'invalid_tos_acceptance' | 'invalid_value_other' @@ -347,6 +348,7 @@ declare module 'stripe' { | 'verification_failed_keyed_match' | 'verification_failed_name_match' | 'verification_failed_other' + | 'verification_failed_residential_address' | 'verification_failed_tax_id_match' | 'verification_failed_tax_id_not_issued' | 'verification_missing_executives' @@ -455,6 +457,7 @@ declare module 'stripe' { type Code = | 'invalid_address_city_state_postal_code' | 'invalid_dob_age_under_18' + | 'invalid_representative_country' | 'invalid_street_address' | 'invalid_tos_acceptance' | 'invalid_value_other' @@ -495,6 +498,7 @@ declare module 'stripe' { | 'verification_failed_keyed_match' | 'verification_failed_name_match' | 'verification_failed_other' + | 'verification_failed_residential_address' | 'verification_failed_tax_id_match' | 'verification_failed_tax_id_not_issued' | 'verification_missing_executives' diff --git a/types/2022-08-01/SetupAttempts.d.ts b/types/2022-08-01/SetupAttempts.d.ts index 11043e066b..1f0572c855 100644 --- a/types/2022-08-01/SetupAttempts.d.ts +++ b/types/2022-08-01/SetupAttempts.d.ts @@ -428,6 +428,11 @@ declare module 'stripe' { */ payment_method_type?: string; + /** + * A URL to the request log entry in your dashboard. + */ + request_log_url?: string; + /** * A SetupIntent guides you through the process of setting up and saving a customer's payment credentials for future payments. * For example, you could use a SetupIntent to set up and save your customer's card without immediately collecting a payment. diff --git a/types/2022-08-01/SetupIntents.d.ts b/types/2022-08-01/SetupIntents.d.ts index bba293a326..72132f0240 100644 --- a/types/2022-08-01/SetupIntents.d.ts +++ b/types/2022-08-01/SetupIntents.d.ts @@ -221,6 +221,11 @@ declare module 'stripe' { */ payment_method_type?: string; + /** + * A URL to the request log entry in your dashboard. + */ + request_log_url?: string; + /** * A SetupIntent guides you through the process of setting up and saving a customer's payment credentials for future payments. * For example, you could use a SetupIntent to set up and save your customer's card without immediately collecting a payment. diff --git a/types/2022-08-01/index.d.ts b/types/2022-08-01/index.d.ts index ab72cdea9f..baaf817b31 100644 --- a/types/2022-08-01/index.d.ts +++ b/types/2022-08-01/index.d.ts @@ -134,7 +134,7 @@ declare module 'stripe' { export class Stripe { static Stripe: typeof Stripe; - constructor(apiKey: string, config: Stripe.StripeConfig); + constructor(apiKey: string, config?: Stripe.StripeConfig); setAppInfo(info: Stripe.AppInfo): void;