diff --git a/CHANGELOG.md b/CHANGELOG.md index c044ed0165..9faad8198e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,42 +11,45 @@ * Change `Dispute.enhanced_eligibility_types`, `Dispute.evidence.enhanced_evidence`, and `Dispute.evidence_details.enhanced_eligibility` to be required * Add support for `gopay`, `qris`, and `shopeepay` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, and `PaymentMethodConfiguration` +## 17.3.1 - 2024-11-01 +* [#2218](https://github.com/stripe/stripe-node/pull/2218) Fixed a bug where `latestapiversion` was not updated to `2024-10-28.acacia` in the last release. + ## 17.3.0 - 2024-10-29 -* [#2204](https://github.com/stripe/stripe-node/pull/2204) Update generated code - * Add support for new resource `V2.EventDestinations` - * Add support for `create`, `retrieve`, `update`, `list`, `del`, `disable`, `enable` and `ping` methods on resource `V2.EventDestinations` - * Add support for `submit_card` test helper method on resource `Issuing.Card` - * Add support for `groups` on `AccountCreateParams`, `AccountUpdateParams`, and `Account` - * Add support for `alma_payments`, `kakao_pay_payments`, `kr_card_payments`, `naver_pay_payments`, `payco_payments`, and `samsung_pay_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` - * Add support for `disable_stripe_user_authentication` on `AccountSession.components.account_management.features`, `AccountSession.components.account_onboarding.features`, `AccountSession.components.balances.features`, `AccountSession.components.notification_banner.features`, `AccountSession.components.payouts.features`, `AccountSessionCreateParams.components.account_management.features`, `AccountSessionCreateParams.components.account_onboarding.features`, `AccountSessionCreateParams.components.balances.features`, `AccountSessionCreateParams.components.notification_banner.features`, and `AccountSessionCreateParams.components.payouts.features` - * Add support for `schedule_at_period_end` on `BillingPortal.Configuration.features.subscription_update`, `BillingPortal.ConfigurationCreateParams.features.subscription_update`, and `BillingPortal.ConfigurationUpdateParams.features.subscription_update` - * Change `BillingPortal.ConfigurationCreateParams.business_profile` and `Refund.next_action.display_details` to be optional - * Add support for `alma` on `Charge.payment_method_details`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, `PaymentMethodConfiguration`, `PaymentMethodCreateParams`, `PaymentMethod`, `Refund.destination_details`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` - * Add support for `kakao_pay` and `kr_card` on `Charge.payment_method_details`, `Checkout.Session.payment_method_options`, `Checkout.SessionCreateParams.payment_method_options`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `Mandate.payment_method_details`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupAttempt.payment_method_details`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` - * Add support for `naver_pay` on `Charge.payment_method_details`, `Checkout.Session.payment_method_options`, `Checkout.SessionCreateParams.payment_method_options`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethodUpdateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` - * Add support for `payco` and `samsung_pay` on `Charge.payment_method_details`, `Checkout.Session.payment_method_options`, `Checkout.SessionCreateParams.payment_method_options`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` - * Add support for new values `alma`, `kakao_pay`, `kr_card`, `naver_pay`, `payco`, and `samsung_pay` on enums `Checkout.SessionCreateParams.payment_method_types[]`, `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type` - * Add support for new values `by_tin`, `ma_vat`, `md_vat`, `tz_vat`, `uz_tin`, and `uz_vat` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, `Tax.Calculation.customer_details.tax_ids[].type`, `Tax.Transaction.customer_details.tax_ids[].type`, and `TaxId.type` - * Add support for new values `alma`, `kakao_pay`, `kr_card`, `naver_pay`, `payco`, and `samsung_pay` on enums `ConfirmationTokenCreateParams.testHelpers.payment_method_data.type`, `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type` - * Add support for new values `alma`, `kakao_pay`, `kr_card`, `naver_pay`, `payco`, and `samsung_pay` on enums `ConfirmationToken.payment_method_preview.type` and `PaymentMethod.type` - * Add support for new value `auto` on enum `CustomerUpdateParams.tax.validate_location` - * Add support for new values `by_tin`, `ma_vat`, `md_vat`, `tz_vat`, `uz_tin`, and `uz_vat` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceCreatePreviewParams.customer_details.tax_ids[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `Tax.CalculationCreateParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type` - * Add support for `enhanced_evidence` on `Dispute.evidence` and `DisputeUpdateParams.evidence` - * Add support for `enhanced_eligibility_types` on `Dispute` - * Add support for `enhanced_eligibility` on `Dispute.evidence_details` - * Add support for new values `issuing_transaction.purchase_details_receipt_updated` and `refund.failed` on enum `Event.type` - * Add support for `metadata` on `Forwarding.RequestCreateParams` and `Forwarding.Request` - * Add support for `automatically_finalizes_at` on `InvoiceCreateParams` and `InvoiceUpdateParams` - * Add support for new values `jp_credit_transfer`, `kakao_pay`, `kr_card`, `naver_pay`, and `payco` on enums `Invoice.payment_settings.payment_method_types[]`, `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, `Subscription.payment_settings.payment_method_types[]`, `SubscriptionCreateParams.payment_settings.payment_method_types[]`, and `SubscriptionUpdateParams.payment_settings.payment_method_types[]` - * Add support for new value `retail_delivery_fee` on enums `InvoiceAddLinesParams.lines[].tax_amounts[].tax_rate_data.tax_type`, `InvoiceUpdateLinesParams.lines[].tax_amounts[].tax_rate_data.tax_type`, `Tax.Calculation.shipping_cost.tax_breakdown[].tax_rate_details.tax_type`, `Tax.Calculation.tax_breakdown[].tax_rate_details.tax_type`, `Tax.CalculationLineItem.tax_breakdown[].tax_rate_details.tax_type`, `Tax.Transaction.shipping_cost.tax_breakdown[].tax_rate_details.tax_type`, `TaxRate.tax_type`, `TaxRateCreateParams.tax_type`, and `TaxRateUpdateParams.tax_type` - * Add support for new value `alma` on enums `PaymentLink.payment_method_types[]`, `PaymentLinkCreateParams.payment_method_types[]`, and `PaymentLinkUpdateParams.payment_method_types[]` - * Add support for `amazon_pay` on `PaymentMethodDomain` - * Change type of `Refund.next_action.display_details` from `RefundNextActionDisplayDetails | null` to `RefundNextActionDisplayDetails` - * Add support for `flat_amount` and `rate_type` on `Tax.Calculation.tax_breakdown[].tax_rate_details` and `TaxRate` - * Add support for `by`, `cr`, `ec`, `ma`, `md`, `rs`, `ru`, `tz`, and `uz` on `Tax.Registration.country_options` and `Tax.RegistrationCreateParams.country_options` - * Add support for new value `state_retail_delivery_fee` on enums `Tax.Registration.country_options.us.type` and `Tax.RegistrationCreateParams.country_options.us.type` - * Add support for `pln` on `Terminal.Configuration.tipping`, `Terminal.ConfigurationCreateParams.tipping`, and `Terminal.ConfigurationUpdateParams.tipping` - * Add support for new values `issuing_transaction.purchase_details_receipt_updated` and `refund.failed` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` +* [#2204](https://github.com/stripe/stripe-node/pull/2204) This release changes the pinned API version to `2024-10-28.acacia`. + * Add support for new resource `V2.EventDestinations` + * Add support for `create`, `retrieve`, `update`, `list`, `del`, `disable`, `enable` and `ping` methods on resource `V2.EventDestinations` + * Add support for `submit_card` test helper method on resource `Issuing.Card` + * Add support for `groups` on `AccountCreateParams`, `AccountUpdateParams`, and `Account` + * Add support for `alma_payments`, `kakao_pay_payments`, `kr_card_payments`, `naver_pay_payments`, `payco_payments`, and `samsung_pay_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` + * Add support for `disable_stripe_user_authentication` on `AccountSession.components.account_management.features`, `AccountSession.components.account_onboarding.features`, `AccountSession.components.balances.features`, `AccountSession.components.notification_banner.features`, `AccountSession.components.payouts.features`, `AccountSessionCreateParams.components.account_management.features`, `AccountSessionCreateParams.components.account_onboarding.features`, `AccountSessionCreateParams.components.balances.features`, `AccountSessionCreateParams.components.notification_banner.features`, and `AccountSessionCreateParams.components.payouts.features` + * Add support for `schedule_at_period_end` on `BillingPortal.Configuration.features.subscription_update`, `BillingPortal.ConfigurationCreateParams.features.subscription_update`, and `BillingPortal.ConfigurationUpdateParams.features.subscription_update` + * Change `BillingPortal.ConfigurationCreateParams.business_profile` and `Refund.next_action.display_details` to be optional + * Add support for `alma` on `Charge.payment_method_details`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, `PaymentMethodConfiguration`, `PaymentMethodCreateParams`, `PaymentMethod`, `Refund.destination_details`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` + * Add support for `kakao_pay` and `kr_card` on `Charge.payment_method_details`, `Checkout.Session.payment_method_options`, `Checkout.SessionCreateParams.payment_method_options`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `Mandate.payment_method_details`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupAttempt.payment_method_details`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` + * Add support for `naver_pay` on `Charge.payment_method_details`, `Checkout.Session.payment_method_options`, `Checkout.SessionCreateParams.payment_method_options`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethodUpdateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` + * Add support for `payco` and `samsung_pay` on `Charge.payment_method_details`, `Checkout.Session.payment_method_options`, `Checkout.SessionCreateParams.payment_method_options`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` + * Add support for new values `alma`, `kakao_pay`, `kr_card`, `naver_pay`, `payco`, and `samsung_pay` on enums `Checkout.SessionCreateParams.payment_method_types[]`, `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type` + * Add support for new values `by_tin`, `ma_vat`, `md_vat`, `tz_vat`, `uz_tin`, and `uz_vat` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, `Tax.Calculation.customer_details.tax_ids[].type`, `Tax.Transaction.customer_details.tax_ids[].type`, and `TaxId.type` + * Add support for new values `alma`, `kakao_pay`, `kr_card`, `naver_pay`, `payco`, and `samsung_pay` on enums `ConfirmationTokenCreateParams.testHelpers.payment_method_data.type`, `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type` + * Add support for new values `alma`, `kakao_pay`, `kr_card`, `naver_pay`, `payco`, and `samsung_pay` on enums `ConfirmationToken.payment_method_preview.type` and `PaymentMethod.type` + * Add support for new value `auto` on enum `CustomerUpdateParams.tax.validate_location` + * Add support for new values `by_tin`, `ma_vat`, `md_vat`, `tz_vat`, `uz_tin`, and `uz_vat` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceCreatePreviewParams.customer_details.tax_ids[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `Tax.CalculationCreateParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type` + * Add support for `enhanced_evidence` on `Dispute.evidence` and `DisputeUpdateParams.evidence` + * Add support for `enhanced_eligibility_types` on `Dispute` + * Add support for `enhanced_eligibility` on `Dispute.evidence_details` + * Add support for new values `issuing_transaction.purchase_details_receipt_updated` and `refund.failed` on enum `Event.type` + * Add support for `metadata` on `Forwarding.RequestCreateParams` and `Forwarding.Request` + * Add support for `automatically_finalizes_at` on `InvoiceCreateParams` and `InvoiceUpdateParams` + * Add support for new values `jp_credit_transfer`, `kakao_pay`, `kr_card`, `naver_pay`, and `payco` on enums `Invoice.payment_settings.payment_method_types[]`, `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, `Subscription.payment_settings.payment_method_types[]`, `SubscriptionCreateParams.payment_settings.payment_method_types[]`, and `SubscriptionUpdateParams.payment_settings.payment_method_types[]` + * Add support for new value `retail_delivery_fee` on enums `InvoiceAddLinesParams.lines[].tax_amounts[].tax_rate_data.tax_type`, `InvoiceUpdateLinesParams.lines[].tax_amounts[].tax_rate_data.tax_type`, `Tax.Calculation.shipping_cost.tax_breakdown[].tax_rate_details.tax_type`, `Tax.Calculation.tax_breakdown[].tax_rate_details.tax_type`, `Tax.CalculationLineItem.tax_breakdown[].tax_rate_details.tax_type`, `Tax.Transaction.shipping_cost.tax_breakdown[].tax_rate_details.tax_type`, `TaxRate.tax_type`, `TaxRateCreateParams.tax_type`, and `TaxRateUpdateParams.tax_type` + * Add support for new value `alma` on enums `PaymentLink.payment_method_types[]`, `PaymentLinkCreateParams.payment_method_types[]`, and `PaymentLinkUpdateParams.payment_method_types[]` + * Add support for `amazon_pay` on `PaymentMethodDomain` + * Change type of `Refund.next_action.display_details` from `RefundNextActionDisplayDetails | null` to `RefundNextActionDisplayDetails` + * Add support for `flat_amount` and `rate_type` on `Tax.Calculation.tax_breakdown[].tax_rate_details` and `TaxRate` + * Add support for `by`, `cr`, `ec`, `ma`, `md`, `rs`, `ru`, `tz`, and `uz` on `Tax.Registration.country_options` and `Tax.RegistrationCreateParams.country_options` + * Add support for new value `state_retail_delivery_fee` on enums `Tax.Registration.country_options.us.type` and `Tax.RegistrationCreateParams.country_options.us.type` + * Add support for `pln` on `Terminal.Configuration.tipping`, `Terminal.ConfigurationCreateParams.tipping`, and `Terminal.ConfigurationUpdateParams.tipping` + * Add support for new values `issuing_transaction.purchase_details_receipt_updated` and `refund.failed` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` * Add support for new value `2024-10-28.acacia` on enum `WebhookEndpointCreateParams.api_version` ## 17.3.0-beta.1 - 2024-10-18 @@ -76,7 +79,7 @@ ## 17.2.1 - 2024-10-18 * [#2210](https://github.com/stripe/stripe-node/pull/2210) update object tags for meter-related classes - + - fixes a bug where the `object` property of the `MeterEvent`, `MeterEventAdjustment`, and `MeterEventSession` didn't match the server. * [#2208](https://github.com/stripe/stripe-node/pull/2208) Update signature verification docs link diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index c626f7dd81..b9cb5323fb 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1319 \ No newline at end of file +v1333 \ No newline at end of file diff --git a/examples/snippets/README.md b/examples/snippets/README.md index 05216ba79f..13a6732562 100644 --- a/examples/snippets/README.md +++ b/examples/snippets/README.md @@ -7,7 +7,7 @@ If on step 2 you see an error `Error: unsure how to copy this: /Users/jar/stripe run `rm /path/to/node/sdk/.git/fsmonitor--daemon.ipc && yarn` This file is used by a file monitor built into git. Removing it temporarily does not seem to affect its operation, and this one liner will let `yarn` succeed. -Note that if you modify the stripe-node code, you must delete your snippets `node_modules` folder and rerun these steps. +Note that if you modify the stripe-node code, rerun step 1 and then run `yarn upgrade stripe` from this folder to pull in the new built package. ## Running an example diff --git a/scripts/updateAPIVersion.js b/scripts/updateAPIVersion.js index f70683852e..20eeb9780c 100755 --- a/scripts/updateAPIVersion.js +++ b/scripts/updateAPIVersion.js @@ -8,7 +8,7 @@ const read = (file) => fs.readFileSync(path.resolve(file)).toString(); const write = (file, str) => fs.writeFileSync(path.resolve(file), str); const edit = (file, cb) => write(file, cb(read(file))); -const API_VERSION = '2[0-9][2-9][0-9]-[0-9]{2}-[0-9]{2}'; +const API_VERSION = '2[0-9][2-9][0-9]-[0-9]{2}-[0-9]{2}.[a-z]+'; const main = () => { const matches = [ @@ -36,9 +36,6 @@ const main = () => { ); }); - replaceAPIVersion('README.md', 'apiVersion: [\'"]API_VERSION[\'"]'); - replaceAPIVersion('package.json', '"types": "types/API_VERSION/index.d.ts'); - replaceAPIVersion( 'types/lib.d.ts', 'export type LatestApiVersion = [\'"]API_VERSION[\'"]' diff --git a/src/resources.ts b/src/resources.ts index 2983c28b6d..a0800e8967 100644 --- a/src/resources.ts +++ b/src/resources.ts @@ -26,18 +26,25 @@ import {DebitReversals as TreasuryDebitReversals} from './resources/Treasury/Deb import {DisputeSettlementDetails as IssuingDisputeSettlementDetails} from './resources/Issuing/DisputeSettlementDetails.js'; import {Disputes as IssuingDisputes} from './resources/Issuing/Disputes.js'; import {EarlyFraudWarnings as RadarEarlyFraudWarnings} from './resources/Radar/EarlyFraudWarnings.js'; +import {EventDestinations as V2CoreEventDestinations} from './resources/V2/Core/EventDestinations.js'; +import {Events as V2CoreEvents} from './resources/V2/Core/Events.js'; import {Features as EntitlementsFeatures} from './resources/Entitlements/Features.js'; import {FinancialAccounts as TreasuryFinancialAccounts} from './resources/Treasury/FinancialAccounts.js'; import {FinancingOffers as CapitalFinancingOffers} from './resources/Capital/FinancingOffers.js'; import {FinancingSummary as CapitalFinancingSummary} from './resources/Capital/FinancingSummary.js'; import {FinancingTransactions as CapitalFinancingTransactions} from './resources/Capital/FinancingTransactions.js'; import {Forms as TaxForms} from './resources/Tax/Forms.js'; +import {FraudLiabilityDebits as IssuingFraudLiabilityDebits} from './resources/Issuing/FraudLiabilityDebits.js'; import {InboundTransfers as TestHelpersTreasuryInboundTransfers} from './resources/TestHelpers/Treasury/InboundTransfers.js'; import {InboundTransfers as TreasuryInboundTransfers} from './resources/Treasury/InboundTransfers.js'; import {Institutions as FinancialConnectionsInstitutions} from './resources/FinancialConnections/Institutions.js'; import {Locations as TerminalLocations} from './resources/Terminal/Locations.js'; import {MeterEventAdjustments as BillingMeterEventAdjustments} from './resources/Billing/MeterEventAdjustments.js'; +import {MeterEventAdjustments as V2BillingMeterEventAdjustments} from './resources/V2/Billing/MeterEventAdjustments.js'; +import {MeterEventSession as V2BillingMeterEventSession} from './resources/V2/Billing/MeterEventSession.js'; +import {MeterEventStream as V2BillingMeterEventStream} from './resources/V2/Billing/MeterEventStream.js'; import {MeterEvents as BillingMeterEvents} from './resources/Billing/MeterEvents.js'; +import {MeterEvents as V2BillingMeterEvents} from './resources/V2/Billing/MeterEvents.js'; import {Meters as BillingMeters} from './resources/Billing/Meters.js'; import {Orders as ClimateOrders} from './resources/Climate/Orders.js'; import {OutboundPayments as TestHelpersTreasuryOutboundPayments} from './resources/TestHelpers/Treasury/OutboundPayments.js'; @@ -109,11 +116,13 @@ export {Mandates} from './resources/Mandates.js'; export {Margins} from './resources/Margins.js'; export {OAuth} from './resources/OAuth.js'; export {Orders} from './resources/Orders.js'; +export {PaymentAttemptRecords} from './resources/PaymentAttemptRecords.js'; export {PaymentIntents} from './resources/PaymentIntents.js'; export {PaymentLinks} from './resources/PaymentLinks.js'; export {PaymentMethodConfigurations} from './resources/PaymentMethodConfigurations.js'; export {PaymentMethodDomains} from './resources/PaymentMethodDomains.js'; export {PaymentMethods} from './resources/PaymentMethods.js'; +export {PaymentRecords} from './resources/PaymentRecords.js'; export {Payouts} from './resources/Payouts.js'; export {Plans} from './resources/Plans.js'; export {Prices} from './resources/Prices.js'; @@ -135,7 +144,6 @@ export {TaxRates} from './resources/TaxRates.js'; export {Tokens} from './resources/Tokens.js'; export {Topups} from './resources/Topups.js'; export {Transfers} from './resources/Transfers.js'; -export {V2} from './resources/V2.js'; export {WebhookEndpoints} from './resources/WebhookEndpoints.js'; export const Apps = resourceNamespace('apps', {Secrets: AppsSecrets}); export const Billing = resourceNamespace('billing', { @@ -192,6 +200,7 @@ export const Issuing = resourceNamespace('issuing', { CreditUnderwritingRecords: IssuingCreditUnderwritingRecords, DisputeSettlementDetails: IssuingDisputeSettlementDetails, Disputes: IssuingDisputes, + FraudLiabilityDebits: IssuingFraudLiabilityDebits, PersonalizationDesigns: IssuingPersonalizationDesigns, PhysicalBundles: IssuingPhysicalBundles, Tokens: IssuingTokens, @@ -258,3 +267,15 @@ export const Treasury = resourceNamespace('treasury', { TransactionEntries: TreasuryTransactionEntries, Transactions: TreasuryTransactions, }); +export const V2 = resourceNamespace('v2', { + Billing: resourceNamespace('billing', { + MeterEventAdjustments: V2BillingMeterEventAdjustments, + MeterEventSession: V2BillingMeterEventSession, + MeterEventStream: V2BillingMeterEventStream, + MeterEvents: V2BillingMeterEvents, + }), + Core: resourceNamespace('core', { + EventDestinations: V2CoreEventDestinations, + Events: V2CoreEvents, + }), +}); diff --git a/src/resources/Issuing/FraudLiabilityDebits.ts b/src/resources/Issuing/FraudLiabilityDebits.ts new file mode 100644 index 0000000000..9fca956a35 --- /dev/null +++ b/src/resources/Issuing/FraudLiabilityDebits.ts @@ -0,0 +1,15 @@ +// File generated from our OpenAPI spec + +import {StripeResource} from '../../StripeResource.js'; +const stripeMethod = StripeResource.method; +export const FraudLiabilityDebits = StripeResource.extend({ + retrieve: stripeMethod({ + method: 'GET', + fullPath: '/v1/issuing/fraud_liability_debits/{fraud_liability_debit}', + }), + list: stripeMethod({ + method: 'GET', + fullPath: '/v1/issuing/fraud_liability_debits', + methodType: 'list', + }), +}); diff --git a/src/resources/PaymentAttemptRecords.ts b/src/resources/PaymentAttemptRecords.ts new file mode 100644 index 0000000000..28dd2bc745 --- /dev/null +++ b/src/resources/PaymentAttemptRecords.ts @@ -0,0 +1,15 @@ +// File generated from our OpenAPI spec + +import {StripeResource} from '../StripeResource.js'; +const stripeMethod = StripeResource.method; +export const PaymentAttemptRecords = StripeResource.extend({ + retrieve: stripeMethod({ + method: 'GET', + fullPath: '/v1/payment_attempt_records/{id}', + }), + list: stripeMethod({ + method: 'GET', + fullPath: '/v1/payment_attempt_records', + methodType: 'list', + }), +}); diff --git a/src/resources/PaymentRecords.ts b/src/resources/PaymentRecords.ts new file mode 100644 index 0000000000..1655935ea6 --- /dev/null +++ b/src/resources/PaymentRecords.ts @@ -0,0 +1,27 @@ +// File generated from our OpenAPI spec + +import {StripeResource} from '../StripeResource.js'; +const stripeMethod = StripeResource.method; +export const PaymentRecords = StripeResource.extend({ + retrieve: stripeMethod({method: 'GET', fullPath: '/v1/payment_records/{id}'}), + reportPayment: stripeMethod({ + method: 'POST', + fullPath: '/v1/payment_records/report_payment', + }), + reportPaymentAttempt: stripeMethod({ + method: 'POST', + fullPath: '/v1/payment_records/{id}/report_payment_attempt', + }), + reportPaymentAttemptCanceled: stripeMethod({ + method: 'POST', + fullPath: '/v1/payment_records/{id}/report_payment_attempt_canceled', + }), + reportPaymentAttemptFailed: stripeMethod({ + method: 'POST', + fullPath: '/v1/payment_records/{id}/report_payment_attempt_failed', + }), + reportPaymentAttemptGuaranteed: stripeMethod({ + method: 'POST', + fullPath: '/v1/payment_records/{id}/report_payment_attempt_guaranteed', + }), +}); diff --git a/src/resources/V2.ts b/src/resources/V2.ts deleted file mode 100644 index c8ad50c2e0..0000000000 --- a/src/resources/V2.ts +++ /dev/null @@ -1,12 +0,0 @@ -// File generated from our OpenAPI spec - -import {StripeResource} from '../StripeResource.js'; -import {Billing} from './V2/Billing.js'; -import {Core} from './V2/Core.js'; -export const V2 = StripeResource.extend({ - constructor: function(...args: any) { - StripeResource.apply(this, args); - this.billing = new Billing(...args); - this.core = new Core(...args); - }, -}); diff --git a/src/resources/V2/Billing.ts b/src/resources/V2/Billing.ts deleted file mode 100644 index 752a0d3a10..0000000000 --- a/src/resources/V2/Billing.ts +++ /dev/null @@ -1,16 +0,0 @@ -// File generated from our OpenAPI spec - -import {StripeResource} from '../../StripeResource.js'; -import {MeterEventSession} from './Billing/MeterEventSession.js'; -import {MeterEventAdjustments} from './Billing/MeterEventAdjustments.js'; -import {MeterEventStream} from './Billing/MeterEventStream.js'; -import {MeterEvents} from './Billing/MeterEvents.js'; -export const Billing = StripeResource.extend({ - constructor: function(...args: any) { - StripeResource.apply(this, args); - this.meterEventSession = new MeterEventSession(...args); - this.meterEventAdjustments = new MeterEventAdjustments(...args); - this.meterEventStream = new MeterEventStream(...args); - this.meterEvents = new MeterEvents(...args); - }, -}); diff --git a/src/resources/V2/Core.ts b/src/resources/V2/Core.ts deleted file mode 100644 index 10210e8ed1..0000000000 --- a/src/resources/V2/Core.ts +++ /dev/null @@ -1,12 +0,0 @@ -// File generated from our OpenAPI spec - -import {StripeResource} from '../../StripeResource.js'; -import {EventDestinations} from './Core/EventDestinations.js'; -import {Events} from './Core/Events.js'; -export const Core = StripeResource.extend({ - constructor: function(...args: any) { - StripeResource.apply(this, args); - this.eventDestinations = new EventDestinations(...args); - this.events = new Events(...args); - }, -}); diff --git a/test/resources/generated_examples_test.spec.js b/test/resources/generated_examples_test.spec.js index 323e17b183..408cad7e70 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","alma_payments":"pending","amazon_pay_payments":"inactive","au_becs_debit_payments":"active","bacs_debit_payments":"active","bancontact_payments":"inactive","bank_transfer_payments":"pending","blik_payments":"inactive","boleto_payments":"inactive","card_issuing":"active","card_payments":"active","cartes_bancaires_payments":"active","cashapp_payments":"active","eps_payments":"inactive","fpx_payments":"active","gb_bank_transfer_payments":"pending","giropay_payments":"active","gopay_payments":"active","grabpay_payments":"pending","id_bank_transfer_payments":"pending","id_bank_transfer_payments_bca":"active","ideal_payments":"inactive","india_international_payments":"inactive","jcb_payments":"inactive","jp_bank_transfer_payments":"pending","kakao_pay_payments":"active","klarna_payments":"active","konbini_payments":"active","kr_card_payments":"inactive","legacy_payments":"active","link_payments":"inactive","mb_way_payments":"active","mobilepay_payments":"pending","multibanco_payments":"inactive","mx_bank_transfer_payments":"pending","naver_pay_payments":"active","oxxo_payments":"pending","p24_payments":"inactive","payco_payments":"inactive","paynow_payments":"active","paypal_payments":"inactive","payto_payments":"pending","promptpay_payments":"active","qris_payments":"pending","rechnung_payments":"inactive","revolut_pay_payments":"inactive","samsung_pay_payments":"pending","sepa_bank_transfer_payments":"pending","sepa_debit_payments":"inactive","shopeepay_payments":"active","sofort_payments":"active","swish_payments":"inactive","tax_reporting_us_1099_k":"inactive","tax_reporting_us_1099_misc":"pending","transfers":"inactive","treasury":"pending","treasury_evolve":"inactive","treasury_fifth_third":"inactive","treasury_goldman_sachs":"active","twint_payments":"inactive","us_bank_account_ach_payments":"pending","us_bank_transfer_payments":"pending","zip_payments":"pending"},"charges_enabled":true,"company":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"address_kana":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"address_kanji":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"directors_provided":true,"executives_provided":true,"export_license_id":"export_license_id","export_purpose_code":"export_purpose_code","name":"name","name_kana":"name_kana","name_kanji":"name_kanji","owners_provided":true,"ownership_declaration":{"date":"3076014","ip":"ip","user_agent":"user_agent"},"phone":"phone","structure":"single_member_llc","tax_id_provided":true,"tax_id_registrar":"tax_id_registrar","vat_id_provided":true,"verification":{"document":{"back":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"business_icon","size":3530753,"title":"title","type":"type","url":"url"},"details":"details","details_code":"details_code","front":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"business_icon","size":3530753,"title":"title","type":"type","url":"url"}}}},"controller":{"application":{"loss_liable":true,"onboarding_owner":true,"pricing_controls":true},"dashboard":{"type":"express"},"fees":{"payer":"account"},"is_controller":true,"losses":{"payments":"stripe"},"requirement_collection":"application","stripe_dashboard":{"type":"express"},"type":"account"},"country":"country","created":"1028554472","default_currency":"default_currency","details_submitted":true,"email":"email","external_accounts":null,"future_requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"current_deadline":"270965154","currently_due":["currently_due"],"disabled_reason":"disabled_reason","errors":[{"code":"verification_failed_residential_address","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"groups":{"payments_pricing":"payments_pricing"},"id":"obj_123","individual":{"account":"account","additional_tos_acceptances":{"account":{"date":"3076014","ip":"ip","user_agent":"user_agent"}},"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"address_kana":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"address_kanji":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"created":"1028554472","dob":{"day":99228,"month":104080000,"year":3704893},"email":"email","first_name":"first_name","first_name_kana":"first_name_kana","first_name_kanji":"first_name_kanji","full_name_aliases":["full_name_aliases"],"future_requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"currently_due":["currently_due"],"errors":[{"code":"verification_failed_residential_address","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"gender":"gender","id":"obj_123","id_number_provided":true,"id_number_secondary_provided":true,"last_name":"last_name","last_name_kana":"last_name_kana","last_name_kanji":"last_name_kanji","maiden_name":"maiden_name","metadata":{"undefined":"metadata"},"nationality":"nationality","object":"person","phone":"phone","political_exposure":"none","registered_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"relationship":{"director":true,"executive":true,"legal_guardian":true,"owner":true,"percent_ownership":760989685,"representative":true,"title":"title"},"requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"currently_due":["currently_due"],"errors":[{"code":"verification_failed_residential_address","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"ssn_last_4_provided":true,"verification":{"additional_document":{"back":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"business_icon","size":3530753,"title":"title","type":"type","url":"url"},"details":"details","details_code":"details_code","front":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"business_icon","size":3530753,"title":"title","type":"type","url":"url"}},"details":"details","details_code":"details_code","document":{"back":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"business_icon","size":3530753,"title":"title","type":"type","url":"url"},"details":"details","details_code":"details_code","front":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"business_icon","size":3530753,"title":"title","type":"type","url":"url"}},"status":"status"}},"metadata":{"undefined":"metadata"},"object":"account","payouts_enabled":true,"requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"current_deadline":"270965154","currently_due":["currently_due"],"disabled_reason":"disabled_reason","errors":[{"code":"verification_failed_residential_address","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"risk_controls":{"charges":{"pause_requested":true},"payouts":{"pause_requested":true}},"settings":{"bacs_debit_payments":{"display_name":"display_name","service_user_number":"service_user_number"},"bank_bca_onboarding":{"account_holder_name":"account_holder_name","business_account_number":"business_account_number"},"branding":{"icon":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"business_icon","size":3530753,"title":"title","type":"type","url":"url"},"logo":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"business_icon","size":3530753,"title":"title","type":"type","url":"url"},"primary_color":"primary_color","secondary_color":"secondary_color"},"capital":{"payout_destination":{"undefined":"payout_destination"},"payout_destination_selector":{"undefined":["payout_destination_selector"]}},"card_issuing":{"tos_acceptance":{"date":"3076014","ip":"ip","user_agent":"user_agent"}},"card_payments":{"decline_on":{"avs_failure":true,"cvc_failure":true},"statement_descriptor_prefix":"statement_descriptor_prefix","statement_descriptor_prefix_kana":"statement_descriptor_prefix_kana","statement_descriptor_prefix_kanji":"statement_descriptor_prefix_kanji"},"dashboard":{"display_name":"display_name","timezone":"timezone"},"invoices":{"default_account_tax_ids":[{"country":"country","created":"1028554472","customer":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"balance":339185956,"cash_balance":{"available":{"undefined":733902135},"customer":"customer","livemode":true,"object":"cash_balance","settings":{"reconciliation_mode":"manual","using_merchant_default":true}},"created":"1028554472","currency":"currency","default_source":null,"delinquent":true,"description":"description","discount":{"checkout_session":"checkout_session","coupon":null,"customer":null,"end":"100571","id":"obj_123","invoice":"invoice","invoice_item":"invoice_item","object":"discount","promotion_code":null,"start":"109757538","subscription":"subscription","subscription_item":"subscription_item"},"email":"email","id":"obj_123","invoice_credit_balance":{"undefined":1267696360},"invoice_prefix":"invoice_prefix","invoice_settings":{"custom_fields":[{"name":"name","value":"value"}],"default_payment_method":{"acss_debit":{"bank_name":"bank_name","fingerprint":"fingerprint","institution_number":"institution_number","last4":"last4","transit_number":"transit_number"},"affirm":{},"afterpay_clearpay":{},"alipay":{},"allow_redisplay":"unspecified","alma":{},"amazon_pay":{},"au_becs_debit":{"bsb_number":"bsb_number","fingerprint":"fingerprint","last4":"last4"},"bacs_debit":{"fingerprint":"fingerprint","last4":"last4","sort_code":"sort_code"},"bancontact":{},"billing_details":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","phone":"phone"},"blik":{},"boleto":{"tax_id":"tax_id"},"card":{"brand":"brand","checks":{"address_line1_check":"address_line1_check","address_postal_code_check":"address_postal_code_check","cvc_check":"cvc_check"},"country":"country","description":"description","display_brand":"display_brand","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","generated_from":{"charge":"charge","payment_method_details":{"card_present":{"amount_authorized":1406151710,"brand":"brand","brand_product":"brand_product","capture_before":"2079401320","cardholder_name":"cardholder_name","country":"country","description":"description","emv_auth_data":"emv_auth_data","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","generated_card":"generated_card","iin":"iin","incremental_authorization_supported":true,"issuer":"issuer","last4":"last4","network":"network","network_transaction_id":"network_transaction_id","offline":{"stored_at":"1692436047","type":"deferred"},"overcapture_supported":true,"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2","receipt":{"account_type":"checking","application_cryptogram":"application_cryptogram","application_preferred_name":"application_preferred_name","authorization_code":"authorization_code","authorization_response_code":"authorization_response_code","cardholder_verification_method":"cardholder_verification_method","dedicated_file_name":"dedicated_file_name","terminal_verification_results":"terminal_verification_results","transaction_status_information":"transaction_status_information"},"wallet":{"type":"samsung_pay"}},"type":"type"},"setup_attempt":null},"iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"three_d_secure_usage":{"supported":true},"wallet":{"amex_express_checkout":{},"apple_pay":{},"dynamic_last4":"dynamic_last4","google_pay":{},"link":{},"masterpass":{"billing_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","shipping_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"}},"samsung_pay":{},"type":"link","visa_checkout":{"billing_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","shipping_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"}}}},"card_present":{"brand":"brand","brand_product":"brand_product","cardholder_name":"cardholder_name","country":"country","description":"description","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"offline":{"stored_at":"1692436047","type":"deferred"},"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2","wallet":{"type":"samsung_pay"}},"cashapp":{"buyer_id":"buyer_id","cashtag":"cashtag"},"created":"1028554472","customer":null,"customer_balance":{},"eps":{"bank":"btv_vier_lander_bank"},"fpx":{"account_holder_type":"individual","bank":"bsn"},"giropay":{},"gopay":{},"grabpay":{},"id":"obj_123","id_bank_transfer":{"bank":"bri","bank_code":"bank_code","bank_name":"bank_name","display_name":"display_name"},"ideal":{"bank":"sns_bank","bic":"BUNQNL2A"},"interac_present":{"brand":"brand","cardholder_name":"cardholder_name","country":"country","description":"description","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2"},"kakao_pay":{},"klarna":{"dob":{"day":99228,"month":104080000,"year":3704893}},"konbini":{},"kr_card":{"brand":"lotte","last4":"last4"},"link":{"email":"email","persistent_token":"persistent_token"},"livemode":true,"mb_way":{},"metadata":{"undefined":"metadata"},"mobilepay":{},"multibanco":{},"naver_pay":{"funding":"points"},"object":"payment_method","oxxo":{},"p24":{"bank":"noble_pay"},"payco":{},"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":{},"qris":{},"radar_options":{"session":"session"},"rechnung":{"dob":{"day":99228,"month":104080000,"year":3704893}},"revolut_pay":{},"samsung_pay":{},"sepa_debit":{"bank_code":"bank_code","branch_code":"branch_code","country":"country","fingerprint":"fingerprint","generated_from":{"charge":null,"setup_attempt":null},"last4":"last4"},"shopeepay":{},"sofort":{"country":"country"},"swish":{},"twint":{},"type":"pix","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","template":"template"}},"livemode":true,"metadata":{"undefined":"metadata"},"name":"name","next_invoice_sequence":1356358751,"object":"customer","phone":"phone","preferred_locales":["preferred_locales"],"shipping":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"carrier":"carrier","name":"name","phone":"phone","tracking_number":"tracking_number"},"sources":null,"subscriptions":null,"tax":{"automatic_tax":"unrecognized_location","ip_address":"ip_address","location":{"country":"country","source":"ip_address","state":"state"}},"tax_exempt":"reverse","tax_ids":null,"test_clock":{"created":"1028554472","deletes_after":"73213179","frozen_time":"2033541876","id":"obj_123","livemode":true,"name":"name","object":"test_helpers.test_clock","status":"advancing","status_details":{"advancing":{"target_frozen_time":"833971362"}}}},"id":"obj_123","livemode":true,"object":"tax_id","owner":{"account":{"business_profile":{"annual_revenue":{"amount":1413853096,"currency":"currency","fiscal_year_end":"fiscal_year_end"},"estimated_worker_count":884794319,"mcc":"mcc","monthly_estimated_revenue":{"amount":1413853096,"currency":"currency"},"name":"name","product_description":"product_description","support_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"support_email":"support_email","support_phone":"support_phone","support_url":"support_url","url":"url"},"business_type":"government_entity","capabilities":{"acss_debit_payments":"inactive","affirm_payments":"pending","afterpay_clearpay_payments":"inactive","alma_payments":"pending","amazon_pay_payments":"inactive","au_becs_debit_payments":"active","bacs_debit_payments":"active","bancontact_payments":"inactive","bank_transfer_payments":"pending","blik_payments":"inactive","boleto_payments":"inactive","card_issuing":"active","card_payments":"active","cartes_bancaires_payments":"active","cashapp_payments":"active","eps_payments":"inactive","fpx_payments":"active","gb_bank_transfer_payments":"pending","giropay_payments":"active","gopay_payments":"active","grabpay_payments":"pending","id_bank_transfer_payments":"pending","id_bank_transfer_payments_bca":"active","ideal_payments":"inactive","india_international_payments":"inactive","jcb_payments":"inactive","jp_bank_transfer_payments":"pending","kakao_pay_payments":"active","klarna_payments":"active","konbini_payments":"active","kr_card_payments":"inactive","legacy_payments":"active","link_payments":"inactive","mb_way_payments":"active","mobilepay_payments":"pending","multibanco_payments":"inactive","mx_bank_transfer_payments":"pending","naver_pay_payments":"active","oxxo_payments":"pending","p24_payments":"inactive","payco_payments":"inactive","paynow_payments":"active","paypal_payments":"inactive","payto_payments":"pending","promptpay_payments":"active","qris_payments":"pending","rechnung_payments":"inactive","revolut_pay_payments":"inactive","samsung_pay_payments":"pending","sepa_bank_transfer_payments":"pending","sepa_debit_payments":"inactive","shopeepay_payments":"active","sofort_payments":"active","swish_payments":"inactive","tax_reporting_us_1099_k":"inactive","tax_reporting_us_1099_misc":"pending","transfers":"inactive","treasury":"pending","treasury_evolve":"inactive","treasury_fifth_third":"inactive","treasury_goldman_sachs":"active","twint_payments":"inactive","us_bank_account_ach_payments":"pending","us_bank_transfer_payments":"pending","zip_payments":"pending"},"charges_enabled":true,"company":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"address_kana":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"address_kanji":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"directors_provided":true,"executives_provided":true,"export_license_id":"export_license_id","export_purpose_code":"export_purpose_code","name":"name","name_kana":"name_kana","name_kanji":"name_kanji","owners_provided":true,"ownership_declaration":{"date":"3076014","ip":"ip","user_agent":"user_agent"},"phone":"phone","structure":"single_member_llc","tax_id_provided":true,"tax_id_registrar":"tax_id_registrar","vat_id_provided":true,"verification":{"document":{"back":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"business_icon","size":3530753,"title":"title","type":"type","url":"url"},"details":"details","details_code":"details_code","front":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"business_icon","size":3530753,"title":"title","type":"type","url":"url"}}}},"controller":{"application":{"loss_liable":true,"onboarding_owner":true,"pricing_controls":true},"dashboard":{"type":"express"},"fees":{"payer":"account"},"is_controller":true,"losses":{"payments":"stripe"},"requirement_collection":"application","stripe_dashboard":{"type":"express"},"type":"account"},"country":"country","created":"1028554472","default_currency":"default_currency","details_submitted":true,"email":"email","external_accounts":null,"future_requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"current_deadline":"270965154","currently_due":["currently_due"],"disabled_reason":"disabled_reason","errors":[{"code":"verification_failed_residential_address","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"groups":{"payments_pricing":"payments_pricing"},"id":"obj_123","individual":{"account":"account","additional_tos_acceptances":{"account":{"date":"3076014","ip":"ip","user_agent":"user_agent"}},"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"address_kana":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"address_kanji":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"created":"1028554472","dob":{"day":99228,"month":104080000,"year":3704893},"email":"email","first_name":"first_name","first_name_kana":"first_name_kana","first_name_kanji":"first_name_kanji","full_name_aliases":["full_name_aliases"],"future_requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"currently_due":["currently_due"],"errors":[{"code":"verification_failed_residential_address","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"gender":"gender","id":"obj_123","id_number_provided":true,"id_number_secondary_provided":true,"last_name":"last_name","last_name_kana":"last_name_kana","last_name_kanji":"last_name_kanji","maiden_name":"maiden_name","metadata":{"undefined":"metadata"},"nationality":"nationality","object":"person","phone":"phone","political_exposure":"none","registered_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"relationship":{"director":true,"executive":true,"legal_guardian":true,"owner":true,"percent_ownership":760989685,"representative":true,"title":"title"},"requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"currently_due":["currently_due"],"errors":[{"code":"verification_failed_residential_address","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"ssn_last_4_provided":true,"verification":{"additional_document":{"back":null,"details":"details","details_code":"details_code","front":null},"details":"details","details_code":"details_code","document":{"back":null,"details":"details","details_code":"details_code","front":null},"status":"status"}},"metadata":{"undefined":"metadata"},"object":"account","payouts_enabled":true,"requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"current_deadline":"270965154","currently_due":["currently_due"],"disabled_reason":"disabled_reason","errors":[{"code":"verification_failed_residential_address","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"risk_controls":{"charges":{"pause_requested":true},"payouts":{"pause_requested":true}},"settings":{"bacs_debit_payments":{"display_name":"display_name","service_user_number":"service_user_number"},"bank_bca_onboarding":{"account_holder_name":"account_holder_name","business_account_number":"business_account_number"},"branding":{"icon":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"business_icon","size":3530753,"title":"title","type":"type","url":"url"},"logo":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"business_icon","size":3530753,"title":"title","type":"type","url":"url"},"primary_color":"primary_color","secondary_color":"secondary_color"},"capital":{"payout_destination":{"undefined":"payout_destination"},"payout_destination_selector":{"undefined":["payout_destination_selector"]}},"card_issuing":{"tos_acceptance":{"date":"3076014","ip":"ip","user_agent":"user_agent"}},"card_payments":{"decline_on":{"avs_failure":true,"cvc_failure":true},"statement_descriptor_prefix":"statement_descriptor_prefix","statement_descriptor_prefix_kana":"statement_descriptor_prefix_kana","statement_descriptor_prefix_kanji":"statement_descriptor_prefix_kanji"},"dashboard":{"display_name":"display_name","timezone":"timezone"},"invoices":{"default_account_tax_ids":[{"country":"country","created":"1028554472","customer":null,"id":"obj_123","livemode":true,"object":"tax_id","owner":{"account":null,"application":null,"customer":null,"type":"customer"},"type":"es_cif","value":"value","verification":{"status":"unverified","verified_address":"verified_address","verified_name":"verified_name"}}]},"payments":{"statement_descriptor":"statement_descriptor","statement_descriptor_kana":"statement_descriptor_kana","statement_descriptor_kanji":"statement_descriptor_kanji","statement_descriptor_prefix_kana":"statement_descriptor_prefix_kana","statement_descriptor_prefix_kanji":"statement_descriptor_prefix_kanji"},"payouts":{"debit_negative_balances":true,"schedule":{"delay_days":1647351405,"interval":"interval","monthly_anchor":1920305369,"weekly_anchor":"weekly_anchor"},"statement_descriptor":"statement_descriptor"},"sepa_debit_payments":{"creditor_id":"creditor_id"},"tax_forms":{"consented_to_paperless_delivery":true},"treasury":{"tos_acceptance":{"date":"3076014","ip":"ip","user_agent":"user_agent"}}},"tos_acceptance":{"date":"3076014","ip":"ip","service_agreement":"service_agreement","user_agent":"user_agent"},"type":"none"},"application":{"id":"obj_123","name":"name","object":"application"},"customer":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"balance":339185956,"cash_balance":{"available":{"undefined":733902135},"customer":"customer","livemode":true,"object":"cash_balance","settings":{"reconciliation_mode":"manual","using_merchant_default":true}},"created":"1028554472","currency":"currency","default_source":null,"delinquent":true,"description":"description","discount":{"checkout_session":"checkout_session","coupon":null,"customer":null,"end":"100571","id":"obj_123","invoice":"invoice","invoice_item":"invoice_item","object":"discount","promotion_code":null,"start":"109757538","subscription":"subscription","subscription_item":"subscription_item"},"email":"email","id":"obj_123","invoice_credit_balance":{"undefined":1267696360},"invoice_prefix":"invoice_prefix","invoice_settings":{"custom_fields":[{"name":"name","value":"value"}],"default_payment_method":{"acss_debit":{"bank_name":"bank_name","fingerprint":"fingerprint","institution_number":"institution_number","last4":"last4","transit_number":"transit_number"},"affirm":{},"afterpay_clearpay":{},"alipay":{},"allow_redisplay":"unspecified","alma":{},"amazon_pay":{},"au_becs_debit":{"bsb_number":"bsb_number","fingerprint":"fingerprint","last4":"last4"},"bacs_debit":{"fingerprint":"fingerprint","last4":"last4","sort_code":"sort_code"},"bancontact":{},"billing_details":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","phone":"phone"},"blik":{},"boleto":{"tax_id":"tax_id"},"card":{"brand":"brand","checks":{"address_line1_check":"address_line1_check","address_postal_code_check":"address_postal_code_check","cvc_check":"cvc_check"},"country":"country","description":"description","display_brand":"display_brand","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","generated_from":{"charge":"charge","payment_method_details":{"card_present":{"amount_authorized":1406151710,"brand":"brand","brand_product":"brand_product","capture_before":"2079401320","cardholder_name":"cardholder_name","country":"country","description":"description","emv_auth_data":"emv_auth_data","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","generated_card":"generated_card","iin":"iin","incremental_authorization_supported":true,"issuer":"issuer","last4":"last4","network":"network","network_transaction_id":"network_transaction_id","offline":{"stored_at":"1692436047","type":"deferred"},"overcapture_supported":true,"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2","receipt":{"account_type":"checking","application_cryptogram":"application_cryptogram","application_preferred_name":"application_preferred_name","authorization_code":"authorization_code","authorization_response_code":"authorization_response_code","cardholder_verification_method":"cardholder_verification_method","dedicated_file_name":"dedicated_file_name","terminal_verification_results":"terminal_verification_results","transaction_status_information":"transaction_status_information"},"wallet":{"type":"samsung_pay"}},"type":"type"},"setup_attempt":null},"iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"three_d_secure_usage":{"supported":true},"wallet":{"amex_express_checkout":{},"apple_pay":{},"dynamic_last4":"dynamic_last4","google_pay":{},"link":{},"masterpass":{"billing_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","shipping_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"}},"samsung_pay":{},"type":"link","visa_checkout":{"billing_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","shipping_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"}}}},"card_present":{"brand":"brand","brand_product":"brand_product","cardholder_name":"cardholder_name","country":"country","description":"description","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"offline":{"stored_at":"1692436047","type":"deferred"},"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2","wallet":{"type":"samsung_pay"}},"cashapp":{"buyer_id":"buyer_id","cashtag":"cashtag"},"created":"1028554472","customer":null,"customer_balance":{},"eps":{"bank":"btv_vier_lander_bank"},"fpx":{"account_holder_type":"individual","bank":"bsn"},"giropay":{},"gopay":{},"grabpay":{},"id":"obj_123","id_bank_transfer":{"bank":"bri","bank_code":"bank_code","bank_name":"bank_name","display_name":"display_name"},"ideal":{"bank":"sns_bank","bic":"BUNQNL2A"},"interac_present":{"brand":"brand","cardholder_name":"cardholder_name","country":"country","description":"description","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2"},"kakao_pay":{},"klarna":{"dob":{"day":99228,"month":104080000,"year":3704893}},"konbini":{},"kr_card":{"brand":"lotte","last4":"last4"},"link":{"email":"email","persistent_token":"persistent_token"},"livemode":true,"mb_way":{},"metadata":{"undefined":"metadata"},"mobilepay":{},"multibanco":{},"naver_pay":{"funding":"points"},"object":"payment_method","oxxo":{},"p24":{"bank":"noble_pay"},"payco":{},"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":{},"qris":{},"radar_options":{"session":"session"},"rechnung":{"dob":{"day":99228,"month":104080000,"year":3704893}},"revolut_pay":{},"samsung_pay":{},"sepa_debit":{"bank_code":"bank_code","branch_code":"branch_code","country":"country","fingerprint":"fingerprint","generated_from":{"charge":null,"setup_attempt":null},"last4":"last4"},"shopeepay":{},"sofort":{"country":"country"},"swish":{},"twint":{},"type":"pix","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","template":"template"}},"livemode":true,"metadata":{"undefined":"metadata"},"name":"name","next_invoice_sequence":1356358751,"object":"customer","phone":"phone","preferred_locales":["preferred_locales"],"shipping":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"carrier":"carrier","name":"name","phone":"phone","tracking_number":"tracking_number"},"sources":null,"subscriptions":null,"tax":{"automatic_tax":"unrecognized_location","ip_address":"ip_address","location":{"country":"country","source":"ip_address","state":"state"}},"tax_exempt":"reverse","tax_ids":null,"test_clock":{"created":"1028554472","deletes_after":"73213179","frozen_time":"2033541876","id":"obj_123","livemode":true,"name":"name","object":"test_helpers.test_clock","status":"advancing","status_details":{"advancing":{"target_frozen_time":"833971362"}}}},"type":"customer"},"type":"es_cif","value":"value","verification":{"status":"unverified","verified_address":"verified_address","verified_name":"verified_name"}}]},"payments":{"statement_descriptor":"statement_descriptor","statement_descriptor_kana":"statement_descriptor_kana","statement_descriptor_kanji":"statement_descriptor_kanji","statement_descriptor_prefix_kana":"statement_descriptor_prefix_kana","statement_descriptor_prefix_kanji":"statement_descriptor_prefix_kanji"},"payouts":{"debit_negative_balances":true,"schedule":{"delay_days":1647351405,"interval":"interval","monthly_anchor":1920305369,"weekly_anchor":"weekly_anchor"},"statement_descriptor":"statement_descriptor"},"sepa_debit_payments":{"creditor_id":"creditor_id"},"tax_forms":{"consented_to_paperless_delivery":true},"treasury":{"tos_acceptance":{"date":"3076014","ip":"ip","user_agent":"user_agent"}}},"tos_acceptance":{"date":"3076014","ip":"ip","service_agreement":"service_agreement","user_agent":"user_agent"},"type":"none"}', + '{"business_profile":{"annual_revenue":{"amount":1413853096,"currency":"currency","fiscal_year_end":"fiscal_year_end"},"estimated_worker_count":884794319,"mcc":"mcc","monthly_estimated_revenue":{"amount":1413853096,"currency":"currency"},"name":"name","product_description":"product_description","support_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"support_email":"support_email","support_phone":"support_phone","support_url":"support_url","url":"url"},"business_type":"government_entity","capabilities":{"acss_debit_payments":"inactive","affirm_payments":"pending","afterpay_clearpay_payments":"inactive","alma_payments":"pending","amazon_pay_payments":"inactive","au_becs_debit_payments":"active","bacs_debit_payments":"active","bancontact_payments":"inactive","bank_transfer_payments":"pending","blik_payments":"inactive","boleto_payments":"inactive","card_issuing":"active","card_payments":"active","cartes_bancaires_payments":"active","cashapp_payments":"active","eps_payments":"inactive","fpx_payments":"active","gb_bank_transfer_payments":"pending","giropay_payments":"active","gopay_payments":"active","grabpay_payments":"pending","id_bank_transfer_payments":"pending","id_bank_transfer_payments_bca":"active","ideal_payments":"inactive","india_international_payments":"inactive","jcb_payments":"inactive","jp_bank_transfer_payments":"pending","kakao_pay_payments":"active","klarna_payments":"active","konbini_payments":"active","kr_card_payments":"inactive","legacy_payments":"active","link_payments":"inactive","mb_way_payments":"active","mobilepay_payments":"pending","multibanco_payments":"inactive","mx_bank_transfer_payments":"pending","naver_pay_payments":"active","oxxo_payments":"pending","p24_payments":"inactive","payco_payments":"inactive","paynow_payments":"active","paypal_payments":"inactive","payto_payments":"pending","promptpay_payments":"active","qris_payments":"pending","rechnung_payments":"inactive","revolut_pay_payments":"inactive","samsung_pay_payments":"pending","sepa_bank_transfer_payments":"pending","sepa_debit_payments":"inactive","shopeepay_payments":"active","sofort_payments":"active","swish_payments":"inactive","tax_reporting_us_1099_k":"inactive","tax_reporting_us_1099_misc":"pending","transfers":"inactive","treasury":"pending","treasury_evolve":"inactive","treasury_fifth_third":"inactive","treasury_goldman_sachs":"active","twint_payments":"inactive","us_bank_account_ach_payments":"pending","us_bank_transfer_payments":"pending","zip_payments":"pending"},"charges_enabled":true,"company":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"address_kana":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"address_kanji":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"directors_provided":true,"executives_provided":true,"export_license_id":"export_license_id","export_purpose_code":"export_purpose_code","name":"name","name_kana":"name_kana","name_kanji":"name_kanji","owners_provided":true,"ownership_declaration":{"date":"3076014","ip":"ip","user_agent":"user_agent"},"phone":"phone","structure":"single_member_llc","tax_id_provided":true,"tax_id_registrar":"tax_id_registrar","vat_id_provided":true,"verification":{"document":{"back":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"business_icon","size":3530753,"title":"title","type":"type","url":"url"},"details":"details","details_code":"details_code","front":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"business_icon","size":3530753,"title":"title","type":"type","url":"url"}}}},"controller":{"application":{"loss_liable":true,"onboarding_owner":true,"pricing_controls":true},"dashboard":{"type":"express"},"fees":{"payer":"account"},"is_controller":true,"losses":{"payments":"stripe"},"requirement_collection":"application","stripe_dashboard":{"type":"express"},"type":"account"},"country":"country","created":"1028554472","default_currency":"default_currency","details_submitted":true,"email":"email","external_accounts":null,"future_requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"current_deadline":"270965154","currently_due":["currently_due"],"disabled_reason":"rejected.listed","errors":[{"code":"verification_failed_residential_address","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"groups":{"payments_pricing":"payments_pricing"},"id":"obj_123","individual":{"account":"account","additional_tos_acceptances":{"account":{"date":"3076014","ip":"ip","user_agent":"user_agent"}},"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"address_kana":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"address_kanji":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"created":"1028554472","dob":{"day":99228,"month":104080000,"year":3704893},"email":"email","first_name":"first_name","first_name_kana":"first_name_kana","first_name_kanji":"first_name_kanji","full_name_aliases":["full_name_aliases"],"future_requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"currently_due":["currently_due"],"errors":[{"code":"verification_failed_residential_address","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"gender":"gender","id":"obj_123","id_number_provided":true,"id_number_secondary_provided":true,"last_name":"last_name","last_name_kana":"last_name_kana","last_name_kanji":"last_name_kanji","maiden_name":"maiden_name","metadata":{"undefined":"metadata"},"nationality":"nationality","object":"person","phone":"phone","political_exposure":"none","registered_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"relationship":{"director":true,"executive":true,"legal_guardian":true,"owner":true,"percent_ownership":760989685,"representative":true,"title":"title"},"requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"currently_due":["currently_due"],"errors":[{"code":"verification_failed_residential_address","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"ssn_last_4_provided":true,"verification":{"additional_document":{"back":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"business_icon","size":3530753,"title":"title","type":"type","url":"url"},"details":"details","details_code":"details_code","front":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"business_icon","size":3530753,"title":"title","type":"type","url":"url"}},"details":"details","details_code":"details_code","document":{"back":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"business_icon","size":3530753,"title":"title","type":"type","url":"url"},"details":"details","details_code":"details_code","front":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"business_icon","size":3530753,"title":"title","type":"type","url":"url"}},"status":"status"}},"metadata":{"undefined":"metadata"},"object":"account","payouts_enabled":true,"requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"current_deadline":"270965154","currently_due":["currently_due"],"disabled_reason":"rejected.listed","errors":[{"code":"verification_failed_residential_address","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"risk_controls":{"charges":{"pause_requested":true},"payouts":{"pause_requested":true}},"settings":{"bacs_debit_payments":{"display_name":"display_name","service_user_number":"service_user_number"},"bank_bca_onboarding":{"account_holder_name":"account_holder_name","business_account_number":"business_account_number"},"branding":{"icon":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"business_icon","size":3530753,"title":"title","type":"type","url":"url"},"logo":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"business_icon","size":3530753,"title":"title","type":"type","url":"url"},"primary_color":"primary_color","secondary_color":"secondary_color"},"capital":{"payout_destination":{"undefined":"payout_destination"},"payout_destination_selector":{"undefined":["payout_destination_selector"]}},"card_issuing":{"tos_acceptance":{"date":"3076014","ip":"ip","user_agent":"user_agent"}},"card_payments":{"decline_on":{"avs_failure":true,"cvc_failure":true},"statement_descriptor_prefix":"statement_descriptor_prefix","statement_descriptor_prefix_kana":"statement_descriptor_prefix_kana","statement_descriptor_prefix_kanji":"statement_descriptor_prefix_kanji"},"dashboard":{"display_name":"display_name","timezone":"timezone"},"invoices":{"default_account_tax_ids":[{"country":"country","created":"1028554472","customer":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"balance":339185956,"cash_balance":{"available":{"undefined":733902135},"customer":"customer","livemode":true,"object":"cash_balance","settings":{"reconciliation_mode":"manual","using_merchant_default":true}},"created":"1028554472","currency":"currency","default_source":null,"delinquent":true,"description":"description","discount":{"checkout_session":"checkout_session","coupon":null,"customer":null,"end":"100571","id":"obj_123","invoice":"invoice","invoice_item":"invoice_item","object":"discount","promotion_code":null,"start":"109757538","subscription":"subscription","subscription_item":"subscription_item"},"email":"email","id":"obj_123","invoice_credit_balance":{"undefined":1267696360},"invoice_prefix":"invoice_prefix","invoice_settings":{"custom_fields":[{"name":"name","value":"value"}],"default_payment_method":{"acss_debit":{"bank_name":"bank_name","fingerprint":"fingerprint","institution_number":"institution_number","last4":"last4","transit_number":"transit_number"},"affirm":{},"afterpay_clearpay":{},"alipay":{},"allow_redisplay":"unspecified","alma":{},"amazon_pay":{},"au_becs_debit":{"bsb_number":"bsb_number","fingerprint":"fingerprint","last4":"last4"},"bacs_debit":{"fingerprint":"fingerprint","last4":"last4","sort_code":"sort_code"},"bancontact":{},"billing_details":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","phone":"phone"},"blik":{},"boleto":{"tax_id":"tax_id"},"card":{"brand":"brand","checks":{"address_line1_check":"address_line1_check","address_postal_code_check":"address_postal_code_check","cvc_check":"cvc_check"},"country":"country","description":"description","display_brand":"display_brand","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","generated_from":{"charge":"charge","payment_method_details":{"card_present":{"amount_authorized":1406151710,"brand":"brand","brand_product":"brand_product","capture_before":"2079401320","cardholder_name":"cardholder_name","country":"country","description":"description","emv_auth_data":"emv_auth_data","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","generated_card":"generated_card","iin":"iin","incremental_authorization_supported":true,"issuer":"issuer","last4":"last4","network":"network","network_transaction_id":"network_transaction_id","offline":{"stored_at":"1692436047","type":"deferred"},"overcapture_supported":true,"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2","receipt":{"account_type":"checking","application_cryptogram":"application_cryptogram","application_preferred_name":"application_preferred_name","authorization_code":"authorization_code","authorization_response_code":"authorization_response_code","cardholder_verification_method":"cardholder_verification_method","dedicated_file_name":"dedicated_file_name","terminal_verification_results":"terminal_verification_results","transaction_status_information":"transaction_status_information"},"wallet":{"type":"samsung_pay"}},"type":"type"},"setup_attempt":null},"iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"three_d_secure_usage":{"supported":true},"wallet":{"amex_express_checkout":{},"apple_pay":{},"dynamic_last4":"dynamic_last4","google_pay":{},"link":{},"masterpass":{"billing_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","shipping_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"}},"samsung_pay":{},"type":"link","visa_checkout":{"billing_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","shipping_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"}}}},"card_present":{"brand":"brand","brand_product":"brand_product","cardholder_name":"cardholder_name","country":"country","description":"description","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"offline":{"stored_at":"1692436047","type":"deferred"},"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2","wallet":{"type":"samsung_pay"}},"cashapp":{"buyer_id":"buyer_id","cashtag":"cashtag"},"created":"1028554472","customer":null,"customer_balance":{},"eps":{"bank":"btv_vier_lander_bank"},"fpx":{"account_holder_type":"individual","bank":"bsn"},"giropay":{},"gopay":{},"grabpay":{},"id":"obj_123","id_bank_transfer":{"bank":"bri","bank_code":"bank_code","bank_name":"bank_name","display_name":"display_name"},"ideal":{"bank":"sns_bank","bic":"BUNQNL2A"},"interac_present":{"brand":"brand","cardholder_name":"cardholder_name","country":"country","description":"description","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2"},"kakao_pay":{},"klarna":{"dob":{"day":99228,"month":104080000,"year":3704893}},"konbini":{},"kr_card":{"brand":"lotte","last4":"last4"},"link":{"email":"email","persistent_token":"persistent_token"},"livemode":true,"mb_way":{},"metadata":{"undefined":"metadata"},"mobilepay":{},"multibanco":{},"naver_pay":{"funding":"points"},"object":"payment_method","oxxo":{},"p24":{"bank":"noble_pay"},"payco":{},"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":{},"qris":{},"radar_options":{"session":"session"},"rechnung":{"dob":{"day":99228,"month":104080000,"year":3704893}},"revolut_pay":{},"samsung_pay":{},"sepa_debit":{"bank_code":"bank_code","branch_code":"branch_code","country":"country","fingerprint":"fingerprint","generated_from":{"charge":null,"setup_attempt":null},"last4":"last4"},"shopeepay":{},"sofort":{"country":"country"},"swish":{},"twint":{},"type":"pix","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","template":"template"}},"livemode":true,"metadata":{"undefined":"metadata"},"name":"name","next_invoice_sequence":1356358751,"object":"customer","phone":"phone","preferred_locales":["preferred_locales"],"shipping":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"carrier":"carrier","name":"name","phone":"phone","tracking_number":"tracking_number"},"sources":null,"subscriptions":null,"tax":{"automatic_tax":"unrecognized_location","ip_address":"ip_address","location":{"country":"country","source":"ip_address","state":"state"}},"tax_exempt":"reverse","tax_ids":null,"test_clock":{"created":"1028554472","deletes_after":"73213179","frozen_time":"2033541876","id":"obj_123","livemode":true,"name":"name","object":"test_helpers.test_clock","status":"advancing","status_details":{"advancing":{"target_frozen_time":"833971362"}}}},"id":"obj_123","livemode":true,"object":"tax_id","owner":{"account":{"business_profile":{"annual_revenue":{"amount":1413853096,"currency":"currency","fiscal_year_end":"fiscal_year_end"},"estimated_worker_count":884794319,"mcc":"mcc","monthly_estimated_revenue":{"amount":1413853096,"currency":"currency"},"name":"name","product_description":"product_description","support_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"support_email":"support_email","support_phone":"support_phone","support_url":"support_url","url":"url"},"business_type":"government_entity","capabilities":{"acss_debit_payments":"inactive","affirm_payments":"pending","afterpay_clearpay_payments":"inactive","alma_payments":"pending","amazon_pay_payments":"inactive","au_becs_debit_payments":"active","bacs_debit_payments":"active","bancontact_payments":"inactive","bank_transfer_payments":"pending","blik_payments":"inactive","boleto_payments":"inactive","card_issuing":"active","card_payments":"active","cartes_bancaires_payments":"active","cashapp_payments":"active","eps_payments":"inactive","fpx_payments":"active","gb_bank_transfer_payments":"pending","giropay_payments":"active","gopay_payments":"active","grabpay_payments":"pending","id_bank_transfer_payments":"pending","id_bank_transfer_payments_bca":"active","ideal_payments":"inactive","india_international_payments":"inactive","jcb_payments":"inactive","jp_bank_transfer_payments":"pending","kakao_pay_payments":"active","klarna_payments":"active","konbini_payments":"active","kr_card_payments":"inactive","legacy_payments":"active","link_payments":"inactive","mb_way_payments":"active","mobilepay_payments":"pending","multibanco_payments":"inactive","mx_bank_transfer_payments":"pending","naver_pay_payments":"active","oxxo_payments":"pending","p24_payments":"inactive","payco_payments":"inactive","paynow_payments":"active","paypal_payments":"inactive","payto_payments":"pending","promptpay_payments":"active","qris_payments":"pending","rechnung_payments":"inactive","revolut_pay_payments":"inactive","samsung_pay_payments":"pending","sepa_bank_transfer_payments":"pending","sepa_debit_payments":"inactive","shopeepay_payments":"active","sofort_payments":"active","swish_payments":"inactive","tax_reporting_us_1099_k":"inactive","tax_reporting_us_1099_misc":"pending","transfers":"inactive","treasury":"pending","treasury_evolve":"inactive","treasury_fifth_third":"inactive","treasury_goldman_sachs":"active","twint_payments":"inactive","us_bank_account_ach_payments":"pending","us_bank_transfer_payments":"pending","zip_payments":"pending"},"charges_enabled":true,"company":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"address_kana":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"address_kanji":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"directors_provided":true,"executives_provided":true,"export_license_id":"export_license_id","export_purpose_code":"export_purpose_code","name":"name","name_kana":"name_kana","name_kanji":"name_kanji","owners_provided":true,"ownership_declaration":{"date":"3076014","ip":"ip","user_agent":"user_agent"},"phone":"phone","structure":"single_member_llc","tax_id_provided":true,"tax_id_registrar":"tax_id_registrar","vat_id_provided":true,"verification":{"document":{"back":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"business_icon","size":3530753,"title":"title","type":"type","url":"url"},"details":"details","details_code":"details_code","front":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"business_icon","size":3530753,"title":"title","type":"type","url":"url"}}}},"controller":{"application":{"loss_liable":true,"onboarding_owner":true,"pricing_controls":true},"dashboard":{"type":"express"},"fees":{"payer":"account"},"is_controller":true,"losses":{"payments":"stripe"},"requirement_collection":"application","stripe_dashboard":{"type":"express"},"type":"account"},"country":"country","created":"1028554472","default_currency":"default_currency","details_submitted":true,"email":"email","external_accounts":null,"future_requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"current_deadline":"270965154","currently_due":["currently_due"],"disabled_reason":"rejected.listed","errors":[{"code":"verification_failed_residential_address","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"groups":{"payments_pricing":"payments_pricing"},"id":"obj_123","individual":{"account":"account","additional_tos_acceptances":{"account":{"date":"3076014","ip":"ip","user_agent":"user_agent"}},"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"address_kana":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"address_kanji":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"created":"1028554472","dob":{"day":99228,"month":104080000,"year":3704893},"email":"email","first_name":"first_name","first_name_kana":"first_name_kana","first_name_kanji":"first_name_kanji","full_name_aliases":["full_name_aliases"],"future_requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"currently_due":["currently_due"],"errors":[{"code":"verification_failed_residential_address","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"gender":"gender","id":"obj_123","id_number_provided":true,"id_number_secondary_provided":true,"last_name":"last_name","last_name_kana":"last_name_kana","last_name_kanji":"last_name_kanji","maiden_name":"maiden_name","metadata":{"undefined":"metadata"},"nationality":"nationality","object":"person","phone":"phone","political_exposure":"none","registered_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"relationship":{"director":true,"executive":true,"legal_guardian":true,"owner":true,"percent_ownership":760989685,"representative":true,"title":"title"},"requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"currently_due":["currently_due"],"errors":[{"code":"verification_failed_residential_address","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"ssn_last_4_provided":true,"verification":{"additional_document":{"back":null,"details":"details","details_code":"details_code","front":null},"details":"details","details_code":"details_code","document":{"back":null,"details":"details","details_code":"details_code","front":null},"status":"status"}},"metadata":{"undefined":"metadata"},"object":"account","payouts_enabled":true,"requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"current_deadline":"270965154","currently_due":["currently_due"],"disabled_reason":"rejected.listed","errors":[{"code":"verification_failed_residential_address","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"risk_controls":{"charges":{"pause_requested":true},"payouts":{"pause_requested":true}},"settings":{"bacs_debit_payments":{"display_name":"display_name","service_user_number":"service_user_number"},"bank_bca_onboarding":{"account_holder_name":"account_holder_name","business_account_number":"business_account_number"},"branding":{"icon":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"business_icon","size":3530753,"title":"title","type":"type","url":"url"},"logo":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"business_icon","size":3530753,"title":"title","type":"type","url":"url"},"primary_color":"primary_color","secondary_color":"secondary_color"},"capital":{"payout_destination":{"undefined":"payout_destination"},"payout_destination_selector":{"undefined":["payout_destination_selector"]}},"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":"ad_nrt","value":"value","verification":{"status":"unverified","verified_address":"verified_address","verified_name":"verified_name"}}]},"payments":{"statement_descriptor":"statement_descriptor","statement_descriptor_kana":"statement_descriptor_kana","statement_descriptor_kanji":"statement_descriptor_kanji","statement_descriptor_prefix_kana":"statement_descriptor_prefix_kana","statement_descriptor_prefix_kanji":"statement_descriptor_prefix_kanji"},"payouts":{"debit_negative_balances":true,"schedule":{"delay_days":1647351405,"interval":"interval","monthly_anchor":1920305369,"weekly_anchor":"weekly_anchor"},"statement_descriptor":"statement_descriptor"},"sepa_debit_payments":{"creditor_id":"creditor_id"},"tax_forms":{"consented_to_paperless_delivery":true},"treasury":{"tos_acceptance":{"date":"3076014","ip":"ip","user_agent":"user_agent"}}},"tos_acceptance":{"date":"3076014","ip":"ip","service_agreement":"service_agreement","user_agent":"user_agent"},"type":"none"},"application":{"id":"obj_123","name":"name","object":"application"},"customer":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"balance":339185956,"cash_balance":{"available":{"undefined":733902135},"customer":"customer","livemode":true,"object":"cash_balance","settings":{"reconciliation_mode":"manual","using_merchant_default":true}},"created":"1028554472","currency":"currency","default_source":null,"delinquent":true,"description":"description","discount":{"checkout_session":"checkout_session","coupon":null,"customer":null,"end":"100571","id":"obj_123","invoice":"invoice","invoice_item":"invoice_item","object":"discount","promotion_code":null,"start":"109757538","subscription":"subscription","subscription_item":"subscription_item"},"email":"email","id":"obj_123","invoice_credit_balance":{"undefined":1267696360},"invoice_prefix":"invoice_prefix","invoice_settings":{"custom_fields":[{"name":"name","value":"value"}],"default_payment_method":{"acss_debit":{"bank_name":"bank_name","fingerprint":"fingerprint","institution_number":"institution_number","last4":"last4","transit_number":"transit_number"},"affirm":{},"afterpay_clearpay":{},"alipay":{},"allow_redisplay":"unspecified","alma":{},"amazon_pay":{},"au_becs_debit":{"bsb_number":"bsb_number","fingerprint":"fingerprint","last4":"last4"},"bacs_debit":{"fingerprint":"fingerprint","last4":"last4","sort_code":"sort_code"},"bancontact":{},"billing_details":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","phone":"phone"},"blik":{},"boleto":{"tax_id":"tax_id"},"card":{"brand":"brand","checks":{"address_line1_check":"address_line1_check","address_postal_code_check":"address_postal_code_check","cvc_check":"cvc_check"},"country":"country","description":"description","display_brand":"display_brand","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","generated_from":{"charge":"charge","payment_method_details":{"card_present":{"amount_authorized":1406151710,"brand":"brand","brand_product":"brand_product","capture_before":"2079401320","cardholder_name":"cardholder_name","country":"country","description":"description","emv_auth_data":"emv_auth_data","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","generated_card":"generated_card","iin":"iin","incremental_authorization_supported":true,"issuer":"issuer","last4":"last4","network":"network","network_transaction_id":"network_transaction_id","offline":{"stored_at":"1692436047","type":"deferred"},"overcapture_supported":true,"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2","receipt":{"account_type":"checking","application_cryptogram":"application_cryptogram","application_preferred_name":"application_preferred_name","authorization_code":"authorization_code","authorization_response_code":"authorization_response_code","cardholder_verification_method":"cardholder_verification_method","dedicated_file_name":"dedicated_file_name","terminal_verification_results":"terminal_verification_results","transaction_status_information":"transaction_status_information"},"wallet":{"type":"samsung_pay"}},"type":"type"},"setup_attempt":null},"iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"three_d_secure_usage":{"supported":true},"wallet":{"amex_express_checkout":{},"apple_pay":{},"dynamic_last4":"dynamic_last4","google_pay":{},"link":{},"masterpass":{"billing_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","shipping_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"}},"samsung_pay":{},"type":"link","visa_checkout":{"billing_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","shipping_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"}}}},"card_present":{"brand":"brand","brand_product":"brand_product","cardholder_name":"cardholder_name","country":"country","description":"description","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"offline":{"stored_at":"1692436047","type":"deferred"},"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2","wallet":{"type":"samsung_pay"}},"cashapp":{"buyer_id":"buyer_id","cashtag":"cashtag"},"created":"1028554472","customer":null,"customer_balance":{},"eps":{"bank":"btv_vier_lander_bank"},"fpx":{"account_holder_type":"individual","bank":"bsn"},"giropay":{},"gopay":{},"grabpay":{},"id":"obj_123","id_bank_transfer":{"bank":"bri","bank_code":"bank_code","bank_name":"bank_name","display_name":"display_name"},"ideal":{"bank":"sns_bank","bic":"BUNQNL2A"},"interac_present":{"brand":"brand","cardholder_name":"cardholder_name","country":"country","description":"description","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2"},"kakao_pay":{},"klarna":{"dob":{"day":99228,"month":104080000,"year":3704893}},"konbini":{},"kr_card":{"brand":"lotte","last4":"last4"},"link":{"email":"email","persistent_token":"persistent_token"},"livemode":true,"mb_way":{},"metadata":{"undefined":"metadata"},"mobilepay":{},"multibanco":{},"naver_pay":{"funding":"points"},"object":"payment_method","oxxo":{},"p24":{"bank":"noble_pay"},"payco":{},"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":{},"qris":{},"radar_options":{"session":"session"},"rechnung":{"dob":{"day":99228,"month":104080000,"year":3704893}},"revolut_pay":{},"samsung_pay":{},"sepa_debit":{"bank_code":"bank_code","branch_code":"branch_code","country":"country","fingerprint":"fingerprint","generated_from":{"charge":null,"setup_attempt":null},"last4":"last4"},"shopeepay":{},"sofort":{"country":"country"},"swish":{},"twint":{},"type":"pix","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","template":"template"}},"livemode":true,"metadata":{"undefined":"metadata"},"name":"name","next_invoice_sequence":1356358751,"object":"customer","phone":"phone","preferred_locales":["preferred_locales"],"shipping":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"carrier":"carrier","name":"name","phone":"phone","tracking_number":"tracking_number"},"sources":null,"subscriptions":null,"tax":{"automatic_tax":"unrecognized_location","ip_address":"ip_address","location":{"country":"country","source":"ip_address","state":"state"}},"tax_exempt":"reverse","tax_ids":null,"test_clock":{"created":"1028554472","deletes_after":"73213179","frozen_time":"2033541876","id":"obj_123","livemode":true,"name":"name","object":"test_helpers.test_clock","status":"advancing","status_details":{"advancing":{"target_frozen_time":"833971362"}}}},"type":"customer"},"type":"ad_nrt","value":"value","verification":{"status":"unverified","verified_address":"verified_address","verified_name":"verified_name"}}]},"payments":{"statement_descriptor":"statement_descriptor","statement_descriptor_kana":"statement_descriptor_kana","statement_descriptor_kanji":"statement_descriptor_kanji","statement_descriptor_prefix_kana":"statement_descriptor_prefix_kana","statement_descriptor_prefix_kanji":"statement_descriptor_prefix_kanji"},"payouts":{"debit_negative_balances":true,"schedule":{"delay_days":1647351405,"interval":"interval","monthly_anchor":1920305369,"weekly_anchor":"weekly_anchor"},"statement_descriptor":"statement_descriptor"},"sepa_debit_payments":{"creditor_id":"creditor_id"},"tax_forms":{"consented_to_paperless_delivery":true},"treasury":{"tos_acceptance":{"date":"3076014","ip":"ip","user_agent":"user_agent"}}},"tos_acceptance":{"date":"3076014","ip":"ip","service_agreement":"service_agreement","user_agent":"user_agent"},"type":"none"}', }, ]); const account = await stripe.accounts.retrieve('acc_123'); diff --git a/types/AccountSessions.d.ts b/types/AccountSessions.d.ts index 66fe20ecd5..671dbcf940 100644 --- a/types/AccountSessions.d.ts +++ b/types/AccountSessions.d.ts @@ -90,7 +90,7 @@ declare module 'stripe' { /** * Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise. */ - disable_stripe_user_authentication?: boolean; + disable_stripe_user_authentication: boolean; /** * Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`. @@ -113,7 +113,7 @@ declare module 'stripe' { /** * Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise. */ - disable_stripe_user_authentication?: boolean; + disable_stripe_user_authentication: boolean; /** * Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`. @@ -136,7 +136,7 @@ declare module 'stripe' { /** * Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise. */ - disable_stripe_user_authentication?: boolean; + disable_stripe_user_authentication: boolean; /** * Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise. @@ -226,7 +226,7 @@ declare module 'stripe' { /** * Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise. */ - disable_stripe_user_authentication?: boolean; + disable_stripe_user_authentication: boolean; /** * Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`. @@ -315,7 +315,7 @@ declare module 'stripe' { /** * Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise. */ - disable_stripe_user_authentication?: boolean; + disable_stripe_user_authentication: boolean; /** * Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise. diff --git a/types/AccountSessionsResource.d.ts b/types/AccountSessionsResource.d.ts index 8b1ef1c55d..d4709f1ad9 100644 --- a/types/AccountSessionsResource.d.ts +++ b/types/AccountSessionsResource.d.ts @@ -382,11 +382,6 @@ declare module 'stripe' { */ external_account_collection?: boolean; - /** - * Whether to allow money movement features. - */ - money_movement?: boolean; - /** * Whether to allow sending money. */ @@ -405,6 +400,9 @@ declare module 'stripe' { */ enabled: boolean; + /** + * The list of features enabled in the embedded component. + */ features?: FinancialAccountTransactions.Features; } @@ -430,7 +428,27 @@ declare module 'stripe' { } namespace IssuingCard { - interface Features {} + interface Features { + /** + * Whether to allow card management features. + */ + card_management?: boolean; + + /** + * Whether to allow card spend dispute management features. + */ + card_spend_dispute_management?: boolean; + + /** + * Whether to allow cardholder management features. + */ + cardholder_management?: boolean; + + /** + * Whether to allow spend control management features. + */ + spend_control_management?: boolean; + } } interface IssuingCardsList { @@ -462,6 +480,11 @@ declare module 'stripe' { */ cardholder_management?: boolean; + /** + * Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. + */ + disable_stripe_user_authentication?: boolean; + /** * Whether to allow spend control management features. */ diff --git a/types/Accounts.d.ts b/types/Accounts.d.ts index b813e23ce5..af87b2ef6c 100644 --- a/types/Accounts.d.ts +++ b/types/Accounts.d.ts @@ -1028,9 +1028,9 @@ declare module 'stripe' { currently_due: Array | null; /** - * This is typed as a string for consistency with `requirements.disabled_reason`. + * This is typed as an enum for consistency with `requirements.disabled_reason`. */ - disabled_reason: string | null; + disabled_reason: FutureRequirements.DisabledReason | null; /** * Fields that are `currently_due` and need to be collected again because validation or verification failed. @@ -1066,6 +1066,23 @@ declare module 'stripe' { original_fields_due: Array; } + type DisabledReason = + | 'action_required.requested_capabilities' + | 'listed' + | 'other' + | 'platform_paused' + | 'rejected.fraud' + | 'rejected.incomplete_verification' + | 'rejected.listed' + | 'rejected.other' + | 'rejected.platform_fraud' + | 'rejected.platform_other' + | 'rejected.platform_terms_of_service' + | 'rejected.terms_of_service' + | 'requirements.past_due' + | 'requirements.pending_verification' + | 'under_review'; + interface Error { /** * The code for the type of error. @@ -1202,9 +1219,9 @@ declare module 'stripe' { currently_due: Array | null; /** - * If the account is disabled, this string describes why. [Learn more about handling verification issues](https://stripe.com/docs/connect/handling-api-verification). Can be `action_required.requested_capabilities`, `requirements.past_due`, `requirements.pending_verification`, `listed`, `platform_paused`, `rejected.fraud`, `rejected.incomplete_verification`, `rejected.listed`, `rejected.other`, `rejected.terms_of_service`, `under_review`, or `other`. + * If the account is disabled, this enum describes why. [Learn more about handling verification issues](https://stripe.com/docs/connect/handling-api-verification). */ - disabled_reason: string | null; + disabled_reason: Requirements.DisabledReason | null; /** * Fields that are `currently_due` and need to be collected again because validation or verification failed. @@ -1240,6 +1257,23 @@ declare module 'stripe' { original_fields_due: Array; } + type DisabledReason = + | 'action_required.requested_capabilities' + | 'listed' + | 'other' + | 'platform_paused' + | 'rejected.fraud' + | 'rejected.incomplete_verification' + | 'rejected.listed' + | 'rejected.other' + | 'rejected.platform_fraud' + | 'rejected.platform_other' + | 'rejected.platform_terms_of_service' + | 'rejected.terms_of_service' + | 'requirements.past_due' + | 'requirements.pending_verification' + | 'under_review'; + interface Error { /** * The code for the type of error. diff --git a/types/Billing/CreditBalanceSummaryResource.d.ts b/types/Billing/CreditBalanceSummaryResource.d.ts index a0f5f84ba0..400b16c95b 100644 --- a/types/Billing/CreditBalanceSummaryResource.d.ts +++ b/types/Billing/CreditBalanceSummaryResource.d.ts @@ -41,7 +41,7 @@ declare module 'stripe' { namespace Filter { interface ApplicabilityScope { /** - * The price type to which credit grants can apply to. We currently only support `metered` price type. + * The price type for which credit grants can apply. We currently only support the `metered` price type. */ price_type: 'metered'; } diff --git a/types/Billing/CreditGrants.d.ts b/types/Billing/CreditGrants.d.ts index 3300eb0033..782161b6eb 100644 --- a/types/Billing/CreditGrants.d.ts +++ b/types/Billing/CreditGrants.d.ts @@ -7,7 +7,6 @@ declare module 'stripe' { * A credit grant is an API resource that documents the allocation of some billing credits to a customer. * * Related guide: [Billing credits](https://docs.stripe.com/billing/subscriptions/usage-based/billing-credits) - * end */ interface CreditGrant { /** @@ -25,7 +24,7 @@ declare module 'stripe' { applicability_config: CreditGrant.ApplicabilityConfig; /** - * The category of this credit grant. This is for tracking purposes and will not be displayed to the customer. + * The category of this credit grant. This is for tracking purposes and isn't displayed to the customer. */ category: CreditGrant.Category; @@ -35,17 +34,17 @@ declare module 'stripe' { created: number; /** - * ID of the customer to whom the billing credits are granted. + * ID of the customer receiving the billing credits. */ customer: string | Stripe.Customer | Stripe.DeletedCustomer; /** - * The time when the billing credits become effective i.e when they are eligible to be used. + * The time when the billing credits become effective—when they're eligible for use. */ effective_at: number | null; /** - * The time when the billing credits will expire. If not present, the billing credits will never expire. + * The time when the billing credits expire. If not present, the billing credits don't expire. */ expires_at: number | null; @@ -114,7 +113,7 @@ declare module 'stripe' { namespace ApplicabilityConfig { interface Scope { /** - * The price type to which credit grants can apply to. We currently only support `metered` price type. This refers to prices that have a [Billing Meter](https://docs.stripe.com/api/billing/meter) attached to them. + * The price type for which credit grants can apply. We currently only support the `metered` price type. This refers to prices that have a [Billing Meter](https://docs.stripe.com/api/billing/meter) attached to them. */ price_type: 'metered'; } diff --git a/types/Billing/CreditGrantsResource.d.ts b/types/Billing/CreditGrantsResource.d.ts index 6337db529d..9b5cbcc513 100644 --- a/types/Billing/CreditGrantsResource.d.ts +++ b/types/Billing/CreditGrantsResource.d.ts @@ -20,12 +20,12 @@ declare module 'stripe' { category: CreditGrantCreateParams.Category; /** - * ID of the customer to whom the billing credits should be granted. + * ID of the customer to receive the billing credits. */ customer: string; /** - * The time when the billing credits become effective i.e when they are eligible to be used. Defaults to the current timestamp if not specified. + * The time when the billing credits become effective—when they're eligible for use. Defaults to the current timestamp if not specified. */ effective_at?: number; @@ -35,17 +35,17 @@ declare module 'stripe' { expand?: Array; /** - * The time when the billing credits will expire. If not specified, the billing credits will never expire. + * The time when the billing credits will expire. If not specified, the billing credits don't expire. */ expires_at?: number; /** - * Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object (ex: cost basis) in a structured format. + * Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object (for example, cost basis) in a structured format. */ metadata?: Stripe.MetadataParam; /** - * A descriptive name shown in dashboard. + * A descriptive name shown in the Dashboard. */ name?: string; } @@ -87,7 +87,7 @@ declare module 'stripe' { namespace ApplicabilityConfig { interface Scope { /** - * The price type to which credit grants can apply to. We currently only support `metered` price type. + * The price type for which credit grants can apply. We currently only support the `metered` price type. */ price_type: 'metered'; } @@ -110,12 +110,12 @@ declare module 'stripe' { expand?: Array; /** - * The time when the billing credits created by this credit grant will expire. If set to empty, the billing credits will never expire. + * The time when the billing credits created by this credit grant expire. If set to empty, the billing credits never expire. */ expires_at?: Stripe.Emptyable; /** - * Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object (ex: cost basis) in a structured format. + * Set of key-value pairs you can attach to an object. This can be useful for storing additional information about the object (for example, cost basis) in a structured format. */ metadata?: Stripe.MetadataParam; } @@ -178,7 +178,7 @@ declare module 'stripe' { ): Promise>; /** - * Retrieve a list of credit grants + * Retrieve a list of credit grants. */ list( params?: CreditGrantListParams, @@ -189,7 +189,7 @@ declare module 'stripe' { ): ApiListPromise; /** - * Expires a credit grant + * Expires a credit grant. */ expire( id: string, @@ -202,7 +202,7 @@ declare module 'stripe' { ): Promise>; /** - * Voids a credit grant + * Voids a credit grant. */ voidGrant( id: string, diff --git a/types/Billing/MeterEventsResource.d.ts b/types/Billing/MeterEventsResource.d.ts index 97fb3f86b2..4a1433e368 100644 --- a/types/Billing/MeterEventsResource.d.ts +++ b/types/Billing/MeterEventsResource.d.ts @@ -22,7 +22,7 @@ declare module 'stripe' { expand?: Array; /** - * A unique identifier for the event. If not provided, one will be generated. We recommend using a globally unique identifier for this. We'll enforce uniqueness within a rolling 24 hour period. + * A unique identifier for the event. If not provided, one will be generated. We strongly advise using UUID-like identifiers. We will enforce uniqueness within a rolling period of at least 24 hours. The enforcement of uniqueness primarily addresses issues arising from accidental retries or other problems occurring within extremely brief time intervals. This approach helps prevent duplicate entries and ensures data integrity in high-frequency operations. */ identifier?: string; diff --git a/types/Charges.d.ts b/types/Charges.d.ts index a47cdaedcf..bb7667cfd7 100644 --- a/types/Charges.d.ts +++ b/types/Charges.d.ts @@ -739,7 +739,7 @@ declare module 'stripe' { authorization_code: string | null; /** - * Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`. + * Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. */ brand: string | null; @@ -826,7 +826,7 @@ declare module 'stripe' { multicapture?: Card.Multicapture; /** - * Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`. + * Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. */ network: string | null; @@ -1133,7 +1133,7 @@ declare module 'stripe' { amount_authorized: number | null; /** - * Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`. + * Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. */ brand: string | null; @@ -1215,7 +1215,7 @@ declare module 'stripe' { last4: string | null; /** - * Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`. + * Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. */ network: string | null; @@ -1645,7 +1645,7 @@ declare module 'stripe' { last4: string | null; /** - * Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`. + * Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. */ network: string | null; diff --git a/types/Checkout/Sessions.d.ts b/types/Checkout/Sessions.d.ts index 4a0685e238..82cd27ee3a 100644 --- a/types/Checkout/Sessions.d.ts +++ b/types/Checkout/Sessions.d.ts @@ -30,6 +30,11 @@ declare module 'stripe' { */ object: 'checkout.session'; + /** + * Settings for price localization with [Adaptive Pricing](https://docs.stripe.com/payments/checkout/adaptive-pricing). + */ + adaptive_pricing: Session.AdaptivePricing | null; + /** * When set, provides configuration for actions to take if this Checkout Session expires. */ @@ -313,6 +318,13 @@ declare module 'stripe' { } namespace Session { + interface AdaptivePricing { + /** + * Whether Adaptive Pricing is enabled. + */ + enabled: boolean; + } + interface AfterExpiration { /** * When set, configuration used to recover the Checkout Session on expiry. @@ -439,7 +451,7 @@ declare module 'stripe' { interface TaxId { /** - * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, or `unknown` + * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, or `unknown` */ type: TaxId.Type; @@ -497,6 +509,7 @@ declare module 'stripe' { | 'kr_brn' | 'kz_bin' | 'li_uid' + | 'li_vat' | 'ma_vat' | 'md_vat' | 'mx_rfc' @@ -652,7 +665,7 @@ declare module 'stripe' { interface TaxId { /** - * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, or `unknown` + * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, or `unknown` */ type: TaxId.Type; @@ -710,6 +723,7 @@ declare module 'stripe' { | 'kr_brn' | 'kz_bin' | 'li_uid' + | 'li_vat' | 'ma_vat' | 'md_vat' | 'mx_rfc' @@ -1279,6 +1293,8 @@ declare module 'stripe' { } interface BacsDebit { + mandate_options?: BacsDebit.MandateOptions; + /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * @@ -1292,6 +1308,8 @@ declare module 'stripe' { } namespace BacsDebit { + interface MandateOptions {} + type SetupFutureUsage = 'none' | 'off_session' | 'on_session'; } @@ -1333,6 +1351,31 @@ declare module 'stripe' { interface Card { installments?: Card.Installments; + /** + * Request ability to [capture beyond the standard authorization validity window](https://stripe.com/payments/extended-authorization) for this CheckoutSession. + */ + request_decremental_authorization?: Card.RequestDecrementalAuthorization; + + /** + * Request ability to [capture beyond the standard authorization validity window](https://stripe.com/payments/extended-authorization) for this CheckoutSession. + */ + request_extended_authorization?: Card.RequestExtendedAuthorization; + + /** + * Request ability to [increment the authorization](https://stripe.com/payments/incremental-authorization) for this CheckoutSession. + */ + request_incremental_authorization?: Card.RequestIncrementalAuthorization; + + /** + * Request ability to make [multiple captures](https://stripe.com/payments/multicapture) for this CheckoutSession. + */ + request_multicapture?: Card.RequestMulticapture; + + /** + * Request ability to [overcapture](https://stripe.com/payments/overcapture) for this CheckoutSession. + */ + request_overcapture?: Card.RequestOvercapture; + /** * We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. */ @@ -1368,6 +1411,16 @@ declare module 'stripe' { enabled?: boolean; } + type RequestDecrementalAuthorization = 'if_available' | 'never'; + + type RequestExtendedAuthorization = 'if_available' | 'never'; + + type RequestIncrementalAuthorization = 'if_available' | 'never'; + + type RequestMulticapture = 'if_available' | 'never'; + + type RequestOvercapture = 'if_available' | 'never'; + type RequestThreeDSecure = 'any' | 'automatic' | 'challenge'; type SetupFutureUsage = 'none' | 'off_session' | 'on_session'; @@ -1852,6 +1905,8 @@ declare module 'stripe' { } interface SepaDebit { + mandate_options?: SepaDebit.MandateOptions; + /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * @@ -1865,6 +1920,8 @@ declare module 'stripe' { } namespace SepaDebit { + interface MandateOptions {} + type SetupFutureUsage = 'none' | 'off_session' | 'on_session'; } diff --git a/types/Checkout/SessionsResource.d.ts b/types/Checkout/SessionsResource.d.ts index f4a8820f6d..957a7a9b45 100644 --- a/types/Checkout/SessionsResource.d.ts +++ b/types/Checkout/SessionsResource.d.ts @@ -4,6 +4,11 @@ declare module 'stripe' { namespace Stripe { namespace Checkout { interface SessionCreateParams { + /** + * Settings for price localization with [Adaptive Pricing](https://docs.stripe.com/payments/checkout/adaptive-pricing). + */ + adaptive_pricing?: SessionCreateParams.AdaptivePricing; + /** * Configure actions after a Checkout Session has expired. */ @@ -267,6 +272,13 @@ declare module 'stripe' { } namespace SessionCreateParams { + interface AdaptivePricing { + /** + * Set to `true` to enable [Adaptive Pricing](https://docs.stripe.com/payments/checkout/adaptive-pricing). Defaults to your [dashboard setting](https://dashboard.stripe.com/settings/adaptive-pricing). + */ + enabled?: boolean; + } + interface AfterExpiration { /** * Configure a Checkout Session that can be used to recover an expired session. @@ -1111,7 +1123,7 @@ declare module 'stripe' { multibanco?: PaymentMethodOptions.Multibanco; /** - * contains details about the Kakao Pay payment method options. + * contains details about the Naver Pay payment method options. */ naver_pay?: PaymentMethodOptions.NaverPay; @@ -1330,6 +1342,11 @@ declare module 'stripe' { } interface BacsDebit { + /** + * Additional fields for Mandate creation + */ + mandate_options?: BacsDebit.MandateOptions; + /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * @@ -1343,6 +1360,8 @@ declare module 'stripe' { } namespace BacsDebit { + interface MandateOptions {} + type SetupFutureUsage = 'none' | 'off_session' | 'on_session'; } @@ -1387,6 +1406,31 @@ declare module 'stripe' { */ installments?: Card.Installments; + /** + * Request ability to [capture beyond the standard authorization validity window](https://stripe.com/payments/extended-authorization) for this CheckoutSession. + */ + request_decremental_authorization?: Card.RequestDecrementalAuthorization; + + /** + * Request ability to [capture beyond the standard authorization validity window](https://stripe.com/payments/extended-authorization) for this CheckoutSession. + */ + request_extended_authorization?: Card.RequestExtendedAuthorization; + + /** + * Request ability to [increment the authorization](https://stripe.com/payments/incremental-authorization) for this CheckoutSession. + */ + request_incremental_authorization?: Card.RequestIncrementalAuthorization; + + /** + * Request ability to make [multiple captures](https://stripe.com/payments/multicapture) for this CheckoutSession. + */ + request_multicapture?: Card.RequestMulticapture; + + /** + * Request ability to [overcapture](https://stripe.com/payments/overcapture) for this CheckoutSession. + */ + request_overcapture?: Card.RequestOvercapture; + /** * We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. */ @@ -1423,6 +1467,16 @@ declare module 'stripe' { enabled?: boolean; } + type RequestDecrementalAuthorization = 'if_available' | 'never'; + + type RequestExtendedAuthorization = 'if_available' | 'never'; + + type RequestIncrementalAuthorization = 'if_available' | 'never'; + + type RequestMulticapture = 'if_available' | 'never'; + + type RequestOvercapture = 'if_available' | 'never'; + type RequestThreeDSecure = 'any' | 'automatic' | 'challenge'; type SetupFutureUsage = 'off_session' | 'on_session'; @@ -1582,6 +1636,11 @@ declare module 'stripe' { } interface KakaoPay { + /** + * Controls when the funds will be captured from the customer's account. + */ + capture_method?: 'manual'; + /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * @@ -1630,6 +1689,11 @@ declare module 'stripe' { } interface KrCard { + /** + * Controls when the funds will be captured from the customer's account. + */ + capture_method?: 'manual'; + /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * @@ -1690,6 +1754,11 @@ declare module 'stripe' { } interface NaverPay { + /** + * 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. * @@ -1742,7 +1811,12 @@ declare module 'stripe' { tos_shown_and_accepted?: boolean; } - interface Payco {} + interface Payco { + /** + * Controls when the funds will be captured from the customer's account. + */ + capture_method?: 'manual'; + } interface Paynow { /** @@ -1939,9 +2013,19 @@ declare module 'stripe' { type SetupFutureUsage = 'none' | 'off_session'; } - interface SamsungPay {} + interface SamsungPay { + /** + * Controls when the funds will be captured from the customer's account. + */ + capture_method?: 'manual'; + } interface SepaDebit { + /** + * Additional fields for Mandate creation + */ + mandate_options?: SepaDebit.MandateOptions; + /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * @@ -1955,6 +2039,8 @@ declare module 'stripe' { } namespace SepaDebit { + interface MandateOptions {} + type SetupFutureUsage = 'none' | 'off_session' | 'on_session'; } @@ -2185,7 +2271,7 @@ declare module 'stripe' { interface ShippingAddressCollection { /** * An array of two-letter ISO country codes representing which countries Checkout should provide as options for - * shipping locations. Unsupported country codes: `AS, CX, CC, CU, HM, IR, KP, MH, FM, NF, MP, PW, SD, SY, UM, VI`. + * shipping locations. */ allowed_countries: Array; } diff --git a/types/ConfirmationTokens.d.ts b/types/ConfirmationTokens.d.ts index 40444232d1..c5c1ca651e 100644 --- a/types/ConfirmationTokens.d.ts +++ b/types/ConfirmationTokens.d.ts @@ -369,7 +369,7 @@ declare module 'stripe' { interface Card { /** - * Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`. + * Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. */ brand: string; @@ -504,7 +504,7 @@ declare module 'stripe' { amount_authorized: number | null; /** - * Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`. + * Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. */ brand: string | null; @@ -586,7 +586,7 @@ declare module 'stripe' { last4: string | null; /** - * Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`. + * Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. */ network: string | null; @@ -829,7 +829,7 @@ declare module 'stripe' { interface CardPresent { /** - * Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`. + * Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. */ brand: string | null; diff --git a/types/CustomersResource.d.ts b/types/CustomersResource.d.ts index fdd106e949..f1941a8bf9 100644 --- a/types/CustomersResource.d.ts +++ b/types/CustomersResource.d.ts @@ -220,7 +220,7 @@ declare module 'stripe' { interface TaxIdDatum { /** - * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` + * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` */ type: TaxIdDatum.Type; @@ -278,6 +278,7 @@ declare module 'stripe' { | 'kr_brn' | 'kz_bin' | 'li_uid' + | 'li_vat' | 'ma_vat' | 'md_vat' | 'mx_rfc' @@ -669,7 +670,7 @@ declare module 'stripe' { interface CustomerCreateTaxIdParams { /** - * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` + * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` */ type: CustomerCreateTaxIdParams.Type; @@ -732,6 +733,7 @@ declare module 'stripe' { | 'kr_brn' | 'kz_bin' | 'li_uid' + | 'li_vat' | 'ma_vat' | 'md_vat' | 'mx_rfc' diff --git a/types/Disputes.d.ts b/types/Disputes.d.ts index c4c76ede2b..f774e4f674 100644 --- a/types/Disputes.d.ts +++ b/types/Disputes.d.ts @@ -428,7 +428,7 @@ declare module 'stripe' { interface Card { /** - * Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`. + * Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. */ brand: string; diff --git a/types/EventTypes.d.ts b/types/EventTypes.d.ts index 6d6dda9eea..8782fefad9 100644 --- a/types/EventTypes.d.ts +++ b/types/EventTypes.d.ts @@ -113,6 +113,7 @@ declare module 'stripe' { | InvoicePaidEvent | InvoicePaymentOverpaidEvent | InvoicePaymentActionRequiredEvent + | InvoicePaymentAttemptRequiredEvent | InvoicePaymentFailedEvent | InvoicePaymentSucceededEvent | InvoiceSentEvent @@ -137,6 +138,7 @@ declare module 'stripe' { | IssuingDisputeUpdatedEvent | IssuingDisputeSettlementDetailCreatedEvent | IssuingDisputeSettlementDetailUpdatedEvent + | IssuingFraudLiabilityDebitCreatedEvent | IssuingPersonalizationDesignActivatedEvent | IssuingPersonalizationDesignDeactivatedEvent | IssuingPersonalizationDesignRejectedEvent @@ -2044,6 +2046,22 @@ declare module 'stripe' { } } + /** + * Occurs when an invoice requires a payment using a payment method that cannot be processed by Stripe. + */ + interface InvoicePaymentAttemptRequiredEvent extends EventBase { + type: 'invoice.payment_attempt_required'; + data: InvoicePaymentAttemptRequiredEvent.Data; + } + + namespace InvoicePaymentAttemptRequiredEvent { + interface Data extends Stripe.Event.Data { + object: Stripe.Invoice; + + previous_attributes?: Partial; + } + } + /** * Occurs whenever an invoice payment attempt fails, due either to a declined payment or to the lack of a stored payment method. */ @@ -2428,6 +2446,22 @@ declare module 'stripe' { } } + /** + * Occurs whenever funds are deducted from your account for fraud dispute loss liability. + */ + interface IssuingFraudLiabilityDebitCreatedEvent extends EventBase { + type: 'issuing_fraud_liability_debit.created'; + data: IssuingFraudLiabilityDebitCreatedEvent.Data; + } + + namespace IssuingFraudLiabilityDebitCreatedEvent { + interface Data extends Stripe.Event.Data { + object: Stripe.Issuing.FraudLiabilityDebit; + + previous_attributes?: Partial; + } + } + /** * Occurs whenever a personalization design is activated following the activation of the physical bundle that belongs to it. */ diff --git a/types/Events.d.ts b/types/Events.d.ts index 76fae14f58..5dad125c25 100644 --- a/types/Events.d.ts +++ b/types/Events.d.ts @@ -197,6 +197,7 @@ declare module 'stripe' { | 'invoice.paid' | 'invoice.payment.overpaid' | 'invoice.payment_action_required' + | 'invoice.payment_attempt_required' | 'invoice.payment_failed' | 'invoice.payment_succeeded' | 'invoice.sent' @@ -221,6 +222,7 @@ declare module 'stripe' { | 'issuing_dispute.updated' | 'issuing_dispute_settlement_detail.created' | 'issuing_dispute_settlement_detail.updated' + | 'issuing_fraud_liability_debit.created' | 'issuing_personalization_design.activated' | 'issuing_personalization_design.deactivated' | 'issuing_personalization_design.rejected' diff --git a/types/FundingInstructions.d.ts b/types/FundingInstructions.d.ts index e6f3710f69..7d10cf01cf 100644 --- a/types/FundingInstructions.d.ts +++ b/types/FundingInstructions.d.ts @@ -96,11 +96,25 @@ declare module 'stripe' { namespace FinancialAddress { interface Aba { + account_holder_address: Stripe.Address; + + /** + * The account holder name + */ + account_holder_name: string; + /** * The ABA account number */ account_number: string; + /** + * The account type + */ + account_type: string; + + bank_address: Stripe.Address; + /** * The bank name */ @@ -179,11 +193,25 @@ declare module 'stripe' { | 'zengin'; interface Swift { + account_holder_address: Stripe.Address; + + /** + * The account holder name + */ + account_holder_name: string; + /** * The account number */ account_number: string; + /** + * The account type + */ + account_type: string; + + bank_address: Stripe.Address; + /** * The bank name */ diff --git a/types/Identity/VerificationReports.d.ts b/types/Identity/VerificationReports.d.ts index f48d8d071c..98d165be97 100644 --- a/types/Identity/VerificationReports.d.ts +++ b/types/Identity/VerificationReports.d.ts @@ -75,7 +75,7 @@ declare module 'stripe' { type: VerificationReport.Type; /** - * The configuration token of a Verification Flow from the dashboard. + * The configuration token of a verification flow from the dashboard. */ verification_flow?: string; diff --git a/types/Identity/VerificationSessions.d.ts b/types/Identity/VerificationSessions.d.ts index 8471de8f76..2509e5315f 100644 --- a/types/Identity/VerificationSessions.d.ts +++ b/types/Identity/VerificationSessions.d.ts @@ -101,7 +101,7 @@ declare module 'stripe' { url: string | null; /** - * The configuration token of a Verification Flow from the dashboard. + * The configuration token of a verification flow from the dashboard. */ verification_flow?: string; diff --git a/types/Identity/VerificationSessionsResource.d.ts b/types/Identity/VerificationSessionsResource.d.ts index c1cab70888..31ab42211d 100644 --- a/types/Identity/VerificationSessionsResource.d.ts +++ b/types/Identity/VerificationSessionsResource.d.ts @@ -45,7 +45,7 @@ declare module 'stripe' { type?: VerificationSessionCreateParams.Type; /** - * The ID of a Verification Flow from the Dashboard. See https://docs.stripe.com/identity/verification-flows. + * The ID of a verification flow from the Dashboard. See https://docs.stripe.com/identity/verification-flows. */ verification_flow?: string; } diff --git a/types/InvoicePayments.d.ts b/types/InvoicePayments.d.ts index d1c3a2de85..28a79c71be 100644 --- a/types/InvoicePayments.d.ts +++ b/types/InvoicePayments.d.ts @@ -73,13 +73,16 @@ declare module 'stripe' { */ charge?: string | Stripe.Charge; - out_of_band_payment?: Payment.OutOfBandPayment; - /** * ID of the PaymentIntent associated with this payment when `type` is `payment_intent`. Note: This property is only populated for invoices finalized on or after March 15th, 2019. */ payment_intent?: string | Stripe.PaymentIntent; + /** + * ID of the PaymentRecord associated with this payment when `type` is `payment_record`. + */ + payment_record?: string | Stripe.PaymentRecord; + /** * Type of payment object associated with this invoice payment. */ @@ -87,39 +90,11 @@ declare module 'stripe' { } namespace Payment { - interface OutOfBandPayment { - /** - * Amount paid on this out of band payment, in cents (or local equivalent) - */ - amount: number; - - /** - * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). - */ - currency: string; - - /** - * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. - */ - metadata: Stripe.Metadata | null; - - /** - * The type of money movement for this out of band payment record. - */ - money_movement_type: string; - - /** - * The timestamp when this out of band payment was paid. - */ - paid_at: number | null; - - /** - * The reference for this out of band payment record. - */ - payment_reference: string | null; - } - - type Type = 'charge' | 'out_of_band_payment' | 'payment_intent'; + type Type = + | 'charge' + | 'out_of_band_payment' + | 'payment_intent' + | 'payment_record'; } interface StatusTransitions { diff --git a/types/Invoices.d.ts b/types/Invoices.d.ts index bf7b0ef41f..298e8306cb 100644 --- a/types/Invoices.d.ts +++ b/types/Invoices.d.ts @@ -89,6 +89,11 @@ declare module 'stripe' { */ amount_due: number; + /** + * Amount that was overpaid on the invoice. Overpayments are debited to the customer's credit balance. + */ + amount_overpaid?: number; + /** * The amount, in cents (or local equivalent), that was paid. */ @@ -629,7 +634,7 @@ declare module 'stripe' { interface CustomerTaxId { /** - * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, or `unknown` + * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, or `unknown` */ type: CustomerTaxId.Type; @@ -687,6 +692,7 @@ declare module 'stripe' { | 'kr_brn' | 'kz_bin' | 'li_uid' + | 'li_vat' | 'ma_vat' | 'md_vat' | 'mx_rfc' @@ -1274,6 +1280,7 @@ declare module 'stripe' { | 'boleto' | 'card' | 'cashapp' + | 'custom' | 'customer_balance' | 'eps' | 'fpx' diff --git a/types/InvoicesResource.d.ts b/types/InvoicesResource.d.ts index cb1b54cbb2..66d857b1ca 100644 --- a/types/InvoicesResource.d.ts +++ b/types/InvoicesResource.d.ts @@ -604,6 +604,7 @@ declare module 'stripe' { | 'boleto' | 'card' | 'cashapp' + | 'custom' | 'customer_balance' | 'eps' | 'fpx' @@ -1413,6 +1414,7 @@ declare module 'stripe' { | 'boleto' | 'card' | 'cashapp' + | 'custom' | 'customer_balance' | 'eps' | 'fpx' @@ -1990,6 +1992,7 @@ declare module 'stripe' { | 'retail_delivery_fee' | 'rst' | 'sales_tax' + | 'service_tax' | 'vat'; } } @@ -2008,18 +2011,23 @@ declare module 'stripe' { expand?: Array; /** - * The out of band payment to attach to the invoice. + * The ID of the PaymentIntent to attach to the invoice. */ - out_of_band_payment?: InvoiceAttachPaymentParams.OutOfBandPayment; + payment_intent?: string; /** - * The ID of the PaymentIntent to attach to the invoice. + * The ID of the PaymentRecord to detach from the invoice. */ - payment_intent?: string; + payment_record?: string; + + /** + * The PaymentRecord data for attaching an out of band payment to the invoice. + */ + payment_record_data?: InvoiceAttachPaymentParams.PaymentRecordData; } namespace InvoiceAttachPaymentParams { - interface OutOfBandPayment { + interface PaymentRecordData { /** * The amount that was paid out of band. */ @@ -2233,7 +2241,7 @@ declare module 'stripe' { interface TaxId { /** - * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` + * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` */ type: TaxId.Type; @@ -2291,6 +2299,7 @@ declare module 'stripe' { | 'kr_brn' | 'kz_bin' | 'li_uid' + | 'li_vat' | 'ma_vat' | 'md_vat' | 'mx_rfc' @@ -4453,7 +4462,7 @@ declare module 'stripe' { interface TaxId { /** - * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` + * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` */ type: TaxId.Type; @@ -4511,6 +4520,7 @@ declare module 'stripe' { | 'kr_brn' | 'kz_bin' | 'li_uid' + | 'li_vat' | 'ma_vat' | 'md_vat' | 'mx_rfc' @@ -6932,7 +6942,7 @@ declare module 'stripe' { interface TaxId { /** - * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` + * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` */ type: TaxId.Type; @@ -6990,6 +7000,7 @@ declare module 'stripe' { | 'kr_brn' | 'kz_bin' | 'li_uid' + | 'li_vat' | 'ma_vat' | 'md_vat' | 'mx_rfc' @@ -9415,6 +9426,7 @@ declare module 'stripe' { | 'retail_delivery_fee' | 'rst' | 'sales_tax' + | 'service_tax' | 'vat'; } } @@ -9703,6 +9715,7 @@ declare module 'stripe' { | 'retail_delivery_fee' | 'rst' | 'sales_tax' + | 'service_tax' | 'vat'; } } diff --git a/types/Issuing/Authorizations.d.ts b/types/Issuing/Authorizations.d.ts index 56d01ceb0b..c5bc6cd0ab 100644 --- a/types/Issuing/Authorizations.d.ts +++ b/types/Issuing/Authorizations.d.ts @@ -47,7 +47,7 @@ declare module 'stripe' { balance_transactions: Array; /** - * You can [create physical or virtual cards](https://stripe.com/docs/issuing/cards) that are issued to cardholders. + * You can [create physical or virtual cards](https://stripe.com/docs/issuing) that are issued to cardholders. */ card: Stripe.Issuing.Card; diff --git a/types/Issuing/Cards.d.ts b/types/Issuing/Cards.d.ts index a87ef5d1f9..18b08d5817 100644 --- a/types/Issuing/Cards.d.ts +++ b/types/Issuing/Cards.d.ts @@ -4,7 +4,7 @@ declare module 'stripe' { namespace Stripe { namespace Issuing { /** - * You can [create physical or virtual cards](https://stripe.com/docs/issuing/cards) that are issued to cardholders. + * You can [create physical or virtual cards](https://stripe.com/docs/issuing) that are issued to cardholders. */ interface Card { /** diff --git a/types/Issuing/FraudLiabilityDebits.d.ts b/types/Issuing/FraudLiabilityDebits.d.ts new file mode 100644 index 0000000000..07ba7a236b --- /dev/null +++ b/types/Issuing/FraudLiabilityDebits.d.ts @@ -0,0 +1,52 @@ +// File generated from our OpenAPI spec + +declare module 'stripe' { + namespace Stripe { + namespace Issuing { + /** + * A fraud liability debit occurs when Stripe debits a platform's account for fraud losses on Issuing transactions. + */ + interface FraudLiabilityDebit { + /** + * Unique identifier for the object. + */ + id: string; + + /** + * String representing the object's type. Objects of the same type share the same value. + */ + object: 'issuing.fraud_liability_debit'; + + /** + * Debited amount. This is equal to the disputed amount and is given in the card's currency and in the smallest currency unit. + */ + amount: number; + + /** + * ID of the [balance transaction](https://stripe.com/docs/api/balance_transactions) associated with this debit. + */ + balance_transaction: string | Stripe.BalanceTransaction | null; + + /** + * Time at which the object was created. Measured in seconds since the Unix epoch. + */ + created: number; + + /** + * The currency of the debit. Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + */ + currency: string; + + /** + * The ID of the linked dispute. + */ + dispute: 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; + } + } + } +} diff --git a/types/Issuing/FraudLiabilityDebitsResource.d.ts b/types/Issuing/FraudLiabilityDebitsResource.d.ts new file mode 100644 index 0000000000..d6db6ae7c9 --- /dev/null +++ b/types/Issuing/FraudLiabilityDebitsResource.d.ts @@ -0,0 +1,52 @@ +// File generated from our OpenAPI spec + +declare module 'stripe' { + namespace Stripe { + namespace Issuing { + interface FraudLiabilityDebitRetrieveParams { + /** + * Specifies which fields in the response should be expanded. + */ + expand?: Array; + } + + interface FraudLiabilityDebitListParams extends PaginationParams { + /** + * Only return Issuing Fraud Liability Debits that were created during the given date interval. + */ + created?: Stripe.RangeQueryParam | number; + + /** + * Specifies which fields in the response should be expanded. + */ + expand?: Array; + } + + class FraudLiabilityDebitsResource { + /** + * Retrieves an Issuing FraudLiabilityDebit object. + */ + retrieve( + id: string, + params?: FraudLiabilityDebitRetrieveParams, + options?: RequestOptions + ): Promise>; + retrieve( + id: string, + options?: RequestOptions + ): Promise>; + + /** + * Returns a list of Issuing FraudLiabilityDebit objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first. + */ + list( + params?: FraudLiabilityDebitListParams, + options?: RequestOptions + ): ApiListPromise; + list( + options?: RequestOptions + ): ApiListPromise; + } + } + } +} diff --git a/types/Orders.d.ts b/types/Orders.d.ts index 942ab95808..7403d0409e 100644 --- a/types/Orders.d.ts +++ b/types/Orders.d.ts @@ -959,7 +959,7 @@ declare module 'stripe' { interface TaxId { /** - * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, or `unknown` + * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, or `unknown` */ type: TaxId.Type; @@ -1017,6 +1017,7 @@ declare module 'stripe' { | 'kr_brn' | 'kz_bin' | 'li_uid' + | 'li_vat' | 'ma_vat' | 'md_vat' | 'mx_rfc' diff --git a/types/OrdersResource.d.ts b/types/OrdersResource.d.ts index 5f8797282e..da05d41afd 100644 --- a/types/OrdersResource.d.ts +++ b/types/OrdersResource.d.ts @@ -1284,7 +1284,7 @@ declare module 'stripe' { interface TaxId { /** - * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` + * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` */ type: TaxId.Type; @@ -1342,6 +1342,7 @@ declare module 'stripe' { | 'kr_brn' | 'kz_bin' | 'li_uid' + | 'li_vat' | 'ma_vat' | 'md_vat' | 'mx_rfc' @@ -2678,7 +2679,7 @@ declare module 'stripe' { interface TaxId { /** - * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` + * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` */ type: TaxId.Type; @@ -2736,6 +2737,7 @@ declare module 'stripe' { | 'kr_brn' | 'kz_bin' | 'li_uid' + | 'li_vat' | 'ma_vat' | 'md_vat' | 'mx_rfc' diff --git a/types/PaymentAttemptRecords.d.ts b/types/PaymentAttemptRecords.d.ts new file mode 100644 index 0000000000..2f7e736e57 --- /dev/null +++ b/types/PaymentAttemptRecords.d.ts @@ -0,0 +1,242 @@ +// File generated from our OpenAPI spec + +declare module 'stripe' { + namespace Stripe { + /** + * A Payment Attempt Record represents an individual attempt at making a payment, on or off Stripe. + * Each payment attempt tries to collect a fixed amount of money from a fixed customer and payment + * method. Payment Attempt Records are attached to Payment Records. Only one attempt per Payment Record + * can have guaranteed funds. + */ + interface PaymentAttemptRecord { + /** + * Unique identifier for the object. + */ + id: string; + + /** + * String representing the object's type. Objects of the same type share the same value. + */ + object: 'payment_attempt_record'; + + /** + * A representation of an amount of money, consisting of an amount and a currency. + */ + amount_canceled: PaymentAttemptRecord.AmountCanceled; + + /** + * A representation of an amount of money, consisting of an amount and a currency. + */ + amount_failed: PaymentAttemptRecord.AmountFailed; + + /** + * A representation of an amount of money, consisting of an amount and a currency. + */ + amount_guaranteed: PaymentAttemptRecord.AmountGuaranteed; + + /** + * A representation of an amount of money, consisting of an amount and a currency. + */ + amount_requested: PaymentAttemptRecord.AmountRequested; + + /** + * Time at which the object was created. Measured in seconds since the Unix epoch. + */ + created: number; + + /** + * Customer information for this payment. + */ + customer_details: PaymentAttemptRecord.CustomerDetails | null; + + /** + * Indicates whether the customer was present in your checkout flow during this payment. + */ + customer_presence: PaymentAttemptRecord.CustomerPresence | null; + + /** + * An arbitrary string attached to the object. Often useful for displaying to users. + */ + description: string | null; + + /** + * Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. + */ + livemode: boolean; + + /** + * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. + */ + metadata: Stripe.Metadata | null; + + /** + * Information about the Payment Method debited for this payment. + */ + payment_method_details: PaymentAttemptRecord.PaymentMethodDetails | null; + + /** + * ID of the Payment Record this Payment Attempt Record belongs to. + */ + payment_record: string; + + /** + * An opaque string for manual reconciliation of this payment, for example a check number or a payment processor ID. + */ + payment_reference: string | null; + + /** + * Shipping information for this payment. + */ + shipping_details: PaymentAttemptRecord.ShippingDetails | null; + } + + namespace PaymentAttemptRecord { + interface AmountCanceled { + /** + * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + */ + currency: string; + + /** + * A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) e.g., 100 cents for $1.00 or 100 for ¥100, a zero-decimal currency). + */ + value: number; + } + + interface AmountFailed { + /** + * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + */ + currency: string; + + /** + * A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) e.g., 100 cents for $1.00 or 100 for ¥100, a zero-decimal currency). + */ + value: number; + } + + interface AmountGuaranteed { + /** + * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + */ + currency: string; + + /** + * A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) e.g., 100 cents for $1.00 or 100 for ¥100, a zero-decimal currency). + */ + value: number; + } + + interface AmountRequested { + /** + * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + */ + currency: string; + + /** + * A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) e.g., 100 cents for $1.00 or 100 for ¥100, a zero-decimal currency). + */ + value: number; + } + + interface CustomerDetails { + /** + * ID of the Stripe Customer associated with this payment. + */ + customer: string | null; + + /** + * The customer's email address. + */ + email: string | null; + + /** + * The customer's name. + */ + name: string | null; + + /** + * The customer's phone number. + */ + phone: string | null; + } + + type CustomerPresence = 'off_session' | 'on_session'; + + interface PaymentMethodDetails { + /** + * The billing details associated with the method of payment. + */ + billing_details: PaymentMethodDetails.BillingDetails | null; + + /** + * Information about the custom (user-defined) payment method used to make this payment. + */ + custom: PaymentMethodDetails.Custom | null; + + /** + * ID of the Stripe PaymentMethod used to make this payment. + */ + payment_method: string | null; + + /** + * The type of Payment Method used for this payment attempt. + */ + type: 'custom'; + } + + namespace PaymentMethodDetails { + interface BillingDetails { + /** + * A representation of a physical address. + */ + address: Stripe.Address; + + /** + * The billing email associated with the method of payment. + */ + email: string | null; + + /** + * The billing name associated with the method of payment. + */ + name: string | null; + + /** + * The billing phone number associated with the method of payment. + */ + phone: string | null; + } + + interface Custom { + /** + * Display name for the custom (user-defined) payment method type used to make this payment. + */ + display_name: string; + + /** + * The custom payment method type associated with this payment. + */ + type: string | null; + } + } + + interface ShippingDetails { + /** + * A representation of a physical address. + */ + address: Stripe.Address; + + /** + * The shipping recipient's name. + */ + name: string | null; + + /** + * The shipping recipient's phone number. + */ + phone: string | null; + } + } + } +} diff --git a/types/PaymentAttemptRecordsResource.d.ts b/types/PaymentAttemptRecordsResource.d.ts new file mode 100644 index 0000000000..b4c881bb80 --- /dev/null +++ b/types/PaymentAttemptRecordsResource.d.ts @@ -0,0 +1,47 @@ +// File generated from our OpenAPI spec + +declare module 'stripe' { + namespace Stripe { + interface PaymentAttemptRecordRetrieveParams { + /** + * Specifies which fields in the response should be expanded. + */ + expand?: Array; + } + + interface PaymentAttemptRecordListParams { + /** + * The ID of the Payment Record. + */ + payment_record: string; + + /** + * Specifies which fields in the response should be expanded. + */ + expand?: Array; + } + + class PaymentAttemptRecordsResource { + /** + * Retrieves a Payment Attempt Record with the given ID + */ + retrieve( + id: string, + params?: PaymentAttemptRecordRetrieveParams, + options?: RequestOptions + ): Promise>; + retrieve( + id: string, + options?: RequestOptions + ): Promise>; + + /** + * List all the Payment Attempt Records attached to the specified Payment Record. + */ + list( + params: PaymentAttemptRecordListParams, + options?: RequestOptions + ): ApiListPromise; + } + } +} diff --git a/types/PaymentIntents.d.ts b/types/PaymentIntents.d.ts index f8b39d32c5..962206e508 100644 --- a/types/PaymentIntents.d.ts +++ b/types/PaymentIntents.d.ts @@ -156,7 +156,7 @@ declare module 'stripe' { payment_method: string | Stripe.PaymentMethod | null; /** - * Information about the payment method configuration used for this PaymentIntent. + * Information about the [payment method configuration](https://stripe.com/docs/api/payment_method_configurations) used for this PaymentIntent. */ payment_method_configuration_details: PaymentIntent.PaymentMethodConfigurationDetails | null; @@ -808,11 +808,25 @@ declare module 'stripe' { namespace FinancialAddress { interface Aba { + account_holder_address: Stripe.Address; + + /** + * The account holder name + */ + account_holder_name: string; + /** * The ABA account number */ account_number: string; + /** + * The account type + */ + account_type: string; + + bank_address: Stripe.Address; + /** * The bank name */ @@ -891,11 +905,25 @@ declare module 'stripe' { | 'zengin'; interface Swift { + account_holder_address: Stripe.Address; + + /** + * The account holder name + */ + account_holder_name: string; + /** * The account number */ account_number: string; + /** + * The account type + */ + account_type: string; + + bank_address: Stripe.Address; + /** * The bank name */ @@ -2145,6 +2173,7 @@ declare module 'stripe' { | 'girocard' | 'interac' | 'jcb' + | 'link' | 'mastercard' | 'unionpay' | 'unknown' diff --git a/types/PaymentIntentsResource.d.ts b/types/PaymentIntentsResource.d.ts index 72f2c197c6..b7e7ffe637 100644 --- a/types/PaymentIntentsResource.d.ts +++ b/types/PaymentIntentsResource.d.ts @@ -112,7 +112,7 @@ declare module 'stripe' { payment_method?: string; /** - * The ID of the payment method configuration to use with this PaymentIntent. + * The ID of the [payment method configuration](https://stripe.com/docs/api/payment_method_configurations) to use with this PaymentIntent. */ payment_method_configuration?: string; @@ -129,7 +129,7 @@ declare module 'stripe' { payment_method_options?: PaymentIntentCreateParams.PaymentMethodOptions; /** - * The list of payment method types (for example, a card) that this PaymentIntent can use. If you don't provide this, it defaults to ["card"]. Use `automatic_payment_methods` to manage payment methods from the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods). + * The list of payment method types (for example, a card) that this PaymentIntent can use. If you don't provide this, Stripe will dynamically show relevant payment methods from your [payment method settings](https://dashboard.stripe.com/settings/payment_methods). */ payment_method_types?: Array; @@ -2468,6 +2468,7 @@ declare module 'stripe' { | 'girocard' | 'interac' | 'jcb' + | 'link' | 'mastercard' | 'unionpay' | 'unknown' @@ -3920,7 +3921,7 @@ declare module 'stripe' { payment_method?: string; /** - * The ID of the payment method configuration to use with this PaymentIntent. + * The ID of the [payment method configuration](https://stripe.com/docs/api/payment_method_configurations) to use with this PaymentIntent. */ payment_method_configuration?: string; @@ -6223,6 +6224,7 @@ declare module 'stripe' { | 'girocard' | 'interac' | 'jcb' + | 'link' | 'mastercard' | 'unionpay' | 'unknown' @@ -10733,6 +10735,7 @@ declare module 'stripe' { | 'girocard' | 'interac' | 'jcb' + | 'link' | 'mastercard' | 'unionpay' | 'unknown' diff --git a/types/PaymentLinksResource.d.ts b/types/PaymentLinksResource.d.ts index 160e930b8b..34aa67e372 100644 --- a/types/PaymentLinksResource.d.ts +++ b/types/PaymentLinksResource.d.ts @@ -665,7 +665,7 @@ declare module 'stripe' { interface ShippingAddressCollection { /** * An array of two-letter ISO country codes representing which countries Checkout should provide as options for - * shipping locations. Unsupported country codes: `AS, CX, CC, CU, HM, IR, KP, MH, FM, NF, MP, PW, SD, SY, UM, VI`. + * shipping locations. */ allowed_countries: Array; } @@ -1134,6 +1134,11 @@ declare module 'stripe' { PaymentLinkUpdateParams.ShippingAddressCollection >; + /** + * Describes the type of transaction being performed in order to customize relevant text on the page, such as the submit button. Changing this value will also affect the hostname in the [url](https://stripe.com/docs/api/payment_links/payment_links/object#url) property (example: `donate.stripe.com`). + */ + submit_type?: PaymentLinkUpdateParams.SubmitType; + /** * When creating a subscription, the specified configuration data will be used. There must be at least one line item with a recurring price to use `subscription_data`. */ @@ -1589,7 +1594,7 @@ declare module 'stripe' { interface ShippingAddressCollection { /** * An array of two-letter ISO country codes representing which countries Checkout should provide as options for - * shipping locations. Unsupported country codes: `AS, CX, CC, CU, HM, IR, KP, MH, FM, NF, MP, PW, SD, SY, UM, VI`. + * shipping locations. */ allowed_countries: Array; } @@ -1835,6 +1840,8 @@ declare module 'stripe' { | 'ZZ'; } + type SubmitType = 'auto' | 'book' | 'donate' | 'pay'; + interface SubscriptionData { /** * All invoices will be billed using the specified settings. diff --git a/types/PaymentMethods.d.ts b/types/PaymentMethods.d.ts index 76bdf5b1ab..7635e681fe 100644 --- a/types/PaymentMethods.d.ts +++ b/types/PaymentMethods.d.ts @@ -271,7 +271,7 @@ declare module 'stripe' { interface Card { /** - * Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`. + * Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. */ brand: string; @@ -406,7 +406,7 @@ declare module 'stripe' { amount_authorized: number | null; /** - * Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`. + * Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. */ brand: string | null; @@ -488,7 +488,7 @@ declare module 'stripe' { last4: string | null; /** - * Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`. + * Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. */ network: string | null; @@ -731,7 +731,7 @@ declare module 'stripe' { interface CardPresent { /** - * Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`. + * Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. */ brand: string | null; diff --git a/types/PaymentRecords.d.ts b/types/PaymentRecords.d.ts new file mode 100644 index 0000000000..27c209e3e0 --- /dev/null +++ b/types/PaymentRecords.d.ts @@ -0,0 +1,259 @@ +// File generated from our OpenAPI spec + +declare module 'stripe' { + namespace Stripe { + /** + * A Payment Record is a resource that allows you to represent payments that occur on- or off-Stripe. + * For example, you can create a Payment Record to model a payment made on a different payment processor, + * in order to mark an Invoice as paid and a Subscription as active. Payment Records consist of one or + * more Payment Attempt Records, which represent individual attempts made on a payment network. + */ + interface PaymentRecord { + /** + * Unique identifier for the object. + */ + id: string; + + /** + * String representing the object's type. Objects of the same type share the same value. + */ + object: 'payment_record'; + + /** + * A representation of an amount of money, consisting of an amount and a currency. + */ + amount_canceled: PaymentRecord.AmountCanceled; + + /** + * A representation of an amount of money, consisting of an amount and a currency. + */ + amount_failed: PaymentRecord.AmountFailed; + + /** + * A representation of an amount of money, consisting of an amount and a currency. + */ + amount_guaranteed: PaymentRecord.AmountGuaranteed; + + /** + * A representation of an amount of money, consisting of an amount and a currency. + */ + amount_refunded: PaymentRecord.AmountRefunded; + + /** + * A representation of an amount of money, consisting of an amount and a currency. + */ + amount_requested: PaymentRecord.AmountRequested; + + /** + * Time at which the object was created. Measured in seconds since the Unix epoch. + */ + created: number; + + /** + * Customer information for this payment. + */ + customer_details: PaymentRecord.CustomerDetails | null; + + /** + * Indicates whether the customer was present in your checkout flow during this payment. + */ + customer_presence: PaymentRecord.CustomerPresence | null; + + /** + * An arbitrary string attached to the object. Often useful for displaying to users. + */ + description: string | null; + + /** + * ID of the latest Payment Attempt Record attached to this Payment Record. + */ + latest_payment_attempt_record: 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; + + /** + * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. + */ + metadata: Stripe.Metadata | null; + + /** + * Information about the Payment Method debited for this payment. + */ + payment_method_details: PaymentRecord.PaymentMethodDetails | null; + + /** + * An opaque string for manual reconciliation of this payment, for example a check number or a payment processor ID. + */ + payment_reference: string | null; + + /** + * Shipping information for this payment. + */ + shipping_details: PaymentRecord.ShippingDetails | null; + } + + namespace PaymentRecord { + interface AmountCanceled { + /** + * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + */ + currency: string; + + /** + * A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) e.g., 100 cents for $1.00 or 100 for ¥100, a zero-decimal currency). + */ + value: number; + } + + interface AmountFailed { + /** + * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + */ + currency: string; + + /** + * A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) e.g., 100 cents for $1.00 or 100 for ¥100, a zero-decimal currency). + */ + value: number; + } + + interface AmountGuaranteed { + /** + * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + */ + currency: string; + + /** + * A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) e.g., 100 cents for $1.00 or 100 for ¥100, a zero-decimal currency). + */ + value: number; + } + + interface AmountRefunded { + /** + * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + */ + currency: string; + + /** + * A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) e.g., 100 cents for $1.00 or 100 for ¥100, a zero-decimal currency). + */ + value: number; + } + + interface AmountRequested { + /** + * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + */ + currency: string; + + /** + * A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) e.g., 100 cents for $1.00 or 100 for ¥100, a zero-decimal currency). + */ + value: number; + } + + interface CustomerDetails { + /** + * ID of the Stripe Customer associated with this payment. + */ + customer: string | null; + + /** + * The customer's email address. + */ + email: string | null; + + /** + * The customer's name. + */ + name: string | null; + + /** + * The customer's phone number. + */ + phone: string | null; + } + + type CustomerPresence = 'off_session' | 'on_session'; + + interface PaymentMethodDetails { + /** + * The billing details associated with the method of payment. + */ + billing_details: PaymentMethodDetails.BillingDetails | null; + + /** + * Information about the custom (user-defined) payment method used to make this payment. + */ + custom: PaymentMethodDetails.Custom | null; + + /** + * ID of the Stripe PaymentMethod used to make this payment. + */ + payment_method: string | null; + + /** + * The type of Payment Method used for this payment attempt. + */ + type: 'custom'; + } + + namespace PaymentMethodDetails { + interface BillingDetails { + /** + * A representation of a physical address. + */ + address: Stripe.Address; + + /** + * The billing email associated with the method of payment. + */ + email: string | null; + + /** + * The billing name associated with the method of payment. + */ + name: string | null; + + /** + * The billing phone number associated with the method of payment. + */ + phone: string | null; + } + + interface Custom { + /** + * Display name for the custom (user-defined) payment method type used to make this payment. + */ + display_name: string; + + /** + * The custom payment method type associated with this payment. + */ + type: string | null; + } + } + + interface ShippingDetails { + /** + * A representation of a physical address. + */ + address: Stripe.Address; + + /** + * The shipping recipient's name. + */ + name: string | null; + + /** + * The shipping recipient's phone number. + */ + phone: string | null; + } + } + } +} diff --git a/types/PaymentRecordsResource.d.ts b/types/PaymentRecordsResource.d.ts new file mode 100644 index 0000000000..8db15a9f79 --- /dev/null +++ b/types/PaymentRecordsResource.d.ts @@ -0,0 +1,455 @@ +// File generated from our OpenAPI spec + +declare module 'stripe' { + namespace Stripe { + interface PaymentRecordRetrieveParams { + /** + * Specifies which fields in the response should be expanded. + */ + expand?: Array; + } + + interface PaymentRecordReportPaymentParams { + /** + * The amount you intend to collect for this payment. + */ + amount_requested: PaymentRecordReportPaymentParams.AmountRequested; + + /** + * When the reported payment was initiated. Measured in seconds since the Unix epoch. + */ + initiated_at: number; + + /** + * Information about the Payment Method debited for this payment. + */ + payment_method_details: PaymentRecordReportPaymentParams.PaymentMethodDetails; + + /** + * An opaque string for manual reconciliation of this payment, for example a check number or a payment processor ID. + */ + payment_reference: string; + + /** + * Customer information for this payment. + */ + customer_details?: PaymentRecordReportPaymentParams.CustomerDetails; + + /** + * Indicates whether the customer was present in your checkout flow during this payment. + */ + customer_presence?: PaymentRecordReportPaymentParams.CustomerPresence; + + /** + * An arbitrary string attached to the object. Often useful for displaying to users. + */ + description?: string; + + /** + * Specifies which fields in the response should be expanded. + */ + expand?: Array; + + /** + * Information about the payment attempt failure. + */ + failed?: PaymentRecordReportPaymentParams.Failed; + + /** + * Information about the payment attempt guarantee. + */ + guaranteed?: PaymentRecordReportPaymentParams.Guaranteed; + + /** + * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. + */ + metadata?: Stripe.MetadataParam; + + /** + * The outcome of the reported payment. + */ + outcome?: PaymentRecordReportPaymentParams.Outcome; + + /** + * Shipping information for this payment. + */ + shipping_details?: PaymentRecordReportPaymentParams.ShippingDetails; + } + + namespace PaymentRecordReportPaymentParams { + interface AmountRequested { + /** + * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + */ + currency: string; + + /** + * A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) e.g., 100 cents for $1.00 or 100 for ¥100, a zero-decimal currency). + */ + value: number; + } + + interface CustomerDetails { + /** + * The customer who made the payment. + */ + customer?: string; + + /** + * The customer's phone number. + */ + email?: string; + + /** + * The customer's name. + */ + name?: string; + + /** + * The customer's phone number. + */ + phone?: string; + } + + type CustomerPresence = 'off_session' | 'on_session'; + + interface Failed { + /** + * When the reported payment failed. Measured in seconds since the Unix epoch. + */ + failed_at: number; + } + + interface Guaranteed { + /** + * When the reported payment was guaranteed. Measured in seconds since the Unix epoch. + */ + guaranteed_at: number; + } + + type Outcome = 'failed' | 'guaranteed'; + + interface PaymentMethodDetails { + /** + * The billing details associated with the method of payment. + */ + billing_details?: PaymentMethodDetails.BillingDetails; + + /** + * Information about the custom (user-defined) payment method used to make this payment. + */ + custom?: PaymentMethodDetails.Custom; + + /** + * ID of the Stripe Payment Method used to make this payment. + */ + payment_method?: string; + + /** + * The type of the payment method details. An additional hash is included on the payment_method_details with a name matching this value. It contains additional information specific to the type. + */ + type?: 'custom'; + } + + namespace PaymentMethodDetails { + interface BillingDetails { + /** + * The billing address associated with the method of payment. + */ + address?: Stripe.AddressParam; + + /** + * The billing email associated with the method of payment. + */ + email?: string; + + /** + * The billing name associated with the method of payment. + */ + name?: string; + + /** + * The billing phone number associated with the method of payment. + */ + phone?: string; + } + + interface Custom { + /** + * Display name for the custom (user-defined) payment method type used to make this payment. + */ + display_name?: string; + + /** + * The custom payment method type associated with this payment. + */ + type?: string; + } + } + + interface ShippingDetails { + /** + * The physical shipping address. + */ + address?: Stripe.AddressParam; + + /** + * The shipping recipient's name. + */ + name?: string; + + /** + * The shipping recipient's phone number. + */ + phone?: string; + } + } + + interface PaymentRecordReportPaymentAttemptParams { + /** + * When the reported payment was initiated. Measured in seconds since the Unix epoch. + */ + initiated_at: number; + + /** + * An arbitrary string attached to the object. Often useful for displaying to users. + */ + description?: string; + + /** + * Specifies which fields in the response should be expanded. + */ + expand?: Array; + + /** + * Information about the payment attempt failure. + */ + failed?: PaymentRecordReportPaymentAttemptParams.Failed; + + /** + * Information about the payment attempt guarantee. + */ + guaranteed?: PaymentRecordReportPaymentAttemptParams.Guaranteed; + + /** + * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. + */ + metadata?: Stripe.MetadataParam; + + /** + * The outcome of the reported payment. + */ + outcome?: PaymentRecordReportPaymentAttemptParams.Outcome; + + /** + * Information about the Payment Method debited for this payment. + */ + payment_method_details?: PaymentRecordReportPaymentAttemptParams.PaymentMethodDetails; + + /** + * Shipping information for this payment. + */ + shipping_details?: PaymentRecordReportPaymentAttemptParams.ShippingDetails; + } + + namespace PaymentRecordReportPaymentAttemptParams { + interface Failed { + /** + * When the reported payment failed. Measured in seconds since the Unix epoch. + */ + failed_at: number; + } + + interface Guaranteed { + /** + * When the reported payment was guaranteed. Measured in seconds since the Unix epoch. + */ + guaranteed_at: number; + } + + type Outcome = 'failed' | 'guaranteed'; + + interface PaymentMethodDetails { + /** + * The billing details associated with the method of payment. + */ + billing_details?: PaymentMethodDetails.BillingDetails; + + /** + * Information about the custom (user-defined) payment method used to make this payment. + */ + custom?: PaymentMethodDetails.Custom; + + /** + * ID of the Stripe Payment Method used to make this payment. + */ + payment_method?: string; + + /** + * The type of the payment method details. An additional hash is included on the payment_method_details with a name matching this value. It contains additional information specific to the type. + */ + type?: 'custom'; + } + + namespace PaymentMethodDetails { + interface BillingDetails { + /** + * The billing address associated with the method of payment. + */ + address?: Stripe.AddressParam; + + /** + * The billing email associated with the method of payment. + */ + email?: string; + + /** + * The billing name associated with the method of payment. + */ + name?: string; + + /** + * The billing phone number associated with the method of payment. + */ + phone?: string; + } + + interface Custom { + /** + * Display name for the custom (user-defined) payment method type used to make this payment. + */ + display_name?: string; + + /** + * The custom payment method type associated with this payment. + */ + type?: string; + } + } + + interface ShippingDetails { + /** + * The physical shipping address. + */ + address?: Stripe.AddressParam; + + /** + * The shipping recipient's name. + */ + name?: string; + + /** + * The shipping recipient's phone number. + */ + phone?: string; + } + } + + interface PaymentRecordReportPaymentAttemptCanceledParams { + /** + * When the reported payment was canceled. Measured in seconds since the Unix epoch. + */ + canceled_at: number; + + /** + * Specifies which fields in the response should be expanded. + */ + expand?: Array; + + metadata?: Stripe.MetadataParam; + } + + interface PaymentRecordReportPaymentAttemptFailedParams { + /** + * When the reported payment failed. Measured in seconds since the Unix epoch. + */ + failed_at: number; + + /** + * Specifies which fields in the response should be expanded. + */ + expand?: Array; + + metadata?: Stripe.MetadataParam; + } + + interface PaymentRecordReportPaymentAttemptGuaranteedParams { + /** + * When the reported payment was guaranteed. Measured in seconds since the Unix epoch. + */ + guaranteed_at: number; + + /** + * Specifies which fields in the response should be expanded. + */ + expand?: Array; + + metadata?: Stripe.MetadataParam; + } + + class PaymentRecordsResource { + /** + * Retrieves a Payment Record with the given ID + */ + retrieve( + id: string, + params?: PaymentRecordRetrieveParams, + options?: RequestOptions + ): Promise>; + retrieve( + id: string, + options?: RequestOptions + ): Promise>; + + /** + * Report a new Payment Record. You may report a Payment Record as it is + * initialized and later report updates through the other report_* methods, or report Payment + * Records in a terminal state directly, through this method. + */ + reportPayment( + params: PaymentRecordReportPaymentParams, + options?: RequestOptions + ): Promise>; + + /** + * Report a new payment attempt on the specified Payment Record. A new payment + * attempt can only be specified if all other payment attempts are canceled or failed. + */ + reportPaymentAttempt( + id: string, + params: PaymentRecordReportPaymentAttemptParams, + options?: RequestOptions + ): Promise>; + + /** + * Report that the most recent payment attempt on the specified Payment Record + * was canceled. + */ + reportPaymentAttemptCanceled( + id: string, + params: PaymentRecordReportPaymentAttemptCanceledParams, + options?: RequestOptions + ): Promise>; + + /** + * Report that the most recent payment attempt on the specified Payment Record + * failed or errored. + */ + reportPaymentAttemptFailed( + id: string, + params: PaymentRecordReportPaymentAttemptFailedParams, + options?: RequestOptions + ): Promise>; + + /** + * Report that the most recent payment attempt on the specified Payment Record + * was guaranteed. + */ + reportPaymentAttemptGuaranteed( + id: string, + params: PaymentRecordReportPaymentAttemptGuaranteedParams, + options?: RequestOptions + ): Promise>; + } + } +} diff --git a/types/QuotePreviewInvoices.d.ts b/types/QuotePreviewInvoices.d.ts index 99f5cb232d..56217b1852 100644 --- a/types/QuotePreviewInvoices.d.ts +++ b/types/QuotePreviewInvoices.d.ts @@ -69,6 +69,11 @@ declare module 'stripe' { */ amount_due: number; + /** + * Amount that was overpaid on the invoice. Overpayments are debited to the customer's credit balance. + */ + amount_overpaid?: number; + /** * The amount, in cents (or local equivalent), that was paid. */ @@ -603,7 +608,7 @@ declare module 'stripe' { interface CustomerTaxId { /** - * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, or `unknown` + * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, or `unknown` */ type: CustomerTaxId.Type; @@ -661,6 +666,7 @@ declare module 'stripe' { | 'kr_brn' | 'kz_bin' | 'li_uid' + | 'li_vat' | 'ma_vat' | 'md_vat' | 'mx_rfc' @@ -1248,6 +1254,7 @@ declare module 'stripe' { | 'boleto' | 'card' | 'cashapp' + | 'custom' | 'customer_balance' | 'eps' | 'fpx' diff --git a/types/SetupAttempts.d.ts b/types/SetupAttempts.d.ts index 0ff2e9aa87..d12b9c4067 100644 --- a/types/SetupAttempts.d.ts +++ b/types/SetupAttempts.d.ts @@ -199,7 +199,7 @@ declare module 'stripe' { interface Card { /** - * Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`. + * Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. */ brand: string | null; @@ -256,7 +256,7 @@ declare module 'stripe' { last4: string | null; /** - * Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`. + * Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. */ network: string | null; diff --git a/types/SetupIntents.d.ts b/types/SetupIntents.d.ts index d7758694e6..081c0ecf8a 100644 --- a/types/SetupIntents.d.ts +++ b/types/SetupIntents.d.ts @@ -130,7 +130,7 @@ declare module 'stripe' { payment_method: string | Stripe.PaymentMethod | null; /** - * Information about the payment method configuration used for this Setup Intent. + * Information about the [payment method configuration](https://stripe.com/docs/api/payment_method_configurations) used for this Setup Intent. */ payment_method_configuration_details: SetupIntent.PaymentMethodConfigurationDetails | null; @@ -747,6 +747,7 @@ declare module 'stripe' { | 'girocard' | 'interac' | 'jcb' + | 'link' | 'mastercard' | 'unionpay' | 'unknown' diff --git a/types/SetupIntentsResource.d.ts b/types/SetupIntentsResource.d.ts index afa38935a3..1d39e42968 100644 --- a/types/SetupIntentsResource.d.ts +++ b/types/SetupIntentsResource.d.ts @@ -72,7 +72,7 @@ declare module 'stripe' { payment_method?: string; /** - * The ID of the payment method configuration to use with this SetupIntent. + * The ID of the [payment method configuration](https://stripe.com/docs/api/payment_method_configurations) to use with this SetupIntent. */ payment_method_configuration?: string; @@ -88,7 +88,7 @@ declare module 'stripe' { payment_method_options?: SetupIntentCreateParams.PaymentMethodOptions; /** - * The list of payment method types (for example, card) that this SetupIntent can use. If you don't provide this, it defaults to ["card"]. + * The list of payment method types (for example, card) that this SetupIntent can use. If you don't provide this, Stripe will dynamically show relevant payment methods from your [payment method settings](https://dashboard.stripe.com/settings/payment_methods). */ payment_method_types?: Array; @@ -1169,6 +1169,7 @@ declare module 'stripe' { | 'girocard' | 'interac' | 'jcb' + | 'link' | 'mastercard' | 'unionpay' | 'unknown' @@ -1557,7 +1558,7 @@ declare module 'stripe' { payment_method?: string; /** - * The ID of the payment method configuration to use with this SetupIntent. + * The ID of the [payment method configuration](https://stripe.com/docs/api/payment_method_configurations) to use with this SetupIntent. */ payment_method_configuration?: string; @@ -1573,7 +1574,7 @@ declare module 'stripe' { payment_method_options?: SetupIntentUpdateParams.PaymentMethodOptions; /** - * The list of payment method types (for example, card) that this SetupIntent can set up. If you don't provide this array, it defaults to ["card"]. + * The list of payment method types (for example, card) that this SetupIntent can set up. If you don't provide this, Stripe will dynamically show relevant payment methods from your [payment method settings](https://dashboard.stripe.com/settings/payment_methods). */ payment_method_types?: Array; } @@ -2567,6 +2568,7 @@ declare module 'stripe' { | 'girocard' | 'interac' | 'jcb' + | 'link' | 'mastercard' | 'unionpay' | 'unknown' @@ -4014,6 +4016,7 @@ declare module 'stripe' { | 'girocard' | 'interac' | 'jcb' + | 'link' | 'mastercard' | 'unionpay' | 'unknown' diff --git a/types/Subscriptions.d.ts b/types/Subscriptions.d.ts index 7fa17f2552..a07bec8280 100644 --- a/types/Subscriptions.d.ts +++ b/types/Subscriptions.d.ts @@ -580,6 +580,7 @@ declare module 'stripe' { | 'girocard' | 'interac' | 'jcb' + | 'link' | 'mastercard' | 'unionpay' | 'unknown' @@ -696,6 +697,7 @@ declare module 'stripe' { | 'boleto' | 'card' | 'cashapp' + | 'custom' | 'customer_balance' | 'eps' | 'fpx' diff --git a/types/SubscriptionsResource.d.ts b/types/SubscriptionsResource.d.ts index 0aea6de181..65547a1185 100644 --- a/types/SubscriptionsResource.d.ts +++ b/types/SubscriptionsResource.d.ts @@ -828,6 +828,7 @@ declare module 'stripe' { | 'girocard' | 'interac' | 'jcb' + | 'link' | 'mastercard' | 'unionpay' | 'unknown' @@ -952,6 +953,7 @@ declare module 'stripe' { | 'boleto' | 'card' | 'cashapp' + | 'custom' | 'customer_balance' | 'eps' | 'fpx' @@ -1879,6 +1881,7 @@ declare module 'stripe' { | 'girocard' | 'interac' | 'jcb' + | 'link' | 'mastercard' | 'unionpay' | 'unknown' @@ -2003,6 +2006,7 @@ declare module 'stripe' { | 'boleto' | 'card' | 'cashapp' + | 'custom' | 'customer_balance' | 'eps' | 'fpx' diff --git a/types/Tax/CalculationLineItems.d.ts b/types/Tax/CalculationLineItems.d.ts index eae8271ddc..5ad96d0132 100644 --- a/types/Tax/CalculationLineItems.d.ts +++ b/types/Tax/CalculationLineItems.d.ts @@ -172,6 +172,7 @@ declare module 'stripe' { | 'retail_delivery_fee' | 'rst' | 'sales_tax' + | 'service_tax' | 'vat'; } } diff --git a/types/Tax/Calculations.d.ts b/types/Tax/Calculations.d.ts index 0aef408064..564f1da7c8 100644 --- a/types/Tax/Calculations.d.ts +++ b/types/Tax/Calculations.d.ts @@ -120,7 +120,7 @@ declare module 'stripe' { interface TaxId { /** - * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, or `unknown` + * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, or `unknown` */ type: TaxId.Type; @@ -178,6 +178,7 @@ declare module 'stripe' { | 'kr_brn' | 'kz_bin' | 'li_uid' + | 'li_vat' | 'ma_vat' | 'md_vat' | 'mx_rfc' @@ -361,6 +362,7 @@ declare module 'stripe' { | 'retail_delivery_fee' | 'rst' | 'sales_tax' + | 'service_tax' | 'vat'; } } @@ -468,6 +470,7 @@ declare module 'stripe' { | 'retail_delivery_fee' | 'rst' | 'sales_tax' + | 'service_tax' | 'vat'; } } diff --git a/types/Tax/CalculationsResource.d.ts b/types/Tax/CalculationsResource.d.ts index d1fb0dbe7f..e170e8f5c3 100644 --- a/types/Tax/CalculationsResource.d.ts +++ b/types/Tax/CalculationsResource.d.ts @@ -115,7 +115,7 @@ declare module 'stripe' { interface TaxId { /** - * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` + * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` */ type: TaxId.Type; @@ -173,6 +173,7 @@ declare module 'stripe' { | 'kr_brn' | 'kz_bin' | 'li_uid' + | 'li_vat' | 'ma_vat' | 'md_vat' | 'mx_rfc' diff --git a/types/Tax/Transactions.d.ts b/types/Tax/Transactions.d.ts index 39a863a762..80d4bc988d 100644 --- a/types/Tax/Transactions.d.ts +++ b/types/Tax/Transactions.d.ts @@ -125,7 +125,7 @@ declare module 'stripe' { interface TaxId { /** - * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, or `unknown` + * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, or `unknown` */ type: TaxId.Type; @@ -183,6 +183,7 @@ declare module 'stripe' { | 'kr_brn' | 'kz_bin' | 'li_uid' + | 'li_vat' | 'ma_vat' | 'md_vat' | 'mx_rfc' @@ -373,6 +374,7 @@ declare module 'stripe' { | 'retail_delivery_fee' | 'rst' | 'sales_tax' + | 'service_tax' | 'vat'; } } diff --git a/types/TaxIds.d.ts b/types/TaxIds.d.ts index d8127b04cf..a85a2cc098 100644 --- a/types/TaxIds.d.ts +++ b/types/TaxIds.d.ts @@ -70,7 +70,7 @@ declare module 'stripe' { owner: TaxId.Owner | null; /** - * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat`. Note that some legacy tax IDs have type `unknown` + * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat`. Note that some legacy tax IDs have type `unknown` */ type: TaxId.Type; @@ -159,6 +159,7 @@ declare module 'stripe' { | 'kr_brn' | 'kz_bin' | 'li_uid' + | 'li_vat' | 'ma_vat' | 'md_vat' | 'mx_rfc' diff --git a/types/TaxIdsResource.d.ts b/types/TaxIdsResource.d.ts index d92a6c5aee..cb3624019d 100644 --- a/types/TaxIdsResource.d.ts +++ b/types/TaxIdsResource.d.ts @@ -4,7 +4,7 @@ declare module 'stripe' { namespace Stripe { interface TaxIdCreateParams { /** - * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` + * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` */ type: TaxIdCreateParams.Type; @@ -93,6 +93,7 @@ declare module 'stripe' { | 'kr_brn' | 'kz_bin' | 'li_uid' + | 'li_vat' | 'ma_vat' | 'md_vat' | 'mx_rfc' diff --git a/types/TaxRates.d.ts b/types/TaxRates.d.ts index 76f9e75d16..367a957de6 100644 --- a/types/TaxRates.d.ts +++ b/types/TaxRates.d.ts @@ -137,6 +137,7 @@ declare module 'stripe' { | 'retail_delivery_fee' | 'rst' | 'sales_tax' + | 'service_tax' | 'vat'; } } diff --git a/types/TaxRatesResource.d.ts b/types/TaxRatesResource.d.ts index 944f013786..eb307b6f9b 100644 --- a/types/TaxRatesResource.d.ts +++ b/types/TaxRatesResource.d.ts @@ -73,6 +73,7 @@ declare module 'stripe' { | 'retail_delivery_fee' | 'rst' | 'sales_tax' + | 'service_tax' | 'vat'; } @@ -144,6 +145,7 @@ declare module 'stripe' { | 'retail_delivery_fee' | 'rst' | 'sales_tax' + | 'service_tax' | 'vat'; } diff --git a/types/TestHelpers/Issuing/AuthorizationsResource.d.ts b/types/TestHelpers/Issuing/AuthorizationsResource.d.ts index 1734eff878..fae76c7b65 100644 --- a/types/TestHelpers/Issuing/AuthorizationsResource.d.ts +++ b/types/TestHelpers/Issuing/AuthorizationsResource.d.ts @@ -6,14 +6,14 @@ declare module 'stripe' { namespace Issuing { interface AuthorizationCreateParams { /** - * The total amount to attempt to authorize. This amount is in the provided currency, or defaults to the card's currency, and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). + * Card associated with this authorization. */ - amount: number; + card: string; /** - * Card associated with this authorization. + * The total amount to attempt to authorize. This amount is in the provided currency, or defaults to the card's currency, and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). */ - card: string; + amount?: number; /** * Detailed breakdown of amount components. These amounts are denominated in `currency` and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). @@ -50,6 +50,16 @@ declare module 'stripe' { */ is_amount_controllable?: boolean; + /** + * The total amount to attempt to authorize. This amount is in the provided merchant currency, and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). + */ + merchant_amount?: number; + + /** + * The currency of the authorization. If not provided, defaults to the currency of the card. Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + */ + merchant_currency?: string; + /** * Details about the seller (grocery store, e-commerce website, etc.) where the card authorization happened. */ diff --git a/types/Treasury/InboundTransfers.d.ts b/types/Treasury/InboundTransfers.d.ts index 0d6a4701b5..5c031a5064 100644 --- a/types/Treasury/InboundTransfers.d.ts +++ b/types/Treasury/InboundTransfers.d.ts @@ -74,7 +74,7 @@ declare module 'stripe' { /** * The origin payment method to be debited for an InboundTransfer. */ - origin_payment_method: string; + origin_payment_method: string | null; /** * Details about the PaymentMethod for an InboundTransfer. diff --git a/types/V2/BillingResource.d.ts b/types/V2/BillingResource.d.ts deleted file mode 100644 index a57eee05c7..0000000000 --- a/types/V2/BillingResource.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -// File generated from our OpenAPI spec - -declare module 'stripe' { - namespace Stripe { - namespace V2 { - class BillingResource { - meterEventSession: Stripe.V2.Billing.MeterEventSessionResource; - meterEventAdjustments: Stripe.V2.Billing.MeterEventAdjustmentsResource; - meterEventStream: Stripe.V2.Billing.MeterEventStreamResource; - meterEvents: Stripe.V2.Billing.MeterEventsResource; - } - } - } -} diff --git a/types/V2/CoreResource.d.ts b/types/V2/CoreResource.d.ts deleted file mode 100644 index f9e54d2ffc..0000000000 --- a/types/V2/CoreResource.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -// File generated from our OpenAPI spec - -declare module 'stripe' { - namespace Stripe { - namespace V2 { - class CoreResource { - eventDestinations: Stripe.V2.Core.EventDestinationsResource; - events: Stripe.V2.Core.EventsResource; - } - } - } -} diff --git a/types/V2Resource.d.ts b/types/V2Resource.d.ts deleted file mode 100644 index b882341036..0000000000 --- a/types/V2Resource.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -// File generated from our OpenAPI spec - -declare module 'stripe' { - namespace Stripe { - class V2Resource { - billing: Stripe.V2.BillingResource; - core: Stripe.V2.CoreResource; - } - } -} diff --git a/types/WebhookEndpointsResource.d.ts b/types/WebhookEndpointsResource.d.ts index ceda0aeffa..4fd18762b7 100644 --- a/types/WebhookEndpointsResource.d.ts +++ b/types/WebhookEndpointsResource.d.ts @@ -258,6 +258,7 @@ declare module 'stripe' { | 'invoice.paid' | 'invoice.payment.overpaid' | 'invoice.payment_action_required' + | 'invoice.payment_attempt_required' | 'invoice.payment_failed' | 'invoice.payment_succeeded' | 'invoice.sent' @@ -282,6 +283,7 @@ declare module 'stripe' { | 'issuing_dispute.updated' | 'issuing_dispute_settlement_detail.created' | 'issuing_dispute_settlement_detail.updated' + | 'issuing_fraud_liability_debit.created' | 'issuing_personalization_design.activated' | 'issuing_personalization_design.deactivated' | 'issuing_personalization_design.rejected' @@ -573,6 +575,7 @@ declare module 'stripe' { | 'invoice.paid' | 'invoice.payment.overpaid' | 'invoice.payment_action_required' + | 'invoice.payment_attempt_required' | 'invoice.payment_failed' | 'invoice.payment_succeeded' | 'invoice.sent' @@ -597,6 +600,7 @@ declare module 'stripe' { | 'issuing_dispute.updated' | 'issuing_dispute_settlement_detail.created' | 'issuing_dispute_settlement_detail.updated' + | 'issuing_fraud_liability_debit.created' | 'issuing_personalization_design.activated' | 'issuing_personalization_design.deactivated' | 'issuing_personalization_design.rejected' diff --git a/types/index.d.ts b/types/index.d.ts index 103d9c84cf..6bd3b631a3 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -69,6 +69,7 @@ /// /// /// +/// /// /// /// @@ -76,11 +77,13 @@ /// /// /// +/// /// /// /// /// /// +/// /// /// /// @@ -147,11 +150,8 @@ /// /// /// -/// /// /// -/// -/// /// /// /// @@ -235,6 +235,7 @@ /// /// /// +/// /// /// /// @@ -245,11 +246,13 @@ /// /// /// +/// /// /// /// /// /// +/// /// /// /// @@ -367,11 +370,13 @@ declare module 'stripe' { mandates: Stripe.MandatesResource; margins: Stripe.MarginsResource; orders: Stripe.OrdersResource; + paymentAttemptRecords: Stripe.PaymentAttemptRecordsResource; paymentIntents: Stripe.PaymentIntentsResource; paymentLinks: Stripe.PaymentLinksResource; paymentMethodConfigurations: Stripe.PaymentMethodConfigurationsResource; paymentMethodDomains: Stripe.PaymentMethodDomainsResource; paymentMethods: Stripe.PaymentMethodsResource; + paymentRecords: Stripe.PaymentRecordsResource; payouts: Stripe.PayoutsResource; plans: Stripe.PlansResource; prices: Stripe.PricesResource; @@ -393,7 +398,6 @@ declare module 'stripe' { tokens: Stripe.TokensResource; topups: Stripe.TopupsResource; transfers: Stripe.TransfersResource; - v2: Stripe.V2Resource; webhookEndpoints: Stripe.WebhookEndpointsResource; apps: { secrets: Stripe.Apps.SecretsResource; @@ -452,6 +456,7 @@ declare module 'stripe' { creditUnderwritingRecords: Stripe.Issuing.CreditUnderwritingRecordsResource; disputes: Stripe.Issuing.DisputesResource; disputeSettlementDetails: Stripe.Issuing.DisputeSettlementDetailsResource; + fraudLiabilityDebits: Stripe.Issuing.FraudLiabilityDebitsResource; personalizationDesigns: Stripe.Issuing.PersonalizationDesignsResource; physicalBundles: Stripe.Issuing.PhysicalBundlesResource; tokens: Stripe.Issuing.TokensResource; @@ -518,6 +523,18 @@ declare module 'stripe' { transactions: Stripe.Treasury.TransactionsResource; transactionEntries: Stripe.Treasury.TransactionEntriesResource; }; + v2: { + billing: { + meterEventSession: Stripe.V2.Billing.MeterEventSessionResource; + meterEventAdjustments: Stripe.V2.Billing.MeterEventAdjustmentsResource; + meterEventStream: Stripe.V2.Billing.MeterEventStreamResource; + meterEvents: Stripe.V2.Billing.MeterEventsResource; + }; + core: { + eventDestinations: Stripe.V2.Core.EventDestinationsResource; + events: Stripe.V2.Core.EventsResource; + }; + }; // Fields: The end of the section generated from our OpenAPI spec webhooks: Stripe.Webhooks; oauth: Stripe.OAuthResource; diff --git a/types/lib.d.ts b/types/lib.d.ts index 66a33f2dc6..8accb6f3c2 100644 --- a/types/lib.d.ts +++ b/types/lib.d.ts @@ -27,7 +27,7 @@ declare module 'stripe' { }): (...args: any[]) => Response; //eslint-disable-line @typescript-eslint/no-explicit-any static MAX_BUFFERED_REQUEST_METRICS: number; } - export type LatestApiVersion = '2024-09-30.acacia'; + export type LatestApiVersion = '2024-10-28.acacia'; export type HttpAgent = Agent; export type HttpProtocol = 'http' | 'https'; diff --git a/types/test/typescriptTest.ts b/types/test/typescriptTest.ts index e83aaa73c3..a3ac094ca5 100644 --- a/types/test/typescriptTest.ts +++ b/types/test/typescriptTest.ts @@ -9,7 +9,7 @@ import Stripe from 'stripe'; let stripe = new Stripe('sk_test_123', { - apiVersion: '2024-09-30.acacia', + apiVersion: '2024-10-28.acacia', }); stripe = new Stripe('sk_test_123'); @@ -26,7 +26,7 @@ stripe = new Stripe('sk_test_123', { // Check config object. stripe = new Stripe('sk_test_123', { - apiVersion: '2024-09-30.acacia', + apiVersion: '2024-10-28.acacia', typescript: true, maxNetworkRetries: 1, timeout: 1000, @@ -44,7 +44,7 @@ stripe = new Stripe('sk_test_123', { description: 'test', }; const opts: Stripe.RequestOptions = { - apiVersion: '2024-09-30.acacia', + apiVersion: '2024-10-28.acacia', }; const customer: Stripe.Customer = await stripe.customers.create(params, opts);