From 7368a7ba1cbe8ae1ba7bc77775a356467055275d Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 26 Apr 2024 10:40:42 +0000 Subject: [PATCH 01/13] Update generated code for v994 --- OPENAPI_VERSION | 2 +- types/Invoices.d.ts | 1 + types/PaymentIntents.d.ts | 1 + types/SetupAttempts.d.ts | 1 + types/SetupIntents.d.ts | 1 + types/Tax/Calculations.d.ts | 9 ++++++ types/Tax/CalculationsResource.d.ts | 46 +++++++++++++++++++++++++++++ types/Tax/Transactions.d.ts | 9 ++++++ 8 files changed, 69 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 52d771c1e6..02bc66ab1f 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v993 \ No newline at end of file +v994 \ No newline at end of file diff --git a/types/Invoices.d.ts b/types/Invoices.d.ts index dce82c3423..bd0ad6740c 100644 --- a/types/Invoices.d.ts +++ b/types/Invoices.d.ts @@ -928,6 +928,7 @@ declare module 'stripe' { | 'setup_intent_mandate_invalid' | 'setup_intent_setup_attempt_expired' | 'setup_intent_unexpected_state' + | 'shipping_address_invalid' | 'shipping_calculation_failed' | 'sku_inactive' | 'state_unsupported' diff --git a/types/PaymentIntents.d.ts b/types/PaymentIntents.d.ts index 86dd416572..5573cdadb1 100644 --- a/types/PaymentIntents.d.ts +++ b/types/PaymentIntents.d.ts @@ -526,6 +526,7 @@ declare module 'stripe' { | 'setup_intent_mandate_invalid' | 'setup_intent_setup_attempt_expired' | 'setup_intent_unexpected_state' + | 'shipping_address_invalid' | 'shipping_calculation_failed' | 'sku_inactive' | 'state_unsupported' diff --git a/types/SetupAttempts.d.ts b/types/SetupAttempts.d.ts index 8353b3b0fa..d16df113f0 100644 --- a/types/SetupAttempts.d.ts +++ b/types/SetupAttempts.d.ts @@ -769,6 +769,7 @@ declare module 'stripe' { | 'setup_intent_mandate_invalid' | 'setup_intent_setup_attempt_expired' | 'setup_intent_unexpected_state' + | 'shipping_address_invalid' | 'shipping_calculation_failed' | 'sku_inactive' | 'state_unsupported' diff --git a/types/SetupIntents.d.ts b/types/SetupIntents.d.ts index b24edb5e54..1dc9f833a6 100644 --- a/types/SetupIntents.d.ts +++ b/types/SetupIntents.d.ts @@ -439,6 +439,7 @@ declare module 'stripe' { | 'setup_intent_mandate_invalid' | 'setup_intent_setup_attempt_expired' | 'setup_intent_unexpected_state' + | 'shipping_address_invalid' | 'shipping_calculation_failed' | 'sku_inactive' | 'state_unsupported' diff --git a/types/Tax/Calculations.d.ts b/types/Tax/Calculations.d.ts index 41f4e19695..51829e2e64 100644 --- a/types/Tax/Calculations.d.ts +++ b/types/Tax/Calculations.d.ts @@ -51,6 +51,11 @@ declare module 'stripe' { */ livemode: boolean; + /** + * The details of the ship from location, such as the address. + */ + ship_from_details: Calculation.ShipFromDetails | null; + /** * The shipping cost details for the calculation. */ @@ -202,6 +207,10 @@ declare module 'stripe' { } } + interface ShipFromDetails { + address: Stripe.Address; + } + interface ShippingCost { /** * The shipping amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). If `tax_behavior=inclusive`, then this amount includes taxes. Otherwise, taxes were calculated on top of this amount. diff --git a/types/Tax/CalculationsResource.d.ts b/types/Tax/CalculationsResource.d.ts index 83639b59c0..c97b384b52 100644 --- a/types/Tax/CalculationsResource.d.ts +++ b/types/Tax/CalculationsResource.d.ts @@ -29,6 +29,11 @@ declare module 'stripe' { */ expand?: Array; + /** + * Details about the address from which the goods are being shipped. + */ + ship_from_details?: CalculationCreateParams.ShipFromDetails; + /** * Shipping cost details to be used for the calculation. */ @@ -235,6 +240,47 @@ declare module 'stripe' { type TaxBehavior = 'exclusive' | 'inclusive'; } + interface ShipFromDetails { + /** + * The address from which the goods are being shipped from. + */ + address: ShipFromDetails.Address; + } + + namespace ShipFromDetails { + interface Address { + /** + * City, district, suburb, town, or village. + */ + city?: Stripe.Emptyable; + + /** + * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + */ + country: string; + + /** + * Address line 1 (e.g., street, PO Box, or company name). + */ + line1?: Stripe.Emptyable; + + /** + * Address line 2 (e.g., apartment, suite, unit, or building). + */ + line2?: Stripe.Emptyable; + + /** + * ZIP or postal code. + */ + postal_code?: Stripe.Emptyable; + + /** + * State/province as an [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) subdivision code, without country prefix. Example: "NY" or "TX". + */ + state?: Stripe.Emptyable; + } + } + interface ShippingCost { /** * A positive integer in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) representing the shipping charge. If `tax_behavior=inclusive`, then this amount includes taxes. Otherwise, taxes are calculated on top of this amount. diff --git a/types/Tax/Transactions.d.ts b/types/Tax/Transactions.d.ts index f175f0866a..3160629e9d 100644 --- a/types/Tax/Transactions.d.ts +++ b/types/Tax/Transactions.d.ts @@ -61,6 +61,11 @@ declare module 'stripe' { */ reversal: Transaction.Reversal | null; + /** + * The details of the ship from location, such as the address. + */ + ship_from_details: Transaction.ShipFromDetails | null; + /** * The shipping cost details for the transaction. */ @@ -209,6 +214,10 @@ declare module 'stripe' { original_transaction: string | null; } + interface ShipFromDetails { + address: Stripe.Address; + } + interface ShippingCost { /** * The shipping amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). If `tax_behavior=inclusive`, then this amount includes taxes. Otherwise, taxes were calculated on top of this amount. From 87851a2502d2dad81e6eb6d56c39c8899f05e9fa Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 26 Apr 2024 15:45:29 +0000 Subject: [PATCH 02/13] Update generated code for v996 --- OPENAPI_VERSION | 2 +- types/Invoices.d.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 02bc66ab1f..65c59c69e6 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v994 \ No newline at end of file +v996 \ No newline at end of file diff --git a/types/Invoices.d.ts b/types/Invoices.d.ts index bd0ad6740c..5b2c3d54cf 100644 --- a/types/Invoices.d.ts +++ b/types/Invoices.d.ts @@ -343,12 +343,12 @@ declare module 'stripe' { payment_settings: Invoice.PaymentSettings; /** - * End of the usage period during which invoice items were added to this invoice. + * End of the usage period during which invoice items were added to this invoice. This looks back one period for a subscription invoice. Use the [line item period](https://stripe.com/api/invoices/line_item#invoice_line_item_object-period) to get the service period for each price. */ period_end: number; /** - * Start of the usage period during which invoice items were added to this invoice. + * Start of the usage period during which invoice items were added to this invoice. This looks back one period for a subscription invoice. Use the [line item period](https://stripe.com/api/invoices/line_item#invoice_line_item_object-period) to get the service period for each price. */ period_start: number; From 5c715d388a2510f7671edb92dd8695c1c0b4b01f Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 26 Apr 2024 16:57:24 +0000 Subject: [PATCH 03/13] Update generated code for v997 --- OPENAPI_VERSION | 2 +- types/PaymentMethodConfigurations.d.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 65c59c69e6..bb0c37c10c 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v996 \ No newline at end of file +v997 \ No newline at end of file diff --git a/types/PaymentMethodConfigurations.d.ts b/types/PaymentMethodConfigurations.d.ts index 45680cde7c..23e8b63ef1 100644 --- a/types/PaymentMethodConfigurations.d.ts +++ b/types/PaymentMethodConfigurations.d.ts @@ -13,6 +13,8 @@ declare module 'stripe' { * * Child configurations have a `parent` that sets default values and controls which settings connected accounts may override. You can specify a parent ID at payment time, and Stripe will automatically resolve the connected account's associated child configuration. Parent configurations are [managed in the dashboard](https://dashboard.stripe.com/settings/payment_methods/connected_accounts) and are not available in this API. * + * **Note:** The ability to turn off cards is in limited preview. Please [contact us](https://support.stripe.com/contact) if you require this functionality. + * * Related guides: * - [Payment Method Configurations API](https://stripe.com/docs/connect/payment-method-configurations) * - [Multiple configurations on dynamic payment methods](https://stripe.com/docs/payments/multiple-payment-method-configs) From aafee8c3a30be078c16e3876894fbe047441bb5d Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 26 Apr 2024 21:53:49 +0000 Subject: [PATCH 04/13] Update generated code for v998 --- OPENAPI_VERSION | 2 +- types/Apps/Secrets.d.ts | 2 +- types/BillingPortal/Configurations.d.ts | 2 +- types/Charges.d.ts | 2 +- types/ConfirmationTokens.d.ts | 2 +- types/Identity/VerificationReports.d.ts | 10 +++++----- types/Identity/VerificationSessions.d.ts | 8 ++++---- types/Issuing/Disputes.d.ts | 2 +- types/Issuing/Transactions.d.ts | 2 +- types/PaymentMethods.d.ts | 2 +- types/Tax/CalculationLineItems.d.ts | 2 +- types/Tax/Calculations.d.ts | 2 +- types/Tax/Transactions.d.ts | 2 +- types/Treasury/FinancialAccounts.d.ts | 2 +- types/Treasury/ReceivedCredits.d.ts | 2 +- types/Treasury/TransactionEntries.d.ts | 2 +- types/Treasury/Transactions.d.ts | 4 ++-- 17 files changed, 25 insertions(+), 25 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index bb0c37c10c..121a26ced9 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v997 \ No newline at end of file +v998 \ No newline at end of file diff --git a/types/Apps/Secrets.d.ts b/types/Apps/Secrets.d.ts index 3c8a8df5b0..941ceff9ea 100644 --- a/types/Apps/Secrets.d.ts +++ b/types/Apps/Secrets.d.ts @@ -53,7 +53,7 @@ declare module 'stripe' { /** * The plaintext secret value to be stored. */ - payload: string | null; + payload?: string | null; scope: Secret.Scope; } diff --git a/types/BillingPortal/Configurations.d.ts b/types/BillingPortal/Configurations.d.ts index 62608a1dbd..20762774a6 100644 --- a/types/BillingPortal/Configurations.d.ts +++ b/types/BillingPortal/Configurations.d.ts @@ -203,7 +203,7 @@ declare module 'stripe' { /** * The list of up to 10 products that support subscription updates. */ - products: Array | null; + products?: Array | null; /** * Determines how to handle prorations resulting from subscription updates. Valid values are `none`, `create_prorations`, and `always_invoice`. Defaults to a value of `none` if you don't set it during creation. diff --git a/types/Charges.d.ts b/types/Charges.d.ts index e87f6b2fcc..1415f6b31e 100644 --- a/types/Charges.d.ts +++ b/types/Charges.d.ts @@ -191,7 +191,7 @@ declare module 'stripe' { /** * A list of refunds that have been applied to the charge. */ - refunds: ApiList | null; + refunds?: ApiList | null; /** * ID of the review associated with this charge if one exists. diff --git a/types/ConfirmationTokens.d.ts b/types/ConfirmationTokens.d.ts index 164e7870d5..bdee95d799 100644 --- a/types/ConfirmationTokens.d.ts +++ b/types/ConfirmationTokens.d.ts @@ -847,7 +847,7 @@ declare module 'stripe' { /** * The customer's date of birth, if provided. */ - dob: Klarna.Dob | null; + dob?: Klarna.Dob | null; } namespace Klarna { diff --git a/types/Identity/VerificationReports.d.ts b/types/Identity/VerificationReports.d.ts index 036125c7df..71fb28e51c 100644 --- a/types/Identity/VerificationReports.d.ts +++ b/types/Identity/VerificationReports.d.ts @@ -95,7 +95,7 @@ declare module 'stripe' { /** * Date of birth as it appears in the document. */ - dob: Document.Dob | null; + dob?: Document.Dob | null; /** * Details on the verification error. Present when status is `unverified`. @@ -105,7 +105,7 @@ declare module 'stripe' { /** * Expiration date of the document. */ - expiration_date: Document.ExpirationDate | null; + expiration_date?: Document.ExpirationDate | null; /** * Array of [File](https://stripe.com/docs/api/files) ids containing images for this document. @@ -135,7 +135,7 @@ declare module 'stripe' { /** * Document ID number. */ - number: string | null; + number?: string | null; /** * Status of this `document` check. @@ -267,7 +267,7 @@ declare module 'stripe' { /** * Date of birth. */ - dob: IdNumber.Dob | null; + dob?: IdNumber.Dob | null; /** * Details on the verification error. Present when status is `unverified`. @@ -282,7 +282,7 @@ declare module 'stripe' { /** * ID number. When `id_number_type` is `us_ssn`, only the last 4 digits are present. */ - id_number: string | null; + id_number?: string | null; /** * Type of ID number. diff --git a/types/Identity/VerificationSessions.d.ts b/types/Identity/VerificationSessions.d.ts index 28a75b6c8c..61cc316044 100644 --- a/types/Identity/VerificationSessions.d.ts +++ b/types/Identity/VerificationSessions.d.ts @@ -73,7 +73,7 @@ declare module 'stripe' { /** * Details provided about the user being verified. These details may be shown to the user. */ - provided_details: VerificationSession.ProvidedDetails | null; + provided_details?: VerificationSession.ProvidedDetails | null; /** * Redaction status of this VerificationSession. If the VerificationSession is not redacted, this field will be null. @@ -103,7 +103,7 @@ declare module 'stripe' { /** * The user's verified data. */ - verified_outputs: VerificationSession.VerifiedOutputs | null; + verified_outputs?: VerificationSession.VerifiedOutputs | null; } namespace VerificationSession { @@ -232,7 +232,7 @@ declare module 'stripe' { /** * The user's verified date of birth. */ - dob: VerifiedOutputs.Dob | null; + dob?: VerifiedOutputs.Dob | null; /** * The user's verified email address @@ -247,7 +247,7 @@ declare module 'stripe' { /** * The user's verified id number. */ - id_number: string | null; + id_number?: string | null; /** * The user's verified id number type. diff --git a/types/Issuing/Disputes.d.ts b/types/Issuing/Disputes.d.ts index 7828ae3d21..8ce06ff7d8 100644 --- a/types/Issuing/Disputes.d.ts +++ b/types/Issuing/Disputes.d.ts @@ -27,7 +27,7 @@ declare module 'stripe' { /** * List of balance transactions associated with the dispute. */ - balance_transactions: Array | null; + balance_transactions?: Array | null; /** * Time at which the object was created. Measured in seconds since the Unix epoch. diff --git a/types/Issuing/Transactions.d.ts b/types/Issuing/Transactions.d.ts index 7ff79517dd..67e8ea4169 100644 --- a/types/Issuing/Transactions.d.ts +++ b/types/Issuing/Transactions.d.ts @@ -96,7 +96,7 @@ declare module 'stripe' { /** * Additional purchase information that is optionally provided by the merchant. */ - purchase_details: Transaction.PurchaseDetails | null; + purchase_details?: Transaction.PurchaseDetails | null; /** * [Token](https://stripe.com/docs/api/issuing/tokens/object) object used for this transaction. If a network token was not used for this transaction, this field will be null. diff --git a/types/PaymentMethods.d.ts b/types/PaymentMethods.d.ts index ada5d8b940..d6fc8e0012 100644 --- a/types/PaymentMethods.d.ts +++ b/types/PaymentMethods.d.ts @@ -775,7 +775,7 @@ declare module 'stripe' { /** * The customer's date of birth, if provided. */ - dob: Klarna.Dob | null; + dob?: Klarna.Dob | null; } namespace Klarna { diff --git a/types/Tax/CalculationLineItems.d.ts b/types/Tax/CalculationLineItems.d.ts index ec893cf5f6..1b106c5de3 100644 --- a/types/Tax/CalculationLineItems.d.ts +++ b/types/Tax/CalculationLineItems.d.ts @@ -55,7 +55,7 @@ declare module 'stripe' { /** * Detailed account of taxes relevant to this line item. */ - tax_breakdown: Array | null; + tax_breakdown?: Array | null; /** * The [tax code](https://stripe.com/docs/tax/tax-categories) ID used for this resource. diff --git a/types/Tax/Calculations.d.ts b/types/Tax/Calculations.d.ts index 51829e2e64..a7b2ac0554 100644 --- a/types/Tax/Calculations.d.ts +++ b/types/Tax/Calculations.d.ts @@ -44,7 +44,7 @@ declare module 'stripe' { /** * The list of items the customer is purchasing. */ - line_items: ApiList | null; + line_items?: ApiList | null; /** * Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. diff --git a/types/Tax/Transactions.d.ts b/types/Tax/Transactions.d.ts index 3160629e9d..ba5000df06 100644 --- a/types/Tax/Transactions.d.ts +++ b/types/Tax/Transactions.d.ts @@ -39,7 +39,7 @@ declare module 'stripe' { /** * The tax collected or refunded, by line item. */ - line_items: ApiList | null; + line_items?: ApiList | null; /** * Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. diff --git a/types/Treasury/FinancialAccounts.d.ts b/types/Treasury/FinancialAccounts.d.ts index 6ef5b7cef9..3cdc016d54 100644 --- a/types/Treasury/FinancialAccounts.d.ts +++ b/types/Treasury/FinancialAccounts.d.ts @@ -150,7 +150,7 @@ declare module 'stripe' { /** * The account number. */ - account_number: string | null; + account_number?: string | null; /** * The last four characters of the account number. diff --git a/types/Treasury/ReceivedCredits.d.ts b/types/Treasury/ReceivedCredits.d.ts index cb924d22d4..43ebc4d278 100644 --- a/types/Treasury/ReceivedCredits.d.ts +++ b/types/Treasury/ReceivedCredits.d.ts @@ -184,7 +184,7 @@ declare module 'stripe' { /** * The expandable object of the source flow. */ - source_flow_details: LinkedFlows.SourceFlowDetails | null; + source_flow_details?: LinkedFlows.SourceFlowDetails | null; /** * The type of flow that originated the ReceivedCredit (for example, `outbound_payment`). diff --git a/types/Treasury/TransactionEntries.d.ts b/types/Treasury/TransactionEntries.d.ts index 945505f1c5..6802e3668f 100644 --- a/types/Treasury/TransactionEntries.d.ts +++ b/types/Treasury/TransactionEntries.d.ts @@ -50,7 +50,7 @@ declare module 'stripe' { /** * Details of the flow associated with the TransactionEntry. */ - flow_details: TransactionEntry.FlowDetails | null; + flow_details?: TransactionEntry.FlowDetails | null; /** * Type of the flow associated with the TransactionEntry. diff --git a/types/Treasury/Transactions.d.ts b/types/Treasury/Transactions.d.ts index 2344019f3c..f6788be1fd 100644 --- a/types/Treasury/Transactions.d.ts +++ b/types/Treasury/Transactions.d.ts @@ -45,7 +45,7 @@ declare module 'stripe' { /** * A list of TransactionEntries that are part of this Transaction. This cannot be expanded in any list endpoints. */ - entries: ApiList | null; + entries?: ApiList | null; /** * The FinancialAccount associated with this object. @@ -60,7 +60,7 @@ declare module 'stripe' { /** * Details of the flow that created the Transaction. */ - flow_details: Transaction.FlowDetails | null; + flow_details?: Transaction.FlowDetails | null; /** * Type of the flow that created the Transaction. From 389714ee01518276528f28fb1686c10a2be80df5 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 29 Apr 2024 17:52:41 +0000 Subject: [PATCH 05/13] Update generated code for v1000 --- OPENAPI_VERSION | 2 +- types/PaymentIntentsResource.d.ts | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 121a26ced9..a31c771440 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v998 \ No newline at end of file +v1000 \ No newline at end of file diff --git a/types/PaymentIntentsResource.d.ts b/types/PaymentIntentsResource.d.ts index eeb84b74ed..88a97d4c5d 100644 --- a/types/PaymentIntentsResource.d.ts +++ b/types/PaymentIntentsResource.d.ts @@ -4752,6 +4752,11 @@ declare module 'stripe' { */ payment_method_options?: PaymentIntentConfirmParams.PaymentMethodOptions; + /** + * The list of payment method types (for example, a card) that this PaymentIntent can use. Use `automatic_payment_methods` to manage payment methods from the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods). + */ + payment_method_types?: Array; + /** * Options to configure Radar. Learn more about [Radar Sessions](https://stripe.com/docs/radar/radar-session). */ From 5cdc4605a3cc9faa19306a008c15dbba7f03a6b1 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Tue, 30 Apr 2024 15:23:36 +0000 Subject: [PATCH 06/13] Update generated code for v1001 --- OPENAPI_VERSION | 2 +- types/Issuing/AuthorizationsResource.d.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index a31c771440..f084a6f9a8 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1000 \ No newline at end of file +v1001 \ No newline at end of file diff --git a/types/Issuing/AuthorizationsResource.d.ts b/types/Issuing/AuthorizationsResource.d.ts index f1d914716d..27edbb5c20 100644 --- a/types/Issuing/AuthorizationsResource.d.ts +++ b/types/Issuing/AuthorizationsResource.d.ts @@ -119,6 +119,7 @@ declare module 'stripe' { /** * [Deprecated] Approves a pending Issuing Authorization object. This request should be made within the timeout window of the [real-time authorization](https://stripe.com/docs/issuing/controls/real-time-authorizations) flow. * This method is deprecated. Instead, [respond directly to the webhook request to approve an authorization](https://stripe.com/docs/issuing/controls/real-time-authorizations#authorization-handling). + * @deprecated This method is deprecated, please refer to the description for details. */ approve( id: string, @@ -133,6 +134,7 @@ declare module 'stripe' { /** * [Deprecated] Declines a pending Issuing Authorization object. This request should be made within the timeout window of the [real time authorization](https://stripe.com/docs/issuing/controls/real-time-authorizations) flow. * This method is deprecated. Instead, [respond directly to the webhook request to decline an authorization](https://stripe.com/docs/issuing/controls/real-time-authorizations#authorization-handling). + * @deprecated This method is deprecated, please refer to the description for details. */ decline( id: string, From 3d448d8ac3b2979abc2a136f6489971e5bf54531 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Tue, 30 Apr 2024 17:41:21 +0000 Subject: [PATCH 07/13] Update generated code for v1002 --- OPENAPI_VERSION | 2 +- types/Charges.d.ts | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index f084a6f9a8..915b265941 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1001 \ No newline at end of file +v1002 \ No newline at end of file diff --git a/types/Charges.d.ts b/types/Charges.d.ts index 1415f6b31e..9e7ac88ed3 100644 --- a/types/Charges.d.ts +++ b/types/Charges.d.ts @@ -1642,6 +1642,9 @@ declare module 'stripe' { } interface Mobilepay { + /** + * Internal card details + */ card: Mobilepay.Card | null; } From 790c15ebf03ac0d7fe6ea118f7cf397f8fab267b Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Tue, 30 Apr 2024 18:00:20 +0000 Subject: [PATCH 08/13] Update generated code for v1002 --- types/ConfirmationTokens.d.ts | 1 + types/PaymentIntents.d.ts | 1 + types/PaymentIntentsResource.d.ts | 3 +++ types/PaymentMethods.d.ts | 1 + types/SetupIntents.d.ts | 1 + types/SetupIntentsResource.d.ts | 3 +++ 6 files changed, 10 insertions(+) diff --git a/types/ConfirmationTokens.d.ts b/types/ConfirmationTokens.d.ts index bdee95d799..4f2b1704a4 100644 --- a/types/ConfirmationTokens.d.ts +++ b/types/ConfirmationTokens.d.ts @@ -879,6 +879,7 @@ declare module 'stripe' { /** * [Deprecated] This is a legacy parameter that no longer has any function. + * @deprecated */ persistent_token?: string; } diff --git a/types/PaymentIntents.d.ts b/types/PaymentIntents.d.ts index 5573cdadb1..26ac01a161 100644 --- a/types/PaymentIntents.d.ts +++ b/types/PaymentIntents.d.ts @@ -1965,6 +1965,7 @@ declare module 'stripe' { /** * [Deprecated] This is a legacy parameter that no longer has any function. + * @deprecated */ persistent_token: string | null; diff --git a/types/PaymentIntentsResource.d.ts b/types/PaymentIntentsResource.d.ts index 88a97d4c5d..1e6d7b3e2e 100644 --- a/types/PaymentIntentsResource.d.ts +++ b/types/PaymentIntentsResource.d.ts @@ -1889,6 +1889,7 @@ declare module 'stripe' { /** * [Deprecated] This is a legacy parameter that no longer has any function. + * @deprecated */ persistent_token?: string; @@ -4131,6 +4132,7 @@ declare module 'stripe' { /** * [Deprecated] This is a legacy parameter that no longer has any function. + * @deprecated */ persistent_token?: string; @@ -6523,6 +6525,7 @@ declare module 'stripe' { /** * [Deprecated] This is a legacy parameter that no longer has any function. + * @deprecated */ persistent_token?: string; diff --git a/types/PaymentMethods.d.ts b/types/PaymentMethods.d.ts index d6fc8e0012..90ff71118a 100644 --- a/types/PaymentMethods.d.ts +++ b/types/PaymentMethods.d.ts @@ -807,6 +807,7 @@ declare module 'stripe' { /** * [Deprecated] This is a legacy parameter that no longer has any function. + * @deprecated */ persistent_token?: string; } diff --git a/types/SetupIntents.d.ts b/types/SetupIntents.d.ts index 1dc9f833a6..c2b32561b3 100644 --- a/types/SetupIntents.d.ts +++ b/types/SetupIntents.d.ts @@ -741,6 +741,7 @@ declare module 'stripe' { interface Link { /** * [Deprecated] This is a legacy parameter that no longer has any function. + * @deprecated */ persistent_token: string | null; } diff --git a/types/SetupIntentsResource.d.ts b/types/SetupIntentsResource.d.ts index 92d24bf9a8..58548b1d47 100644 --- a/types/SetupIntentsResource.d.ts +++ b/types/SetupIntentsResource.d.ts @@ -1072,6 +1072,7 @@ declare module 'stripe' { interface Link { /** * [Deprecated] This is a legacy parameter that no longer has any function. + * @deprecated */ persistent_token?: string; } @@ -2149,6 +2150,7 @@ declare module 'stripe' { interface Link { /** * [Deprecated] This is a legacy parameter that no longer has any function. + * @deprecated */ persistent_token?: string; } @@ -3313,6 +3315,7 @@ declare module 'stripe' { interface Link { /** * [Deprecated] This is a legacy parameter that no longer has any function. + * @deprecated */ persistent_token?: string; } From 10603206ca5dbbcbb6684a517b3a73eeb23216e9 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Tue, 30 Apr 2024 21:48:27 +0000 Subject: [PATCH 09/13] Update generated code for v1003 --- OPENAPI_VERSION | 2 +- types/InvoicesResource.d.ts | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 915b265941..754ed6e235 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1002 \ No newline at end of file +v1003 \ No newline at end of file diff --git a/types/InvoicesResource.d.ts b/types/InvoicesResource.d.ts index 2465f60ddc..e35455e582 100644 --- a/types/InvoicesResource.d.ts +++ b/types/InvoicesResource.d.ts @@ -5498,6 +5498,8 @@ declare module 'stripe' { * Note that when you are viewing an upcoming invoice, you are simply viewing a preview – the invoice has not yet been created. As such, the upcoming invoice will not show up in invoice listing calls, and you cannot use the API to pay or edit the invoice. If you want to change the amount that your customer will be billed, you can add, remove, or update pending invoice items, or update the customer's discount. * * You can preview the effects of updating a subscription, including a preview of what proration will take place. To ensure that the actual proration is calculated exactly the same as the previewed proration, you should pass the subscription_details.proration_date parameter when doing the actual subscription update. The recommended way to get only the prorations being previewed is to consider only proration line items where period[start] is equal to the subscription_details.proration_date value passed in the request. + * + * Note: Currency conversion calculations use the latest exchange rates. Exchange rates may vary between the time of the preview and the time of the actual invoice creation. [Learn more](https://docs.stripe.com/currencies/conversions) */ createPreview( params?: InvoiceCreatePreviewParams, @@ -5576,6 +5578,8 @@ declare module 'stripe' { * Note that when you are viewing an upcoming invoice, you are simply viewing a preview – the invoice has not yet been created. As such, the upcoming invoice will not show up in invoice listing calls, and you cannot use the API to pay or edit the invoice. If you want to change the amount that your customer will be billed, you can add, remove, or update pending invoice items, or update the customer's discount. * * You can preview the effects of updating a subscription, including a preview of what proration will take place. To ensure that the actual proration is calculated exactly the same as the previewed proration, you should pass the subscription_details.proration_date parameter when doing the actual subscription update. The recommended way to get only the prorations being previewed is to consider only proration line items where period[start] is equal to the subscription_details.proration_date value passed in the request. + * + * Note: Currency conversion calculations use the latest exchange rates. Exchange rates may vary between the time of the preview and the time of the actual invoice creation. [Learn more](https://docs.stripe.com/currencies/conversions) */ retrieveUpcoming( params?: InvoiceRetrieveUpcomingParams, From be01de9386dc488f09f23a772563f4ab730d225a Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 1 May 2024 15:56:10 +0000 Subject: [PATCH 10/13] Update generated code for v1004 --- OPENAPI_VERSION | 2 +- types/Tax/Registrations.d.ts | 63 +++++++++++++++++++++ types/Tax/RegistrationsResource.d.ts | 84 ++++++++++++++++++++++++++++ 3 files changed, 148 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 754ed6e235..51b250e65e 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1003 \ No newline at end of file +v1004 \ No newline at end of file diff --git a/types/Tax/Registrations.d.ts b/types/Tax/Registrations.d.ts index bdc9dd25f9..0f6646693d 100644 --- a/types/Tax/Registrations.d.ts +++ b/types/Tax/Registrations.d.ts @@ -66,6 +66,8 @@ declare module 'stripe' { bg?: CountryOptions.Bg; + bh?: CountryOptions.Bh; + ca?: CountryOptions.Ca; ch?: CountryOptions.Ch; @@ -84,6 +86,8 @@ declare module 'stripe' { ee?: CountryOptions.Ee; + eg?: CountryOptions.Eg; + es?: CountryOptions.Es; fi?: CountryOptions.Fi; @@ -92,6 +96,8 @@ declare module 'stripe' { gb?: CountryOptions.Gb; + ge?: CountryOptions.Ge; + gr?: CountryOptions.Gr; hr?: CountryOptions.Hr; @@ -108,8 +114,12 @@ declare module 'stripe' { jp?: CountryOptions.Jp; + ke?: CountryOptions.Ke; + kr?: CountryOptions.Kr; + kz?: CountryOptions.Kz; + lt?: CountryOptions.Lt; lu?: CountryOptions.Lu; @@ -122,12 +132,16 @@ declare module 'stripe' { my?: CountryOptions.My; + ng?: CountryOptions.Ng; + nl?: CountryOptions.Nl; no?: CountryOptions.No; nz?: CountryOptions.Nz; + om?: CountryOptions.Om; + pl?: CountryOptions.Pl; pt?: CountryOptions.Pt; @@ -242,6 +256,13 @@ declare module 'stripe' { type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; } + interface Bh { + /** + * Type of registration in `country`. + */ + type: 'standard'; + } + interface Ca { province_standard?: Ca.ProvinceStandard; @@ -403,6 +424,13 @@ declare module 'stripe' { type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; } + interface Eg { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } + interface Es { standard?: Es.Standard; @@ -482,6 +510,13 @@ declare module 'stripe' { type: 'standard'; } + interface Ge { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } + interface Gr { standard?: Gr.Standard; @@ -623,6 +658,13 @@ declare module 'stripe' { type: 'standard'; } + interface Ke { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } + interface Kr { /** * Type of registration in `country`. @@ -630,6 +672,13 @@ declare module 'stripe' { type: 'simplified'; } + interface Kz { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } + interface Lt { standard?: Lt.Standard; @@ -740,6 +789,13 @@ declare module 'stripe' { type: 'simplified'; } + interface Ng { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } + interface Nl { standard?: Nl.Standard; @@ -778,6 +834,13 @@ declare module 'stripe' { type: 'standard'; } + interface Om { + /** + * Type of registration in `country`. + */ + type: 'standard'; + } + interface Pl { standard?: Pl.Standard; diff --git a/types/Tax/RegistrationsResource.d.ts b/types/Tax/RegistrationsResource.d.ts index 7bf586b41d..370e16a8ec 100644 --- a/types/Tax/RegistrationsResource.d.ts +++ b/types/Tax/RegistrationsResource.d.ts @@ -57,6 +57,11 @@ declare module 'stripe' { */ bg?: CountryOptions.Bg; + /** + * Options for the registration in BH. + */ + bh?: CountryOptions.Bh; + /** * Options for the registration in CA. */ @@ -102,6 +107,11 @@ declare module 'stripe' { */ ee?: CountryOptions.Ee; + /** + * Options for the registration in EG. + */ + eg?: CountryOptions.Eg; + /** * Options for the registration in ES. */ @@ -122,6 +132,11 @@ declare module 'stripe' { */ gb?: CountryOptions.Gb; + /** + * Options for the registration in GE. + */ + ge?: CountryOptions.Ge; + /** * Options for the registration in GR. */ @@ -162,11 +177,21 @@ declare module 'stripe' { */ jp?: CountryOptions.Jp; + /** + * Options for the registration in KE. + */ + ke?: CountryOptions.Ke; + /** * Options for the registration in KR. */ kr?: CountryOptions.Kr; + /** + * Options for the registration in KZ. + */ + kz?: CountryOptions.Kz; + /** * Options for the registration in LT. */ @@ -197,6 +222,11 @@ declare module 'stripe' { */ my?: CountryOptions.My; + /** + * Options for the registration in NG. + */ + ng?: CountryOptions.Ng; + /** * Options for the registration in NL. */ @@ -212,6 +242,11 @@ declare module 'stripe' { */ nz?: CountryOptions.Nz; + /** + * Options for the registration in OM. + */ + om?: CountryOptions.Om; + /** * Options for the registration in PL. */ @@ -374,6 +409,13 @@ declare module 'stripe' { type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; } + interface Bh { + /** + * Type of registration to be created in `country`. + */ + type: 'standard'; + } + interface Ca { /** * Options for the provincial tax registration. @@ -553,6 +595,13 @@ declare module 'stripe' { type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; } + interface Eg { + /** + * Type of registration to be created in `country`. + */ + type: 'simplified'; + } + interface Es { /** * Options for the standard registration. @@ -641,6 +690,13 @@ declare module 'stripe' { type: 'standard'; } + interface Ge { + /** + * Type of registration to be created in `country`. + */ + type: 'simplified'; + } + interface Gr { /** * Options for the standard registration. @@ -797,6 +853,13 @@ declare module 'stripe' { type: 'standard'; } + interface Ke { + /** + * Type of registration to be created in `country`. + */ + type: 'simplified'; + } + interface Kr { /** * Type of registration to be created in `country`. @@ -804,6 +867,13 @@ declare module 'stripe' { type: 'simplified'; } + interface Kz { + /** + * Type of registration to be created in `country`. + */ + type: 'simplified'; + } + interface Lt { /** * Options for the standard registration. @@ -926,6 +996,13 @@ declare module 'stripe' { type: 'simplified'; } + interface Ng { + /** + * Type of registration to be created in `country`. + */ + type: 'simplified'; + } + interface Nl { /** * Options for the standard registration. @@ -967,6 +1044,13 @@ declare module 'stripe' { type: 'standard'; } + interface Om { + /** + * Type of registration to be created in `country`. + */ + type: 'standard'; + } + interface Pl { /** * Options for the standard registration. From 66b15b86115d7c9d1d1af2023eda9b6b46517e95 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 1 May 2024 19:15:50 +0000 Subject: [PATCH 11/13] Update generated code for v1005 --- OPENAPI_VERSION | 2 +- types/PaymentMethodConfigurations.d.ts | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 51b250e65e..dc5a50d6b0 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1004 \ No newline at end of file +v1005 \ No newline at end of file diff --git a/types/PaymentMethodConfigurations.d.ts b/types/PaymentMethodConfigurations.d.ts index 23e8b63ef1..45680cde7c 100644 --- a/types/PaymentMethodConfigurations.d.ts +++ b/types/PaymentMethodConfigurations.d.ts @@ -13,8 +13,6 @@ declare module 'stripe' { * * Child configurations have a `parent` that sets default values and controls which settings connected accounts may override. You can specify a parent ID at payment time, and Stripe will automatically resolve the connected account's associated child configuration. Parent configurations are [managed in the dashboard](https://dashboard.stripe.com/settings/payment_methods/connected_accounts) and are not available in this API. * - * **Note:** The ability to turn off cards is in limited preview. Please [contact us](https://support.stripe.com/contact) if you require this functionality. - * * Related guides: * - [Payment Method Configurations API](https://stripe.com/docs/connect/payment-method-configurations) * - [Multiple configurations on dynamic payment methods](https://stripe.com/docs/payments/multiple-payment-method-configs) From 4429416030db51fb207f6bd23ec685ded1b6eb64 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 2 May 2024 15:49:43 +0000 Subject: [PATCH 12/13] Update generated code for v1007 --- OPENAPI_VERSION | 2 +- types/Disputes.d.ts | 18 +++++++++++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index dc5a50d6b0..e6667adbc1 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1005 \ No newline at end of file +v1007 \ No newline at end of file diff --git a/types/Disputes.d.ts b/types/Disputes.d.ts index 68512b56b2..fe53c0241b 100644 --- a/types/Disputes.d.ts +++ b/types/Disputes.d.ts @@ -250,10 +250,12 @@ declare module 'stripe' { interface PaymentMethodDetails { card?: PaymentMethodDetails.Card; + paypal?: PaymentMethodDetails.Paypal; + /** * Payment method type. */ - type: 'card'; + type: PaymentMethodDetails.Type; } namespace PaymentMethodDetails { @@ -268,6 +270,20 @@ declare module 'stripe' { */ network_reason_code: string | null; } + + interface Paypal { + /** + * The ID of the dispute in PayPal. + */ + case_id: string | null; + + /** + * The reason for the dispute as defined by PayPal + */ + reason_code: string | null; + } + + type Type = 'card' | 'paypal'; } type Status = From 2335a3cb7cdbe684b7e73ab0d3fff603556e02b8 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 2 May 2024 15:54:45 +0000 Subject: [PATCH 13/13] Update generated code for v1008 --- OPENAPI_VERSION | 2 +- types/Entitlements/FeaturesResource.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index e6667adbc1..cb70129c35 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1007 \ No newline at end of file +v1008 \ No newline at end of file diff --git a/types/Entitlements/FeaturesResource.d.ts b/types/Entitlements/FeaturesResource.d.ts index 1f74c5b3f8..a3d07eebd4 100644 --- a/types/Entitlements/FeaturesResource.d.ts +++ b/types/Entitlements/FeaturesResource.d.ts @@ -46,7 +46,7 @@ declare module 'stripe' { /** * Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. */ - metadata?: Stripe.MetadataParam; + metadata?: Stripe.Emptyable; /** * The feature's name, for your own purpose, not meant to be displayable to the customer.