From 6ceac11ff050ea3a56b66acb3c423f7477f505d0 Mon Sep 17 00:00:00 2001 From: prathmesh-stripe <165320323+prathmesh-stripe@users.noreply.github.com> Date: Thu, 2 May 2024 16:09:24 -0400 Subject: [PATCH 01/14] Deprecate Node methods and params based on OpenAPI spec (#2077) --- types/ConfirmationTokens.d.ts | 1 + types/Issuing/AuthorizationsResource.d.ts | 2 ++ 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 +++ 7 files changed, 12 insertions(+) diff --git a/types/ConfirmationTokens.d.ts b/types/ConfirmationTokens.d.ts index 164e7870d5..15bdfd67e6 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/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, diff --git a/types/PaymentIntents.d.ts b/types/PaymentIntents.d.ts index 86dd416572..9415c2f458 100644 --- a/types/PaymentIntents.d.ts +++ b/types/PaymentIntents.d.ts @@ -1964,6 +1964,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 eeb84b74ed..685d7d3865 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; @@ -6518,6 +6520,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 ada5d8b940..eea23337cb 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 b24edb5e54..f21daac805 100644 --- a/types/SetupIntents.d.ts +++ b/types/SetupIntents.d.ts @@ -740,6 +740,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 ae8f2c020854137b9d3b775f40c3f805bfda4493 Mon Sep 17 00:00:00 2001 From: "stripe-openapi[bot]" <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 2 May 2024 16:24:45 -0400 Subject: [PATCH 02/14] Update generated code (#2072) * Update generated code for v994 * Update generated code for v996 * Update generated code for v997 * Update generated code for v998 * Update generated code for v1000 * Update generated code for v1001 * Update generated code for v1002 * Update generated code for v1002 * Update generated code for v1003 * Update generated code for v1004 * Update generated code for v1005 * Update generated code for v1007 * Update generated code for v1008 --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Co-authored-by: prathmesh-stripe <165320323+prathmesh-stripe@users.noreply.github.com> --- OPENAPI_VERSION | 2 +- types/Apps/Secrets.d.ts | 2 +- types/BillingPortal/Configurations.d.ts | 2 +- types/Charges.d.ts | 5 +- types/ConfirmationTokens.d.ts | 2 +- types/Disputes.d.ts | 18 ++++- types/Entitlements/FeaturesResource.d.ts | 2 +- types/Identity/VerificationReports.d.ts | 10 +-- types/Identity/VerificationSessions.d.ts | 8 +-- types/Invoices.d.ts | 5 +- types/InvoicesResource.d.ts | 4 ++ types/Issuing/Disputes.d.ts | 2 +- types/Issuing/Transactions.d.ts | 2 +- types/PaymentIntents.d.ts | 1 + types/PaymentIntentsResource.d.ts | 5 ++ types/PaymentMethods.d.ts | 2 +- types/SetupAttempts.d.ts | 1 + types/SetupIntents.d.ts | 1 + types/Tax/CalculationLineItems.d.ts | 2 +- types/Tax/Calculations.d.ts | 11 +++- types/Tax/CalculationsResource.d.ts | 46 +++++++++++++ types/Tax/Registrations.d.ts | 63 ++++++++++++++++++ types/Tax/RegistrationsResource.d.ts | 84 ++++++++++++++++++++++++ types/Tax/Transactions.d.ts | 11 +++- types/Treasury/FinancialAccounts.d.ts | 2 +- types/Treasury/ReceivedCredits.d.ts | 2 +- types/Treasury/TransactionEntries.d.ts | 2 +- types/Treasury/Transactions.d.ts | 4 +- 28 files changed, 272 insertions(+), 29 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 52d771c1e6..cb70129c35 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v993 \ No newline at end of file +v1008 \ 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..9e7ac88ed3 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. @@ -1642,6 +1642,9 @@ declare module 'stripe' { } interface Mobilepay { + /** + * Internal card details + */ card: Mobilepay.Card | null; } diff --git a/types/ConfirmationTokens.d.ts b/types/ConfirmationTokens.d.ts index 15bdfd67e6..4f2b1704a4 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/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 = 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. 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/Invoices.d.ts b/types/Invoices.d.ts index dce82c3423..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; @@ -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/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, 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/PaymentIntents.d.ts b/types/PaymentIntents.d.ts index 9415c2f458..26ac01a161 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/PaymentIntentsResource.d.ts b/types/PaymentIntentsResource.d.ts index 685d7d3865..1e6d7b3e2e 100644 --- a/types/PaymentIntentsResource.d.ts +++ b/types/PaymentIntentsResource.d.ts @@ -4754,6 +4754,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). */ diff --git a/types/PaymentMethods.d.ts b/types/PaymentMethods.d.ts index eea23337cb..90ff71118a 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/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 f21daac805..c2b32561b3 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/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 41f4e19695..a7b2ac0554 100644 --- a/types/Tax/Calculations.d.ts +++ b/types/Tax/Calculations.d.ts @@ -44,13 +44,18 @@ 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. */ 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/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. diff --git a/types/Tax/Transactions.d.ts b/types/Tax/Transactions.d.ts index f175f0866a..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. @@ -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. 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 4c6c96ee06c2d886d6b7c4a8c77e2f36a864e329 Mon Sep 17 00:00:00 2001 From: Helen Ye Date: Thu, 2 May 2024 13:57:47 -0700 Subject: [PATCH 03/14] Bump version to 15.5.0 --- CHANGELOG.md | 16 ++++++++++++++++ VERSION | 2 +- package.json | 2 +- src/stripe.core.ts | 2 +- 4 files changed, 19 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8dcf2221cd..5b4f2c5fb8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,21 @@ # Changelog +## 15.5.0 - 2024-05-02 +* [#2072](https://github.com/stripe/stripe-node/pull/2072) Update generated code + * Add support for new value `shipping_address_invalid` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code` + * Fix properties incorrectly marked as required in the OpenAPI spec. + * Change `Apps.Secret.payload`, `BillingPortal.Configuration.features.subscription_update.products`, `Charge.refunds`, `ConfirmationToken.payment_method_preview.klarna.dob`, `Identity.VerificationReport.document.dob`, `Identity.VerificationReport.document.expiration_date`, `Identity.VerificationReport.document.number`, `Identity.VerificationReport.id_number.dob`, `Identity.VerificationReport.id_number.id_number`, `Identity.VerificationSession.provided_details`, `Identity.VerificationSession.verified_outputs.dob`, `Identity.VerificationSession.verified_outputs.id_number`, `Identity.VerificationSession.verified_outputs`, `Issuing.Dispute.balance_transactions`, `Issuing.Transaction.purchase_details`, `PaymentMethod.klarna.dob`, `Tax.Calculation.line_items`, `Tax.CalculationLineItem.tax_breakdown`, `Tax.Transaction.line_items`, `Treasury.FinancialAccount.financial_addresses[].aba.account_number`, `Treasury.ReceivedCredit.linked_flows.source_flow_details`, `Treasury.Transaction.entries`, `Treasury.Transaction.flow_details`, and `Treasury.TransactionEntry.flow_details` to be optional + * Add support for `paypal` on `Dispute.payment_method_details` + * Change type of `Dispute.payment_method_details.type` from `literal('card')` to `enum('card'|'paypal')` + * Change type of `Entitlements.FeatureUpdateParams.metadata` from `map(string: string)` to `emptyable(map(string: string))` + * Add support for `payment_method_types` on `PaymentIntentConfirmParams` + * Add support for `ship_from_details` on `Tax.CalculationCreateParams`, `Tax.Calculation`, and `Tax.Transaction` + * Add support for `bh`, `eg`, `ge`, `ke`, `kz`, `ng`, and `om` on `Tax.Registration.country_options` and `Tax.RegistrationCreateParams.country_options` +* [#2077](https://github.com/stripe/stripe-node/pull/2077) Deprecate Node methods and params based on OpenAPI spec + - Mark as deprecated the `approve` and `decline` methods on `Issuing.Authorization`. Instead, [respond directly to the webhook request to approve an authorization](https://stripe.com/docs/issuing/controls/real-time-authorizations#authorization-handling). + - Mark as deprecated the `persistent_token` property on `ConfirmationToken.PaymentMethodPreview.Link`, `PaymentIntent.PaymentMethodOptions.Link`, `PaymentIntentResource.PaymentMethodOptions.Link`, `PaymentMethod.Link.persistent_token`. `SetupIntents.PaymentMethodOptions.Card.Link.persistent_token`, `SetupIntentsResource.persistent_token`. This is a legacy parameter that no longer has any function. +* [#2074](https://github.com/stripe/stripe-node/pull/2074) Add a more explicit comment on `limit` param in `autoPagingToArray` + ## 15.4.0 - 2024-04-25 * [#2071](https://github.com/stripe/stripe-node/pull/2071) Update generated code * Add support for `setup_future_usage` on `Checkout.Session.payment_method_options.amazon_pay`, `Checkout.Session.payment_method_options.revolut_pay`, `PaymentIntent.payment_method_options.amazon_pay`, and `PaymentIntent.payment_method_options.revolut_pay` diff --git a/VERSION b/VERSION index c915b5db73..188dd74f5f 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -15.4.0 +15.5.0 diff --git a/package.json b/package.json index 57bbdadd51..18f2998ee2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "stripe", - "version": "15.4.0", + "version": "15.5.0", "description": "Stripe API wrapper", "keywords": [ "stripe", diff --git a/src/stripe.core.ts b/src/stripe.core.ts index 619e7d4ec1..04e83a17d2 100644 --- a/src/stripe.core.ts +++ b/src/stripe.core.ts @@ -49,7 +49,7 @@ export function createStripe( platformFunctions: PlatformFunctions, requestSender: RequestSenderFactory = defaultRequestSenderFactory ): typeof Stripe { - Stripe.PACKAGE_VERSION = '15.4.0'; + Stripe.PACKAGE_VERSION = '15.5.0'; Stripe.USER_AGENT = { bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', From c7b4638e26dd7a5c0339a7ec3bdefff089566b2c Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 3 May 2024 23:40:11 +0000 Subject: [PATCH 04/14] Update generated code for v1010 --- OPENAPI_VERSION | 2 +- types/Capabilities.d.ts | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 7229c6339f..1cb7e2ff9e 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1009 \ No newline at end of file +v1010 \ No newline at end of file diff --git a/types/Capabilities.d.ts b/types/Capabilities.d.ts index faeaabe795..7326033c31 100644 --- a/types/Capabilities.d.ts +++ b/types/Capabilities.d.ts @@ -226,13 +226,11 @@ declare module 'stripe' { currently_due: Array; /** - * If the capability is disabled, this string describes why. Can be `requirements.fields_needed`, `pending.onboarding`, `pending.review`, `rejected.fraud`, `rejected.other`, `platform_paused`, `action_required.requested_capabilities`, `rejected.inactivty`, or `rejected.unsupported_business`. + * If the capability is disabled, this string describes why. [Learn more about handling verification issues](https://stripe.com/docs/connect/handling-api-verification). Can be `requirements.fields_needed`, `pending.onboarding`, `pending.review`, `rejected.other`, `platform_paused`, `rejected.inactivty`, or `rejected.unsupported_business`. * * `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, such as in [Afterpay Clearpay's terms of service](https://stripe.com/afterpay-clearpay/legal#restricted-businesses). * * `rejected.inactivity` means that the capability has been paused for inactivity. This disabled reason currently only applies to the Issuing capability. See [Issuing: Managing Inactive Connects](https://support.stripe.com/questions/issuing-managing-inactive-connect-accounts) for more details. - * - * If you believe that a rejection is in error, please contact support at https://support.stripe.com/contact/ for assistance. */ disabled_reason: string | null; From 968d3b9aaa5b671eb83bc0a978f7746b06421683 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 6 May 2024 20:17:42 +0000 Subject: [PATCH 05/14] Update generated code for v1011 --- OPENAPI_VERSION | 2 +- .../TestHelpers/Treasury/OutboundPayments.ts | 4 ++ .../TestHelpers/Treasury/OutboundTransfers.ts | 5 ++ types/EventTypes.d.ts | 36 ++++++++++ types/Events.d.ts | 2 + .../Treasury/OutboundPaymentsResource.d.ts | 65 +++++++++++++++++++ .../Treasury/OutboundTransfersResource.d.ts | 65 +++++++++++++++++++ types/Treasury/OutboundPayments.d.ts | 39 +++++++++++ types/Treasury/OutboundTransfers.d.ts | 39 +++++++++++ types/WebhookEndpointsResource.d.ts | 4 ++ 10 files changed, 260 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 1cb7e2ff9e..0e632c42d4 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1010 \ No newline at end of file +v1011 \ No newline at end of file diff --git a/src/resources/TestHelpers/Treasury/OutboundPayments.ts b/src/resources/TestHelpers/Treasury/OutboundPayments.ts index 91405f47bf..562887db3e 100644 --- a/src/resources/TestHelpers/Treasury/OutboundPayments.ts +++ b/src/resources/TestHelpers/Treasury/OutboundPayments.ts @@ -3,6 +3,10 @@ import {StripeResource} from '../../../StripeResource.js'; const stripeMethod = StripeResource.method; export const OutboundPayments = StripeResource.extend({ + update: stripeMethod({ + method: 'POST', + fullPath: '/v1/test_helpers/treasury/outbound_payments/{id}', + }), fail: stripeMethod({ method: 'POST', fullPath: '/v1/test_helpers/treasury/outbound_payments/{id}/fail', diff --git a/src/resources/TestHelpers/Treasury/OutboundTransfers.ts b/src/resources/TestHelpers/Treasury/OutboundTransfers.ts index c54db73f83..9423a48804 100644 --- a/src/resources/TestHelpers/Treasury/OutboundTransfers.ts +++ b/src/resources/TestHelpers/Treasury/OutboundTransfers.ts @@ -3,6 +3,11 @@ import {StripeResource} from '../../../StripeResource.js'; const stripeMethod = StripeResource.method; export const OutboundTransfers = StripeResource.extend({ + update: stripeMethod({ + method: 'POST', + fullPath: + '/v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}', + }), fail: stripeMethod({ method: 'POST', fullPath: diff --git a/types/EventTypes.d.ts b/types/EventTypes.d.ts index cc239a1f57..529b0100ed 100644 --- a/types/EventTypes.d.ts +++ b/types/EventTypes.d.ts @@ -249,12 +249,14 @@ declare module 'stripe' { | TreasuryOutboundPaymentFailedEvent | TreasuryOutboundPaymentPostedEvent | TreasuryOutboundPaymentReturnedEvent + | TreasuryOutboundPaymentTrackingDetailsUpdatedEvent | TreasuryOutboundTransferCanceledEvent | TreasuryOutboundTransferCreatedEvent | TreasuryOutboundTransferExpectedArrivalDateUpdatedEvent | TreasuryOutboundTransferFailedEvent | TreasuryOutboundTransferPostedEvent | TreasuryOutboundTransferReturnedEvent + | TreasuryOutboundTransferTrackingDetailsUpdatedEvent | TreasuryReceivedCreditCreatedEvent | TreasuryReceivedCreditFailedEvent | TreasuryReceivedCreditSucceededEvent @@ -4205,6 +4207,23 @@ declare module 'stripe' { } } + /** + * Occurs whenever tracking_details on an OutboundPayment is updated. + */ + interface TreasuryOutboundPaymentTrackingDetailsUpdatedEvent + extends EventBase { + type: 'treasury.outbound_payment.tracking_details_updated'; + data: TreasuryOutboundPaymentTrackingDetailsUpdatedEvent.Data; + } + + namespace TreasuryOutboundPaymentTrackingDetailsUpdatedEvent { + interface Data extends Stripe.Event.Data { + object: Stripe.Treasury.OutboundPayment; + + previous_attributes?: Partial; + } + } + /** * Occurs whenever an OutboundTransfer is canceled. */ @@ -4302,6 +4321,23 @@ declare module 'stripe' { } } + /** + * Occurs whenever tracking_details on an OutboundTransfer is updated. + */ + interface TreasuryOutboundTransferTrackingDetailsUpdatedEvent + extends EventBase { + type: 'treasury.outbound_transfer.tracking_details_updated'; + data: TreasuryOutboundTransferTrackingDetailsUpdatedEvent.Data; + } + + namespace TreasuryOutboundTransferTrackingDetailsUpdatedEvent { + interface Data extends Stripe.Event.Data { + object: Stripe.Treasury.OutboundTransfer; + + previous_attributes?: Partial; + } + } + /** * Occurs whenever a received_credit is created as a result of funds being pushed by another account. */ diff --git a/types/Events.d.ts b/types/Events.d.ts index 57ebbdb82a..7a2465d9a3 100644 --- a/types/Events.d.ts +++ b/types/Events.d.ts @@ -333,12 +333,14 @@ declare module 'stripe' { | 'treasury.outbound_payment.failed' | 'treasury.outbound_payment.posted' | 'treasury.outbound_payment.returned' + | 'treasury.outbound_payment.tracking_details_updated' | 'treasury.outbound_transfer.canceled' | 'treasury.outbound_transfer.created' | 'treasury.outbound_transfer.expected_arrival_date_updated' | 'treasury.outbound_transfer.failed' | 'treasury.outbound_transfer.posted' | 'treasury.outbound_transfer.returned' + | 'treasury.outbound_transfer.tracking_details_updated' | 'treasury.received_credit.created' | 'treasury.received_credit.failed' | 'treasury.received_credit.succeeded' diff --git a/types/TestHelpers/Treasury/OutboundPaymentsResource.d.ts b/types/TestHelpers/Treasury/OutboundPaymentsResource.d.ts index b12ec8dded..73f8c12872 100644 --- a/types/TestHelpers/Treasury/OutboundPaymentsResource.d.ts +++ b/types/TestHelpers/Treasury/OutboundPaymentsResource.d.ts @@ -3,6 +3,62 @@ declare module 'stripe' { namespace Stripe { namespace TestHelpers { + namespace Treasury { + interface OutboundPaymentUpdateParams { + /** + * Details about network-specific tracking information. + */ + tracking_details: OutboundPaymentUpdateParams.TrackingDetails; + + /** + * Specifies which fields in the response should be expanded. + */ + expand?: Array; + } + + namespace OutboundPaymentUpdateParams { + interface TrackingDetails { + /** + * ACH network tracking details. + */ + ach?: TrackingDetails.Ach; + + /** + * The US bank account network used to send funds. + */ + type: TrackingDetails.Type; + + /** + * US domestic wire network tracking details. + */ + us_domestic_wire?: TrackingDetails.UsDomesticWire; + } + + namespace TrackingDetails { + interface Ach { + /** + * ACH trace ID for funds sent over the `ach` network. + */ + trace_id: string; + } + + type Type = 'ach' | 'us_domestic_wire'; + + interface UsDomesticWire { + /** + * IMAD for funds sent over the `us_domestic_wire` network. + */ + imad?: string; + + /** + * OMAD for funds sent over the `us_domestic_wire` network. + */ + omad?: string; + } + } + } + } + namespace Treasury { interface OutboundPaymentFailParams { /** @@ -60,6 +116,15 @@ declare module 'stripe' { namespace Treasury { class OutboundPaymentsResource { + /** + * Updates a test mode created OutboundPayment with tracking details. The OutboundPayment must not be cancelable, and cannot be in the canceled or failed states. + */ + update( + id: string, + params: OutboundPaymentUpdateParams, + options?: RequestOptions + ): Promise>; + /** * Transitions a test mode created OutboundPayment to the failed status. The OutboundPayment must already be in the processing state. */ diff --git a/types/TestHelpers/Treasury/OutboundTransfersResource.d.ts b/types/TestHelpers/Treasury/OutboundTransfersResource.d.ts index cbce3d8b30..b5def604a7 100644 --- a/types/TestHelpers/Treasury/OutboundTransfersResource.d.ts +++ b/types/TestHelpers/Treasury/OutboundTransfersResource.d.ts @@ -3,6 +3,62 @@ declare module 'stripe' { namespace Stripe { namespace TestHelpers { + namespace Treasury { + interface OutboundTransferUpdateParams { + /** + * Details about network-specific tracking information. + */ + tracking_details: OutboundTransferUpdateParams.TrackingDetails; + + /** + * Specifies which fields in the response should be expanded. + */ + expand?: Array; + } + + namespace OutboundTransferUpdateParams { + interface TrackingDetails { + /** + * ACH network tracking details. + */ + ach?: TrackingDetails.Ach; + + /** + * The US bank account network used to send funds. + */ + type: TrackingDetails.Type; + + /** + * US domestic wire network tracking details. + */ + us_domestic_wire?: TrackingDetails.UsDomesticWire; + } + + namespace TrackingDetails { + interface Ach { + /** + * ACH trace ID for funds sent over the `ach` network. + */ + trace_id: string; + } + + type Type = 'ach' | 'us_domestic_wire'; + + interface UsDomesticWire { + /** + * IMAD for funds sent over the `us_domestic_wire` network. + */ + imad?: string; + + /** + * OMAD for funds sent over the `us_domestic_wire` network. + */ + omad?: string; + } + } + } + } + namespace Treasury { interface OutboundTransferFailParams { /** @@ -60,6 +116,15 @@ declare module 'stripe' { namespace Treasury { class OutboundTransfersResource { + /** + * Updates a test mode created OutboundTransfer with tracking details. The OutboundTransfer must not be cancelable, and cannot be in the canceled or failed states. + */ + update( + id: string, + params: OutboundTransferUpdateParams, + options?: RequestOptions + ): Promise>; + /** * Transitions a test mode created OutboundTransfer to the failed status. The OutboundTransfer must already be in the processing state. */ diff --git a/types/Treasury/OutboundPayments.d.ts b/types/Treasury/OutboundPayments.d.ts index d7e7443678..cb253f8e1a 100644 --- a/types/Treasury/OutboundPayments.d.ts +++ b/types/Treasury/OutboundPayments.d.ts @@ -106,6 +106,11 @@ declare module 'stripe' { status_transitions: OutboundPayment.StatusTransitions; + /** + * Details about network-specific tracking information if available. + */ + tracking_details?: OutboundPayment.TrackingDetails | null; + /** * The Transaction associated with this object. */ @@ -272,6 +277,40 @@ declare module 'stripe' { */ returned_at: number | null; } + + interface TrackingDetails { + ach?: TrackingDetails.Ach; + + /** + * The US bank account network used to send funds. + */ + type: TrackingDetails.Type; + + us_domestic_wire?: TrackingDetails.UsDomesticWire; + } + + namespace TrackingDetails { + interface Ach { + /** + * ACH trace ID of the OutboundPayment for payments sent over the `ach` network. + */ + trace_id: string; + } + + type Type = 'ach' | 'us_domestic_wire'; + + interface UsDomesticWire { + /** + * IMAD of the OutboundPayment for payments sent over the `us_domestic_wire` network. + */ + imad: string; + + /** + * OMAD of the OutboundPayment for payments sent over the `us_domestic_wire` network. + */ + omad: string | null; + } + } } } } diff --git a/types/Treasury/OutboundTransfers.d.ts b/types/Treasury/OutboundTransfers.d.ts index 91ab10df64..a3c6b8d7ba 100644 --- a/types/Treasury/OutboundTransfers.d.ts +++ b/types/Treasury/OutboundTransfers.d.ts @@ -98,6 +98,11 @@ declare module 'stripe' { status_transitions: OutboundTransfer.StatusTransitions; + /** + * Details about network-specific tracking information if available. + */ + tracking_details?: OutboundTransfer.TrackingDetails | null; + /** * The Transaction associated with this object. */ @@ -257,6 +262,40 @@ declare module 'stripe' { */ returned_at: number | null; } + + interface TrackingDetails { + ach?: TrackingDetails.Ach; + + /** + * The US bank account network used to send funds. + */ + type: TrackingDetails.Type; + + us_domestic_wire?: TrackingDetails.UsDomesticWire; + } + + namespace TrackingDetails { + interface Ach { + /** + * ACH trace ID of the OutboundTransfer for transfers sent over the `ach` network. + */ + trace_id: string; + } + + type Type = 'ach' | 'us_domestic_wire'; + + interface UsDomesticWire { + /** + * IMAD of the OutboundTransfer for transfers sent over the `us_domestic_wire` network. + */ + imad: string; + + /** + * OMAD of the OutboundTransfer for transfers sent over the `us_domestic_wire` network. + */ + omad: string | null; + } + } } } } diff --git a/types/WebhookEndpointsResource.d.ts b/types/WebhookEndpointsResource.d.ts index 866afe7fd8..4f037c8bf8 100644 --- a/types/WebhookEndpointsResource.d.ts +++ b/types/WebhookEndpointsResource.d.ts @@ -391,12 +391,14 @@ declare module 'stripe' { | 'treasury.outbound_payment.failed' | 'treasury.outbound_payment.posted' | 'treasury.outbound_payment.returned' + | 'treasury.outbound_payment.tracking_details_updated' | 'treasury.outbound_transfer.canceled' | 'treasury.outbound_transfer.created' | 'treasury.outbound_transfer.expected_arrival_date_updated' | 'treasury.outbound_transfer.failed' | 'treasury.outbound_transfer.posted' | 'treasury.outbound_transfer.returned' + | 'treasury.outbound_transfer.tracking_details_updated' | 'treasury.received_credit.created' | 'treasury.received_credit.failed' | 'treasury.received_credit.succeeded' @@ -691,12 +693,14 @@ declare module 'stripe' { | 'treasury.outbound_payment.failed' | 'treasury.outbound_payment.posted' | 'treasury.outbound_payment.returned' + | 'treasury.outbound_payment.tracking_details_updated' | 'treasury.outbound_transfer.canceled' | 'treasury.outbound_transfer.created' | 'treasury.outbound_transfer.expected_arrival_date_updated' | 'treasury.outbound_transfer.failed' | 'treasury.outbound_transfer.posted' | 'treasury.outbound_transfer.returned' + | 'treasury.outbound_transfer.tracking_details_updated' | 'treasury.received_credit.created' | 'treasury.received_credit.failed' | 'treasury.received_credit.succeeded' From 1f3f9b0e8dcee7b77793be3391c5344fac8093b5 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 6 May 2024 20:33:36 +0000 Subject: [PATCH 06/14] Update generated code for v1012 --- OPENAPI_VERSION | 2 +- test/resources/generated_examples_test.spec.js | 2 +- types/ConfirmationTokens.d.ts | 7 +++++++ types/PaymentMethods.d.ts | 7 +++++++ 4 files changed, 16 insertions(+), 2 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 0e632c42d4..e950385900 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1011 \ No newline at end of file +v1012 \ No newline at end of file diff --git a/test/resources/generated_examples_test.spec.js b/test/resources/generated_examples_test.spec.js index 8ccacaec3a..8947336a8e 100644 --- a/test/resources/generated_examples_test.spec.js +++ b/test/resources/generated_examples_test.spec.js @@ -176,7 +176,7 @@ describe('Generated tests', function() { method: 'GET', path: '/v1/accounts/acc_123', response: - '{"business_profile":{"annual_revenue":{"amount":1413853096,"currency":"currency","fiscal_year_end":"fiscal_year_end"},"estimated_worker_count":884794319,"mcc":"mcc","monthly_estimated_revenue":{"amount":1413853096,"currency":"currency"},"name":"name","product_description":"product_description","support_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"support_email":"support_email","support_phone":"support_phone","support_url":"support_url","url":"url"},"business_type":"government_entity","capabilities":{"acss_debit_payments":"inactive","affirm_payments":"pending","afterpay_clearpay_payments":"inactive","amazon_pay_payments":"inactive","au_becs_debit_payments":"active","bacs_debit_payments":"active","bancontact_payments":"inactive","bank_transfer_payments":"pending","blik_payments":"inactive","boleto_payments":"inactive","card_issuing":"active","card_payments":"active","cartes_bancaires_payments":"active","cashapp_payments":"active","eps_payments":"inactive","fpx_payments":"active","giropay_payments":"active","grabpay_payments":"pending","ideal_payments":"inactive","india_international_payments":"inactive","jcb_payments":"inactive","klarna_payments":"active","konbini_payments":"active","legacy_payments":"active","link_payments":"inactive","mobilepay_payments":"pending","oxxo_payments":"pending","p24_payments":"inactive","paynow_payments":"active","paypal_payments":"inactive","payto_payments":"pending","promptpay_payments":"active","rechnung_payments":"inactive","revolut_pay_payments":"inactive","sepa_debit_payments":"inactive","sofort_payments":"active","swish_payments":"inactive","tax_reporting_us_1099_k":"inactive","tax_reporting_us_1099_misc":"pending","transfers":"inactive","treasury":"pending","twint_payments":"inactive","us_bank_account_ach_payments":"pending","zip_payments":"pending"},"charges_enabled":true,"company":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"address_kana":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"address_kanji":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"directors_provided":true,"executives_provided":true,"export_license_id":"export_license_id","export_purpose_code":"export_purpose_code","name":"name","name_kana":"name_kana","name_kanji":"name_kanji","owners_provided":true,"ownership_declaration":{"date":"3076014","ip":"ip","user_agent":"user_agent"},"phone":"phone","structure":"single_member_llc","tax_id_provided":true,"tax_id_registrar":"tax_id_registrar","vat_id_provided":true,"verification":{"document":{"back":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"},"details":"details","details_code":"details_code","front":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"}}}},"controller":{"application":{"loss_liable":true,"onboarding_owner":true,"pricing_controls":true},"dashboard":{"type":"express"},"fees":{"payer":"account"},"is_controller":true,"losses":{"payments":"stripe"},"requirement_collection":"application","stripe_dashboard":{"type":"express"},"type":"account"},"country":"country","created":"1028554472","default_currency":"default_currency","details_submitted":true,"email":"email","external_accounts":null,"future_requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"current_deadline":"270965154","currently_due":["currently_due"],"disabled_reason":"disabled_reason","errors":[{"code":"invalid_url_website_incomplete_under_construction","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"id":"obj_123","individual":{"account":"account","additional_tos_acceptances":{"account":{"date":"3076014","ip":"ip","user_agent":"user_agent"}},"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"address_kana":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"address_kanji":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"created":"1028554472","dob":{"day":99228,"month":104080000,"year":3704893},"email":"email","first_name":"first_name","first_name_kana":"first_name_kana","first_name_kanji":"first_name_kanji","full_name_aliases":["full_name_aliases"],"future_requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"currently_due":["currently_due"],"errors":[{"code":"invalid_url_website_incomplete_under_construction","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"gender":"gender","id":"obj_123","id_number_provided":true,"id_number_secondary_provided":true,"last_name":"last_name","last_name_kana":"last_name_kana","last_name_kanji":"last_name_kanji","maiden_name":"maiden_name","metadata":{"undefined":"metadata"},"nationality":"nationality","object":"person","phone":"phone","political_exposure":"none","registered_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"relationship":{"director":true,"executive":true,"legal_guardian":true,"owner":true,"percent_ownership":760989685,"representative":true,"title":"title"},"requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"currently_due":["currently_due"],"errors":[{"code":"invalid_url_website_incomplete_under_construction","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"ssn_last_4_provided":true,"verification":{"additional_document":{"back":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"},"details":"details","details_code":"details_code","front":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"}},"details":"details","details_code":"details_code","document":{"back":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"},"details":"details","details_code":"details_code","front":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"}},"status":"status"}},"metadata":{"undefined":"metadata"},"object":"account","payouts_enabled":true,"requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"current_deadline":"270965154","currently_due":["currently_due"],"disabled_reason":"disabled_reason","errors":[{"code":"invalid_url_website_incomplete_under_construction","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"risk_controls":{"charges":{"pause_requested":true},"payouts":{"pause_requested":true}},"settings":{"bacs_debit_payments":{"display_name":"display_name","service_user_number":"service_user_number"},"branding":{"icon":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"},"logo":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"},"primary_color":"primary_color","secondary_color":"secondary_color"},"card_issuing":{"tos_acceptance":{"date":"3076014","ip":"ip","user_agent":"user_agent"}},"card_payments":{"decline_on":{"avs_failure":true,"cvc_failure":true},"statement_descriptor_prefix":"statement_descriptor_prefix","statement_descriptor_prefix_kana":"statement_descriptor_prefix_kana","statement_descriptor_prefix_kanji":"statement_descriptor_prefix_kanji"},"dashboard":{"display_name":"display_name","timezone":"timezone"},"invoices":{"default_account_tax_ids":[{"country":"country","created":"1028554472","customer":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"balance":339185956,"cash_balance":{"available":{"undefined":733902135},"customer":"customer","livemode":true,"object":"cash_balance","settings":{"reconciliation_mode":"manual","using_merchant_default":true}},"created":"1028554472","currency":"currency","default_source":null,"delinquent":true,"description":"description","discount":{"checkout_session":"checkout_session","coupon":null,"customer":null,"end":"100571","id":"obj_123","invoice":"invoice","invoice_item":"invoice_item","object":"discount","promotion_code":null,"start":"109757538","subscription":"subscription","subscription_item":"subscription_item"},"email":"email","id":"obj_123","invoice_credit_balance":{"undefined":1267696360},"invoice_prefix":"invoice_prefix","invoice_settings":{"custom_fields":[{"name":"name","value":"value"}],"default_payment_method":{"acss_debit":{"bank_name":"bank_name","fingerprint":"fingerprint","institution_number":"institution_number","last4":"last4","transit_number":"transit_number"},"affirm":{},"afterpay_clearpay":{},"alipay":{},"amazon_pay":{},"au_becs_debit":{"bsb_number":"bsb_number","fingerprint":"fingerprint","last4":"last4"},"bacs_debit":{"fingerprint":"fingerprint","last4":"last4","sort_code":"sort_code"},"bancontact":{},"billing_details":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","phone":"phone"},"blik":{},"boleto":{"tax_id":"tax_id"},"card":{"brand":"brand","checks":{"address_line1_check":"address_line1_check","address_postal_code_check":"address_postal_code_check","cvc_check":"cvc_check"},"country":"country","description":"description","display_brand":"display_brand","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"three_d_secure_usage":{"supported":true},"wallet":{"amex_express_checkout":{},"apple_pay":{},"dynamic_last4":"dynamic_last4","google_pay":{},"link":{},"masterpass":{"billing_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","shipping_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"}},"samsung_pay":{},"type":"link","visa_checkout":{"billing_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","shipping_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"}}}},"card_present":{"brand":"brand","cardholder_name":"cardholder_name","country":"country","description":"description","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"read_method":"magnetic_stripe_track2"},"cashapp":{"buyer_id":"buyer_id","cashtag":"cashtag"},"created":"1028554472","customer":null,"customer_balance":{},"eps":{"bank":"btv_vier_lander_bank"},"fpx":{"account_holder_type":"individual","bank":"bsn"},"giropay":{},"grabpay":{},"id":"obj_123","ideal":{"bank":"sns_bank","bic":"BUNQNL2A"},"interac_present":{"brand":"brand","cardholder_name":"cardholder_name","country":"country","description":"description","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2"},"klarna":{"dob":{"day":99228,"month":104080000,"year":3704893}},"konbini":{},"link":{"email":"email","persistent_token":"persistent_token"},"livemode":true,"metadata":{"undefined":"metadata"},"mobilepay":{},"multibanco":{},"object":"payment_method","oxxo":{},"p24":{"bank":"noble_pay"},"paynow":{},"paypal":{"fingerprint":"fingerprint","payer_email":"payer_email","payer_id":"payer_id","verified_email":"verified_email"},"payto":{"bsb_number":"bsb_number","last4":"last4","pay_id":"pay_id"},"pix":{},"promptpay":{},"radar_options":{"session":"session"},"rechnung":{"dob":{"day":99228,"month":104080000,"year":3704893}},"revolut_pay":{},"sepa_debit":{"bank_code":"bank_code","branch_code":"branch_code","country":"country","fingerprint":"fingerprint","generated_from":{"charge":null,"setup_attempt":null},"last4":"last4"},"sofort":{"country":"country"},"swish":{},"twint":{},"type":"acss_debit","us_bank_account":{"account_holder_type":"individual","account_number":"account_number","account_type":"checking","bank_name":"bank_name","financial_connections_account":"financial_connections_account","fingerprint":"fingerprint","last4":"last4","networks":{"preferred":"preferred","supported":["ach"]},"routing_number":"routing_number","status_details":{"blocked":{"network_code":"R29","reason":"bank_account_unusable"}}},"wechat_pay":{},"zip":{}},"footer":"footer","rendering_options":{"amount_tax_display":"amount_tax_display"}},"livemode":true,"metadata":{"undefined":"metadata"},"name":"name","next_invoice_sequence":1356358751,"object":"customer","phone":"phone","preferred_locales":["preferred_locales"],"shipping":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"carrier":"carrier","name":"name","phone":"phone","tracking_number":"tracking_number"},"sources":null,"subscriptions":null,"tax":{"automatic_tax":"unrecognized_location","ip_address":"ip_address","location":{"country":"country","source":"ip_address","state":"state"}},"tax_exempt":"reverse","tax_ids":null,"test_clock":{"created":"1028554472","deletes_after":"73213179","frozen_time":"2033541876","id":"obj_123","livemode":true,"name":"name","object":"test_helpers.test_clock","status":"advancing"}},"id":"obj_123","livemode":true,"object":"tax_id","owner":{"account":{"business_profile":{"annual_revenue":{"amount":1413853096,"currency":"currency","fiscal_year_end":"fiscal_year_end"},"estimated_worker_count":884794319,"mcc":"mcc","monthly_estimated_revenue":{"amount":1413853096,"currency":"currency"},"name":"name","product_description":"product_description","support_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"support_email":"support_email","support_phone":"support_phone","support_url":"support_url","url":"url"},"business_type":"government_entity","capabilities":{"acss_debit_payments":"inactive","affirm_payments":"pending","afterpay_clearpay_payments":"inactive","amazon_pay_payments":"inactive","au_becs_debit_payments":"active","bacs_debit_payments":"active","bancontact_payments":"inactive","bank_transfer_payments":"pending","blik_payments":"inactive","boleto_payments":"inactive","card_issuing":"active","card_payments":"active","cartes_bancaires_payments":"active","cashapp_payments":"active","eps_payments":"inactive","fpx_payments":"active","giropay_payments":"active","grabpay_payments":"pending","ideal_payments":"inactive","india_international_payments":"inactive","jcb_payments":"inactive","klarna_payments":"active","konbini_payments":"active","legacy_payments":"active","link_payments":"inactive","mobilepay_payments":"pending","oxxo_payments":"pending","p24_payments":"inactive","paynow_payments":"active","paypal_payments":"inactive","payto_payments":"pending","promptpay_payments":"active","rechnung_payments":"inactive","revolut_pay_payments":"inactive","sepa_debit_payments":"inactive","sofort_payments":"active","swish_payments":"inactive","tax_reporting_us_1099_k":"inactive","tax_reporting_us_1099_misc":"pending","transfers":"inactive","treasury":"pending","twint_payments":"inactive","us_bank_account_ach_payments":"pending","zip_payments":"pending"},"charges_enabled":true,"company":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"address_kana":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"address_kanji":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"directors_provided":true,"executives_provided":true,"export_license_id":"export_license_id","export_purpose_code":"export_purpose_code","name":"name","name_kana":"name_kana","name_kanji":"name_kanji","owners_provided":true,"ownership_declaration":{"date":"3076014","ip":"ip","user_agent":"user_agent"},"phone":"phone","structure":"single_member_llc","tax_id_provided":true,"tax_id_registrar":"tax_id_registrar","vat_id_provided":true,"verification":{"document":{"back":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"},"details":"details","details_code":"details_code","front":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"}}}},"controller":{"application":{"loss_liable":true,"onboarding_owner":true,"pricing_controls":true},"dashboard":{"type":"express"},"fees":{"payer":"account"},"is_controller":true,"losses":{"payments":"stripe"},"requirement_collection":"application","stripe_dashboard":{"type":"express"},"type":"account"},"country":"country","created":"1028554472","default_currency":"default_currency","details_submitted":true,"email":"email","external_accounts":null,"future_requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"current_deadline":"270965154","currently_due":["currently_due"],"disabled_reason":"disabled_reason","errors":[{"code":"invalid_url_website_incomplete_under_construction","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"id":"obj_123","individual":{"account":"account","additional_tos_acceptances":{"account":{"date":"3076014","ip":"ip","user_agent":"user_agent"}},"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"address_kana":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"address_kanji":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"created":"1028554472","dob":{"day":99228,"month":104080000,"year":3704893},"email":"email","first_name":"first_name","first_name_kana":"first_name_kana","first_name_kanji":"first_name_kanji","full_name_aliases":["full_name_aliases"],"future_requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"currently_due":["currently_due"],"errors":[{"code":"invalid_url_website_incomplete_under_construction","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"gender":"gender","id":"obj_123","id_number_provided":true,"id_number_secondary_provided":true,"last_name":"last_name","last_name_kana":"last_name_kana","last_name_kanji":"last_name_kanji","maiden_name":"maiden_name","metadata":{"undefined":"metadata"},"nationality":"nationality","object":"person","phone":"phone","political_exposure":"none","registered_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"relationship":{"director":true,"executive":true,"legal_guardian":true,"owner":true,"percent_ownership":760989685,"representative":true,"title":"title"},"requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"currently_due":["currently_due"],"errors":[{"code":"invalid_url_website_incomplete_under_construction","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"ssn_last_4_provided":true,"verification":{"additional_document":{"back":null,"details":"details","details_code":"details_code","front":null},"details":"details","details_code":"details_code","document":{"back":null,"details":"details","details_code":"details_code","front":null},"status":"status"}},"metadata":{"undefined":"metadata"},"object":"account","payouts_enabled":true,"requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"current_deadline":"270965154","currently_due":["currently_due"],"disabled_reason":"disabled_reason","errors":[{"code":"invalid_url_website_incomplete_under_construction","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"risk_controls":{"charges":{"pause_requested":true},"payouts":{"pause_requested":true}},"settings":{"bacs_debit_payments":{"display_name":"display_name","service_user_number":"service_user_number"},"branding":{"icon":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"},"logo":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"},"primary_color":"primary_color","secondary_color":"secondary_color"},"card_issuing":{"tos_acceptance":{"date":"3076014","ip":"ip","user_agent":"user_agent"}},"card_payments":{"decline_on":{"avs_failure":true,"cvc_failure":true},"statement_descriptor_prefix":"statement_descriptor_prefix","statement_descriptor_prefix_kana":"statement_descriptor_prefix_kana","statement_descriptor_prefix_kanji":"statement_descriptor_prefix_kanji"},"dashboard":{"display_name":"display_name","timezone":"timezone"},"invoices":{"default_account_tax_ids":[{"country":"country","created":"1028554472","customer":null,"id":"obj_123","livemode":true,"object":"tax_id","owner":{"account":null,"application":null,"customer":null,"type":"customer"},"type":"cn_tin","value":"value","verification":{"status":"unverified","verified_address":"verified_address","verified_name":"verified_name"}}]},"payments":{"statement_descriptor":"statement_descriptor","statement_descriptor_kana":"statement_descriptor_kana","statement_descriptor_kanji":"statement_descriptor_kanji","statement_descriptor_prefix_kana":"statement_descriptor_prefix_kana","statement_descriptor_prefix_kanji":"statement_descriptor_prefix_kanji"},"payouts":{"debit_negative_balances":true,"schedule":{"delay_days":1647351405,"interval":"interval","monthly_anchor":1920305369,"weekly_anchor":"weekly_anchor"},"statement_descriptor":"statement_descriptor"},"sepa_debit_payments":{"creditor_id":"creditor_id"},"tax_forms":{"consented_to_paperless_delivery":true},"treasury":{"tos_acceptance":{"date":"3076014","ip":"ip","user_agent":"user_agent"}}},"tos_acceptance":{"date":"3076014","ip":"ip","service_agreement":"service_agreement","user_agent":"user_agent"},"type":"none"},"application":{"id":"obj_123","name":"name","object":"application"},"customer":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"balance":339185956,"cash_balance":{"available":{"undefined":733902135},"customer":"customer","livemode":true,"object":"cash_balance","settings":{"reconciliation_mode":"manual","using_merchant_default":true}},"created":"1028554472","currency":"currency","default_source":null,"delinquent":true,"description":"description","discount":{"checkout_session":"checkout_session","coupon":null,"customer":null,"end":"100571","id":"obj_123","invoice":"invoice","invoice_item":"invoice_item","object":"discount","promotion_code":null,"start":"109757538","subscription":"subscription","subscription_item":"subscription_item"},"email":"email","id":"obj_123","invoice_credit_balance":{"undefined":1267696360},"invoice_prefix":"invoice_prefix","invoice_settings":{"custom_fields":[{"name":"name","value":"value"}],"default_payment_method":{"acss_debit":{"bank_name":"bank_name","fingerprint":"fingerprint","institution_number":"institution_number","last4":"last4","transit_number":"transit_number"},"affirm":{},"afterpay_clearpay":{},"alipay":{},"amazon_pay":{},"au_becs_debit":{"bsb_number":"bsb_number","fingerprint":"fingerprint","last4":"last4"},"bacs_debit":{"fingerprint":"fingerprint","last4":"last4","sort_code":"sort_code"},"bancontact":{},"billing_details":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","phone":"phone"},"blik":{},"boleto":{"tax_id":"tax_id"},"card":{"brand":"brand","checks":{"address_line1_check":"address_line1_check","address_postal_code_check":"address_postal_code_check","cvc_check":"cvc_check"},"country":"country","description":"description","display_brand":"display_brand","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"three_d_secure_usage":{"supported":true},"wallet":{"amex_express_checkout":{},"apple_pay":{},"dynamic_last4":"dynamic_last4","google_pay":{},"link":{},"masterpass":{"billing_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","shipping_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"}},"samsung_pay":{},"type":"link","visa_checkout":{"billing_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","shipping_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"}}}},"card_present":{"brand":"brand","cardholder_name":"cardholder_name","country":"country","description":"description","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"read_method":"magnetic_stripe_track2"},"cashapp":{"buyer_id":"buyer_id","cashtag":"cashtag"},"created":"1028554472","customer":null,"customer_balance":{},"eps":{"bank":"btv_vier_lander_bank"},"fpx":{"account_holder_type":"individual","bank":"bsn"},"giropay":{},"grabpay":{},"id":"obj_123","ideal":{"bank":"sns_bank","bic":"BUNQNL2A"},"interac_present":{"brand":"brand","cardholder_name":"cardholder_name","country":"country","description":"description","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2"},"klarna":{"dob":{"day":99228,"month":104080000,"year":3704893}},"konbini":{},"link":{"email":"email","persistent_token":"persistent_token"},"livemode":true,"metadata":{"undefined":"metadata"},"mobilepay":{},"multibanco":{},"object":"payment_method","oxxo":{},"p24":{"bank":"noble_pay"},"paynow":{},"paypal":{"fingerprint":"fingerprint","payer_email":"payer_email","payer_id":"payer_id","verified_email":"verified_email"},"payto":{"bsb_number":"bsb_number","last4":"last4","pay_id":"pay_id"},"pix":{},"promptpay":{},"radar_options":{"session":"session"},"rechnung":{"dob":{"day":99228,"month":104080000,"year":3704893}},"revolut_pay":{},"sepa_debit":{"bank_code":"bank_code","branch_code":"branch_code","country":"country","fingerprint":"fingerprint","generated_from":{"charge":null,"setup_attempt":null},"last4":"last4"},"sofort":{"country":"country"},"swish":{},"twint":{},"type":"acss_debit","us_bank_account":{"account_holder_type":"individual","account_number":"account_number","account_type":"checking","bank_name":"bank_name","financial_connections_account":"financial_connections_account","fingerprint":"fingerprint","last4":"last4","networks":{"preferred":"preferred","supported":["ach"]},"routing_number":"routing_number","status_details":{"blocked":{"network_code":"R29","reason":"bank_account_unusable"}}},"wechat_pay":{},"zip":{}},"footer":"footer","rendering_options":{"amount_tax_display":"amount_tax_display"}},"livemode":true,"metadata":{"undefined":"metadata"},"name":"name","next_invoice_sequence":1356358751,"object":"customer","phone":"phone","preferred_locales":["preferred_locales"],"shipping":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"carrier":"carrier","name":"name","phone":"phone","tracking_number":"tracking_number"},"sources":null,"subscriptions":null,"tax":{"automatic_tax":"unrecognized_location","ip_address":"ip_address","location":{"country":"country","source":"ip_address","state":"state"}},"tax_exempt":"reverse","tax_ids":null,"test_clock":{"created":"1028554472","deletes_after":"73213179","frozen_time":"2033541876","id":"obj_123","livemode":true,"name":"name","object":"test_helpers.test_clock","status":"advancing"}},"type":"customer"},"type":"cn_tin","value":"value","verification":{"status":"unverified","verified_address":"verified_address","verified_name":"verified_name"}}]},"payments":{"statement_descriptor":"statement_descriptor","statement_descriptor_kana":"statement_descriptor_kana","statement_descriptor_kanji":"statement_descriptor_kanji","statement_descriptor_prefix_kana":"statement_descriptor_prefix_kana","statement_descriptor_prefix_kanji":"statement_descriptor_prefix_kanji"},"payouts":{"debit_negative_balances":true,"schedule":{"delay_days":1647351405,"interval":"interval","monthly_anchor":1920305369,"weekly_anchor":"weekly_anchor"},"statement_descriptor":"statement_descriptor"},"sepa_debit_payments":{"creditor_id":"creditor_id"},"tax_forms":{"consented_to_paperless_delivery":true},"treasury":{"tos_acceptance":{"date":"3076014","ip":"ip","user_agent":"user_agent"}}},"tos_acceptance":{"date":"3076014","ip":"ip","service_agreement":"service_agreement","user_agent":"user_agent"},"type":"none"}', + '{"business_profile":{"annual_revenue":{"amount":1413853096,"currency":"currency","fiscal_year_end":"fiscal_year_end"},"estimated_worker_count":884794319,"mcc":"mcc","monthly_estimated_revenue":{"amount":1413853096,"currency":"currency"},"name":"name","product_description":"product_description","support_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"support_email":"support_email","support_phone":"support_phone","support_url":"support_url","url":"url"},"business_type":"government_entity","capabilities":{"acss_debit_payments":"inactive","affirm_payments":"pending","afterpay_clearpay_payments":"inactive","amazon_pay_payments":"inactive","au_becs_debit_payments":"active","bacs_debit_payments":"active","bancontact_payments":"inactive","bank_transfer_payments":"pending","blik_payments":"inactive","boleto_payments":"inactive","card_issuing":"active","card_payments":"active","cartes_bancaires_payments":"active","cashapp_payments":"active","eps_payments":"inactive","fpx_payments":"active","giropay_payments":"active","grabpay_payments":"pending","ideal_payments":"inactive","india_international_payments":"inactive","jcb_payments":"inactive","klarna_payments":"active","konbini_payments":"active","legacy_payments":"active","link_payments":"inactive","mobilepay_payments":"pending","oxxo_payments":"pending","p24_payments":"inactive","paynow_payments":"active","paypal_payments":"inactive","payto_payments":"pending","promptpay_payments":"active","rechnung_payments":"inactive","revolut_pay_payments":"inactive","sepa_debit_payments":"inactive","sofort_payments":"active","swish_payments":"inactive","tax_reporting_us_1099_k":"inactive","tax_reporting_us_1099_misc":"pending","transfers":"inactive","treasury":"pending","twint_payments":"inactive","us_bank_account_ach_payments":"pending","zip_payments":"pending"},"charges_enabled":true,"company":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"address_kana":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"address_kanji":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"directors_provided":true,"executives_provided":true,"export_license_id":"export_license_id","export_purpose_code":"export_purpose_code","name":"name","name_kana":"name_kana","name_kanji":"name_kanji","owners_provided":true,"ownership_declaration":{"date":"3076014","ip":"ip","user_agent":"user_agent"},"phone":"phone","structure":"single_member_llc","tax_id_provided":true,"tax_id_registrar":"tax_id_registrar","vat_id_provided":true,"verification":{"document":{"back":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"},"details":"details","details_code":"details_code","front":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"}}}},"controller":{"application":{"loss_liable":true,"onboarding_owner":true,"pricing_controls":true},"dashboard":{"type":"express"},"fees":{"payer":"account"},"is_controller":true,"losses":{"payments":"stripe"},"requirement_collection":"application","stripe_dashboard":{"type":"express"},"type":"account"},"country":"country","created":"1028554472","default_currency":"default_currency","details_submitted":true,"email":"email","external_accounts":null,"future_requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"current_deadline":"270965154","currently_due":["currently_due"],"disabled_reason":"disabled_reason","errors":[{"code":"invalid_url_website_incomplete_under_construction","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"id":"obj_123","individual":{"account":"account","additional_tos_acceptances":{"account":{"date":"3076014","ip":"ip","user_agent":"user_agent"}},"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"address_kana":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"address_kanji":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"created":"1028554472","dob":{"day":99228,"month":104080000,"year":3704893},"email":"email","first_name":"first_name","first_name_kana":"first_name_kana","first_name_kanji":"first_name_kanji","full_name_aliases":["full_name_aliases"],"future_requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"currently_due":["currently_due"],"errors":[{"code":"invalid_url_website_incomplete_under_construction","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"gender":"gender","id":"obj_123","id_number_provided":true,"id_number_secondary_provided":true,"last_name":"last_name","last_name_kana":"last_name_kana","last_name_kanji":"last_name_kanji","maiden_name":"maiden_name","metadata":{"undefined":"metadata"},"nationality":"nationality","object":"person","phone":"phone","political_exposure":"none","registered_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"relationship":{"director":true,"executive":true,"legal_guardian":true,"owner":true,"percent_ownership":760989685,"representative":true,"title":"title"},"requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"currently_due":["currently_due"],"errors":[{"code":"invalid_url_website_incomplete_under_construction","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"ssn_last_4_provided":true,"verification":{"additional_document":{"back":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"},"details":"details","details_code":"details_code","front":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"}},"details":"details","details_code":"details_code","document":{"back":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"},"details":"details","details_code":"details_code","front":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"}},"status":"status"}},"metadata":{"undefined":"metadata"},"object":"account","payouts_enabled":true,"requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"current_deadline":"270965154","currently_due":["currently_due"],"disabled_reason":"disabled_reason","errors":[{"code":"invalid_url_website_incomplete_under_construction","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"risk_controls":{"charges":{"pause_requested":true},"payouts":{"pause_requested":true}},"settings":{"bacs_debit_payments":{"display_name":"display_name","service_user_number":"service_user_number"},"branding":{"icon":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"},"logo":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"},"primary_color":"primary_color","secondary_color":"secondary_color"},"card_issuing":{"tos_acceptance":{"date":"3076014","ip":"ip","user_agent":"user_agent"}},"card_payments":{"decline_on":{"avs_failure":true,"cvc_failure":true},"statement_descriptor_prefix":"statement_descriptor_prefix","statement_descriptor_prefix_kana":"statement_descriptor_prefix_kana","statement_descriptor_prefix_kanji":"statement_descriptor_prefix_kanji"},"dashboard":{"display_name":"display_name","timezone":"timezone"},"invoices":{"default_account_tax_ids":[{"country":"country","created":"1028554472","customer":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"balance":339185956,"cash_balance":{"available":{"undefined":733902135},"customer":"customer","livemode":true,"object":"cash_balance","settings":{"reconciliation_mode":"manual","using_merchant_default":true}},"created":"1028554472","currency":"currency","default_source":null,"delinquent":true,"description":"description","discount":{"checkout_session":"checkout_session","coupon":null,"customer":null,"end":"100571","id":"obj_123","invoice":"invoice","invoice_item":"invoice_item","object":"discount","promotion_code":null,"start":"109757538","subscription":"subscription","subscription_item":"subscription_item"},"email":"email","id":"obj_123","invoice_credit_balance":{"undefined":1267696360},"invoice_prefix":"invoice_prefix","invoice_settings":{"custom_fields":[{"name":"name","value":"value"}],"default_payment_method":{"acss_debit":{"bank_name":"bank_name","fingerprint":"fingerprint","institution_number":"institution_number","last4":"last4","transit_number":"transit_number"},"affirm":{},"afterpay_clearpay":{},"alipay":{},"allow_redisplay":"unspecified","amazon_pay":{},"au_becs_debit":{"bsb_number":"bsb_number","fingerprint":"fingerprint","last4":"last4"},"bacs_debit":{"fingerprint":"fingerprint","last4":"last4","sort_code":"sort_code"},"bancontact":{},"billing_details":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","phone":"phone"},"blik":{},"boleto":{"tax_id":"tax_id"},"card":{"brand":"brand","checks":{"address_line1_check":"address_line1_check","address_postal_code_check":"address_postal_code_check","cvc_check":"cvc_check"},"country":"country","description":"description","display_brand":"display_brand","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"three_d_secure_usage":{"supported":true},"wallet":{"amex_express_checkout":{},"apple_pay":{},"dynamic_last4":"dynamic_last4","google_pay":{},"link":{},"masterpass":{"billing_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","shipping_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"}},"samsung_pay":{},"type":"link","visa_checkout":{"billing_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","shipping_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"}}}},"card_present":{"brand":"brand","cardholder_name":"cardholder_name","country":"country","description":"description","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"read_method":"magnetic_stripe_track2"},"cashapp":{"buyer_id":"buyer_id","cashtag":"cashtag"},"created":"1028554472","customer":null,"customer_balance":{},"eps":{"bank":"btv_vier_lander_bank"},"fpx":{"account_holder_type":"individual","bank":"bsn"},"giropay":{},"grabpay":{},"id":"obj_123","ideal":{"bank":"sns_bank","bic":"BUNQNL2A"},"interac_present":{"brand":"brand","cardholder_name":"cardholder_name","country":"country","description":"description","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2"},"klarna":{"dob":{"day":99228,"month":104080000,"year":3704893}},"konbini":{},"link":{"email":"email","persistent_token":"persistent_token"},"livemode":true,"metadata":{"undefined":"metadata"},"mobilepay":{},"multibanco":{},"object":"payment_method","oxxo":{},"p24":{"bank":"noble_pay"},"paynow":{},"paypal":{"fingerprint":"fingerprint","payer_email":"payer_email","payer_id":"payer_id","verified_email":"verified_email"},"payto":{"bsb_number":"bsb_number","last4":"last4","pay_id":"pay_id"},"pix":{},"promptpay":{},"radar_options":{"session":"session"},"rechnung":{"dob":{"day":99228,"month":104080000,"year":3704893}},"revolut_pay":{},"sepa_debit":{"bank_code":"bank_code","branch_code":"branch_code","country":"country","fingerprint":"fingerprint","generated_from":{"charge":null,"setup_attempt":null},"last4":"last4"},"sofort":{"country":"country"},"swish":{},"twint":{},"type":"acss_debit","us_bank_account":{"account_holder_type":"individual","account_number":"account_number","account_type":"checking","bank_name":"bank_name","financial_connections_account":"financial_connections_account","fingerprint":"fingerprint","last4":"last4","networks":{"preferred":"preferred","supported":["ach"]},"routing_number":"routing_number","status_details":{"blocked":{"network_code":"R29","reason":"bank_account_unusable"}}},"wechat_pay":{},"zip":{}},"footer":"footer","rendering_options":{"amount_tax_display":"amount_tax_display"}},"livemode":true,"metadata":{"undefined":"metadata"},"name":"name","next_invoice_sequence":1356358751,"object":"customer","phone":"phone","preferred_locales":["preferred_locales"],"shipping":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"carrier":"carrier","name":"name","phone":"phone","tracking_number":"tracking_number"},"sources":null,"subscriptions":null,"tax":{"automatic_tax":"unrecognized_location","ip_address":"ip_address","location":{"country":"country","source":"ip_address","state":"state"}},"tax_exempt":"reverse","tax_ids":null,"test_clock":{"created":"1028554472","deletes_after":"73213179","frozen_time":"2033541876","id":"obj_123","livemode":true,"name":"name","object":"test_helpers.test_clock","status":"advancing"}},"id":"obj_123","livemode":true,"object":"tax_id","owner":{"account":{"business_profile":{"annual_revenue":{"amount":1413853096,"currency":"currency","fiscal_year_end":"fiscal_year_end"},"estimated_worker_count":884794319,"mcc":"mcc","monthly_estimated_revenue":{"amount":1413853096,"currency":"currency"},"name":"name","product_description":"product_description","support_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"support_email":"support_email","support_phone":"support_phone","support_url":"support_url","url":"url"},"business_type":"government_entity","capabilities":{"acss_debit_payments":"inactive","affirm_payments":"pending","afterpay_clearpay_payments":"inactive","amazon_pay_payments":"inactive","au_becs_debit_payments":"active","bacs_debit_payments":"active","bancontact_payments":"inactive","bank_transfer_payments":"pending","blik_payments":"inactive","boleto_payments":"inactive","card_issuing":"active","card_payments":"active","cartes_bancaires_payments":"active","cashapp_payments":"active","eps_payments":"inactive","fpx_payments":"active","giropay_payments":"active","grabpay_payments":"pending","ideal_payments":"inactive","india_international_payments":"inactive","jcb_payments":"inactive","klarna_payments":"active","konbini_payments":"active","legacy_payments":"active","link_payments":"inactive","mobilepay_payments":"pending","oxxo_payments":"pending","p24_payments":"inactive","paynow_payments":"active","paypal_payments":"inactive","payto_payments":"pending","promptpay_payments":"active","rechnung_payments":"inactive","revolut_pay_payments":"inactive","sepa_debit_payments":"inactive","sofort_payments":"active","swish_payments":"inactive","tax_reporting_us_1099_k":"inactive","tax_reporting_us_1099_misc":"pending","transfers":"inactive","treasury":"pending","twint_payments":"inactive","us_bank_account_ach_payments":"pending","zip_payments":"pending"},"charges_enabled":true,"company":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"address_kana":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"address_kanji":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"directors_provided":true,"executives_provided":true,"export_license_id":"export_license_id","export_purpose_code":"export_purpose_code","name":"name","name_kana":"name_kana","name_kanji":"name_kanji","owners_provided":true,"ownership_declaration":{"date":"3076014","ip":"ip","user_agent":"user_agent"},"phone":"phone","structure":"single_member_llc","tax_id_provided":true,"tax_id_registrar":"tax_id_registrar","vat_id_provided":true,"verification":{"document":{"back":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"},"details":"details","details_code":"details_code","front":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"}}}},"controller":{"application":{"loss_liable":true,"onboarding_owner":true,"pricing_controls":true},"dashboard":{"type":"express"},"fees":{"payer":"account"},"is_controller":true,"losses":{"payments":"stripe"},"requirement_collection":"application","stripe_dashboard":{"type":"express"},"type":"account"},"country":"country","created":"1028554472","default_currency":"default_currency","details_submitted":true,"email":"email","external_accounts":null,"future_requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"current_deadline":"270965154","currently_due":["currently_due"],"disabled_reason":"disabled_reason","errors":[{"code":"invalid_url_website_incomplete_under_construction","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"id":"obj_123","individual":{"account":"account","additional_tos_acceptances":{"account":{"date":"3076014","ip":"ip","user_agent":"user_agent"}},"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"address_kana":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"address_kanji":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"created":"1028554472","dob":{"day":99228,"month":104080000,"year":3704893},"email":"email","first_name":"first_name","first_name_kana":"first_name_kana","first_name_kanji":"first_name_kanji","full_name_aliases":["full_name_aliases"],"future_requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"currently_due":["currently_due"],"errors":[{"code":"invalid_url_website_incomplete_under_construction","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"gender":"gender","id":"obj_123","id_number_provided":true,"id_number_secondary_provided":true,"last_name":"last_name","last_name_kana":"last_name_kana","last_name_kanji":"last_name_kanji","maiden_name":"maiden_name","metadata":{"undefined":"metadata"},"nationality":"nationality","object":"person","phone":"phone","political_exposure":"none","registered_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"relationship":{"director":true,"executive":true,"legal_guardian":true,"owner":true,"percent_ownership":760989685,"representative":true,"title":"title"},"requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"currently_due":["currently_due"],"errors":[{"code":"invalid_url_website_incomplete_under_construction","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"ssn_last_4_provided":true,"verification":{"additional_document":{"back":null,"details":"details","details_code":"details_code","front":null},"details":"details","details_code":"details_code","document":{"back":null,"details":"details","details_code":"details_code","front":null},"status":"status"}},"metadata":{"undefined":"metadata"},"object":"account","payouts_enabled":true,"requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"current_deadline":"270965154","currently_due":["currently_due"],"disabled_reason":"disabled_reason","errors":[{"code":"invalid_url_website_incomplete_under_construction","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"risk_controls":{"charges":{"pause_requested":true},"payouts":{"pause_requested":true}},"settings":{"bacs_debit_payments":{"display_name":"display_name","service_user_number":"service_user_number"},"branding":{"icon":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"},"logo":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"},"primary_color":"primary_color","secondary_color":"secondary_color"},"card_issuing":{"tos_acceptance":{"date":"3076014","ip":"ip","user_agent":"user_agent"}},"card_payments":{"decline_on":{"avs_failure":true,"cvc_failure":true},"statement_descriptor_prefix":"statement_descriptor_prefix","statement_descriptor_prefix_kana":"statement_descriptor_prefix_kana","statement_descriptor_prefix_kanji":"statement_descriptor_prefix_kanji"},"dashboard":{"display_name":"display_name","timezone":"timezone"},"invoices":{"default_account_tax_ids":[{"country":"country","created":"1028554472","customer":null,"id":"obj_123","livemode":true,"object":"tax_id","owner":{"account":null,"application":null,"customer":null,"type":"customer"},"type":"cn_tin","value":"value","verification":{"status":"unverified","verified_address":"verified_address","verified_name":"verified_name"}}]},"payments":{"statement_descriptor":"statement_descriptor","statement_descriptor_kana":"statement_descriptor_kana","statement_descriptor_kanji":"statement_descriptor_kanji","statement_descriptor_prefix_kana":"statement_descriptor_prefix_kana","statement_descriptor_prefix_kanji":"statement_descriptor_prefix_kanji"},"payouts":{"debit_negative_balances":true,"schedule":{"delay_days":1647351405,"interval":"interval","monthly_anchor":1920305369,"weekly_anchor":"weekly_anchor"},"statement_descriptor":"statement_descriptor"},"sepa_debit_payments":{"creditor_id":"creditor_id"},"tax_forms":{"consented_to_paperless_delivery":true},"treasury":{"tos_acceptance":{"date":"3076014","ip":"ip","user_agent":"user_agent"}}},"tos_acceptance":{"date":"3076014","ip":"ip","service_agreement":"service_agreement","user_agent":"user_agent"},"type":"none"},"application":{"id":"obj_123","name":"name","object":"application"},"customer":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"balance":339185956,"cash_balance":{"available":{"undefined":733902135},"customer":"customer","livemode":true,"object":"cash_balance","settings":{"reconciliation_mode":"manual","using_merchant_default":true}},"created":"1028554472","currency":"currency","default_source":null,"delinquent":true,"description":"description","discount":{"checkout_session":"checkout_session","coupon":null,"customer":null,"end":"100571","id":"obj_123","invoice":"invoice","invoice_item":"invoice_item","object":"discount","promotion_code":null,"start":"109757538","subscription":"subscription","subscription_item":"subscription_item"},"email":"email","id":"obj_123","invoice_credit_balance":{"undefined":1267696360},"invoice_prefix":"invoice_prefix","invoice_settings":{"custom_fields":[{"name":"name","value":"value"}],"default_payment_method":{"acss_debit":{"bank_name":"bank_name","fingerprint":"fingerprint","institution_number":"institution_number","last4":"last4","transit_number":"transit_number"},"affirm":{},"afterpay_clearpay":{},"alipay":{},"allow_redisplay":"unspecified","amazon_pay":{},"au_becs_debit":{"bsb_number":"bsb_number","fingerprint":"fingerprint","last4":"last4"},"bacs_debit":{"fingerprint":"fingerprint","last4":"last4","sort_code":"sort_code"},"bancontact":{},"billing_details":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","phone":"phone"},"blik":{},"boleto":{"tax_id":"tax_id"},"card":{"brand":"brand","checks":{"address_line1_check":"address_line1_check","address_postal_code_check":"address_postal_code_check","cvc_check":"cvc_check"},"country":"country","description":"description","display_brand":"display_brand","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"three_d_secure_usage":{"supported":true},"wallet":{"amex_express_checkout":{},"apple_pay":{},"dynamic_last4":"dynamic_last4","google_pay":{},"link":{},"masterpass":{"billing_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","shipping_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"}},"samsung_pay":{},"type":"link","visa_checkout":{"billing_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","shipping_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"}}}},"card_present":{"brand":"brand","cardholder_name":"cardholder_name","country":"country","description":"description","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"read_method":"magnetic_stripe_track2"},"cashapp":{"buyer_id":"buyer_id","cashtag":"cashtag"},"created":"1028554472","customer":null,"customer_balance":{},"eps":{"bank":"btv_vier_lander_bank"},"fpx":{"account_holder_type":"individual","bank":"bsn"},"giropay":{},"grabpay":{},"id":"obj_123","ideal":{"bank":"sns_bank","bic":"BUNQNL2A"},"interac_present":{"brand":"brand","cardholder_name":"cardholder_name","country":"country","description":"description","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2"},"klarna":{"dob":{"day":99228,"month":104080000,"year":3704893}},"konbini":{},"link":{"email":"email","persistent_token":"persistent_token"},"livemode":true,"metadata":{"undefined":"metadata"},"mobilepay":{},"multibanco":{},"object":"payment_method","oxxo":{},"p24":{"bank":"noble_pay"},"paynow":{},"paypal":{"fingerprint":"fingerprint","payer_email":"payer_email","payer_id":"payer_id","verified_email":"verified_email"},"payto":{"bsb_number":"bsb_number","last4":"last4","pay_id":"pay_id"},"pix":{},"promptpay":{},"radar_options":{"session":"session"},"rechnung":{"dob":{"day":99228,"month":104080000,"year":3704893}},"revolut_pay":{},"sepa_debit":{"bank_code":"bank_code","branch_code":"branch_code","country":"country","fingerprint":"fingerprint","generated_from":{"charge":null,"setup_attempt":null},"last4":"last4"},"sofort":{"country":"country"},"swish":{},"twint":{},"type":"acss_debit","us_bank_account":{"account_holder_type":"individual","account_number":"account_number","account_type":"checking","bank_name":"bank_name","financial_connections_account":"financial_connections_account","fingerprint":"fingerprint","last4":"last4","networks":{"preferred":"preferred","supported":["ach"]},"routing_number":"routing_number","status_details":{"blocked":{"network_code":"R29","reason":"bank_account_unusable"}}},"wechat_pay":{},"zip":{}},"footer":"footer","rendering_options":{"amount_tax_display":"amount_tax_display"}},"livemode":true,"metadata":{"undefined":"metadata"},"name":"name","next_invoice_sequence":1356358751,"object":"customer","phone":"phone","preferred_locales":["preferred_locales"],"shipping":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"carrier":"carrier","name":"name","phone":"phone","tracking_number":"tracking_number"},"sources":null,"subscriptions":null,"tax":{"automatic_tax":"unrecognized_location","ip_address":"ip_address","location":{"country":"country","source":"ip_address","state":"state"}},"tax_exempt":"reverse","tax_ids":null,"test_clock":{"created":"1028554472","deletes_after":"73213179","frozen_time":"2033541876","id":"obj_123","livemode":true,"name":"name","object":"test_helpers.test_clock","status":"advancing"}},"type":"customer"},"type":"cn_tin","value":"value","verification":{"status":"unverified","verified_address":"verified_address","verified_name":"verified_name"}}]},"payments":{"statement_descriptor":"statement_descriptor","statement_descriptor_kana":"statement_descriptor_kana","statement_descriptor_kanji":"statement_descriptor_kanji","statement_descriptor_prefix_kana":"statement_descriptor_prefix_kana","statement_descriptor_prefix_kanji":"statement_descriptor_prefix_kanji"},"payouts":{"debit_negative_balances":true,"schedule":{"delay_days":1647351405,"interval":"interval","monthly_anchor":1920305369,"weekly_anchor":"weekly_anchor"},"statement_descriptor":"statement_descriptor"},"sepa_debit_payments":{"creditor_id":"creditor_id"},"tax_forms":{"consented_to_paperless_delivery":true},"treasury":{"tos_acceptance":{"date":"3076014","ip":"ip","user_agent":"user_agent"}}},"tos_acceptance":{"date":"3076014","ip":"ip","service_agreement":"service_agreement","user_agent":"user_agent"},"type":"none"}', }, ]); const account = await stripe.accounts.retrieve('acc_123'); diff --git a/types/ConfirmationTokens.d.ts b/types/ConfirmationTokens.d.ts index 395ab482d5..72a510a704 100644 --- a/types/ConfirmationTokens.d.ts +++ b/types/ConfirmationTokens.d.ts @@ -146,6 +146,11 @@ declare module 'stripe' { alipay?: PaymentMethodPreview.Alipay; + /** + * This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to “unspecified”. + */ + allow_redisplay?: PaymentMethodPreview.AllowRedisplay; + amazon_pay?: PaymentMethodPreview.AmazonPay; au_becs_debit?: PaymentMethodPreview.AuBecsDebit; @@ -262,6 +267,8 @@ declare module 'stripe' { interface Alipay {} + type AllowRedisplay = 'always' | 'limited' | 'unspecified'; + interface AmazonPay {} interface AuBecsDebit { diff --git a/types/PaymentMethods.d.ts b/types/PaymentMethods.d.ts index db1135158b..9c0bb2f603 100644 --- a/types/PaymentMethods.d.ts +++ b/types/PaymentMethods.d.ts @@ -28,6 +28,11 @@ declare module 'stripe' { alipay?: PaymentMethod.Alipay; + /** + * This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to “unspecified”. + */ + allow_redisplay?: PaymentMethod.AllowRedisplay; + amazon_pay?: PaymentMethod.AmazonPay; au_becs_debit?: PaymentMethod.AuBecsDebit; @@ -169,6 +174,8 @@ declare module 'stripe' { interface Alipay {} + type AllowRedisplay = 'always' | 'limited' | 'unspecified'; + interface AmazonPay {} interface AuBecsDebit { From 9145412eaab093ab139c3bc79cdaf0e082eaf461 Mon Sep 17 00:00:00 2001 From: Ramya Rao Date: Mon, 6 May 2024 16:14:00 -0700 Subject: [PATCH 07/14] Empty commit From dc9971f8049b3662cd9c3ab2e26a61ad9111d190 Mon Sep 17 00:00:00 2001 From: David Brownman <109395161+xavdid-stripe@users.noreply.github.com> Date: Tue, 7 May 2024 11:12:40 -0700 Subject: [PATCH 08/14] add local pre-req script to bail early if tests will fail (#2083) add local pre-req script to bail early if tests will fail --- Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 51c7bd6187..22a47cedd1 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: codegen-format update-version test ci-test +.PHONY: codegen-format update-version test check-prereqs ci-test update-version: @echo "$(VERSION)" > VERSION @perl -pi -e 's|"version": "[.\-\d\w]+"|"version": "$(VERSION)"|' package.json @@ -10,4 +10,10 @@ codegen-format: ci-test: yarn && yarn test -test: ci-test +check-prereqs: +# tests depend on `deno` being available + @command -v deno >/dev/null 2>&1 || { echo "Error: deno is not installed." >&2; exit 1; } +# stripe mock must be running; check its default port for a listener + @lsof -i :12112 >/dev/null 2>&1 || { echo "Error: stripe-mock is not running (on port 12112)." >&2; exit 1; } + +test: check-prereqs ci-test From 14e485c752049c356f800b889364cc1b95d3d57f Mon Sep 17 00:00:00 2001 From: David Brownman <109395161+xavdid-stripe@users.noreply.github.com> Date: Tue, 7 May 2024 14:45:23 -0700 Subject: [PATCH 09/14] Revert "add local pre-req script to bail early if tests will fail" (#2084) Revert "add local pre-req script to bail early if tests will fail (#2083)" This reverts commit dc9971f8049b3662cd9c3ab2e26a61ad9111d190. --- Makefile | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index 22a47cedd1..51c7bd6187 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: codegen-format update-version test check-prereqs ci-test +.PHONY: codegen-format update-version test ci-test update-version: @echo "$(VERSION)" > VERSION @perl -pi -e 's|"version": "[.\-\d\w]+"|"version": "$(VERSION)"|' package.json @@ -10,10 +10,4 @@ codegen-format: ci-test: yarn && yarn test -check-prereqs: -# tests depend on `deno` being available - @command -v deno >/dev/null 2>&1 || { echo "Error: deno is not installed." >&2; exit 1; } -# stripe mock must be running; check its default port for a listener - @lsof -i :12112 >/dev/null 2>&1 || { echo "Error: stripe-mock is not running (on port 12112)." >&2; exit 1; } - -test: check-prereqs ci-test +test: ci-test From 5d8d51939babcd2b0ff2fd7d22a5bb5e029c4fb7 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 8 May 2024 00:54:49 +0000 Subject: [PATCH 10/14] Update generated code for v1015 --- OPENAPI_VERSION | 2 +- types/AccountsResource.d.ts | 12 ++++++------ types/Capital/FinancingSummary.d.ts | 2 +- types/CreditNotesResource.d.ts | 2 +- .../Treasury/OutboundPaymentsResource.d.ts | 2 +- types/TokensResource.d.ts | 6 +++--- 6 files changed, 13 insertions(+), 13 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 2bb7f1b34a..8ac6a0165d 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1014 \ No newline at end of file +v1015 \ No newline at end of file diff --git a/types/AccountsResource.d.ts b/types/AccountsResource.d.ts index a8b343f011..8c1d60dece 100644 --- a/types/AccountsResource.d.ts +++ b/types/AccountsResource.d.ts @@ -1121,12 +1121,12 @@ declare module 'stripe' { address?: Stripe.AddressParam; /** - * The Kana variation of the the individual's primary address (Japan only). + * The Kana variation of the individual's primary address (Japan only). */ address_kana?: Stripe.JapanAddressParam; /** - * The Kanji variation of the the individual's primary address (Japan only). + * The Kanji variation of the individual's primary address (Japan only). */ address_kanji?: Stripe.JapanAddressParam; @@ -1146,7 +1146,7 @@ declare module 'stripe' { first_name?: string; /** - * The Kana variation of the the individual's first name (Japan only). + * The Kana variation of the individual's first name (Japan only). */ first_name_kana?: string; @@ -2674,12 +2674,12 @@ declare module 'stripe' { address?: Stripe.AddressParam; /** - * The Kana variation of the the individual's primary address (Japan only). + * The Kana variation of the individual's primary address (Japan only). */ address_kana?: Stripe.JapanAddressParam; /** - * The Kanji variation of the the individual's primary address (Japan only). + * The Kanji variation of the individual's primary address (Japan only). */ address_kanji?: Stripe.JapanAddressParam; @@ -2699,7 +2699,7 @@ declare module 'stripe' { first_name?: string; /** - * The Kana variation of the the individual's first name (Japan only). + * The Kana variation of the individual's first name (Japan only). */ first_name_kana?: string; diff --git a/types/Capital/FinancingSummary.d.ts b/types/Capital/FinancingSummary.d.ts index e05aec5266..26fee35eb2 100644 --- a/types/Capital/FinancingSummary.d.ts +++ b/types/Capital/FinancingSummary.d.ts @@ -39,7 +39,7 @@ declare module 'stripe' { advance_amount: number; /** - * The time at which the funds were paid out the the Connected account's Stripe balance. Given in milliseconds since unix epoch. + * The time at which the funds were paid out to the connected account's Stripe balance. Given in milliseconds since unix epoch. */ advance_paid_out_at: number | null; diff --git a/types/CreditNotesResource.d.ts b/types/CreditNotesResource.d.ts index f25f0b40f1..157a94690f 100644 --- a/types/CreditNotesResource.d.ts +++ b/types/CreditNotesResource.d.ts @@ -617,7 +617,7 @@ declare module 'stripe' { list(options?: RequestOptions): ApiListPromise; /** - * When retrieving a credit note, you'll get a lines property containing the the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items. + * When retrieving a credit note, you'll get a lines property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items. */ listLineItems( id: string, diff --git a/types/TestHelpers/Treasury/OutboundPaymentsResource.d.ts b/types/TestHelpers/Treasury/OutboundPaymentsResource.d.ts index 73f8c12872..a4ba8c5293 100644 --- a/types/TestHelpers/Treasury/OutboundPaymentsResource.d.ts +++ b/types/TestHelpers/Treasury/OutboundPaymentsResource.d.ts @@ -85,7 +85,7 @@ declare module 'stripe' { expand?: Array; /** - * Optional hash to set the the return code. + * Optional hash to set the return code. */ returned_details?: OutboundPaymentReturnOutboundPaymentParams.ReturnedDetails; } diff --git a/types/TokensResource.d.ts b/types/TokensResource.d.ts index a291144bc4..80532a366c 100644 --- a/types/TokensResource.d.ts +++ b/types/TokensResource.d.ts @@ -248,12 +248,12 @@ declare module 'stripe' { address?: Stripe.AddressParam; /** - * The Kana variation of the the individual's primary address (Japan only). + * The Kana variation of the individual's primary address (Japan only). */ address_kana?: Stripe.JapanAddressParam; /** - * The Kanji variation of the the individual's primary address (Japan only). + * The Kanji variation of the individual's primary address (Japan only). */ address_kanji?: Stripe.JapanAddressParam; @@ -273,7 +273,7 @@ declare module 'stripe' { first_name?: string; /** - * The Kana variation of the the individual's first name (Japan only). + * The Kana variation of the individual's first name (Japan only). */ first_name_kana?: string; From 28a34b28cd108208e39d9b7a10a7002260d08290 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 9 May 2024 14:08:31 +0000 Subject: [PATCH 11/14] Update generated code for v1017 --- OPENAPI_VERSION | 2 +- types/InvoiceItemsResource.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 8ac6a0165d..7c1244c9d7 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1015 \ No newline at end of file +v1017 \ No newline at end of file diff --git a/types/InvoiceItemsResource.d.ts b/types/InvoiceItemsResource.d.ts index 94c6a22a70..60879359d5 100644 --- a/types/InvoiceItemsResource.d.ts +++ b/types/InvoiceItemsResource.d.ts @@ -74,7 +74,7 @@ declare module 'stripe' { quantity?: number; /** - * The ID of a subscription to add this invoice item to. When left blank, the invoice item will be be added to the next upcoming scheduled invoice. When set, scheduled invoices for subscriptions other than the specified subscription will ignore the invoice item. Use this when you want to express that an invoice item has been accrued within the context of a particular subscription. + * The ID of a subscription to add this invoice item to. When left blank, the invoice item is added to the next upcoming scheduled invoice. When set, scheduled invoices for subscriptions other than the specified subscription will ignore the invoice item. Use this when you want to express that an invoice item has been accrued within the context of a particular subscription. */ subscription?: string; From 64b378890c82c39522c9a0a74aeb40b0976ebc03 Mon Sep 17 00:00:00 2001 From: prathmesh-stripe <165320323+prathmesh-stripe@users.noreply.github.com> Date: Thu, 9 May 2024 11:56:42 -0400 Subject: [PATCH 12/14] Removed deprecation message description (#2085) --- types/Issuing/AuthorizationsResource.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/Issuing/AuthorizationsResource.d.ts b/types/Issuing/AuthorizationsResource.d.ts index 27edbb5c20..9124a4247f 100644 --- a/types/Issuing/AuthorizationsResource.d.ts +++ b/types/Issuing/AuthorizationsResource.d.ts @@ -119,7 +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. + * @deprecated */ approve( id: string, @@ -134,7 +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. + * @deprecated */ decline( id: string, From 3fc3249b765d9b1a08404d5844f07d453836e026 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 9 May 2024 17:58:28 +0000 Subject: [PATCH 13/14] Update generated code for v1019 --- OPENAPI_VERSION | 2 +- types/Checkout/Sessions.d.ts | 2 +- types/Checkout/SessionsResource.d.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 7c1244c9d7..ff5c9a6c8f 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1017 \ No newline at end of file +v1019 \ No newline at end of file diff --git a/types/Checkout/Sessions.d.ts b/types/Checkout/Sessions.d.ts index 1f5cac0da0..a18fc37181 100644 --- a/types/Checkout/Sessions.d.ts +++ b/types/Checkout/Sessions.d.ts @@ -1573,7 +1573,7 @@ declare module 'stripe' { > | null; /** - * Enable customers to choose if they wish to save their payment method for future use. + * Enable customers to choose if they wish to save their payment method for future use. Disabled by default. */ payment_method_save: SavedPaymentMethodOptions.PaymentMethodSave | null; } diff --git a/types/Checkout/SessionsResource.d.ts b/types/Checkout/SessionsResource.d.ts index 010f7e8065..9a7dbd5d88 100644 --- a/types/Checkout/SessionsResource.d.ts +++ b/types/Checkout/SessionsResource.d.ts @@ -1864,7 +1864,7 @@ declare module 'stripe' { >; /** - * Enable customers to choose if they wish to save their payment method for future use. + * Enable customers to choose if they wish to save their payment method for future use. Disabled by default. */ payment_method_save?: SavedPaymentMethodOptions.PaymentMethodSave; } From 28129038a3b8c2a3f60a8dfb0579229257b3943d Mon Sep 17 00:00:00 2001 From: "stripe-openapi[bot]" <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 9 May 2024 12:11:24 -0700 Subject: [PATCH 14/14] Update generated code (#2080) * Update generated code for v1010 * Update generated code for v1011 * Update generated code for v1012 * Update generated code for v1013 * Update generated code for v1014 * Update generated code for v1015 * Update generated code for v1016 * Update generated code for v1017 * Update generated code for v1017 * Update generated code for v1019 --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> --- OPENAPI_VERSION | 2 +- .../TestHelpers/Treasury/OutboundPayments.ts | 4 ++ .../TestHelpers/Treasury/OutboundTransfers.ts | 5 ++ .../resources/generated_examples_test.spec.js | 2 +- types/Accounts.d.ts | 2 +- types/AccountsResource.d.ts | 12 ++-- types/Capabilities.d.ts | 4 +- types/Checkout/Sessions.d.ts | 2 +- types/Checkout/SessionsResource.d.ts | 2 +- types/ConfirmationTokens.d.ts | 7 ++ types/CreditNotesResource.d.ts | 2 +- types/EventTypes.d.ts | 36 ++++++++++ types/Events.d.ts | 2 + types/InvoiceItemsResource.d.ts | 2 +- types/InvoicesResource.d.ts | 21 ++++++ types/PaymentMethods.d.ts | 7 ++ types/SubscriptionsResource.d.ts | 7 ++ .../Treasury/OutboundPaymentsResource.d.ts | 67 ++++++++++++++++++- .../Treasury/OutboundTransfersResource.d.ts | 65 ++++++++++++++++++ types/TokensResource.d.ts | 6 +- types/Treasury/OutboundPayments.d.ts | 39 +++++++++++ types/Treasury/OutboundTransfers.d.ts | 39 +++++++++++ types/WebhookEndpointsResource.d.ts | 4 ++ 23 files changed, 319 insertions(+), 20 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index cb70129c35..ff5c9a6c8f 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1008 \ No newline at end of file +v1019 \ No newline at end of file diff --git a/src/resources/TestHelpers/Treasury/OutboundPayments.ts b/src/resources/TestHelpers/Treasury/OutboundPayments.ts index 91405f47bf..562887db3e 100644 --- a/src/resources/TestHelpers/Treasury/OutboundPayments.ts +++ b/src/resources/TestHelpers/Treasury/OutboundPayments.ts @@ -3,6 +3,10 @@ import {StripeResource} from '../../../StripeResource.js'; const stripeMethod = StripeResource.method; export const OutboundPayments = StripeResource.extend({ + update: stripeMethod({ + method: 'POST', + fullPath: '/v1/test_helpers/treasury/outbound_payments/{id}', + }), fail: stripeMethod({ method: 'POST', fullPath: '/v1/test_helpers/treasury/outbound_payments/{id}/fail', diff --git a/src/resources/TestHelpers/Treasury/OutboundTransfers.ts b/src/resources/TestHelpers/Treasury/OutboundTransfers.ts index c54db73f83..9423a48804 100644 --- a/src/resources/TestHelpers/Treasury/OutboundTransfers.ts +++ b/src/resources/TestHelpers/Treasury/OutboundTransfers.ts @@ -3,6 +3,11 @@ import {StripeResource} from '../../../StripeResource.js'; const stripeMethod = StripeResource.method; export const OutboundTransfers = StripeResource.extend({ + update: stripeMethod({ + method: 'POST', + fullPath: + '/v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}', + }), fail: stripeMethod({ method: 'POST', fullPath: diff --git a/test/resources/generated_examples_test.spec.js b/test/resources/generated_examples_test.spec.js index a52c8bf272..27603e71e8 100644 --- a/test/resources/generated_examples_test.spec.js +++ b/test/resources/generated_examples_test.spec.js @@ -176,7 +176,7 @@ describe('Generated tests', function() { method: 'GET', path: '/v1/accounts/acc_123', response: - '{"business_profile":{"annual_revenue":{"amount":1413853096,"currency":"currency","fiscal_year_end":"fiscal_year_end"},"estimated_worker_count":884794319,"mcc":"mcc","monthly_estimated_revenue":{"amount":1413853096,"currency":"currency"},"name":"name","product_description":"product_description","support_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"support_email":"support_email","support_phone":"support_phone","support_url":"support_url","url":"url"},"business_type":"government_entity","capabilities":{"acss_debit_payments":"inactive","affirm_payments":"pending","afterpay_clearpay_payments":"inactive","amazon_pay_payments":"inactive","au_becs_debit_payments":"active","bacs_debit_payments":"active","bancontact_payments":"inactive","bank_transfer_payments":"pending","blik_payments":"inactive","boleto_payments":"inactive","card_issuing":"active","card_payments":"active","cartes_bancaires_payments":"active","cashapp_payments":"active","eps_payments":"inactive","fpx_payments":"active","giropay_payments":"active","grabpay_payments":"pending","ideal_payments":"inactive","india_international_payments":"inactive","jcb_payments":"inactive","klarna_payments":"active","konbini_payments":"active","legacy_payments":"active","link_payments":"inactive","mobilepay_payments":"pending","oxxo_payments":"pending","p24_payments":"inactive","paynow_payments":"active","promptpay_payments":"active","revolut_pay_payments":"inactive","sepa_debit_payments":"inactive","sofort_payments":"active","swish_payments":"inactive","tax_reporting_us_1099_k":"inactive","tax_reporting_us_1099_misc":"pending","transfers":"inactive","treasury":"pending","us_bank_account_ach_payments":"pending","zip_payments":"pending"},"charges_enabled":true,"company":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"address_kana":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"address_kanji":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"directors_provided":true,"executives_provided":true,"export_license_id":"export_license_id","export_purpose_code":"export_purpose_code","name":"name","name_kana":"name_kana","name_kanji":"name_kanji","owners_provided":true,"ownership_declaration":{"date":"3076014","ip":"ip","user_agent":"user_agent"},"phone":"phone","structure":"single_member_llc","tax_id_provided":true,"tax_id_registrar":"tax_id_registrar","vat_id_provided":true,"verification":{"document":{"back":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"},"details":"details","details_code":"details_code","front":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"}}}},"controller":{"fees":{"payer":"application"},"is_controller":true,"losses":{"payments":"stripe"},"requirement_collection":"application","stripe_dashboard":{"type":"express"},"type":"account"},"country":"country","created":"1028554472","default_currency":"default_currency","details_submitted":true,"email":"email","external_accounts":null,"future_requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"current_deadline":"270965154","currently_due":["currently_due"],"disabled_reason":"disabled_reason","errors":[{"code":"invalid_url_website_incomplete_under_construction","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"id":"obj_123","individual":{"account":"account","additional_tos_acceptances":{"account":{"date":"3076014","ip":"ip","user_agent":"user_agent"}},"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"address_kana":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"address_kanji":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"created":"1028554472","dob":{"day":99228,"month":104080000,"year":3704893},"email":"email","first_name":"first_name","first_name_kana":"first_name_kana","first_name_kanji":"first_name_kanji","full_name_aliases":["full_name_aliases"],"future_requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"currently_due":["currently_due"],"errors":[{"code":"invalid_url_website_incomplete_under_construction","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"gender":"gender","id":"obj_123","id_number_provided":true,"id_number_secondary_provided":true,"last_name":"last_name","last_name_kana":"last_name_kana","last_name_kanji":"last_name_kanji","maiden_name":"maiden_name","metadata":{"undefined":"metadata"},"nationality":"nationality","object":"person","phone":"phone","political_exposure":"none","registered_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"relationship":{"director":true,"executive":true,"legal_guardian":true,"owner":true,"percent_ownership":760989685,"representative":true,"title":"title"},"requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"currently_due":["currently_due"],"errors":[{"code":"invalid_url_website_incomplete_under_construction","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"ssn_last_4_provided":true,"verification":{"additional_document":{"back":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"},"details":"details","details_code":"details_code","front":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"}},"details":"details","details_code":"details_code","document":{"back":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"},"details":"details","details_code":"details_code","front":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"}},"status":"status"}},"metadata":{"undefined":"metadata"},"object":"account","payouts_enabled":true,"requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"current_deadline":"270965154","currently_due":["currently_due"],"disabled_reason":"disabled_reason","errors":[{"code":"invalid_url_website_incomplete_under_construction","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"settings":{"bacs_debit_payments":{"display_name":"display_name","service_user_number":"service_user_number"},"branding":{"icon":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"},"logo":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"},"primary_color":"primary_color","secondary_color":"secondary_color"},"card_issuing":{"tos_acceptance":{"date":"3076014","ip":"ip","user_agent":"user_agent"}},"card_payments":{"decline_on":{"avs_failure":true,"cvc_failure":true},"statement_descriptor_prefix":"statement_descriptor_prefix","statement_descriptor_prefix_kana":"statement_descriptor_prefix_kana","statement_descriptor_prefix_kanji":"statement_descriptor_prefix_kanji"},"dashboard":{"display_name":"display_name","timezone":"timezone"},"invoices":{"default_account_tax_ids":[{"country":"country","created":"1028554472","customer":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"balance":339185956,"cash_balance":{"available":{"undefined":733902135},"customer":"customer","livemode":true,"object":"cash_balance","settings":{"reconciliation_mode":"manual","using_merchant_default":true}},"created":"1028554472","currency":"currency","default_source":null,"delinquent":true,"description":"description","discount":{"checkout_session":"checkout_session","coupon":null,"customer":null,"end":"100571","id":"obj_123","invoice":"invoice","invoice_item":"invoice_item","object":"discount","promotion_code":null,"start":"109757538","subscription":"subscription","subscription_item":"subscription_item"},"email":"email","id":"obj_123","invoice_credit_balance":{"undefined":1267696360},"invoice_prefix":"invoice_prefix","invoice_settings":{"custom_fields":[{"name":"name","value":"value"}],"default_payment_method":{"acss_debit":{"bank_name":"bank_name","fingerprint":"fingerprint","institution_number":"institution_number","last4":"last4","transit_number":"transit_number"},"affirm":{},"afterpay_clearpay":{},"alipay":{},"amazon_pay":{},"au_becs_debit":{"bsb_number":"bsb_number","fingerprint":"fingerprint","last4":"last4"},"bacs_debit":{"fingerprint":"fingerprint","last4":"last4","sort_code":"sort_code"},"bancontact":{},"billing_details":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","phone":"phone"},"blik":{},"boleto":{"tax_id":"tax_id"},"card":{"brand":"brand","checks":{"address_line1_check":"address_line1_check","address_postal_code_check":"address_postal_code_check","cvc_check":"cvc_check"},"country":"country","description":"description","display_brand":"display_brand","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"three_d_secure_usage":{"supported":true},"wallet":{"amex_express_checkout":{},"apple_pay":{},"dynamic_last4":"dynamic_last4","google_pay":{},"link":{},"masterpass":{"billing_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","shipping_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"}},"samsung_pay":{},"type":"link","visa_checkout":{"billing_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","shipping_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"}}}},"card_present":{"brand":"brand","cardholder_name":"cardholder_name","country":"country","description":"description","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"read_method":"magnetic_stripe_track2"},"cashapp":{"buyer_id":"buyer_id","cashtag":"cashtag"},"created":"1028554472","customer":null,"customer_balance":{},"eps":{"bank":"btv_vier_lander_bank"},"fpx":{"account_holder_type":"individual","bank":"bsn"},"giropay":{},"grabpay":{},"id":"obj_123","ideal":{"bank":"sns_bank","bic":"BUNQNL2A"},"interac_present":{"brand":"brand","cardholder_name":"cardholder_name","country":"country","description":"description","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2"},"klarna":{"dob":{"day":99228,"month":104080000,"year":3704893}},"konbini":{},"link":{"email":"email","persistent_token":"persistent_token"},"livemode":true,"metadata":{"undefined":"metadata"},"mobilepay":{},"object":"payment_method","oxxo":{},"p24":{"bank":"noble_pay"},"paynow":{},"paypal":{"payer_email":"payer_email","payer_id":"payer_id"},"pix":{},"promptpay":{},"radar_options":{"session":"session"},"revolut_pay":{},"sepa_debit":{"bank_code":"bank_code","branch_code":"branch_code","country":"country","fingerprint":"fingerprint","generated_from":{"charge":null,"setup_attempt":null},"last4":"last4"},"sofort":{"country":"country"},"swish":{},"type":"amazon_pay","us_bank_account":{"account_holder_type":"individual","account_type":"checking","bank_name":"bank_name","financial_connections_account":"financial_connections_account","fingerprint":"fingerprint","last4":"last4","networks":{"preferred":"preferred","supported":["ach"]},"routing_number":"routing_number","status_details":{"blocked":{"network_code":"R29","reason":"bank_account_unusable"}}},"wechat_pay":{},"zip":{}},"footer":"footer","rendering_options":{"amount_tax_display":"amount_tax_display"}},"livemode":true,"metadata":{"undefined":"metadata"},"name":"name","next_invoice_sequence":1356358751,"object":"customer","phone":"phone","preferred_locales":["preferred_locales"],"shipping":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"carrier":"carrier","name":"name","phone":"phone","tracking_number":"tracking_number"},"sources":null,"subscriptions":null,"tax":{"automatic_tax":"unrecognized_location","ip_address":"ip_address","location":{"country":"country","source":"ip_address","state":"state"}},"tax_exempt":"reverse","tax_ids":null,"test_clock":{"created":"1028554472","deletes_after":"73213179","frozen_time":"2033541876","id":"obj_123","livemode":true,"name":"name","object":"test_helpers.test_clock","status":"advancing"}},"id":"obj_123","livemode":true,"object":"tax_id","owner":{"account":{"business_profile":{"annual_revenue":{"amount":1413853096,"currency":"currency","fiscal_year_end":"fiscal_year_end"},"estimated_worker_count":884794319,"mcc":"mcc","monthly_estimated_revenue":{"amount":1413853096,"currency":"currency"},"name":"name","product_description":"product_description","support_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"support_email":"support_email","support_phone":"support_phone","support_url":"support_url","url":"url"},"business_type":"government_entity","capabilities":{"acss_debit_payments":"inactive","affirm_payments":"pending","afterpay_clearpay_payments":"inactive","amazon_pay_payments":"inactive","au_becs_debit_payments":"active","bacs_debit_payments":"active","bancontact_payments":"inactive","bank_transfer_payments":"pending","blik_payments":"inactive","boleto_payments":"inactive","card_issuing":"active","card_payments":"active","cartes_bancaires_payments":"active","cashapp_payments":"active","eps_payments":"inactive","fpx_payments":"active","giropay_payments":"active","grabpay_payments":"pending","ideal_payments":"inactive","india_international_payments":"inactive","jcb_payments":"inactive","klarna_payments":"active","konbini_payments":"active","legacy_payments":"active","link_payments":"inactive","mobilepay_payments":"pending","oxxo_payments":"pending","p24_payments":"inactive","paynow_payments":"active","promptpay_payments":"active","revolut_pay_payments":"inactive","sepa_debit_payments":"inactive","sofort_payments":"active","swish_payments":"inactive","tax_reporting_us_1099_k":"inactive","tax_reporting_us_1099_misc":"pending","transfers":"inactive","treasury":"pending","us_bank_account_ach_payments":"pending","zip_payments":"pending"},"charges_enabled":true,"company":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"address_kana":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"address_kanji":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"directors_provided":true,"executives_provided":true,"export_license_id":"export_license_id","export_purpose_code":"export_purpose_code","name":"name","name_kana":"name_kana","name_kanji":"name_kanji","owners_provided":true,"ownership_declaration":{"date":"3076014","ip":"ip","user_agent":"user_agent"},"phone":"phone","structure":"single_member_llc","tax_id_provided":true,"tax_id_registrar":"tax_id_registrar","vat_id_provided":true,"verification":{"document":{"back":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"},"details":"details","details_code":"details_code","front":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"}}}},"controller":{"fees":{"payer":"application"},"is_controller":true,"losses":{"payments":"stripe"},"requirement_collection":"application","stripe_dashboard":{"type":"express"},"type":"account"},"country":"country","created":"1028554472","default_currency":"default_currency","details_submitted":true,"email":"email","external_accounts":null,"future_requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"current_deadline":"270965154","currently_due":["currently_due"],"disabled_reason":"disabled_reason","errors":[{"code":"invalid_url_website_incomplete_under_construction","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"id":"obj_123","individual":{"account":"account","additional_tos_acceptances":{"account":{"date":"3076014","ip":"ip","user_agent":"user_agent"}},"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"address_kana":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"address_kanji":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"created":"1028554472","dob":{"day":99228,"month":104080000,"year":3704893},"email":"email","first_name":"first_name","first_name_kana":"first_name_kana","first_name_kanji":"first_name_kanji","full_name_aliases":["full_name_aliases"],"future_requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"currently_due":["currently_due"],"errors":[{"code":"invalid_url_website_incomplete_under_construction","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"gender":"gender","id":"obj_123","id_number_provided":true,"id_number_secondary_provided":true,"last_name":"last_name","last_name_kana":"last_name_kana","last_name_kanji":"last_name_kanji","maiden_name":"maiden_name","metadata":{"undefined":"metadata"},"nationality":"nationality","object":"person","phone":"phone","political_exposure":"none","registered_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"relationship":{"director":true,"executive":true,"legal_guardian":true,"owner":true,"percent_ownership":760989685,"representative":true,"title":"title"},"requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"currently_due":["currently_due"],"errors":[{"code":"invalid_url_website_incomplete_under_construction","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"ssn_last_4_provided":true,"verification":{"additional_document":{"back":null,"details":"details","details_code":"details_code","front":null},"details":"details","details_code":"details_code","document":{"back":null,"details":"details","details_code":"details_code","front":null},"status":"status"}},"metadata":{"undefined":"metadata"},"object":"account","payouts_enabled":true,"requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"current_deadline":"270965154","currently_due":["currently_due"],"disabled_reason":"disabled_reason","errors":[{"code":"invalid_url_website_incomplete_under_construction","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"settings":{"bacs_debit_payments":{"display_name":"display_name","service_user_number":"service_user_number"},"branding":{"icon":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"},"logo":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"},"primary_color":"primary_color","secondary_color":"secondary_color"},"card_issuing":{"tos_acceptance":{"date":"3076014","ip":"ip","user_agent":"user_agent"}},"card_payments":{"decline_on":{"avs_failure":true,"cvc_failure":true},"statement_descriptor_prefix":"statement_descriptor_prefix","statement_descriptor_prefix_kana":"statement_descriptor_prefix_kana","statement_descriptor_prefix_kanji":"statement_descriptor_prefix_kanji"},"dashboard":{"display_name":"display_name","timezone":"timezone"},"invoices":{"default_account_tax_ids":[{"country":"country","created":"1028554472","customer":null,"id":"obj_123","livemode":true,"object":"tax_id","owner":{"account":null,"application":null,"customer":null,"type":"customer"},"type":"cn_tin","value":"value","verification":{"status":"unverified","verified_address":"verified_address","verified_name":"verified_name"}}]},"payments":{"statement_descriptor":"statement_descriptor","statement_descriptor_kana":"statement_descriptor_kana","statement_descriptor_kanji":"statement_descriptor_kanji","statement_descriptor_prefix_kana":"statement_descriptor_prefix_kana","statement_descriptor_prefix_kanji":"statement_descriptor_prefix_kanji"},"payouts":{"debit_negative_balances":true,"schedule":{"delay_days":1647351405,"interval":"interval","monthly_anchor":1920305369,"weekly_anchor":"weekly_anchor"},"statement_descriptor":"statement_descriptor"},"sepa_debit_payments":{"creditor_id":"creditor_id"},"treasury":{"tos_acceptance":{"date":"3076014","ip":"ip","user_agent":"user_agent"}}},"tos_acceptance":{"date":"3076014","ip":"ip","service_agreement":"service_agreement","user_agent":"user_agent"},"type":"none"},"application":{"id":"obj_123","name":"name","object":"application"},"customer":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"balance":339185956,"cash_balance":{"available":{"undefined":733902135},"customer":"customer","livemode":true,"object":"cash_balance","settings":{"reconciliation_mode":"manual","using_merchant_default":true}},"created":"1028554472","currency":"currency","default_source":null,"delinquent":true,"description":"description","discount":{"checkout_session":"checkout_session","coupon":null,"customer":null,"end":"100571","id":"obj_123","invoice":"invoice","invoice_item":"invoice_item","object":"discount","promotion_code":null,"start":"109757538","subscription":"subscription","subscription_item":"subscription_item"},"email":"email","id":"obj_123","invoice_credit_balance":{"undefined":1267696360},"invoice_prefix":"invoice_prefix","invoice_settings":{"custom_fields":[{"name":"name","value":"value"}],"default_payment_method":{"acss_debit":{"bank_name":"bank_name","fingerprint":"fingerprint","institution_number":"institution_number","last4":"last4","transit_number":"transit_number"},"affirm":{},"afterpay_clearpay":{},"alipay":{},"amazon_pay":{},"au_becs_debit":{"bsb_number":"bsb_number","fingerprint":"fingerprint","last4":"last4"},"bacs_debit":{"fingerprint":"fingerprint","last4":"last4","sort_code":"sort_code"},"bancontact":{},"billing_details":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","phone":"phone"},"blik":{},"boleto":{"tax_id":"tax_id"},"card":{"brand":"brand","checks":{"address_line1_check":"address_line1_check","address_postal_code_check":"address_postal_code_check","cvc_check":"cvc_check"},"country":"country","description":"description","display_brand":"display_brand","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"three_d_secure_usage":{"supported":true},"wallet":{"amex_express_checkout":{},"apple_pay":{},"dynamic_last4":"dynamic_last4","google_pay":{},"link":{},"masterpass":{"billing_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","shipping_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"}},"samsung_pay":{},"type":"link","visa_checkout":{"billing_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","shipping_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"}}}},"card_present":{"brand":"brand","cardholder_name":"cardholder_name","country":"country","description":"description","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"read_method":"magnetic_stripe_track2"},"cashapp":{"buyer_id":"buyer_id","cashtag":"cashtag"},"created":"1028554472","customer":null,"customer_balance":{},"eps":{"bank":"btv_vier_lander_bank"},"fpx":{"account_holder_type":"individual","bank":"bsn"},"giropay":{},"grabpay":{},"id":"obj_123","ideal":{"bank":"sns_bank","bic":"BUNQNL2A"},"interac_present":{"brand":"brand","cardholder_name":"cardholder_name","country":"country","description":"description","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2"},"klarna":{"dob":{"day":99228,"month":104080000,"year":3704893}},"konbini":{},"link":{"email":"email","persistent_token":"persistent_token"},"livemode":true,"metadata":{"undefined":"metadata"},"mobilepay":{},"object":"payment_method","oxxo":{},"p24":{"bank":"noble_pay"},"paynow":{},"paypal":{"payer_email":"payer_email","payer_id":"payer_id"},"pix":{},"promptpay":{},"radar_options":{"session":"session"},"revolut_pay":{},"sepa_debit":{"bank_code":"bank_code","branch_code":"branch_code","country":"country","fingerprint":"fingerprint","generated_from":{"charge":null,"setup_attempt":null},"last4":"last4"},"sofort":{"country":"country"},"swish":{},"type":"amazon_pay","us_bank_account":{"account_holder_type":"individual","account_type":"checking","bank_name":"bank_name","financial_connections_account":"financial_connections_account","fingerprint":"fingerprint","last4":"last4","networks":{"preferred":"preferred","supported":["ach"]},"routing_number":"routing_number","status_details":{"blocked":{"network_code":"R29","reason":"bank_account_unusable"}}},"wechat_pay":{},"zip":{}},"footer":"footer","rendering_options":{"amount_tax_display":"amount_tax_display"}},"livemode":true,"metadata":{"undefined":"metadata"},"name":"name","next_invoice_sequence":1356358751,"object":"customer","phone":"phone","preferred_locales":["preferred_locales"],"shipping":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"carrier":"carrier","name":"name","phone":"phone","tracking_number":"tracking_number"},"sources":null,"subscriptions":null,"tax":{"automatic_tax":"unrecognized_location","ip_address":"ip_address","location":{"country":"country","source":"ip_address","state":"state"}},"tax_exempt":"reverse","tax_ids":null,"test_clock":{"created":"1028554472","deletes_after":"73213179","frozen_time":"2033541876","id":"obj_123","livemode":true,"name":"name","object":"test_helpers.test_clock","status":"advancing"}},"type":"customer"},"type":"cn_tin","value":"value","verification":{"status":"unverified","verified_address":"verified_address","verified_name":"verified_name"}}]},"payments":{"statement_descriptor":"statement_descriptor","statement_descriptor_kana":"statement_descriptor_kana","statement_descriptor_kanji":"statement_descriptor_kanji","statement_descriptor_prefix_kana":"statement_descriptor_prefix_kana","statement_descriptor_prefix_kanji":"statement_descriptor_prefix_kanji"},"payouts":{"debit_negative_balances":true,"schedule":{"delay_days":1647351405,"interval":"interval","monthly_anchor":1920305369,"weekly_anchor":"weekly_anchor"},"statement_descriptor":"statement_descriptor"},"sepa_debit_payments":{"creditor_id":"creditor_id"},"treasury":{"tos_acceptance":{"date":"3076014","ip":"ip","user_agent":"user_agent"}}},"tos_acceptance":{"date":"3076014","ip":"ip","service_agreement":"service_agreement","user_agent":"user_agent"},"type":"none"}', + '{"business_profile":{"annual_revenue":{"amount":1413853096,"currency":"currency","fiscal_year_end":"fiscal_year_end"},"estimated_worker_count":884794319,"mcc":"mcc","monthly_estimated_revenue":{"amount":1413853096,"currency":"currency"},"name":"name","product_description":"product_description","support_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"support_email":"support_email","support_phone":"support_phone","support_url":"support_url","url":"url"},"business_type":"government_entity","capabilities":{"acss_debit_payments":"inactive","affirm_payments":"pending","afterpay_clearpay_payments":"inactive","amazon_pay_payments":"inactive","au_becs_debit_payments":"active","bacs_debit_payments":"active","bancontact_payments":"inactive","bank_transfer_payments":"pending","blik_payments":"inactive","boleto_payments":"inactive","card_issuing":"active","card_payments":"active","cartes_bancaires_payments":"active","cashapp_payments":"active","eps_payments":"inactive","fpx_payments":"active","giropay_payments":"active","grabpay_payments":"pending","ideal_payments":"inactive","india_international_payments":"inactive","jcb_payments":"inactive","klarna_payments":"active","konbini_payments":"active","legacy_payments":"active","link_payments":"inactive","mobilepay_payments":"pending","oxxo_payments":"pending","p24_payments":"inactive","paynow_payments":"active","promptpay_payments":"active","revolut_pay_payments":"inactive","sepa_debit_payments":"inactive","sofort_payments":"active","swish_payments":"inactive","tax_reporting_us_1099_k":"inactive","tax_reporting_us_1099_misc":"pending","transfers":"inactive","treasury":"pending","us_bank_account_ach_payments":"pending","zip_payments":"pending"},"charges_enabled":true,"company":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"address_kana":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"address_kanji":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"directors_provided":true,"executives_provided":true,"export_license_id":"export_license_id","export_purpose_code":"export_purpose_code","name":"name","name_kana":"name_kana","name_kanji":"name_kanji","owners_provided":true,"ownership_declaration":{"date":"3076014","ip":"ip","user_agent":"user_agent"},"phone":"phone","structure":"single_member_llc","tax_id_provided":true,"tax_id_registrar":"tax_id_registrar","vat_id_provided":true,"verification":{"document":{"back":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"},"details":"details","details_code":"details_code","front":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"}}}},"controller":{"fees":{"payer":"application"},"is_controller":true,"losses":{"payments":"stripe"},"requirement_collection":"application","stripe_dashboard":{"type":"express"},"type":"account"},"country":"country","created":"1028554472","default_currency":"default_currency","details_submitted":true,"email":"email","external_accounts":null,"future_requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"current_deadline":"270965154","currently_due":["currently_due"],"disabled_reason":"disabled_reason","errors":[{"code":"invalid_url_website_incomplete_under_construction","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"id":"obj_123","individual":{"account":"account","additional_tos_acceptances":{"account":{"date":"3076014","ip":"ip","user_agent":"user_agent"}},"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"address_kana":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"address_kanji":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"created":"1028554472","dob":{"day":99228,"month":104080000,"year":3704893},"email":"email","first_name":"first_name","first_name_kana":"first_name_kana","first_name_kanji":"first_name_kanji","full_name_aliases":["full_name_aliases"],"future_requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"currently_due":["currently_due"],"errors":[{"code":"invalid_url_website_incomplete_under_construction","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"gender":"gender","id":"obj_123","id_number_provided":true,"id_number_secondary_provided":true,"last_name":"last_name","last_name_kana":"last_name_kana","last_name_kanji":"last_name_kanji","maiden_name":"maiden_name","metadata":{"undefined":"metadata"},"nationality":"nationality","object":"person","phone":"phone","political_exposure":"none","registered_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"relationship":{"director":true,"executive":true,"legal_guardian":true,"owner":true,"percent_ownership":760989685,"representative":true,"title":"title"},"requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"currently_due":["currently_due"],"errors":[{"code":"invalid_url_website_incomplete_under_construction","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"ssn_last_4_provided":true,"verification":{"additional_document":{"back":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"},"details":"details","details_code":"details_code","front":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"}},"details":"details","details_code":"details_code","document":{"back":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"},"details":"details","details_code":"details_code","front":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"}},"status":"status"}},"metadata":{"undefined":"metadata"},"object":"account","payouts_enabled":true,"requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"current_deadline":"270965154","currently_due":["currently_due"],"disabled_reason":"disabled_reason","errors":[{"code":"invalid_url_website_incomplete_under_construction","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"settings":{"bacs_debit_payments":{"display_name":"display_name","service_user_number":"service_user_number"},"branding":{"icon":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"},"logo":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"},"primary_color":"primary_color","secondary_color":"secondary_color"},"card_issuing":{"tos_acceptance":{"date":"3076014","ip":"ip","user_agent":"user_agent"}},"card_payments":{"decline_on":{"avs_failure":true,"cvc_failure":true},"statement_descriptor_prefix":"statement_descriptor_prefix","statement_descriptor_prefix_kana":"statement_descriptor_prefix_kana","statement_descriptor_prefix_kanji":"statement_descriptor_prefix_kanji"},"dashboard":{"display_name":"display_name","timezone":"timezone"},"invoices":{"default_account_tax_ids":[{"country":"country","created":"1028554472","customer":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"balance":339185956,"cash_balance":{"available":{"undefined":733902135},"customer":"customer","livemode":true,"object":"cash_balance","settings":{"reconciliation_mode":"manual","using_merchant_default":true}},"created":"1028554472","currency":"currency","default_source":null,"delinquent":true,"description":"description","discount":{"checkout_session":"checkout_session","coupon":null,"customer":null,"end":"100571","id":"obj_123","invoice":"invoice","invoice_item":"invoice_item","object":"discount","promotion_code":null,"start":"109757538","subscription":"subscription","subscription_item":"subscription_item"},"email":"email","id":"obj_123","invoice_credit_balance":{"undefined":1267696360},"invoice_prefix":"invoice_prefix","invoice_settings":{"custom_fields":[{"name":"name","value":"value"}],"default_payment_method":{"acss_debit":{"bank_name":"bank_name","fingerprint":"fingerprint","institution_number":"institution_number","last4":"last4","transit_number":"transit_number"},"affirm":{},"afterpay_clearpay":{},"alipay":{},"allow_redisplay":"unspecified","amazon_pay":{},"au_becs_debit":{"bsb_number":"bsb_number","fingerprint":"fingerprint","last4":"last4"},"bacs_debit":{"fingerprint":"fingerprint","last4":"last4","sort_code":"sort_code"},"bancontact":{},"billing_details":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","phone":"phone"},"blik":{},"boleto":{"tax_id":"tax_id"},"card":{"brand":"brand","checks":{"address_line1_check":"address_line1_check","address_postal_code_check":"address_postal_code_check","cvc_check":"cvc_check"},"country":"country","description":"description","display_brand":"display_brand","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"three_d_secure_usage":{"supported":true},"wallet":{"amex_express_checkout":{},"apple_pay":{},"dynamic_last4":"dynamic_last4","google_pay":{},"link":{},"masterpass":{"billing_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","shipping_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"}},"samsung_pay":{},"type":"link","visa_checkout":{"billing_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","shipping_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"}}}},"card_present":{"brand":"brand","cardholder_name":"cardholder_name","country":"country","description":"description","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"read_method":"magnetic_stripe_track2"},"cashapp":{"buyer_id":"buyer_id","cashtag":"cashtag"},"created":"1028554472","customer":null,"customer_balance":{},"eps":{"bank":"btv_vier_lander_bank"},"fpx":{"account_holder_type":"individual","bank":"bsn"},"giropay":{},"grabpay":{},"id":"obj_123","ideal":{"bank":"sns_bank","bic":"BUNQNL2A"},"interac_present":{"brand":"brand","cardholder_name":"cardholder_name","country":"country","description":"description","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2"},"klarna":{"dob":{"day":99228,"month":104080000,"year":3704893}},"konbini":{},"link":{"email":"email","persistent_token":"persistent_token"},"livemode":true,"metadata":{"undefined":"metadata"},"mobilepay":{},"object":"payment_method","oxxo":{},"p24":{"bank":"noble_pay"},"paynow":{},"paypal":{"payer_email":"payer_email","payer_id":"payer_id"},"pix":{},"promptpay":{},"radar_options":{"session":"session"},"revolut_pay":{},"sepa_debit":{"bank_code":"bank_code","branch_code":"branch_code","country":"country","fingerprint":"fingerprint","generated_from":{"charge":null,"setup_attempt":null},"last4":"last4"},"sofort":{"country":"country"},"swish":{},"type":"amazon_pay","us_bank_account":{"account_holder_type":"individual","account_type":"checking","bank_name":"bank_name","financial_connections_account":"financial_connections_account","fingerprint":"fingerprint","last4":"last4","networks":{"preferred":"preferred","supported":["ach"]},"routing_number":"routing_number","status_details":{"blocked":{"network_code":"R29","reason":"bank_account_unusable"}}},"wechat_pay":{},"zip":{}},"footer":"footer","rendering_options":{"amount_tax_display":"amount_tax_display"}},"livemode":true,"metadata":{"undefined":"metadata"},"name":"name","next_invoice_sequence":1356358751,"object":"customer","phone":"phone","preferred_locales":["preferred_locales"],"shipping":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"carrier":"carrier","name":"name","phone":"phone","tracking_number":"tracking_number"},"sources":null,"subscriptions":null,"tax":{"automatic_tax":"unrecognized_location","ip_address":"ip_address","location":{"country":"country","source":"ip_address","state":"state"}},"tax_exempt":"reverse","tax_ids":null,"test_clock":{"created":"1028554472","deletes_after":"73213179","frozen_time":"2033541876","id":"obj_123","livemode":true,"name":"name","object":"test_helpers.test_clock","status":"advancing"}},"id":"obj_123","livemode":true,"object":"tax_id","owner":{"account":{"business_profile":{"annual_revenue":{"amount":1413853096,"currency":"currency","fiscal_year_end":"fiscal_year_end"},"estimated_worker_count":884794319,"mcc":"mcc","monthly_estimated_revenue":{"amount":1413853096,"currency":"currency"},"name":"name","product_description":"product_description","support_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"support_email":"support_email","support_phone":"support_phone","support_url":"support_url","url":"url"},"business_type":"government_entity","capabilities":{"acss_debit_payments":"inactive","affirm_payments":"pending","afterpay_clearpay_payments":"inactive","amazon_pay_payments":"inactive","au_becs_debit_payments":"active","bacs_debit_payments":"active","bancontact_payments":"inactive","bank_transfer_payments":"pending","blik_payments":"inactive","boleto_payments":"inactive","card_issuing":"active","card_payments":"active","cartes_bancaires_payments":"active","cashapp_payments":"active","eps_payments":"inactive","fpx_payments":"active","giropay_payments":"active","grabpay_payments":"pending","ideal_payments":"inactive","india_international_payments":"inactive","jcb_payments":"inactive","klarna_payments":"active","konbini_payments":"active","legacy_payments":"active","link_payments":"inactive","mobilepay_payments":"pending","oxxo_payments":"pending","p24_payments":"inactive","paynow_payments":"active","promptpay_payments":"active","revolut_pay_payments":"inactive","sepa_debit_payments":"inactive","sofort_payments":"active","swish_payments":"inactive","tax_reporting_us_1099_k":"inactive","tax_reporting_us_1099_misc":"pending","transfers":"inactive","treasury":"pending","us_bank_account_ach_payments":"pending","zip_payments":"pending"},"charges_enabled":true,"company":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"address_kana":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"address_kanji":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"directors_provided":true,"executives_provided":true,"export_license_id":"export_license_id","export_purpose_code":"export_purpose_code","name":"name","name_kana":"name_kana","name_kanji":"name_kanji","owners_provided":true,"ownership_declaration":{"date":"3076014","ip":"ip","user_agent":"user_agent"},"phone":"phone","structure":"single_member_llc","tax_id_provided":true,"tax_id_registrar":"tax_id_registrar","vat_id_provided":true,"verification":{"document":{"back":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"},"details":"details","details_code":"details_code","front":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"}}}},"controller":{"fees":{"payer":"application"},"is_controller":true,"losses":{"payments":"stripe"},"requirement_collection":"application","stripe_dashboard":{"type":"express"},"type":"account"},"country":"country","created":"1028554472","default_currency":"default_currency","details_submitted":true,"email":"email","external_accounts":null,"future_requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"current_deadline":"270965154","currently_due":["currently_due"],"disabled_reason":"disabled_reason","errors":[{"code":"invalid_url_website_incomplete_under_construction","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"id":"obj_123","individual":{"account":"account","additional_tos_acceptances":{"account":{"date":"3076014","ip":"ip","user_agent":"user_agent"}},"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"address_kana":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"address_kanji":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"created":"1028554472","dob":{"day":99228,"month":104080000,"year":3704893},"email":"email","first_name":"first_name","first_name_kana":"first_name_kana","first_name_kanji":"first_name_kanji","full_name_aliases":["full_name_aliases"],"future_requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"currently_due":["currently_due"],"errors":[{"code":"invalid_url_website_incomplete_under_construction","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"gender":"gender","id":"obj_123","id_number_provided":true,"id_number_secondary_provided":true,"last_name":"last_name","last_name_kana":"last_name_kana","last_name_kanji":"last_name_kanji","maiden_name":"maiden_name","metadata":{"undefined":"metadata"},"nationality":"nationality","object":"person","phone":"phone","political_exposure":"none","registered_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"relationship":{"director":true,"executive":true,"legal_guardian":true,"owner":true,"percent_ownership":760989685,"representative":true,"title":"title"},"requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"currently_due":["currently_due"],"errors":[{"code":"invalid_url_website_incomplete_under_construction","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"ssn_last_4_provided":true,"verification":{"additional_document":{"back":null,"details":"details","details_code":"details_code","front":null},"details":"details","details_code":"details_code","document":{"back":null,"details":"details","details_code":"details_code","front":null},"status":"status"}},"metadata":{"undefined":"metadata"},"object":"account","payouts_enabled":true,"requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"current_deadline":"270965154","currently_due":["currently_due"],"disabled_reason":"disabled_reason","errors":[{"code":"invalid_url_website_incomplete_under_construction","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"settings":{"bacs_debit_payments":{"display_name":"display_name","service_user_number":"service_user_number"},"branding":{"icon":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"},"logo":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"},"primary_color":"primary_color","secondary_color":"secondary_color"},"card_issuing":{"tos_acceptance":{"date":"3076014","ip":"ip","user_agent":"user_agent"}},"card_payments":{"decline_on":{"avs_failure":true,"cvc_failure":true},"statement_descriptor_prefix":"statement_descriptor_prefix","statement_descriptor_prefix_kana":"statement_descriptor_prefix_kana","statement_descriptor_prefix_kanji":"statement_descriptor_prefix_kanji"},"dashboard":{"display_name":"display_name","timezone":"timezone"},"invoices":{"default_account_tax_ids":[{"country":"country","created":"1028554472","customer":null,"id":"obj_123","livemode":true,"object":"tax_id","owner":{"account":null,"application":null,"customer":null,"type":"customer"},"type":"cn_tin","value":"value","verification":{"status":"unverified","verified_address":"verified_address","verified_name":"verified_name"}}]},"payments":{"statement_descriptor":"statement_descriptor","statement_descriptor_kana":"statement_descriptor_kana","statement_descriptor_kanji":"statement_descriptor_kanji","statement_descriptor_prefix_kana":"statement_descriptor_prefix_kana","statement_descriptor_prefix_kanji":"statement_descriptor_prefix_kanji"},"payouts":{"debit_negative_balances":true,"schedule":{"delay_days":1647351405,"interval":"interval","monthly_anchor":1920305369,"weekly_anchor":"weekly_anchor"},"statement_descriptor":"statement_descriptor"},"sepa_debit_payments":{"creditor_id":"creditor_id"},"treasury":{"tos_acceptance":{"date":"3076014","ip":"ip","user_agent":"user_agent"}}},"tos_acceptance":{"date":"3076014","ip":"ip","service_agreement":"service_agreement","user_agent":"user_agent"},"type":"none"},"application":{"id":"obj_123","name":"name","object":"application"},"customer":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"balance":339185956,"cash_balance":{"available":{"undefined":733902135},"customer":"customer","livemode":true,"object":"cash_balance","settings":{"reconciliation_mode":"manual","using_merchant_default":true}},"created":"1028554472","currency":"currency","default_source":null,"delinquent":true,"description":"description","discount":{"checkout_session":"checkout_session","coupon":null,"customer":null,"end":"100571","id":"obj_123","invoice":"invoice","invoice_item":"invoice_item","object":"discount","promotion_code":null,"start":"109757538","subscription":"subscription","subscription_item":"subscription_item"},"email":"email","id":"obj_123","invoice_credit_balance":{"undefined":1267696360},"invoice_prefix":"invoice_prefix","invoice_settings":{"custom_fields":[{"name":"name","value":"value"}],"default_payment_method":{"acss_debit":{"bank_name":"bank_name","fingerprint":"fingerprint","institution_number":"institution_number","last4":"last4","transit_number":"transit_number"},"affirm":{},"afterpay_clearpay":{},"alipay":{},"allow_redisplay":"unspecified","amazon_pay":{},"au_becs_debit":{"bsb_number":"bsb_number","fingerprint":"fingerprint","last4":"last4"},"bacs_debit":{"fingerprint":"fingerprint","last4":"last4","sort_code":"sort_code"},"bancontact":{},"billing_details":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","phone":"phone"},"blik":{},"boleto":{"tax_id":"tax_id"},"card":{"brand":"brand","checks":{"address_line1_check":"address_line1_check","address_postal_code_check":"address_postal_code_check","cvc_check":"cvc_check"},"country":"country","description":"description","display_brand":"display_brand","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"three_d_secure_usage":{"supported":true},"wallet":{"amex_express_checkout":{},"apple_pay":{},"dynamic_last4":"dynamic_last4","google_pay":{},"link":{},"masterpass":{"billing_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","shipping_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"}},"samsung_pay":{},"type":"link","visa_checkout":{"billing_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","shipping_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"}}}},"card_present":{"brand":"brand","cardholder_name":"cardholder_name","country":"country","description":"description","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"read_method":"magnetic_stripe_track2"},"cashapp":{"buyer_id":"buyer_id","cashtag":"cashtag"},"created":"1028554472","customer":null,"customer_balance":{},"eps":{"bank":"btv_vier_lander_bank"},"fpx":{"account_holder_type":"individual","bank":"bsn"},"giropay":{},"grabpay":{},"id":"obj_123","ideal":{"bank":"sns_bank","bic":"BUNQNL2A"},"interac_present":{"brand":"brand","cardholder_name":"cardholder_name","country":"country","description":"description","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2"},"klarna":{"dob":{"day":99228,"month":104080000,"year":3704893}},"konbini":{},"link":{"email":"email","persistent_token":"persistent_token"},"livemode":true,"metadata":{"undefined":"metadata"},"mobilepay":{},"object":"payment_method","oxxo":{},"p24":{"bank":"noble_pay"},"paynow":{},"paypal":{"payer_email":"payer_email","payer_id":"payer_id"},"pix":{},"promptpay":{},"radar_options":{"session":"session"},"revolut_pay":{},"sepa_debit":{"bank_code":"bank_code","branch_code":"branch_code","country":"country","fingerprint":"fingerprint","generated_from":{"charge":null,"setup_attempt":null},"last4":"last4"},"sofort":{"country":"country"},"swish":{},"type":"amazon_pay","us_bank_account":{"account_holder_type":"individual","account_type":"checking","bank_name":"bank_name","financial_connections_account":"financial_connections_account","fingerprint":"fingerprint","last4":"last4","networks":{"preferred":"preferred","supported":["ach"]},"routing_number":"routing_number","status_details":{"blocked":{"network_code":"R29","reason":"bank_account_unusable"}}},"wechat_pay":{},"zip":{}},"footer":"footer","rendering_options":{"amount_tax_display":"amount_tax_display"}},"livemode":true,"metadata":{"undefined":"metadata"},"name":"name","next_invoice_sequence":1356358751,"object":"customer","phone":"phone","preferred_locales":["preferred_locales"],"shipping":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"carrier":"carrier","name":"name","phone":"phone","tracking_number":"tracking_number"},"sources":null,"subscriptions":null,"tax":{"automatic_tax":"unrecognized_location","ip_address":"ip_address","location":{"country":"country","source":"ip_address","state":"state"}},"tax_exempt":"reverse","tax_ids":null,"test_clock":{"created":"1028554472","deletes_after":"73213179","frozen_time":"2033541876","id":"obj_123","livemode":true,"name":"name","object":"test_helpers.test_clock","status":"advancing"}},"type":"customer"},"type":"cn_tin","value":"value","verification":{"status":"unverified","verified_address":"verified_address","verified_name":"verified_name"}}]},"payments":{"statement_descriptor":"statement_descriptor","statement_descriptor_kana":"statement_descriptor_kana","statement_descriptor_kanji":"statement_descriptor_kanji","statement_descriptor_prefix_kana":"statement_descriptor_prefix_kana","statement_descriptor_prefix_kanji":"statement_descriptor_prefix_kanji"},"payouts":{"debit_negative_balances":true,"schedule":{"delay_days":1647351405,"interval":"interval","monthly_anchor":1920305369,"weekly_anchor":"weekly_anchor"},"statement_descriptor":"statement_descriptor"},"sepa_debit_payments":{"creditor_id":"creditor_id"},"treasury":{"tos_acceptance":{"date":"3076014","ip":"ip","user_agent":"user_agent"}}},"tos_acceptance":{"date":"3076014","ip":"ip","service_agreement":"service_agreement","user_agent":"user_agent"},"type":"none"}', }, ]); const account = await stripe.accounts.retrieve('acc_123'); diff --git a/types/Accounts.d.ts b/types/Accounts.d.ts index 5419f1faa9..0140a161ea 100644 --- a/types/Accounts.d.ts +++ b/types/Accounts.d.ts @@ -69,7 +69,7 @@ declare module 'stripe' { deleted?: void; /** - * Whether account details have been submitted. Accounts with Stripe Dashboard access, which includes Standard accounts, cannot receive payouts before this is true. + * Whether account details have been submitted. Accounts with Stripe Dashboard access, which includes Standard accounts, cannot receive payouts before this is true. Accounts where this is false should be directed to [an onboarding flow](https://stripe.com/connect/onboarding) to finish submitting account details. */ details_submitted: boolean; diff --git a/types/AccountsResource.d.ts b/types/AccountsResource.d.ts index 6c8bbd29db..675b965b3c 100644 --- a/types/AccountsResource.d.ts +++ b/types/AccountsResource.d.ts @@ -1030,12 +1030,12 @@ declare module 'stripe' { address?: Stripe.AddressParam; /** - * The Kana variation of the the individual's primary address (Japan only). + * The Kana variation of the individual's primary address (Japan only). */ address_kana?: Stripe.JapanAddressParam; /** - * The Kanji variation of the the individual's primary address (Japan only). + * The Kanji variation of the individual's primary address (Japan only). */ address_kanji?: Stripe.JapanAddressParam; @@ -1055,7 +1055,7 @@ declare module 'stripe' { first_name?: string; /** - * The Kana variation of the the individual's first name (Japan only). + * The Kana variation of the individual's first name (Japan only). */ first_name_kana?: string; @@ -2488,12 +2488,12 @@ declare module 'stripe' { address?: Stripe.AddressParam; /** - * The Kana variation of the the individual's primary address (Japan only). + * The Kana variation of the individual's primary address (Japan only). */ address_kana?: Stripe.JapanAddressParam; /** - * The Kanji variation of the the individual's primary address (Japan only). + * The Kanji variation of the individual's primary address (Japan only). */ address_kanji?: Stripe.JapanAddressParam; @@ -2513,7 +2513,7 @@ declare module 'stripe' { first_name?: string; /** - * The Kana variation of the the individual's first name (Japan only). + * The Kana variation of the individual's first name (Japan only). */ first_name_kana?: string; diff --git a/types/Capabilities.d.ts b/types/Capabilities.d.ts index faeaabe795..7326033c31 100644 --- a/types/Capabilities.d.ts +++ b/types/Capabilities.d.ts @@ -226,13 +226,11 @@ declare module 'stripe' { currently_due: Array; /** - * If the capability is disabled, this string describes why. Can be `requirements.fields_needed`, `pending.onboarding`, `pending.review`, `rejected.fraud`, `rejected.other`, `platform_paused`, `action_required.requested_capabilities`, `rejected.inactivty`, or `rejected.unsupported_business`. + * If the capability is disabled, this string describes why. [Learn more about handling verification issues](https://stripe.com/docs/connect/handling-api-verification). Can be `requirements.fields_needed`, `pending.onboarding`, `pending.review`, `rejected.other`, `platform_paused`, `rejected.inactivty`, or `rejected.unsupported_business`. * * `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, such as in [Afterpay Clearpay's terms of service](https://stripe.com/afterpay-clearpay/legal#restricted-businesses). * * `rejected.inactivity` means that the capability has been paused for inactivity. This disabled reason currently only applies to the Issuing capability. See [Issuing: Managing Inactive Connects](https://support.stripe.com/questions/issuing-managing-inactive-connect-accounts) for more details. - * - * If you believe that a rejection is in error, please contact support at https://support.stripe.com/contact/ for assistance. */ disabled_reason: string | null; diff --git a/types/Checkout/Sessions.d.ts b/types/Checkout/Sessions.d.ts index 288c3a0f38..b9bbaa1278 100644 --- a/types/Checkout/Sessions.d.ts +++ b/types/Checkout/Sessions.d.ts @@ -1538,7 +1538,7 @@ declare module 'stripe' { > | null; /** - * Enable customers to choose if they wish to save their payment method for future use. + * Enable customers to choose if they wish to save their payment method for future use. Disabled by default. */ payment_method_save: SavedPaymentMethodOptions.PaymentMethodSave | null; } diff --git a/types/Checkout/SessionsResource.d.ts b/types/Checkout/SessionsResource.d.ts index f1c749cb46..c376f9c307 100644 --- a/types/Checkout/SessionsResource.d.ts +++ b/types/Checkout/SessionsResource.d.ts @@ -1832,7 +1832,7 @@ declare module 'stripe' { >; /** - * Enable customers to choose if they wish to save their payment method for future use. + * Enable customers to choose if they wish to save their payment method for future use. Disabled by default. */ payment_method_save?: SavedPaymentMethodOptions.PaymentMethodSave; } diff --git a/types/ConfirmationTokens.d.ts b/types/ConfirmationTokens.d.ts index 4f2b1704a4..c67e7d6b26 100644 --- a/types/ConfirmationTokens.d.ts +++ b/types/ConfirmationTokens.d.ts @@ -125,6 +125,11 @@ declare module 'stripe' { alipay?: PaymentMethodPreview.Alipay; + /** + * This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to “unspecified”. + */ + allow_redisplay?: PaymentMethodPreview.AllowRedisplay; + amazon_pay?: PaymentMethodPreview.AmazonPay; au_becs_debit?: PaymentMethodPreview.AuBecsDebit; @@ -233,6 +238,8 @@ declare module 'stripe' { interface Alipay {} + type AllowRedisplay = 'always' | 'limited' | 'unspecified'; + interface AmazonPay {} interface AuBecsDebit { diff --git a/types/CreditNotesResource.d.ts b/types/CreditNotesResource.d.ts index d606de28e6..3ef2b950cc 100644 --- a/types/CreditNotesResource.d.ts +++ b/types/CreditNotesResource.d.ts @@ -566,7 +566,7 @@ declare module 'stripe' { list(options?: RequestOptions): ApiListPromise; /** - * When retrieving a credit note, you'll get a lines property containing the the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items. + * When retrieving a credit note, you'll get a lines property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items. */ listLineItems( id: string, diff --git a/types/EventTypes.d.ts b/types/EventTypes.d.ts index f7c82c9687..8336cde77c 100644 --- a/types/EventTypes.d.ts +++ b/types/EventTypes.d.ts @@ -220,12 +220,14 @@ declare module 'stripe' { | TreasuryOutboundPaymentFailedEvent | TreasuryOutboundPaymentPostedEvent | TreasuryOutboundPaymentReturnedEvent + | TreasuryOutboundPaymentTrackingDetailsUpdatedEvent | TreasuryOutboundTransferCanceledEvent | TreasuryOutboundTransferCreatedEvent | TreasuryOutboundTransferExpectedArrivalDateUpdatedEvent | TreasuryOutboundTransferFailedEvent | TreasuryOutboundTransferPostedEvent | TreasuryOutboundTransferReturnedEvent + | TreasuryOutboundTransferTrackingDetailsUpdatedEvent | TreasuryReceivedCreditCreatedEvent | TreasuryReceivedCreditFailedEvent | TreasuryReceivedCreditSucceededEvent @@ -3711,6 +3713,23 @@ declare module 'stripe' { } } + /** + * Occurs whenever tracking_details on an OutboundPayment is updated. + */ + interface TreasuryOutboundPaymentTrackingDetailsUpdatedEvent + extends EventBase { + type: 'treasury.outbound_payment.tracking_details_updated'; + data: TreasuryOutboundPaymentTrackingDetailsUpdatedEvent.Data; + } + + namespace TreasuryOutboundPaymentTrackingDetailsUpdatedEvent { + interface Data extends Stripe.Event.Data { + object: Stripe.Treasury.OutboundPayment; + + previous_attributes?: Partial; + } + } + /** * Occurs whenever an OutboundTransfer is canceled. */ @@ -3808,6 +3827,23 @@ declare module 'stripe' { } } + /** + * Occurs whenever tracking_details on an OutboundTransfer is updated. + */ + interface TreasuryOutboundTransferTrackingDetailsUpdatedEvent + extends EventBase { + type: 'treasury.outbound_transfer.tracking_details_updated'; + data: TreasuryOutboundTransferTrackingDetailsUpdatedEvent.Data; + } + + namespace TreasuryOutboundTransferTrackingDetailsUpdatedEvent { + interface Data extends Stripe.Event.Data { + object: Stripe.Treasury.OutboundTransfer; + + previous_attributes?: Partial; + } + } + /** * Occurs whenever a received_credit is created as a result of funds being pushed by another account. */ diff --git a/types/Events.d.ts b/types/Events.d.ts index be04fa8864..db46e1c8b9 100644 --- a/types/Events.d.ts +++ b/types/Events.d.ts @@ -251,12 +251,14 @@ declare module 'stripe' { | 'treasury.outbound_payment.failed' | 'treasury.outbound_payment.posted' | 'treasury.outbound_payment.returned' + | 'treasury.outbound_payment.tracking_details_updated' | 'treasury.outbound_transfer.canceled' | 'treasury.outbound_transfer.created' | 'treasury.outbound_transfer.expected_arrival_date_updated' | 'treasury.outbound_transfer.failed' | 'treasury.outbound_transfer.posted' | 'treasury.outbound_transfer.returned' + | 'treasury.outbound_transfer.tracking_details_updated' | 'treasury.received_credit.created' | 'treasury.received_credit.failed' | 'treasury.received_credit.succeeded' diff --git a/types/InvoiceItemsResource.d.ts b/types/InvoiceItemsResource.d.ts index b2d5e5b277..1325bef18c 100644 --- a/types/InvoiceItemsResource.d.ts +++ b/types/InvoiceItemsResource.d.ts @@ -69,7 +69,7 @@ declare module 'stripe' { quantity?: number; /** - * The ID of a subscription to add this invoice item to. When left blank, the invoice item will be be added to the next upcoming scheduled invoice. When set, scheduled invoices for subscriptions other than the specified subscription will ignore the invoice item. Use this when you want to express that an invoice item has been accrued within the context of a particular subscription. + * The ID of a subscription to add this invoice item to. When left blank, the invoice item is added to the next upcoming scheduled invoice. When set, scheduled invoices for subscriptions other than the specified subscription will ignore the invoice item. Use this when you want to express that an invoice item has been accrued within the context of a particular subscription. */ subscription?: string; diff --git a/types/InvoicesResource.d.ts b/types/InvoicesResource.d.ts index e35455e582..d589b0e3b4 100644 --- a/types/InvoicesResource.d.ts +++ b/types/InvoicesResource.d.ts @@ -1475,6 +1475,11 @@ declare module 'stripe' { */ on_behalf_of?: Stripe.Emptyable; + /** + * Customizes the types of values to include when calculating the invoice. Defaults to `next` if unspecified. + */ + preview_mode?: InvoiceCreatePreviewParams.PreviewMode; + /** * The identifier of the schedule whose upcoming invoice you'd like to retrieve. Cannot be used with subscription or subscription fields. */ @@ -1848,6 +1853,8 @@ declare module 'stripe' { type Type = 'account' | 'self'; } + type PreviewMode = 'next' | 'recurring'; + interface ScheduleDetails { /** * Behavior of the subscription schedule and underlying subscription when it ends. Possible values are `release` or `cancel` with the default being `release`. `release` will end the subscription schedule and keep the underlying subscription running. `cancel` will end the subscription schedule and cancel the underlying subscription. @@ -2579,6 +2586,11 @@ declare module 'stripe' { */ on_behalf_of?: Stripe.Emptyable; + /** + * Customizes the types of values to include when calculating the invoice. Defaults to `next` if unspecified. + */ + preview_mode?: InvoiceListUpcomingLinesParams.PreviewMode; + /** * The identifier of the schedule whose upcoming invoice you'd like to retrieve. Cannot be used with subscription or subscription fields. */ @@ -3016,6 +3028,8 @@ declare module 'stripe' { type Type = 'account' | 'self'; } + type PreviewMode = 'next' | 'recurring'; + interface ScheduleDetails { /** * Behavior of the subscription schedule and underlying subscription when it ends. Possible values are `release` or `cancel` with the default being `release`. `release` will end the subscription schedule and keep the underlying subscription running. `cancel` will end the subscription schedule and cancel the underlying subscription. @@ -3918,6 +3932,11 @@ declare module 'stripe' { */ on_behalf_of?: Stripe.Emptyable; + /** + * Customizes the types of values to include when calculating the invoice. Defaults to `next` if unspecified. + */ + preview_mode?: InvoiceRetrieveUpcomingParams.PreviewMode; + /** * The identifier of the schedule whose upcoming invoice you'd like to retrieve. Cannot be used with subscription or subscription fields. */ @@ -4355,6 +4374,8 @@ declare module 'stripe' { type Type = 'account' | 'self'; } + type PreviewMode = 'next' | 'recurring'; + interface ScheduleDetails { /** * Behavior of the subscription schedule and underlying subscription when it ends. Possible values are `release` or `cancel` with the default being `release`. `release` will end the subscription schedule and keep the underlying subscription running. `cancel` will end the subscription schedule and cancel the underlying subscription. diff --git a/types/PaymentMethods.d.ts b/types/PaymentMethods.d.ts index 90ff71118a..0afa85093a 100644 --- a/types/PaymentMethods.d.ts +++ b/types/PaymentMethods.d.ts @@ -28,6 +28,11 @@ declare module 'stripe' { alipay?: PaymentMethod.Alipay; + /** + * This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to “unspecified”. + */ + allow_redisplay?: PaymentMethod.AllowRedisplay; + amazon_pay?: PaymentMethod.AmazonPay; au_becs_debit?: PaymentMethod.AuBecsDebit; @@ -161,6 +166,8 @@ declare module 'stripe' { interface Alipay {} + type AllowRedisplay = 'always' | 'limited' | 'unspecified'; + interface AmazonPay {} interface AuBecsDebit { diff --git a/types/SubscriptionsResource.d.ts b/types/SubscriptionsResource.d.ts index 44ab38f047..49c856d0da 100644 --- a/types/SubscriptionsResource.d.ts +++ b/types/SubscriptionsResource.d.ts @@ -157,6 +157,11 @@ declare module 'stripe' { SubscriptionCreateParams.PendingInvoiceItemInterval >; + /** + * How to handle a customer's pending invoice items if an invoice will be generated. Defaults to `include` if the parameter is omitted. + */ + pending_invoice_items_behavior?: SubscriptionCreateParams.PendingInvoiceItemsBehavior; + /** * The ID of a promotion code to apply to this subscription. A promotion code applied to a subscription will only affect invoices created for that particular subscription. This field has been deprecated and will be removed in a future API version. Use `discounts` instead. */ @@ -797,6 +802,8 @@ declare module 'stripe' { type Interval = 'day' | 'month' | 'week' | 'year'; } + type PendingInvoiceItemsBehavior = 'exclude' | 'include'; + type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none'; interface TransferData { diff --git a/types/TestHelpers/Treasury/OutboundPaymentsResource.d.ts b/types/TestHelpers/Treasury/OutboundPaymentsResource.d.ts index b12ec8dded..a4ba8c5293 100644 --- a/types/TestHelpers/Treasury/OutboundPaymentsResource.d.ts +++ b/types/TestHelpers/Treasury/OutboundPaymentsResource.d.ts @@ -3,6 +3,62 @@ declare module 'stripe' { namespace Stripe { namespace TestHelpers { + namespace Treasury { + interface OutboundPaymentUpdateParams { + /** + * Details about network-specific tracking information. + */ + tracking_details: OutboundPaymentUpdateParams.TrackingDetails; + + /** + * Specifies which fields in the response should be expanded. + */ + expand?: Array; + } + + namespace OutboundPaymentUpdateParams { + interface TrackingDetails { + /** + * ACH network tracking details. + */ + ach?: TrackingDetails.Ach; + + /** + * The US bank account network used to send funds. + */ + type: TrackingDetails.Type; + + /** + * US domestic wire network tracking details. + */ + us_domestic_wire?: TrackingDetails.UsDomesticWire; + } + + namespace TrackingDetails { + interface Ach { + /** + * ACH trace ID for funds sent over the `ach` network. + */ + trace_id: string; + } + + type Type = 'ach' | 'us_domestic_wire'; + + interface UsDomesticWire { + /** + * IMAD for funds sent over the `us_domestic_wire` network. + */ + imad?: string; + + /** + * OMAD for funds sent over the `us_domestic_wire` network. + */ + omad?: string; + } + } + } + } + namespace Treasury { interface OutboundPaymentFailParams { /** @@ -29,7 +85,7 @@ declare module 'stripe' { expand?: Array; /** - * Optional hash to set the the return code. + * Optional hash to set the return code. */ returned_details?: OutboundPaymentReturnOutboundPaymentParams.ReturnedDetails; } @@ -60,6 +116,15 @@ declare module 'stripe' { namespace Treasury { class OutboundPaymentsResource { + /** + * Updates a test mode created OutboundPayment with tracking details. The OutboundPayment must not be cancelable, and cannot be in the canceled or failed states. + */ + update( + id: string, + params: OutboundPaymentUpdateParams, + options?: RequestOptions + ): Promise>; + /** * Transitions a test mode created OutboundPayment to the failed status. The OutboundPayment must already be in the processing state. */ diff --git a/types/TestHelpers/Treasury/OutboundTransfersResource.d.ts b/types/TestHelpers/Treasury/OutboundTransfersResource.d.ts index cbce3d8b30..b5def604a7 100644 --- a/types/TestHelpers/Treasury/OutboundTransfersResource.d.ts +++ b/types/TestHelpers/Treasury/OutboundTransfersResource.d.ts @@ -3,6 +3,62 @@ declare module 'stripe' { namespace Stripe { namespace TestHelpers { + namespace Treasury { + interface OutboundTransferUpdateParams { + /** + * Details about network-specific tracking information. + */ + tracking_details: OutboundTransferUpdateParams.TrackingDetails; + + /** + * Specifies which fields in the response should be expanded. + */ + expand?: Array; + } + + namespace OutboundTransferUpdateParams { + interface TrackingDetails { + /** + * ACH network tracking details. + */ + ach?: TrackingDetails.Ach; + + /** + * The US bank account network used to send funds. + */ + type: TrackingDetails.Type; + + /** + * US domestic wire network tracking details. + */ + us_domestic_wire?: TrackingDetails.UsDomesticWire; + } + + namespace TrackingDetails { + interface Ach { + /** + * ACH trace ID for funds sent over the `ach` network. + */ + trace_id: string; + } + + type Type = 'ach' | 'us_domestic_wire'; + + interface UsDomesticWire { + /** + * IMAD for funds sent over the `us_domestic_wire` network. + */ + imad?: string; + + /** + * OMAD for funds sent over the `us_domestic_wire` network. + */ + omad?: string; + } + } + } + } + namespace Treasury { interface OutboundTransferFailParams { /** @@ -60,6 +116,15 @@ declare module 'stripe' { namespace Treasury { class OutboundTransfersResource { + /** + * Updates a test mode created OutboundTransfer with tracking details. The OutboundTransfer must not be cancelable, and cannot be in the canceled or failed states. + */ + update( + id: string, + params: OutboundTransferUpdateParams, + options?: RequestOptions + ): Promise>; + /** * Transitions a test mode created OutboundTransfer to the failed status. The OutboundTransfer must already be in the processing state. */ diff --git a/types/TokensResource.d.ts b/types/TokensResource.d.ts index a291144bc4..80532a366c 100644 --- a/types/TokensResource.d.ts +++ b/types/TokensResource.d.ts @@ -248,12 +248,12 @@ declare module 'stripe' { address?: Stripe.AddressParam; /** - * The Kana variation of the the individual's primary address (Japan only). + * The Kana variation of the individual's primary address (Japan only). */ address_kana?: Stripe.JapanAddressParam; /** - * The Kanji variation of the the individual's primary address (Japan only). + * The Kanji variation of the individual's primary address (Japan only). */ address_kanji?: Stripe.JapanAddressParam; @@ -273,7 +273,7 @@ declare module 'stripe' { first_name?: string; /** - * The Kana variation of the the individual's first name (Japan only). + * The Kana variation of the individual's first name (Japan only). */ first_name_kana?: string; diff --git a/types/Treasury/OutboundPayments.d.ts b/types/Treasury/OutboundPayments.d.ts index d7e7443678..cb253f8e1a 100644 --- a/types/Treasury/OutboundPayments.d.ts +++ b/types/Treasury/OutboundPayments.d.ts @@ -106,6 +106,11 @@ declare module 'stripe' { status_transitions: OutboundPayment.StatusTransitions; + /** + * Details about network-specific tracking information if available. + */ + tracking_details?: OutboundPayment.TrackingDetails | null; + /** * The Transaction associated with this object. */ @@ -272,6 +277,40 @@ declare module 'stripe' { */ returned_at: number | null; } + + interface TrackingDetails { + ach?: TrackingDetails.Ach; + + /** + * The US bank account network used to send funds. + */ + type: TrackingDetails.Type; + + us_domestic_wire?: TrackingDetails.UsDomesticWire; + } + + namespace TrackingDetails { + interface Ach { + /** + * ACH trace ID of the OutboundPayment for payments sent over the `ach` network. + */ + trace_id: string; + } + + type Type = 'ach' | 'us_domestic_wire'; + + interface UsDomesticWire { + /** + * IMAD of the OutboundPayment for payments sent over the `us_domestic_wire` network. + */ + imad: string; + + /** + * OMAD of the OutboundPayment for payments sent over the `us_domestic_wire` network. + */ + omad: string | null; + } + } } } } diff --git a/types/Treasury/OutboundTransfers.d.ts b/types/Treasury/OutboundTransfers.d.ts index a6f214bd2a..a96053f6b8 100644 --- a/types/Treasury/OutboundTransfers.d.ts +++ b/types/Treasury/OutboundTransfers.d.ts @@ -93,6 +93,11 @@ declare module 'stripe' { status_transitions: OutboundTransfer.StatusTransitions; + /** + * Details about network-specific tracking information if available. + */ + tracking_details?: OutboundTransfer.TrackingDetails | null; + /** * The Transaction associated with this object. */ @@ -231,6 +236,40 @@ declare module 'stripe' { */ returned_at: number | null; } + + interface TrackingDetails { + ach?: TrackingDetails.Ach; + + /** + * The US bank account network used to send funds. + */ + type: TrackingDetails.Type; + + us_domestic_wire?: TrackingDetails.UsDomesticWire; + } + + namespace TrackingDetails { + interface Ach { + /** + * ACH trace ID of the OutboundTransfer for transfers sent over the `ach` network. + */ + trace_id: string; + } + + type Type = 'ach' | 'us_domestic_wire'; + + interface UsDomesticWire { + /** + * IMAD of the OutboundTransfer for transfers sent over the `us_domestic_wire` network. + */ + imad: string; + + /** + * OMAD of the OutboundTransfer for transfers sent over the `us_domestic_wire` network. + */ + omad: string | null; + } + } } } } diff --git a/types/WebhookEndpointsResource.d.ts b/types/WebhookEndpointsResource.d.ts index 719fe0fd96..8d3e6adc1b 100644 --- a/types/WebhookEndpointsResource.d.ts +++ b/types/WebhookEndpointsResource.d.ts @@ -362,12 +362,14 @@ declare module 'stripe' { | 'treasury.outbound_payment.failed' | 'treasury.outbound_payment.posted' | 'treasury.outbound_payment.returned' + | 'treasury.outbound_payment.tracking_details_updated' | 'treasury.outbound_transfer.canceled' | 'treasury.outbound_transfer.created' | 'treasury.outbound_transfer.expected_arrival_date_updated' | 'treasury.outbound_transfer.failed' | 'treasury.outbound_transfer.posted' | 'treasury.outbound_transfer.returned' + | 'treasury.outbound_transfer.tracking_details_updated' | 'treasury.received_credit.created' | 'treasury.received_credit.failed' | 'treasury.received_credit.succeeded' @@ -633,12 +635,14 @@ declare module 'stripe' { | 'treasury.outbound_payment.failed' | 'treasury.outbound_payment.posted' | 'treasury.outbound_payment.returned' + | 'treasury.outbound_payment.tracking_details_updated' | 'treasury.outbound_transfer.canceled' | 'treasury.outbound_transfer.created' | 'treasury.outbound_transfer.expected_arrival_date_updated' | 'treasury.outbound_transfer.failed' | 'treasury.outbound_transfer.posted' | 'treasury.outbound_transfer.returned' + | 'treasury.outbound_transfer.tracking_details_updated' | 'treasury.received_credit.created' | 'treasury.received_credit.failed' | 'treasury.received_credit.succeeded'