From 68a9c70a9c8192f8341f69bddbf5421e6d4ac844 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 15 Mar 2024 23:28:33 +0000 Subject: [PATCH 01/17] Update generated code for v879 --- src/apiVersion.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apiVersion.ts b/src/apiVersion.ts index 15c56494a8..042bfe5503 100644 --- a/src/apiVersion.ts +++ b/src/apiVersion.ts @@ -1,4 +1,4 @@ // File generated from our OpenAPI spec export const ApiVersion = '2023-10-16'; -export const PreviewVersion = '2024-02-15.preview-v2'; +export const PreviewVersion = '2024-03-15.preview-v2'; From 086b6a39c51364c67739c77fb6de576689c528b3 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 18 Mar 2024 19:19:38 +0000 Subject: [PATCH 02/17] Update generated code for v880 --- OPENAPI_VERSION | 2 +- types/ConfirmationTokens.d.ts | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 32951953e6..4a399b5667 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v879 \ No newline at end of file +v880 \ No newline at end of file diff --git a/types/ConfirmationTokens.d.ts b/types/ConfirmationTokens.d.ts index 58baea8382..d206eb9524 100644 --- a/types/ConfirmationTokens.d.ts +++ b/types/ConfirmationTokens.d.ts @@ -81,6 +81,11 @@ declare module 'stripe' { * Shipping information collected on this ConfirmationToken. */ shipping: ConfirmationToken.Shipping | null; + + /** + * Indicates whether the Stripe SDK is used to handle confirmation flow. Defaults to `true` on ConfirmationToken. + */ + use_stripe_sdk: boolean; } namespace ConfirmationToken { From 560bdaab1699d6d04e87faef892850605344f2bf Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 18 Mar 2024 23:41:31 +0000 Subject: [PATCH 03/17] Update generated code for v881 --- OPENAPI_VERSION | 2 +- types/Terminal/Configurations.d.ts | 5 +++++ types/Terminal/ConfigurationsResource.d.ts | 10 ++++++++++ types/Treasury/ReceivedDebits.d.ts | 5 +++++ 4 files changed, 21 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 4a399b5667..be5eeb88d7 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v880 \ No newline at end of file +v881 \ No newline at end of file diff --git a/types/Terminal/Configurations.d.ts b/types/Terminal/Configurations.d.ts index f3b6376272..8bcbd9db9b 100644 --- a/types/Terminal/Configurations.d.ts +++ b/types/Terminal/Configurations.d.ts @@ -34,6 +34,11 @@ declare module 'stripe' { */ livemode: boolean; + /** + * String indicating the name of the Configuration object, set by the user + */ + name: string | null; + offline?: Configuration.Offline; tipping?: Configuration.Tipping; diff --git a/types/Terminal/ConfigurationsResource.d.ts b/types/Terminal/ConfigurationsResource.d.ts index 8a6f6e75d1..cd5f04f76f 100644 --- a/types/Terminal/ConfigurationsResource.d.ts +++ b/types/Terminal/ConfigurationsResource.d.ts @@ -14,6 +14,11 @@ declare module 'stripe' { */ expand?: Array; + /** + * Name of the configuration + */ + name?: string; + /** * Configurations for collecting transactions offline. */ @@ -385,6 +390,11 @@ declare module 'stripe' { */ expand?: Array; + /** + * Name of the configuration + */ + name?: string; + /** * Configurations for collecting transactions offline. */ diff --git a/types/Treasury/ReceivedDebits.d.ts b/types/Treasury/ReceivedDebits.d.ts index 3fac675c2e..06fe6acd90 100644 --- a/types/Treasury/ReceivedDebits.d.ts +++ b/types/Treasury/ReceivedDebits.d.ts @@ -190,6 +190,11 @@ declare module 'stripe' { */ issuing_transaction: string | null; + /** + * Set if the ReceivedDebit was created due to a [Payout](https://stripe.com/docs/api#payouts) object. + */ + payout: string | null; + /** * The ReceivedCredit that Capital withheld from */ From 02abf337f4270df85e8f9f896487734147ad137d Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 20 Mar 2024 10:47:12 +0000 Subject: [PATCH 04/17] Update generated code for v883 --- OPENAPI_VERSION | 2 +- .../resources/generated_examples_test.spec.js | 2 +- types/Accounts.d.ts | 7 ++++++ types/AccountsResource.d.ts | 24 +++++++++++++++++++ 4 files changed, 33 insertions(+), 2 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index be5eeb88d7..c521d42891 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v881 \ No newline at end of file +v883 \ No newline at end of file diff --git a/test/resources/generated_examples_test.spec.js b/test/resources/generated_examples_test.spec.js index 16da3d1a49..c1a643a12b 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","au_becs_debit_payments":"active","bacs_debit_payments":"active","bancontact_payments":"inactive","bank_transfer_payments":"pending","blik_payments":"inactive","boleto_payments":"inactive","card_issuing":"active","card_payments":"active","cartes_bancaires_payments":"active","cashapp_payments":"active","eps_payments":"inactive","fpx_payments":"active","giropay_payments":"active","grabpay_payments":"pending","ideal_payments":"inactive","india_international_payments":"inactive","jcb_payments":"inactive","klarna_payments":"active","konbini_payments":"active","legacy_payments":"active","link_payments":"inactive","oxxo_payments":"pending","p24_payments":"inactive","paynow_payments":"active","paypal_payments":"inactive","payto_payments":"pending","promptpay_payments":"active","revolut_pay_payments":"inactive","sepa_debit_payments":"inactive","sofort_payments":"active","swish_payments":"inactive","tax_reporting_us_1099_k":"inactive","tax_reporting_us_1099_misc":"pending","transfers":"inactive","treasury":"pending","twint_payments":"inactive","us_bank_account_ach_payments":"pending","zip_payments":"pending"},"charges_enabled":true,"company":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"address_kana":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"address_kanji":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"directors_provided":true,"executives_provided":true,"export_license_id":"export_license_id","export_purpose_code":"export_purpose_code","name":"name","name_kana":"name_kana","name_kanji":"name_kanji","owners_provided":true,"ownership_declaration":{"date":"3076014","ip":"ip","user_agent":"user_agent"},"phone":"phone","structure":"single_member_llc","tax_id_provided":true,"tax_id_registrar":"tax_id_registrar","vat_id_provided":true,"verification":{"document":{"back":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"},"details":"details","details_code":"details_code","front":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"}}}},"controller":{"application":{"loss_liable":true,"onboarding_owner":true,"pricing_controls":true},"dashboard":{"type":"express"},"is_controller":true,"type":"account"},"country":"country","created":"1028554472","default_currency":"default_currency","details_submitted":true,"email":"email","external_accounts":null,"future_requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"current_deadline":"270965154","currently_due":["currently_due"],"disabled_reason":"disabled_reason","errors":[{"code":"invalid_address_city_state_postal_code","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"id":"obj_123","individual":{"account":"account","additional_tos_acceptances":{"account":{"date":"3076014","ip":"ip","user_agent":"user_agent"}},"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"address_kana":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"address_kanji":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"created":"1028554472","dob":{"day":99228,"month":104080000,"year":3704893},"email":"email","first_name":"first_name","first_name_kana":"first_name_kana","first_name_kanji":"first_name_kanji","full_name_aliases":["full_name_aliases"],"future_requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"currently_due":["currently_due"],"errors":[{"code":"invalid_address_city_state_postal_code","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"gender":"gender","id":"obj_123","id_number_provided":true,"id_number_secondary_provided":true,"last_name":"last_name","last_name_kana":"last_name_kana","last_name_kanji":"last_name_kanji","maiden_name":"maiden_name","metadata":{"undefined":"metadata"},"nationality":"nationality","object":"person","phone":"phone","political_exposure":"none","registered_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"relationship":{"director":true,"executive":true,"legal_guardian":true,"owner":true,"percent_ownership":760989685,"representative":true,"title":"title"},"requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"currently_due":["currently_due"],"errors":[{"code":"invalid_address_city_state_postal_code","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"ssn_last_4_provided":true,"verification":{"additional_document":{"back":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"},"details":"details","details_code":"details_code","front":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"}},"details":"details","details_code":"details_code","document":{"back":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"},"details":"details","details_code":"details_code","front":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"}},"status":"status"}},"metadata":{"undefined":"metadata"},"object":"account","payouts_enabled":true,"requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"current_deadline":"270965154","currently_due":["currently_due"],"disabled_reason":"disabled_reason","errors":[{"code":"invalid_address_city_state_postal_code","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"settings":{"bacs_debit_payments":{"display_name":"display_name","service_user_number":"service_user_number"},"branding":{"icon":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"},"logo":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"},"primary_color":"primary_color","secondary_color":"secondary_color"},"card_issuing":{"tos_acceptance":{"date":3076014,"ip":"ip","user_agent":"user_agent"}},"card_payments":{"decline_on":{"avs_failure":true,"cvc_failure":true},"statement_descriptor_prefix":"statement_descriptor_prefix","statement_descriptor_prefix_kana":"statement_descriptor_prefix_kana","statement_descriptor_prefix_kanji":"statement_descriptor_prefix_kanji"},"dashboard":{"display_name":"display_name","timezone":"timezone"},"invoices":{"default_account_tax_ids":[{"country":"country","created":"1028554472","customer":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"balance":339185956,"cash_balance":{"available":{"undefined":733902135},"customer":"customer","livemode":true,"object":"cash_balance","settings":{"reconciliation_mode":"manual","using_merchant_default":true}},"created":"1028554472","currency":"currency","default_source":null,"delinquent":true,"description":"description","discount":{"checkout_session":"checkout_session","coupon":null,"customer":null,"end":"100571","id":"obj_123","invoice":"invoice","invoice_item":"invoice_item","object":"discount","promotion_code":null,"start":"109757538","subscription":"subscription","subscription_item":"subscription_item"},"email":"email","id":"obj_123","invoice_credit_balance":{"undefined":1267696360},"invoice_prefix":"invoice_prefix","invoice_settings":{"custom_fields":[{"name":"name","value":"value"}],"default_payment_method":{"acss_debit":{"bank_name":"bank_name","fingerprint":"fingerprint","institution_number":"institution_number","last4":"last4","transit_number":"transit_number"},"affirm":{},"afterpay_clearpay":{},"alipay":{},"au_becs_debit":{"bsb_number":"bsb_number","fingerprint":"fingerprint","last4":"last4"},"bacs_debit":{"fingerprint":"fingerprint","last4":"last4","sort_code":"sort_code"},"bancontact":{},"billing_details":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","phone":"phone"},"blik":{},"boleto":{"tax_id":"tax_id"},"card":{"brand":"brand","checks":{"address_line1_check":"address_line1_check","address_postal_code_check":"address_postal_code_check","cvc_check":"cvc_check"},"country":"country","description":"description","display_brand":"display_brand","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"three_d_secure_usage":{"supported":true},"wallet":{"amex_express_checkout":{},"apple_pay":{},"dynamic_last4":"dynamic_last4","google_pay":{},"link":{},"masterpass":{"billing_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","shipping_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"}},"samsung_pay":{},"type":"link","visa_checkout":{"billing_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","shipping_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"}}}},"card_present":{"brand":"brand","cardholder_name":"cardholder_name","country":"country","description":"description","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"read_method":"magnetic_stripe_track2"},"cashapp":{"buyer_id":"buyer_id","cashtag":"cashtag"},"created":"1028554472","customer":null,"customer_balance":{},"eps":{"bank":"btv_vier_lander_bank"},"fpx":{"account_holder_type":"individual","bank":"bsn"},"giropay":{},"grabpay":{},"id":"obj_123","ideal":{"bank":"sns_bank","bic":"BUNQNL2A"},"interac_present":{"brand":"brand","cardholder_name":"cardholder_name","country":"country","description":"description","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2"},"klarna":{"dob":{"day":99228,"month":104080000,"year":3704893}},"konbini":{},"link":{"email":"email","persistent_token":"persistent_token"},"livemode":true,"metadata":{"undefined":"metadata"},"multibanco":{},"object":"payment_method","oxxo":{},"p24":{"bank":"noble_pay"},"paynow":{},"paypal":{"fingerprint":"fingerprint","payer_email":"payer_email","payer_id":"payer_id","verified_email":"verified_email"},"payto":{"bsb_number":"bsb_number","last4":"last4","pay_id":"pay_id"},"pix":{},"promptpay":{},"radar_options":{"session":"session"},"revolut_pay":{},"sepa_debit":{"bank_code":"bank_code","branch_code":"branch_code","country":"country","fingerprint":"fingerprint","generated_from":{"charge":null,"setup_attempt":null},"last4":"last4"},"sofort":{"country":"country"},"swish":{},"twint":{},"type":"acss_debit","us_bank_account":{"account_holder_type":"individual","account_number":"account_number","account_type":"checking","bank_name":"bank_name","financial_connections_account":"financial_connections_account","fingerprint":"fingerprint","last4":"last4","networks":{"preferred":"preferred","supported":["ach"]},"routing_number":"routing_number","status_details":{"blocked":{"network_code":"R29","reason":"bank_account_unusable"}}},"wechat_pay":{},"zip":{}},"footer":"footer","rendering_options":{"amount_tax_display":"amount_tax_display"}},"livemode":true,"metadata":{"undefined":"metadata"},"name":"name","next_invoice_sequence":1356358751,"object":"customer","phone":"phone","preferred_locales":["preferred_locales"],"shipping":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"carrier":"carrier","name":"name","phone":"phone","tracking_number":"tracking_number"},"sources":null,"subscriptions":null,"tax":{"automatic_tax":"unrecognized_location","ip_address":"ip_address","location":{"country":"country","source":"ip_address","state":"state"}},"tax_exempt":"reverse","tax_ids":null,"test_clock":{"created":"1028554472","deletes_after":"73213179","frozen_time":"2033541876","id":"obj_123","livemode":true,"name":"name","object":"test_helpers.test_clock","status":"advancing"}},"id":"obj_123","livemode":true,"object":"tax_id","owner":{"account":{"business_profile":{"annual_revenue":{"amount":1413853096,"currency":"currency","fiscal_year_end":"fiscal_year_end"},"estimated_worker_count":884794319,"mcc":"mcc","monthly_estimated_revenue":{"amount":1413853096,"currency":"currency"},"name":"name","product_description":"product_description","support_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"support_email":"support_email","support_phone":"support_phone","support_url":"support_url","url":"url"},"business_type":"government_entity","capabilities":{"acss_debit_payments":"inactive","affirm_payments":"pending","afterpay_clearpay_payments":"inactive","au_becs_debit_payments":"active","bacs_debit_payments":"active","bancontact_payments":"inactive","bank_transfer_payments":"pending","blik_payments":"inactive","boleto_payments":"inactive","card_issuing":"active","card_payments":"active","cartes_bancaires_payments":"active","cashapp_payments":"active","eps_payments":"inactive","fpx_payments":"active","giropay_payments":"active","grabpay_payments":"pending","ideal_payments":"inactive","india_international_payments":"inactive","jcb_payments":"inactive","klarna_payments":"active","konbini_payments":"active","legacy_payments":"active","link_payments":"inactive","oxxo_payments":"pending","p24_payments":"inactive","paynow_payments":"active","paypal_payments":"inactive","payto_payments":"pending","promptpay_payments":"active","revolut_pay_payments":"inactive","sepa_debit_payments":"inactive","sofort_payments":"active","swish_payments":"inactive","tax_reporting_us_1099_k":"inactive","tax_reporting_us_1099_misc":"pending","transfers":"inactive","treasury":"pending","twint_payments":"inactive","us_bank_account_ach_payments":"pending","zip_payments":"pending"},"charges_enabled":true,"company":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"address_kana":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"address_kanji":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"directors_provided":true,"executives_provided":true,"export_license_id":"export_license_id","export_purpose_code":"export_purpose_code","name":"name","name_kana":"name_kana","name_kanji":"name_kanji","owners_provided":true,"ownership_declaration":{"date":"3076014","ip":"ip","user_agent":"user_agent"},"phone":"phone","structure":"single_member_llc","tax_id_provided":true,"tax_id_registrar":"tax_id_registrar","vat_id_provided":true,"verification":{"document":{"back":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"},"details":"details","details_code":"details_code","front":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"}}}},"controller":{"application":{"loss_liable":true,"onboarding_owner":true,"pricing_controls":true},"dashboard":{"type":"express"},"is_controller":true,"type":"account"},"country":"country","created":"1028554472","default_currency":"default_currency","details_submitted":true,"email":"email","external_accounts":null,"future_requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"current_deadline":"270965154","currently_due":["currently_due"],"disabled_reason":"disabled_reason","errors":[{"code":"invalid_address_city_state_postal_code","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"id":"obj_123","individual":{"account":"account","additional_tos_acceptances":{"account":{"date":"3076014","ip":"ip","user_agent":"user_agent"}},"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"address_kana":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"address_kanji":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"created":"1028554472","dob":{"day":99228,"month":104080000,"year":3704893},"email":"email","first_name":"first_name","first_name_kana":"first_name_kana","first_name_kanji":"first_name_kanji","full_name_aliases":["full_name_aliases"],"future_requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"currently_due":["currently_due"],"errors":[{"code":"invalid_address_city_state_postal_code","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"gender":"gender","id":"obj_123","id_number_provided":true,"id_number_secondary_provided":true,"last_name":"last_name","last_name_kana":"last_name_kana","last_name_kanji":"last_name_kanji","maiden_name":"maiden_name","metadata":{"undefined":"metadata"},"nationality":"nationality","object":"person","phone":"phone","political_exposure":"none","registered_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"relationship":{"director":true,"executive":true,"legal_guardian":true,"owner":true,"percent_ownership":760989685,"representative":true,"title":"title"},"requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"currently_due":["currently_due"],"errors":[{"code":"invalid_address_city_state_postal_code","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"ssn_last_4_provided":true,"verification":{"additional_document":{"back":null,"details":"details","details_code":"details_code","front":null},"details":"details","details_code":"details_code","document":{"back":null,"details":"details","details_code":"details_code","front":null},"status":"status"}},"metadata":{"undefined":"metadata"},"object":"account","payouts_enabled":true,"requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"current_deadline":"270965154","currently_due":["currently_due"],"disabled_reason":"disabled_reason","errors":[{"code":"invalid_address_city_state_postal_code","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"settings":{"bacs_debit_payments":{"display_name":"display_name","service_user_number":"service_user_number"},"branding":{"icon":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"},"logo":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"},"primary_color":"primary_color","secondary_color":"secondary_color"},"card_issuing":{"tos_acceptance":{"date":3076014,"ip":"ip","user_agent":"user_agent"}},"card_payments":{"decline_on":{"avs_failure":true,"cvc_failure":true},"statement_descriptor_prefix":"statement_descriptor_prefix","statement_descriptor_prefix_kana":"statement_descriptor_prefix_kana","statement_descriptor_prefix_kanji":"statement_descriptor_prefix_kanji"},"dashboard":{"display_name":"display_name","timezone":"timezone"},"invoices":{"default_account_tax_ids":[{"country":"country","created":"1028554472","customer":null,"id":"obj_123","livemode":true,"object":"tax_id","owner":{"account":null,"application":null,"customer":null,"type":"customer"},"type":"jp_cn","value":"value","verification":{"status":"unverified","verified_address":"verified_address","verified_name":"verified_name"}}]},"payments":{"statement_descriptor":"statement_descriptor","statement_descriptor_kana":"statement_descriptor_kana","statement_descriptor_kanji":"statement_descriptor_kanji","statement_descriptor_prefix_kana":"statement_descriptor_prefix_kana","statement_descriptor_prefix_kanji":"statement_descriptor_prefix_kanji"},"payouts":{"debit_negative_balances":true,"schedule":{"delay_days":1647351405,"interval":"interval","monthly_anchor":1920305369,"weekly_anchor":"weekly_anchor"},"statement_descriptor":"statement_descriptor"},"sepa_debit_payments":{"creditor_id":"creditor_id"},"tax_forms":{"consented_to_paperless_delivery":true},"treasury":{"tos_acceptance":{"date":3076014,"ip":"ip","user_agent":"user_agent"}}},"tos_acceptance":{"date":"3076014","ip":"ip","service_agreement":"service_agreement","user_agent":"user_agent"},"type":"custom"},"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":{},"au_becs_debit":{"bsb_number":"bsb_number","fingerprint":"fingerprint","last4":"last4"},"bacs_debit":{"fingerprint":"fingerprint","last4":"last4","sort_code":"sort_code"},"bancontact":{},"billing_details":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","phone":"phone"},"blik":{},"boleto":{"tax_id":"tax_id"},"card":{"brand":"brand","checks":{"address_line1_check":"address_line1_check","address_postal_code_check":"address_postal_code_check","cvc_check":"cvc_check"},"country":"country","description":"description","display_brand":"display_brand","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"three_d_secure_usage":{"supported":true},"wallet":{"amex_express_checkout":{},"apple_pay":{},"dynamic_last4":"dynamic_last4","google_pay":{},"link":{},"masterpass":{"billing_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","shipping_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"}},"samsung_pay":{},"type":"link","visa_checkout":{"billing_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","shipping_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"}}}},"card_present":{"brand":"brand","cardholder_name":"cardholder_name","country":"country","description":"description","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"read_method":"magnetic_stripe_track2"},"cashapp":{"buyer_id":"buyer_id","cashtag":"cashtag"},"created":"1028554472","customer":null,"customer_balance":{},"eps":{"bank":"btv_vier_lander_bank"},"fpx":{"account_holder_type":"individual","bank":"bsn"},"giropay":{},"grabpay":{},"id":"obj_123","ideal":{"bank":"sns_bank","bic":"BUNQNL2A"},"interac_present":{"brand":"brand","cardholder_name":"cardholder_name","country":"country","description":"description","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2"},"klarna":{"dob":{"day":99228,"month":104080000,"year":3704893}},"konbini":{},"link":{"email":"email","persistent_token":"persistent_token"},"livemode":true,"metadata":{"undefined":"metadata"},"multibanco":{},"object":"payment_method","oxxo":{},"p24":{"bank":"noble_pay"},"paynow":{},"paypal":{"fingerprint":"fingerprint","payer_email":"payer_email","payer_id":"payer_id","verified_email":"verified_email"},"payto":{"bsb_number":"bsb_number","last4":"last4","pay_id":"pay_id"},"pix":{},"promptpay":{},"radar_options":{"session":"session"},"revolut_pay":{},"sepa_debit":{"bank_code":"bank_code","branch_code":"branch_code","country":"country","fingerprint":"fingerprint","generated_from":{"charge":null,"setup_attempt":null},"last4":"last4"},"sofort":{"country":"country"},"swish":{},"twint":{},"type":"acss_debit","us_bank_account":{"account_holder_type":"individual","account_number":"account_number","account_type":"checking","bank_name":"bank_name","financial_connections_account":"financial_connections_account","fingerprint":"fingerprint","last4":"last4","networks":{"preferred":"preferred","supported":["ach"]},"routing_number":"routing_number","status_details":{"blocked":{"network_code":"R29","reason":"bank_account_unusable"}}},"wechat_pay":{},"zip":{}},"footer":"footer","rendering_options":{"amount_tax_display":"amount_tax_display"}},"livemode":true,"metadata":{"undefined":"metadata"},"name":"name","next_invoice_sequence":1356358751,"object":"customer","phone":"phone","preferred_locales":["preferred_locales"],"shipping":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"carrier":"carrier","name":"name","phone":"phone","tracking_number":"tracking_number"},"sources":null,"subscriptions":null,"tax":{"automatic_tax":"unrecognized_location","ip_address":"ip_address","location":{"country":"country","source":"ip_address","state":"state"}},"tax_exempt":"reverse","tax_ids":null,"test_clock":{"created":"1028554472","deletes_after":"73213179","frozen_time":"2033541876","id":"obj_123","livemode":true,"name":"name","object":"test_helpers.test_clock","status":"advancing"}},"type":"customer"},"type":"jp_cn","value":"value","verification":{"status":"unverified","verified_address":"verified_address","verified_name":"verified_name"}}]},"payments":{"statement_descriptor":"statement_descriptor","statement_descriptor_kana":"statement_descriptor_kana","statement_descriptor_kanji":"statement_descriptor_kanji","statement_descriptor_prefix_kana":"statement_descriptor_prefix_kana","statement_descriptor_prefix_kanji":"statement_descriptor_prefix_kanji"},"payouts":{"debit_negative_balances":true,"schedule":{"delay_days":1647351405,"interval":"interval","monthly_anchor":1920305369,"weekly_anchor":"weekly_anchor"},"statement_descriptor":"statement_descriptor"},"sepa_debit_payments":{"creditor_id":"creditor_id"},"tax_forms":{"consented_to_paperless_delivery":true},"treasury":{"tos_acceptance":{"date":3076014,"ip":"ip","user_agent":"user_agent"}}},"tos_acceptance":{"date":"3076014","ip":"ip","service_agreement":"service_agreement","user_agent":"user_agent"},"type":"custom"}', + '{"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","au_becs_debit_payments":"active","bacs_debit_payments":"active","bancontact_payments":"inactive","bank_transfer_payments":"pending","blik_payments":"inactive","boleto_payments":"inactive","card_issuing":"active","card_payments":"active","cartes_bancaires_payments":"active","cashapp_payments":"active","eps_payments":"inactive","fpx_payments":"active","giropay_payments":"active","grabpay_payments":"pending","ideal_payments":"inactive","india_international_payments":"inactive","jcb_payments":"inactive","klarna_payments":"active","konbini_payments":"active","legacy_payments":"active","link_payments":"inactive","mobilepay_payments":"pending","oxxo_payments":"pending","p24_payments":"inactive","paynow_payments":"active","paypal_payments":"inactive","payto_payments":"pending","promptpay_payments":"active","revolut_pay_payments":"inactive","sepa_debit_payments":"inactive","sofort_payments":"active","swish_payments":"inactive","tax_reporting_us_1099_k":"inactive","tax_reporting_us_1099_misc":"pending","transfers":"inactive","treasury":"pending","twint_payments":"inactive","us_bank_account_ach_payments":"pending","zip_payments":"pending"},"charges_enabled":true,"company":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"address_kana":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"address_kanji":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"directors_provided":true,"executives_provided":true,"export_license_id":"export_license_id","export_purpose_code":"export_purpose_code","name":"name","name_kana":"name_kana","name_kanji":"name_kanji","owners_provided":true,"ownership_declaration":{"date":"3076014","ip":"ip","user_agent":"user_agent"},"phone":"phone","structure":"single_member_llc","tax_id_provided":true,"tax_id_registrar":"tax_id_registrar","vat_id_provided":true,"verification":{"document":{"back":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"},"details":"details","details_code":"details_code","front":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"}}}},"controller":{"application":{"loss_liable":true,"onboarding_owner":true,"pricing_controls":true},"dashboard":{"type":"express"},"is_controller":true,"type":"account"},"country":"country","created":"1028554472","default_currency":"default_currency","details_submitted":true,"email":"email","external_accounts":null,"future_requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"current_deadline":"270965154","currently_due":["currently_due"],"disabled_reason":"disabled_reason","errors":[{"code":"invalid_address_city_state_postal_code","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"id":"obj_123","individual":{"account":"account","additional_tos_acceptances":{"account":{"date":"3076014","ip":"ip","user_agent":"user_agent"}},"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"address_kana":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"address_kanji":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"created":"1028554472","dob":{"day":99228,"month":104080000,"year":3704893},"email":"email","first_name":"first_name","first_name_kana":"first_name_kana","first_name_kanji":"first_name_kanji","full_name_aliases":["full_name_aliases"],"future_requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"currently_due":["currently_due"],"errors":[{"code":"invalid_address_city_state_postal_code","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"gender":"gender","id":"obj_123","id_number_provided":true,"id_number_secondary_provided":true,"last_name":"last_name","last_name_kana":"last_name_kana","last_name_kanji":"last_name_kanji","maiden_name":"maiden_name","metadata":{"undefined":"metadata"},"nationality":"nationality","object":"person","phone":"phone","political_exposure":"none","registered_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"relationship":{"director":true,"executive":true,"legal_guardian":true,"owner":true,"percent_ownership":760989685,"representative":true,"title":"title"},"requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"currently_due":["currently_due"],"errors":[{"code":"invalid_address_city_state_postal_code","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"ssn_last_4_provided":true,"verification":{"additional_document":{"back":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"},"details":"details","details_code":"details_code","front":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"}},"details":"details","details_code":"details_code","document":{"back":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"},"details":"details","details_code":"details_code","front":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"}},"status":"status"}},"metadata":{"undefined":"metadata"},"object":"account","payouts_enabled":true,"requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"current_deadline":"270965154","currently_due":["currently_due"],"disabled_reason":"disabled_reason","errors":[{"code":"invalid_address_city_state_postal_code","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"settings":{"bacs_debit_payments":{"display_name":"display_name","service_user_number":"service_user_number"},"branding":{"icon":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"},"logo":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"},"primary_color":"primary_color","secondary_color":"secondary_color"},"card_issuing":{"tos_acceptance":{"date":3076014,"ip":"ip","user_agent":"user_agent"}},"card_payments":{"decline_on":{"avs_failure":true,"cvc_failure":true},"statement_descriptor_prefix":"statement_descriptor_prefix","statement_descriptor_prefix_kana":"statement_descriptor_prefix_kana","statement_descriptor_prefix_kanji":"statement_descriptor_prefix_kanji"},"dashboard":{"display_name":"display_name","timezone":"timezone"},"invoices":{"default_account_tax_ids":[{"country":"country","created":"1028554472","customer":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"balance":339185956,"cash_balance":{"available":{"undefined":733902135},"customer":"customer","livemode":true,"object":"cash_balance","settings":{"reconciliation_mode":"manual","using_merchant_default":true}},"created":"1028554472","currency":"currency","default_source":null,"delinquent":true,"description":"description","discount":{"checkout_session":"checkout_session","coupon":null,"customer":null,"end":"100571","id":"obj_123","invoice":"invoice","invoice_item":"invoice_item","object":"discount","promotion_code":null,"start":"109757538","subscription":"subscription","subscription_item":"subscription_item"},"email":"email","id":"obj_123","invoice_credit_balance":{"undefined":1267696360},"invoice_prefix":"invoice_prefix","invoice_settings":{"custom_fields":[{"name":"name","value":"value"}],"default_payment_method":{"acss_debit":{"bank_name":"bank_name","fingerprint":"fingerprint","institution_number":"institution_number","last4":"last4","transit_number":"transit_number"},"affirm":{},"afterpay_clearpay":{},"alipay":{},"au_becs_debit":{"bsb_number":"bsb_number","fingerprint":"fingerprint","last4":"last4"},"bacs_debit":{"fingerprint":"fingerprint","last4":"last4","sort_code":"sort_code"},"bancontact":{},"billing_details":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","phone":"phone"},"blik":{},"boleto":{"tax_id":"tax_id"},"card":{"brand":"brand","checks":{"address_line1_check":"address_line1_check","address_postal_code_check":"address_postal_code_check","cvc_check":"cvc_check"},"country":"country","description":"description","display_brand":"display_brand","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"three_d_secure_usage":{"supported":true},"wallet":{"amex_express_checkout":{},"apple_pay":{},"dynamic_last4":"dynamic_last4","google_pay":{},"link":{},"masterpass":{"billing_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","shipping_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"}},"samsung_pay":{},"type":"link","visa_checkout":{"billing_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","shipping_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"}}}},"card_present":{"brand":"brand","cardholder_name":"cardholder_name","country":"country","description":"description","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"read_method":"magnetic_stripe_track2"},"cashapp":{"buyer_id":"buyer_id","cashtag":"cashtag"},"created":"1028554472","customer":null,"customer_balance":{},"eps":{"bank":"btv_vier_lander_bank"},"fpx":{"account_holder_type":"individual","bank":"bsn"},"giropay":{},"grabpay":{},"id":"obj_123","ideal":{"bank":"sns_bank","bic":"BUNQNL2A"},"interac_present":{"brand":"brand","cardholder_name":"cardholder_name","country":"country","description":"description","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2"},"klarna":{"dob":{"day":99228,"month":104080000,"year":3704893}},"konbini":{},"link":{"email":"email","persistent_token":"persistent_token"},"livemode":true,"metadata":{"undefined":"metadata"},"multibanco":{},"object":"payment_method","oxxo":{},"p24":{"bank":"noble_pay"},"paynow":{},"paypal":{"fingerprint":"fingerprint","payer_email":"payer_email","payer_id":"payer_id","verified_email":"verified_email"},"payto":{"bsb_number":"bsb_number","last4":"last4","pay_id":"pay_id"},"pix":{},"promptpay":{},"radar_options":{"session":"session"},"revolut_pay":{},"sepa_debit":{"bank_code":"bank_code","branch_code":"branch_code","country":"country","fingerprint":"fingerprint","generated_from":{"charge":null,"setup_attempt":null},"last4":"last4"},"sofort":{"country":"country"},"swish":{},"twint":{},"type":"acss_debit","us_bank_account":{"account_holder_type":"individual","account_number":"account_number","account_type":"checking","bank_name":"bank_name","financial_connections_account":"financial_connections_account","fingerprint":"fingerprint","last4":"last4","networks":{"preferred":"preferred","supported":["ach"]},"routing_number":"routing_number","status_details":{"blocked":{"network_code":"R29","reason":"bank_account_unusable"}}},"wechat_pay":{},"zip":{}},"footer":"footer","rendering_options":{"amount_tax_display":"amount_tax_display"}},"livemode":true,"metadata":{"undefined":"metadata"},"name":"name","next_invoice_sequence":1356358751,"object":"customer","phone":"phone","preferred_locales":["preferred_locales"],"shipping":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"carrier":"carrier","name":"name","phone":"phone","tracking_number":"tracking_number"},"sources":null,"subscriptions":null,"tax":{"automatic_tax":"unrecognized_location","ip_address":"ip_address","location":{"country":"country","source":"ip_address","state":"state"}},"tax_exempt":"reverse","tax_ids":null,"test_clock":{"created":"1028554472","deletes_after":"73213179","frozen_time":"2033541876","id":"obj_123","livemode":true,"name":"name","object":"test_helpers.test_clock","status":"advancing"}},"id":"obj_123","livemode":true,"object":"tax_id","owner":{"account":{"business_profile":{"annual_revenue":{"amount":1413853096,"currency":"currency","fiscal_year_end":"fiscal_year_end"},"estimated_worker_count":884794319,"mcc":"mcc","monthly_estimated_revenue":{"amount":1413853096,"currency":"currency"},"name":"name","product_description":"product_description","support_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"support_email":"support_email","support_phone":"support_phone","support_url":"support_url","url":"url"},"business_type":"government_entity","capabilities":{"acss_debit_payments":"inactive","affirm_payments":"pending","afterpay_clearpay_payments":"inactive","au_becs_debit_payments":"active","bacs_debit_payments":"active","bancontact_payments":"inactive","bank_transfer_payments":"pending","blik_payments":"inactive","boleto_payments":"inactive","card_issuing":"active","card_payments":"active","cartes_bancaires_payments":"active","cashapp_payments":"active","eps_payments":"inactive","fpx_payments":"active","giropay_payments":"active","grabpay_payments":"pending","ideal_payments":"inactive","india_international_payments":"inactive","jcb_payments":"inactive","klarna_payments":"active","konbini_payments":"active","legacy_payments":"active","link_payments":"inactive","mobilepay_payments":"pending","oxxo_payments":"pending","p24_payments":"inactive","paynow_payments":"active","paypal_payments":"inactive","payto_payments":"pending","promptpay_payments":"active","revolut_pay_payments":"inactive","sepa_debit_payments":"inactive","sofort_payments":"active","swish_payments":"inactive","tax_reporting_us_1099_k":"inactive","tax_reporting_us_1099_misc":"pending","transfers":"inactive","treasury":"pending","twint_payments":"inactive","us_bank_account_ach_payments":"pending","zip_payments":"pending"},"charges_enabled":true,"company":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"address_kana":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"address_kanji":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"directors_provided":true,"executives_provided":true,"export_license_id":"export_license_id","export_purpose_code":"export_purpose_code","name":"name","name_kana":"name_kana","name_kanji":"name_kanji","owners_provided":true,"ownership_declaration":{"date":"3076014","ip":"ip","user_agent":"user_agent"},"phone":"phone","structure":"single_member_llc","tax_id_provided":true,"tax_id_registrar":"tax_id_registrar","vat_id_provided":true,"verification":{"document":{"back":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"},"details":"details","details_code":"details_code","front":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"}}}},"controller":{"application":{"loss_liable":true,"onboarding_owner":true,"pricing_controls":true},"dashboard":{"type":"express"},"is_controller":true,"type":"account"},"country":"country","created":"1028554472","default_currency":"default_currency","details_submitted":true,"email":"email","external_accounts":null,"future_requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"current_deadline":"270965154","currently_due":["currently_due"],"disabled_reason":"disabled_reason","errors":[{"code":"invalid_address_city_state_postal_code","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"id":"obj_123","individual":{"account":"account","additional_tos_acceptances":{"account":{"date":"3076014","ip":"ip","user_agent":"user_agent"}},"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"address_kana":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"address_kanji":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"created":"1028554472","dob":{"day":99228,"month":104080000,"year":3704893},"email":"email","first_name":"first_name","first_name_kana":"first_name_kana","first_name_kanji":"first_name_kanji","full_name_aliases":["full_name_aliases"],"future_requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"currently_due":["currently_due"],"errors":[{"code":"invalid_address_city_state_postal_code","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"gender":"gender","id":"obj_123","id_number_provided":true,"id_number_secondary_provided":true,"last_name":"last_name","last_name_kana":"last_name_kana","last_name_kanji":"last_name_kanji","maiden_name":"maiden_name","metadata":{"undefined":"metadata"},"nationality":"nationality","object":"person","phone":"phone","political_exposure":"none","registered_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"relationship":{"director":true,"executive":true,"legal_guardian":true,"owner":true,"percent_ownership":760989685,"representative":true,"title":"title"},"requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"currently_due":["currently_due"],"errors":[{"code":"invalid_address_city_state_postal_code","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"ssn_last_4_provided":true,"verification":{"additional_document":{"back":null,"details":"details","details_code":"details_code","front":null},"details":"details","details_code":"details_code","document":{"back":null,"details":"details","details_code":"details_code","front":null},"status":"status"}},"metadata":{"undefined":"metadata"},"object":"account","payouts_enabled":true,"requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"current_deadline":"270965154","currently_due":["currently_due"],"disabled_reason":"disabled_reason","errors":[{"code":"invalid_address_city_state_postal_code","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"settings":{"bacs_debit_payments":{"display_name":"display_name","service_user_number":"service_user_number"},"branding":{"icon":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"},"logo":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"},"primary_color":"primary_color","secondary_color":"secondary_color"},"card_issuing":{"tos_acceptance":{"date":3076014,"ip":"ip","user_agent":"user_agent"}},"card_payments":{"decline_on":{"avs_failure":true,"cvc_failure":true},"statement_descriptor_prefix":"statement_descriptor_prefix","statement_descriptor_prefix_kana":"statement_descriptor_prefix_kana","statement_descriptor_prefix_kanji":"statement_descriptor_prefix_kanji"},"dashboard":{"display_name":"display_name","timezone":"timezone"},"invoices":{"default_account_tax_ids":[{"country":"country","created":"1028554472","customer":null,"id":"obj_123","livemode":true,"object":"tax_id","owner":{"account":null,"application":null,"customer":null,"type":"customer"},"type":"jp_cn","value":"value","verification":{"status":"unverified","verified_address":"verified_address","verified_name":"verified_name"}}]},"payments":{"statement_descriptor":"statement_descriptor","statement_descriptor_kana":"statement_descriptor_kana","statement_descriptor_kanji":"statement_descriptor_kanji","statement_descriptor_prefix_kana":"statement_descriptor_prefix_kana","statement_descriptor_prefix_kanji":"statement_descriptor_prefix_kanji"},"payouts":{"debit_negative_balances":true,"schedule":{"delay_days":1647351405,"interval":"interval","monthly_anchor":1920305369,"weekly_anchor":"weekly_anchor"},"statement_descriptor":"statement_descriptor"},"sepa_debit_payments":{"creditor_id":"creditor_id"},"tax_forms":{"consented_to_paperless_delivery":true},"treasury":{"tos_acceptance":{"date":3076014,"ip":"ip","user_agent":"user_agent"}}},"tos_acceptance":{"date":"3076014","ip":"ip","service_agreement":"service_agreement","user_agent":"user_agent"},"type":"custom"},"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":{},"au_becs_debit":{"bsb_number":"bsb_number","fingerprint":"fingerprint","last4":"last4"},"bacs_debit":{"fingerprint":"fingerprint","last4":"last4","sort_code":"sort_code"},"bancontact":{},"billing_details":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","phone":"phone"},"blik":{},"boleto":{"tax_id":"tax_id"},"card":{"brand":"brand","checks":{"address_line1_check":"address_line1_check","address_postal_code_check":"address_postal_code_check","cvc_check":"cvc_check"},"country":"country","description":"description","display_brand":"display_brand","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"three_d_secure_usage":{"supported":true},"wallet":{"amex_express_checkout":{},"apple_pay":{},"dynamic_last4":"dynamic_last4","google_pay":{},"link":{},"masterpass":{"billing_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","shipping_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"}},"samsung_pay":{},"type":"link","visa_checkout":{"billing_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","shipping_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"}}}},"card_present":{"brand":"brand","cardholder_name":"cardholder_name","country":"country","description":"description","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"read_method":"magnetic_stripe_track2"},"cashapp":{"buyer_id":"buyer_id","cashtag":"cashtag"},"created":"1028554472","customer":null,"customer_balance":{},"eps":{"bank":"btv_vier_lander_bank"},"fpx":{"account_holder_type":"individual","bank":"bsn"},"giropay":{},"grabpay":{},"id":"obj_123","ideal":{"bank":"sns_bank","bic":"BUNQNL2A"},"interac_present":{"brand":"brand","cardholder_name":"cardholder_name","country":"country","description":"description","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2"},"klarna":{"dob":{"day":99228,"month":104080000,"year":3704893}},"konbini":{},"link":{"email":"email","persistent_token":"persistent_token"},"livemode":true,"metadata":{"undefined":"metadata"},"multibanco":{},"object":"payment_method","oxxo":{},"p24":{"bank":"noble_pay"},"paynow":{},"paypal":{"fingerprint":"fingerprint","payer_email":"payer_email","payer_id":"payer_id","verified_email":"verified_email"},"payto":{"bsb_number":"bsb_number","last4":"last4","pay_id":"pay_id"},"pix":{},"promptpay":{},"radar_options":{"session":"session"},"revolut_pay":{},"sepa_debit":{"bank_code":"bank_code","branch_code":"branch_code","country":"country","fingerprint":"fingerprint","generated_from":{"charge":null,"setup_attempt":null},"last4":"last4"},"sofort":{"country":"country"},"swish":{},"twint":{},"type":"acss_debit","us_bank_account":{"account_holder_type":"individual","account_number":"account_number","account_type":"checking","bank_name":"bank_name","financial_connections_account":"financial_connections_account","fingerprint":"fingerprint","last4":"last4","networks":{"preferred":"preferred","supported":["ach"]},"routing_number":"routing_number","status_details":{"blocked":{"network_code":"R29","reason":"bank_account_unusable"}}},"wechat_pay":{},"zip":{}},"footer":"footer","rendering_options":{"amount_tax_display":"amount_tax_display"}},"livemode":true,"metadata":{"undefined":"metadata"},"name":"name","next_invoice_sequence":1356358751,"object":"customer","phone":"phone","preferred_locales":["preferred_locales"],"shipping":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"carrier":"carrier","name":"name","phone":"phone","tracking_number":"tracking_number"},"sources":null,"subscriptions":null,"tax":{"automatic_tax":"unrecognized_location","ip_address":"ip_address","location":{"country":"country","source":"ip_address","state":"state"}},"tax_exempt":"reverse","tax_ids":null,"test_clock":{"created":"1028554472","deletes_after":"73213179","frozen_time":"2033541876","id":"obj_123","livemode":true,"name":"name","object":"test_helpers.test_clock","status":"advancing"}},"type":"customer"},"type":"jp_cn","value":"value","verification":{"status":"unverified","verified_address":"verified_address","verified_name":"verified_name"}}]},"payments":{"statement_descriptor":"statement_descriptor","statement_descriptor_kana":"statement_descriptor_kana","statement_descriptor_kanji":"statement_descriptor_kanji","statement_descriptor_prefix_kana":"statement_descriptor_prefix_kana","statement_descriptor_prefix_kanji":"statement_descriptor_prefix_kanji"},"payouts":{"debit_negative_balances":true,"schedule":{"delay_days":1647351405,"interval":"interval","monthly_anchor":1920305369,"weekly_anchor":"weekly_anchor"},"statement_descriptor":"statement_descriptor"},"sepa_debit_payments":{"creditor_id":"creditor_id"},"tax_forms":{"consented_to_paperless_delivery":true},"treasury":{"tos_acceptance":{"date":3076014,"ip":"ip","user_agent":"user_agent"}}},"tos_acceptance":{"date":"3076014","ip":"ip","service_agreement":"service_agreement","user_agent":"user_agent"},"type":"custom"}', }, ]); const account = await stripe.accounts.retrieve('acc_123'); diff --git a/types/Accounts.d.ts b/types/Accounts.d.ts index 6f5b30899d..f9cd64e550 100644 --- a/types/Accounts.d.ts +++ b/types/Accounts.d.ts @@ -328,6 +328,11 @@ declare module 'stripe' { */ link_payments?: Capabilities.LinkPayments; + /** + * The status of the MobilepPay capability of the account, or whether the account can directly process MobilePay charges. + */ + mobilepay_payments?: Capabilities.MobilepayPayments; + /** * The status of the OXXO payments capability of the account, or whether the account can directly process OXXO charges. */ @@ -463,6 +468,8 @@ declare module 'stripe' { type LinkPayments = 'active' | 'inactive' | 'pending'; + type MobilepayPayments = 'active' | 'inactive' | 'pending'; + type OxxoPayments = 'active' | 'inactive' | 'pending'; type P24Payments = 'active' | 'inactive' | 'pending'; diff --git a/types/AccountsResource.d.ts b/types/AccountsResource.d.ts index 0412f0634d..be4a5abaaf 100644 --- a/types/AccountsResource.d.ts +++ b/types/AccountsResource.d.ts @@ -307,6 +307,11 @@ declare module 'stripe' { */ link_payments?: Capabilities.LinkPayments; + /** + * The mobilepay_payments capability. + */ + mobilepay_payments?: Capabilities.MobilepayPayments; + /** * The oxxo_payments capability. */ @@ -562,6 +567,13 @@ declare module 'stripe' { requested?: boolean; } + interface MobilepayPayments { + /** + * 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. @@ -1818,6 +1830,11 @@ declare module 'stripe' { */ link_payments?: Capabilities.LinkPayments; + /** + * The mobilepay_payments capability. + */ + mobilepay_payments?: Capabilities.MobilepayPayments; + /** * The oxxo_payments capability. */ @@ -2073,6 +2090,13 @@ declare module 'stripe' { requested?: boolean; } + interface MobilepayPayments { + /** + * 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. From 3de3de19f2ef26a49e56597ee4c579600ab5f077 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 20 Mar 2024 17:52:40 +0000 Subject: [PATCH 05/17] Update generated code for v884 --- OPENAPI_VERSION | 2 +- src/resources/Products.ts | 13 +++++++ types/ProductFeatures.d.ts | 57 +++++++++++++++++++++++++++++ types/Products.d.ts | 7 ++-- types/ProductsResource.d.ts | 72 +++++++++++++++++++++++++++++++------ types/index.d.ts | 1 + 6 files changed, 136 insertions(+), 16 deletions(-) create mode 100644 types/ProductFeatures.d.ts diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index c521d42891..5b748bb684 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v883 \ No newline at end of file +v884 \ No newline at end of file diff --git a/src/resources/Products.ts b/src/resources/Products.ts index 9c79d46632..cd1ad41a88 100644 --- a/src/resources/Products.ts +++ b/src/resources/Products.ts @@ -12,6 +12,19 @@ export const Products = StripeResource.extend({ methodType: 'list', }), del: stripeMethod({method: 'DELETE', fullPath: '/v1/products/{id}'}), + createFeature: stripeMethod({ + method: 'POST', + fullPath: '/v1/products/{product}/features', + }), + deleteFeature: stripeMethod({ + method: 'DELETE', + fullPath: '/v1/products/{product}/features/{id}', + }), + listFeatures: stripeMethod({ + method: 'GET', + fullPath: '/v1/products/{product}/features', + methodType: 'list', + }), search: stripeMethod({ method: 'GET', fullPath: '/v1/products/search', diff --git a/types/ProductFeatures.d.ts b/types/ProductFeatures.d.ts new file mode 100644 index 0000000000..de74ce6b70 --- /dev/null +++ b/types/ProductFeatures.d.ts @@ -0,0 +1,57 @@ +// File generated from our OpenAPI spec + +declare module 'stripe' { + namespace Stripe { + /** + * The DeletedProductFeature object. + */ + interface DeletedProductFeature { + /** + * Unique identifier for the object. + */ + id: string; + + /** + * String representing the object's type. Objects of the same type share the same value. + */ + object: 'product_feature'; + + /** + * Always true for a deleted object + */ + deleted: true; + } + + /** + * A product_feature represents an attachment between a feature and a product. + * When a product is purchased that has a feature attached, Stripe will create an entitlement to the feature for the purchasing customer. + */ + interface ProductFeature { + /** + * Unique identifier for the object. + */ + id: string; + + /** + * String representing the object's type. Objects of the same type share the same value. + */ + object: 'product_feature'; + + /** + * Always true for a deleted object + */ + deleted?: void; + + /** + * A feature represents a monetizable ability or functionality in your system. + * Features can be assigned to products, and when those products are purchased, Stripe will create an entitlement to the feature for the purchasing customer. + */ + entitlement_feature: Stripe.Entitlements.Feature; + + /** + * Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. + */ + livemode: boolean; + } + } +} diff --git a/types/Products.d.ts b/types/Products.d.ts index 53481a4d53..bd64b8ea02 100644 --- a/types/Products.d.ts +++ b/types/Products.d.ts @@ -69,7 +69,7 @@ declare module 'stripe' { description: string | null; /** - * A list of up to 15 features for this product. Entries using `name` are displayed in [pricing tables](https://stripe.com/docs/payments/checkout/pricing-table). + * A list of up to 15 marketing features for this product. These are displayed in [pricing tables](https://stripe.com/docs/payments/checkout/pricing-table). */ features: Array; @@ -141,13 +141,10 @@ declare module 'stripe' { namespace Product { interface Feature { - /** - * The ID of the [Feature](docs/api/entitlements/feature) object. This property is mutually-exclusive with `name`; either one must be specified, but not both. - */ feature?: string | Stripe.Entitlements.Feature; /** - * The feature's name. Up to 80 characters long. + * The marketing feature name. Up to 80 characters long. */ name?: string; } diff --git a/types/ProductsResource.d.ts b/types/ProductsResource.d.ts index 4f68813486..df2094446c 100644 --- a/types/ProductsResource.d.ts +++ b/types/ProductsResource.d.ts @@ -29,7 +29,7 @@ declare module 'stripe' { expand?: Array; /** - * A list of up to 15 features for this product. Entries using `name` are displayed in [pricing tables](https://stripe.com/docs/payments/checkout/pricing-table). + * A list of up to 15 marketing features for this product. These are displayed in [pricing tables](https://stripe.com/docs/payments/checkout/pricing-table). */ features?: Array; @@ -228,13 +228,10 @@ declare module 'stripe' { } interface Feature { - /** - * The ID of the [Feature](docs/api/entitlements/feature) object. This property is mutually-exclusive with `name`; either one must be specified, but not both. - */ feature?: string; /** - * The feature's name. Up to 80 characters long. + * The marketing feature name. Up to 80 characters long. */ name: string; } @@ -324,7 +321,7 @@ declare module 'stripe' { expand?: Array; /** - * A list of up to 15 features for this product. Entries using `name` are displayed in [pricing tables](https://stripe.com/docs/payments/checkout/pricing-table). + * A list of up to 15 marketing features for this product. These are displayed in [pricing tables](https://stripe.com/docs/payments/checkout/pricing-table). */ features?: Stripe.Emptyable>; @@ -381,13 +378,10 @@ declare module 'stripe' { namespace ProductUpdateParams { interface Feature { - /** - * The ID of the [Feature](docs/api/entitlements/feature) object. This property is mutually-exclusive with `name`; either one must be specified, but not both. - */ feature?: string; /** - * The feature's name. Up to 80 characters long. + * The marketing feature name. Up to 80 characters long. */ name: string; } @@ -458,6 +452,27 @@ declare module 'stripe' { interface ProductDeleteParams {} + interface ProductCreateFeatureParams { + /** + * The ID of the [Feature](docs/api/entitlements/feature) object attached to this product. + */ + entitlement_feature: string; + + /** + * Specifies which fields in the response should be expanded. + */ + expand?: Array; + } + + interface ProductDeleteFeatureParams {} + + interface ProductListFeaturesParams extends PaginationParams { + /** + * Specifies which fields in the response should be expanded. + */ + expand?: Array; + } + interface ProductSearchParams { /** * The search query string. See [search query language](https://stripe.com/docs/search#search-query-language) and the list of supported [query fields for products](https://stripe.com/docs/search#query-fields-for-products). @@ -533,6 +548,43 @@ declare module 'stripe' { options?: RequestOptions ): Promise>; + /** + * Creates a product_feature, which represents a feature attachment to a product + */ + createFeature( + id: string, + params: ProductCreateFeatureParams, + options?: RequestOptions + ): Promise>; + + /** + * Deletes the feature attachment to a product + */ + deleteFeature( + productId: string, + id: string, + params?: ProductDeleteFeatureParams, + options?: RequestOptions + ): Promise>; + deleteFeature( + productId: string, + id: string, + options?: RequestOptions + ): Promise>; + + /** + * Retrieve a list of features for a product + */ + listFeatures( + id: string, + params?: ProductListFeaturesParams, + options?: RequestOptions + ): ApiListPromise; + listFeatures( + id: string, + options?: RequestOptions + ): ApiListPromise; + /** * Search for products you've previously created using Stripe's [Search Query Language](https://stripe.com/docs/search#search-query-language). * Don't use search in read-after-write flows where strict consistency is necessary. Under normal operating diff --git a/types/index.d.ts b/types/index.d.ts index 30f7766fdb..00171540e0 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -223,6 +223,7 @@ /// /// /// +/// /// /// /// From 0398c4f9f148759ac285803ab29f9bd3716a56bd Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 20 Mar 2024 19:51:08 +0000 Subject: [PATCH 06/17] Update generated code for v886 --- OPENAPI_VERSION | 2 +- types/ConfirmationTokens.d.ts | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 5b748bb684..7d0fa66e5d 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v884 \ No newline at end of file +v886 \ No newline at end of file diff --git a/types/ConfirmationTokens.d.ts b/types/ConfirmationTokens.d.ts index d206eb9524..b7581e8ab0 100644 --- a/types/ConfirmationTokens.d.ts +++ b/types/ConfirmationTokens.d.ts @@ -38,18 +38,13 @@ declare module 'stripe' { /** * Data used for generating a Mandate. */ - mandate_data?: ConfirmationToken.MandateData; + mandate_data?: ConfirmationToken.MandateData | null; /** * ID of the PaymentIntent that this ConfirmationToken was used to confirm, or null if this ConfirmationToken has not yet been used. */ payment_intent: string | null; - /** - * ID of an existing PaymentMethod. - */ - payment_method?: string | Stripe.PaymentMethod | null; - /** * Payment-method-specific configuration for this ConfirmationToken. */ From 7fab786800dd320a5dad89288492d5c9e8f42f19 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 20 Mar 2024 20:11:37 +0000 Subject: [PATCH 07/17] Update generated code for v887 --- OPENAPI_VERSION | 2 +- types/Entitlements/Features.d.ts | 5 +++++ types/InvoicesResource.d.ts | 12 ++++++------ 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 7d0fa66e5d..555f5a40a2 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v886 \ No newline at end of file +v887 \ No newline at end of file diff --git a/types/Entitlements/Features.d.ts b/types/Entitlements/Features.d.ts index 536175a4cc..85066e737c 100644 --- a/types/Entitlements/Features.d.ts +++ b/types/Entitlements/Features.d.ts @@ -18,6 +18,11 @@ declare module 'stripe' { */ object: 'entitlements.feature'; + /** + * Inactive features cannot be attached to new products and will not be returned from the features list endpoint. + */ + active: boolean; + /** * Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. */ diff --git a/types/InvoicesResource.d.ts b/types/InvoicesResource.d.ts index b7d328bc1a..64956d7c57 100644 --- a/types/InvoicesResource.d.ts +++ b/types/InvoicesResource.d.ts @@ -1937,7 +1937,7 @@ declare module 'stripe' { automatic_tax?: InvoiceCreatePreviewParams.AutomaticTax; /** - * The code of the coupon to apply. If `subscription` or `subscription_items` is provided, the invoice returned will preview updating or creating a subscription with that coupon. Otherwise, it will preview applying that coupon to the customer for the next upcoming invoice from among the customer's subscriptions. The invoice can be previewed without a coupon by passing this value as an empty string. + * The identifier of the coupon to apply to this phase of the subscription schedule. This field has been deprecated and will be removed in a future API version. Use `discounts` instead. */ coupon?: string; @@ -1957,7 +1957,7 @@ declare module 'stripe' { customer_details?: InvoiceCreatePreviewParams.CustomerDetails; /** - * The coupons to redeem into discounts for the invoice preview. If not specified, inherits the discount from the customer or subscription. This only works for coupons directly applied to the invoice. To apply a coupon to a subscription, you must use the `coupon` parameter instead. Pass an empty string to avoid inheriting any discounts. To preview the upcoming invoice for a subscription that hasn't been created, use `coupon` instead. + * The coupons to redeem into discounts for the invoice preview. If not specified, inherits the discount from the customer or subscription. This works for both coupons directly applied to an invoice and coupons applied to a subscription. Pass an empty string to avoid inheriting any discounts. */ discounts?: Stripe.Emptyable>; @@ -4330,7 +4330,7 @@ declare module 'stripe' { automatic_tax?: InvoiceListUpcomingLinesParams.AutomaticTax; /** - * The code of the coupon to apply. If `subscription` or `subscription_items` is provided, the invoice returned will preview updating or creating a subscription with that coupon. Otherwise, it will preview applying that coupon to the customer for the next upcoming invoice from among the customer's subscriptions. The invoice can be previewed without a coupon by passing this value as an empty string. + * The identifier of the coupon to apply to this phase of the subscription schedule. This field has been deprecated and will be removed in a future API version. Use `discounts` instead. */ coupon?: string; @@ -4350,7 +4350,7 @@ declare module 'stripe' { customer_details?: InvoiceListUpcomingLinesParams.CustomerDetails; /** - * The coupons to redeem into discounts for the invoice preview. If not specified, inherits the discount from the customer or subscription. This only works for coupons directly applied to the invoice. To apply a coupon to a subscription, you must use the `coupon` parameter instead. Pass an empty string to avoid inheriting any discounts. To preview the upcoming invoice for a subscription that hasn't been created, use `coupon` instead. + * The coupons to redeem into discounts for the invoice preview. If not specified, inherits the discount from the customer or subscription. This works for both coupons directly applied to an invoice and coupons applied to a subscription. Pass an empty string to avoid inheriting any discounts. */ discounts?: Stripe.Emptyable< Array @@ -6791,7 +6791,7 @@ declare module 'stripe' { automatic_tax?: InvoiceRetrieveUpcomingParams.AutomaticTax; /** - * The code of the coupon to apply. If `subscription` or `subscription_items` is provided, the invoice returned will preview updating or creating a subscription with that coupon. Otherwise, it will preview applying that coupon to the customer for the next upcoming invoice from among the customer's subscriptions. The invoice can be previewed without a coupon by passing this value as an empty string. + * The identifier of the coupon to apply to this phase of the subscription schedule. This field has been deprecated and will be removed in a future API version. Use `discounts` instead. */ coupon?: string; @@ -6811,7 +6811,7 @@ declare module 'stripe' { customer_details?: InvoiceRetrieveUpcomingParams.CustomerDetails; /** - * The coupons to redeem into discounts for the invoice preview. If not specified, inherits the discount from the customer or subscription. This only works for coupons directly applied to the invoice. To apply a coupon to a subscription, you must use the `coupon` parameter instead. Pass an empty string to avoid inheriting any discounts. To preview the upcoming invoice for a subscription that hasn't been created, use `coupon` instead. + * The coupons to redeem into discounts for the invoice preview. If not specified, inherits the discount from the customer or subscription. This works for both coupons directly applied to an invoice and coupons applied to a subscription. Pass an empty string to avoid inheriting any discounts. */ discounts?: Stripe.Emptyable< Array From 09c005d1d7dea0bf6b97ba9f00ab47ffa5e571e0 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 20 Mar 2024 21:43:06 +0000 Subject: [PATCH 08/17] Update generated code for v889 --- OPENAPI_VERSION | 2 +- src/resources.ts | 4 + src/resources/Forwarding/Requests.ts | 16 +++ types/Forwarding/Requests.d.ts | 162 +++++++++++++++++++++++++ types/Forwarding/RequestsResource.d.ts | 126 +++++++++++++++++++ types/index.d.ts | 5 + 6 files changed, 314 insertions(+), 1 deletion(-) create mode 100644 src/resources/Forwarding/Requests.ts create mode 100644 types/Forwarding/Requests.d.ts create mode 100644 types/Forwarding/RequestsResource.d.ts diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 555f5a40a2..6f4327e845 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v887 \ No newline at end of file +v889 \ No newline at end of file diff --git a/src/resources.ts b/src/resources.ts index f4aa9febbe..ef8b9dbde4 100644 --- a/src/resources.ts +++ b/src/resources.ts @@ -50,6 +50,7 @@ import {Refunds as TestHelpersRefunds} from './resources/TestHelpers/Refunds.js' import {Registrations as TaxRegistrations} from './resources/Tax/Registrations.js'; import {ReportRuns as ReportingReportRuns} from './resources/Reporting/ReportRuns.js'; import {ReportTypes as ReportingReportTypes} from './resources/Reporting/ReportTypes.js'; +import {Requests as ForwardingRequests} from './resources/Forwarding/Requests.js'; import {ScheduledQueryRuns as SigmaScheduledQueryRuns} from './resources/Sigma/ScheduledQueryRuns.js'; import {Secrets as AppsSecrets} from './resources/Apps/Secrets.js'; import {Sessions as BillingPortalSessions} from './resources/BillingPortal/Sessions.js'; @@ -157,6 +158,9 @@ export const FinancialConnections = resourceNamespace('financialConnections', { Sessions: FinancialConnectionsSessions, Transactions: FinancialConnectionsTransactions, }); +export const Forwarding = resourceNamespace('forwarding', { + Requests: ForwardingRequests, +}); export const GiftCards = resourceNamespace('giftCards', { Cards: GiftCardsCards, Transactions: GiftCardsTransactions, diff --git a/src/resources/Forwarding/Requests.ts b/src/resources/Forwarding/Requests.ts new file mode 100644 index 0000000000..4ccb69aa9f --- /dev/null +++ b/src/resources/Forwarding/Requests.ts @@ -0,0 +1,16 @@ +// File generated from our OpenAPI spec + +import {StripeResource} from '../../StripeResource.js'; +const stripeMethod = StripeResource.method; +export const Requests = StripeResource.extend({ + create: stripeMethod({method: 'POST', fullPath: '/v1/forwarding/requests'}), + retrieve: stripeMethod({ + method: 'GET', + fullPath: '/v1/forwarding/requests/{id}', + }), + list: stripeMethod({ + method: 'GET', + fullPath: '/v1/forwarding/requests', + methodType: 'list', + }), +}); diff --git a/types/Forwarding/Requests.d.ts b/types/Forwarding/Requests.d.ts new file mode 100644 index 0000000000..2a73b0cce7 --- /dev/null +++ b/types/Forwarding/Requests.d.ts @@ -0,0 +1,162 @@ +// File generated from our OpenAPI spec + +declare module 'stripe' { + namespace Stripe { + namespace Forwarding { + /** + * Instructs Stripe to make a request on your behalf using the destination URL and HTTP method in the config. + * A config is set up for each destination URL by Stripe at the time of onboarding. Stripe verifies requests with + * your credentials in the config, and injects card details from the payment_method into the request. + * + * Stripe redacts all sensitive fields and headers, including authentication credentials and card numbers, + * before storing the request and response data in the forwarding Request object, which are subject to a + * 30-day retention period. + * + * You can provide a Stripe idempotency key to make sure that requests with the same key result in only one + * outbound request. The Stripe idempotency key provided should be unique and different from any idempotency + * keys provided on the underlying third-party request. + * + * Forwarding Requests are synchronous requests that return a response or time out according to + * Stripe's limits. + */ + interface Request { + /** + * Unique identifier for the object. + */ + id: string; + + /** + * String representing the object's type. Objects of the same type share the same value. + */ + object: 'forwarding.request'; + + /** + * The Forwarding Config used when making the forwarded request. The config specifes the HTTP method, merchant credentials, connection settings, and supported destination URLs. + */ + config: string; + + /** + * Time at which the object was created. Measured in seconds since the Unix epoch. + */ + created: number; + + /** + * Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. + */ + livemode: boolean; + + /** + * The PaymentMethod to insert into the forwarded request. Forwarding previously consumed PaymentMethods is allowed. + */ + payment_method: string; + + /** + * The field kinds to be replaced in the forwarded request. + */ + replacements: Array; + + /** + * Context about the request from Stripe's servers to the destination endpoint. + */ + request_context: Request.RequestContext | null; + + /** + * The request that was sent to the destination endpoint. We redact any sensitive fields. + */ + request_details: Request.RequestDetails | null; + + /** + * The response that the destination endpoint returned to us. We redact any sensitive fields. + */ + response_details: Request.ResponseDetails | null; + + /** + * The destination URL for the forwarded request. Must be supported by the config. + */ + url: string | null; + } + + namespace Request { + type Replacement = + | 'card_cvc' + | 'card_expiry' + | 'card_number' + | 'cardholder_name'; + + interface RequestContext { + /** + * The time it took in milliseconds for the destination endpoint to respond. + */ + destination_duration: number; + + /** + * The IP address of the destination. + */ + destination_ip_address: string; + } + + interface RequestDetails { + /** + * The body payload to send to the destination endpoint. + */ + body: string; + + /** + * The headers to include in the forwarded request. Can be omitted if no additional headers (excluding Stripe-generated ones such as the Content-Type header) should be included. + */ + headers: Array; + + /** + * The HTTP method used to call the destination endpoint. + */ + http_method: 'POST'; + } + + namespace RequestDetails { + interface Header { + /** + * The header name. + */ + name: string; + + /** + * The header value. + */ + value: string; + } + } + + interface ResponseDetails { + /** + * The response body from the destination endpoint to Stripe. + */ + body: string; + + /** + * HTTP headers that the destination endpoint returned. + */ + headers: Array; + + /** + * The HTTP status code that the destination endpoint returned. + */ + status: number; + } + + namespace ResponseDetails { + interface Header { + /** + * The header name. + */ + name: string; + + /** + * The header value. + */ + value: string; + } + } + } + } + } +} diff --git a/types/Forwarding/RequestsResource.d.ts b/types/Forwarding/RequestsResource.d.ts new file mode 100644 index 0000000000..fe5a463a4e --- /dev/null +++ b/types/Forwarding/RequestsResource.d.ts @@ -0,0 +1,126 @@ +// File generated from our OpenAPI spec + +declare module 'stripe' { + namespace Stripe { + namespace Forwarding { + interface RequestCreateParams { + /** + * The Forwarding Config used when making the forwarded request. The config specifes the HTTP method, merchant credentials, connection settings, and supported destination URLs. + */ + config: string; + + /** + * The PaymentMethod to insert into the forwarded request. Forwarding previously consumed PaymentMethods is allowed. + */ + payment_method: string; + + /** + * The field kinds to be replaced in the forwarded request. + */ + replacements: Array; + + /** + * The destination URL for the forwarded request. Must be supported by the config. + */ + url: string; + + /** + * Specifies which fields in the response should be expanded. + */ + expand?: Array; + + /** + * The request body and headers to be sent to the destination endpoint. + */ + request?: RequestCreateParams.Request; + } + + namespace RequestCreateParams { + type Replacement = + | 'card_cvc' + | 'card_expiry' + | 'card_number' + | 'cardholder_name'; + + interface Request { + /** + * The body payload to send to the destination endpoint. + */ + body?: string; + + /** + * The headers to include in the forwarded request. Can be omitted if no additional headers (excluding Stripe-generated ones such as the Content-Type header) should be included. + */ + headers?: Array; + } + + namespace Request { + interface Header { + /** + * The header name. + */ + name: string; + + /** + * The header value. + */ + value: string; + } + } + } + + interface RequestRetrieveParams { + /** + * Specifies which fields in the response should be expanded. + */ + expand?: Array; + } + + interface RequestListParams extends PaginationParams { + /** + * Similar to other List endpoints, filters results based on created timestamp. You can pass gt, gte, lt, and lte timestamp values. + */ + created?: Stripe.RangeQueryParam; + + /** + * Specifies which fields in the response should be expanded. + */ + expand?: Array; + } + + class RequestsResource { + /** + * Creates a ForwardingRequest object. + */ + create( + params: RequestCreateParams, + options?: RequestOptions + ): Promise>; + + /** + * Retrieves a ForwardingRequest object. + */ + retrieve( + id: string, + params?: RequestRetrieveParams, + options?: RequestOptions + ): Promise>; + retrieve( + id: string, + options?: RequestOptions + ): Promise>; + + /** + * Lists all ForwardingRequest objects. + */ + list( + params?: RequestListParams, + options?: RequestOptions + ): ApiListPromise; + list( + options?: RequestOptions + ): ApiListPromise; + } + } + } +} diff --git a/types/index.d.ts b/types/index.d.ts index 00171540e0..6ac0ec0c80 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -47,6 +47,7 @@ /// /// /// +/// /// /// /// @@ -190,6 +191,7 @@ /// /// /// +/// /// /// /// @@ -390,6 +392,9 @@ declare module 'stripe' { sessions: Stripe.FinancialConnections.SessionsResource; transactions: Stripe.FinancialConnections.TransactionsResource; }; + forwarding: { + requests: Stripe.Forwarding.RequestsResource; + }; giftCards: { cards: Stripe.GiftCards.CardsResource; transactions: Stripe.GiftCards.TransactionsResource; From cd5a4449673d9be0c0a9c5d7032784fb086b0b91 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 20 Mar 2024 22:58:01 +0000 Subject: [PATCH 09/17] Update generated code for v890 --- OPENAPI_VERSION | 2 +- types/Charges.d.ts | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 6f4327e845..4cb043dce4 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v889 \ No newline at end of file +v890 \ No newline at end of file diff --git a/types/Charges.d.ts b/types/Charges.d.ts index 1026dd35e7..a889120ddf 100644 --- a/types/Charges.d.ts +++ b/types/Charges.d.ts @@ -1996,6 +1996,11 @@ declare module 'stripe' { */ last4: string | null; + /** + * Reference number to locate ACH payments with customer's bank. + */ + payment_reference?: string | null; + /** * Routing number of the bank account. */ From 48ed2909971fd120f5e92c77b94cdeb55e843341 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 20 Mar 2024 23:15:29 +0000 Subject: [PATCH 10/17] Update generated code for v890 --- src/apiVersion.ts | 2 +- types/Forwarding/RequestsResource.d.ts | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/apiVersion.ts b/src/apiVersion.ts index 042bfe5503..4e1ff48817 100644 --- a/src/apiVersion.ts +++ b/src/apiVersion.ts @@ -1,4 +1,4 @@ // File generated from our OpenAPI spec export const ApiVersion = '2023-10-16'; -export const PreviewVersion = '2024-03-15.preview-v2'; +export const PreviewVersion = '2024-03-20.preview-v2'; diff --git a/types/Forwarding/RequestsResource.d.ts b/types/Forwarding/RequestsResource.d.ts index fe5a463a4e..bb0042df5e 100644 --- a/types/Forwarding/RequestsResource.d.ts +++ b/types/Forwarding/RequestsResource.d.ts @@ -19,6 +19,11 @@ declare module 'stripe' { */ replacements: Array; + /** + * The request body and headers to be sent to the destination endpoint. + */ + request: RequestCreateParams.Request; + /** * The destination URL for the forwarded request. Must be supported by the config. */ @@ -28,11 +33,6 @@ declare module 'stripe' { * Specifies which fields in the response should be expanded. */ expand?: Array; - - /** - * The request body and headers to be sent to the destination endpoint. - */ - request?: RequestCreateParams.Request; } namespace RequestCreateParams { From bda2a2d16ab532bf73bc26134e57be45585bbd36 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 21 Mar 2024 05:54:18 +0000 Subject: [PATCH 11/17] Update generated code for v891 --- OPENAPI_VERSION | 2 +- types/Invoices.d.ts | 2 +- types/InvoicesResource.d.ts | 6 +++--- types/QuoteLines.d.ts | 2 +- types/QuotePreviewInvoices.d.ts | 2 +- types/QuotePreviewSubscriptionSchedules.d.ts | 2 +- types/SubscriptionSchedules.d.ts | 2 +- types/SubscriptionSchedulesResource.d.ts | 4 ++-- types/Subscriptions.d.ts | 8 +++++--- types/SubscriptionsResource.d.ts | 2 +- 10 files changed, 17 insertions(+), 15 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 4cb043dce4..c019a4f7c9 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v890 \ No newline at end of file +v891 \ No newline at end of file diff --git a/types/Invoices.d.ts b/types/Invoices.d.ts index cd18b51a17..41f53274e6 100644 --- a/types/Invoices.d.ts +++ b/types/Invoices.d.ts @@ -1399,7 +1399,7 @@ declare module 'stripe' { metadata: Stripe.Metadata | null; /** - * If specified, payment collection for this subscription will be paused. + * If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment). */ pause_collection?: SubscriptionDetails.PauseCollection | null; } diff --git a/types/InvoicesResource.d.ts b/types/InvoicesResource.d.ts index 64956d7c57..1503fcc1d8 100644 --- a/types/InvoicesResource.d.ts +++ b/types/InvoicesResource.d.ts @@ -3231,7 +3231,7 @@ declare module 'stripe' { on_behalf_of?: string; /** - * If specified, payment collection for this subscription will be paused. + * If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment). */ pause_collection?: Phase.PauseCollection; @@ -5628,7 +5628,7 @@ declare module 'stripe' { on_behalf_of?: string; /** - * If specified, payment collection for this subscription will be paused. + * If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment). */ pause_collection?: Phase.PauseCollection; @@ -8089,7 +8089,7 @@ declare module 'stripe' { on_behalf_of?: string; /** - * If specified, payment collection for this subscription will be paused. + * If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment). */ pause_collection?: Phase.PauseCollection; diff --git a/types/QuoteLines.d.ts b/types/QuoteLines.d.ts index a1c16249ed..adb61d4fe6 100644 --- a/types/QuoteLines.d.ts +++ b/types/QuoteLines.d.ts @@ -509,7 +509,7 @@ declare module 'stripe' { interface SetPauseCollection { /** - * If specified, payment collection for this subscription will be paused. + * If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment). */ set?: SetPauseCollection.Set | null; diff --git a/types/QuotePreviewInvoices.d.ts b/types/QuotePreviewInvoices.d.ts index 6751d76ef5..626141d84c 100644 --- a/types/QuotePreviewInvoices.d.ts +++ b/types/QuotePreviewInvoices.d.ts @@ -1376,7 +1376,7 @@ declare module 'stripe' { metadata: Stripe.Metadata | null; /** - * If specified, payment collection for this subscription will be paused. + * If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment). */ pause_collection?: SubscriptionDetails.PauseCollection | null; } diff --git a/types/QuotePreviewSubscriptionSchedules.d.ts b/types/QuotePreviewSubscriptionSchedules.d.ts index 8de7aacd73..4a622c74a5 100644 --- a/types/QuotePreviewSubscriptionSchedules.d.ts +++ b/types/QuotePreviewSubscriptionSchedules.d.ts @@ -372,7 +372,7 @@ declare module 'stripe' { on_behalf_of: string | Stripe.Account | null; /** - * If specified, payment collection for this subscription will be paused. + * If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment). */ pause_collection?: Phase.PauseCollection | null; diff --git a/types/SubscriptionSchedules.d.ts b/types/SubscriptionSchedules.d.ts index 4a88d92d7d..0533edf7ba 100644 --- a/types/SubscriptionSchedules.d.ts +++ b/types/SubscriptionSchedules.d.ts @@ -351,7 +351,7 @@ declare module 'stripe' { on_behalf_of: string | Stripe.Account | null; /** - * If specified, payment collection for this subscription will be paused. + * If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment). */ pause_collection?: Phase.PauseCollection | null; diff --git a/types/SubscriptionSchedulesResource.d.ts b/types/SubscriptionSchedulesResource.d.ts index f997894ad3..73b710dd3a 100644 --- a/types/SubscriptionSchedulesResource.d.ts +++ b/types/SubscriptionSchedulesResource.d.ts @@ -300,7 +300,7 @@ declare module 'stripe' { on_behalf_of?: string; /** - * If specified, payment collection for this subscription will be paused. + * If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment). */ pause_collection?: Phase.PauseCollection; @@ -1147,7 +1147,7 @@ declare module 'stripe' { on_behalf_of?: string; /** - * If specified, payment collection for this subscription will be paused. + * If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment). */ pause_collection?: Phase.PauseCollection; diff --git a/types/Subscriptions.d.ts b/types/Subscriptions.d.ts index 0d684bd16c..751684b9ed 100644 --- a/types/Subscriptions.d.ts +++ b/types/Subscriptions.d.ts @@ -170,7 +170,7 @@ declare module 'stripe' { on_behalf_of: string | Stripe.Account | null; /** - * If specified, payment collection for this subscription will be paused. + * If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment). */ pause_collection: Subscription.PauseCollection | null; @@ -210,12 +210,14 @@ declare module 'stripe' { start_date: number; /** - * Possible values are `incomplete`, `incomplete_expired`, `trialing`, `active`, `past_due`, `canceled`, or `unpaid`. + * Possible values are `incomplete`, `incomplete_expired`, `trialing`, `active`, `past_due`, `canceled`, `unpaid`, or `paused`. * - * For `collection_method=charge_automatically` a subscription moves into `incomplete` if the initial payment attempt fails. A subscription in this state can only have metadata and default_source updated. Once the first invoice is paid, the subscription moves into an `active` state. If the first invoice is not paid within 23 hours, the subscription transitions to `incomplete_expired`. This is a terminal state, the open invoice will be voided and no further invoices will be generated. + * For `collection_method=charge_automatically` a subscription moves into `incomplete` if the initial payment attempt fails. A subscription in this status can only have metadata and default_source updated. Once the first invoice is paid, the subscription moves into an `active` status. If the first invoice is not paid within 23 hours, the subscription transitions to `incomplete_expired`. This is a terminal status, the open invoice will be voided and no further invoices will be generated. * * A subscription that is currently in a trial period is `trialing` and moves to `active` when the trial period is over. * + * A subscription can only enter a `paused` status [when a trial ends without a payment method](https://stripe.com/billing/subscriptions/trials#create-free-trials-without-payment). A `paused` subscription doesn't generate invoices and can be resumed after your customer adds their payment method. The `paused` status is different from [pausing collection](https://stripe.com/billing/subscriptions/pause-payment), which still generates invoices. + * * If subscription `collection_method=charge_automatically`, it becomes `past_due` when payment is required but cannot be paid (due to failed payment or awaiting additional user actions). Once Stripe has exhausted all payment retry attempts, the subscription will become `canceled` or `unpaid` (depending on your subscriptions settings). * * If subscription `collection_method=send_invoice` it becomes `past_due` when its invoice is not paid by the due date, and `canceled` or `unpaid` if it is still not paid by an additional deadline after that. Note that when a subscription has a status of `unpaid`, no subsequent invoices will be attempted (invoices will be created, but then immediately automatically closed). After receiving updated payment information from a customer, you may choose to reopen and pay their closed invoices. diff --git a/types/SubscriptionsResource.d.ts b/types/SubscriptionsResource.d.ts index 7ddced4135..6106ab2b92 100644 --- a/types/SubscriptionsResource.d.ts +++ b/types/SubscriptionsResource.d.ts @@ -1129,7 +1129,7 @@ declare module 'stripe' { on_behalf_of?: Stripe.Emptyable; /** - * If specified, payment collection for this subscription will be paused. + * If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment). */ pause_collection?: Stripe.Emptyable< SubscriptionUpdateParams.PauseCollection From 78680965041243ec23d16c8d223d184476a660d1 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 21 Mar 2024 14:57:12 +0000 Subject: [PATCH 12/17] Update generated code for v892 --- OPENAPI_VERSION | 2 +- src/resources.ts | 2 + src/resources/Customers.ts | 9 ----- .../Entitlements/ActiveEntitlements.ts | 11 +++++ types/CustomerEntitlementSummaries.d.ts | 30 -------------- types/CustomerEntitlements.d.ts | 35 ---------------- types/CustomersResource.d.ts | 40 ------------------- .../ActiveEntitlementSummaries.d.ts | 32 +++++++++++++++ types/Entitlements/ActiveEntitlements.d.ts | 37 +++++++++++++++++ .../ActiveEntitlementsResource.d.ts | 29 ++++++++++++++ types/EventTypes.d.ts | 37 +++++++++-------- types/Events.d.ts | 2 +- types/WebhookEndpointsResource.d.ts | 4 +- types/index.d.ts | 6 ++- 14 files changed, 139 insertions(+), 137 deletions(-) create mode 100644 src/resources/Entitlements/ActiveEntitlements.ts delete mode 100644 types/CustomerEntitlementSummaries.d.ts delete mode 100644 types/CustomerEntitlements.d.ts create mode 100644 types/Entitlements/ActiveEntitlementSummaries.d.ts create mode 100644 types/Entitlements/ActiveEntitlements.d.ts create mode 100644 types/Entitlements/ActiveEntitlementsResource.d.ts diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index c019a4f7c9..2a8d82d132 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v891 \ No newline at end of file +v892 \ No newline at end of file diff --git a/src/resources.ts b/src/resources.ts index ef8b9dbde4..12d2046ecd 100644 --- a/src/resources.ts +++ b/src/resources.ts @@ -2,6 +2,7 @@ import {resourceNamespace} from './ResourceNamespace.js'; import {Accounts as FinancialConnectionsAccounts} from './resources/FinancialConnections/Accounts.js'; +import {ActiveEntitlements as EntitlementsActiveEntitlements} from './resources/Entitlements/ActiveEntitlements.js'; import {Authorizations as TestHelpersIssuingAuthorizations} from './resources/TestHelpers/Issuing/Authorizations.js'; import {Authorizations as IssuingAuthorizations} from './resources/Issuing/Authorizations.js'; import {Calculations as TaxCalculations} from './resources/Tax/Calculations.js'; @@ -151,6 +152,7 @@ export const Climate = resourceNamespace('climate', { Suppliers: ClimateSuppliers, }); export const Entitlements = resourceNamespace('entitlements', { + ActiveEntitlements: EntitlementsActiveEntitlements, Features: EntitlementsFeatures, }); export const FinancialConnections = resourceNamespace('financialConnections', { diff --git a/src/resources/Customers.ts b/src/resources/Customers.ts index 534018c0e2..de679dc13c 100644 --- a/src/resources/Customers.ts +++ b/src/resources/Customers.ts @@ -50,11 +50,6 @@ export const Customers = StripeResource.extend({ fullPath: '/v1/customers/{customer}/cash_balance_transactions', methodType: 'list', }), - listEntitlements: stripeMethod({ - method: 'GET', - fullPath: '/v1/customers/{customer}/entitlements', - methodType: 'list', - }), listPaymentMethods: stripeMethod({ method: 'GET', fullPath: '/v1/customers/{customer}/payment_methods', @@ -83,10 +78,6 @@ export const Customers = StripeResource.extend({ fullPath: '/v1/customers/{customer}/cash_balance_transactions/{transaction}', }), - retrieveEntitlementSummary: stripeMethod({ - method: 'GET', - fullPath: '/v1/customers/{customer}/entitlement_summary', - }), retrievePaymentMethod: stripeMethod({ method: 'GET', fullPath: '/v1/customers/{customer}/payment_methods/{payment_method}', diff --git a/src/resources/Entitlements/ActiveEntitlements.ts b/src/resources/Entitlements/ActiveEntitlements.ts new file mode 100644 index 0000000000..990701cb81 --- /dev/null +++ b/src/resources/Entitlements/ActiveEntitlements.ts @@ -0,0 +1,11 @@ +// File generated from our OpenAPI spec + +import {StripeResource} from '../../StripeResource.js'; +const stripeMethod = StripeResource.method; +export const ActiveEntitlements = StripeResource.extend({ + list: stripeMethod({ + method: 'GET', + fullPath: '/v1/entitlements/active_entitlements', + methodType: 'list', + }), +}); diff --git a/types/CustomerEntitlementSummaries.d.ts b/types/CustomerEntitlementSummaries.d.ts deleted file mode 100644 index 9fc463fafd..0000000000 --- a/types/CustomerEntitlementSummaries.d.ts +++ /dev/null @@ -1,30 +0,0 @@ -// File generated from our OpenAPI spec - -declare module 'stripe' { - namespace Stripe { - /** - * A summary of a customer's entitlements. - */ - interface CustomerEntitlementSummary { - /** - * String representing the object's type. Objects of the same type share the same value. - */ - object: 'customer_entitlement_summary'; - - /** - * The customer that is entitled to this feature. - */ - customer: string; - - /** - * The list of entitlements this customer has. - */ - entitlements: ApiList; - - /** - * Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. - */ - livemode: boolean; - } - } -} diff --git a/types/CustomerEntitlements.d.ts b/types/CustomerEntitlements.d.ts deleted file mode 100644 index 0a5e97d61c..0000000000 --- a/types/CustomerEntitlements.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -// File generated from our OpenAPI spec - -declare module 'stripe' { - namespace Stripe { - /** - * A entitlement for a customer describes access to a feature. - */ - interface CustomerEntitlement { - /** - * Unique identifier for the object. - */ - id: string; - - /** - * String representing the object's type. Objects of the same type share the same value. - */ - object: 'customer_entitlement'; - - /** - * The feature that the customer is entitled to. - */ - feature: string; - - /** - * Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. - */ - livemode: boolean; - - /** - * A unique key you provide as your own system identifier. This may be up to 80 characters. - */ - lookup_key: string; - } - } -} diff --git a/types/CustomersResource.d.ts b/types/CustomersResource.d.ts index e6c0155c6a..32ab59abaf 100644 --- a/types/CustomersResource.d.ts +++ b/types/CustomersResource.d.ts @@ -758,13 +758,6 @@ declare module 'stripe' { expand?: Array; } - interface CustomerListEntitlementsParams extends PaginationParams { - /** - * Specifies which fields in the response should be expanded. - */ - expand?: Array; - } - interface CustomerListPaymentMethodsParams extends PaginationParams { /** * Specifies which fields in the response should be expanded. @@ -857,13 +850,6 @@ declare module 'stripe' { expand?: Array; } - interface CustomerRetrieveEntitlementSummaryParams { - /** - * Specifies which fields in the response should be expanded. - */ - expand?: Array; - } - interface CustomerRetrievePaymentMethodParams { /** * Specifies which fields in the response should be expanded. @@ -1229,19 +1215,6 @@ declare module 'stripe' { options?: RequestOptions ): ApiListPromise; - /** - * Retrieve a list of entitlements for a customer - */ - listEntitlements( - id: string, - params?: CustomerListEntitlementsParams, - options?: RequestOptions - ): ApiListPromise; - listEntitlements( - id: string, - options?: RequestOptions - ): ApiListPromise; - /** * Returns a list of PaymentMethods for a given Customer */ @@ -1324,19 +1297,6 @@ declare module 'stripe' { options?: RequestOptions ): Promise>; - /** - * Retrieve the entitlement summary for a customer - */ - retrieveEntitlementSummary( - id: string, - params?: CustomerRetrieveEntitlementSummaryParams, - options?: RequestOptions - ): Promise>; - retrieveEntitlementSummary( - id: string, - options?: RequestOptions - ): Promise>; - /** * Retrieves a PaymentMethod object for a given Customer. */ diff --git a/types/Entitlements/ActiveEntitlementSummaries.d.ts b/types/Entitlements/ActiveEntitlementSummaries.d.ts new file mode 100644 index 0000000000..b0b5d7649b --- /dev/null +++ b/types/Entitlements/ActiveEntitlementSummaries.d.ts @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec + +declare module 'stripe' { + namespace Stripe { + namespace Entitlements { + /** + * A summary of a customer's active entitlements. + */ + interface ActiveEntitlementSummary { + /** + * String representing the object's type. Objects of the same type share the same value. + */ + object: 'entitlements.active_entitlement_summary'; + + /** + * The customer that is entitled to this feature. + */ + customer: string; + + /** + * The list of entitlements this customer has. + */ + entitlements: ApiList; + + /** + * Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. + */ + livemode: boolean; + } + } + } +} diff --git a/types/Entitlements/ActiveEntitlements.d.ts b/types/Entitlements/ActiveEntitlements.d.ts new file mode 100644 index 0000000000..2a2e651e04 --- /dev/null +++ b/types/Entitlements/ActiveEntitlements.d.ts @@ -0,0 +1,37 @@ +// File generated from our OpenAPI spec + +declare module 'stripe' { + namespace Stripe { + namespace Entitlements { + /** + * An active entitlement describes access to a feature for a customer. + */ + interface ActiveEntitlement { + /** + * Unique identifier for the object. + */ + id: string; + + /** + * String representing the object's type. Objects of the same type share the same value. + */ + object: 'entitlements.active_entitlement'; + + /** + * The feature that the customer is entitled to. + */ + feature: string; + + /** + * Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. + */ + livemode: boolean; + + /** + * A unique key you provide as your own system identifier. This may be up to 80 characters. + */ + lookup_key: string; + } + } + } +} diff --git a/types/Entitlements/ActiveEntitlementsResource.d.ts b/types/Entitlements/ActiveEntitlementsResource.d.ts new file mode 100644 index 0000000000..ea8024efb6 --- /dev/null +++ b/types/Entitlements/ActiveEntitlementsResource.d.ts @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec + +declare module 'stripe' { + namespace Stripe { + namespace Entitlements { + interface ActiveEntitlementListParams extends PaginationParams { + /** + * The ID of the customer. + */ + customer: string; + + /** + * Specifies which fields in the response should be expanded. + */ + expand?: Array; + } + + class ActiveEntitlementsResource { + /** + * Retrieve a list of active entitlements for a customer + */ + list( + params: ActiveEntitlementListParams, + options?: RequestOptions + ): ApiListPromise; + } + } + } +} diff --git a/types/EventTypes.d.ts b/types/EventTypes.d.ts index 77e4b7d19f..0bc06c8967 100644 --- a/types/EventTypes.d.ts +++ b/types/EventTypes.d.ts @@ -64,7 +64,6 @@ declare module 'stripe' { | CustomerDiscountCreatedEvent | CustomerDiscountDeletedEvent | CustomerDiscountUpdatedEvent - | CustomerEntitlementSummaryUpdatedEvent | CustomerSourceCreatedEvent | CustomerSourceDeletedEvent | CustomerSourceExpiringEvent @@ -85,6 +84,7 @@ declare module 'stripe' { | CustomerTaxIdUpdatedEvent | CustomerUpdatedEvent | CustomerCashBalanceTransactionCreatedEvent + | EntitlementsActiveEntitlementSummaryUpdatedEvent | FileCreatedEvent | FinancialConnectionsAccountCreatedEvent | FinancialConnectionsAccountDeactivatedEvent @@ -1244,22 +1244,6 @@ declare module 'stripe' { } } - /** - * Occurs whenever a customer's entitlements change. - */ - interface CustomerEntitlementSummaryUpdatedEvent extends EventBase { - type: 'customer.entitlement_summary.updated'; - data: CustomerEntitlementSummaryUpdatedEvent.Data; - } - - namespace CustomerEntitlementSummaryUpdatedEvent { - interface Data extends Stripe.Event.Data { - object: Stripe.CustomerEntitlementSummary; - - previous_attributes?: Partial; - } - } - /** * Occurs whenever a new source is created for a customer. */ @@ -1580,6 +1564,25 @@ declare module 'stripe' { } } + /** + * Occurs whenever a customer's entitlements change. + */ + interface EntitlementsActiveEntitlementSummaryUpdatedEvent + extends EventBase { + type: 'entitlements.active_entitlement_summary.updated'; + data: EntitlementsActiveEntitlementSummaryUpdatedEvent.Data; + } + + namespace EntitlementsActiveEntitlementSummaryUpdatedEvent { + interface Data extends Stripe.Event.Data { + object: Stripe.Entitlements.ActiveEntitlementSummary; + + previous_attributes?: Partial< + Stripe.Entitlements.ActiveEntitlementSummary + >; + } + } + /** * Occurs whenever a new Stripe-generated file is available for your account. */ diff --git a/types/Events.d.ts b/types/Events.d.ts index f154c54fb8..a56e919899 100644 --- a/types/Events.d.ts +++ b/types/Events.d.ts @@ -148,7 +148,6 @@ declare module 'stripe' { | 'customer.discount.created' | 'customer.discount.deleted' | 'customer.discount.updated' - | 'customer.entitlement_summary.updated' | 'customer.source.created' | 'customer.source.deleted' | 'customer.source.expiring' @@ -169,6 +168,7 @@ declare module 'stripe' { | 'customer.tax_id.updated' | 'customer.updated' | 'customer_cash_balance_transaction.created' + | 'entitlements.active_entitlement_summary.updated' | 'file.created' | 'financial_connections.account.created' | 'financial_connections.account.deactivated' diff --git a/types/WebhookEndpointsResource.d.ts b/types/WebhookEndpointsResource.d.ts index 959cd3b3df..26e8fe3421 100644 --- a/types/WebhookEndpointsResource.d.ts +++ b/types/WebhookEndpointsResource.d.ts @@ -205,7 +205,6 @@ declare module 'stripe' { | 'customer.discount.created' | 'customer.discount.deleted' | 'customer.discount.updated' - | 'customer.entitlement_summary.updated' | 'customer.source.created' | 'customer.source.deleted' | 'customer.source.expiring' @@ -226,6 +225,7 @@ declare module 'stripe' { | 'customer.tax_id.updated' | 'customer.updated' | 'customer_cash_balance_transaction.created' + | 'entitlements.active_entitlement_summary.updated' | 'file.created' | 'financial_connections.account.created' | 'financial_connections.account.deactivated' @@ -513,7 +513,6 @@ declare module 'stripe' { | 'customer.discount.created' | 'customer.discount.deleted' | 'customer.discount.updated' - | 'customer.entitlement_summary.updated' | 'customer.source.created' | 'customer.source.deleted' | 'customer.source.expiring' @@ -534,6 +533,7 @@ declare module 'stripe' { | 'customer.tax_id.updated' | 'customer.updated' | 'customer_cash_balance_transaction.created' + | 'entitlements.active_entitlement_summary.updated' | 'file.created' | 'financial_connections.account.created' | 'financial_connections.account.deactivated' diff --git a/types/index.d.ts b/types/index.d.ts index 6ac0ec0c80..447dfe67c7 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -38,6 +38,7 @@ /// /// /// +/// /// /// /// @@ -170,13 +171,13 @@ /// /// /// -/// -/// /// /// /// /// /// +/// +/// /// /// /// @@ -385,6 +386,7 @@ declare module 'stripe' { suppliers: Stripe.Climate.SuppliersResource; }; entitlements: { + activeEntitlements: Stripe.Entitlements.ActiveEntitlementsResource; features: Stripe.Entitlements.FeaturesResource; }; financialConnections: { From 5ace0f13bc449f5d5b26780c25454aa465c2469d Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 21 Mar 2024 16:07:11 +0000 Subject: [PATCH 13/17] Update generated code for v893 --- OPENAPI_VERSION | 2 +- types/Entitlements/Features.d.ts | 5 +++++ types/Entitlements/FeaturesResource.d.ts | 5 +++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 2a8d82d132..25faf1f3d2 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v892 \ No newline at end of file +v893 \ No newline at end of file diff --git a/types/Entitlements/Features.d.ts b/types/Entitlements/Features.d.ts index 85066e737c..a83a82c88f 100644 --- a/types/Entitlements/Features.d.ts +++ b/types/Entitlements/Features.d.ts @@ -33,6 +33,11 @@ declare module 'stripe' { */ lookup_key: string; + /** + * Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. + */ + metadata: Stripe.Metadata | null; + /** * The feature's name, for your own purpose, not meant to be displayable to the customer. */ diff --git a/types/Entitlements/FeaturesResource.d.ts b/types/Entitlements/FeaturesResource.d.ts index 8192e3cd73..a0e7cd4638 100644 --- a/types/Entitlements/FeaturesResource.d.ts +++ b/types/Entitlements/FeaturesResource.d.ts @@ -18,6 +18,11 @@ declare module 'stripe' { * Specifies which fields in the response should be expanded. */ expand?: Array; + + /** + * Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. + */ + metadata?: Stripe.MetadataParam; } interface FeatureListParams extends PaginationParams { From 5010f2ec3e5b6aeda3e7fe00077bbb4f6cb4a563 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 21 Mar 2024 17:06:07 +0000 Subject: [PATCH 14/17] Update generated code for v894 --- OPENAPI_VERSION | 2 +- types/Invoices.d.ts | 4 ++++ types/PaymentIntents.d.ts | 4 ++++ types/QuotePreviewInvoices.d.ts | 4 ++++ types/SetupAttempts.d.ts | 4 ++++ types/SetupIntents.d.ts | 4 ++++ 6 files changed, 21 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 25faf1f3d2..c785a51efa 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v893 \ No newline at end of file +v894 \ No newline at end of file diff --git a/types/Invoices.d.ts b/types/Invoices.d.ts index 41f53274e6..f6729133e9 100644 --- a/types/Invoices.d.ts +++ b/types/Invoices.d.ts @@ -894,6 +894,10 @@ declare module 'stripe' { | 'expired_card' | 'financial_connections_account_inactive' | 'financial_connections_no_successful_transaction_refresh' + | 'forwarding_api_inactive' + | 'forwarding_api_invalid_parameter' + | 'forwarding_api_upstream_connection_error' + | 'forwarding_api_upstream_connection_timeout' | 'gift_card_balance_insufficient' | 'gift_card_code_exists' | 'gift_card_inactive' diff --git a/types/PaymentIntents.d.ts b/types/PaymentIntents.d.ts index 7205780861..8cc179d5b5 100644 --- a/types/PaymentIntents.d.ts +++ b/types/PaymentIntents.d.ts @@ -430,6 +430,10 @@ declare module 'stripe' { | 'expired_card' | 'financial_connections_account_inactive' | 'financial_connections_no_successful_transaction_refresh' + | 'forwarding_api_inactive' + | 'forwarding_api_invalid_parameter' + | 'forwarding_api_upstream_connection_error' + | 'forwarding_api_upstream_connection_timeout' | 'gift_card_balance_insufficient' | 'gift_card_code_exists' | 'gift_card_inactive' diff --git a/types/QuotePreviewInvoices.d.ts b/types/QuotePreviewInvoices.d.ts index 626141d84c..281bb3356e 100644 --- a/types/QuotePreviewInvoices.d.ts +++ b/types/QuotePreviewInvoices.d.ts @@ -871,6 +871,10 @@ declare module 'stripe' { | 'expired_card' | 'financial_connections_account_inactive' | 'financial_connections_no_successful_transaction_refresh' + | 'forwarding_api_inactive' + | 'forwarding_api_invalid_parameter' + | 'forwarding_api_upstream_connection_error' + | 'forwarding_api_upstream_connection_timeout' | 'gift_card_balance_insufficient' | 'gift_card_code_exists' | 'gift_card_inactive' diff --git a/types/SetupAttempts.d.ts b/types/SetupAttempts.d.ts index 2778742756..79ff721f9a 100644 --- a/types/SetupAttempts.d.ts +++ b/types/SetupAttempts.d.ts @@ -648,6 +648,10 @@ declare module 'stripe' { | 'expired_card' | 'financial_connections_account_inactive' | 'financial_connections_no_successful_transaction_refresh' + | 'forwarding_api_inactive' + | 'forwarding_api_invalid_parameter' + | 'forwarding_api_upstream_connection_error' + | 'forwarding_api_upstream_connection_timeout' | 'gift_card_balance_insufficient' | 'gift_card_code_exists' | 'gift_card_inactive' diff --git a/types/SetupIntents.d.ts b/types/SetupIntents.d.ts index e6461c9672..ac78edfee8 100644 --- a/types/SetupIntents.d.ts +++ b/types/SetupIntents.d.ts @@ -336,6 +336,10 @@ declare module 'stripe' { | 'expired_card' | 'financial_connections_account_inactive' | 'financial_connections_no_successful_transaction_refresh' + | 'forwarding_api_inactive' + | 'forwarding_api_invalid_parameter' + | 'forwarding_api_upstream_connection_error' + | 'forwarding_api_upstream_connection_timeout' | 'gift_card_balance_insufficient' | 'gift_card_code_exists' | 'gift_card_inactive' From 7aaf448548b5fa9d150a8e685e097f93954c0ebb Mon Sep 17 00:00:00 2001 From: anniel-stripe <97691964+anniel-stripe@users.noreply.github.com> Date: Thu, 21 Mar 2024 10:10:14 -0700 Subject: [PATCH 15/17] Don't mutate error.type during minification (#2043) * accept hardcoded type in StripeError constructor * Default to this.constructor.name when type is not provided * Add test project * Don't need eslint config --- .gitignore | 1 + src/Error.ts | 66 +++++++++++++++++++++++++------ test/Error.spec.ts | 12 +++++- test/Integration.spec.ts | 16 ++++++++ testProjects/esbuild/index.js | 35 ++++++++++++++++ testProjects/esbuild/package.json | 17 ++++++++ 6 files changed, 133 insertions(+), 14 deletions(-) create mode 100644 testProjects/esbuild/index.js create mode 100644 testProjects/esbuild/package.json diff --git a/.gitignore b/.gitignore index b0cb00fb77..100c97bed5 100644 --- a/.gitignore +++ b/.gitignore @@ -7,5 +7,6 @@ tags coverage .idea testProjects/**/node_modules +testProjects/**/dist testProjects/**/package-lock.json testProjects/**/_worker.* diff --git a/src/Error.ts b/src/Error.ts index 75291066fc..aa094c0952 100644 --- a/src/Error.ts +++ b/src/Error.ts @@ -49,9 +49,9 @@ export class StripeError extends Error { readonly setup_intent?: any; readonly source?: any; - constructor(raw: StripeRawError = {}) { + constructor(raw: StripeRawError = {}, type: string | null = null) { super(raw.message); - this.type = this.constructor.name; + this.type = type || this.constructor.name; this.raw = raw; this.rawType = raw.type; @@ -86,13 +86,21 @@ export class StripeError extends Error { * CardError is raised when a user enters a card that can't be charged for * some reason. */ -export class StripeCardError extends StripeError {} +export class StripeCardError extends StripeError { + constructor(raw: StripeRawError = {}) { + super(raw, 'StripeCardError'); + } +} /** * InvalidRequestError is raised when a request is initiated with invalid * parameters. */ -export class StripeInvalidRequestError extends StripeError {} +export class StripeInvalidRequestError extends StripeError { + constructor(raw: StripeRawError = {}) { + super(raw, 'StripeInvalidRequestError'); + } +} /** * APIError is a generic error that may be raised in cases where none of the @@ -100,33 +108,53 @@ export class StripeInvalidRequestError extends StripeError {} * that a new error has been introduced in the API, but this version of the * Node.JS SDK doesn't know how to handle it. */ -export class StripeAPIError extends StripeError {} +export class StripeAPIError extends StripeError { + constructor(raw: StripeRawError = {}) { + super(raw, 'StripeAPIError'); + } +} /** * AuthenticationError is raised when invalid credentials are used to connect * to Stripe's servers. */ -export class StripeAuthenticationError extends StripeError {} +export class StripeAuthenticationError extends StripeError { + constructor(raw: StripeRawError = {}) { + super(raw, 'StripeAuthenticationError'); + } +} /** * PermissionError is raised in cases where access was attempted on a resource * that wasn't allowed. */ -export class StripePermissionError extends StripeError {} +export class StripePermissionError extends StripeError { + constructor(raw: StripeRawError = {}) { + super(raw, 'StripePermissionError'); + } +} /** * RateLimitError is raised in cases where an account is putting too much load * on Stripe's API servers (usually by performing too many requests). Please * back off on request rate. */ -export class StripeRateLimitError extends StripeError {} +export class StripeRateLimitError extends StripeError { + constructor(raw: StripeRawError = {}) { + super(raw, 'StripeRateLimitError'); + } +} /** * StripeConnectionError is raised in the event that the SDK can't connect to * Stripe's servers. That can be for a variety of different reasons from a * downed network to a bad TLS certificate. */ -export class StripeConnectionError extends StripeError {} +export class StripeConnectionError extends StripeError { + constructor(raw: StripeRawError = {}) { + super(raw, 'StripeConnectionError'); + } +} /** * SignatureVerificationError is raised when the signature verification for a @@ -141,7 +169,7 @@ export class StripeSignatureVerificationError extends StripeError { payload: string | Uint8Array, raw: StripeRawError = {} ) { - super(raw); + super(raw, 'StripeSignatureVerificationError'); this.header = header; this.payload = payload; } @@ -151,7 +179,11 @@ export class StripeSignatureVerificationError extends StripeError { * IdempotencyError is raised in cases where an idempotency key was used * improperly. */ -export class StripeIdempotencyError extends StripeError {} +export class StripeIdempotencyError extends StripeError { + constructor(raw: StripeRawError = {}) { + super(raw, 'StripeIdempotencyError'); + } +} /** * InvalidGrantError is raised when a specified code doesn't exist, is @@ -159,9 +191,17 @@ export class StripeIdempotencyError extends StripeError {} * exist, or doesn't belong to you; or if an API key's mode (live or test) * doesn't match the mode of a code or refresh token. */ -export class StripeInvalidGrantError extends StripeError {} +export class StripeInvalidGrantError extends StripeError { + constructor(raw: StripeRawError = {}) { + super(raw, 'StripeInvalidGrantError'); + } +} /** * Any other error from Stripe not specifically captured above */ -export class StripeUnknownError extends StripeError {} +export class StripeUnknownError extends StripeError { + constructor(raw: StripeRawError = {}) { + super(raw, 'StripeUnknownError'); + } +} diff --git a/test/Error.spec.ts b/test/Error.spec.ts index 9e6ea65173..a899766a7a 100644 --- a/test/Error.spec.ts +++ b/test/Error.spec.ts @@ -58,7 +58,17 @@ describe('Error', () => { expect(e).to.have.property('statusCode', 400); }); - it('has subclasses which provide `.type` as their name', () => { + it('respects subclasses overriding `.type` in constructor', () => { + class Foo extends Error.StripeError { + constructor(raw: any) { + super(raw, 'Foo'); + } + } + const err = new Foo({message: 'hi'}); + expect(err).to.have.property('type', 'Foo'); + }); + + it('defaults setting `.type` to subclass name', () => { class Foo extends Error.StripeError {} const err = new Foo({message: 'hi'}); expect(err).to.have.property('type', 'Foo'); diff --git a/test/Integration.spec.ts b/test/Integration.spec.ts index 1483de9c3a..71f2b087cd 100644 --- a/test/Integration.spec.ts +++ b/test/Integration.spec.ts @@ -55,6 +55,22 @@ describe('Integration test', function() { await runTestProject('mjs-ts'); }); + describe('esbuild', () => { + it('should not change error.type when minified', async function() { + // Node supports ES Modules starting at v12 + if (nodeVersion <= 12) { + this.skip(); + } + + await testExec(` + cd testProjects/esbuild && rm -rf node_modules && rm -rf dist + npm install && + npm run build && + npm run start + `); + }); + }); + const runTestCloudflareProject = (projectName: string): Promise => { if (process.versions.node < '16.13') { console.log('Wrangler requires at least node.js v16.13.0, skipping test'); diff --git a/testProjects/esbuild/index.js b/testProjects/esbuild/index.js new file mode 100644 index 0000000000..3ed3c57da2 --- /dev/null +++ b/testProjects/esbuild/index.js @@ -0,0 +1,35 @@ +import {Stripe} from 'stripe'; +import assert from 'assert'; + +// API key is null to trigger an authentication error +const stripe = new Stripe(null, { + host: process.env.STRIPE_MOCK_HOST || 'localhost', + port: process.env.STRIPE_MOCK_PORT || 12111, + protocol: 'http', +}); + +try { + throw new stripe.errors.StripeUnknownError({ + charge: 'foo', + unknown_prop: 'bar', + }); +} catch (e) { + assert (e instanceof stripe.errors.StripeUnknownError); + assert (e.type === 'StripeUnknownError'); +} + +async function exampleFunction(args) { + try { + await stripe.paymentIntents.create(args); + } catch (e) { + assert (e instanceof stripe.errors.StripeAuthenticationError); + assert (e.type === 'StripeAuthenticationError'); + } +} + +exampleFunction({ + // The required parameter currency is missing + amount: 2000, + confirm: true, + payment_method: 'pm_card_visa', +}); diff --git a/testProjects/esbuild/package.json b/testProjects/esbuild/package.json new file mode 100644 index 0000000000..8c622e1c5c --- /dev/null +++ b/testProjects/esbuild/package.json @@ -0,0 +1,17 @@ +{ + "name": "mjs", + "version": "1.0.0", + "description": "", + "main": "index.js", + "dependencies": { + "stripe": "file:../../" + }, + "scripts": { + "clean": "rm -rf node_modules && rm -rf dist", + "build": "esbuild index.js --bundle --platform=node --minify --target=es2020 --outdir=dist", + "start": "node dist/index.js" + }, + "devDependencies": { + "esbuild": "^0.20.2" + } +} From 0c0cc0010c5aa5c40796ecc87d30df9e08f7db7a Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 21 Mar 2024 18:00:23 +0000 Subject: [PATCH 16/17] Update generated code for v895 --- OPENAPI_VERSION | 2 +- .../resources/generated_examples_test.spec.js | 2 +- types/Charges.d.ts | 35 ++++++ types/ConfirmationTokens.d.ts | 5 + types/CustomersResource.d.ts | 1 + types/PaymentIntents.d.ts | 18 +++ types/PaymentIntentsResource.d.ts | 105 ++++++++++++++++++ types/PaymentMethods.d.ts | 5 + types/PaymentMethodsResource.d.ts | 9 ++ types/SetupIntentsResource.d.ts | 24 ++++ .../ConfirmationTokensResource.d.ts | 8 ++ 11 files changed, 212 insertions(+), 2 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index c785a51efa..da340eef42 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v894 \ No newline at end of file +v895 \ No newline at end of file diff --git a/test/resources/generated_examples_test.spec.js b/test/resources/generated_examples_test.spec.js index c1a643a12b..908c0eb0fa 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","au_becs_debit_payments":"active","bacs_debit_payments":"active","bancontact_payments":"inactive","bank_transfer_payments":"pending","blik_payments":"inactive","boleto_payments":"inactive","card_issuing":"active","card_payments":"active","cartes_bancaires_payments":"active","cashapp_payments":"active","eps_payments":"inactive","fpx_payments":"active","giropay_payments":"active","grabpay_payments":"pending","ideal_payments":"inactive","india_international_payments":"inactive","jcb_payments":"inactive","klarna_payments":"active","konbini_payments":"active","legacy_payments":"active","link_payments":"inactive","mobilepay_payments":"pending","oxxo_payments":"pending","p24_payments":"inactive","paynow_payments":"active","paypal_payments":"inactive","payto_payments":"pending","promptpay_payments":"active","revolut_pay_payments":"inactive","sepa_debit_payments":"inactive","sofort_payments":"active","swish_payments":"inactive","tax_reporting_us_1099_k":"inactive","tax_reporting_us_1099_misc":"pending","transfers":"inactive","treasury":"pending","twint_payments":"inactive","us_bank_account_ach_payments":"pending","zip_payments":"pending"},"charges_enabled":true,"company":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"address_kana":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"address_kanji":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"directors_provided":true,"executives_provided":true,"export_license_id":"export_license_id","export_purpose_code":"export_purpose_code","name":"name","name_kana":"name_kana","name_kanji":"name_kanji","owners_provided":true,"ownership_declaration":{"date":"3076014","ip":"ip","user_agent":"user_agent"},"phone":"phone","structure":"single_member_llc","tax_id_provided":true,"tax_id_registrar":"tax_id_registrar","vat_id_provided":true,"verification":{"document":{"back":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"},"details":"details","details_code":"details_code","front":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"}}}},"controller":{"application":{"loss_liable":true,"onboarding_owner":true,"pricing_controls":true},"dashboard":{"type":"express"},"is_controller":true,"type":"account"},"country":"country","created":"1028554472","default_currency":"default_currency","details_submitted":true,"email":"email","external_accounts":null,"future_requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"current_deadline":"270965154","currently_due":["currently_due"],"disabled_reason":"disabled_reason","errors":[{"code":"invalid_address_city_state_postal_code","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"id":"obj_123","individual":{"account":"account","additional_tos_acceptances":{"account":{"date":"3076014","ip":"ip","user_agent":"user_agent"}},"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"address_kana":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"address_kanji":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"created":"1028554472","dob":{"day":99228,"month":104080000,"year":3704893},"email":"email","first_name":"first_name","first_name_kana":"first_name_kana","first_name_kanji":"first_name_kanji","full_name_aliases":["full_name_aliases"],"future_requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"currently_due":["currently_due"],"errors":[{"code":"invalid_address_city_state_postal_code","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"gender":"gender","id":"obj_123","id_number_provided":true,"id_number_secondary_provided":true,"last_name":"last_name","last_name_kana":"last_name_kana","last_name_kanji":"last_name_kanji","maiden_name":"maiden_name","metadata":{"undefined":"metadata"},"nationality":"nationality","object":"person","phone":"phone","political_exposure":"none","registered_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"relationship":{"director":true,"executive":true,"legal_guardian":true,"owner":true,"percent_ownership":760989685,"representative":true,"title":"title"},"requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"currently_due":["currently_due"],"errors":[{"code":"invalid_address_city_state_postal_code","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"ssn_last_4_provided":true,"verification":{"additional_document":{"back":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"},"details":"details","details_code":"details_code","front":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"}},"details":"details","details_code":"details_code","document":{"back":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"},"details":"details","details_code":"details_code","front":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"}},"status":"status"}},"metadata":{"undefined":"metadata"},"object":"account","payouts_enabled":true,"requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"current_deadline":"270965154","currently_due":["currently_due"],"disabled_reason":"disabled_reason","errors":[{"code":"invalid_address_city_state_postal_code","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"settings":{"bacs_debit_payments":{"display_name":"display_name","service_user_number":"service_user_number"},"branding":{"icon":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"},"logo":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"},"primary_color":"primary_color","secondary_color":"secondary_color"},"card_issuing":{"tos_acceptance":{"date":3076014,"ip":"ip","user_agent":"user_agent"}},"card_payments":{"decline_on":{"avs_failure":true,"cvc_failure":true},"statement_descriptor_prefix":"statement_descriptor_prefix","statement_descriptor_prefix_kana":"statement_descriptor_prefix_kana","statement_descriptor_prefix_kanji":"statement_descriptor_prefix_kanji"},"dashboard":{"display_name":"display_name","timezone":"timezone"},"invoices":{"default_account_tax_ids":[{"country":"country","created":"1028554472","customer":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"balance":339185956,"cash_balance":{"available":{"undefined":733902135},"customer":"customer","livemode":true,"object":"cash_balance","settings":{"reconciliation_mode":"manual","using_merchant_default":true}},"created":"1028554472","currency":"currency","default_source":null,"delinquent":true,"description":"description","discount":{"checkout_session":"checkout_session","coupon":null,"customer":null,"end":"100571","id":"obj_123","invoice":"invoice","invoice_item":"invoice_item","object":"discount","promotion_code":null,"start":"109757538","subscription":"subscription","subscription_item":"subscription_item"},"email":"email","id":"obj_123","invoice_credit_balance":{"undefined":1267696360},"invoice_prefix":"invoice_prefix","invoice_settings":{"custom_fields":[{"name":"name","value":"value"}],"default_payment_method":{"acss_debit":{"bank_name":"bank_name","fingerprint":"fingerprint","institution_number":"institution_number","last4":"last4","transit_number":"transit_number"},"affirm":{},"afterpay_clearpay":{},"alipay":{},"au_becs_debit":{"bsb_number":"bsb_number","fingerprint":"fingerprint","last4":"last4"},"bacs_debit":{"fingerprint":"fingerprint","last4":"last4","sort_code":"sort_code"},"bancontact":{},"billing_details":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","phone":"phone"},"blik":{},"boleto":{"tax_id":"tax_id"},"card":{"brand":"brand","checks":{"address_line1_check":"address_line1_check","address_postal_code_check":"address_postal_code_check","cvc_check":"cvc_check"},"country":"country","description":"description","display_brand":"display_brand","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"three_d_secure_usage":{"supported":true},"wallet":{"amex_express_checkout":{},"apple_pay":{},"dynamic_last4":"dynamic_last4","google_pay":{},"link":{},"masterpass":{"billing_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","shipping_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"}},"samsung_pay":{},"type":"link","visa_checkout":{"billing_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","shipping_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"}}}},"card_present":{"brand":"brand","cardholder_name":"cardholder_name","country":"country","description":"description","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"read_method":"magnetic_stripe_track2"},"cashapp":{"buyer_id":"buyer_id","cashtag":"cashtag"},"created":"1028554472","customer":null,"customer_balance":{},"eps":{"bank":"btv_vier_lander_bank"},"fpx":{"account_holder_type":"individual","bank":"bsn"},"giropay":{},"grabpay":{},"id":"obj_123","ideal":{"bank":"sns_bank","bic":"BUNQNL2A"},"interac_present":{"brand":"brand","cardholder_name":"cardholder_name","country":"country","description":"description","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2"},"klarna":{"dob":{"day":99228,"month":104080000,"year":3704893}},"konbini":{},"link":{"email":"email","persistent_token":"persistent_token"},"livemode":true,"metadata":{"undefined":"metadata"},"multibanco":{},"object":"payment_method","oxxo":{},"p24":{"bank":"noble_pay"},"paynow":{},"paypal":{"fingerprint":"fingerprint","payer_email":"payer_email","payer_id":"payer_id","verified_email":"verified_email"},"payto":{"bsb_number":"bsb_number","last4":"last4","pay_id":"pay_id"},"pix":{},"promptpay":{},"radar_options":{"session":"session"},"revolut_pay":{},"sepa_debit":{"bank_code":"bank_code","branch_code":"branch_code","country":"country","fingerprint":"fingerprint","generated_from":{"charge":null,"setup_attempt":null},"last4":"last4"},"sofort":{"country":"country"},"swish":{},"twint":{},"type":"acss_debit","us_bank_account":{"account_holder_type":"individual","account_number":"account_number","account_type":"checking","bank_name":"bank_name","financial_connections_account":"financial_connections_account","fingerprint":"fingerprint","last4":"last4","networks":{"preferred":"preferred","supported":["ach"]},"routing_number":"routing_number","status_details":{"blocked":{"network_code":"R29","reason":"bank_account_unusable"}}},"wechat_pay":{},"zip":{}},"footer":"footer","rendering_options":{"amount_tax_display":"amount_tax_display"}},"livemode":true,"metadata":{"undefined":"metadata"},"name":"name","next_invoice_sequence":1356358751,"object":"customer","phone":"phone","preferred_locales":["preferred_locales"],"shipping":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"carrier":"carrier","name":"name","phone":"phone","tracking_number":"tracking_number"},"sources":null,"subscriptions":null,"tax":{"automatic_tax":"unrecognized_location","ip_address":"ip_address","location":{"country":"country","source":"ip_address","state":"state"}},"tax_exempt":"reverse","tax_ids":null,"test_clock":{"created":"1028554472","deletes_after":"73213179","frozen_time":"2033541876","id":"obj_123","livemode":true,"name":"name","object":"test_helpers.test_clock","status":"advancing"}},"id":"obj_123","livemode":true,"object":"tax_id","owner":{"account":{"business_profile":{"annual_revenue":{"amount":1413853096,"currency":"currency","fiscal_year_end":"fiscal_year_end"},"estimated_worker_count":884794319,"mcc":"mcc","monthly_estimated_revenue":{"amount":1413853096,"currency":"currency"},"name":"name","product_description":"product_description","support_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"support_email":"support_email","support_phone":"support_phone","support_url":"support_url","url":"url"},"business_type":"government_entity","capabilities":{"acss_debit_payments":"inactive","affirm_payments":"pending","afterpay_clearpay_payments":"inactive","au_becs_debit_payments":"active","bacs_debit_payments":"active","bancontact_payments":"inactive","bank_transfer_payments":"pending","blik_payments":"inactive","boleto_payments":"inactive","card_issuing":"active","card_payments":"active","cartes_bancaires_payments":"active","cashapp_payments":"active","eps_payments":"inactive","fpx_payments":"active","giropay_payments":"active","grabpay_payments":"pending","ideal_payments":"inactive","india_international_payments":"inactive","jcb_payments":"inactive","klarna_payments":"active","konbini_payments":"active","legacy_payments":"active","link_payments":"inactive","mobilepay_payments":"pending","oxxo_payments":"pending","p24_payments":"inactive","paynow_payments":"active","paypal_payments":"inactive","payto_payments":"pending","promptpay_payments":"active","revolut_pay_payments":"inactive","sepa_debit_payments":"inactive","sofort_payments":"active","swish_payments":"inactive","tax_reporting_us_1099_k":"inactive","tax_reporting_us_1099_misc":"pending","transfers":"inactive","treasury":"pending","twint_payments":"inactive","us_bank_account_ach_payments":"pending","zip_payments":"pending"},"charges_enabled":true,"company":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"address_kana":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"address_kanji":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"directors_provided":true,"executives_provided":true,"export_license_id":"export_license_id","export_purpose_code":"export_purpose_code","name":"name","name_kana":"name_kana","name_kanji":"name_kanji","owners_provided":true,"ownership_declaration":{"date":"3076014","ip":"ip","user_agent":"user_agent"},"phone":"phone","structure":"single_member_llc","tax_id_provided":true,"tax_id_registrar":"tax_id_registrar","vat_id_provided":true,"verification":{"document":{"back":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"},"details":"details","details_code":"details_code","front":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"}}}},"controller":{"application":{"loss_liable":true,"onboarding_owner":true,"pricing_controls":true},"dashboard":{"type":"express"},"is_controller":true,"type":"account"},"country":"country","created":"1028554472","default_currency":"default_currency","details_submitted":true,"email":"email","external_accounts":null,"future_requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"current_deadline":"270965154","currently_due":["currently_due"],"disabled_reason":"disabled_reason","errors":[{"code":"invalid_address_city_state_postal_code","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"id":"obj_123","individual":{"account":"account","additional_tos_acceptances":{"account":{"date":"3076014","ip":"ip","user_agent":"user_agent"}},"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"address_kana":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"address_kanji":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"created":"1028554472","dob":{"day":99228,"month":104080000,"year":3704893},"email":"email","first_name":"first_name","first_name_kana":"first_name_kana","first_name_kanji":"first_name_kanji","full_name_aliases":["full_name_aliases"],"future_requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"currently_due":["currently_due"],"errors":[{"code":"invalid_address_city_state_postal_code","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"gender":"gender","id":"obj_123","id_number_provided":true,"id_number_secondary_provided":true,"last_name":"last_name","last_name_kana":"last_name_kana","last_name_kanji":"last_name_kanji","maiden_name":"maiden_name","metadata":{"undefined":"metadata"},"nationality":"nationality","object":"person","phone":"phone","political_exposure":"none","registered_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"relationship":{"director":true,"executive":true,"legal_guardian":true,"owner":true,"percent_ownership":760989685,"representative":true,"title":"title"},"requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"currently_due":["currently_due"],"errors":[{"code":"invalid_address_city_state_postal_code","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"ssn_last_4_provided":true,"verification":{"additional_document":{"back":null,"details":"details","details_code":"details_code","front":null},"details":"details","details_code":"details_code","document":{"back":null,"details":"details","details_code":"details_code","front":null},"status":"status"}},"metadata":{"undefined":"metadata"},"object":"account","payouts_enabled":true,"requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"current_deadline":"270965154","currently_due":["currently_due"],"disabled_reason":"disabled_reason","errors":[{"code":"invalid_address_city_state_postal_code","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"settings":{"bacs_debit_payments":{"display_name":"display_name","service_user_number":"service_user_number"},"branding":{"icon":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"},"logo":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"},"primary_color":"primary_color","secondary_color":"secondary_color"},"card_issuing":{"tos_acceptance":{"date":3076014,"ip":"ip","user_agent":"user_agent"}},"card_payments":{"decline_on":{"avs_failure":true,"cvc_failure":true},"statement_descriptor_prefix":"statement_descriptor_prefix","statement_descriptor_prefix_kana":"statement_descriptor_prefix_kana","statement_descriptor_prefix_kanji":"statement_descriptor_prefix_kanji"},"dashboard":{"display_name":"display_name","timezone":"timezone"},"invoices":{"default_account_tax_ids":[{"country":"country","created":"1028554472","customer":null,"id":"obj_123","livemode":true,"object":"tax_id","owner":{"account":null,"application":null,"customer":null,"type":"customer"},"type":"jp_cn","value":"value","verification":{"status":"unverified","verified_address":"verified_address","verified_name":"verified_name"}}]},"payments":{"statement_descriptor":"statement_descriptor","statement_descriptor_kana":"statement_descriptor_kana","statement_descriptor_kanji":"statement_descriptor_kanji","statement_descriptor_prefix_kana":"statement_descriptor_prefix_kana","statement_descriptor_prefix_kanji":"statement_descriptor_prefix_kanji"},"payouts":{"debit_negative_balances":true,"schedule":{"delay_days":1647351405,"interval":"interval","monthly_anchor":1920305369,"weekly_anchor":"weekly_anchor"},"statement_descriptor":"statement_descriptor"},"sepa_debit_payments":{"creditor_id":"creditor_id"},"tax_forms":{"consented_to_paperless_delivery":true},"treasury":{"tos_acceptance":{"date":3076014,"ip":"ip","user_agent":"user_agent"}}},"tos_acceptance":{"date":"3076014","ip":"ip","service_agreement":"service_agreement","user_agent":"user_agent"},"type":"custom"},"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":{},"au_becs_debit":{"bsb_number":"bsb_number","fingerprint":"fingerprint","last4":"last4"},"bacs_debit":{"fingerprint":"fingerprint","last4":"last4","sort_code":"sort_code"},"bancontact":{},"billing_details":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","phone":"phone"},"blik":{},"boleto":{"tax_id":"tax_id"},"card":{"brand":"brand","checks":{"address_line1_check":"address_line1_check","address_postal_code_check":"address_postal_code_check","cvc_check":"cvc_check"},"country":"country","description":"description","display_brand":"display_brand","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"three_d_secure_usage":{"supported":true},"wallet":{"amex_express_checkout":{},"apple_pay":{},"dynamic_last4":"dynamic_last4","google_pay":{},"link":{},"masterpass":{"billing_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","shipping_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"}},"samsung_pay":{},"type":"link","visa_checkout":{"billing_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","shipping_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"}}}},"card_present":{"brand":"brand","cardholder_name":"cardholder_name","country":"country","description":"description","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"read_method":"magnetic_stripe_track2"},"cashapp":{"buyer_id":"buyer_id","cashtag":"cashtag"},"created":"1028554472","customer":null,"customer_balance":{},"eps":{"bank":"btv_vier_lander_bank"},"fpx":{"account_holder_type":"individual","bank":"bsn"},"giropay":{},"grabpay":{},"id":"obj_123","ideal":{"bank":"sns_bank","bic":"BUNQNL2A"},"interac_present":{"brand":"brand","cardholder_name":"cardholder_name","country":"country","description":"description","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2"},"klarna":{"dob":{"day":99228,"month":104080000,"year":3704893}},"konbini":{},"link":{"email":"email","persistent_token":"persistent_token"},"livemode":true,"metadata":{"undefined":"metadata"},"multibanco":{},"object":"payment_method","oxxo":{},"p24":{"bank":"noble_pay"},"paynow":{},"paypal":{"fingerprint":"fingerprint","payer_email":"payer_email","payer_id":"payer_id","verified_email":"verified_email"},"payto":{"bsb_number":"bsb_number","last4":"last4","pay_id":"pay_id"},"pix":{},"promptpay":{},"radar_options":{"session":"session"},"revolut_pay":{},"sepa_debit":{"bank_code":"bank_code","branch_code":"branch_code","country":"country","fingerprint":"fingerprint","generated_from":{"charge":null,"setup_attempt":null},"last4":"last4"},"sofort":{"country":"country"},"swish":{},"twint":{},"type":"acss_debit","us_bank_account":{"account_holder_type":"individual","account_number":"account_number","account_type":"checking","bank_name":"bank_name","financial_connections_account":"financial_connections_account","fingerprint":"fingerprint","last4":"last4","networks":{"preferred":"preferred","supported":["ach"]},"routing_number":"routing_number","status_details":{"blocked":{"network_code":"R29","reason":"bank_account_unusable"}}},"wechat_pay":{},"zip":{}},"footer":"footer","rendering_options":{"amount_tax_display":"amount_tax_display"}},"livemode":true,"metadata":{"undefined":"metadata"},"name":"name","next_invoice_sequence":1356358751,"object":"customer","phone":"phone","preferred_locales":["preferred_locales"],"shipping":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"carrier":"carrier","name":"name","phone":"phone","tracking_number":"tracking_number"},"sources":null,"subscriptions":null,"tax":{"automatic_tax":"unrecognized_location","ip_address":"ip_address","location":{"country":"country","source":"ip_address","state":"state"}},"tax_exempt":"reverse","tax_ids":null,"test_clock":{"created":"1028554472","deletes_after":"73213179","frozen_time":"2033541876","id":"obj_123","livemode":true,"name":"name","object":"test_helpers.test_clock","status":"advancing"}},"type":"customer"},"type":"jp_cn","value":"value","verification":{"status":"unverified","verified_address":"verified_address","verified_name":"verified_name"}}]},"payments":{"statement_descriptor":"statement_descriptor","statement_descriptor_kana":"statement_descriptor_kana","statement_descriptor_kanji":"statement_descriptor_kanji","statement_descriptor_prefix_kana":"statement_descriptor_prefix_kana","statement_descriptor_prefix_kanji":"statement_descriptor_prefix_kanji"},"payouts":{"debit_negative_balances":true,"schedule":{"delay_days":1647351405,"interval":"interval","monthly_anchor":1920305369,"weekly_anchor":"weekly_anchor"},"statement_descriptor":"statement_descriptor"},"sepa_debit_payments":{"creditor_id":"creditor_id"},"tax_forms":{"consented_to_paperless_delivery":true},"treasury":{"tos_acceptance":{"date":3076014,"ip":"ip","user_agent":"user_agent"}}},"tos_acceptance":{"date":"3076014","ip":"ip","service_agreement":"service_agreement","user_agent":"user_agent"},"type":"custom"}', + '{"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","au_becs_debit_payments":"active","bacs_debit_payments":"active","bancontact_payments":"inactive","bank_transfer_payments":"pending","blik_payments":"inactive","boleto_payments":"inactive","card_issuing":"active","card_payments":"active","cartes_bancaires_payments":"active","cashapp_payments":"active","eps_payments":"inactive","fpx_payments":"active","giropay_payments":"active","grabpay_payments":"pending","ideal_payments":"inactive","india_international_payments":"inactive","jcb_payments":"inactive","klarna_payments":"active","konbini_payments":"active","legacy_payments":"active","link_payments":"inactive","mobilepay_payments":"pending","oxxo_payments":"pending","p24_payments":"inactive","paynow_payments":"active","paypal_payments":"inactive","payto_payments":"pending","promptpay_payments":"active","revolut_pay_payments":"inactive","sepa_debit_payments":"inactive","sofort_payments":"active","swish_payments":"inactive","tax_reporting_us_1099_k":"inactive","tax_reporting_us_1099_misc":"pending","transfers":"inactive","treasury":"pending","twint_payments":"inactive","us_bank_account_ach_payments":"pending","zip_payments":"pending"},"charges_enabled":true,"company":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"address_kana":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"address_kanji":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"directors_provided":true,"executives_provided":true,"export_license_id":"export_license_id","export_purpose_code":"export_purpose_code","name":"name","name_kana":"name_kana","name_kanji":"name_kanji","owners_provided":true,"ownership_declaration":{"date":"3076014","ip":"ip","user_agent":"user_agent"},"phone":"phone","structure":"single_member_llc","tax_id_provided":true,"tax_id_registrar":"tax_id_registrar","vat_id_provided":true,"verification":{"document":{"back":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"},"details":"details","details_code":"details_code","front":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"}}}},"controller":{"application":{"loss_liable":true,"onboarding_owner":true,"pricing_controls":true},"dashboard":{"type":"express"},"is_controller":true,"type":"account"},"country":"country","created":"1028554472","default_currency":"default_currency","details_submitted":true,"email":"email","external_accounts":null,"future_requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"current_deadline":"270965154","currently_due":["currently_due"],"disabled_reason":"disabled_reason","errors":[{"code":"invalid_address_city_state_postal_code","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"id":"obj_123","individual":{"account":"account","additional_tos_acceptances":{"account":{"date":"3076014","ip":"ip","user_agent":"user_agent"}},"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"address_kana":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"address_kanji":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"created":"1028554472","dob":{"day":99228,"month":104080000,"year":3704893},"email":"email","first_name":"first_name","first_name_kana":"first_name_kana","first_name_kanji":"first_name_kanji","full_name_aliases":["full_name_aliases"],"future_requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"currently_due":["currently_due"],"errors":[{"code":"invalid_address_city_state_postal_code","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"gender":"gender","id":"obj_123","id_number_provided":true,"id_number_secondary_provided":true,"last_name":"last_name","last_name_kana":"last_name_kana","last_name_kanji":"last_name_kanji","maiden_name":"maiden_name","metadata":{"undefined":"metadata"},"nationality":"nationality","object":"person","phone":"phone","political_exposure":"none","registered_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"relationship":{"director":true,"executive":true,"legal_guardian":true,"owner":true,"percent_ownership":760989685,"representative":true,"title":"title"},"requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"currently_due":["currently_due"],"errors":[{"code":"invalid_address_city_state_postal_code","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"ssn_last_4_provided":true,"verification":{"additional_document":{"back":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"},"details":"details","details_code":"details_code","front":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"}},"details":"details","details_code":"details_code","document":{"back":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"},"details":"details","details_code":"details_code","front":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"}},"status":"status"}},"metadata":{"undefined":"metadata"},"object":"account","payouts_enabled":true,"requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"current_deadline":"270965154","currently_due":["currently_due"],"disabled_reason":"disabled_reason","errors":[{"code":"invalid_address_city_state_postal_code","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"settings":{"bacs_debit_payments":{"display_name":"display_name","service_user_number":"service_user_number"},"branding":{"icon":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"},"logo":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"},"primary_color":"primary_color","secondary_color":"secondary_color"},"card_issuing":{"tos_acceptance":{"date":3076014,"ip":"ip","user_agent":"user_agent"}},"card_payments":{"decline_on":{"avs_failure":true,"cvc_failure":true},"statement_descriptor_prefix":"statement_descriptor_prefix","statement_descriptor_prefix_kana":"statement_descriptor_prefix_kana","statement_descriptor_prefix_kanji":"statement_descriptor_prefix_kanji"},"dashboard":{"display_name":"display_name","timezone":"timezone"},"invoices":{"default_account_tax_ids":[{"country":"country","created":"1028554472","customer":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"balance":339185956,"cash_balance":{"available":{"undefined":733902135},"customer":"customer","livemode":true,"object":"cash_balance","settings":{"reconciliation_mode":"manual","using_merchant_default":true}},"created":"1028554472","currency":"currency","default_source":null,"delinquent":true,"description":"description","discount":{"checkout_session":"checkout_session","coupon":null,"customer":null,"end":"100571","id":"obj_123","invoice":"invoice","invoice_item":"invoice_item","object":"discount","promotion_code":null,"start":"109757538","subscription":"subscription","subscription_item":"subscription_item"},"email":"email","id":"obj_123","invoice_credit_balance":{"undefined":1267696360},"invoice_prefix":"invoice_prefix","invoice_settings":{"custom_fields":[{"name":"name","value":"value"}],"default_payment_method":{"acss_debit":{"bank_name":"bank_name","fingerprint":"fingerprint","institution_number":"institution_number","last4":"last4","transit_number":"transit_number"},"affirm":{},"afterpay_clearpay":{},"alipay":{},"au_becs_debit":{"bsb_number":"bsb_number","fingerprint":"fingerprint","last4":"last4"},"bacs_debit":{"fingerprint":"fingerprint","last4":"last4","sort_code":"sort_code"},"bancontact":{},"billing_details":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","phone":"phone"},"blik":{},"boleto":{"tax_id":"tax_id"},"card":{"brand":"brand","checks":{"address_line1_check":"address_line1_check","address_postal_code_check":"address_postal_code_check","cvc_check":"cvc_check"},"country":"country","description":"description","display_brand":"display_brand","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"three_d_secure_usage":{"supported":true},"wallet":{"amex_express_checkout":{},"apple_pay":{},"dynamic_last4":"dynamic_last4","google_pay":{},"link":{},"masterpass":{"billing_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","shipping_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"}},"samsung_pay":{},"type":"link","visa_checkout":{"billing_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","shipping_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"}}}},"card_present":{"brand":"brand","cardholder_name":"cardholder_name","country":"country","description":"description","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"read_method":"magnetic_stripe_track2"},"cashapp":{"buyer_id":"buyer_id","cashtag":"cashtag"},"created":"1028554472","customer":null,"customer_balance":{},"eps":{"bank":"btv_vier_lander_bank"},"fpx":{"account_holder_type":"individual","bank":"bsn"},"giropay":{},"grabpay":{},"id":"obj_123","ideal":{"bank":"sns_bank","bic":"BUNQNL2A"},"interac_present":{"brand":"brand","cardholder_name":"cardholder_name","country":"country","description":"description","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2"},"klarna":{"dob":{"day":99228,"month":104080000,"year":3704893}},"konbini":{},"link":{"email":"email","persistent_token":"persistent_token"},"livemode":true,"metadata":{"undefined":"metadata"},"mobilepay":{},"multibanco":{},"object":"payment_method","oxxo":{},"p24":{"bank":"noble_pay"},"paynow":{},"paypal":{"fingerprint":"fingerprint","payer_email":"payer_email","payer_id":"payer_id","verified_email":"verified_email"},"payto":{"bsb_number":"bsb_number","last4":"last4","pay_id":"pay_id"},"pix":{},"promptpay":{},"radar_options":{"session":"session"},"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":"customer_balance","us_bank_account":{"account_holder_type":"individual","account_number":"account_number","account_type":"checking","bank_name":"bank_name","financial_connections_account":"financial_connections_account","fingerprint":"fingerprint","last4":"last4","networks":{"preferred":"preferred","supported":["ach"]},"routing_number":"routing_number","status_details":{"blocked":{"network_code":"R29","reason":"bank_account_unusable"}}},"wechat_pay":{},"zip":{}},"footer":"footer","rendering_options":{"amount_tax_display":"amount_tax_display"}},"livemode":true,"metadata":{"undefined":"metadata"},"name":"name","next_invoice_sequence":1356358751,"object":"customer","phone":"phone","preferred_locales":["preferred_locales"],"shipping":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"carrier":"carrier","name":"name","phone":"phone","tracking_number":"tracking_number"},"sources":null,"subscriptions":null,"tax":{"automatic_tax":"unrecognized_location","ip_address":"ip_address","location":{"country":"country","source":"ip_address","state":"state"}},"tax_exempt":"reverse","tax_ids":null,"test_clock":{"created":"1028554472","deletes_after":"73213179","frozen_time":"2033541876","id":"obj_123","livemode":true,"name":"name","object":"test_helpers.test_clock","status":"advancing"}},"id":"obj_123","livemode":true,"object":"tax_id","owner":{"account":{"business_profile":{"annual_revenue":{"amount":1413853096,"currency":"currency","fiscal_year_end":"fiscal_year_end"},"estimated_worker_count":884794319,"mcc":"mcc","monthly_estimated_revenue":{"amount":1413853096,"currency":"currency"},"name":"name","product_description":"product_description","support_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"support_email":"support_email","support_phone":"support_phone","support_url":"support_url","url":"url"},"business_type":"government_entity","capabilities":{"acss_debit_payments":"inactive","affirm_payments":"pending","afterpay_clearpay_payments":"inactive","au_becs_debit_payments":"active","bacs_debit_payments":"active","bancontact_payments":"inactive","bank_transfer_payments":"pending","blik_payments":"inactive","boleto_payments":"inactive","card_issuing":"active","card_payments":"active","cartes_bancaires_payments":"active","cashapp_payments":"active","eps_payments":"inactive","fpx_payments":"active","giropay_payments":"active","grabpay_payments":"pending","ideal_payments":"inactive","india_international_payments":"inactive","jcb_payments":"inactive","klarna_payments":"active","konbini_payments":"active","legacy_payments":"active","link_payments":"inactive","mobilepay_payments":"pending","oxxo_payments":"pending","p24_payments":"inactive","paynow_payments":"active","paypal_payments":"inactive","payto_payments":"pending","promptpay_payments":"active","revolut_pay_payments":"inactive","sepa_debit_payments":"inactive","sofort_payments":"active","swish_payments":"inactive","tax_reporting_us_1099_k":"inactive","tax_reporting_us_1099_misc":"pending","transfers":"inactive","treasury":"pending","twint_payments":"inactive","us_bank_account_ach_payments":"pending","zip_payments":"pending"},"charges_enabled":true,"company":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"address_kana":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"address_kanji":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"directors_provided":true,"executives_provided":true,"export_license_id":"export_license_id","export_purpose_code":"export_purpose_code","name":"name","name_kana":"name_kana","name_kanji":"name_kanji","owners_provided":true,"ownership_declaration":{"date":"3076014","ip":"ip","user_agent":"user_agent"},"phone":"phone","structure":"single_member_llc","tax_id_provided":true,"tax_id_registrar":"tax_id_registrar","vat_id_provided":true,"verification":{"document":{"back":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"},"details":"details","details_code":"details_code","front":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"}}}},"controller":{"application":{"loss_liable":true,"onboarding_owner":true,"pricing_controls":true},"dashboard":{"type":"express"},"is_controller":true,"type":"account"},"country":"country","created":"1028554472","default_currency":"default_currency","details_submitted":true,"email":"email","external_accounts":null,"future_requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"current_deadline":"270965154","currently_due":["currently_due"],"disabled_reason":"disabled_reason","errors":[{"code":"invalid_address_city_state_postal_code","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"id":"obj_123","individual":{"account":"account","additional_tos_acceptances":{"account":{"date":"3076014","ip":"ip","user_agent":"user_agent"}},"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"address_kana":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"address_kanji":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"created":"1028554472","dob":{"day":99228,"month":104080000,"year":3704893},"email":"email","first_name":"first_name","first_name_kana":"first_name_kana","first_name_kanji":"first_name_kanji","full_name_aliases":["full_name_aliases"],"future_requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"currently_due":["currently_due"],"errors":[{"code":"invalid_address_city_state_postal_code","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"gender":"gender","id":"obj_123","id_number_provided":true,"id_number_secondary_provided":true,"last_name":"last_name","last_name_kana":"last_name_kana","last_name_kanji":"last_name_kanji","maiden_name":"maiden_name","metadata":{"undefined":"metadata"},"nationality":"nationality","object":"person","phone":"phone","political_exposure":"none","registered_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"relationship":{"director":true,"executive":true,"legal_guardian":true,"owner":true,"percent_ownership":760989685,"representative":true,"title":"title"},"requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"currently_due":["currently_due"],"errors":[{"code":"invalid_address_city_state_postal_code","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"ssn_last_4_provided":true,"verification":{"additional_document":{"back":null,"details":"details","details_code":"details_code","front":null},"details":"details","details_code":"details_code","document":{"back":null,"details":"details","details_code":"details_code","front":null},"status":"status"}},"metadata":{"undefined":"metadata"},"object":"account","payouts_enabled":true,"requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"current_deadline":"270965154","currently_due":["currently_due"],"disabled_reason":"disabled_reason","errors":[{"code":"invalid_address_city_state_postal_code","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"settings":{"bacs_debit_payments":{"display_name":"display_name","service_user_number":"service_user_number"},"branding":{"icon":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"},"logo":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"finance_report_run","size":3530753,"title":"title","type":"type","url":"url"},"primary_color":"primary_color","secondary_color":"secondary_color"},"card_issuing":{"tos_acceptance":{"date":3076014,"ip":"ip","user_agent":"user_agent"}},"card_payments":{"decline_on":{"avs_failure":true,"cvc_failure":true},"statement_descriptor_prefix":"statement_descriptor_prefix","statement_descriptor_prefix_kana":"statement_descriptor_prefix_kana","statement_descriptor_prefix_kanji":"statement_descriptor_prefix_kanji"},"dashboard":{"display_name":"display_name","timezone":"timezone"},"invoices":{"default_account_tax_ids":[{"country":"country","created":"1028554472","customer":null,"id":"obj_123","livemode":true,"object":"tax_id","owner":{"account":null,"application":null,"customer":null,"type":"customer"},"type":"jp_cn","value":"value","verification":{"status":"unverified","verified_address":"verified_address","verified_name":"verified_name"}}]},"payments":{"statement_descriptor":"statement_descriptor","statement_descriptor_kana":"statement_descriptor_kana","statement_descriptor_kanji":"statement_descriptor_kanji","statement_descriptor_prefix_kana":"statement_descriptor_prefix_kana","statement_descriptor_prefix_kanji":"statement_descriptor_prefix_kanji"},"payouts":{"debit_negative_balances":true,"schedule":{"delay_days":1647351405,"interval":"interval","monthly_anchor":1920305369,"weekly_anchor":"weekly_anchor"},"statement_descriptor":"statement_descriptor"},"sepa_debit_payments":{"creditor_id":"creditor_id"},"tax_forms":{"consented_to_paperless_delivery":true},"treasury":{"tos_acceptance":{"date":3076014,"ip":"ip","user_agent":"user_agent"}}},"tos_acceptance":{"date":"3076014","ip":"ip","service_agreement":"service_agreement","user_agent":"user_agent"},"type":"custom"},"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":{},"au_becs_debit":{"bsb_number":"bsb_number","fingerprint":"fingerprint","last4":"last4"},"bacs_debit":{"fingerprint":"fingerprint","last4":"last4","sort_code":"sort_code"},"bancontact":{},"billing_details":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","phone":"phone"},"blik":{},"boleto":{"tax_id":"tax_id"},"card":{"brand":"brand","checks":{"address_line1_check":"address_line1_check","address_postal_code_check":"address_postal_code_check","cvc_check":"cvc_check"},"country":"country","description":"description","display_brand":"display_brand","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"three_d_secure_usage":{"supported":true},"wallet":{"amex_express_checkout":{},"apple_pay":{},"dynamic_last4":"dynamic_last4","google_pay":{},"link":{},"masterpass":{"billing_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","shipping_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"}},"samsung_pay":{},"type":"link","visa_checkout":{"billing_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","shipping_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"}}}},"card_present":{"brand":"brand","cardholder_name":"cardholder_name","country":"country","description":"description","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"read_method":"magnetic_stripe_track2"},"cashapp":{"buyer_id":"buyer_id","cashtag":"cashtag"},"created":"1028554472","customer":null,"customer_balance":{},"eps":{"bank":"btv_vier_lander_bank"},"fpx":{"account_holder_type":"individual","bank":"bsn"},"giropay":{},"grabpay":{},"id":"obj_123","ideal":{"bank":"sns_bank","bic":"BUNQNL2A"},"interac_present":{"brand":"brand","cardholder_name":"cardholder_name","country":"country","description":"description","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2"},"klarna":{"dob":{"day":99228,"month":104080000,"year":3704893}},"konbini":{},"link":{"email":"email","persistent_token":"persistent_token"},"livemode":true,"metadata":{"undefined":"metadata"},"mobilepay":{},"multibanco":{},"object":"payment_method","oxxo":{},"p24":{"bank":"noble_pay"},"paynow":{},"paypal":{"fingerprint":"fingerprint","payer_email":"payer_email","payer_id":"payer_id","verified_email":"verified_email"},"payto":{"bsb_number":"bsb_number","last4":"last4","pay_id":"pay_id"},"pix":{},"promptpay":{},"radar_options":{"session":"session"},"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":"customer_balance","us_bank_account":{"account_holder_type":"individual","account_number":"account_number","account_type":"checking","bank_name":"bank_name","financial_connections_account":"financial_connections_account","fingerprint":"fingerprint","last4":"last4","networks":{"preferred":"preferred","supported":["ach"]},"routing_number":"routing_number","status_details":{"blocked":{"network_code":"R29","reason":"bank_account_unusable"}}},"wechat_pay":{},"zip":{}},"footer":"footer","rendering_options":{"amount_tax_display":"amount_tax_display"}},"livemode":true,"metadata":{"undefined":"metadata"},"name":"name","next_invoice_sequence":1356358751,"object":"customer","phone":"phone","preferred_locales":["preferred_locales"],"shipping":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"carrier":"carrier","name":"name","phone":"phone","tracking_number":"tracking_number"},"sources":null,"subscriptions":null,"tax":{"automatic_tax":"unrecognized_location","ip_address":"ip_address","location":{"country":"country","source":"ip_address","state":"state"}},"tax_exempt":"reverse","tax_ids":null,"test_clock":{"created":"1028554472","deletes_after":"73213179","frozen_time":"2033541876","id":"obj_123","livemode":true,"name":"name","object":"test_helpers.test_clock","status":"advancing"}},"type":"customer"},"type":"jp_cn","value":"value","verification":{"status":"unverified","verified_address":"verified_address","verified_name":"verified_name"}}]},"payments":{"statement_descriptor":"statement_descriptor","statement_descriptor_kana":"statement_descriptor_kana","statement_descriptor_kanji":"statement_descriptor_kanji","statement_descriptor_prefix_kana":"statement_descriptor_prefix_kana","statement_descriptor_prefix_kanji":"statement_descriptor_prefix_kanji"},"payouts":{"debit_negative_balances":true,"schedule":{"delay_days":1647351405,"interval":"interval","monthly_anchor":1920305369,"weekly_anchor":"weekly_anchor"},"statement_descriptor":"statement_descriptor"},"sepa_debit_payments":{"creditor_id":"creditor_id"},"tax_forms":{"consented_to_paperless_delivery":true},"treasury":{"tos_acceptance":{"date":3076014,"ip":"ip","user_agent":"user_agent"}}},"tos_acceptance":{"date":"3076014","ip":"ip","service_agreement":"service_agreement","user_agent":"user_agent"},"type":"custom"}', }, ]); const account = await stripe.accounts.retrieve('acc_123'); diff --git a/types/Charges.d.ts b/types/Charges.d.ts index a889120ddf..f3ff8744ff 100644 --- a/types/Charges.d.ts +++ b/types/Charges.d.ts @@ -414,6 +414,8 @@ declare module 'stripe' { link?: PaymentMethodDetails.Link; + mobilepay?: PaymentMethodDetails.Mobilepay; + multibanco?: PaymentMethodDetails.Multibanco; oxxo?: PaymentMethodDetails.Oxxo; @@ -1652,6 +1654,39 @@ declare module 'stripe' { country: string | null; } + interface Mobilepay { + card: Mobilepay.Card | null; + } + + namespace Mobilepay { + interface Card { + /** + * Brand of the card used in the transaction + */ + brand: string | null; + + /** + * Two-letter ISO code representing the country of the card + */ + country: string | null; + + /** + * Two digit number representing the card's expiration month + */ + exp_month: number | null; + + /** + * Two digit number representing the card's expiration year + */ + exp_year: number | null; + + /** + * The last 4 digits of the card + */ + last4: string | null; + } + } + interface Multibanco { /** * Entity number associated with this Multibanco payment. diff --git a/types/ConfirmationTokens.d.ts b/types/ConfirmationTokens.d.ts index b7581e8ab0..1dd603d1e9 100644 --- a/types/ConfirmationTokens.d.ts +++ b/types/ConfirmationTokens.d.ts @@ -182,6 +182,8 @@ declare module 'stripe' { link?: PaymentMethodPreview.Link; + mobilepay?: PaymentMethodPreview.Mobilepay; + multibanco?: PaymentMethodPreview.Multibanco; oxxo?: PaymentMethodPreview.Oxxo; @@ -902,6 +904,8 @@ declare module 'stripe' { persistent_token?: string; } + interface Mobilepay {} + interface Multibanco {} interface Oxxo {} @@ -1072,6 +1076,7 @@ declare module 'stripe' { | 'klarna' | 'konbini' | 'link' + | 'mobilepay' | 'multibanco' | 'oxxo' | 'p24' diff --git a/types/CustomersResource.d.ts b/types/CustomersResource.d.ts index 32ab59abaf..65e8eb6769 100644 --- a/types/CustomersResource.d.ts +++ b/types/CustomersResource.d.ts @@ -792,6 +792,7 @@ declare module 'stripe' { | 'klarna' | 'konbini' | 'link' + | 'mobilepay' | 'multibanco' | 'oxxo' | 'p24' diff --git a/types/PaymentIntents.d.ts b/types/PaymentIntents.d.ts index 8cc179d5b5..61a529364f 100644 --- a/types/PaymentIntents.d.ts +++ b/types/PaymentIntents.d.ts @@ -1603,6 +1603,8 @@ declare module 'stripe' { link?: PaymentMethodOptions.Link; + mobilepay?: PaymentMethodOptions.Mobilepay; + multibanco?: PaymentMethodOptions.Multibanco; oxxo?: PaymentMethodOptions.Oxxo; @@ -2323,6 +2325,22 @@ declare module 'stripe' { type SetupFutureUsage = 'none' | 'off_session'; } + interface Mobilepay { + /** + * 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. + * + * Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes. + * + * When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication). + */ + setup_future_usage?: 'none'; + } + interface Multibanco { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. diff --git a/types/PaymentIntentsResource.d.ts b/types/PaymentIntentsResource.d.ts index 77341fdc2b..5bc78b3bdf 100644 --- a/types/PaymentIntentsResource.d.ts +++ b/types/PaymentIntentsResource.d.ts @@ -1016,6 +1016,11 @@ declare module 'stripe' { */ metadata?: Stripe.MetadataParam; + /** + * If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method. + */ + mobilepay?: PaymentMethodData.Mobilepay; + /** * If this is a `multibanco` PaymentMethod, this hash contains details about the Multibanco payment method. */ @@ -1334,6 +1339,8 @@ declare module 'stripe' { interface Link {} + interface Mobilepay {} + interface Multibanco {} interface Oxxo {} @@ -1451,6 +1458,7 @@ declare module 'stripe' { | 'klarna' | 'konbini' | 'link' + | 'mobilepay' | 'multibanco' | 'oxxo' | 'p24' @@ -1621,6 +1629,11 @@ declare module 'stripe' { */ link?: Stripe.Emptyable; + /** + * If this is a `MobilePay` PaymentMethod, this sub-hash contains details about the MobilePay payment method options. + */ + mobilepay?: Stripe.Emptyable; + /** * If this is a `multibanco` PaymentMethod, this sub-hash contains details about the Multibanco payment method options. */ @@ -2585,6 +2598,28 @@ declare module 'stripe' { type SetupFutureUsage = 'none' | 'off_session'; } + interface Mobilepay { + /** + * Controls when the funds will be captured from the customer's account. + * + * If provided, this parameter will override the top-level `capture_method` 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 will unset 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. + * + * Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes. + * + * When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication). + * + * If `setup_future_usage` is already set and you are performing a request using a publishable key, you may only update the value from `on_session` to `off_session`. + */ + setup_future_usage?: 'none'; + } + interface Multibanco { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -4067,6 +4102,11 @@ declare module 'stripe' { */ metadata?: Stripe.MetadataParam; + /** + * If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method. + */ + mobilepay?: PaymentMethodData.Mobilepay; + /** * If this is a `multibanco` PaymentMethod, this hash contains details about the Multibanco payment method. */ @@ -4385,6 +4425,8 @@ declare module 'stripe' { interface Link {} + interface Mobilepay {} + interface Multibanco {} interface Oxxo {} @@ -4502,6 +4544,7 @@ declare module 'stripe' { | 'klarna' | 'konbini' | 'link' + | 'mobilepay' | 'multibanco' | 'oxxo' | 'p24' @@ -4672,6 +4715,11 @@ declare module 'stripe' { */ link?: Stripe.Emptyable; + /** + * If this is a `MobilePay` PaymentMethod, this sub-hash contains details about the MobilePay payment method options. + */ + mobilepay?: Stripe.Emptyable; + /** * If this is a `multibanco` PaymentMethod, this sub-hash contains details about the Multibanco payment method options. */ @@ -5636,6 +5684,28 @@ declare module 'stripe' { type SetupFutureUsage = 'none' | 'off_session'; } + interface Mobilepay { + /** + * Controls when the funds will be captured from the customer's account. + * + * If provided, this parameter will override the top-level `capture_method` 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 will unset 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. + * + * Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes. + * + * When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication). + * + * If `setup_future_usage` is already set and you are performing a request using a publishable key, you may only update the value from `on_session` to `off_session`. + */ + setup_future_usage?: 'none'; + } + interface Multibanco { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -7875,6 +7945,11 @@ declare module 'stripe' { */ metadata?: Stripe.MetadataParam; + /** + * If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method. + */ + mobilepay?: PaymentMethodData.Mobilepay; + /** * If this is a `multibanco` PaymentMethod, this hash contains details about the Multibanco payment method. */ @@ -8193,6 +8268,8 @@ declare module 'stripe' { interface Link {} + interface Mobilepay {} + interface Multibanco {} interface Oxxo {} @@ -8310,6 +8387,7 @@ declare module 'stripe' { | 'klarna' | 'konbini' | 'link' + | 'mobilepay' | 'multibanco' | 'oxxo' | 'p24' @@ -8480,6 +8558,11 @@ declare module 'stripe' { */ link?: Stripe.Emptyable; + /** + * If this is a `MobilePay` PaymentMethod, this sub-hash contains details about the MobilePay payment method options. + */ + mobilepay?: Stripe.Emptyable; + /** * If this is a `multibanco` PaymentMethod, this sub-hash contains details about the Multibanco payment method options. */ @@ -9444,6 +9527,28 @@ declare module 'stripe' { type SetupFutureUsage = 'none' | 'off_session'; } + interface Mobilepay { + /** + * Controls when the funds will be captured from the customer's account. + * + * If provided, this parameter will override the top-level `capture_method` 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 will unset 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. + * + * Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes. + * + * When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication). + * + * If `setup_future_usage` is already set and you are performing a request using a publishable key, you may only update the value from `on_session` to `off_session`. + */ + setup_future_usage?: 'none'; + } + interface Multibanco { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. diff --git a/types/PaymentMethods.d.ts b/types/PaymentMethods.d.ts index 50483b515f..2548574629 100644 --- a/types/PaymentMethods.d.ts +++ b/types/PaymentMethods.d.ts @@ -86,6 +86,8 @@ declare module 'stripe' { */ metadata: Stripe.Metadata | null; + mobilepay?: PaymentMethod.Mobilepay; + multibanco?: PaymentMethod.Multibanco; oxxo?: PaymentMethod.Oxxo; @@ -811,6 +813,8 @@ declare module 'stripe' { persistent_token?: string; } + interface Mobilepay {} + interface Multibanco {} interface Oxxo {} @@ -988,6 +992,7 @@ declare module 'stripe' { | 'klarna' | 'konbini' | 'link' + | 'mobilepay' | 'multibanco' | 'oxxo' | 'p24' diff --git a/types/PaymentMethodsResource.d.ts b/types/PaymentMethodsResource.d.ts index 60533b453f..bee6122f60 100644 --- a/types/PaymentMethodsResource.d.ts +++ b/types/PaymentMethodsResource.d.ts @@ -128,6 +128,11 @@ declare module 'stripe' { */ metadata?: Stripe.MetadataParam; + /** + * If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method. + */ + mobilepay?: PaymentMethodCreateParams.Mobilepay; + /** * If this is a `multibanco` PaymentMethod, this hash contains details about the Multibanco payment method. */ @@ -498,6 +503,8 @@ declare module 'stripe' { interface Link {} + interface Mobilepay {} + interface Multibanco {} interface Oxxo {} @@ -616,6 +623,7 @@ declare module 'stripe' { | 'klarna' | 'konbini' | 'link' + | 'mobilepay' | 'multibanco' | 'oxxo' | 'p24' @@ -845,6 +853,7 @@ declare module 'stripe' { | 'klarna' | 'konbini' | 'link' + | 'mobilepay' | 'multibanco' | 'oxxo' | 'p24' diff --git a/types/SetupIntentsResource.d.ts b/types/SetupIntentsResource.d.ts index c2e739a855..df51af6967 100644 --- a/types/SetupIntentsResource.d.ts +++ b/types/SetupIntentsResource.d.ts @@ -294,6 +294,11 @@ declare module 'stripe' { */ metadata?: Stripe.MetadataParam; + /** + * If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method. + */ + mobilepay?: PaymentMethodData.Mobilepay; + /** * If this is a `multibanco` PaymentMethod, this hash contains details about the Multibanco payment method. */ @@ -612,6 +617,8 @@ declare module 'stripe' { interface Link {} + interface Mobilepay {} + interface Multibanco {} interface Oxxo {} @@ -729,6 +736,7 @@ declare module 'stripe' { | 'klarna' | 'konbini' | 'link' + | 'mobilepay' | 'multibanco' | 'oxxo' | 'p24' @@ -1478,6 +1486,11 @@ declare module 'stripe' { */ metadata?: Stripe.MetadataParam; + /** + * If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method. + */ + mobilepay?: PaymentMethodData.Mobilepay; + /** * If this is a `multibanco` PaymentMethod, this hash contains details about the Multibanco payment method. */ @@ -1796,6 +1809,8 @@ declare module 'stripe' { interface Link {} + interface Mobilepay {} + interface Multibanco {} interface Oxxo {} @@ -1913,6 +1928,7 @@ declare module 'stripe' { | 'klarna' | 'konbini' | 'link' + | 'mobilepay' | 'multibanco' | 'oxxo' | 'p24' @@ -2749,6 +2765,11 @@ declare module 'stripe' { */ metadata?: Stripe.MetadataParam; + /** + * If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method. + */ + mobilepay?: PaymentMethodData.Mobilepay; + /** * If this is a `multibanco` PaymentMethod, this hash contains details about the Multibanco payment method. */ @@ -3067,6 +3088,8 @@ declare module 'stripe' { interface Link {} + interface Mobilepay {} + interface Multibanco {} interface Oxxo {} @@ -3184,6 +3207,7 @@ declare module 'stripe' { | 'klarna' | 'konbini' | 'link' + | 'mobilepay' | 'multibanco' | 'oxxo' | 'p24' diff --git a/types/TestHelpers/ConfirmationTokensResource.d.ts b/types/TestHelpers/ConfirmationTokensResource.d.ts index 3991909a55..a5c2353428 100644 --- a/types/TestHelpers/ConfirmationTokensResource.d.ts +++ b/types/TestHelpers/ConfirmationTokensResource.d.ts @@ -149,6 +149,11 @@ declare module 'stripe' { */ metadata?: Stripe.MetadataParam; + /** + * If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method. + */ + mobilepay?: PaymentMethodData.Mobilepay; + /** * If this is a `multibanco` PaymentMethod, this hash contains details about the Multibanco payment method. */ @@ -467,6 +472,8 @@ declare module 'stripe' { interface Link {} + interface Mobilepay {} + interface Multibanco {} interface Oxxo {} @@ -584,6 +591,7 @@ declare module 'stripe' { | 'klarna' | 'konbini' | 'link' + | 'mobilepay' | 'multibanco' | 'oxxo' | 'p24' From 47e20d8cef4f0702a55939f767eea2f917354cd7 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 21 Mar 2024 20:51:10 +0000 Subject: [PATCH 17/17] Update generated code for v896 --- OPENAPI_VERSION | 2 +- types/QuotesResource.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index da340eef42..62a99e0ea9 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v895 \ No newline at end of file +v896 \ No newline at end of file diff --git a/types/QuotesResource.d.ts b/types/QuotesResource.d.ts index 7e1f809a5d..305b1b7a46 100644 --- a/types/QuotesResource.d.ts +++ b/types/QuotesResource.d.ts @@ -3648,7 +3648,7 @@ declare module 'stripe' { ): Promise>; /** - * Download the PDF for a finalized quote + * Download the PDF for a finalized quote. Explanation for special handling can be found [here](https://docs.corp.stripe.com/quotes/overview#quote_pdf) */ pdf( id: string,