From 768206df1b9d025853d5e34e6046beb502effdd9 Mon Sep 17 00:00:00 2001 From: David Brownman Date: Fri, 18 Oct 2024 11:41:33 -0700 Subject: [PATCH 1/3] Bump version to 17.2.1 --- CHANGELOG.md | 6 ++++++ VERSION | 2 +- package.json | 2 +- src/stripe.core.ts | 2 +- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3137c06300..54f2908b74 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,10 @@ # Changelog +## 17.2.1 - 2024-10-18 +* [#2210](https://github.com/stripe/stripe-node/pull/2210) update object tags for meter-related classes + + - fixes a bug where the `object` property of the `MeterEvent`, `MeterEventAdjustment`, and `MeterEventSession` didn't match the server. +* [#2208](https://github.com/stripe/stripe-node/pull/2208) Update signature verification docs link + ## 17.2.0 - 2024-10-09 * [#2201](https://github.com/stripe/stripe-node/pull/2201) Add fetchRelatedObject to V2 Events if needed * `fetchRelatedObject` is added to events retrieved using `stripe.v2.core.events` and can be used to easily fetch the Stripe object related to a retrieved event diff --git a/VERSION b/VERSION index 290a3f36db..7c95a07592 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -17.2.0 +17.2.1 diff --git a/package.json b/package.json index 3757676826..ca02bb0305 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "stripe", - "version": "17.2.0", + "version": "17.2.1", "description": "Stripe API wrapper", "keywords": [ "stripe", diff --git a/src/stripe.core.ts b/src/stripe.core.ts index 03da005082..ca7f9a4e88 100644 --- a/src/stripe.core.ts +++ b/src/stripe.core.ts @@ -59,7 +59,7 @@ export function createStripe( platformFunctions: PlatformFunctions, requestSender: RequestSenderFactory = defaultRequestSenderFactory ): typeof Stripe { - Stripe.PACKAGE_VERSION = '17.2.0'; + Stripe.PACKAGE_VERSION = '17.2.1'; Stripe.USER_AGENT = { bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', From 8698096f58e376c624fa156044a97e1857686c31 Mon Sep 17 00:00:00 2001 From: "stripe-openapi[bot]" <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Tue, 29 Oct 2024 10:07:45 -0700 Subject: [PATCH 2/3] Update generated code (#2204) * Update generated code for v1268 * Update generated code for v1279 * Update generated code for v1314 * Update generated code for v1317 * Update generated code for v1318 * Update generated code for v1318 * Update generated code for v1319 --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Co-authored-by: Prathmesh Ranaut --- OPENAPI_VERSION | 2 +- src/apiVersion.ts | 2 +- src/resources/TestHelpers/Issuing/Cards.ts | 4 + src/resources/V2/Core.ts | 2 + src/resources/V2/Core/EventDestinations.ts | 39 ++ .../resources/generated_examples_test.spec.js | 2 +- types/AccountSessions.d.ts | 35 +- types/AccountSessionsResource.d.ts | 35 +- types/Accounts.d.ts | 58 +- types/AccountsResource.d.ts | 174 +++++- types/Billing/CreditBalanceSummary.d.ts | 8 +- .../Billing/CreditBalanceSummaryResource.d.ts | 4 +- types/Billing/CreditBalanceTransactions.d.ts | 20 +- types/Billing/CreditGrants.d.ts | 19 +- types/Billing/CreditGrantsResource.d.ts | 12 +- types/Billing/Meters.d.ts | 2 + types/BillingPortal/Configurations.d.ts | 22 + .../BillingPortal/ConfigurationsResource.d.ts | 60 +- types/Charges.d.ts | 85 +++ types/Checkout/Sessions.d.ts | 83 ++- types/Checkout/SessionsResource.d.ts | 86 +++ types/ConfirmationTokens.d.ts | 75 +++ types/CreditNoteLineItems.d.ts | 3 + types/CreditNotes.d.ts | 3 + types/CreditNotesResource.d.ts | 6 +- types/CustomersResource.d.ts | 24 +- types/Disputes.d.ts | 152 +++++ types/DisputesResource.d.ts | 120 ++++ types/EventTypes.d.ts | 39 +- types/Events.d.ts | 2 + types/Forwarding/Requests.d.ts | 5 + types/Forwarding/RequestsResource.d.ts | 5 + types/InvoiceLineItems.d.ts | 3 + types/Invoices.d.ts | 16 +- types/InvoicesResource.d.ts | 47 +- types/Issuing/CardsResource.d.ts | 2 +- types/Mandates.d.ts | 8 + types/PaymentIntents.d.ts | 84 +++ types/PaymentIntentsResource.d.ts | 561 +++++++++++++++++- types/PaymentLinks.d.ts | 1 + types/PaymentLinksResource.d.ts | 2 + types/PaymentMethodConfigurations.d.ts | 36 ++ .../PaymentMethodConfigurationsResource.d.ts | 54 +- types/PaymentMethodDomains.d.ts | 28 + types/PaymentMethods.d.ts | 75 +++ types/PaymentMethodsResource.d.ts | 81 ++- types/Persons.d.ts | 2 +- types/Refunds.d.ts | 9 +- types/SetupAttempts.d.ts | 8 + types/SetupIntentsResource.d.ts | 177 +++++- types/Subscriptions.d.ts | 5 + types/SubscriptionsResource.d.ts | 14 +- types/Tax/CalculationLineItems.d.ts | 1 + types/Tax/Calculations.d.ts | 34 +- types/Tax/CalculationsResource.d.ts | 8 +- types/Tax/Registrations.d.ts | 82 +++ types/Tax/RegistrationsResource.d.ts | 109 ++++ types/Tax/Transactions.d.ts | 9 +- types/TaxIds.d.ts | 8 +- types/TaxIdsResource.d.ts | 8 +- types/TaxRates.d.ts | 25 + types/TaxRatesResource.d.ts | 2 + types/Terminal/Configurations.d.ts | 19 + types/Terminal/ConfigurationsResource.d.ts | 44 ++ .../ConfirmationTokensResource.d.ts | 59 +- types/TestHelpers/Issuing/CardsResource.d.ts | 22 + types/TokensResource.d.ts | 4 +- types/Treasury/FinancialAccounts.d.ts | 2 +- types/UsageRecordSummaries.d.ts | 2 +- types/V2/Core/EventDestinationsResource.d.ts | 281 +++++++++ types/V2/Core/EventsResource.d.ts | 2 +- types/V2/CoreResource.d.ts | 1 + types/V2/EventDestinations.d.ts | 164 +++++ types/WebhookEndpointsResource.d.ts | 7 +- types/index.d.ts | 2 + 75 files changed, 3198 insertions(+), 98 deletions(-) create mode 100644 src/resources/V2/Core/EventDestinations.ts create mode 100644 types/V2/Core/EventDestinationsResource.d.ts create mode 100644 types/V2/EventDestinations.d.ts diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 8f166ae2e0..c626f7dd81 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1268 \ No newline at end of file +v1319 \ No newline at end of file diff --git a/src/apiVersion.ts b/src/apiVersion.ts index c59d0bde0f..3ca0bbd17f 100644 --- a/src/apiVersion.ts +++ b/src/apiVersion.ts @@ -1,3 +1,3 @@ // File generated from our OpenAPI spec -export const ApiVersion = '2024-09-30.acacia'; +export const ApiVersion = '2024-10-28.acacia'; diff --git a/src/resources/TestHelpers/Issuing/Cards.ts b/src/resources/TestHelpers/Issuing/Cards.ts index a7393836fc..e0e5cdb778 100644 --- a/src/resources/TestHelpers/Issuing/Cards.ts +++ b/src/resources/TestHelpers/Issuing/Cards.ts @@ -19,4 +19,8 @@ export const Cards = StripeResource.extend({ method: 'POST', fullPath: '/v1/test_helpers/issuing/cards/{card}/shipping/ship', }), + submitCard: stripeMethod({ + method: 'POST', + fullPath: '/v1/test_helpers/issuing/cards/{card}/shipping/submit', + }), }); diff --git a/src/resources/V2/Core.ts b/src/resources/V2/Core.ts index 4f13f0cc90..10210e8ed1 100644 --- a/src/resources/V2/Core.ts +++ b/src/resources/V2/Core.ts @@ -1,10 +1,12 @@ // File generated from our OpenAPI spec import {StripeResource} from '../../StripeResource.js'; +import {EventDestinations} from './Core/EventDestinations.js'; import {Events} from './Core/Events.js'; export const Core = StripeResource.extend({ constructor: function(...args: any) { StripeResource.apply(this, args); + this.eventDestinations = new EventDestinations(...args); this.events = new Events(...args); }, }); diff --git a/src/resources/V2/Core/EventDestinations.ts b/src/resources/V2/Core/EventDestinations.ts new file mode 100644 index 0000000000..b857691e05 --- /dev/null +++ b/src/resources/V2/Core/EventDestinations.ts @@ -0,0 +1,39 @@ +// File generated from our OpenAPI spec + +import {StripeResource} from '../../../StripeResource.js'; +const stripeMethod = StripeResource.method; +export const EventDestinations = StripeResource.extend({ + create: stripeMethod({ + method: 'POST', + fullPath: '/v2/core/event_destinations', + }), + retrieve: stripeMethod({ + method: 'GET', + fullPath: '/v2/core/event_destinations/{id}', + }), + update: stripeMethod({ + method: 'POST', + fullPath: '/v2/core/event_destinations/{id}', + }), + list: stripeMethod({ + method: 'GET', + fullPath: '/v2/core/event_destinations', + methodType: 'list', + }), + del: stripeMethod({ + method: 'DELETE', + fullPath: '/v2/core/event_destinations/{id}', + }), + disable: stripeMethod({ + method: 'POST', + fullPath: '/v2/core/event_destinations/{id}/disable', + }), + enable: stripeMethod({ + method: 'POST', + fullPath: '/v2/core/event_destinations/{id}/enable', + }), + ping: stripeMethod({ + method: 'POST', + fullPath: '/v2/core/event_destinations/{id}/ping', + }), +}); diff --git a/test/resources/generated_examples_test.spec.js b/test/resources/generated_examples_test.spec.js index 06c429bc1b..721cc88a0c 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","gb_bank_transfer_payments":"pending","giropay_payments":"active","grabpay_payments":"pending","ideal_payments":"inactive","india_international_payments":"inactive","jcb_payments":"inactive","jp_bank_transfer_payments":"pending","klarna_payments":"active","konbini_payments":"active","legacy_payments":"active","link_payments":"inactive","mobilepay_payments":"pending","multibanco_payments":"inactive","mx_bank_transfer_payments":"pending","oxxo_payments":"pending","p24_payments":"inactive","paynow_payments":"active","promptpay_payments":"active","revolut_pay_payments":"inactive","sepa_bank_transfer_payments":"pending","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","us_bank_transfer_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":"business_icon","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":"business_icon","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":"verification_failed_residential_address","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":"verification_failed_residential_address","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":"verification_failed_residential_address","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":"business_icon","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":"business_icon","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":"business_icon","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":"business_icon","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":"verification_failed_residential_address","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":"business_icon","size":3530753,"title":"title","type":"type","url":"url"},"logo":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"business_icon","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","generated_from":{"charge":"charge","payment_method_details":{"card_present":{"amount_authorized":1406151710,"brand":"brand","brand_product":"brand_product","capture_before":"2079401320","cardholder_name":"cardholder_name","country":"country","description":"description","emv_auth_data":"emv_auth_data","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","generated_card":"generated_card","iin":"iin","incremental_authorization_supported":true,"issuer":"issuer","last4":"last4","network":"network","network_transaction_id":"network_transaction_id","offline":{"stored_at":"1692436047","type":"deferred"},"overcapture_supported":true,"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2","receipt":{"account_type":"checking","application_cryptogram":"application_cryptogram","application_preferred_name":"application_preferred_name","authorization_code":"authorization_code","authorization_response_code":"authorization_response_code","cardholder_verification_method":"cardholder_verification_method","dedicated_file_name":"dedicated_file_name","terminal_verification_results":"terminal_verification_results","transaction_status_information":"transaction_status_information"},"wallet":{"type":"samsung_pay"}},"type":"type"},"setup_attempt":null},"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","brand_product":"brand_product","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"},"offline":{"stored_at":"1692436047","type":"deferred"},"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2","wallet":{"type":"samsung_pay"}},"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":{"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":{},"twint":{},"type":"cashapp","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","template":"template"}},"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","status_details":{"advancing":{"target_frozen_time":"833971362"}}}},"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","gb_bank_transfer_payments":"pending","giropay_payments":"active","grabpay_payments":"pending","ideal_payments":"inactive","india_international_payments":"inactive","jcb_payments":"inactive","jp_bank_transfer_payments":"pending","klarna_payments":"active","konbini_payments":"active","legacy_payments":"active","link_payments":"inactive","mobilepay_payments":"pending","multibanco_payments":"inactive","mx_bank_transfer_payments":"pending","oxxo_payments":"pending","p24_payments":"inactive","paynow_payments":"active","promptpay_payments":"active","revolut_pay_payments":"inactive","sepa_bank_transfer_payments":"pending","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","us_bank_transfer_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":"business_icon","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":"business_icon","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":"verification_failed_residential_address","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":"verification_failed_residential_address","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":"verification_failed_residential_address","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":"verification_failed_residential_address","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":"business_icon","size":3530753,"title":"title","type":"type","url":"url"},"logo":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"business_icon","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":"sa_vat","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","generated_from":{"charge":"charge","payment_method_details":{"card_present":{"amount_authorized":1406151710,"brand":"brand","brand_product":"brand_product","capture_before":"2079401320","cardholder_name":"cardholder_name","country":"country","description":"description","emv_auth_data":"emv_auth_data","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","generated_card":"generated_card","iin":"iin","incremental_authorization_supported":true,"issuer":"issuer","last4":"last4","network":"network","network_transaction_id":"network_transaction_id","offline":{"stored_at":"1692436047","type":"deferred"},"overcapture_supported":true,"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2","receipt":{"account_type":"checking","application_cryptogram":"application_cryptogram","application_preferred_name":"application_preferred_name","authorization_code":"authorization_code","authorization_response_code":"authorization_response_code","cardholder_verification_method":"cardholder_verification_method","dedicated_file_name":"dedicated_file_name","terminal_verification_results":"terminal_verification_results","transaction_status_information":"transaction_status_information"},"wallet":{"type":"samsung_pay"}},"type":"type"},"setup_attempt":null},"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","brand_product":"brand_product","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"},"offline":{"stored_at":"1692436047","type":"deferred"},"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2","wallet":{"type":"samsung_pay"}},"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":{"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":{},"twint":{},"type":"cashapp","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","template":"template"}},"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","status_details":{"advancing":{"target_frozen_time":"833971362"}}}},"type":"customer"},"type":"sa_vat","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","alma_payments":"pending","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","gb_bank_transfer_payments":"pending","giropay_payments":"active","grabpay_payments":"pending","ideal_payments":"inactive","india_international_payments":"inactive","jcb_payments":"inactive","jp_bank_transfer_payments":"pending","kakao_pay_payments":"active","klarna_payments":"active","konbini_payments":"active","kr_card_payments":"inactive","legacy_payments":"active","link_payments":"inactive","mobilepay_payments":"pending","multibanco_payments":"inactive","mx_bank_transfer_payments":"pending","naver_pay_payments":"active","oxxo_payments":"pending","p24_payments":"inactive","payco_payments":"inactive","paynow_payments":"active","promptpay_payments":"active","revolut_pay_payments":"inactive","samsung_pay_payments":"pending","sepa_bank_transfer_payments":"pending","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","us_bank_transfer_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":"business_icon","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":"business_icon","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":"verification_failed_residential_address","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"groups":{"payments_pricing":"payments_pricing"},"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":"verification_failed_residential_address","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":"verification_failed_residential_address","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":"business_icon","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":"business_icon","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":"business_icon","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":"business_icon","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":"verification_failed_residential_address","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":"business_icon","size":3530753,"title":"title","type":"type","url":"url"},"logo":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"business_icon","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","alma":{},"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","generated_from":{"charge":"charge","payment_method_details":{"card_present":{"amount_authorized":1406151710,"brand":"brand","brand_product":"brand_product","capture_before":"2079401320","cardholder_name":"cardholder_name","country":"country","description":"description","emv_auth_data":"emv_auth_data","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","generated_card":"generated_card","iin":"iin","incremental_authorization_supported":true,"issuer":"issuer","last4":"last4","network":"network","network_transaction_id":"network_transaction_id","offline":{"stored_at":"1692436047","type":"deferred"},"overcapture_supported":true,"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2","receipt":{"account_type":"checking","application_cryptogram":"application_cryptogram","application_preferred_name":"application_preferred_name","authorization_code":"authorization_code","authorization_response_code":"authorization_response_code","cardholder_verification_method":"cardholder_verification_method","dedicated_file_name":"dedicated_file_name","terminal_verification_results":"terminal_verification_results","transaction_status_information":"transaction_status_information"},"wallet":{"type":"samsung_pay"}},"type":"type"},"setup_attempt":null},"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","brand_product":"brand_product","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"},"offline":{"stored_at":"1692436047","type":"deferred"},"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2","wallet":{"type":"samsung_pay"}},"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"},"kakao_pay":{},"klarna":{"dob":{"day":99228,"month":104080000,"year":3704893}},"konbini":{},"kr_card":{"brand":"lotte","last4":"last4"},"link":{"email":"email","persistent_token":"persistent_token"},"livemode":true,"metadata":{"undefined":"metadata"},"mobilepay":{},"multibanco":{},"naver_pay":{"funding":"points"},"object":"payment_method","oxxo":{},"p24":{"bank":"noble_pay"},"payco":{},"paynow":{},"paypal":{"payer_email":"payer_email","payer_id":"payer_id"},"pix":{},"promptpay":{},"radar_options":{"session":"session"},"revolut_pay":{},"samsung_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_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","template":"template"}},"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","status_details":{"advancing":{"target_frozen_time":"833971362"}}}},"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","alma_payments":"pending","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","gb_bank_transfer_payments":"pending","giropay_payments":"active","grabpay_payments":"pending","ideal_payments":"inactive","india_international_payments":"inactive","jcb_payments":"inactive","jp_bank_transfer_payments":"pending","kakao_pay_payments":"active","klarna_payments":"active","konbini_payments":"active","kr_card_payments":"inactive","legacy_payments":"active","link_payments":"inactive","mobilepay_payments":"pending","multibanco_payments":"inactive","mx_bank_transfer_payments":"pending","naver_pay_payments":"active","oxxo_payments":"pending","p24_payments":"inactive","payco_payments":"inactive","paynow_payments":"active","promptpay_payments":"active","revolut_pay_payments":"inactive","samsung_pay_payments":"pending","sepa_bank_transfer_payments":"pending","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","us_bank_transfer_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":"business_icon","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":"business_icon","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":"verification_failed_residential_address","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"groups":{"payments_pricing":"payments_pricing"},"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":"verification_failed_residential_address","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":"verification_failed_residential_address","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":"verification_failed_residential_address","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":"business_icon","size":3530753,"title":"title","type":"type","url":"url"},"logo":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"business_icon","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":"es_cif","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","alma":{},"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","generated_from":{"charge":"charge","payment_method_details":{"card_present":{"amount_authorized":1406151710,"brand":"brand","brand_product":"brand_product","capture_before":"2079401320","cardholder_name":"cardholder_name","country":"country","description":"description","emv_auth_data":"emv_auth_data","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","generated_card":"generated_card","iin":"iin","incremental_authorization_supported":true,"issuer":"issuer","last4":"last4","network":"network","network_transaction_id":"network_transaction_id","offline":{"stored_at":"1692436047","type":"deferred"},"overcapture_supported":true,"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2","receipt":{"account_type":"checking","application_cryptogram":"application_cryptogram","application_preferred_name":"application_preferred_name","authorization_code":"authorization_code","authorization_response_code":"authorization_response_code","cardholder_verification_method":"cardholder_verification_method","dedicated_file_name":"dedicated_file_name","terminal_verification_results":"terminal_verification_results","transaction_status_information":"transaction_status_information"},"wallet":{"type":"samsung_pay"}},"type":"type"},"setup_attempt":null},"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","brand_product":"brand_product","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"},"offline":{"stored_at":"1692436047","type":"deferred"},"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2","wallet":{"type":"samsung_pay"}},"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"},"kakao_pay":{},"klarna":{"dob":{"day":99228,"month":104080000,"year":3704893}},"konbini":{},"kr_card":{"brand":"lotte","last4":"last4"},"link":{"email":"email","persistent_token":"persistent_token"},"livemode":true,"metadata":{"undefined":"metadata"},"mobilepay":{},"multibanco":{},"naver_pay":{"funding":"points"},"object":"payment_method","oxxo":{},"p24":{"bank":"noble_pay"},"payco":{},"paynow":{},"paypal":{"payer_email":"payer_email","payer_id":"payer_id"},"pix":{},"promptpay":{},"radar_options":{"session":"session"},"revolut_pay":{},"samsung_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_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","template":"template"}},"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","status_details":{"advancing":{"target_frozen_time":"833971362"}}}},"type":"customer"},"type":"es_cif","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/AccountSessions.d.ts b/types/AccountSessions.d.ts index 175deba494..1bfbed7248 100644 --- a/types/AccountSessions.d.ts +++ b/types/AccountSessions.d.ts @@ -82,7 +82,12 @@ declare module 'stripe' { namespace AccountManagement { interface Features { /** - * Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements. + * Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise. + */ + disable_stripe_user_authentication?: boolean; + + /** + * Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`. */ external_account_collection: boolean; } @@ -100,7 +105,12 @@ declare module 'stripe' { namespace AccountOnboarding { interface Features { /** - * Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements. + * Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise. + */ + disable_stripe_user_authentication?: boolean; + + /** + * Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`. */ external_account_collection: boolean; } @@ -117,13 +127,18 @@ declare module 'stripe' { namespace Balances { interface Features { + /** + * Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise. + */ + disable_stripe_user_authentication?: boolean; + /** * Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise. */ edit_payout_schedule: boolean; /** - * Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements. + * Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`. */ external_account_collection: boolean; @@ -164,7 +179,12 @@ declare module 'stripe' { namespace NotificationBanner { interface Features { /** - * Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements. + * Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise. + */ + disable_stripe_user_authentication?: boolean; + + /** + * Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`. */ external_account_collection: boolean; } @@ -247,13 +267,18 @@ declare module 'stripe' { namespace Payouts { interface Features { + /** + * Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise. + */ + disable_stripe_user_authentication?: boolean; + /** * Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise. */ edit_payout_schedule: boolean; /** - * Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements. + * Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`. */ external_account_collection: boolean; diff --git a/types/AccountSessionsResource.d.ts b/types/AccountSessionsResource.d.ts index fa571cb00d..7ade440453 100644 --- a/types/AccountSessionsResource.d.ts +++ b/types/AccountSessionsResource.d.ts @@ -93,7 +93,12 @@ declare module 'stripe' { namespace AccountManagement { interface Features { /** - * Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements. + * Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise. + */ + disable_stripe_user_authentication?: boolean; + + /** + * Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`. */ external_account_collection?: boolean; } @@ -114,7 +119,12 @@ declare module 'stripe' { namespace AccountOnboarding { interface Features { /** - * Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements. + * Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise. + */ + disable_stripe_user_authentication?: boolean; + + /** + * Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`. */ external_account_collection?: boolean; } @@ -134,13 +144,18 @@ declare module 'stripe' { namespace Balances { interface Features { + /** + * Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise. + */ + disable_stripe_user_authentication?: boolean; + /** * Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise. */ edit_payout_schedule?: boolean; /** - * Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements. + * Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`. */ external_account_collection?: boolean; @@ -187,7 +202,12 @@ declare module 'stripe' { namespace NotificationBanner { interface Features { /** - * Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements. + * Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise. + */ + disable_stripe_user_authentication?: boolean; + + /** + * Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`. */ external_account_collection?: boolean; } @@ -279,13 +299,18 @@ declare module 'stripe' { namespace Payouts { interface Features { + /** + * Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise. + */ + disable_stripe_user_authentication?: boolean; + /** * Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise. */ edit_payout_schedule?: boolean; /** - * Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements. + * Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`. */ external_account_collection?: boolean; diff --git a/types/Accounts.d.ts b/types/Accounts.d.ts index 84b7914a1a..445e6cb1db 100644 --- a/types/Accounts.d.ts +++ b/types/Accounts.d.ts @@ -40,7 +40,7 @@ declare module 'stripe' { capabilities?: Account.Capabilities; /** - * Whether the account can create live charges. + * Whether the account can process charges. */ charges_enabled: boolean; @@ -85,6 +85,11 @@ declare module 'stripe' { future_requirements?: Account.FutureRequirements; + /** + * The groups associated with the account. + */ + groups?: Account.Groups | null; + /** * This is an object representing a person associated with a Stripe account. * @@ -100,7 +105,7 @@ declare module 'stripe' { metadata?: Stripe.Metadata; /** - * Whether Stripe can send payouts to this account. + * Whether the funds in this account can be paid out. */ payouts_enabled: boolean; @@ -227,6 +232,11 @@ declare module 'stripe' { */ afterpay_clearpay_payments?: Capabilities.AfterpayClearpayPayments; + /** + * The status of the Alma capability of the account, or whether the account can directly process Alma payments. + */ + alma_payments?: Capabilities.AlmaPayments; + /** * The status of the AmazonPay capability of the account, or whether the account can directly process AmazonPay payments. */ @@ -327,6 +337,11 @@ declare module 'stripe' { */ jp_bank_transfer_payments?: Capabilities.JpBankTransferPayments; + /** + * The status of the KakaoPay capability of the account, or whether the account can directly process KakaoPay payments. + */ + kakao_pay_payments?: Capabilities.KakaoPayPayments; + /** * The status of the Klarna payments capability of the account, or whether the account can directly process Klarna charges. */ @@ -337,6 +352,11 @@ declare module 'stripe' { */ konbini_payments?: Capabilities.KonbiniPayments; + /** + * The status of the KrCard capability of the account, or whether the account can directly process KrCard payments. + */ + kr_card_payments?: Capabilities.KrCardPayments; + /** * The status of the legacy payments capability of the account. */ @@ -362,6 +382,11 @@ declare module 'stripe' { */ mx_bank_transfer_payments?: Capabilities.MxBankTransferPayments; + /** + * The status of the NaverPay capability of the account, or whether the account can directly process NaverPay payments. + */ + naver_pay_payments?: Capabilities.NaverPayPayments; + /** * The status of the OXXO payments capability of the account, or whether the account can directly process OXXO charges. */ @@ -372,6 +397,11 @@ declare module 'stripe' { */ p24_payments?: Capabilities.P24Payments; + /** + * The status of the Payco capability of the account, or whether the account can directly process Payco payments. + */ + payco_payments?: Capabilities.PaycoPayments; + /** * The status of the paynow payments capability of the account, or whether the account can directly process paynow charges. */ @@ -387,6 +417,11 @@ declare module 'stripe' { */ revolut_pay_payments?: Capabilities.RevolutPayPayments; + /** + * The status of the SamsungPay capability of the account, or whether the account can directly process SamsungPay payments. + */ + samsung_pay_payments?: Capabilities.SamsungPayPayments; + /** * The status of the SEPA customer_balance payments (EUR currency) capability of the account, or whether the account can directly process SEPA customer_balance charges. */ @@ -455,6 +490,8 @@ declare module 'stripe' { type AfterpayClearpayPayments = 'active' | 'inactive' | 'pending'; + type AlmaPayments = 'active' | 'inactive' | 'pending'; + type AmazonPayPayments = 'active' | 'inactive' | 'pending'; type AuBecsDebitPayments = 'active' | 'inactive' | 'pending'; @@ -495,10 +532,14 @@ declare module 'stripe' { type JpBankTransferPayments = 'active' | 'inactive' | 'pending'; + type KakaoPayPayments = 'active' | 'inactive' | 'pending'; + type KlarnaPayments = 'active' | 'inactive' | 'pending'; type KonbiniPayments = 'active' | 'inactive' | 'pending'; + type KrCardPayments = 'active' | 'inactive' | 'pending'; + type LegacyPayments = 'active' | 'inactive' | 'pending'; type LinkPayments = 'active' | 'inactive' | 'pending'; @@ -509,16 +550,22 @@ declare module 'stripe' { type MxBankTransferPayments = 'active' | 'inactive' | 'pending'; + type NaverPayPayments = 'active' | 'inactive' | 'pending'; + type OxxoPayments = 'active' | 'inactive' | 'pending'; type P24Payments = 'active' | 'inactive' | 'pending'; + type PaycoPayments = 'active' | 'inactive' | 'pending'; + type PaynowPayments = 'active' | 'inactive' | 'pending'; type PromptpayPayments = 'active' | 'inactive' | 'pending'; type RevolutPayPayments = 'active' | 'inactive' | 'pending'; + type SamsungPayPayments = 'active' | 'inactive' | 'pending'; + type SepaBankTransferPayments = 'active' | 'inactive' | 'pending'; type SepaDebitPayments = 'active' | 'inactive' | 'pending'; @@ -1012,6 +1059,13 @@ declare module 'stripe' { } } + interface Groups { + /** + * The group the account is in to determine their payments pricing, and null if the account is on customized pricing. [See the Platform pricing tool documentation](https://stripe.com/docs/connect/platform-pricing-tools) for details. + */ + payments_pricing: string | null; + } + interface Requirements { /** * Fields that are due and can be satisfied by providing the corresponding alternative fields instead. diff --git a/types/AccountsResource.d.ts b/types/AccountsResource.d.ts index 416406eaac..5dbd3b701a 100644 --- a/types/AccountsResource.d.ts +++ b/types/AccountsResource.d.ts @@ -72,6 +72,11 @@ declare module 'stripe' { */ external_account?: string | AccountCreateParams.ExternalAccount; + /** + * A hash of account group type to tokens. These are account groups this account should be added to + */ + groups?: AccountCreateParams.Groups; + /** * Information about the person represented by the account. This field is null unless `business_type` is set to `individual`. Once you create an [Account Link](https://stripe.com/api/account_links) or [Account Session](https://stripe.com/api/account_sessions), this property can only be updated for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts. */ @@ -209,6 +214,11 @@ declare module 'stripe' { */ afterpay_clearpay_payments?: Capabilities.AfterpayClearpayPayments; + /** + * The alma_payments capability. + */ + alma_payments?: Capabilities.AlmaPayments; + /** * The amazon_pay_payments capability. */ @@ -309,6 +319,11 @@ declare module 'stripe' { */ jp_bank_transfer_payments?: Capabilities.JpBankTransferPayments; + /** + * The kakao_pay_payments capability. + */ + kakao_pay_payments?: Capabilities.KakaoPayPayments; + /** * The klarna_payments capability. */ @@ -319,6 +334,11 @@ declare module 'stripe' { */ konbini_payments?: Capabilities.KonbiniPayments; + /** + * The kr_card_payments capability. + */ + kr_card_payments?: Capabilities.KrCardPayments; + /** * The legacy_payments capability. */ @@ -344,6 +364,11 @@ declare module 'stripe' { */ mx_bank_transfer_payments?: Capabilities.MxBankTransferPayments; + /** + * The naver_pay_payments capability. + */ + naver_pay_payments?: Capabilities.NaverPayPayments; + /** * The oxxo_payments capability. */ @@ -354,6 +379,11 @@ declare module 'stripe' { */ p24_payments?: Capabilities.P24Payments; + /** + * The payco_payments capability. + */ + payco_payments?: Capabilities.PaycoPayments; + /** * The paynow_payments capability. */ @@ -369,6 +399,11 @@ declare module 'stripe' { */ revolut_pay_payments?: Capabilities.RevolutPayPayments; + /** + * The samsung_pay_payments capability. + */ + samsung_pay_payments?: Capabilities.SamsungPayPayments; + /** * The sepa_bank_transfer_payments capability. */ @@ -452,6 +487,13 @@ declare module 'stripe' { requested?: boolean; } + interface AlmaPayments { + /** + * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. + */ + requested?: boolean; + } + interface AmazonPayPayments { /** * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. @@ -592,6 +634,13 @@ declare module 'stripe' { requested?: boolean; } + interface KakaoPayPayments { + /** + * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. + */ + requested?: boolean; + } + interface KlarnaPayments { /** * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. @@ -606,6 +655,13 @@ declare module 'stripe' { requested?: boolean; } + interface KrCardPayments { + /** + * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. + */ + requested?: boolean; + } + interface LegacyPayments { /** * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. @@ -641,6 +697,13 @@ declare module 'stripe' { requested?: boolean; } + interface NaverPayPayments { + /** + * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. + */ + requested?: boolean; + } + interface OxxoPayments { /** * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. @@ -655,6 +718,13 @@ declare module 'stripe' { requested?: boolean; } + interface PaycoPayments { + /** + * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. + */ + requested?: boolean; + } + interface PaynowPayments { /** * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. @@ -676,6 +746,13 @@ declare module 'stripe' { requested?: boolean; } + interface SamsungPayPayments { + /** + * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. + */ + requested?: boolean; + } + interface SepaBankTransferPayments { /** * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. @@ -1107,6 +1184,13 @@ declare module 'stripe' { account_number: string; } + interface Groups { + /** + * The group the account is in to determine their payments pricing, and null if the account is on customized pricing. [See the Platform pricing tool documentation](https://stripe.com/docs/connect/platform-pricing-tools) for details. + */ + payments_pricing?: Stripe.Emptyable; + } + interface Individual { /** * The individual's primary address. @@ -1154,7 +1238,7 @@ declare module 'stripe' { full_name_aliases?: Stripe.Emptyable>; /** - * The individual's gender (International regulations require either "male" or "female"). + * The individual's gender */ gender?: string; @@ -1634,6 +1718,11 @@ declare module 'stripe' { | AccountUpdateParams.CardToken >; + /** + * A hash of account group type to tokens. These are account groups this account should be added to + */ + groups?: AccountUpdateParams.Groups; + /** * Information about the person represented by the account. This field is null unless `business_type` is set to `individual`. Once you create an [Account Link](https://stripe.com/api/account_links) or [Account Session](https://stripe.com/api/account_sessions), this property can only be updated for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts. */ @@ -1804,6 +1893,11 @@ declare module 'stripe' { */ afterpay_clearpay_payments?: Capabilities.AfterpayClearpayPayments; + /** + * The alma_payments capability. + */ + alma_payments?: Capabilities.AlmaPayments; + /** * The amazon_pay_payments capability. */ @@ -1904,6 +1998,11 @@ declare module 'stripe' { */ jp_bank_transfer_payments?: Capabilities.JpBankTransferPayments; + /** + * The kakao_pay_payments capability. + */ + kakao_pay_payments?: Capabilities.KakaoPayPayments; + /** * The klarna_payments capability. */ @@ -1914,6 +2013,11 @@ declare module 'stripe' { */ konbini_payments?: Capabilities.KonbiniPayments; + /** + * The kr_card_payments capability. + */ + kr_card_payments?: Capabilities.KrCardPayments; + /** * The legacy_payments capability. */ @@ -1939,6 +2043,11 @@ declare module 'stripe' { */ mx_bank_transfer_payments?: Capabilities.MxBankTransferPayments; + /** + * The naver_pay_payments capability. + */ + naver_pay_payments?: Capabilities.NaverPayPayments; + /** * The oxxo_payments capability. */ @@ -1949,6 +2058,11 @@ declare module 'stripe' { */ p24_payments?: Capabilities.P24Payments; + /** + * The payco_payments capability. + */ + payco_payments?: Capabilities.PaycoPayments; + /** * The paynow_payments capability. */ @@ -1964,6 +2078,11 @@ declare module 'stripe' { */ revolut_pay_payments?: Capabilities.RevolutPayPayments; + /** + * The samsung_pay_payments capability. + */ + samsung_pay_payments?: Capabilities.SamsungPayPayments; + /** * The sepa_bank_transfer_payments capability. */ @@ -2047,6 +2166,13 @@ declare module 'stripe' { requested?: boolean; } + interface AlmaPayments { + /** + * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. + */ + requested?: boolean; + } + interface AmazonPayPayments { /** * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. @@ -2187,6 +2313,13 @@ declare module 'stripe' { requested?: boolean; } + interface KakaoPayPayments { + /** + * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. + */ + requested?: boolean; + } + interface KlarnaPayments { /** * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. @@ -2201,6 +2334,13 @@ declare module 'stripe' { requested?: boolean; } + interface KrCardPayments { + /** + * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. + */ + requested?: boolean; + } + interface LegacyPayments { /** * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. @@ -2236,6 +2376,13 @@ declare module 'stripe' { requested?: boolean; } + interface NaverPayPayments { + /** + * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. + */ + requested?: boolean; + } + interface OxxoPayments { /** * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. @@ -2250,6 +2397,13 @@ declare module 'stripe' { requested?: boolean; } + interface PaycoPayments { + /** + * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. + */ + requested?: boolean; + } + interface PaynowPayments { /** * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. @@ -2271,6 +2425,13 @@ declare module 'stripe' { requested?: boolean; } + interface SamsungPayPayments { + /** + * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. + */ + requested?: boolean; + } + interface SepaBankTransferPayments { /** * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. @@ -2649,6 +2810,13 @@ declare module 'stripe' { } } + interface Groups { + /** + * The group the account is in to determine their payments pricing, and null if the account is on customized pricing. [See the Platform pricing tool documentation](https://stripe.com/docs/connect/platform-pricing-tools) for details. + */ + payments_pricing?: Stripe.Emptyable; + } + interface Individual { /** * The individual's primary address. @@ -2696,7 +2864,7 @@ declare module 'stripe' { full_name_aliases?: Stripe.Emptyable>; /** - * The individual's gender (International regulations require either "male" or "female"). + * The individual's gender */ gender?: string; @@ -4174,7 +4342,7 @@ declare module 'stripe' { ): Promise>; /** - * Creates a single-use login link for a connected account to access the Express Dashboard. + * Creates a login link for a connected account to access the Express Dashboard. * * You can only create login links for accounts that use the [Express Dashboard](https://stripe.com/connect/express-dashboard) and are connected to your platform. */ diff --git a/types/Billing/CreditBalanceSummary.d.ts b/types/Billing/CreditBalanceSummary.d.ts index 95c82c1f5d..c4627a288c 100644 --- a/types/Billing/CreditBalanceSummary.d.ts +++ b/types/Billing/CreditBalanceSummary.d.ts @@ -4,7 +4,7 @@ declare module 'stripe' { namespace Stripe { namespace Billing { /** - * Indicates the credit balance for credits granted to a customer. + * Indicates the billing credit balance for billing credits granted to a customer. */ interface CreditBalanceSummary { /** @@ -13,7 +13,7 @@ declare module 'stripe' { object: 'billing.credit_balance_summary'; /** - * The credit balances. One entry per credit grant currency. If a customer only has credit grants in a single currency, then this will have a single balance entry. + * The billing credit balances. One entry per credit grant currency. If a customer only has credit grants in a single currency, then this will have a single balance entry. */ balances: Array; @@ -43,7 +43,7 @@ declare module 'stripe' { monetary: AvailableBalance.Monetary | null; /** - * The type of this amount. We currently only support `monetary` credits. + * The type of this amount. We currently only support `monetary` billing credits. */ type: 'monetary'; } @@ -69,7 +69,7 @@ declare module 'stripe' { monetary: LedgerBalance.Monetary | null; /** - * The type of this amount. We currently only support `monetary` credits. + * The type of this amount. We currently only support `monetary` billing credits. */ type: 'monetary'; } diff --git a/types/Billing/CreditBalanceSummaryResource.d.ts b/types/Billing/CreditBalanceSummaryResource.d.ts index a2c9312449..a0f5f84ba0 100644 --- a/types/Billing/CreditBalanceSummaryResource.d.ts +++ b/types/Billing/CreditBalanceSummaryResource.d.ts @@ -23,12 +23,12 @@ declare module 'stripe' { namespace CreditBalanceSummaryRetrieveParams { interface Filter { /** - * The credit applicability scope for which to fetch balance summary. + * The billing credit applicability scope for which to fetch credit balance summary. */ applicability_scope?: Filter.ApplicabilityScope; /** - * The credit grant for which to fetch balance summary. + * The credit grant for which to fetch credit balance summary. */ credit_grant?: string; diff --git a/types/Billing/CreditBalanceTransactions.d.ts b/types/Billing/CreditBalanceTransactions.d.ts index 91b1b93dd4..860ad23f74 100644 --- a/types/Billing/CreditBalanceTransactions.d.ts +++ b/types/Billing/CreditBalanceTransactions.d.ts @@ -23,22 +23,22 @@ declare module 'stripe' { created: number; /** - * Credit details for this balance transaction. Only present if type is `credit`. + * Credit details for this credit balance transaction. Only present if type is `credit`. */ credit: CreditBalanceTransaction.Credit | null; /** - * The credit grant associated with this balance transaction. + * The credit grant associated with this credit balance transaction. */ credit_grant: string | Stripe.Billing.CreditGrant; /** - * Debit details for this balance transaction. Only present if type is `debit`. + * Debit details for this credit balance transaction. Only present if type is `debit`. */ debit: CreditBalanceTransaction.Debit | null; /** - * The effective time of this balance transaction. + * The effective time of this credit balance transaction. */ effective_at: number; @@ -53,7 +53,7 @@ declare module 'stripe' { test_clock: string | Stripe.TestHelpers.TestClock | null; /** - * The type of balance transaction (credit or debit). + * The type of credit balance transaction (credit or debit). */ type: CreditBalanceTransaction.Type | null; } @@ -76,7 +76,7 @@ declare module 'stripe' { monetary: Amount.Monetary | null; /** - * The type of this amount. We currently only support `monetary` credits. + * The type of this amount. We currently only support `monetary` billing credits. */ type: 'monetary'; } @@ -100,7 +100,7 @@ declare module 'stripe' { amount: Debit.Amount; /** - * Details of how the credits were applied to an invoice. Only present if `type` is `credits_applied`. + * Details of how the billing credits were applied to an invoice. Only present if `type` is `credits_applied`. */ credits_applied: Debit.CreditsApplied | null; @@ -118,7 +118,7 @@ declare module 'stripe' { monetary: Amount.Monetary | null; /** - * The type of this amount. We currently only support `monetary` credits. + * The type of this amount. We currently only support `monetary` billing credits. */ type: 'monetary'; } @@ -139,12 +139,12 @@ declare module 'stripe' { interface CreditsApplied { /** - * The invoice to which the credits were applied. + * The invoice to which the billing credits were applied. */ invoice: string | Stripe.Invoice; /** - * The invoice line item to which the credits were applied. + * The invoice line item to which the billing credits were applied. */ invoice_line_item: string; } diff --git a/types/Billing/CreditGrants.d.ts b/types/Billing/CreditGrants.d.ts index 9c93b0c433..3300eb0033 100644 --- a/types/Billing/CreditGrants.d.ts +++ b/types/Billing/CreditGrants.d.ts @@ -4,7 +4,10 @@ declare module 'stripe' { namespace Stripe { namespace Billing { /** - * A credit grant is a resource that records a grant of some credit to a customer. + * A credit grant is an API resource that documents the allocation of some billing credits to a customer. + * + * Related guide: [Billing credits](https://docs.stripe.com/billing/subscriptions/usage-based/billing-credits) + * end */ interface CreditGrant { /** @@ -22,7 +25,7 @@ declare module 'stripe' { applicability_config: CreditGrant.ApplicabilityConfig; /** - * The category of this credit grant. + * The category of this credit grant. This is for tracking purposes and will not be displayed to the customer. */ category: CreditGrant.Category; @@ -32,17 +35,17 @@ declare module 'stripe' { created: number; /** - * Id of the customer to whom the credit was granted. + * ID of the customer to whom the billing credits are granted. */ customer: string | Stripe.Customer | Stripe.DeletedCustomer; /** - * The time when the credit becomes effective i.e when it is eligible to be used. + * The time when the billing credits become effective i.e when they are eligible to be used. */ effective_at: number | null; /** - * The time when the credit will expire. If not present, the credit will never expire. + * The time when the billing credits will expire. If not present, the billing credits will never expire. */ expires_at: number | null; @@ -57,7 +60,7 @@ declare module 'stripe' { metadata: Stripe.Metadata; /** - * A descriptive name shown in dashboard and on invoices. + * A descriptive name shown in dashboard. */ name: string | null; @@ -85,7 +88,7 @@ declare module 'stripe' { monetary: Amount.Monetary | null; /** - * The type of this amount. We currently only support `monetary` credits. + * The type of this amount. We currently only support `monetary` billing credits. */ type: 'monetary'; } @@ -111,7 +114,7 @@ declare module 'stripe' { namespace ApplicabilityConfig { interface Scope { /** - * The price type to which credit grants can apply to. We currently only support `metered` price type. + * The price type to which credit grants can apply to. We currently only support `metered` price type. This refers to prices that have a [Billing Meter](https://docs.stripe.com/api/billing/meter) attached to them. */ price_type: 'metered'; } diff --git a/types/Billing/CreditGrantsResource.d.ts b/types/Billing/CreditGrantsResource.d.ts index 82d5cc5f0c..6337db529d 100644 --- a/types/Billing/CreditGrantsResource.d.ts +++ b/types/Billing/CreditGrantsResource.d.ts @@ -20,12 +20,12 @@ declare module 'stripe' { category: CreditGrantCreateParams.Category; /** - * Id of the customer to whom the credit should be granted. + * ID of the customer to whom the billing credits should be granted. */ customer: string; /** - * The time when the credit becomes effective i.e when it is eligible to be used. Defaults to the current timestamp if not specified. + * The time when the billing credits become effective i.e when they are eligible to be used. Defaults to the current timestamp if not specified. */ effective_at?: number; @@ -35,7 +35,7 @@ declare module 'stripe' { expand?: Array; /** - * The time when the credit will expire. If not specified, the credit will never expire. + * The time when the billing credits will expire. If not specified, the billing credits will never expire. */ expires_at?: number; @@ -45,7 +45,7 @@ declare module 'stripe' { metadata?: Stripe.MetadataParam; /** - * A descriptive name shown in dashboard and on invoices. + * A descriptive name shown in dashboard. */ name?: string; } @@ -58,7 +58,7 @@ declare module 'stripe' { monetary?: Amount.Monetary; /** - * Specify the type of this amount. We currently only support `monetary` credits. + * Specify the type of this amount. We currently only support `monetary` billing credits. */ type: 'monetary'; } @@ -110,7 +110,7 @@ declare module 'stripe' { expand?: Array; /** - * The time when the credit created by this credit grant will expire. If set to empty, the credit will never expire. + * The time when the billing credits created by this credit grant will expire. If set to empty, the billing credits will never expire. */ expires_at?: Stripe.Emptyable; diff --git a/types/Billing/Meters.d.ts b/types/Billing/Meters.d.ts index ca9d47eb0d..4304c5b97d 100644 --- a/types/Billing/Meters.d.ts +++ b/types/Billing/Meters.d.ts @@ -5,6 +5,8 @@ declare module 'stripe' { namespace Billing { /** * A billing meter is a resource that allows you to track usage of a particular event. For example, you might create a billing meter to track the number of API calls made by a particular user. You can then attach the billing meter to a price and attach the price to a subscription to charge the user for the number of API calls they make. + * + * Related guide: [Usage based billing](https://docs.stripe.com/billing/subscriptions/usage-based) */ interface Meter { /** diff --git a/types/BillingPortal/Configurations.d.ts b/types/BillingPortal/Configurations.d.ts index 20762774a6..e97fe78223 100644 --- a/types/BillingPortal/Configurations.d.ts +++ b/types/BillingPortal/Configurations.d.ts @@ -209,6 +209,8 @@ declare module 'stripe' { * 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. */ proration_behavior: SubscriptionUpdate.ProrationBehavior; + + schedule_at_period_end?: SubscriptionUpdate.ScheduleAtPeriodEnd; } namespace SubscriptionUpdate { @@ -230,6 +232,26 @@ declare module 'stripe' { | 'always_invoice' | 'create_prorations' | 'none'; + + interface ScheduleAtPeriodEnd { + /** + * List of conditions. When any condition is true, an update will be scheduled at the end of the current period. + */ + conditions: Array; + } + + namespace ScheduleAtPeriodEnd { + interface Condition { + /** + * The type of condition. + */ + type: Condition.Type; + } + + namespace Condition { + type Type = 'decreasing_item_amount' | 'shortening_interval'; + } + } } } diff --git a/types/BillingPortal/ConfigurationsResource.d.ts b/types/BillingPortal/ConfigurationsResource.d.ts index 949b391d2a..52bf0d150b 100644 --- a/types/BillingPortal/ConfigurationsResource.d.ts +++ b/types/BillingPortal/ConfigurationsResource.d.ts @@ -5,14 +5,14 @@ declare module 'stripe' { namespace BillingPortal { interface ConfigurationCreateParams { /** - * The business information shown to customers in the portal. + * Information about the features available in the portal. */ - business_profile: ConfigurationCreateParams.BusinessProfile; + features: ConfigurationCreateParams.Features; /** - * Information about the features available in the portal. + * The business information shown to customers in the portal. */ - features: ConfigurationCreateParams.Features; + business_profile?: ConfigurationCreateParams.BusinessProfile; /** * The default URL to redirect customers to when they click on the portal's link to return to your website. This can be [overriden](https://stripe.com/docs/api/customer_portal/sessions/create#create_portal_session-return_url) when creating the session. @@ -196,6 +196,11 @@ declare module 'stripe' { * Determines how to handle prorations resulting from subscription updates. Valid values are `none`, `create_prorations`, and `always_invoice`. */ proration_behavior?: SubscriptionUpdate.ProrationBehavior; + + /** + * Setting to control when an update should be scheduled at the end of the period instead of applying immediately. + */ + schedule_at_period_end?: SubscriptionUpdate.ScheduleAtPeriodEnd; } namespace SubscriptionUpdate { @@ -217,6 +222,26 @@ declare module 'stripe' { | 'always_invoice' | 'create_prorations' | 'none'; + + interface ScheduleAtPeriodEnd { + /** + * List of conditions. When any condition is true, the update will be scheduled at the end of the current period. + */ + conditions?: Array; + } + + namespace ScheduleAtPeriodEnd { + interface Condition { + /** + * The type of condition. + */ + type: Condition.Type; + } + + namespace Condition { + type Type = 'decreasing_item_amount' | 'shortening_interval'; + } + } } } @@ -433,6 +458,11 @@ declare module 'stripe' { * Determines how to handle prorations resulting from subscription updates. Valid values are `none`, `create_prorations`, and `always_invoice`. */ proration_behavior?: SubscriptionUpdate.ProrationBehavior; + + /** + * Setting to control when an update should be scheduled at the end of the period instead of applying immediately. + */ + schedule_at_period_end?: SubscriptionUpdate.ScheduleAtPeriodEnd; } namespace SubscriptionUpdate { @@ -454,6 +484,28 @@ declare module 'stripe' { | 'always_invoice' | 'create_prorations' | 'none'; + + interface ScheduleAtPeriodEnd { + /** + * List of conditions. When any condition is true, the update will be scheduled at the end of the current period. + */ + conditions?: Stripe.Emptyable< + Array + >; + } + + namespace ScheduleAtPeriodEnd { + interface Condition { + /** + * The type of condition. + */ + type: Condition.Type; + } + + namespace Condition { + type Type = 'decreasing_item_amount' | 'shortening_interval'; + } + } } } diff --git a/types/Charges.d.ts b/types/Charges.d.ts index e86d7818c0..34d99f040c 100644 --- a/types/Charges.d.ts +++ b/types/Charges.d.ts @@ -380,6 +380,8 @@ declare module 'stripe' { alipay?: PaymentMethodDetails.Alipay; + alma?: PaymentMethodDetails.Alma; + amazon_pay?: PaymentMethodDetails.AmazonPay; au_becs_debit?: PaymentMethodDetails.AuBecsDebit; @@ -412,20 +414,28 @@ declare module 'stripe' { interac_present?: PaymentMethodDetails.InteracPresent; + kakao_pay?: PaymentMethodDetails.KakaoPay; + klarna?: PaymentMethodDetails.Klarna; konbini?: PaymentMethodDetails.Konbini; + kr_card?: PaymentMethodDetails.KrCard; + link?: PaymentMethodDetails.Link; mobilepay?: PaymentMethodDetails.Mobilepay; multibanco?: PaymentMethodDetails.Multibanco; + naver_pay?: PaymentMethodDetails.NaverPay; + oxxo?: PaymentMethodDetails.Oxxo; p24?: PaymentMethodDetails.P24; + payco?: PaymentMethodDetails.Payco; + paynow?: PaymentMethodDetails.Paynow; paypal?: PaymentMethodDetails.Paypal; @@ -436,6 +446,8 @@ declare module 'stripe' { revolut_pay?: PaymentMethodDetails.RevolutPay; + samsung_pay?: PaymentMethodDetails.SamsungPay; + sepa_credit_transfer?: PaymentMethodDetails.SepaCreditTransfer; sepa_debit?: PaymentMethodDetails.SepaDebit; @@ -591,6 +603,8 @@ declare module 'stripe' { transaction_id: string | null; } + interface Alma {} + interface AmazonPay {} interface AuBecsDebit { @@ -1656,6 +1670,13 @@ declare module 'stripe' { } } + interface KakaoPay { + /** + * A unique identifier for the buyer as determined by the local payment processor. + */ + buyer_id: string | null; + } + interface Klarna { /** * The payer details for this transaction. @@ -1713,6 +1734,49 @@ declare module 'stripe' { } } + interface KrCard { + /** + * The local credit or debit card brand. + */ + brand: KrCard.Brand | null; + + /** + * A unique identifier for the buyer as determined by the local payment processor. + */ + buyer_id: string | null; + + /** + * The last four digits of the card. This may not be present for American Express cards. + */ + last4: string | null; + } + + namespace KrCard { + type Brand = + | 'bc' + | 'citi' + | 'hana' + | 'hyundai' + | 'jeju' + | 'jeonbuk' + | 'kakaobank' + | 'kbank' + | 'kdbbank' + | 'kookmin' + | 'kwangju' + | 'lotte' + | 'mg' + | 'nh' + | 'post' + | 'samsung' + | 'savingsbank' + | 'shinhan' + | 'shinhyup' + | 'suhyup' + | 'tossbank' + | 'woori'; + } + interface Link { /** * Two-letter ISO code representing the funding source country beneath the Link payment. @@ -1769,6 +1833,13 @@ declare module 'stripe' { reference: string | null; } + interface NaverPay { + /** + * A unique identifier for the buyer as determined by the local payment processor. + */ + buyer_id: string | null; + } + interface Oxxo { /** * OXXO reference number @@ -1825,6 +1896,13 @@ declare module 'stripe' { | 'volkswagen_bank'; } + interface Payco { + /** + * A unique identifier for the buyer as determined by the local payment processor. + */ + buyer_id: string | null; + } + interface Paynow { /** * Reference number associated with this PayNow payment @@ -1897,6 +1975,13 @@ declare module 'stripe' { interface RevolutPay {} + interface SamsungPay { + /** + * A unique identifier for the buyer as determined by the local payment processor. + */ + buyer_id: string | null; + } + interface SepaCreditTransfer { /** * Name of the bank associated with the bank account. diff --git a/types/Checkout/Sessions.d.ts b/types/Checkout/Sessions.d.ts index 6ea0510ccb..56b9f7e367 100644 --- a/types/Checkout/Sessions.d.ts +++ b/types/Checkout/Sessions.d.ts @@ -490,7 +490,7 @@ declare module 'stripe' { interface TaxId { /** - * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, or `unknown` + * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, or `unknown` */ type: TaxId.Type; @@ -512,6 +512,7 @@ declare module 'stripe' { | 'bo_tin' | 'br_cnpj' | 'br_cpf' + | 'by_tin' | 'ca_bn' | 'ca_gst_hst' | 'ca_pst_bc' @@ -547,6 +548,8 @@ declare module 'stripe' { | 'kr_brn' | 'kz_bin' | 'li_uid' + | 'ma_vat' + | 'md_vat' | 'mx_rfc' | 'my_frp' | 'my_itn' @@ -570,10 +573,13 @@ declare module 'stripe' { | 'th_vat' | 'tr_tin' | 'tw_vat' + | 'tz_vat' | 'ua_vat' | 'unknown' | 'us_ein' | 'uy_ruc' + | 'uz_tin' + | 'uz_vat' | 've_rif' | 'vn_tin' | 'za_vat'; @@ -929,20 +935,28 @@ declare module 'stripe' { ideal?: PaymentMethodOptions.Ideal; + kakao_pay?: PaymentMethodOptions.KakaoPay; + klarna?: PaymentMethodOptions.Klarna; konbini?: PaymentMethodOptions.Konbini; + kr_card?: PaymentMethodOptions.KrCard; + link?: PaymentMethodOptions.Link; mobilepay?: PaymentMethodOptions.Mobilepay; multibanco?: PaymentMethodOptions.Multibanco; + naver_pay?: PaymentMethodOptions.NaverPay; + oxxo?: PaymentMethodOptions.Oxxo; p24?: PaymentMethodOptions.P24; + payco?: PaymentMethodOptions.Payco; + paynow?: PaymentMethodOptions.Paynow; paypal?: PaymentMethodOptions.Paypal; @@ -951,6 +965,8 @@ declare module 'stripe' { revolut_pay?: PaymentMethodOptions.RevolutPay; + samsung_pay?: PaymentMethodOptions.SamsungPay; + sepa_debit?: PaymentMethodOptions.SepaDebit; sofort?: PaymentMethodOptions.Sofort; @@ -1340,6 +1356,28 @@ declare module 'stripe' { setup_future_usage?: 'none'; } + interface KakaoPay { + /** + * Controls when the funds will be captured from the customer's account. + */ + capture_method?: 'manual'; + + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + * + * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + * + * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication). + */ + setup_future_usage?: KakaoPay.SetupFutureUsage; + } + + namespace KakaoPay { + type SetupFutureUsage = 'none' | 'off_session'; + } + interface Klarna { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -1375,6 +1413,28 @@ declare module 'stripe' { setup_future_usage?: 'none'; } + interface KrCard { + /** + * Controls when the funds will be captured from the customer's account. + */ + capture_method?: 'manual'; + + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + * + * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + * + * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication). + */ + setup_future_usage?: KrCard.SetupFutureUsage; + } + + namespace KrCard { + type SetupFutureUsage = 'none' | 'off_session'; + } + interface Link { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -1418,6 +1478,13 @@ declare module 'stripe' { setup_future_usage?: 'none'; } + interface NaverPay { + /** + * Controls when the funds will be captured from the customer's account. + */ + capture_method?: 'manual'; + } + interface Oxxo { /** * The number of calendar days before an OXXO invoice expires. For example, if you create an OXXO invoice on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time. @@ -1449,6 +1516,13 @@ declare module 'stripe' { setup_future_usage?: 'none'; } + interface Payco { + /** + * Controls when the funds will be captured from the customer's account. + */ + capture_method?: 'manual'; + } + interface Paynow { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -1518,6 +1592,13 @@ declare module 'stripe' { type SetupFutureUsage = 'none' | 'off_session'; } + interface SamsungPay { + /** + * Controls when the funds will be captured from the customer's account. + */ + capture_method?: 'manual'; + } + interface SepaDebit { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. diff --git a/types/Checkout/SessionsResource.d.ts b/types/Checkout/SessionsResource.d.ts index a4d770e700..99d6740f21 100644 --- a/types/Checkout/SessionsResource.d.ts +++ b/types/Checkout/SessionsResource.d.ts @@ -1068,6 +1068,11 @@ declare module 'stripe' { */ ideal?: PaymentMethodOptions.Ideal; + /** + * contains details about the Kakao Pay payment method options. + */ + kakao_pay?: PaymentMethodOptions.KakaoPay; + /** * contains details about the Klarna payment method options. */ @@ -1078,6 +1083,11 @@ declare module 'stripe' { */ konbini?: PaymentMethodOptions.Konbini; + /** + * contains details about the Korean card payment method options. + */ + kr_card?: PaymentMethodOptions.KrCard; + /** * contains details about the Link payment method options. */ @@ -1093,6 +1103,11 @@ declare module 'stripe' { */ multibanco?: PaymentMethodOptions.Multibanco; + /** + * contains details about the Kakao Pay payment method options. + */ + naver_pay?: PaymentMethodOptions.NaverPay; + /** * contains details about the OXXO payment method options. */ @@ -1103,6 +1118,11 @@ declare module 'stripe' { */ p24?: PaymentMethodOptions.P24; + /** + * contains details about the PAYCO payment method options. + */ + payco?: PaymentMethodOptions.Payco; + /** * contains details about the PayNow payment method options. */ @@ -1123,6 +1143,11 @@ declare module 'stripe' { */ revolut_pay?: PaymentMethodOptions.RevolutPay; + /** + * contains details about the Samsung Pay payment method options. + */ + samsung_pay?: PaymentMethodOptions.SamsungPay; + /** * contains details about the Sepa Debit payment method options. */ @@ -1544,6 +1569,23 @@ declare module 'stripe' { setup_future_usage?: 'none'; } + interface KakaoPay { + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + * + * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + * + * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication). + */ + setup_future_usage?: KakaoPay.SetupFutureUsage; + } + + namespace KakaoPay { + type SetupFutureUsage = 'none' | 'off_session'; + } + interface Klarna { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -1575,6 +1617,23 @@ declare module 'stripe' { setup_future_usage?: 'none'; } + interface KrCard { + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + * + * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + * + * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication). + */ + setup_future_usage?: KrCard.SetupFutureUsage; + } + + namespace KrCard { + type SetupFutureUsage = 'none' | 'off_session'; + } + interface Link { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -1618,6 +1677,23 @@ declare module 'stripe' { setup_future_usage?: 'none'; } + interface NaverPay { + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + * + * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + * + * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication). + */ + setup_future_usage?: NaverPay.SetupFutureUsage; + } + + namespace NaverPay { + type SetupFutureUsage = 'none' | 'off_session'; + } + interface Oxxo { /** * The number of calendar days before an OXXO voucher expires. For example, if you create an OXXO voucher on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time. @@ -1654,6 +1730,8 @@ declare module 'stripe' { tos_shown_and_accepted?: boolean; } + interface Payco {} + interface Paynow { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -1753,6 +1831,8 @@ declare module 'stripe' { type SetupFutureUsage = 'none' | 'off_session'; } + interface SamsungPay {} + interface SepaDebit { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -1874,6 +1954,7 @@ declare module 'stripe' { | 'affirm' | 'afterpay_clearpay' | 'alipay' + | 'alma' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' @@ -1888,18 +1969,23 @@ declare module 'stripe' { | 'giropay' | 'grabpay' | 'ideal' + | 'kakao_pay' | 'klarna' | 'konbini' + | 'kr_card' | 'link' | 'mobilepay' | 'multibanco' + | 'naver_pay' | 'oxxo' | 'p24' + | 'payco' | 'paynow' | 'paypal' | 'pix' | 'promptpay' | 'revolut_pay' + | 'samsung_pay' | 'sepa_debit' | 'sofort' | 'swish' diff --git a/types/ConfirmationTokens.d.ts b/types/ConfirmationTokens.d.ts index 37dafc79fa..5a210c7154 100644 --- a/types/ConfirmationTokens.d.ts +++ b/types/ConfirmationTokens.d.ts @@ -151,6 +151,8 @@ declare module 'stripe' { */ allow_redisplay?: PaymentMethodPreview.AllowRedisplay; + alma?: PaymentMethodPreview.Alma; + amazon_pay?: PaymentMethodPreview.AmazonPay; au_becs_debit?: PaymentMethodPreview.AuBecsDebit; @@ -190,20 +192,28 @@ declare module 'stripe' { interac_present?: PaymentMethodPreview.InteracPresent; + kakao_pay?: PaymentMethodPreview.KakaoPay; + klarna?: PaymentMethodPreview.Klarna; konbini?: PaymentMethodPreview.Konbini; + kr_card?: PaymentMethodPreview.KrCard; + link?: PaymentMethodPreview.Link; mobilepay?: PaymentMethodPreview.Mobilepay; multibanco?: PaymentMethodPreview.Multibanco; + naver_pay?: PaymentMethodPreview.NaverPay; + oxxo?: PaymentMethodPreview.Oxxo; p24?: PaymentMethodPreview.P24; + payco?: PaymentMethodPreview.Payco; + paynow?: PaymentMethodPreview.Paynow; paypal?: PaymentMethodPreview.Paypal; @@ -214,6 +224,8 @@ declare module 'stripe' { revolut_pay?: PaymentMethodPreview.RevolutPay; + samsung_pay?: PaymentMethodPreview.SamsungPay; + sepa_debit?: PaymentMethodPreview.SepaDebit; sofort?: PaymentMethodPreview.Sofort; @@ -270,6 +282,8 @@ declare module 'stripe' { type AllowRedisplay = 'always' | 'limited' | 'unspecified'; + interface Alma {} + interface AmazonPay {} interface AuBecsDebit { @@ -1172,6 +1186,8 @@ declare module 'stripe' { | 'magnetic_stripe_track2'; } + interface KakaoPay {} + interface Klarna { /** * The customer's date of birth, if provided. @@ -1200,6 +1216,44 @@ declare module 'stripe' { interface Konbini {} + interface KrCard { + /** + * The local credit or debit card brand. + */ + brand: KrCard.Brand | null; + + /** + * The last four digits of the card. This may not be present for American Express cards. + */ + last4: string | null; + } + + namespace KrCard { + type Brand = + | 'bc' + | 'citi' + | 'hana' + | 'hyundai' + | 'jeju' + | 'jeonbuk' + | 'kakaobank' + | 'kbank' + | 'kdbbank' + | 'kookmin' + | 'kwangju' + | 'lotte' + | 'mg' + | 'nh' + | 'post' + | 'samsung' + | 'savingsbank' + | 'shinhan' + | 'shinhyup' + | 'suhyup' + | 'tossbank' + | 'woori'; + } + interface Link { /** * Account owner's email address. @@ -1217,6 +1271,17 @@ declare module 'stripe' { interface Multibanco {} + interface NaverPay { + /** + * Whether to fund this transaction with Naver Pay points or a card. + */ + funding: NaverPay.Funding; + } + + namespace NaverPay { + type Funding = 'card' | 'points'; + } + interface Oxxo {} interface P24 { @@ -1256,6 +1321,8 @@ declare module 'stripe' { | 'volkswagen_bank'; } + interface Payco {} + interface Paynow {} interface Paypal { @@ -1277,6 +1344,8 @@ declare module 'stripe' { interface RevolutPay {} + interface SamsungPay {} + interface SepaDebit { /** * Bank code of bank associated with the bank account. @@ -1339,6 +1408,7 @@ declare module 'stripe' { | 'affirm' | 'afterpay_clearpay' | 'alipay' + | 'alma' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' @@ -1355,18 +1425,23 @@ declare module 'stripe' { | 'grabpay' | 'ideal' | 'interac_present' + | 'kakao_pay' | 'klarna' | 'konbini' + | 'kr_card' | 'link' | 'mobilepay' | 'multibanco' + | 'naver_pay' | 'oxxo' | 'p24' + | 'payco' | 'paynow' | 'paypal' | 'pix' | 'promptpay' | 'revolut_pay' + | 'samsung_pay' | 'sepa_debit' | 'sofort' | 'swish' diff --git a/types/CreditNoteLineItems.d.ts b/types/CreditNoteLineItems.d.ts index 9395b6a7b0..28e46ceecb 100644 --- a/types/CreditNoteLineItems.d.ts +++ b/types/CreditNoteLineItems.d.ts @@ -51,6 +51,9 @@ declare module 'stripe' { */ livemode: boolean; + /** + * The pretax credit amounts (ex: discount, credit grants, etc) for this line item. + */ pretax_credit_amounts?: Array; /** diff --git a/types/CreditNotes.d.ts b/types/CreditNotes.d.ts index 9906a58586..7cda890c0a 100644 --- a/types/CreditNotes.d.ts +++ b/types/CreditNotes.d.ts @@ -106,6 +106,9 @@ declare module 'stripe' { */ pdf: string; + /** + * The pretax credit amounts (ex: discount, credit grants, etc) for all line items. + */ pretax_credit_amounts?: Array; /** diff --git a/types/CreditNotesResource.d.ts b/types/CreditNotesResource.d.ts index c3a3afcaff..ea8fb8a951 100644 --- a/types/CreditNotesResource.d.ts +++ b/types/CreditNotesResource.d.ts @@ -79,7 +79,7 @@ declare module 'stripe' { interface Line { /** - * The line item amount to credit. Only valid when `type` is `invoice_line_item`. + * The line item amount to credit. Only valid when `type` is `invoice_line_item`. If invoice is set up with `automatic_tax[enabled]=true`, this amount is tax exclusive */ amount?: number; @@ -289,7 +289,7 @@ declare module 'stripe' { interface Line { /** - * The line item amount to credit. Only valid when `type` is `invoice_line_item`. + * The line item amount to credit. Only valid when `type` is `invoice_line_item`. If invoice is set up with `automatic_tax[enabled]=true`, this amount is tax exclusive */ amount?: number; @@ -446,7 +446,7 @@ declare module 'stripe' { interface Line { /** - * The line item amount to credit. Only valid when `type` is `invoice_line_item`. + * The line item amount to credit. Only valid when `type` is `invoice_line_item`. If invoice is set up with `automatic_tax[enabled]=true`, this amount is tax exclusive */ amount?: number; diff --git a/types/CustomersResource.d.ts b/types/CustomersResource.d.ts index 6151f3097c..97bb8eb389 100644 --- a/types/CustomersResource.d.ts +++ b/types/CustomersResource.d.ts @@ -220,7 +220,7 @@ declare module 'stripe' { interface TaxIdDatum { /** - * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat` + * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` */ type: TaxIdDatum.Type; @@ -242,6 +242,7 @@ declare module 'stripe' { | 'bo_tin' | 'br_cnpj' | 'br_cpf' + | 'by_tin' | 'ca_bn' | 'ca_gst_hst' | 'ca_pst_bc' @@ -277,6 +278,8 @@ declare module 'stripe' { | 'kr_brn' | 'kz_bin' | 'li_uid' + | 'ma_vat' + | 'md_vat' | 'mx_rfc' | 'my_frp' | 'my_itn' @@ -300,9 +303,12 @@ declare module 'stripe' { | 'th_vat' | 'tr_tin' | 'tw_vat' + | 'tz_vat' | 'ua_vat' | 'us_ein' | 'uy_ruc' + | 'uz_tin' + | 'uz_vat' | 've_rif' | 'vn_tin' | 'za_vat'; @@ -524,7 +530,7 @@ declare module 'stripe' { } namespace Tax { - type ValidateLocation = 'deferred' | 'immediately'; + type ValidateLocation = 'auto' | 'deferred' | 'immediately'; } type TaxExempt = 'exempt' | 'none' | 'reverse'; @@ -663,7 +669,7 @@ declare module 'stripe' { interface CustomerCreateTaxIdParams { /** - * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat` + * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` */ type: CustomerCreateTaxIdParams.Type; @@ -690,6 +696,7 @@ declare module 'stripe' { | 'bo_tin' | 'br_cnpj' | 'br_cpf' + | 'by_tin' | 'ca_bn' | 'ca_gst_hst' | 'ca_pst_bc' @@ -725,6 +732,8 @@ declare module 'stripe' { | 'kr_brn' | 'kz_bin' | 'li_uid' + | 'ma_vat' + | 'md_vat' | 'mx_rfc' | 'my_frp' | 'my_itn' @@ -748,9 +757,12 @@ declare module 'stripe' { | 'th_vat' | 'tr_tin' | 'tw_vat' + | 'tz_vat' | 'ua_vat' | 'us_ein' | 'uy_ruc' + | 'uz_tin' + | 'uz_vat' | 've_rif' | 'vn_tin' | 'za_vat'; @@ -807,6 +819,7 @@ declare module 'stripe' { | 'affirm' | 'afterpay_clearpay' | 'alipay' + | 'alma' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' @@ -821,18 +834,23 @@ declare module 'stripe' { | 'giropay' | 'grabpay' | 'ideal' + | 'kakao_pay' | 'klarna' | 'konbini' + | 'kr_card' | 'link' | 'mobilepay' | 'multibanco' + | 'naver_pay' | 'oxxo' | 'p24' + | 'payco' | 'paynow' | 'paypal' | 'pix' | 'promptpay' | 'revolut_pay' + | 'samsung_pay' | 'sepa_debit' | 'sofort' | 'swish' diff --git a/types/Disputes.d.ts b/types/Disputes.d.ts index 58b9257af7..c4c76ede2b 100644 --- a/types/Disputes.d.ts +++ b/types/Disputes.d.ts @@ -45,6 +45,11 @@ declare module 'stripe' { */ currency: string; + /** + * List of eligibility types that are included in `enhanced_evidence`. + */ + enhanced_eligibility_types: Array<'visa_compelling_evidence_3'>; + evidence: Dispute.Evidence; evidence_details: Dispute.EvidenceDetails; @@ -154,6 +159,8 @@ declare module 'stripe' { */ duplicate_charge_id: string | null; + enhanced_evidence: Evidence.EnhancedEvidence; + /** * A description of the product or service that was sold. */ @@ -225,12 +232,126 @@ declare module 'stripe' { uncategorized_text: string | null; } + namespace Evidence { + interface EnhancedEvidence { + visa_compelling_evidence_3?: EnhancedEvidence.VisaCompellingEvidence3; + } + + namespace EnhancedEvidence { + interface VisaCompellingEvidence3 { + /** + * Disputed transaction details for Visa Compelling Evidence 3.0 evidence submission. + */ + disputed_transaction: VisaCompellingEvidence3.DisputedTransaction | null; + + /** + * List of exactly two prior undisputed transaction objects for Visa Compelling Evidence 3.0 evidence submission. + */ + prior_undisputed_transactions: Array< + VisaCompellingEvidence3.PriorUndisputedTransaction + >; + } + + namespace VisaCompellingEvidence3 { + interface DisputedTransaction { + /** + * User Account ID used to log into business platform. Must be recognizable by the user. + */ + customer_account_id: string | null; + + /** + * Unique identifier of the cardholder's device derived from a combination of at least two hardware and software attributes. Must be at least 20 characters. + */ + customer_device_fingerprint: string | null; + + /** + * Unique identifier of the cardholder's device such as a device serial number (e.g., International Mobile Equipment Identity [IMEI]). Must be at least 15 characters. + */ + customer_device_id: string | null; + + /** + * The email address of the customer. + */ + customer_email_address: string | null; + + /** + * The IP address that the customer used when making the purchase. + */ + customer_purchase_ip: string | null; + + /** + * Categorization of disputed payment. + */ + merchandise_or_services: DisputedTransaction.MerchandiseOrServices | null; + + /** + * A description of the product or service that was sold. + */ + product_description: string | null; + + /** + * The address to which a physical product was shipped. All fields are required for Visa Compelling Evidence 3.0 evidence submission. + */ + shipping_address: Stripe.Address | null; + } + + namespace DisputedTransaction { + type MerchandiseOrServices = 'merchandise' | 'services'; + } + + interface PriorUndisputedTransaction { + /** + * Stripe charge ID for the Visa Compelling Evidence 3.0 eligible prior charge. + */ + charge: string; + + /** + * User Account ID used to log into business platform. Must be recognizable by the user. + */ + customer_account_id: string | null; + + /** + * Unique identifier of the cardholder's device derived from a combination of at least two hardware and software attributes. Must be at least 20 characters. + */ + customer_device_fingerprint: string | null; + + /** + * Unique identifier of the cardholder's device such as a device serial number (e.g., International Mobile Equipment Identity [IMEI]). Must be at least 15 characters. + */ + customer_device_id: string | null; + + /** + * The email address of the customer. + */ + customer_email_address: string | null; + + /** + * The IP address that the customer used when making the purchase. + */ + customer_purchase_ip: string | null; + + /** + * A description of the product or service that was sold. + */ + product_description: string | null; + + /** + * The address to which a physical product was shipped. All fields are required for Visa Compelling Evidence 3.0 evidence submission. + */ + shipping_address: Stripe.Address | null; + } + } + } + } + interface EvidenceDetails { /** * Date by which evidence must be submitted in order to successfully challenge dispute. Will be 0 if the customer's bank or credit card company doesn't allow a response for this particular dispute. */ due_by: number | null; + enhanced_eligibility: EvidenceDetails.EnhancedEligibility; + /** * Whether evidence has been staged for this dispute. */ @@ -247,6 +368,37 @@ declare module 'stripe' { submission_count: number; } + namespace EvidenceDetails { + interface EnhancedEligibility { + visa_compelling_evidence_3?: EnhancedEligibility.VisaCompellingEvidence3; + } + + namespace EnhancedEligibility { + interface VisaCompellingEvidence3 { + /** + * List of actions required to qualify dispute for Visa Compelling Evidence 3.0 evidence submission. + */ + required_actions: Array; + + /** + * Visa Compelling Evidence 3.0 eligibility status. + */ + status: VisaCompellingEvidence3.Status; + } + + namespace VisaCompellingEvidence3 { + type RequiredAction = + | 'missing_customer_identifiers' + | 'missing_disputed_transaction_description' + | 'missing_merchandise_or_services' + | 'missing_prior_undisputed_transaction_description' + | 'missing_prior_undisputed_transactions'; + + type Status = 'not_qualified' | 'qualified' | 'requires_action'; + } + } + } + interface PaymentMethodDetails { amazon_pay?: PaymentMethodDetails.AmazonPay; diff --git a/types/DisputesResource.d.ts b/types/DisputesResource.d.ts index 3bbf30e906..a8c7a0c557 100644 --- a/types/DisputesResource.d.ts +++ b/types/DisputesResource.d.ts @@ -98,6 +98,11 @@ declare module 'stripe' { */ duplicate_charge_id?: string; + /** + * Additional evidence for qualifying evidence programs. + */ + enhanced_evidence?: Stripe.Emptyable; + /** * A description of the product or service that was sold. Has a maximum character count of 20,000. */ @@ -168,6 +173,121 @@ declare module 'stripe' { */ uncategorized_text?: string; } + + namespace Evidence { + interface EnhancedEvidence { + /** + * Evidence provided for Visa Compelling Evidence 3.0 evidence submission. + */ + visa_compelling_evidence_3?: EnhancedEvidence.VisaCompellingEvidence3; + } + + namespace EnhancedEvidence { + interface VisaCompellingEvidence3 { + /** + * Disputed transaction details for Visa Compelling Evidence 3.0 evidence submission. + */ + disputed_transaction?: VisaCompellingEvidence3.DisputedTransaction; + + /** + * List of exactly two prior undisputed transaction objects for Visa Compelling Evidence 3.0 evidence submission. + */ + prior_undisputed_transactions?: Array< + VisaCompellingEvidence3.PriorUndisputedTransaction + >; + } + + namespace VisaCompellingEvidence3 { + interface DisputedTransaction { + /** + * User Account ID used to log into business platform. Must be recognizable by the user. + */ + customer_account_id?: Stripe.Emptyable; + + /** + * Unique identifier of the cardholder's device derived from a combination of at least two hardware and software attributes. Must be at least 20 characters. + */ + customer_device_fingerprint?: Stripe.Emptyable; + + /** + * Unique identifier of the cardholder's device such as a device serial number (e.g., International Mobile Equipment Identity [IMEI]). Must be at least 15 characters. + */ + customer_device_id?: Stripe.Emptyable; + + /** + * The email address of the customer. + */ + customer_email_address?: Stripe.Emptyable; + + /** + * The IP address that the customer used when making the purchase. + */ + customer_purchase_ip?: Stripe.Emptyable; + + /** + * Categorization of disputed payment. + */ + merchandise_or_services?: DisputedTransaction.MerchandiseOrServices; + + /** + * A description of the product or service that was sold. + */ + product_description?: Stripe.Emptyable; + + /** + * The address to which a physical product was shipped. All fields are required for Visa Compelling Evidence 3.0 evidence submission. + */ + shipping_address?: Stripe.AddressParam; + } + + namespace DisputedTransaction { + type MerchandiseOrServices = 'merchandise' | 'services'; + } + + interface PriorUndisputedTransaction { + /** + * Stripe charge ID for the Visa Compelling Evidence 3.0 eligible prior charge. + */ + charge: string; + + /** + * User Account ID used to log into business platform. Must be recognizable by the user. + */ + customer_account_id?: Stripe.Emptyable; + + /** + * Unique identifier of the cardholder's device derived from a combination of at least two hardware and software attributes. Must be at least 20 characters. + */ + customer_device_fingerprint?: Stripe.Emptyable; + + /** + * Unique identifier of the cardholder's device such as a device serial number (e.g., International Mobile Equipment Identity [IMEI]). Must be at least 15 characters. + */ + customer_device_id?: Stripe.Emptyable; + + /** + * The email address of the customer. + */ + customer_email_address?: Stripe.Emptyable; + + /** + * The IP address that the customer used when making the purchase. + */ + customer_purchase_ip?: Stripe.Emptyable; + + /** + * A description of the product or service that was sold. + */ + product_description?: Stripe.Emptyable; + + /** + * The address to which a physical product was shipped. All fields are required for Visa Compelling Evidence 3.0 evidence submission. + */ + shipping_address?: Stripe.AddressParam; + } + } + } + } } interface DisputeListParams extends PaginationParams { diff --git a/types/EventTypes.d.ts b/types/EventTypes.d.ts index d22e466207..fd863eb4cb 100644 --- a/types/EventTypes.d.ts +++ b/types/EventTypes.d.ts @@ -123,6 +123,7 @@ declare module 'stripe' { | IssuingTokenCreatedEvent | IssuingTokenUpdatedEvent | IssuingTransactionCreatedEvent + | IssuingTransactionPurchaseDetailsReceiptUpdatedEvent | IssuingTransactionUpdatedEvent | MandateUpdatedEvent | PaymentIntentAmountCapturableUpdatedEvent @@ -166,6 +167,7 @@ declare module 'stripe' { | RadarEarlyFraudWarningCreatedEvent | RadarEarlyFraudWarningUpdatedEvent | RefundCreatedEvent + | RefundFailedEvent | RefundUpdatedEvent | ReportingReportRunFailedEvent | ReportingReportRunSucceededEvent @@ -2169,6 +2171,23 @@ declare module 'stripe' { } } + /** + * Occurs whenever an issuing transaction is updated with receipt data. + */ + interface IssuingTransactionPurchaseDetailsReceiptUpdatedEvent + extends EventBase { + type: 'issuing_transaction.purchase_details_receipt_updated'; + data: IssuingTransactionPurchaseDetailsReceiptUpdatedEvent.Data; + } + + namespace IssuingTransactionPurchaseDetailsReceiptUpdatedEvent { + interface Data extends Stripe.Event.Data { + object: Stripe.Issuing.Transaction; + + previous_attributes?: Partial; + } + } + /** * Occurs whenever an issuing transaction is updated. */ @@ -2842,7 +2861,7 @@ declare module 'stripe' { } /** - * Occurs whenever a refund from a customer's cash balance is created. + * Occurs whenever a refund is created. */ interface RefundCreatedEvent extends EventBase { type: 'refund.created'; @@ -2858,7 +2877,23 @@ declare module 'stripe' { } /** - * Occurs whenever a refund from a customer's cash balance is updated. + * Occurs whenever a refund has failed. + */ + interface RefundFailedEvent extends EventBase { + type: 'refund.failed'; + data: RefundFailedEvent.Data; + } + + namespace RefundFailedEvent { + interface Data extends Stripe.Event.Data { + object: Stripe.Refund; + + previous_attributes?: Partial; + } + } + + /** + * Occurs whenever a refund is updated. */ interface RefundUpdatedEvent extends EventBase { type: 'refund.updated'; diff --git a/types/Events.d.ts b/types/Events.d.ts index 229505475a..889191e126 100644 --- a/types/Events.d.ts +++ b/types/Events.d.ts @@ -154,6 +154,7 @@ declare module 'stripe' { | 'issuing_token.created' | 'issuing_token.updated' | 'issuing_transaction.created' + | 'issuing_transaction.purchase_details_receipt_updated' | 'issuing_transaction.updated' | 'mandate.updated' | 'payment_intent.amount_capturable_updated' @@ -197,6 +198,7 @@ declare module 'stripe' { | 'radar.early_fraud_warning.created' | 'radar.early_fraud_warning.updated' | 'refund.created' + | 'refund.failed' | 'refund.updated' | 'reporting.report_run.failed' | 'reporting.report_run.succeeded' diff --git a/types/Forwarding/Requests.d.ts b/types/Forwarding/Requests.d.ts index 278f206228..aaeae30181 100644 --- a/types/Forwarding/Requests.d.ts +++ b/types/Forwarding/Requests.d.ts @@ -42,6 +42,11 @@ declare module 'stripe' { */ livemode: boolean; + /** + * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. + */ + metadata?: Stripe.Metadata | null; + /** * The PaymentMethod to insert into the forwarded request. Forwarding previously consumed PaymentMethods is allowed. */ diff --git a/types/Forwarding/RequestsResource.d.ts b/types/Forwarding/RequestsResource.d.ts index 7ab588437a..9cf1c84653 100644 --- a/types/Forwarding/RequestsResource.d.ts +++ b/types/Forwarding/RequestsResource.d.ts @@ -28,6 +28,11 @@ declare module 'stripe' { * Specifies which fields in the response should be expanded. */ expand?: Array; + + /** + * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. + */ + metadata?: Stripe.MetadataParam; } namespace RequestCreateParams { diff --git a/types/InvoiceLineItems.d.ts b/types/InvoiceLineItems.d.ts index 53569a3951..d57ae60fae 100644 --- a/types/InvoiceLineItems.d.ts +++ b/types/InvoiceLineItems.d.ts @@ -80,6 +80,9 @@ declare module 'stripe' { */ plan: Stripe.Plan | null; + /** + * Contains pretax credit amounts (ex: discount, credit grants, etc) that apply to this line item. + */ pretax_credit_amounts?: Array | null; /** diff --git a/types/Invoices.d.ts b/types/Invoices.d.ts index 2658214f37..b775afc1b2 100644 --- a/types/Invoices.d.ts +++ b/types/Invoices.d.ts @@ -461,6 +461,9 @@ declare module 'stripe' { */ total_excluding_tax: number | null; + /** + * Contains pretax credit amounts (ex: discount, credit grants, etc) that apply to this invoice. This is a combined list of total_pretax_credit_amounts across all invoice line items. + */ total_pretax_credit_amounts?: Array< Invoice.TotalPretaxCreditAmount > | null; @@ -560,7 +563,7 @@ declare module 'stripe' { interface CustomerTaxId { /** - * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, or `unknown` + * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, or `unknown` */ type: CustomerTaxId.Type; @@ -582,6 +585,7 @@ declare module 'stripe' { | 'bo_tin' | 'br_cnpj' | 'br_cpf' + | 'by_tin' | 'ca_bn' | 'ca_gst_hst' | 'ca_pst_bc' @@ -617,6 +621,8 @@ declare module 'stripe' { | 'kr_brn' | 'kz_bin' | 'li_uid' + | 'ma_vat' + | 'md_vat' | 'mx_rfc' | 'my_frp' | 'my_itn' @@ -640,10 +646,13 @@ declare module 'stripe' { | 'th_vat' | 'tr_tin' | 'tw_vat' + | 'tz_vat' | 'ua_vat' | 'unknown' | 'us_ein' | 'uy_ruc' + | 'uz_tin' + | 'uz_vat' | 've_rif' | 'vn_tin' | 'za_vat'; @@ -1183,10 +1192,15 @@ declare module 'stripe' { | 'giropay' | 'grabpay' | 'ideal' + | 'jp_credit_transfer' + | 'kakao_pay' | 'konbini' + | 'kr_card' | 'link' | 'multibanco' + | 'naver_pay' | 'p24' + | 'payco' | 'paynow' | 'paypal' | 'promptpay' diff --git a/types/InvoicesResource.d.ts b/types/InvoicesResource.d.ts index 59ab729a1a..8ae7f7cf42 100644 --- a/types/InvoicesResource.d.ts +++ b/types/InvoicesResource.d.ts @@ -23,6 +23,11 @@ declare module 'stripe' { */ automatic_tax?: InvoiceCreateParams.AutomaticTax; + /** + * The time when this invoice should be scheduled to finalize. The invoice will be finalized at this time if it is still in draft state. + */ + automatically_finalizes_at?: number; + /** * Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay this invoice using the default source attached to the customer. When sending an invoice, Stripe will email this invoice to the customer with payment instructions. Defaults to `charge_automatically`. */ @@ -511,10 +516,15 @@ declare module 'stripe' { | 'giropay' | 'grabpay' | 'ideal' + | 'jp_credit_transfer' + | 'kakao_pay' | 'konbini' + | 'kr_card' | 'link' | 'multibanco' + | 'naver_pay' | 'p24' + | 'payco' | 'paynow' | 'paypal' | 'promptpay' @@ -764,6 +774,11 @@ declare module 'stripe' { */ automatic_tax?: InvoiceUpdateParams.AutomaticTax; + /** + * The time when this invoice should be scheduled to finalize. The invoice will be finalized at this time if it is still in draft state. To turn off automatic finalization, set `auto_advance` to false. + */ + automatically_finalizes_at?: number; + /** * Either `charge_automatically` or `send_invoice`. This field can be updated only on `draft` invoices. */ @@ -1215,10 +1230,15 @@ declare module 'stripe' { | 'giropay' | 'grabpay' | 'ideal' + | 'jp_credit_transfer' + | 'kakao_pay' | 'konbini' + | 'kr_card' | 'link' | 'multibanco' + | 'naver_pay' | 'p24' + | 'payco' | 'paynow' | 'paypal' | 'promptpay' @@ -1728,6 +1748,7 @@ declare module 'stripe' { | 'lease_tax' | 'pst' | 'qst' + | 'retail_delivery_fee' | 'rst' | 'sales_tax' | 'vat'; @@ -1900,7 +1921,7 @@ declare module 'stripe' { interface TaxId { /** - * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat` + * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` */ type: TaxId.Type; @@ -1922,6 +1943,7 @@ declare module 'stripe' { | 'bo_tin' | 'br_cnpj' | 'br_cpf' + | 'by_tin' | 'ca_bn' | 'ca_gst_hst' | 'ca_pst_bc' @@ -1957,6 +1979,8 @@ declare module 'stripe' { | 'kr_brn' | 'kz_bin' | 'li_uid' + | 'ma_vat' + | 'md_vat' | 'mx_rfc' | 'my_frp' | 'my_itn' @@ -1980,9 +2004,12 @@ declare module 'stripe' { | 'th_vat' | 'tr_tin' | 'tw_vat' + | 'tz_vat' | 'ua_vat' | 'us_ein' | 'uy_ruc' + | 'uz_tin' + | 'uz_vat' | 've_rif' | 'vn_tin' | 'za_vat'; @@ -3078,7 +3105,7 @@ declare module 'stripe' { interface TaxId { /** - * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat` + * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` */ type: TaxId.Type; @@ -3100,6 +3127,7 @@ declare module 'stripe' { | 'bo_tin' | 'br_cnpj' | 'br_cpf' + | 'by_tin' | 'ca_bn' | 'ca_gst_hst' | 'ca_pst_bc' @@ -3135,6 +3163,8 @@ declare module 'stripe' { | 'kr_brn' | 'kz_bin' | 'li_uid' + | 'ma_vat' + | 'md_vat' | 'mx_rfc' | 'my_frp' | 'my_itn' @@ -3158,9 +3188,12 @@ declare module 'stripe' { | 'th_vat' | 'tr_tin' | 'tw_vat' + | 'tz_vat' | 'ua_vat' | 'us_ein' | 'uy_ruc' + | 'uz_tin' + | 'uz_vat' | 've_rif' | 'vn_tin' | 'za_vat'; @@ -4464,7 +4497,7 @@ declare module 'stripe' { interface TaxId { /** - * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat` + * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` */ type: TaxId.Type; @@ -4486,6 +4519,7 @@ declare module 'stripe' { | 'bo_tin' | 'br_cnpj' | 'br_cpf' + | 'by_tin' | 'ca_bn' | 'ca_gst_hst' | 'ca_pst_bc' @@ -4521,6 +4555,8 @@ declare module 'stripe' { | 'kr_brn' | 'kz_bin' | 'li_uid' + | 'ma_vat' + | 'md_vat' | 'mx_rfc' | 'my_frp' | 'my_itn' @@ -4544,9 +4580,12 @@ declare module 'stripe' { | 'th_vat' | 'tr_tin' | 'tw_vat' + | 'tz_vat' | 'ua_vat' | 'us_ein' | 'uy_ruc' + | 'uz_tin' + | 'uz_vat' | 've_rif' | 'vn_tin' | 'za_vat'; @@ -5814,6 +5853,7 @@ declare module 'stripe' { | 'lease_tax' | 'pst' | 'qst' + | 'retail_delivery_fee' | 'rst' | 'sales_tax' | 'vat'; @@ -6052,6 +6092,7 @@ declare module 'stripe' { | 'lease_tax' | 'pst' | 'qst' + | 'retail_delivery_fee' | 'rst' | 'sales_tax' | 'vat'; diff --git a/types/Issuing/CardsResource.d.ts b/types/Issuing/CardsResource.d.ts index 6dda2d6910..bc141ec6a8 100644 --- a/types/Issuing/CardsResource.d.ts +++ b/types/Issuing/CardsResource.d.ts @@ -52,7 +52,7 @@ declare module 'stripe' { replacement_reason?: CardCreateParams.ReplacementReason; /** - * The second line to print on the card. + * The second line to print on the card. Max length: 24 characters. */ second_line?: Stripe.Emptyable; diff --git a/types/Mandates.d.ts b/types/Mandates.d.ts index 27b709e2b9..70c0e93ffa 100644 --- a/types/Mandates.d.ts +++ b/types/Mandates.d.ts @@ -100,6 +100,10 @@ declare module 'stripe' { cashapp?: PaymentMethodDetails.Cashapp; + kakao_pay?: PaymentMethodDetails.KakaoPay; + + kr_card?: PaymentMethodDetails.KrCard; + link?: PaymentMethodDetails.Link; paypal?: PaymentMethodDetails.Paypal; @@ -193,6 +197,10 @@ declare module 'stripe' { interface Cashapp {} + interface KakaoPay {} + + interface KrCard {} + interface Link {} interface Paypal { diff --git a/types/PaymentIntents.d.ts b/types/PaymentIntents.d.ts index d0c3b94a3a..456ae459a8 100644 --- a/types/PaymentIntents.d.ts +++ b/types/PaymentIntents.d.ts @@ -1286,6 +1286,8 @@ declare module 'stripe' { alipay?: PaymentMethodOptions.Alipay; + alma?: PaymentMethodOptions.Alma; + amazon_pay?: PaymentMethodOptions.AmazonPay; au_becs_debit?: PaymentMethodOptions.AuBecsDebit; @@ -1318,20 +1320,28 @@ declare module 'stripe' { interac_present?: PaymentMethodOptions.InteracPresent; + kakao_pay?: PaymentMethodOptions.KakaoPay; + klarna?: PaymentMethodOptions.Klarna; konbini?: PaymentMethodOptions.Konbini; + kr_card?: PaymentMethodOptions.KrCard; + link?: PaymentMethodOptions.Link; mobilepay?: PaymentMethodOptions.Mobilepay; multibanco?: PaymentMethodOptions.Multibanco; + naver_pay?: PaymentMethodOptions.NaverPay; + oxxo?: PaymentMethodOptions.Oxxo; p24?: PaymentMethodOptions.P24; + payco?: PaymentMethodOptions.Payco; + paynow?: PaymentMethodOptions.Paynow; paypal?: PaymentMethodOptions.Paypal; @@ -1342,6 +1352,8 @@ declare module 'stripe' { revolut_pay?: PaymentMethodOptions.RevolutPay; + samsung_pay?: PaymentMethodOptions.SamsungPay; + sepa_debit?: PaymentMethodOptions.SepaDebit; sofort?: PaymentMethodOptions.Sofort; @@ -1476,6 +1488,13 @@ declare module 'stripe' { type SetupFutureUsage = 'none' | 'off_session'; } + interface Alma { + /** + * Controls when the funds will be captured from the customer's account. + */ + capture_method?: 'manual'; + } + interface AmazonPay { /** * Controls when the funds will be captured from the customer's account. @@ -1993,6 +2012,28 @@ declare module 'stripe' { interface InteracPresent {} + interface KakaoPay { + /** + * Controls when the funds will be captured from the customer's account. + */ + capture_method?: 'manual'; + + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + * + * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + * + * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication). + */ + setup_future_usage?: KakaoPay.SetupFutureUsage; + } + + namespace KakaoPay { + type SetupFutureUsage = 'none' | 'off_session'; + } + interface Klarna { /** * Controls when the funds will be captured from the customer's account. @@ -2049,6 +2090,28 @@ declare module 'stripe' { setup_future_usage?: 'none'; } + interface KrCard { + /** + * Controls when the funds will be captured from the customer's account. + */ + capture_method?: 'manual'; + + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + * + * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + * + * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication). + */ + setup_future_usage?: KrCard.SetupFutureUsage; + } + + namespace KrCard { + type SetupFutureUsage = 'none' | 'off_session'; + } + interface Link { /** * Controls when the funds will be captured from the customer's account. @@ -2108,6 +2171,13 @@ declare module 'stripe' { setup_future_usage?: 'none'; } + interface NaverPay { + /** + * Controls when the funds will be captured from the customer's account. + */ + capture_method?: 'manual'; + } + interface Oxxo { /** * The number of calendar days before an OXXO invoice expires. For example, if you create an OXXO invoice on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time. @@ -2139,6 +2209,13 @@ declare module 'stripe' { setup_future_usage?: 'none'; } + interface Payco { + /** + * Controls when the funds will be captured from the customer's account. + */ + capture_method?: 'manual'; + } + interface Paynow { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -2242,6 +2319,13 @@ declare module 'stripe' { type SetupFutureUsage = 'none' | 'off_session'; } + interface SamsungPay { + /** + * Controls when the funds will be captured from the customer's account. + */ + capture_method?: 'manual'; + } + interface SepaDebit { mandate_options?: SepaDebit.MandateOptions; diff --git a/types/PaymentIntentsResource.d.ts b/types/PaymentIntentsResource.d.ts index a612f7262e..cc1b69607e 100644 --- a/types/PaymentIntentsResource.d.ts +++ b/types/PaymentIntentsResource.d.ts @@ -283,6 +283,11 @@ declare module 'stripe' { */ allow_redisplay?: PaymentMethodData.AllowRedisplay; + /** + * If this is a Alma PaymentMethod, this hash contains details about the Alma payment method. + */ + alma?: PaymentMethodData.Alma; + /** * If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method. */ @@ -358,6 +363,11 @@ declare module 'stripe' { */ interac_present?: PaymentMethodData.InteracPresent; + /** + * If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method. + */ + kakao_pay?: PaymentMethodData.KakaoPay; + /** * If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method. */ @@ -368,6 +378,11 @@ declare module 'stripe' { */ konbini?: PaymentMethodData.Konbini; + /** + * If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method. + */ + kr_card?: PaymentMethodData.KrCard; + /** * If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. */ @@ -388,6 +403,11 @@ declare module 'stripe' { */ multibanco?: PaymentMethodData.Multibanco; + /** + * If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method. + */ + naver_pay?: PaymentMethodData.NaverPay; + /** * If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method. */ @@ -398,6 +418,11 @@ declare module 'stripe' { */ p24?: PaymentMethodData.P24; + /** + * If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method. + */ + payco?: PaymentMethodData.Payco; + /** * If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method. */ @@ -428,6 +453,11 @@ declare module 'stripe' { */ revolut_pay?: PaymentMethodData.RevolutPay; + /** + * If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method. + */ + samsung_pay?: PaymentMethodData.SamsungPay; + /** * If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. */ @@ -495,6 +525,8 @@ declare module 'stripe' { type AllowRedisplay = 'always' | 'limited' | 'unspecified'; + interface Alma {} + interface AmazonPay {} interface AuBecsDebit { @@ -643,7 +675,7 @@ declare module 'stripe' { interface Ideal { /** - * The customer's bank. + * The customer's bank. Only use this parameter for existing customers. Don't use it for new customers. */ bank?: Ideal.Bank; } @@ -670,6 +702,8 @@ declare module 'stripe' { interface InteracPresent {} + interface KakaoPay {} + interface Klarna { /** * Customer's date of birth @@ -698,12 +732,25 @@ declare module 'stripe' { interface Konbini {} + interface KrCard {} + interface Link {} interface Mobilepay {} interface Multibanco {} + interface NaverPay { + /** + * Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`. + */ + funding?: NaverPay.Funding; + } + + namespace NaverPay { + type Funding = 'card' | 'points'; + } + interface Oxxo {} interface P24 { @@ -743,6 +790,8 @@ declare module 'stripe' { | 'volkswagen_bank'; } + interface Payco {} + interface Paynow {} interface Paypal {} @@ -760,6 +809,8 @@ declare module 'stripe' { interface RevolutPay {} + interface SamsungPay {} + interface SepaDebit { /** * IBAN of the bank account. @@ -787,6 +838,7 @@ declare module 'stripe' { | 'affirm' | 'afterpay_clearpay' | 'alipay' + | 'alma' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' @@ -800,18 +852,23 @@ declare module 'stripe' { | 'giropay' | 'grabpay' | 'ideal' + | 'kakao_pay' | 'klarna' | 'konbini' + | 'kr_card' | 'link' | 'mobilepay' | 'multibanco' + | 'naver_pay' | 'oxxo' | 'p24' + | 'payco' | 'paynow' | 'paypal' | 'pix' | 'promptpay' | 'revolut_pay' + | 'samsung_pay' | 'sepa_debit' | 'sofort' | 'swish' @@ -881,6 +938,11 @@ declare module 'stripe' { */ alipay?: Stripe.Emptyable; + /** + * If this is a `alma` PaymentMethod, this sub-hash contains details about the Alma payment method options. + */ + alma?: Stripe.Emptyable; + /** * If this is a `amazon_pay` PaymentMethod, this sub-hash contains details about the Amazon Pay payment method options. */ @@ -963,6 +1025,11 @@ declare module 'stripe' { */ interac_present?: Stripe.Emptyable; + /** + * If this is a `kakao_pay` PaymentMethod, this sub-hash contains details about the Kakao Pay payment method options. + */ + kakao_pay?: Stripe.Emptyable; + /** * If this is a `klarna` PaymentMethod, this sub-hash contains details about the Klarna payment method options. */ @@ -973,6 +1040,11 @@ declare module 'stripe' { */ konbini?: Stripe.Emptyable; + /** + * If this is a `kr_card` PaymentMethod, this sub-hash contains details about the KR Card payment method options. + */ + kr_card?: Stripe.Emptyable; + /** * If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options. */ @@ -988,6 +1060,11 @@ declare module 'stripe' { */ multibanco?: Stripe.Emptyable; + /** + * If this is a `naver_pay` PaymentMethod, this sub-hash contains details about the Naver Pay payment method options. + */ + naver_pay?: Stripe.Emptyable; + /** * If this is a `oxxo` PaymentMethod, this sub-hash contains details about the OXXO payment method options. */ @@ -998,6 +1075,11 @@ declare module 'stripe' { */ p24?: Stripe.Emptyable; + /** + * If this is a `payco` PaymentMethod, this sub-hash contains details about the PAYCO payment method options. + */ + payco?: Stripe.Emptyable; + /** * If this is a `paynow` PaymentMethod, this sub-hash contains details about the PayNow payment method options. */ @@ -1023,6 +1105,11 @@ declare module 'stripe' { */ revolut_pay?: Stripe.Emptyable; + /** + * If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options. + */ + samsung_pay?: Stripe.Emptyable; + /** * If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options. */ @@ -1199,6 +1286,17 @@ declare module 'stripe' { type SetupFutureUsage = 'none' | 'off_session'; } + interface Alma { + /** + * Controls when the funds are captured from the customer's account. + * + * If provided, this parameter overrides the behavior of the top-level [capture_method](https://stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + * + * If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + */ + capture_method?: Stripe.Emptyable<'manual'>; + } + interface AmazonPay { /** * Controls when the funds are captured from the customer's account. @@ -1861,6 +1959,32 @@ declare module 'stripe' { interface InteracPresent {} + interface KakaoPay { + /** + * Controls when the funds are captured from the customer's account. + * + * If provided, this parameter overrides the behavior of the top-level [capture_method](https://stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + * + * If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + */ + capture_method?: Stripe.Emptyable<'manual'>; + + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + * + * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + * + * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication). + */ + setup_future_usage?: Stripe.Emptyable; + } + + namespace KakaoPay { + type SetupFutureUsage = 'none' | 'off_session'; + } + interface Klarna { /** * Controls when the funds are captured from the customer's account. @@ -1975,6 +2099,32 @@ declare module 'stripe' { setup_future_usage?: 'none'; } + interface KrCard { + /** + * Controls when the funds are captured from the customer's account. + * + * If provided, this parameter overrides the behavior of the top-level [capture_method](https://stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + * + * If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + */ + capture_method?: Stripe.Emptyable<'manual'>; + + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + * + * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + * + * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication). + */ + setup_future_usage?: Stripe.Emptyable; + } + + namespace KrCard { + type SetupFutureUsage = 'none' | 'off_session'; + } + interface Link { /** * Controls when the funds are captured from the customer's account. @@ -2048,6 +2198,17 @@ declare module 'stripe' { setup_future_usage?: 'none'; } + interface NaverPay { + /** + * Controls when the funds are captured from the customer's account. + * + * If provided, this parameter overrides the behavior of the top-level [capture_method](https://stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + * + * If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + */ + capture_method?: Stripe.Emptyable<'manual'>; + } + interface Oxxo { /** * The number of calendar days before an OXXO voucher expires. For example, if you create an OXXO voucher on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time. @@ -2088,6 +2249,17 @@ declare module 'stripe' { tos_shown_and_accepted?: boolean; } + interface Payco { + /** + * Controls when the funds are captured from the customer's account. + * + * If provided, this parameter overrides the behavior of the top-level [capture_method](https://stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + * + * If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + */ + capture_method?: Stripe.Emptyable<'manual'>; + } + interface Paynow { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -2231,6 +2403,17 @@ declare module 'stripe' { type SetupFutureUsage = 'none' | 'off_session'; } + interface SamsungPay { + /** + * Controls when the funds are captured from the customer's account. + * + * If provided, this parameter overrides the behavior of the top-level [capture_method](https://stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + * + * If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + */ + capture_method?: Stripe.Emptyable<'manual'>; + } + interface SepaDebit { /** * Additional fields for Mandate creation @@ -2700,6 +2883,11 @@ declare module 'stripe' { */ allow_redisplay?: PaymentMethodData.AllowRedisplay; + /** + * If this is a Alma PaymentMethod, this hash contains details about the Alma payment method. + */ + alma?: PaymentMethodData.Alma; + /** * If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method. */ @@ -2775,6 +2963,11 @@ declare module 'stripe' { */ interac_present?: PaymentMethodData.InteracPresent; + /** + * If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method. + */ + kakao_pay?: PaymentMethodData.KakaoPay; + /** * If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method. */ @@ -2785,6 +2978,11 @@ declare module 'stripe' { */ konbini?: PaymentMethodData.Konbini; + /** + * If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method. + */ + kr_card?: PaymentMethodData.KrCard; + /** * If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. */ @@ -2805,6 +3003,11 @@ declare module 'stripe' { */ multibanco?: PaymentMethodData.Multibanco; + /** + * If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method. + */ + naver_pay?: PaymentMethodData.NaverPay; + /** * If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method. */ @@ -2815,6 +3018,11 @@ declare module 'stripe' { */ p24?: PaymentMethodData.P24; + /** + * If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method. + */ + payco?: PaymentMethodData.Payco; + /** * If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method. */ @@ -2845,6 +3053,11 @@ declare module 'stripe' { */ revolut_pay?: PaymentMethodData.RevolutPay; + /** + * If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method. + */ + samsung_pay?: PaymentMethodData.SamsungPay; + /** * If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. */ @@ -2912,6 +3125,8 @@ declare module 'stripe' { type AllowRedisplay = 'always' | 'limited' | 'unspecified'; + interface Alma {} + interface AmazonPay {} interface AuBecsDebit { @@ -3060,7 +3275,7 @@ declare module 'stripe' { interface Ideal { /** - * The customer's bank. + * The customer's bank. Only use this parameter for existing customers. Don't use it for new customers. */ bank?: Ideal.Bank; } @@ -3087,6 +3302,8 @@ declare module 'stripe' { interface InteracPresent {} + interface KakaoPay {} + interface Klarna { /** * Customer's date of birth @@ -3115,12 +3332,25 @@ declare module 'stripe' { interface Konbini {} + interface KrCard {} + interface Link {} interface Mobilepay {} interface Multibanco {} + interface NaverPay { + /** + * Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`. + */ + funding?: NaverPay.Funding; + } + + namespace NaverPay { + type Funding = 'card' | 'points'; + } + interface Oxxo {} interface P24 { @@ -3160,6 +3390,8 @@ declare module 'stripe' { | 'volkswagen_bank'; } + interface Payco {} + interface Paynow {} interface Paypal {} @@ -3177,6 +3409,8 @@ declare module 'stripe' { interface RevolutPay {} + interface SamsungPay {} + interface SepaDebit { /** * IBAN of the bank account. @@ -3204,6 +3438,7 @@ declare module 'stripe' { | 'affirm' | 'afterpay_clearpay' | 'alipay' + | 'alma' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' @@ -3217,18 +3452,23 @@ declare module 'stripe' { | 'giropay' | 'grabpay' | 'ideal' + | 'kakao_pay' | 'klarna' | 'konbini' + | 'kr_card' | 'link' | 'mobilepay' | 'multibanco' + | 'naver_pay' | 'oxxo' | 'p24' + | 'payco' | 'paynow' | 'paypal' | 'pix' | 'promptpay' | 'revolut_pay' + | 'samsung_pay' | 'sepa_debit' | 'sofort' | 'swish' @@ -3298,6 +3538,11 @@ declare module 'stripe' { */ alipay?: Stripe.Emptyable; + /** + * If this is a `alma` PaymentMethod, this sub-hash contains details about the Alma payment method options. + */ + alma?: Stripe.Emptyable; + /** * If this is a `amazon_pay` PaymentMethod, this sub-hash contains details about the Amazon Pay payment method options. */ @@ -3380,6 +3625,11 @@ declare module 'stripe' { */ interac_present?: Stripe.Emptyable; + /** + * If this is a `kakao_pay` PaymentMethod, this sub-hash contains details about the Kakao Pay payment method options. + */ + kakao_pay?: Stripe.Emptyable; + /** * If this is a `klarna` PaymentMethod, this sub-hash contains details about the Klarna payment method options. */ @@ -3390,6 +3640,11 @@ declare module 'stripe' { */ konbini?: Stripe.Emptyable; + /** + * If this is a `kr_card` PaymentMethod, this sub-hash contains details about the KR Card payment method options. + */ + kr_card?: Stripe.Emptyable; + /** * If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options. */ @@ -3405,6 +3660,11 @@ declare module 'stripe' { */ multibanco?: Stripe.Emptyable; + /** + * If this is a `naver_pay` PaymentMethod, this sub-hash contains details about the Naver Pay payment method options. + */ + naver_pay?: Stripe.Emptyable; + /** * If this is a `oxxo` PaymentMethod, this sub-hash contains details about the OXXO payment method options. */ @@ -3415,6 +3675,11 @@ declare module 'stripe' { */ p24?: Stripe.Emptyable; + /** + * If this is a `payco` PaymentMethod, this sub-hash contains details about the PAYCO payment method options. + */ + payco?: Stripe.Emptyable; + /** * If this is a `paynow` PaymentMethod, this sub-hash contains details about the PayNow payment method options. */ @@ -3440,6 +3705,11 @@ declare module 'stripe' { */ revolut_pay?: Stripe.Emptyable; + /** + * If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options. + */ + samsung_pay?: Stripe.Emptyable; + /** * If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options. */ @@ -3616,6 +3886,17 @@ declare module 'stripe' { type SetupFutureUsage = 'none' | 'off_session'; } + interface Alma { + /** + * Controls when the funds are captured from the customer's account. + * + * If provided, this parameter overrides the behavior of the top-level [capture_method](https://stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + * + * If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + */ + capture_method?: Stripe.Emptyable<'manual'>; + } + interface AmazonPay { /** * Controls when the funds are captured from the customer's account. @@ -4278,6 +4559,32 @@ declare module 'stripe' { interface InteracPresent {} + interface KakaoPay { + /** + * Controls when the funds are captured from the customer's account. + * + * If provided, this parameter overrides the behavior of the top-level [capture_method](https://stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + * + * If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + */ + capture_method?: Stripe.Emptyable<'manual'>; + + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + * + * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + * + * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication). + */ + setup_future_usage?: Stripe.Emptyable; + } + + namespace KakaoPay { + type SetupFutureUsage = 'none' | 'off_session'; + } + interface Klarna { /** * Controls when the funds are captured from the customer's account. @@ -4392,6 +4699,32 @@ declare module 'stripe' { setup_future_usage?: 'none'; } + interface KrCard { + /** + * Controls when the funds are captured from the customer's account. + * + * If provided, this parameter overrides the behavior of the top-level [capture_method](https://stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + * + * If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + */ + capture_method?: Stripe.Emptyable<'manual'>; + + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + * + * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + * + * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication). + */ + setup_future_usage?: Stripe.Emptyable; + } + + namespace KrCard { + type SetupFutureUsage = 'none' | 'off_session'; + } + interface Link { /** * Controls when the funds are captured from the customer's account. @@ -4465,6 +4798,17 @@ declare module 'stripe' { setup_future_usage?: 'none'; } + interface NaverPay { + /** + * Controls when the funds are captured from the customer's account. + * + * If provided, this parameter overrides the behavior of the top-level [capture_method](https://stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + * + * If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + */ + capture_method?: Stripe.Emptyable<'manual'>; + } + interface Oxxo { /** * The number of calendar days before an OXXO voucher expires. For example, if you create an OXXO voucher on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time. @@ -4505,6 +4849,17 @@ declare module 'stripe' { tos_shown_and_accepted?: boolean; } + interface Payco { + /** + * Controls when the funds are captured from the customer's account. + * + * If provided, this parameter overrides the behavior of the top-level [capture_method](https://stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + * + * If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + */ + capture_method?: Stripe.Emptyable<'manual'>; + } + interface Paynow { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -4648,6 +5003,17 @@ declare module 'stripe' { type SetupFutureUsage = 'none' | 'off_session'; } + interface SamsungPay { + /** + * Controls when the funds are captured from the customer's account. + * + * If provided, this parameter overrides the behavior of the top-level [capture_method](https://stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + * + * If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + */ + capture_method?: Stripe.Emptyable<'manual'>; + } + interface SepaDebit { /** * Additional fields for Mandate creation @@ -4954,11 +5320,9 @@ declare module 'stripe' { interface PaymentIntentApplyCustomerBalanceParams { /** - * Amount that you intend to apply to this PaymentIntent from the customer's cash balance. - * - * A positive integer representing how much to charge in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) (for example, 100 cents to charge 1 USD or 100 to charge 100 JPY, a zero-decimal currency). + * Amount that you intend to apply to this PaymentIntent from the customer's cash balance. If the PaymentIntent was created by an Invoice, the full amount of the PaymentIntent is applied regardless of this parameter. * - * The maximum amount is the amount of the PaymentIntent. + * A positive integer representing how much to charge in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) (for example, 100 cents to charge 1 USD or 100 to charge 100 JPY, a zero-decimal currency). The maximum amount is the amount of the PaymentIntent. * * When you omit the amount, it defaults to the remaining amount requested on the PaymentIntent. */ @@ -5229,6 +5593,11 @@ declare module 'stripe' { */ allow_redisplay?: PaymentMethodData.AllowRedisplay; + /** + * If this is a Alma PaymentMethod, this hash contains details about the Alma payment method. + */ + alma?: PaymentMethodData.Alma; + /** * If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method. */ @@ -5304,6 +5673,11 @@ declare module 'stripe' { */ interac_present?: PaymentMethodData.InteracPresent; + /** + * If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method. + */ + kakao_pay?: PaymentMethodData.KakaoPay; + /** * If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method. */ @@ -5314,6 +5688,11 @@ declare module 'stripe' { */ konbini?: PaymentMethodData.Konbini; + /** + * If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method. + */ + kr_card?: PaymentMethodData.KrCard; + /** * If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. */ @@ -5334,6 +5713,11 @@ declare module 'stripe' { */ multibanco?: PaymentMethodData.Multibanco; + /** + * If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method. + */ + naver_pay?: PaymentMethodData.NaverPay; + /** * If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method. */ @@ -5344,6 +5728,11 @@ declare module 'stripe' { */ p24?: PaymentMethodData.P24; + /** + * If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method. + */ + payco?: PaymentMethodData.Payco; + /** * If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method. */ @@ -5374,6 +5763,11 @@ declare module 'stripe' { */ revolut_pay?: PaymentMethodData.RevolutPay; + /** + * If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method. + */ + samsung_pay?: PaymentMethodData.SamsungPay; + /** * If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. */ @@ -5441,6 +5835,8 @@ declare module 'stripe' { type AllowRedisplay = 'always' | 'limited' | 'unspecified'; + interface Alma {} + interface AmazonPay {} interface AuBecsDebit { @@ -5589,7 +5985,7 @@ declare module 'stripe' { interface Ideal { /** - * The customer's bank. + * The customer's bank. Only use this parameter for existing customers. Don't use it for new customers. */ bank?: Ideal.Bank; } @@ -5616,6 +6012,8 @@ declare module 'stripe' { interface InteracPresent {} + interface KakaoPay {} + interface Klarna { /** * Customer's date of birth @@ -5644,12 +6042,25 @@ declare module 'stripe' { interface Konbini {} + interface KrCard {} + interface Link {} interface Mobilepay {} interface Multibanco {} + interface NaverPay { + /** + * Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`. + */ + funding?: NaverPay.Funding; + } + + namespace NaverPay { + type Funding = 'card' | 'points'; + } + interface Oxxo {} interface P24 { @@ -5689,6 +6100,8 @@ declare module 'stripe' { | 'volkswagen_bank'; } + interface Payco {} + interface Paynow {} interface Paypal {} @@ -5706,6 +6119,8 @@ declare module 'stripe' { interface RevolutPay {} + interface SamsungPay {} + interface SepaDebit { /** * IBAN of the bank account. @@ -5733,6 +6148,7 @@ declare module 'stripe' { | 'affirm' | 'afterpay_clearpay' | 'alipay' + | 'alma' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' @@ -5746,18 +6162,23 @@ declare module 'stripe' { | 'giropay' | 'grabpay' | 'ideal' + | 'kakao_pay' | 'klarna' | 'konbini' + | 'kr_card' | 'link' | 'mobilepay' | 'multibanco' + | 'naver_pay' | 'oxxo' | 'p24' + | 'payco' | 'paynow' | 'paypal' | 'pix' | 'promptpay' | 'revolut_pay' + | 'samsung_pay' | 'sepa_debit' | 'sofort' | 'swish' @@ -5827,6 +6248,11 @@ declare module 'stripe' { */ alipay?: Stripe.Emptyable; + /** + * If this is a `alma` PaymentMethod, this sub-hash contains details about the Alma payment method options. + */ + alma?: Stripe.Emptyable; + /** * If this is a `amazon_pay` PaymentMethod, this sub-hash contains details about the Amazon Pay payment method options. */ @@ -5909,6 +6335,11 @@ declare module 'stripe' { */ interac_present?: Stripe.Emptyable; + /** + * If this is a `kakao_pay` PaymentMethod, this sub-hash contains details about the Kakao Pay payment method options. + */ + kakao_pay?: Stripe.Emptyable; + /** * If this is a `klarna` PaymentMethod, this sub-hash contains details about the Klarna payment method options. */ @@ -5919,6 +6350,11 @@ declare module 'stripe' { */ konbini?: Stripe.Emptyable; + /** + * If this is a `kr_card` PaymentMethod, this sub-hash contains details about the KR Card payment method options. + */ + kr_card?: Stripe.Emptyable; + /** * If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options. */ @@ -5934,6 +6370,11 @@ declare module 'stripe' { */ multibanco?: Stripe.Emptyable; + /** + * If this is a `naver_pay` PaymentMethod, this sub-hash contains details about the Naver Pay payment method options. + */ + naver_pay?: Stripe.Emptyable; + /** * If this is a `oxxo` PaymentMethod, this sub-hash contains details about the OXXO payment method options. */ @@ -5944,6 +6385,11 @@ declare module 'stripe' { */ p24?: Stripe.Emptyable; + /** + * If this is a `payco` PaymentMethod, this sub-hash contains details about the PAYCO payment method options. + */ + payco?: Stripe.Emptyable; + /** * If this is a `paynow` PaymentMethod, this sub-hash contains details about the PayNow payment method options. */ @@ -5969,6 +6415,11 @@ declare module 'stripe' { */ revolut_pay?: Stripe.Emptyable; + /** + * If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options. + */ + samsung_pay?: Stripe.Emptyable; + /** * If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options. */ @@ -6145,6 +6596,17 @@ declare module 'stripe' { type SetupFutureUsage = 'none' | 'off_session'; } + interface Alma { + /** + * Controls when the funds are captured from the customer's account. + * + * If provided, this parameter overrides the behavior of the top-level [capture_method](https://stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + * + * If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + */ + capture_method?: Stripe.Emptyable<'manual'>; + } + interface AmazonPay { /** * Controls when the funds are captured from the customer's account. @@ -6807,6 +7269,32 @@ declare module 'stripe' { interface InteracPresent {} + interface KakaoPay { + /** + * Controls when the funds are captured from the customer's account. + * + * If provided, this parameter overrides the behavior of the top-level [capture_method](https://stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + * + * If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + */ + capture_method?: Stripe.Emptyable<'manual'>; + + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + * + * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + * + * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication). + */ + setup_future_usage?: Stripe.Emptyable; + } + + namespace KakaoPay { + type SetupFutureUsage = 'none' | 'off_session'; + } + interface Klarna { /** * Controls when the funds are captured from the customer's account. @@ -6921,6 +7409,32 @@ declare module 'stripe' { setup_future_usage?: 'none'; } + interface KrCard { + /** + * Controls when the funds are captured from the customer's account. + * + * If provided, this parameter overrides the behavior of the top-level [capture_method](https://stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + * + * If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + */ + capture_method?: Stripe.Emptyable<'manual'>; + + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + * + * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + * + * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication). + */ + setup_future_usage?: Stripe.Emptyable; + } + + namespace KrCard { + type SetupFutureUsage = 'none' | 'off_session'; + } + interface Link { /** * Controls when the funds are captured from the customer's account. @@ -6994,6 +7508,17 @@ declare module 'stripe' { setup_future_usage?: 'none'; } + interface NaverPay { + /** + * Controls when the funds are captured from the customer's account. + * + * If provided, this parameter overrides the behavior of the top-level [capture_method](https://stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + * + * If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + */ + capture_method?: Stripe.Emptyable<'manual'>; + } + interface Oxxo { /** * The number of calendar days before an OXXO voucher expires. For example, if you create an OXXO voucher on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time. @@ -7034,6 +7559,17 @@ declare module 'stripe' { tos_shown_and_accepted?: boolean; } + interface Payco { + /** + * Controls when the funds are captured from the customer's account. + * + * If provided, this parameter overrides the behavior of the top-level [capture_method](https://stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + * + * If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + */ + capture_method?: Stripe.Emptyable<'manual'>; + } + interface Paynow { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -7177,6 +7713,17 @@ declare module 'stripe' { type SetupFutureUsage = 'none' | 'off_session'; } + interface SamsungPay { + /** + * Controls when the funds are captured from the customer's account. + * + * If provided, this parameter overrides the behavior of the top-level [capture_method](https://stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + * + * If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + */ + capture_method?: Stripe.Emptyable<'manual'>; + } + interface SepaDebit { /** * Additional fields for Mandate creation diff --git a/types/PaymentLinks.d.ts b/types/PaymentLinks.d.ts index bc4b6cb641..4ee7ef62be 100644 --- a/types/PaymentLinks.d.ts +++ b/types/PaymentLinks.d.ts @@ -542,6 +542,7 @@ declare module 'stripe' { | 'affirm' | 'afterpay_clearpay' | 'alipay' + | 'alma' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' diff --git a/types/PaymentLinksResource.d.ts b/types/PaymentLinksResource.d.ts index da7bec4acf..c5d8aa6088 100644 --- a/types/PaymentLinksResource.d.ts +++ b/types/PaymentLinksResource.d.ts @@ -601,6 +601,7 @@ declare module 'stripe' { | 'affirm' | 'afterpay_clearpay' | 'alipay' + | 'alma' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' @@ -1525,6 +1526,7 @@ declare module 'stripe' { | 'affirm' | 'afterpay_clearpay' | 'alipay' + | 'alma' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' diff --git a/types/PaymentMethodConfigurations.d.ts b/types/PaymentMethodConfigurations.d.ts index 53aa3aadae..f5157ca0d3 100644 --- a/types/PaymentMethodConfigurations.d.ts +++ b/types/PaymentMethodConfigurations.d.ts @@ -42,6 +42,8 @@ declare module 'stripe' { alipay?: PaymentMethodConfiguration.Alipay; + alma?: PaymentMethodConfiguration.Alma; + amazon_pay?: PaymentMethodConfiguration.AmazonPay; apple_pay?: PaymentMethodConfiguration.ApplePay; @@ -277,6 +279,40 @@ declare module 'stripe' { } } + interface Alma { + /** + * Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active. + */ + available: boolean; + + display_preference: Alma.DisplayPreference; + } + + namespace Alma { + interface DisplayPreference { + /** + * For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. + */ + overridable: boolean | null; + + /** + * The account's display preference. + */ + preference: DisplayPreference.Preference; + + /** + * The effective display preference value. + */ + value: DisplayPreference.Value; + } + + namespace DisplayPreference { + type Preference = 'none' | 'off' | 'on'; + + type Value = 'off' | 'on'; + } + } + interface AmazonPay { /** * Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active. diff --git a/types/PaymentMethodConfigurationsResource.d.ts b/types/PaymentMethodConfigurationsResource.d.ts index c7ff55d37d..58f9efff96 100644 --- a/types/PaymentMethodConfigurationsResource.d.ts +++ b/types/PaymentMethodConfigurationsResource.d.ts @@ -23,6 +23,11 @@ declare module 'stripe' { */ alipay?: PaymentMethodConfigurationCreateParams.Alipay; + /** + * Alma is a Buy Now, Pay Later payment method that offers customers the ability to pay in 2, 3, or 4 installments. + */ + alma?: PaymentMethodConfigurationCreateParams.Alma; + /** * Amazon Pay is a wallet payment method that lets your customers check out the same way as on Amazon. */ @@ -209,7 +214,7 @@ declare module 'stripe' { twint?: PaymentMethodConfigurationCreateParams.Twint; /** - * Stripe users in the United States can accept ACH direct debit payments from customers with a US bank account using the Automated Clearing House (ACH) payments system operated by Nacha. Check this [page](https://stripe.com/docs/payments/ach-debit) for more details. + * Stripe users in the United States can accept ACH direct debit payments from customers with a US bank account using the Automated Clearing House (ACH) payments system operated by Nacha. Check this [page](https://stripe.com/docs/payments/ach-direct-debit) for more details. */ us_bank_account?: PaymentMethodConfigurationCreateParams.UsBankAccount; @@ -305,6 +310,26 @@ declare module 'stripe' { } } + interface Alma { + /** + * Whether or not the payment method should be displayed. + */ + display_preference?: Alma.DisplayPreference; + } + + namespace Alma { + interface DisplayPreference { + /** + * The account's preference for whether or not to display this payment method. + */ + preference?: DisplayPreference.Preference; + } + + namespace DisplayPreference { + type Preference = 'none' | 'off' | 'on'; + } + } + interface AmazonPay { /** * Whether or not the payment method should be displayed. @@ -1079,6 +1104,11 @@ declare module 'stripe' { */ alipay?: PaymentMethodConfigurationUpdateParams.Alipay; + /** + * Alma is a Buy Now, Pay Later payment method that offers customers the ability to pay in 2, 3, or 4 installments. + */ + alma?: PaymentMethodConfigurationUpdateParams.Alma; + /** * Amazon Pay is a wallet payment method that lets your customers check out the same way as on Amazon. */ @@ -1260,7 +1290,7 @@ declare module 'stripe' { twint?: PaymentMethodConfigurationUpdateParams.Twint; /** - * Stripe users in the United States can accept ACH direct debit payments from customers with a US bank account using the Automated Clearing House (ACH) payments system operated by Nacha. Check this [page](https://stripe.com/docs/payments/ach-debit) for more details. + * Stripe users in the United States can accept ACH direct debit payments from customers with a US bank account using the Automated Clearing House (ACH) payments system operated by Nacha. Check this [page](https://stripe.com/docs/payments/ach-direct-debit) for more details. */ us_bank_account?: PaymentMethodConfigurationUpdateParams.UsBankAccount; @@ -1356,6 +1386,26 @@ declare module 'stripe' { } } + interface Alma { + /** + * Whether or not the payment method should be displayed. + */ + display_preference?: Alma.DisplayPreference; + } + + namespace Alma { + interface DisplayPreference { + /** + * The account's preference for whether or not to display this payment method. + */ + preference?: DisplayPreference.Preference; + } + + namespace DisplayPreference { + type Preference = 'none' | 'off' | 'on'; + } + } + interface AmazonPay { /** * Whether or not the payment method should be displayed. diff --git a/types/PaymentMethodDomains.d.ts b/types/PaymentMethodDomains.d.ts index f11f39a902..cefded0fee 100644 --- a/types/PaymentMethodDomains.d.ts +++ b/types/PaymentMethodDomains.d.ts @@ -19,6 +19,11 @@ declare module 'stripe' { */ object: 'payment_method_domain'; + /** + * Indicates the status of a specific payment method on a payment method domain. + */ + amazon_pay: PaymentMethodDomain.AmazonPay; + /** * Indicates the status of a specific payment method on a payment method domain. */ @@ -61,6 +66,29 @@ declare module 'stripe' { } namespace PaymentMethodDomain { + interface AmazonPay { + /** + * The status of the payment method on the domain. + */ + status: AmazonPay.Status; + + /** + * Contains additional details about the status of a payment method for a specific payment method domain. + */ + status_details?: AmazonPay.StatusDetails; + } + + namespace AmazonPay { + type Status = 'active' | 'inactive'; + + interface StatusDetails { + /** + * The error message associated with the status of the payment method on the domain. + */ + error_message: string; + } + } + interface ApplePay { /** * The status of the payment method on the domain. diff --git a/types/PaymentMethods.d.ts b/types/PaymentMethods.d.ts index 3151ede73c..df50a4e7fd 100644 --- a/types/PaymentMethods.d.ts +++ b/types/PaymentMethods.d.ts @@ -33,6 +33,8 @@ declare module 'stripe' { */ allow_redisplay?: PaymentMethod.AllowRedisplay; + alma?: PaymentMethod.Alma; + amazon_pay?: PaymentMethod.AmazonPay; au_becs_debit?: PaymentMethod.AuBecsDebit; @@ -77,10 +79,14 @@ declare module 'stripe' { interac_present?: PaymentMethod.InteracPresent; + kakao_pay?: PaymentMethod.KakaoPay; + klarna?: PaymentMethod.Klarna; konbini?: PaymentMethod.Konbini; + kr_card?: PaymentMethod.KrCard; + link?: PaymentMethod.Link; /** @@ -97,10 +103,14 @@ declare module 'stripe' { multibanco?: PaymentMethod.Multibanco; + naver_pay?: PaymentMethod.NaverPay; + oxxo?: PaymentMethod.Oxxo; p24?: PaymentMethod.P24; + payco?: PaymentMethod.Payco; + paynow?: PaymentMethod.Paynow; paypal?: PaymentMethod.Paypal; @@ -116,6 +126,8 @@ declare module 'stripe' { revolut_pay?: PaymentMethod.RevolutPay; + samsung_pay?: PaymentMethod.SamsungPay; + sepa_debit?: PaymentMethod.SepaDebit; sofort?: PaymentMethod.Sofort; @@ -172,6 +184,8 @@ declare module 'stripe' { type AllowRedisplay = 'always' | 'limited' | 'unspecified'; + interface Alma {} + interface AmazonPay {} interface AuBecsDebit { @@ -1074,6 +1088,8 @@ declare module 'stripe' { | 'magnetic_stripe_track2'; } + interface KakaoPay {} + interface Klarna { /** * The customer's date of birth, if provided. @@ -1102,6 +1118,44 @@ declare module 'stripe' { interface Konbini {} + interface KrCard { + /** + * The local credit or debit card brand. + */ + brand: KrCard.Brand | null; + + /** + * The last four digits of the card. This may not be present for American Express cards. + */ + last4: string | null; + } + + namespace KrCard { + type Brand = + | 'bc' + | 'citi' + | 'hana' + | 'hyundai' + | 'jeju' + | 'jeonbuk' + | 'kakaobank' + | 'kbank' + | 'kdbbank' + | 'kookmin' + | 'kwangju' + | 'lotte' + | 'mg' + | 'nh' + | 'post' + | 'samsung' + | 'savingsbank' + | 'shinhan' + | 'shinhyup' + | 'suhyup' + | 'tossbank' + | 'woori'; + } + interface Link { /** * Account owner's email address. @@ -1119,6 +1173,17 @@ declare module 'stripe' { interface Multibanco {} + interface NaverPay { + /** + * Whether to fund this transaction with Naver Pay points or a card. + */ + funding: NaverPay.Funding; + } + + namespace NaverPay { + type Funding = 'card' | 'points'; + } + interface Oxxo {} interface P24 { @@ -1158,6 +1223,8 @@ declare module 'stripe' { | 'volkswagen_bank'; } + interface Payco {} + interface Paynow {} interface Paypal { @@ -1186,6 +1253,8 @@ declare module 'stripe' { interface RevolutPay {} + interface SamsungPay {} + interface SepaDebit { /** * Bank code of bank associated with the bank account. @@ -1248,6 +1317,7 @@ declare module 'stripe' { | 'affirm' | 'afterpay_clearpay' | 'alipay' + | 'alma' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' @@ -1264,18 +1334,23 @@ declare module 'stripe' { | 'grabpay' | 'ideal' | 'interac_present' + | 'kakao_pay' | 'klarna' | 'konbini' + | 'kr_card' | 'link' | 'mobilepay' | 'multibanco' + | 'naver_pay' | 'oxxo' | 'p24' + | 'payco' | 'paynow' | 'paypal' | 'pix' | 'promptpay' | 'revolut_pay' + | 'samsung_pay' | 'sepa_debit' | 'sofort' | 'swish' diff --git a/types/PaymentMethodsResource.d.ts b/types/PaymentMethodsResource.d.ts index 9d2398e5e1..5b5d933872 100644 --- a/types/PaymentMethodsResource.d.ts +++ b/types/PaymentMethodsResource.d.ts @@ -28,6 +28,11 @@ declare module 'stripe' { */ allow_redisplay?: PaymentMethodCreateParams.AllowRedisplay; + /** + * If this is a Alma PaymentMethod, this hash contains details about the Alma payment method. + */ + alma?: PaymentMethodCreateParams.Alma; + /** * If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method. */ @@ -118,6 +123,11 @@ declare module 'stripe' { */ interac_present?: PaymentMethodCreateParams.InteracPresent; + /** + * If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method. + */ + kakao_pay?: PaymentMethodCreateParams.KakaoPay; + /** * If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method. */ @@ -128,6 +138,11 @@ declare module 'stripe' { */ konbini?: PaymentMethodCreateParams.Konbini; + /** + * If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method. + */ + kr_card?: PaymentMethodCreateParams.KrCard; + /** * If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. */ @@ -148,6 +163,11 @@ declare module 'stripe' { */ multibanco?: PaymentMethodCreateParams.Multibanco; + /** + * If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method. + */ + naver_pay?: PaymentMethodCreateParams.NaverPay; + /** * If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method. */ @@ -158,6 +178,11 @@ declare module 'stripe' { */ p24?: PaymentMethodCreateParams.P24; + /** + * If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method. + */ + payco?: PaymentMethodCreateParams.Payco; + /** * The PaymentMethod to share. */ @@ -193,6 +218,11 @@ declare module 'stripe' { */ revolut_pay?: PaymentMethodCreateParams.RevolutPay; + /** + * If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method. + */ + samsung_pay?: PaymentMethodCreateParams.SamsungPay; + /** * If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. */ @@ -260,6 +290,8 @@ declare module 'stripe' { type AllowRedisplay = 'always' | 'limited' | 'unspecified'; + interface Alma {} + interface AmazonPay {} interface AuBecsDebit { @@ -453,7 +485,7 @@ declare module 'stripe' { interface Ideal { /** - * The customer's bank. + * The customer's bank. Only use this parameter for existing customers. Don't use it for new customers. */ bank?: Ideal.Bank; } @@ -480,6 +512,8 @@ declare module 'stripe' { interface InteracPresent {} + interface KakaoPay {} + interface Klarna { /** * Customer's date of birth @@ -508,12 +542,25 @@ declare module 'stripe' { interface Konbini {} + interface KrCard {} + interface Link {} interface Mobilepay {} interface Multibanco {} + interface NaverPay { + /** + * Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`. + */ + funding?: NaverPay.Funding; + } + + namespace NaverPay { + type Funding = 'card' | 'points'; + } + interface Oxxo {} interface P24 { @@ -553,6 +600,8 @@ declare module 'stripe' { | 'volkswagen_bank'; } + interface Payco {} + interface Paynow {} interface Paypal {} @@ -570,6 +619,8 @@ declare module 'stripe' { interface RevolutPay {} + interface SamsungPay {} + interface SepaDebit { /** * IBAN of the bank account. @@ -597,6 +648,7 @@ declare module 'stripe' { | 'affirm' | 'afterpay_clearpay' | 'alipay' + | 'alma' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' @@ -611,18 +663,23 @@ declare module 'stripe' { | 'giropay' | 'grabpay' | 'ideal' + | 'kakao_pay' | 'klarna' | 'konbini' + | 'kr_card' | 'link' | 'mobilepay' | 'multibanco' + | 'naver_pay' | 'oxxo' | 'p24' + | 'payco' | 'paynow' | 'paypal' | 'pix' | 'promptpay' | 'revolut_pay' + | 'samsung_pay' | 'sepa_debit' | 'sofort' | 'swish' @@ -707,6 +764,11 @@ declare module 'stripe' { */ metadata?: Stripe.Emptyable; + /** + * If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method. + */ + naver_pay?: PaymentMethodUpdateParams.NaverPay; + /** * If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method. */ @@ -770,6 +832,17 @@ declare module 'stripe' { interface Link {} + interface NaverPay { + /** + * Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`. + */ + funding?: NaverPay.Funding; + } + + namespace NaverPay { + type Funding = 'card' | 'points'; + } + interface UsBankAccount { /** * Bank account holder type. @@ -812,6 +885,7 @@ declare module 'stripe' { | 'affirm' | 'afterpay_clearpay' | 'alipay' + | 'alma' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' @@ -826,18 +900,23 @@ declare module 'stripe' { | 'giropay' | 'grabpay' | 'ideal' + | 'kakao_pay' | 'klarna' | 'konbini' + | 'kr_card' | 'link' | 'mobilepay' | 'multibanco' + | 'naver_pay' | 'oxxo' | 'p24' + | 'payco' | 'paynow' | 'paypal' | 'pix' | 'promptpay' | 'revolut_pay' + | 'samsung_pay' | 'sepa_debit' | 'sofort' | 'swish' diff --git a/types/Persons.d.ts b/types/Persons.d.ts index 15c611f98c..a641827f02 100644 --- a/types/Persons.d.ts +++ b/types/Persons.d.ts @@ -102,7 +102,7 @@ declare module 'stripe' { future_requirements?: Person.FutureRequirements | null; /** - * The person's gender (International regulations require either "male" or "female"). + * The person's gender. */ gender?: string | null; diff --git a/types/Refunds.d.ts b/types/Refunds.d.ts index e9bc8fd90a..2ffe05dcb9 100644 --- a/types/Refunds.d.ts +++ b/types/Refunds.d.ts @@ -113,6 +113,8 @@ declare module 'stripe' { alipay?: DestinationDetails.Alipay; + alma?: DestinationDetails.Alma; + amazon_pay?: DestinationDetails.AmazonPay; au_bank_transfer?: DestinationDetails.AuBankTransfer; @@ -180,6 +182,8 @@ declare module 'stripe' { interface Alipay {} + interface Alma {} + interface AmazonPay {} interface AuBankTransfer {} @@ -370,10 +374,7 @@ declare module 'stripe' { } interface NextAction { - /** - * Contains the refund details. - */ - display_details: NextAction.DisplayDetails | null; + display_details?: NextAction.DisplayDetails; /** * Type of the next action to perform. diff --git a/types/SetupAttempts.d.ts b/types/SetupAttempts.d.ts index 39562514e2..0257ae56d0 100644 --- a/types/SetupAttempts.d.ts +++ b/types/SetupAttempts.d.ts @@ -110,8 +110,12 @@ declare module 'stripe' { ideal?: PaymentMethodDetails.Ideal; + kakao_pay?: PaymentMethodDetails.KakaoPay; + klarna?: PaymentMethodDetails.Klarna; + kr_card?: PaymentMethodDetails.KrCard; + link?: PaymentMethodDetails.Link; paypal?: PaymentMethodDetails.Paypal; @@ -462,8 +466,12 @@ declare module 'stripe' { | 'TRIONL2U'; } + interface KakaoPay {} + interface Klarna {} + interface KrCard {} + interface Link {} interface Paypal {} diff --git a/types/SetupIntentsResource.d.ts b/types/SetupIntentsResource.d.ts index cff8638b11..81184df594 100644 --- a/types/SetupIntentsResource.d.ts +++ b/types/SetupIntentsResource.d.ts @@ -209,6 +209,11 @@ declare module 'stripe' { */ allow_redisplay?: PaymentMethodData.AllowRedisplay; + /** + * If this is a Alma PaymentMethod, this hash contains details about the Alma payment method. + */ + alma?: PaymentMethodData.Alma; + /** * If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method. */ @@ -284,6 +289,11 @@ declare module 'stripe' { */ interac_present?: PaymentMethodData.InteracPresent; + /** + * If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method. + */ + kakao_pay?: PaymentMethodData.KakaoPay; + /** * If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method. */ @@ -294,6 +304,11 @@ declare module 'stripe' { */ konbini?: PaymentMethodData.Konbini; + /** + * If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method. + */ + kr_card?: PaymentMethodData.KrCard; + /** * If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. */ @@ -314,6 +329,11 @@ declare module 'stripe' { */ multibanco?: PaymentMethodData.Multibanco; + /** + * If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method. + */ + naver_pay?: PaymentMethodData.NaverPay; + /** * If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method. */ @@ -324,6 +344,11 @@ declare module 'stripe' { */ p24?: PaymentMethodData.P24; + /** + * If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method. + */ + payco?: PaymentMethodData.Payco; + /** * If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method. */ @@ -354,6 +379,11 @@ declare module 'stripe' { */ revolut_pay?: PaymentMethodData.RevolutPay; + /** + * If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method. + */ + samsung_pay?: PaymentMethodData.SamsungPay; + /** * If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. */ @@ -421,6 +451,8 @@ declare module 'stripe' { type AllowRedisplay = 'always' | 'limited' | 'unspecified'; + interface Alma {} + interface AmazonPay {} interface AuBecsDebit { @@ -569,7 +601,7 @@ declare module 'stripe' { interface Ideal { /** - * The customer's bank. + * The customer's bank. Only use this parameter for existing customers. Don't use it for new customers. */ bank?: Ideal.Bank; } @@ -596,6 +628,8 @@ declare module 'stripe' { interface InteracPresent {} + interface KakaoPay {} + interface Klarna { /** * Customer's date of birth @@ -624,12 +658,25 @@ declare module 'stripe' { interface Konbini {} + interface KrCard {} + interface Link {} interface Mobilepay {} interface Multibanco {} + interface NaverPay { + /** + * Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`. + */ + funding?: NaverPay.Funding; + } + + namespace NaverPay { + type Funding = 'card' | 'points'; + } + interface Oxxo {} interface P24 { @@ -669,6 +716,8 @@ declare module 'stripe' { | 'volkswagen_bank'; } + interface Payco {} + interface Paynow {} interface Paypal {} @@ -686,6 +735,8 @@ declare module 'stripe' { interface RevolutPay {} + interface SamsungPay {} + interface SepaDebit { /** * IBAN of the bank account. @@ -713,6 +764,7 @@ declare module 'stripe' { | 'affirm' | 'afterpay_clearpay' | 'alipay' + | 'alma' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' @@ -726,18 +778,23 @@ declare module 'stripe' { | 'giropay' | 'grabpay' | 'ideal' + | 'kakao_pay' | 'klarna' | 'konbini' + | 'kr_card' | 'link' | 'mobilepay' | 'multibanco' + | 'naver_pay' | 'oxxo' | 'p24' + | 'payco' | 'paynow' | 'paypal' | 'pix' | 'promptpay' | 'revolut_pay' + | 'samsung_pay' | 'sepa_debit' | 'sofort' | 'swish' @@ -1336,6 +1393,11 @@ declare module 'stripe' { */ allow_redisplay?: PaymentMethodData.AllowRedisplay; + /** + * If this is a Alma PaymentMethod, this hash contains details about the Alma payment method. + */ + alma?: PaymentMethodData.Alma; + /** * If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method. */ @@ -1411,6 +1473,11 @@ declare module 'stripe' { */ interac_present?: PaymentMethodData.InteracPresent; + /** + * If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method. + */ + kakao_pay?: PaymentMethodData.KakaoPay; + /** * If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method. */ @@ -1421,6 +1488,11 @@ declare module 'stripe' { */ konbini?: PaymentMethodData.Konbini; + /** + * If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method. + */ + kr_card?: PaymentMethodData.KrCard; + /** * If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. */ @@ -1441,6 +1513,11 @@ declare module 'stripe' { */ multibanco?: PaymentMethodData.Multibanco; + /** + * If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method. + */ + naver_pay?: PaymentMethodData.NaverPay; + /** * If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method. */ @@ -1451,6 +1528,11 @@ declare module 'stripe' { */ p24?: PaymentMethodData.P24; + /** + * If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method. + */ + payco?: PaymentMethodData.Payco; + /** * If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method. */ @@ -1481,6 +1563,11 @@ declare module 'stripe' { */ revolut_pay?: PaymentMethodData.RevolutPay; + /** + * If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method. + */ + samsung_pay?: PaymentMethodData.SamsungPay; + /** * If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. */ @@ -1548,6 +1635,8 @@ declare module 'stripe' { type AllowRedisplay = 'always' | 'limited' | 'unspecified'; + interface Alma {} + interface AmazonPay {} interface AuBecsDebit { @@ -1696,7 +1785,7 @@ declare module 'stripe' { interface Ideal { /** - * The customer's bank. + * The customer's bank. Only use this parameter for existing customers. Don't use it for new customers. */ bank?: Ideal.Bank; } @@ -1723,6 +1812,8 @@ declare module 'stripe' { interface InteracPresent {} + interface KakaoPay {} + interface Klarna { /** * Customer's date of birth @@ -1751,12 +1842,25 @@ declare module 'stripe' { interface Konbini {} + interface KrCard {} + interface Link {} interface Mobilepay {} interface Multibanco {} + interface NaverPay { + /** + * Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`. + */ + funding?: NaverPay.Funding; + } + + namespace NaverPay { + type Funding = 'card' | 'points'; + } + interface Oxxo {} interface P24 { @@ -1796,6 +1900,8 @@ declare module 'stripe' { | 'volkswagen_bank'; } + interface Payco {} + interface Paynow {} interface Paypal {} @@ -1813,6 +1919,8 @@ declare module 'stripe' { interface RevolutPay {} + interface SamsungPay {} + interface SepaDebit { /** * IBAN of the bank account. @@ -1840,6 +1948,7 @@ declare module 'stripe' { | 'affirm' | 'afterpay_clearpay' | 'alipay' + | 'alma' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' @@ -1853,18 +1962,23 @@ declare module 'stripe' { | 'giropay' | 'grabpay' | 'ideal' + | 'kakao_pay' | 'klarna' | 'konbini' + | 'kr_card' | 'link' | 'mobilepay' | 'multibanco' + | 'naver_pay' | 'oxxo' | 'p24' + | 'payco' | 'paynow' | 'paypal' | 'pix' | 'promptpay' | 'revolut_pay' + | 'samsung_pay' | 'sepa_debit' | 'sofort' | 'swish' @@ -2512,6 +2626,11 @@ declare module 'stripe' { */ allow_redisplay?: PaymentMethodData.AllowRedisplay; + /** + * If this is a Alma PaymentMethod, this hash contains details about the Alma payment method. + */ + alma?: PaymentMethodData.Alma; + /** * If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method. */ @@ -2587,6 +2706,11 @@ declare module 'stripe' { */ interac_present?: PaymentMethodData.InteracPresent; + /** + * If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method. + */ + kakao_pay?: PaymentMethodData.KakaoPay; + /** * If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method. */ @@ -2597,6 +2721,11 @@ declare module 'stripe' { */ konbini?: PaymentMethodData.Konbini; + /** + * If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method. + */ + kr_card?: PaymentMethodData.KrCard; + /** * If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. */ @@ -2617,6 +2746,11 @@ declare module 'stripe' { */ multibanco?: PaymentMethodData.Multibanco; + /** + * If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method. + */ + naver_pay?: PaymentMethodData.NaverPay; + /** * If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method. */ @@ -2627,6 +2761,11 @@ declare module 'stripe' { */ p24?: PaymentMethodData.P24; + /** + * If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method. + */ + payco?: PaymentMethodData.Payco; + /** * If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method. */ @@ -2657,6 +2796,11 @@ declare module 'stripe' { */ revolut_pay?: PaymentMethodData.RevolutPay; + /** + * If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method. + */ + samsung_pay?: PaymentMethodData.SamsungPay; + /** * If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. */ @@ -2724,6 +2868,8 @@ declare module 'stripe' { type AllowRedisplay = 'always' | 'limited' | 'unspecified'; + interface Alma {} + interface AmazonPay {} interface AuBecsDebit { @@ -2872,7 +3018,7 @@ declare module 'stripe' { interface Ideal { /** - * The customer's bank. + * The customer's bank. Only use this parameter for existing customers. Don't use it for new customers. */ bank?: Ideal.Bank; } @@ -2899,6 +3045,8 @@ declare module 'stripe' { interface InteracPresent {} + interface KakaoPay {} + interface Klarna { /** * Customer's date of birth @@ -2927,12 +3075,25 @@ declare module 'stripe' { interface Konbini {} + interface KrCard {} + interface Link {} interface Mobilepay {} interface Multibanco {} + interface NaverPay { + /** + * Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`. + */ + funding?: NaverPay.Funding; + } + + namespace NaverPay { + type Funding = 'card' | 'points'; + } + interface Oxxo {} interface P24 { @@ -2972,6 +3133,8 @@ declare module 'stripe' { | 'volkswagen_bank'; } + interface Payco {} + interface Paynow {} interface Paypal {} @@ -2989,6 +3152,8 @@ declare module 'stripe' { interface RevolutPay {} + interface SamsungPay {} + interface SepaDebit { /** * IBAN of the bank account. @@ -3016,6 +3181,7 @@ declare module 'stripe' { | 'affirm' | 'afterpay_clearpay' | 'alipay' + | 'alma' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' @@ -3029,18 +3195,23 @@ declare module 'stripe' { | 'giropay' | 'grabpay' | 'ideal' + | 'kakao_pay' | 'klarna' | 'konbini' + | 'kr_card' | 'link' | 'mobilepay' | 'multibanco' + | 'naver_pay' | 'oxxo' | 'p24' + | 'payco' | 'paynow' | 'paypal' | 'pix' | 'promptpay' | 'revolut_pay' + | 'samsung_pay' | 'sepa_debit' | 'sofort' | 'swish' diff --git a/types/Subscriptions.d.ts b/types/Subscriptions.d.ts index 879ab18071..ccb349e153 100644 --- a/types/Subscriptions.d.ts +++ b/types/Subscriptions.d.ts @@ -645,10 +645,15 @@ declare module 'stripe' { | 'giropay' | 'grabpay' | 'ideal' + | 'jp_credit_transfer' + | 'kakao_pay' | 'konbini' + | 'kr_card' | 'link' | 'multibanco' + | 'naver_pay' | 'p24' + | 'payco' | 'paynow' | 'paypal' | 'promptpay' diff --git a/types/SubscriptionsResource.d.ts b/types/SubscriptionsResource.d.ts index 5033c38baf..c0b323bca1 100644 --- a/types/SubscriptionsResource.d.ts +++ b/types/SubscriptionsResource.d.ts @@ -782,10 +782,15 @@ declare module 'stripe' { | 'giropay' | 'grabpay' | 'ideal' + | 'jp_credit_transfer' + | 'kakao_pay' | 'konbini' + | 'kr_card' | 'link' | 'multibanco' + | 'naver_pay' | 'p24' + | 'payco' | 'paynow' | 'paypal' | 'promptpay' @@ -1656,10 +1661,15 @@ declare module 'stripe' { | 'giropay' | 'grabpay' | 'ideal' + | 'jp_credit_transfer' + | 'kakao_pay' | 'konbini' + | 'kr_card' | 'link' | 'multibanco' + | 'naver_pay' | 'p24' + | 'payco' | 'paynow' | 'paypal' | 'promptpay' @@ -1817,7 +1827,7 @@ declare module 'stripe' { expand?: Array; /** - * Will generate a final invoice that invoices for any un-invoiced metered usage and new/pending proration invoice items. Defaults to `true`. + * Will generate a final invoice that invoices for any un-invoiced metered usage and new/pending proration invoice items. Defaults to `false`. */ invoice_now?: boolean; @@ -1857,7 +1867,7 @@ declare module 'stripe' { interface SubscriptionResumeParams { /** - * Either `now` or `unchanged`. Setting the value to `now` resets the subscription's billing cycle anchor to the current time (in UTC). Setting the value to `unchanged` advances the subscription's billing cycle anchor to the period that surrounds the current time. For more information, see the billing cycle [documentation](https://stripe.com/docs/billing/subscriptions/billing-cycle). + * The billing cycle anchor that applies when the subscription is resumed. Either `now` or `unchanged`. The default is `now`. For more information, see the billing cycle [documentation](https://stripe.com/docs/billing/subscriptions/billing-cycle). */ billing_cycle_anchor?: SubscriptionResumeParams.BillingCycleAnchor; diff --git a/types/Tax/CalculationLineItems.d.ts b/types/Tax/CalculationLineItems.d.ts index 1b106c5de3..eae8271ddc 100644 --- a/types/Tax/CalculationLineItems.d.ts +++ b/types/Tax/CalculationLineItems.d.ts @@ -169,6 +169,7 @@ declare module 'stripe' { | 'lease_tax' | 'pst' | 'qst' + | 'retail_delivery_fee' | 'rst' | 'sales_tax' | 'vat'; diff --git a/types/Tax/Calculations.d.ts b/types/Tax/Calculations.d.ts index 6d3364c255..0aef408064 100644 --- a/types/Tax/Calculations.d.ts +++ b/types/Tax/Calculations.d.ts @@ -120,7 +120,7 @@ declare module 'stripe' { interface TaxId { /** - * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, or `unknown` + * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, or `unknown` */ type: TaxId.Type; @@ -142,6 +142,7 @@ declare module 'stripe' { | 'bo_tin' | 'br_cnpj' | 'br_cpf' + | 'by_tin' | 'ca_bn' | 'ca_gst_hst' | 'ca_pst_bc' @@ -177,6 +178,8 @@ declare module 'stripe' { | 'kr_brn' | 'kz_bin' | 'li_uid' + | 'ma_vat' + | 'md_vat' | 'mx_rfc' | 'my_frp' | 'my_itn' @@ -200,10 +203,13 @@ declare module 'stripe' { | 'th_vat' | 'tr_tin' | 'tw_vat' + | 'tz_vat' | 'ua_vat' | 'unknown' | 'us_ein' | 'uy_ruc' + | 'uz_tin' + | 'uz_vat' | 've_rif' | 'vn_tin' | 'za_vat'; @@ -352,6 +358,7 @@ declare module 'stripe' { | 'lease_tax' | 'pst' | 'qst' + | 'retail_delivery_fee' | 'rst' | 'sales_tax' | 'vat'; @@ -407,11 +414,21 @@ declare module 'stripe' { */ country: string | null; + /** + * The amount of the tax rate when the `rate_type` is `flat_amount`. Tax rates with `rate_type` `percentage` can vary based on the transaction, resulting in this field being `null`. This field exposes the amount and currency of the flat tax rate. + */ + flat_amount: TaxRateDetails.FlatAmount | null; + /** * The tax rate percentage as a string. For example, 8.5% is represented as `"8.5"`. */ percentage_decimal: string; + /** + * Indicates the type of tax rate applied to the taxable amount. This value can be `null` when no tax applies to the location. + */ + rate_type: TaxRateDetails.RateType | null; + /** * State, county, province, or region. */ @@ -424,6 +441,20 @@ declare module 'stripe' { } namespace TaxRateDetails { + interface FlatAmount { + /** + * Amount of the tax when the `rate_type` is `flat_amount`. This positive integer represents how much to charge in the smallest currency unit (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99). + */ + amount: number; + + /** + * Three-letter ISO currency code, in lowercase. + */ + currency: string; + } + + type RateType = 'flat_amount' | 'percentage'; + type TaxType = | 'amusement_tax' | 'communications_tax' @@ -434,6 +465,7 @@ declare module 'stripe' { | 'lease_tax' | 'pst' | 'qst' + | 'retail_delivery_fee' | 'rst' | 'sales_tax' | 'vat'; diff --git a/types/Tax/CalculationsResource.d.ts b/types/Tax/CalculationsResource.d.ts index eee0312e72..d1fb0dbe7f 100644 --- a/types/Tax/CalculationsResource.d.ts +++ b/types/Tax/CalculationsResource.d.ts @@ -115,7 +115,7 @@ declare module 'stripe' { interface TaxId { /** - * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat` + * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` */ type: TaxId.Type; @@ -137,6 +137,7 @@ declare module 'stripe' { | 'bo_tin' | 'br_cnpj' | 'br_cpf' + | 'by_tin' | 'ca_bn' | 'ca_gst_hst' | 'ca_pst_bc' @@ -172,6 +173,8 @@ declare module 'stripe' { | 'kr_brn' | 'kz_bin' | 'li_uid' + | 'ma_vat' + | 'md_vat' | 'mx_rfc' | 'my_frp' | 'my_itn' @@ -195,9 +198,12 @@ declare module 'stripe' { | 'th_vat' | 'tr_tin' | 'tw_vat' + | 'tz_vat' | 'ua_vat' | 'us_ein' | 'uy_ruc' + | 'uz_tin' + | 'uz_vat' | 've_rif' | 'vn_tin' | 'za_vat'; diff --git a/types/Tax/Registrations.d.ts b/types/Tax/Registrations.d.ts index afe8693a57..149132dd86 100644 --- a/types/Tax/Registrations.d.ts +++ b/types/Tax/Registrations.d.ts @@ -68,6 +68,8 @@ declare module 'stripe' { bh?: CountryOptions.Bh; + by?: CountryOptions.By; + ca?: CountryOptions.Ca; ch?: CountryOptions.Ch; @@ -76,6 +78,8 @@ declare module 'stripe' { co?: CountryOptions.Co; + cr?: CountryOptions.Cr; + cy?: CountryOptions.Cy; cz?: CountryOptions.Cz; @@ -84,6 +88,8 @@ declare module 'stripe' { dk?: CountryOptions.Dk; + ec?: CountryOptions.Ec; + ee?: CountryOptions.Ee; eg?: CountryOptions.Eg; @@ -126,6 +132,10 @@ declare module 'stripe' { lv?: CountryOptions.Lv; + ma?: CountryOptions.Ma; + + md?: CountryOptions.Md; + mt?: CountryOptions.Mt; mx?: CountryOptions.Mx; @@ -148,6 +158,10 @@ declare module 'stripe' { ro?: CountryOptions.Ro; + rs?: CountryOptions.Rs; + + ru?: CountryOptions.Ru; + sa?: CountryOptions.Sa; se?: CountryOptions.Se; @@ -162,8 +176,12 @@ declare module 'stripe' { tr?: CountryOptions.Tr; + tz?: CountryOptions.Tz; + us?: CountryOptions.Us; + uz?: CountryOptions.Uz; + vn?: CountryOptions.Vn; za?: CountryOptions.Za; @@ -263,6 +281,13 @@ declare module 'stripe' { type: 'standard'; } + interface By { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } + interface Ca { province_standard?: Ca.ProvinceStandard; @@ -304,6 +329,13 @@ declare module 'stripe' { type: 'simplified'; } + interface Cr { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } + interface Cy { standard?: Cy.Standard; @@ -400,6 +432,13 @@ declare module 'stripe' { type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; } + interface Ec { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } + interface Ee { standard?: Ee.Standard; @@ -751,6 +790,20 @@ declare module 'stripe' { type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; } + interface Ma { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } + + interface Md { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } + interface Mt { standard?: Mt.Standard; @@ -913,6 +966,20 @@ declare module 'stripe' { type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; } + interface Rs { + /** + * Type of registration in `country`. + */ + type: 'standard'; + } + + interface Ru { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } + interface Sa { /** * Type of registration in `country`. @@ -1013,6 +1080,13 @@ declare module 'stripe' { type: 'simplified'; } + interface Tz { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } + interface Us { local_amusement_tax?: Us.LocalAmusementTax; @@ -1078,9 +1152,17 @@ declare module 'stripe' { | 'local_amusement_tax' | 'local_lease_tax' | 'state_communications_tax' + | 'state_retail_delivery_fee' | 'state_sales_tax'; } + interface Uz { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } + interface Vn { /** * Type of registration in `country`. diff --git a/types/Tax/RegistrationsResource.d.ts b/types/Tax/RegistrationsResource.d.ts index 0e95503407..e73f9e5b1d 100644 --- a/types/Tax/RegistrationsResource.d.ts +++ b/types/Tax/RegistrationsResource.d.ts @@ -62,6 +62,11 @@ declare module 'stripe' { */ bh?: CountryOptions.Bh; + /** + * Options for the registration in BY. + */ + by?: CountryOptions.By; + /** * Options for the registration in CA. */ @@ -82,6 +87,11 @@ declare module 'stripe' { */ co?: CountryOptions.Co; + /** + * Options for the registration in CR. + */ + cr?: CountryOptions.Cr; + /** * Options for the registration in CY. */ @@ -102,6 +112,11 @@ declare module 'stripe' { */ dk?: CountryOptions.Dk; + /** + * Options for the registration in EC. + */ + ec?: CountryOptions.Ec; + /** * Options for the registration in EE. */ @@ -207,6 +222,16 @@ declare module 'stripe' { */ lv?: CountryOptions.Lv; + /** + * Options for the registration in MA. + */ + ma?: CountryOptions.Ma; + + /** + * Options for the registration in MD. + */ + md?: CountryOptions.Md; + /** * Options for the registration in MT. */ @@ -262,6 +287,16 @@ declare module 'stripe' { */ ro?: CountryOptions.Ro; + /** + * Options for the registration in RS. + */ + rs?: CountryOptions.Rs; + + /** + * Options for the registration in RU. + */ + ru?: CountryOptions.Ru; + /** * Options for the registration in SA. */ @@ -297,11 +332,21 @@ declare module 'stripe' { */ tr?: CountryOptions.Tr; + /** + * Options for the registration in TZ. + */ + tz?: CountryOptions.Tz; + /** * Options for the registration in US. */ us?: CountryOptions.Us; + /** + * Options for the registration in UZ. + */ + uz?: CountryOptions.Uz; + /** * Options for the registration in VN. */ @@ -416,6 +461,13 @@ declare module 'stripe' { type: 'standard'; } + interface By { + /** + * Type of registration to be created in `country`. + */ + type: 'simplified'; + } + interface Ca { /** * Options for the provincial tax registration. @@ -460,6 +512,13 @@ declare module 'stripe' { type: 'simplified'; } + interface Cr { + /** + * Type of registration to be created in `country`. + */ + type: 'simplified'; + } + interface Cy { /** * Options for the standard registration. @@ -568,6 +627,13 @@ declare module 'stripe' { type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; } + interface Ec { + /** + * Type of registration to be created in `country`. + */ + type: 'simplified'; + } + interface Ee { /** * Options for the standard registration. @@ -955,6 +1021,20 @@ declare module 'stripe' { type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; } + interface Ma { + /** + * Type of registration to be created in `country`. + */ + type: 'simplified'; + } + + interface Md { + /** + * Type of registration to be created in `country`. + */ + type: 'simplified'; + } + interface Mt { /** * Options for the standard registration. @@ -1132,6 +1212,20 @@ declare module 'stripe' { type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; } + interface Rs { + /** + * Type of registration to be created in `country`. + */ + type: 'standard'; + } + + interface Ru { + /** + * Type of registration to be created in `country`. + */ + type: 'simplified'; + } + interface Sa { /** * Type of registration to be created in `country`. @@ -1241,6 +1335,13 @@ declare module 'stripe' { type: 'simplified'; } + interface Tz { + /** + * Type of registration to be created in `country`. + */ + type: 'simplified'; + } + interface Us { /** * Options for the local amusement tax registration. @@ -1315,9 +1416,17 @@ declare module 'stripe' { | 'local_amusement_tax' | 'local_lease_tax' | 'state_communications_tax' + | 'state_retail_delivery_fee' | 'state_sales_tax'; } + interface Uz { + /** + * Type of registration to be created in `country`. + */ + type: 'simplified'; + } + interface Vn { /** * Type of registration to be created in `country`. diff --git a/types/Tax/Transactions.d.ts b/types/Tax/Transactions.d.ts index d3976e9fad..39a863a762 100644 --- a/types/Tax/Transactions.d.ts +++ b/types/Tax/Transactions.d.ts @@ -125,7 +125,7 @@ declare module 'stripe' { interface TaxId { /** - * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, or `unknown` + * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, or `unknown` */ type: TaxId.Type; @@ -147,6 +147,7 @@ declare module 'stripe' { | 'bo_tin' | 'br_cnpj' | 'br_cpf' + | 'by_tin' | 'ca_bn' | 'ca_gst_hst' | 'ca_pst_bc' @@ -182,6 +183,8 @@ declare module 'stripe' { | 'kr_brn' | 'kz_bin' | 'li_uid' + | 'ma_vat' + | 'md_vat' | 'mx_rfc' | 'my_frp' | 'my_itn' @@ -205,10 +208,13 @@ declare module 'stripe' { | 'th_vat' | 'tr_tin' | 'tw_vat' + | 'tz_vat' | 'ua_vat' | 'unknown' | 'us_ein' | 'uy_ruc' + | 'uz_tin' + | 'uz_vat' | 've_rif' | 'vn_tin' | 'za_vat'; @@ -364,6 +370,7 @@ declare module 'stripe' { | 'lease_tax' | 'pst' | 'qst' + | 'retail_delivery_fee' | 'rst' | 'sales_tax' | 'vat'; diff --git a/types/TaxIds.d.ts b/types/TaxIds.d.ts index 8e40f4e485..d8127b04cf 100644 --- a/types/TaxIds.d.ts +++ b/types/TaxIds.d.ts @@ -70,7 +70,7 @@ declare module 'stripe' { owner: TaxId.Owner | null; /** - * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat`. Note that some legacy tax IDs have type `unknown` + * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat`. Note that some legacy tax IDs have type `unknown` */ type: TaxId.Type; @@ -123,6 +123,7 @@ declare module 'stripe' { | 'bo_tin' | 'br_cnpj' | 'br_cpf' + | 'by_tin' | 'ca_bn' | 'ca_gst_hst' | 'ca_pst_bc' @@ -158,6 +159,8 @@ declare module 'stripe' { | 'kr_brn' | 'kz_bin' | 'li_uid' + | 'ma_vat' + | 'md_vat' | 'mx_rfc' | 'my_frp' | 'my_itn' @@ -181,10 +184,13 @@ declare module 'stripe' { | 'th_vat' | 'tr_tin' | 'tw_vat' + | 'tz_vat' | 'ua_vat' | 'unknown' | 'us_ein' | 'uy_ruc' + | 'uz_tin' + | 'uz_vat' | 've_rif' | 'vn_tin' | 'za_vat'; diff --git a/types/TaxIdsResource.d.ts b/types/TaxIdsResource.d.ts index 2e4dc182d7..d92a6c5aee 100644 --- a/types/TaxIdsResource.d.ts +++ b/types/TaxIdsResource.d.ts @@ -4,7 +4,7 @@ declare module 'stripe' { namespace Stripe { interface TaxIdCreateParams { /** - * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat` + * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` */ type: TaxIdCreateParams.Type; @@ -57,6 +57,7 @@ declare module 'stripe' { | 'bo_tin' | 'br_cnpj' | 'br_cpf' + | 'by_tin' | 'ca_bn' | 'ca_gst_hst' | 'ca_pst_bc' @@ -92,6 +93,8 @@ declare module 'stripe' { | 'kr_brn' | 'kz_bin' | 'li_uid' + | 'ma_vat' + | 'md_vat' | 'mx_rfc' | 'my_frp' | 'my_itn' @@ -115,9 +118,12 @@ declare module 'stripe' { | 'th_vat' | 'tr_tin' | 'tw_vat' + | 'tz_vat' | 'ua_vat' | 'us_ein' | 'uy_ruc' + | 'uz_tin' + | 'uz_vat' | 've_rif' | 'vn_tin' | 'za_vat'; diff --git a/types/TaxRates.d.ts b/types/TaxRates.d.ts index d720a5b6fe..76f9e75d16 100644 --- a/types/TaxRates.d.ts +++ b/types/TaxRates.d.ts @@ -50,6 +50,11 @@ declare module 'stripe' { */ effective_percentage: number | null; + /** + * The amount of the tax rate when the `rate_type` is `flat_amount`. Tax rates with `rate_type` `percentage` can vary based on the transaction, resulting in this field being `null`. This field exposes the amount and currency of the flat tax rate. + */ + flat_amount: TaxRate.FlatAmount | null; + /** * This specifies if the tax rate is inclusive or exclusive. */ @@ -80,6 +85,11 @@ declare module 'stripe' { */ percentage: number; + /** + * Indicates the type of tax rate applied to the taxable amount. This value can be `null` when no tax applies to the location. + */ + rate_type: TaxRate.RateType | null; + /** * [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2:US), without country prefix. For example, "NY" for New York, United States. */ @@ -92,6 +102,18 @@ declare module 'stripe' { } namespace TaxRate { + interface FlatAmount { + /** + * Amount of the tax when the `rate_type` is `flat_amount`. This positive integer represents how much to charge in the smallest currency unit (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99). + */ + amount: number; + + /** + * Three-letter ISO currency code, in lowercase. + */ + currency: string; + } + type JurisdictionLevel = | 'city' | 'country' @@ -100,6 +122,8 @@ declare module 'stripe' { | 'multiple' | 'state'; + type RateType = 'flat_amount' | 'percentage'; + type TaxType = | 'amusement_tax' | 'communications_tax' @@ -110,6 +134,7 @@ declare module 'stripe' { | 'lease_tax' | 'pst' | 'qst' + | 'retail_delivery_fee' | 'rst' | 'sales_tax' | 'vat'; diff --git a/types/TaxRatesResource.d.ts b/types/TaxRatesResource.d.ts index 80730fa6b8..944f013786 100644 --- a/types/TaxRatesResource.d.ts +++ b/types/TaxRatesResource.d.ts @@ -70,6 +70,7 @@ declare module 'stripe' { | 'lease_tax' | 'pst' | 'qst' + | 'retail_delivery_fee' | 'rst' | 'sales_tax' | 'vat'; @@ -140,6 +141,7 @@ declare module 'stripe' { | 'lease_tax' | 'pst' | 'qst' + | 'retail_delivery_fee' | 'rst' | 'sales_tax' | 'vat'; diff --git a/types/Terminal/Configurations.d.ts b/types/Terminal/Configurations.d.ts index b2e3a0c330..270845a303 100644 --- a/types/Terminal/Configurations.d.ts +++ b/types/Terminal/Configurations.d.ts @@ -107,6 +107,8 @@ declare module 'stripe' { nzd?: Tipping.Nzd; + pln?: Tipping.Pln; + sek?: Tipping.Sek; sgd?: Tipping.Sgd; @@ -302,6 +304,23 @@ declare module 'stripe' { smart_tip_threshold?: number; } + interface Pln { + /** + * Fixed amounts displayed when collecting a tip + */ + fixed_amounts?: Array | null; + + /** + * Percentages displayed when collecting a tip + */ + percentages?: Array | null; + + /** + * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed + */ + smart_tip_threshold?: number; + } + interface Sek { /** * Fixed amounts displayed when collecting a tip diff --git a/types/Terminal/ConfigurationsResource.d.ts b/types/Terminal/ConfigurationsResource.d.ts index 663eeb88d7..c41207e35e 100644 --- a/types/Terminal/ConfigurationsResource.d.ts +++ b/types/Terminal/ConfigurationsResource.d.ts @@ -135,6 +135,11 @@ declare module 'stripe' { */ nzd?: Tipping.Nzd; + /** + * Tipping configuration for PLN + */ + pln?: Tipping.Pln; + /** * Tipping configuration for SEK */ @@ -339,6 +344,23 @@ declare module 'stripe' { smart_tip_threshold?: number; } + interface Pln { + /** + * Fixed amounts displayed when collecting a tip + */ + fixed_amounts?: Array; + + /** + * Percentages displayed when collecting a tip + */ + percentages?: Array; + + /** + * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed + */ + smart_tip_threshold?: number; + } + interface Sek { /** * Fixed amounts displayed when collecting a tip @@ -544,6 +566,11 @@ declare module 'stripe' { */ nzd?: Tipping.Nzd; + /** + * Tipping configuration for PLN + */ + pln?: Tipping.Pln; + /** * Tipping configuration for SEK */ @@ -748,6 +775,23 @@ declare module 'stripe' { smart_tip_threshold?: number; } + interface Pln { + /** + * Fixed amounts displayed when collecting a tip + */ + fixed_amounts?: Array; + + /** + * Percentages displayed when collecting a tip + */ + percentages?: Array; + + /** + * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed + */ + smart_tip_threshold?: number; + } + interface Sek { /** * Fixed amounts displayed when collecting a tip diff --git a/types/TestHelpers/ConfirmationTokensResource.d.ts b/types/TestHelpers/ConfirmationTokensResource.d.ts index b7dadfed78..616b3cd522 100644 --- a/types/TestHelpers/ConfirmationTokensResource.d.ts +++ b/types/TestHelpers/ConfirmationTokensResource.d.ts @@ -64,6 +64,11 @@ declare module 'stripe' { */ allow_redisplay?: PaymentMethodData.AllowRedisplay; + /** + * If this is a Alma PaymentMethod, this hash contains details about the Alma payment method. + */ + alma?: PaymentMethodData.Alma; + /** * If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method. */ @@ -139,6 +144,11 @@ declare module 'stripe' { */ interac_present?: PaymentMethodData.InteracPresent; + /** + * If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method. + */ + kakao_pay?: PaymentMethodData.KakaoPay; + /** * If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method. */ @@ -149,6 +159,11 @@ declare module 'stripe' { */ konbini?: PaymentMethodData.Konbini; + /** + * If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method. + */ + kr_card?: PaymentMethodData.KrCard; + /** * If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. */ @@ -169,6 +184,11 @@ declare module 'stripe' { */ multibanco?: PaymentMethodData.Multibanco; + /** + * If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method. + */ + naver_pay?: PaymentMethodData.NaverPay; + /** * If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method. */ @@ -179,6 +199,11 @@ declare module 'stripe' { */ p24?: PaymentMethodData.P24; + /** + * If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method. + */ + payco?: PaymentMethodData.Payco; + /** * If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method. */ @@ -209,6 +234,11 @@ declare module 'stripe' { */ revolut_pay?: PaymentMethodData.RevolutPay; + /** + * If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method. + */ + samsung_pay?: PaymentMethodData.SamsungPay; + /** * If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. */ @@ -276,6 +306,8 @@ declare module 'stripe' { type AllowRedisplay = 'always' | 'limited' | 'unspecified'; + interface Alma {} + interface AmazonPay {} interface AuBecsDebit { @@ -424,7 +456,7 @@ declare module 'stripe' { interface Ideal { /** - * The customer's bank. + * The customer's bank. Only use this parameter for existing customers. Don't use it for new customers. */ bank?: Ideal.Bank; } @@ -451,6 +483,8 @@ declare module 'stripe' { interface InteracPresent {} + interface KakaoPay {} + interface Klarna { /** * Customer's date of birth @@ -479,12 +513,25 @@ declare module 'stripe' { interface Konbini {} + interface KrCard {} + interface Link {} interface Mobilepay {} interface Multibanco {} + interface NaverPay { + /** + * Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`. + */ + funding?: NaverPay.Funding; + } + + namespace NaverPay { + type Funding = 'card' | 'points'; + } + interface Oxxo {} interface P24 { @@ -524,6 +571,8 @@ declare module 'stripe' { | 'volkswagen_bank'; } + interface Payco {} + interface Paynow {} interface Paypal {} @@ -541,6 +590,8 @@ declare module 'stripe' { interface RevolutPay {} + interface SamsungPay {} + interface SepaDebit { /** * IBAN of the bank account. @@ -568,6 +619,7 @@ declare module 'stripe' { | 'affirm' | 'afterpay_clearpay' | 'alipay' + | 'alma' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' @@ -581,18 +633,23 @@ declare module 'stripe' { | 'giropay' | 'grabpay' | 'ideal' + | 'kakao_pay' | 'klarna' | 'konbini' + | 'kr_card' | 'link' | 'mobilepay' | 'multibanco' + | 'naver_pay' | 'oxxo' | 'p24' + | 'payco' | 'paynow' | 'paypal' | 'pix' | 'promptpay' | 'revolut_pay' + | 'samsung_pay' | 'sepa_debit' | 'sofort' | 'swish' diff --git a/types/TestHelpers/Issuing/CardsResource.d.ts b/types/TestHelpers/Issuing/CardsResource.d.ts index 5fa8f02d6a..7dfde8fc65 100644 --- a/types/TestHelpers/Issuing/CardsResource.d.ts +++ b/types/TestHelpers/Issuing/CardsResource.d.ts @@ -39,6 +39,15 @@ declare module 'stripe' { } } + namespace Issuing { + interface CardSubmitCardParams { + /** + * Specifies which fields in the response should be expanded. + */ + expand?: Array; + } + } + namespace Issuing { class CardsResource { /** @@ -92,6 +101,19 @@ declare module 'stripe' { id: string, options?: RequestOptions ): Promise>; + + /** + * Updates the shipping status of the specified Issuing Card object to submitted. This method requires Stripe Version ‘2024-09-30.acacia' or later. + */ + submitCard( + id: string, + params?: CardSubmitCardParams, + options?: RequestOptions + ): Promise>; + submitCard( + id: string, + options?: RequestOptions + ): Promise>; } } } diff --git a/types/TokensResource.d.ts b/types/TokensResource.d.ts index 94faccca7f..fc9e94a304 100644 --- a/types/TokensResource.d.ts +++ b/types/TokensResource.d.ts @@ -288,7 +288,7 @@ declare module 'stripe' { full_name_aliases?: Stripe.Emptyable>; /** - * The individual's gender (International regulations require either "male" or "female"). + * The individual's gender */ gender?: string; @@ -890,7 +890,7 @@ declare module 'stripe' { class TokensResource { /** * Creates a single-use token that represents a bank account's details. - * You can use this token with any API method in place of a bank account dictionary. You can only use this token once. To do so, attach it to a [connected account](https://stripe.com/docs/api#accounts) where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is application, which includes Custom accounts. + * You can use this token with any v1 API method in place of a bank account dictionary. You can only use this token once. To do so, attach it to a [connected account](https://stripe.com/docs/api#accounts) where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is application, which includes Custom accounts. */ create( params?: TokenCreateParams, diff --git a/types/Treasury/FinancialAccounts.d.ts b/types/Treasury/FinancialAccounts.d.ts index 08c100409e..ba166a4d08 100644 --- a/types/Treasury/FinancialAccounts.d.ts +++ b/types/Treasury/FinancialAccounts.d.ts @@ -75,7 +75,7 @@ declare module 'stripe' { restricted_features?: Array; /** - * The enum specifying what state the account is in. + * Status of this FinancialAccount. */ status: FinancialAccount.Status; diff --git a/types/UsageRecordSummaries.d.ts b/types/UsageRecordSummaries.d.ts index e5d8223d02..12c046e4fe 100644 --- a/types/UsageRecordSummaries.d.ts +++ b/types/UsageRecordSummaries.d.ts @@ -3,7 +3,7 @@ declare module 'stripe' { namespace Stripe { /** - * The UsageRecordSummary object. + * A usage record summary represents an aggregated view of how much usage was accrued for a subscription item within a subscription billing period. */ interface UsageRecordSummary { /** diff --git a/types/V2/Core/EventDestinationsResource.d.ts b/types/V2/Core/EventDestinationsResource.d.ts new file mode 100644 index 0000000000..f6c2fe9b7b --- /dev/null +++ b/types/V2/Core/EventDestinationsResource.d.ts @@ -0,0 +1,281 @@ +// File generated from our OpenAPI spec + +declare module 'stripe' { + namespace Stripe { + namespace V2 { + namespace Core { + interface EventDestinationCreateParams { + /** + * The list of events to enable for this endpoint. + */ + enabled_events: Array; + + /** + * Payload type of events being subscribed to. + */ + event_payload: EventDestinationCreateParams.EventPayload; + + /** + * Event destination name. + */ + name: string; + + /** + * Event destination type. + */ + type: EventDestinationCreateParams.Type; + + /** + * Amazon EventBridge configuration. + */ + amazon_eventbridge?: EventDestinationCreateParams.AmazonEventbridge; + + /** + * An optional description of what the event destination is used for. + */ + description?: string; + + /** + * Where events should be routed from. + */ + events_from?: Array; + + /** + * Additional fields to include in the response. + */ + include?: Array; + + /** + * Metadata. + */ + metadata?: Stripe.MetadataParam; + + /** + * If using the snapshot event payload, the API version events are rendered as. + */ + snapshot_api_version?: string; + + /** + * Webhook endpoint configuration. + */ + webhook_endpoint?: EventDestinationCreateParams.WebhookEndpoint; + } + + namespace EventDestinationCreateParams { + interface AmazonEventbridge { + /** + * The AWS account ID. + */ + aws_account_id: string; + + /** + * The region of the AWS event source. + */ + aws_region: string; + } + + type EventPayload = 'snapshot' | 'thin'; + + type EventsFrom = 'other_accounts' | 'self'; + + type Include = + | 'webhook_endpoint.signing_secret' + | 'webhook_endpoint.url'; + + type Type = 'amazon_eventbridge' | 'webhook_endpoint'; + + interface WebhookEndpoint { + /** + * The URL of the webhook endpoint. + */ + url: string; + } + } + } + + namespace Core { + interface EventDestinationRetrieveParams { + /** + * Additional fields to include in the response. + */ + include?: Array<'webhook_endpoint.url'>; + } + } + + namespace Core { + interface EventDestinationUpdateParams { + /** + * An optional description of what the event destination is used for. + */ + description?: string; + + /** + * The list of events to enable for this endpoint. + */ + enabled_events?: Array; + + /** + * Additional fields to include in the response. Currently supports `webhook_endpoint.url`. + */ + include?: Array<'webhook_endpoint.url'>; + + /** + * Metadata. + */ + metadata?: Stripe.MetadataParam; + + /** + * Event destination name. + */ + name?: string; + + /** + * Webhook endpoint configuration. + */ + webhook_endpoint?: EventDestinationUpdateParams.WebhookEndpoint; + } + + namespace EventDestinationUpdateParams { + interface WebhookEndpoint { + /** + * The URL of the webhook endpoint. + */ + url: string; + } + } + } + + namespace Core { + interface EventDestinationListParams { + /** + * Additional fields to include in the response. Currently supports `webhook_endpoint.url`. + */ + include?: Array<'webhook_endpoint.url'>; + + /** + * The page size. + */ + limit?: number; + + /** + * The requested page. + */ + page?: string; + } + } + + namespace Core { + interface EventDestinationDeleteParams {} + } + + namespace Core { + interface EventDestinationDisableParams {} + } + + namespace Core { + interface EventDestinationEnableParams {} + } + + namespace Core { + interface EventDestinationPingParams {} + } + + namespace Core { + class EventDestinationsResource { + /** + * Create a new event destination. + */ + create( + params: EventDestinationCreateParams, + options?: RequestOptions + ): Promise>; + + /** + * Retrieves the details of an event destination. + */ + retrieve( + id: string, + params?: EventDestinationRetrieveParams, + options?: RequestOptions + ): Promise>; + retrieve( + id: string, + options?: RequestOptions + ): Promise>; + + /** + * Update the details of an event destination. + */ + update( + id: string, + params?: EventDestinationUpdateParams, + options?: RequestOptions + ): Promise>; + + /** + * Lists all event destinations. + */ + list( + params?: EventDestinationListParams, + options?: RequestOptions + ): ApiListPromise; + list( + options?: RequestOptions + ): ApiListPromise; + + /** + * Delete an event destination. + */ + del( + id: string, + params?: EventDestinationDeleteParams, + options?: RequestOptions + ): Promise>; + del( + id: string, + options?: RequestOptions + ): Promise>; + + /** + * Disable an event destination. + */ + disable( + id: string, + params?: EventDestinationDisableParams, + options?: RequestOptions + ): Promise>; + disable( + id: string, + options?: RequestOptions + ): Promise>; + + /** + * Enable an event destination. + */ + enable( + id: string, + params?: EventDestinationEnableParams, + options?: RequestOptions + ): Promise>; + enable( + id: string, + options?: RequestOptions + ): Promise>; + + /** + * Send a `ping` event to an event destination. + */ + ping( + id: string, + params?: EventDestinationPingParams, + options?: RequestOptions + ): Promise>; + ping( + id: string, + options?: RequestOptions + ): Promise>; + } + } + } + } +} diff --git a/types/V2/Core/EventsResource.d.ts b/types/V2/Core/EventsResource.d.ts index 21a09fa644..bb3489e290 100644 --- a/types/V2/Core/EventsResource.d.ts +++ b/types/V2/Core/EventsResource.d.ts @@ -22,7 +22,7 @@ declare module 'stripe' { limit?: number; /** - * The requested page number. + * The requested page. */ page?: string; } diff --git a/types/V2/CoreResource.d.ts b/types/V2/CoreResource.d.ts index f65f8a4b98..f9e54d2ffc 100644 --- a/types/V2/CoreResource.d.ts +++ b/types/V2/CoreResource.d.ts @@ -4,6 +4,7 @@ declare module 'stripe' { namespace Stripe { namespace V2 { class CoreResource { + eventDestinations: Stripe.V2.Core.EventDestinationsResource; events: Stripe.V2.Core.EventsResource; } } diff --git a/types/V2/EventDestinations.d.ts b/types/V2/EventDestinations.d.ts new file mode 100644 index 0000000000..5eb69f715d --- /dev/null +++ b/types/V2/EventDestinations.d.ts @@ -0,0 +1,164 @@ +// File generated from our OpenAPI spec + +declare module 'stripe' { + namespace Stripe { + namespace V2 { + /** + * The EventDestination object. + */ + interface EventDestination { + /** + * Unique identifier for the object. + */ + id: string; + + /** + * String representing the object's type. Objects of the same type share the same value of the object field. + */ + object: 'v2.core.event_destination'; + + /** + * Amazon EventBridge configuration. + */ + amazon_eventbridge: EventDestination.AmazonEventbridge | null; + + /** + * Time at which the object was created. + */ + created: string; + + /** + * An optional description of what the event destination is used for. + */ + description: string; + + /** + * The list of events to enable for this endpoint. + */ + enabled_events: Array; + + /** + * Payload type of events being subscribed to. + */ + event_payload: EventDestination.EventPayload; + + /** + * Where events should be routed from. + */ + events_from: Array | 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; + + /** + * Metadata. + */ + metadata: Stripe.Metadata | null; + + /** + * Event destination name. + */ + name: string; + + /** + * If using the snapshot event payload, the API version events are rendered as. + */ + snapshot_api_version: string | null; + + /** + * Status. It can be set to either enabled or disabled. + */ + status: EventDestination.Status; + + /** + * Additional information about event destination status. + */ + status_details: EventDestination.StatusDetails | null; + + /** + * Event destination type. + */ + type: EventDestination.Type; + + /** + * Time at which the object was last updated. + */ + updated: string; + + /** + * Webhook endpoint configuration. + */ + webhook_endpoint: EventDestination.WebhookEndpoint | null; + } + + namespace EventDestination { + interface AmazonEventbridge { + /** + * The AWS account ID. + */ + aws_account_id: string; + + /** + * The ARN of the AWS event source. + */ + aws_event_source_arn: string; + + /** + * The state of the AWS event source. + */ + aws_event_source_status: AmazonEventbridge.AwsEventSourceStatus; + } + + namespace AmazonEventbridge { + type AwsEventSourceStatus = + | 'active' + | 'deleted' + | 'pending' + | 'unknown'; + } + + type EventPayload = 'snapshot' | 'thin'; + + type EventsFrom = 'other_accounts' | 'self'; + + type Status = 'disabled' | 'enabled'; + + interface StatusDetails { + /** + * Details about why the event destination has been disabled. + */ + disabled: StatusDetails.Disabled | null; + } + + namespace StatusDetails { + interface Disabled { + /** + * Reason event destination has been disabled. + */ + reason: Disabled.Reason; + } + + namespace Disabled { + type Reason = 'no_aws_event_source_exists' | 'user'; + } + } + + type Type = 'amazon_eventbridge' | 'webhook_endpoint'; + + interface WebhookEndpoint { + /** + * The signing secret of the webhook endpoint, only includable on creation. + */ + signing_secret: string | null; + + /** + * The URL of the webhook endpoint, includable. + */ + url: string | null; + } + } + } + } +} diff --git a/types/WebhookEndpointsResource.d.ts b/types/WebhookEndpointsResource.d.ts index c4a38488ed..5749a44ee2 100644 --- a/types/WebhookEndpointsResource.d.ts +++ b/types/WebhookEndpointsResource.d.ts @@ -143,7 +143,8 @@ declare module 'stripe' { | '2023-10-16' | '2024-04-10' | '2024-06-20' - | '2024-09-30.acacia'; + | '2024-09-30.acacia' + | '2024-10-28.acacia'; type EnabledEvent = | '*' @@ -267,6 +268,7 @@ declare module 'stripe' { | 'issuing_token.created' | 'issuing_token.updated' | 'issuing_transaction.created' + | 'issuing_transaction.purchase_details_receipt_updated' | 'issuing_transaction.updated' | 'mandate.updated' | 'payment_intent.amount_capturable_updated' @@ -310,6 +312,7 @@ declare module 'stripe' { | 'radar.early_fraud_warning.created' | 'radar.early_fraud_warning.updated' | 'refund.created' + | 'refund.failed' | 'refund.updated' | 'reporting.report_run.failed' | 'reporting.report_run.succeeded' @@ -548,6 +551,7 @@ declare module 'stripe' { | 'issuing_token.created' | 'issuing_token.updated' | 'issuing_transaction.created' + | 'issuing_transaction.purchase_details_receipt_updated' | 'issuing_transaction.updated' | 'mandate.updated' | 'payment_intent.amount_capturable_updated' @@ -591,6 +595,7 @@ declare module 'stripe' { | 'radar.early_fraud_warning.created' | 'radar.early_fraud_warning.updated' | 'refund.created' + | 'refund.failed' | 'refund.updated' | 'reporting.report_run.failed' | 'reporting.report_run.succeeded' diff --git a/types/index.d.ts b/types/index.d.ts index fa1585e7a1..edaa52970a 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -134,6 +134,7 @@ /// /// /// +/// /// /// /// @@ -281,6 +282,7 @@ /// /// /// +/// /// /// // Imports: The end of the section generated from our OpenAPI spec From 89124c10ed34fe2276e032ea0427a6474acc23e4 Mon Sep 17 00:00:00 2001 From: Ramya Rao Date: Tue, 29 Oct 2024 14:17:15 -0700 Subject: [PATCH 3/3] Bump version to 17.3.0 --- CHANGELOG.md | 38 ++++++++++++++++++++++++++++++++++++++ VERSION | 2 +- package.json | 2 +- src/stripe.core.ts | 2 +- 4 files changed, 41 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 54f2908b74..3ea6b6194f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,42 @@ # Changelog +## 17.3.0 - 2024-10-29 +* [#2204](https://github.com/stripe/stripe-node/pull/2204) Update generated code + * Add support for new resource `V2.EventDestinations` + * Add support for `create`, `retrieve`, `update`, `list`, `del`, `disable`, `enable` and `ping` methods on resource `V2.EventDestinations` + * Add support for `submit_card` test helper method on resource `Issuing.Card` + * Add support for `groups` on `AccountCreateParams`, `AccountUpdateParams`, and `Account` + * Add support for `alma_payments`, `kakao_pay_payments`, `kr_card_payments`, `naver_pay_payments`, `payco_payments`, and `samsung_pay_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` + * Add support for `disable_stripe_user_authentication` on `AccountSession.components.account_management.features`, `AccountSession.components.account_onboarding.features`, `AccountSession.components.balances.features`, `AccountSession.components.notification_banner.features`, `AccountSession.components.payouts.features`, `AccountSessionCreateParams.components.account_management.features`, `AccountSessionCreateParams.components.account_onboarding.features`, `AccountSessionCreateParams.components.balances.features`, `AccountSessionCreateParams.components.notification_banner.features`, and `AccountSessionCreateParams.components.payouts.features` + * Add support for `schedule_at_period_end` on `BillingPortal.Configuration.features.subscription_update`, `BillingPortal.ConfigurationCreateParams.features.subscription_update`, and `BillingPortal.ConfigurationUpdateParams.features.subscription_update` + * Change `BillingPortal.ConfigurationCreateParams.business_profile` and `Refund.next_action.display_details` to be optional + * Add support for `alma` on `Charge.payment_method_details`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, `PaymentMethodConfiguration`, `PaymentMethodCreateParams`, `PaymentMethod`, `Refund.destination_details`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` + * Add support for `kakao_pay` and `kr_card` on `Charge.payment_method_details`, `Checkout.Session.payment_method_options`, `Checkout.SessionCreateParams.payment_method_options`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `Mandate.payment_method_details`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupAttempt.payment_method_details`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` + * Add support for `naver_pay` on `Charge.payment_method_details`, `Checkout.Session.payment_method_options`, `Checkout.SessionCreateParams.payment_method_options`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethodUpdateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` + * Add support for `payco` and `samsung_pay` on `Charge.payment_method_details`, `Checkout.Session.payment_method_options`, `Checkout.SessionCreateParams.payment_method_options`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` + * Add support for new values `alma`, `kakao_pay`, `kr_card`, `naver_pay`, `payco`, and `samsung_pay` on enums `Checkout.SessionCreateParams.payment_method_types[]`, `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type` + * Add support for new values `by_tin`, `ma_vat`, `md_vat`, `tz_vat`, `uz_tin`, and `uz_vat` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, `Tax.Calculation.customer_details.tax_ids[].type`, `Tax.Transaction.customer_details.tax_ids[].type`, and `TaxId.type` + * Add support for new values `alma`, `kakao_pay`, `kr_card`, `naver_pay`, `payco`, and `samsung_pay` on enums `ConfirmationTokenCreateParams.testHelpers.payment_method_data.type`, `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type` + * Add support for new values `alma`, `kakao_pay`, `kr_card`, `naver_pay`, `payco`, and `samsung_pay` on enums `ConfirmationToken.payment_method_preview.type` and `PaymentMethod.type` + * Add support for new value `auto` on enum `CustomerUpdateParams.tax.validate_location` + * Add support for new values `by_tin`, `ma_vat`, `md_vat`, `tz_vat`, `uz_tin`, and `uz_vat` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceCreatePreviewParams.customer_details.tax_ids[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `Tax.CalculationCreateParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type` + * Add support for `enhanced_evidence` on `Dispute.evidence` and `DisputeUpdateParams.evidence` + * Add support for `enhanced_eligibility_types` on `Dispute` + * Add support for `enhanced_eligibility` on `Dispute.evidence_details` + * Add support for new values `issuing_transaction.purchase_details_receipt_updated` and `refund.failed` on enum `Event.type` + * Add support for `metadata` on `Forwarding.RequestCreateParams` and `Forwarding.Request` + * Add support for `automatically_finalizes_at` on `InvoiceCreateParams` and `InvoiceUpdateParams` + * Add support for new values `jp_credit_transfer`, `kakao_pay`, `kr_card`, `naver_pay`, and `payco` on enums `Invoice.payment_settings.payment_method_types[]`, `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, `Subscription.payment_settings.payment_method_types[]`, `SubscriptionCreateParams.payment_settings.payment_method_types[]`, and `SubscriptionUpdateParams.payment_settings.payment_method_types[]` + * Add support for new value `retail_delivery_fee` on enums `InvoiceAddLinesParams.lines[].tax_amounts[].tax_rate_data.tax_type`, `InvoiceUpdateLinesParams.lines[].tax_amounts[].tax_rate_data.tax_type`, `Tax.Calculation.shipping_cost.tax_breakdown[].tax_rate_details.tax_type`, `Tax.Calculation.tax_breakdown[].tax_rate_details.tax_type`, `Tax.CalculationLineItem.tax_breakdown[].tax_rate_details.tax_type`, `Tax.Transaction.shipping_cost.tax_breakdown[].tax_rate_details.tax_type`, `TaxRate.tax_type`, `TaxRateCreateParams.tax_type`, and `TaxRateUpdateParams.tax_type` + * Add support for new value `alma` on enums `PaymentLink.payment_method_types[]`, `PaymentLinkCreateParams.payment_method_types[]`, and `PaymentLinkUpdateParams.payment_method_types[]` + * Add support for `amazon_pay` on `PaymentMethodDomain` + * Change type of `Refund.next_action.display_details` from `RefundNextActionDisplayDetails | null` to `RefundNextActionDisplayDetails` + * Add support for `flat_amount` and `rate_type` on `Tax.Calculation.tax_breakdown[].tax_rate_details` and `TaxRate` + * Add support for `by`, `cr`, `ec`, `ma`, `md`, `rs`, `ru`, `tz`, and `uz` on `Tax.Registration.country_options` and `Tax.RegistrationCreateParams.country_options` + * Add support for new value `state_retail_delivery_fee` on enums `Tax.Registration.country_options.us.type` and `Tax.RegistrationCreateParams.country_options.us.type` + * Add support for `pln` on `Terminal.Configuration.tipping`, `Terminal.ConfigurationCreateParams.tipping`, and `Terminal.ConfigurationUpdateParams.tipping` + * Add support for new values `issuing_transaction.purchase_details_receipt_updated` and `refund.failed` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` + * Add support for new value `2024-10-28.acacia` on enum `WebhookEndpointCreateParams.api_version` + ## 17.2.1 - 2024-10-18 * [#2210](https://github.com/stripe/stripe-node/pull/2210) update object tags for meter-related classes diff --git a/VERSION b/VERSION index 7c95a07592..5aadcd3f24 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -17.2.1 +17.3.0 diff --git a/package.json b/package.json index ca02bb0305..44ac4901cc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "stripe", - "version": "17.2.1", + "version": "17.3.0", "description": "Stripe API wrapper", "keywords": [ "stripe", diff --git a/src/stripe.core.ts b/src/stripe.core.ts index ca7f9a4e88..c7c4e7b575 100644 --- a/src/stripe.core.ts +++ b/src/stripe.core.ts @@ -59,7 +59,7 @@ export function createStripe( platformFunctions: PlatformFunctions, requestSender: RequestSenderFactory = defaultRequestSenderFactory ): typeof Stripe { - Stripe.PACKAGE_VERSION = '17.2.1'; + Stripe.PACKAGE_VERSION = '17.3.0'; Stripe.USER_AGENT = { bindings_version: Stripe.PACKAGE_VERSION, lang: 'node',