Email Sorter Beta
Ich habe soweit automatisiert the Emails sortieren aber ich muss noch schauen was es fur bugs es gibt wenn die app online ist deswegen wurde ich mit diesen Commit die website veroffentlichen obwohjl es sein konnte das es noch nicht fertig ist und verkaufs bereit
This commit is contained in:
533
server/node_modules/stripe/CHANGELOG.md
generated
vendored
533
server/node_modules/stripe/CHANGELOG.md
generated
vendored
@@ -1,4 +1,535 @@
|
||||
# Changelog
|
||||
## 17.7.0 - 2025-02-24
|
||||
* [#2256](https://github.com/stripe/stripe-node/pull/2256) Update generated code
|
||||
* Add support for `prices` on `Billing.CreditBalanceSummaryRetrieveParams.filter.applicability_scope`, `Billing.CreditGrant.applicability_config.scope`, and `Billing.CreditGrantCreateParams.applicability_config.scope`
|
||||
* Change `Billing.CreditBalanceSummaryRetrieveParams.filter.applicability_scope.price_type`, `Billing.CreditGrant.applicability_config.scope.price_type`, and `Billing.CreditGrantCreateParams.applicability_config.scope.price_type` to be optional
|
||||
* Add support for `priority` on `Billing.CreditGrantCreateParams` and `Billing.CreditGrant`
|
||||
* Add support for `target_date` on `Checkout.Session.payment_method_options.acss_debit`, `Checkout.Session.payment_method_options.au_becs_debit`, `Checkout.Session.payment_method_options.bacs_debit`, `Checkout.Session.payment_method_options.sepa_debit`, `Checkout.Session.payment_method_options.us_bank_account`, `Checkout.SessionCreateParams.payment_method_options.acss_debit`, `Checkout.SessionCreateParams.payment_method_options.au_becs_debit`, `Checkout.SessionCreateParams.payment_method_options.bacs_debit`, `Checkout.SessionCreateParams.payment_method_options.sepa_debit`, `Checkout.SessionCreateParams.payment_method_options.us_bank_account`, `PaymentIntent.payment_method_options.acss_debit`, `PaymentIntent.payment_method_options.au_becs_debit`, `PaymentIntent.payment_method_options.bacs_debit`, `PaymentIntent.payment_method_options.sepa_debit`, `PaymentIntent.payment_method_options.us_bank_account`, `PaymentIntentConfirmParams.payment_method_options.acss_debit`, `PaymentIntentConfirmParams.payment_method_options.au_becs_debit`, `PaymentIntentConfirmParams.payment_method_options.bacs_debit`, `PaymentIntentConfirmParams.payment_method_options.sepa_debit`, `PaymentIntentConfirmParams.payment_method_options.us_bank_account`, `PaymentIntentCreateParams.payment_method_options.acss_debit`, `PaymentIntentCreateParams.payment_method_options.au_becs_debit`, `PaymentIntentCreateParams.payment_method_options.bacs_debit`, `PaymentIntentCreateParams.payment_method_options.sepa_debit`, `PaymentIntentCreateParams.payment_method_options.us_bank_account`, `PaymentIntentUpdateParams.payment_method_options.acss_debit`, `PaymentIntentUpdateParams.payment_method_options.au_becs_debit`, `PaymentIntentUpdateParams.payment_method_options.bacs_debit`, `PaymentIntentUpdateParams.payment_method_options.sepa_debit`, and `PaymentIntentUpdateParams.payment_method_options.us_bank_account`
|
||||
* Add support for `restrictions` on `Checkout.Session.payment_method_options.card` and `Checkout.SessionCreateParams.payment_method_options.card`
|
||||
* Add support for `collected_information` on `Checkout.SessionUpdateParams` and `Checkout.Session`
|
||||
* Change `Checkout.Session.discounts`, `Refund.destination_details.blik.network_decline_code`, and `Refund.destination_details.swish.network_decline_code` to be required
|
||||
* Add support for `metadata` on `ProductCreateParams.default_price_data`
|
||||
* Change type of `TokenCreateParams.person.political_exposure` from `string` to `enum('existing'|'none')`
|
||||
* Add support for new value `2025-02-24.acacia` on enum `WebhookEndpointCreateParams.api_version`
|
||||
* [#2259](https://github.com/stripe/stripe-node/pull/2259) Add Next.js App Router webhook example that leverages Route Handlers
|
||||
* [#2257](https://github.com/stripe/stripe-node/pull/2257) Include `OPENAPI_VERSION` into npm bundle
|
||||
|
||||
## 17.6.0 - 2025-01-27
|
||||
* [#2250](https://github.com/stripe/stripe-node/pull/2250) Update generated code
|
||||
* Add support for `close` method on resource `Treasury.FinancialAccount`
|
||||
* Add support for `pay_by_bank_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities`
|
||||
* Add support for `directorship_declaration` and `ownership_exemption_reason` on `Account.company`, `AccountCreateParams.company`, `AccountUpdateParams.company`, and `TokenCreateParams.account.company`
|
||||
* Add support for `proof_of_ultimate_beneficial_ownership` on `AccountCreateParams.documents` and `AccountUpdateParams.documents`
|
||||
* Add support for `financial_account` on `AccountSession.components`, `AccountSessionCreateParams.components`, and `Treasury.OutboundTransfer.destination_payment_method_details`
|
||||
* Add support for `financial_account_transactions`, `issuing_card`, and `issuing_cards_list` on `AccountSession.components` and `AccountSessionCreateParams.components`
|
||||
* Add support for `advice_code` on `Charge.outcome`, `Invoice.last_finalization_error`, `PaymentIntent.last_payment_error`, `SetupAttempt.setup_error`, `SetupIntent.last_setup_error`, and `StripeError`
|
||||
* Change `Billing.CreditBalanceTransaction.credit.credits_application_invoice_voided`, `Card.regulated_status`, `Charge.payment_method_details.card.network_transaction_id`, `Charge.payment_method_details.card.regulated_status`, `ConfirmationToken.payment_method_preview.card.regulated_status`, `CreditNote.pretax_credit_amounts`, `Invoice.total_pretax_credit_amounts`, `Issuing.Authorization.merchant_data.tax_id`, `Issuing.Transaction.merchant_data.tax_id`, and `PaymentMethod.card.regulated_status` to be required
|
||||
* Add support for `pay_by_bank` on `Charge.payment_method_details`, `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`, `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, `PaymentMethodConfiguration`, `PaymentMethodCreateParams`, `PaymentMethodUpdateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data`
|
||||
* Add support for `country` on `Charge.payment_method_details.paypal`, `ConfirmationToken.payment_method_preview.paypal`, and `PaymentMethod.paypal`
|
||||
* Add support for new value `pay_by_bank` on enums `Checkout.SessionCreateParams.payment_method_types[]`, `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type`
|
||||
* Add support for new value `SD` on enums `Checkout.Session.shipping_address_collection.allowed_countries[]`, `Checkout.SessionCreateParams.shipping_address_collection.allowed_countries[]`, `PaymentLink.shipping_address_collection.allowed_countries[]`, `PaymentLinkCreateParams.shipping_address_collection.allowed_countries[]`, and `PaymentLinkUpdateParams.shipping_address_collection.allowed_countries[]`
|
||||
* Add support for `discounts` on `Checkout.Session`
|
||||
* Add support for new value `pay_by_bank` 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 value `pay_by_bank` on enums `ConfirmationToken.payment_method_preview.type` and `PaymentMethod.type`
|
||||
* Add support for new value `pay_by_bank` on enums `PaymentLink.payment_method_types[]`, `PaymentLinkCreateParams.payment_method_types[]`, and `PaymentLinkUpdateParams.payment_method_types[]`
|
||||
* Add support for `phone_number_collection` on `PaymentLinkUpdateParams`
|
||||
* Add support for `jpy` on `Terminal.Configuration.tipping`, `Terminal.ConfigurationCreateParams.tipping`, and `Terminal.ConfigurationUpdateParams.tipping`
|
||||
* Add support for `nickname` on `Treasury.FinancialAccountCreateParams`, `Treasury.FinancialAccountUpdateParams`, and `Treasury.FinancialAccount`
|
||||
* Add support for `forwarding_settings` on `Treasury.FinancialAccountUpdateParams`
|
||||
* Add support for `is_default` on `Treasury.FinancialAccount`
|
||||
* Add support for `destination_payment_method_data` on `Treasury.OutboundTransferCreateParams`
|
||||
* Change type of `Treasury.OutboundTransfer.destination_payment_method_details.type` from `literal('us_bank_account')` to `enum('financial_account'|'us_bank_account')`
|
||||
* Add support for new value `outbound_transfer` on enums `Treasury.ReceivedCredit.linked_flows.source_flow_details.type` and `Treasury.ReceivedCreditListParams.linked_flows.source_flow_type`
|
||||
* Add support for `outbound_transfer` on `Treasury.ReceivedCredit.linked_flows.source_flow_details`
|
||||
* Add support for new value `2025-01-27.acacia` on enum `WebhookEndpointCreateParams.api_version`
|
||||
* [#2249](https://github.com/stripe/stripe-node/pull/2249) add justfile, remove coveralls, tweak ESLint
|
||||
* [#2252](https://github.com/stripe/stripe-node/pull/2252) Added CONTRIBUTING.md file
|
||||
* [#2242](https://github.com/stripe/stripe-node/pull/2242) Added pull request template
|
||||
|
||||
## 17.5.0 - 2024-12-18
|
||||
* [#2237](https://github.com/stripe/stripe-node/pull/2237) This release changes the pinned API version to `2024-12-18.acacia`.
|
||||
* Change `Account.business_profile.annual_revenue` and `Account.business_profile.estimated_worker_count` to be optional
|
||||
* Add support for `network_advice_code` and `network_decline_code` on `Charge.outcome`, `Invoice.last_finalization_error`, `PaymentIntent.last_payment_error`, `SetupAttempt.setup_error`, `SetupIntent.last_setup_error`, and `StripeError`
|
||||
* Add support for new values `payout_minimum_balance_hold` and `payout_minimum_balance_release` on enum `BalanceTransaction.type`
|
||||
* Add support for `credits_application_invoice_voided` on `Billing.CreditBalanceTransaction.credit`
|
||||
* Change type of `Billing.CreditBalanceTransaction.credit.type` from `literal('credits_granted')` to `enum('credits_application_invoice_voided'|'credits_granted')`
|
||||
* Change `BillingPortal.Configuration.features.subscription_update.schedule_at_period_end`, `Issuing.Authorization.verified_by_fraud_challenge`, `LineItem.description`, and `Payout.trace_id` to be required
|
||||
* Add support for `allow_redisplay` on `Card` and `Source`
|
||||
* Add support for `regulated_status` on `Card`, `Charge.payment_method_details.card`, `ConfirmationToken.payment_method_preview.card`, and `PaymentMethod.card`
|
||||
* Add support for `funding` on `Charge.payment_method_details.amazon_pay` and `Charge.payment_method_details.revolut_pay`
|
||||
* Add support for `network_transaction_id` on `Charge.payment_method_details.card`
|
||||
* Add support for `reference_prefix` on `Checkout.Session.payment_method_options.bacs_debit.mandate_options`, `Checkout.Session.payment_method_options.sepa_debit.mandate_options`, `Checkout.SessionCreateParams.payment_method_options.bacs_debit.mandate_options`, `Checkout.SessionCreateParams.payment_method_options.sepa_debit.mandate_options`, `PaymentIntent.payment_method_options.bacs_debit.mandate_options`, `PaymentIntent.payment_method_options.sepa_debit.mandate_options`, `PaymentIntentConfirmParams.payment_method_options.bacs_debit.mandate_options`, `PaymentIntentConfirmParams.payment_method_options.sepa_debit.mandate_options`, `PaymentIntentCreateParams.payment_method_options.bacs_debit.mandate_options`, `PaymentIntentCreateParams.payment_method_options.sepa_debit.mandate_options`, `PaymentIntentUpdateParams.payment_method_options.bacs_debit.mandate_options`, `PaymentIntentUpdateParams.payment_method_options.sepa_debit.mandate_options`, `SetupIntent.payment_method_options.bacs_debit.mandate_options`, `SetupIntent.payment_method_options.sepa_debit.mandate_options`, `SetupIntentConfirmParams.payment_method_options.bacs_debit.mandate_options`, `SetupIntentConfirmParams.payment_method_options.sepa_debit.mandate_options`, `SetupIntentCreateParams.payment_method_options.bacs_debit.mandate_options`, `SetupIntentCreateParams.payment_method_options.sepa_debit.mandate_options`, `SetupIntentUpdateParams.payment_method_options.bacs_debit.mandate_options`, and `SetupIntentUpdateParams.payment_method_options.sepa_debit.mandate_options`
|
||||
* Add support for new values `al_tin`, `am_tin`, `ao_tin`, `ba_tin`, `bb_tin`, `bs_tin`, `cd_nif`, `gn_nif`, `kh_tin`, `me_pib`, `mk_vat`, `mr_nif`, `np_pan`, `sn_ninea`, `sr_fin`, `tj_tin`, `ug_tin`, `zm_tin`, and `zw_tin` 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 `al_tin`, `am_tin`, `ao_tin`, `ba_tin`, `bb_tin`, `bs_tin`, `cd_nif`, `gn_nif`, `kh_tin`, `me_pib`, `mk_vat`, `mr_nif`, `np_pan`, `sn_ninea`, `sr_fin`, `tj_tin`, `ug_tin`, `zm_tin`, and `zw_tin` 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 `visa_compliance` on `Dispute.evidence.enhanced_evidence`, `Dispute.evidence_details.enhanced_eligibility`, and `DisputeUpdateParams.evidence.enhanced_evidence`
|
||||
* Add support for new value `request_signature` on enums `Forwarding.Request.replacements[]` and `Forwarding.RequestCreateParams.replacements[]`
|
||||
* Add support for `account_holder_address` and `bank_address` on `FundingInstructions.bank_transfer.financial_addresses[].iban`, `FundingInstructions.bank_transfer.financial_addresses[].sort_code`, `FundingInstructions.bank_transfer.financial_addresses[].spei`, `FundingInstructions.bank_transfer.financial_addresses[].zengin`, `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].iban`, `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].sort_code`, `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].spei`, and `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].zengin`
|
||||
* Add support for `account_holder_name` on `FundingInstructions.bank_transfer.financial_addresses[].spei` and `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].spei`
|
||||
* Add support for `disabled_reason` on `Invoice.automatic_tax`, `Subscription.automatic_tax`, `SubscriptionSchedule.default_settings.automatic_tax`, and `SubscriptionSchedule.phases[].automatic_tax`
|
||||
* Add support for `tax_id` on `Issuing.Authorization.merchant_data` and `Issuing.Transaction.merchant_data`
|
||||
* Change type of `LineItem.description` from `string` to `string | null`
|
||||
* Add support for `trial_period_days` on `PaymentLinkUpdateParams.subscription_data`
|
||||
* Add support for `al`, `am`, `ao`, `ba`, `bb`, `bs`, `cd`, `gn`, `kh`, `me`, `mk`, `mr`, `np`, `pe`, `sn`, `sr`, `tj`, `ug`, `uy`, `zm`, and `zw` on `Tax.Registration.country_options` and `Tax.RegistrationCreateParams.country_options`
|
||||
* Add support for new value `2024-12-18.acacia` on enum `WebhookEndpointCreateParams.api_version`
|
||||
* [#2238](https://github.com/stripe/stripe-node/pull/2238) add missing key warning to README
|
||||
|
||||
## 17.4.0 - 2024-11-20
|
||||
* [#2222](https://github.com/stripe/stripe-node/pull/2222) This release changes the pinned API version to `2024-11-20.acacia`.
|
||||
* Add support for `respond` test helper method on resource `Issuing.Authorization`
|
||||
* Add support for `authorizer` on `AccountPersonsParams.relationship` and `TokenCreateParams.person.relationship`
|
||||
* Change type of `Account.future_requirements.disabled_reason` and `Account.requirements.disabled_reason` from `string` to `enum`
|
||||
* Change `AccountSession.components.account_management.features.disable_stripe_user_authentication`, `AccountSession.components.account_onboarding.features.disable_stripe_user_authentication`, `AccountSession.components.balances.features.disable_stripe_user_authentication`, `AccountSession.components.notification_banner.features.disable_stripe_user_authentication`, and `AccountSession.components.payouts.features.disable_stripe_user_authentication` to be required
|
||||
* Add support for `adaptive_pricing` on `Checkout.SessionCreateParams` and `Checkout.Session`
|
||||
* Add support for `mandate_options` on `Checkout.Session.payment_method_options.bacs_debit`, `Checkout.Session.payment_method_options.sepa_debit`, `Checkout.SessionCreateParams.payment_method_options.bacs_debit`, and `Checkout.SessionCreateParams.payment_method_options.sepa_debit`
|
||||
* Add support for `request_extended_authorization`, `request_incremental_authorization`, `request_multicapture`, and `request_overcapture` on `Checkout.Session.payment_method_options.card` and `Checkout.SessionCreateParams.payment_method_options.card`
|
||||
* Add support for `capture_method` on `Checkout.SessionCreateParams.payment_method_options.kakao_pay`, `Checkout.SessionCreateParams.payment_method_options.kr_card`, `Checkout.SessionCreateParams.payment_method_options.naver_pay`, `Checkout.SessionCreateParams.payment_method_options.payco`, and `Checkout.SessionCreateParams.payment_method_options.samsung_pay`
|
||||
* Add support for new value `subscribe` on enums `Checkout.Session.submit_type`, `Checkout.SessionCreateParams.submit_type`, `PaymentLink.submit_type`, and `PaymentLinkCreateParams.submit_type`
|
||||
* Add support for new value `li_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 value `li_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 new value `financial_account_statement` on enums `File.purpose` and `FileListParams.purpose`
|
||||
* Add support for `account_holder_address`, `account_holder_name`, `account_type`, and `bank_address` on `FundingInstructions.bank_transfer.financial_addresses[].aba`, `FundingInstructions.bank_transfer.financial_addresses[].swift`, `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].aba`, and `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].swift`
|
||||
* Add support for new value `service_tax` 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 `merchant_amount` and `merchant_currency` on `Issuing.AuthorizationCreateParams.testHelpers`
|
||||
* Change `Issuing.AuthorizationCreateParams.testHelpers.amount` to be optional
|
||||
* Add support for `fraud_challenges` and `verified_by_fraud_challenge` on `Issuing.Authorization`
|
||||
* Add support for new value `link` on enums `PaymentIntent.payment_method_options.card.network`, `PaymentIntentConfirmParams.payment_method_options.card.network`, `PaymentIntentCreateParams.payment_method_options.card.network`, `PaymentIntentUpdateParams.payment_method_options.card.network`, `SetupIntent.payment_method_options.card.network`, `SetupIntentConfirmParams.payment_method_options.card.network`, `SetupIntentCreateParams.payment_method_options.card.network`, `SetupIntentUpdateParams.payment_method_options.card.network`, `Subscription.payment_settings.payment_method_options.card.network`, `SubscriptionCreateParams.payment_settings.payment_method_options.card.network`, and `SubscriptionUpdateParams.payment_settings.payment_method_options.card.network`
|
||||
* Add support for `submit_type` on `PaymentLinkUpdateParams`
|
||||
* Add support for `trace_id` on `Payout`
|
||||
* Add support for `network_decline_code` on `Refund.destination_details.blik` and `Refund.destination_details.swish`
|
||||
* Change type of `Treasury.InboundTransfer.origin_payment_method` from `string` to `string | null`
|
||||
* Add support for new value `2024-11-20.acacia` on enum `WebhookEndpointCreateParams.api_version`
|
||||
* [#2215](https://github.com/stripe/stripe-node/pull/2215) Remove empty resources created for service groupings
|
||||
* Remove `Stripe.V2.BillingResource`, `Stripe.V2.CoreResource`, and `Stripe.V2Resource` types from the public interface as they are no longer needed. SDK usage will not be affected but any references to these types in your application will need to be removed.
|
||||
|
||||
## 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) 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.2.1 - 2024-10-18
|
||||
* [#2210](https://github.com/stripe/stripe-node/pull/2210) update object tags for meter-related classes
|
||||
|
||||
- fixes a bug where the `object` property of the `MeterEvent`, `MeterEventAdjustment`, and `MeterEventSession` didn't match the server.
|
||||
* [#2208](https://github.com/stripe/stripe-node/pull/2208) Update signature verification docs link
|
||||
|
||||
## 17.2.0 - 2024-10-09
|
||||
* [#2201](https://github.com/stripe/stripe-node/pull/2201) Add fetchRelatedObject to V2 Events if needed
|
||||
* `fetchRelatedObject` is added to events retrieved using `stripe.v2.core.events` and can be used to easily fetch the Stripe object related to a retrieved event
|
||||
|
||||
## 17.1.0 - 2024-10-03
|
||||
* [#2199](https://github.com/stripe/stripe-node/pull/2199) Update generated code
|
||||
* Remove the support for resource `Margin` that was accidentally made public in the last release
|
||||
|
||||
## 17.0.0 - 2024-10-01
|
||||
* [#2192](https://github.com/stripe/stripe-node/pull/2192) Support for APIs in the new API version 2024-09-30.acacia
|
||||
|
||||
This release changes the pinned API version to `2024-09-30.acacia`. Please read the [API Upgrade Guide](https://stripe.com/docs/upgrades#2024-09-30.acacia) and carefully review the API changes before upgrading.
|
||||
|
||||
### ⚠️ Breaking changes due to changes in the Stripe API
|
||||
- Rename `usage_threshold_config` to `usage_threshold` on `Billing.AlertCreateParams` and `Billing.Alert`
|
||||
- Remove support for `filter` on `Billing.AlertCreateParams` and `Billing.Alert`. Use the filters on the `usage_threshold` instead
|
||||
- Remove support for `customer_consent_collected` on `Terminal.ReaderProcessSetupIntentParams`.
|
||||
|
||||
### ⚠️ Other Breaking changes in the SDK
|
||||
- Adjusted default values around reties for HTTP requests. You can use the old defaults by setting them explicitly. New values are:
|
||||
- max retries: `1` -> `2`
|
||||
- max timeout (seconds): `2` -> `5`
|
||||
|
||||
|
||||
### Additions
|
||||
* Add support for `custom_unit_amount` on `ProductCreateParams.default_price_data`
|
||||
* Add support for `allow_redisplay` on `Terminal.ReaderProcessPaymentIntentParams.process_config` and `Terminal.ReaderProcessSetupIntentParams`
|
||||
* Add support for new value `international_transaction` on enum `Treasury.ReceivedCredit.failure_code`
|
||||
* Add support for new value `2024-09-30.acacia` on enum `WebhookEndpointCreateParams.api_version`
|
||||
* Add support for new Usage Billing APIs `Billing.MeterEvent`, `Billing.MeterEventAdjustments`, `Billing.MeterEventSession`, `Billing.MeterEventStream` and the new Events API `Core.Events` in the [v2 namespace ](https://docs.corp.stripe.com/api-v2-overview)
|
||||
* Add method `parseThinEvent()` on the `Stripe` class to parse [thin events](https://docs.corp.stripe.com/event-destinations#events-overview).
|
||||
* Add method [rawRequest()](https://github.com/stripe/stripe-node/tree/master?tab=readme-ov-file#custom-requests) on the `Stripe` class that takes a HTTP method type, url and relevant parameters to make requests to the Stripe API that are not yet supported in the SDK.
|
||||
|
||||
### Changes
|
||||
* Change `BillingPortal.ConfigurationCreateParams.features.subscription_update.default_allowed_updates` and `BillingPortal.ConfigurationCreateParams.features.subscription_update.products` to be optional
|
||||
|
||||
## 16.12.0 - 2024-09-18
|
||||
* [#2177](https://github.com/stripe/stripe-node/pull/2177) Update generated code
|
||||
* Add support for new value `international_transaction` on enum `Treasury.ReceivedDebit.failure_code`
|
||||
* [#2175](https://github.com/stripe/stripe-node/pull/2175) Update generated code
|
||||
* Add support for new value `verification_supportability` on enums `Account.future_requirements.errors[].code`, `Account.requirements.errors[].code`, `BankAccount.future_requirements.errors[].code`, and `BankAccount.requirements.errors[].code`
|
||||
* Add support for new value `terminal_reader_invalid_location_for_activation` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code`
|
||||
* Add support for `payer_details` on `Charge.payment_method_details.klarna`
|
||||
* Add support for `amazon_pay` on `Dispute.payment_method_details`
|
||||
* Add support for new value `amazon_pay` on enum `Dispute.payment_method_details.type`
|
||||
* Add support for `automatically_finalizes_at` on `Invoice`
|
||||
* Add support for `state_sales_tax` on `Tax.Registration.country_options.us` and `Tax.RegistrationCreateParams.country_options.us`
|
||||
|
||||
## 16.11.0 - 2024-09-12
|
||||
* [#2171](https://github.com/stripe/stripe-node/pull/2171) Update generated code
|
||||
* Add support for new resource `InvoiceRenderingTemplate`
|
||||
* Add support for `archive`, `list`, `retrieve`, and `unarchive` methods on resource `InvoiceRenderingTemplate`
|
||||
* Add support for `required` on `Checkout.Session.tax_id_collection`, `Checkout.SessionCreateParams.tax_id_collection`, `PaymentLink.tax_id_collection`, `PaymentLinkCreateParams.tax_id_collection`, and `PaymentLinkUpdateParams.tax_id_collection`
|
||||
* Add support for `template` on `Customer.invoice_settings.rendering_options`, `CustomerCreateParams.invoice_settings.rendering_options`, `CustomerUpdateParams.invoice_settings.rendering_options`, `Invoice.rendering`, `InvoiceCreateParams.rendering`, and `InvoiceUpdateParams.rendering`
|
||||
* Add support for `template_version` on `Invoice.rendering`, `InvoiceCreateParams.rendering`, and `InvoiceUpdateParams.rendering`
|
||||
* Add support for new value `submitted` on enum `Issuing.Card.shipping.status`
|
||||
* Change `TestHelpers.TestClock.status_details` to be required
|
||||
|
||||
## 16.10.0 - 2024-09-05
|
||||
* [#2158](https://github.com/stripe/stripe-node/pull/2158) Update generated code
|
||||
* Add support for `subscription_item` and `subscription` on `Billing.AlertCreateParams.filter`
|
||||
* Change `Terminal.ReaderProcessSetupIntentParams.customer_consent_collected` to be optional
|
||||
|
||||
## 16.9.0 - 2024-08-29
|
||||
* [#2163](https://github.com/stripe/stripe-node/pull/2163) Generate SDK for OpenAPI spec version 1230
|
||||
* Change `AccountLinkCreateParams.collection_options.fields` and `LineItem.description` to be optional
|
||||
* Add support for new value `hr_oib` 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 value `hr_oib` 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 new value `issuing_regulatory_reporting` on enums `File.purpose` and `FileListParams.purpose`
|
||||
* Add support for new value `issuing_regulatory_reporting` on enum `FileCreateParams.purpose`
|
||||
* Change `Issuing.Card.shipping.address_validation` to be required
|
||||
* Add support for `status_details` on `TestHelpers.TestClock`
|
||||
|
||||
## 16.8.0 - 2024-08-15
|
||||
* [#2155](https://github.com/stripe/stripe-node/pull/2155) Update generated code
|
||||
* Add support for `authorization_code` on `Charge.payment_method_details.card`
|
||||
* Add support for `wallet` on `Charge.payment_method_details.card_present`, `ConfirmationToken.payment_method_preview.card.generated_from.payment_method_details.card_present`, `ConfirmationToken.payment_method_preview.card_present`, `PaymentMethod.card.generated_from.payment_method_details.card_present`, and `PaymentMethod.card_present`
|
||||
* Add support for `mandate_options` on `PaymentIntent.payment_method_options.bacs_debit`, `PaymentIntentConfirmParams.payment_method_options.bacs_debit`, `PaymentIntentCreateParams.payment_method_options.bacs_debit`, and `PaymentIntentUpdateParams.payment_method_options.bacs_debit`
|
||||
* Add support for `bacs_debit` on `SetupIntent.payment_method_options`, `SetupIntentConfirmParams.payment_method_options`, `SetupIntentCreateParams.payment_method_options`, and `SetupIntentUpdateParams.payment_method_options`
|
||||
* Add support for `chips` on `Treasury.OutboundPayment.tracking_details.us_domestic_wire`, `Treasury.OutboundPaymentUpdateParams.testHelpers.tracking_details.us_domestic_wire`, `Treasury.OutboundTransfer.tracking_details.us_domestic_wire`, and `Treasury.OutboundTransferUpdateParams.testHelpers.tracking_details.us_domestic_wire`
|
||||
* Change type of `Treasury.OutboundPayment.tracking_details.us_domestic_wire.imad` and `Treasury.OutboundTransfer.tracking_details.us_domestic_wire.imad` from `string` to `string | null`
|
||||
|
||||
## 16.7.0 - 2024-08-08
|
||||
* [#2147](https://github.com/stripe/stripe-node/pull/2147) Update generated code
|
||||
* Add support for `activate`, `archive`, `create`, `deactivate`, `list`, and `retrieve` methods on resource `Billing.Alert`
|
||||
* Add support for `retrieve` method on resource `Tax.Calculation`
|
||||
* Add support for new value `invalid_mandate_reference_prefix_format` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code`
|
||||
* Add support for `type` on `Charge.payment_method_details.card_present.offline`, `ConfirmationToken.payment_method_preview.card.generated_from.payment_method_details.card_present.offline`, `PaymentMethod.card.generated_from.payment_method_details.card_present.offline`, and `SetupAttempt.payment_method_details.card_present.offline`
|
||||
* Add support for `offline` on `ConfirmationToken.payment_method_preview.card_present` and `PaymentMethod.card_present`
|
||||
* Add support for `related_customer` on `Identity.VerificationSessionCreateParams`, `Identity.VerificationSessionListParams`, and `Identity.VerificationSession`
|
||||
* Change `InvoiceCreateParams.payment_settings.payment_method_options.card.installments.plan.count`, `InvoiceCreateParams.payment_settings.payment_method_options.card.installments.plan.interval`, `InvoiceUpdateParams.payment_settings.payment_method_options.card.installments.plan.count`, `InvoiceUpdateParams.payment_settings.payment_method_options.card.installments.plan.interval`, `PaymentIntentConfirmParams.payment_method_options.card.installments.plan.count`, `PaymentIntentConfirmParams.payment_method_options.card.installments.plan.interval`, `PaymentIntentCreateParams.payment_method_options.card.installments.plan.count`, `PaymentIntentCreateParams.payment_method_options.card.installments.plan.interval`, `PaymentIntentUpdateParams.payment_method_options.card.installments.plan.count`, and `PaymentIntentUpdateParams.payment_method_options.card.installments.plan.interval` to be optional
|
||||
* Add support for new value `girocard` on enums `PaymentIntent.payment_method_options.card.network`, `PaymentIntentConfirmParams.payment_method_options.card.network`, `PaymentIntentCreateParams.payment_method_options.card.network`, `PaymentIntentUpdateParams.payment_method_options.card.network`, `SetupIntent.payment_method_options.card.network`, `SetupIntentConfirmParams.payment_method_options.card.network`, `SetupIntentCreateParams.payment_method_options.card.network`, `SetupIntentUpdateParams.payment_method_options.card.network`, `Subscription.payment_settings.payment_method_options.card.network`, `SubscriptionCreateParams.payment_settings.payment_method_options.card.network`, and `SubscriptionUpdateParams.payment_settings.payment_method_options.card.network`
|
||||
* Add support for new value `financial_addresses.aba.forwarding` on enums `Treasury.FinancialAccount.active_features[]`, `Treasury.FinancialAccount.pending_features[]`, and `Treasury.FinancialAccount.restricted_features[]`
|
||||
|
||||
## 16.6.0 - 2024-08-01
|
||||
* [#2144](https://github.com/stripe/stripe-node/pull/2144) Update generated code
|
||||
* Add support for new resources `Billing.AlertTriggered` and `Billing.Alert`
|
||||
* Add support for new value `charge_exceeds_transaction_limit` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code`
|
||||
* ⚠️ Remove support for `authorization_code` on `Charge.payment_method_details.card`. This was accidentally released last week.
|
||||
* Add support for new value `billing.alert.triggered` on enum `Event.type`
|
||||
* Add support for new value `billing.alert.triggered` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]`
|
||||
|
||||
## 16.5.0 - 2024-07-25
|
||||
* [#2143](https://github.com/stripe/stripe-node/pull/2143) Update generated code
|
||||
* Add support for `tax_registrations` and `tax_settings` on `AccountSession.components` and `AccountSessionCreateParams.components`
|
||||
* [#2140](https://github.com/stripe/stripe-node/pull/2140) Update generated code
|
||||
* Add support for `update` method on resource `Checkout.Session`
|
||||
* Add support for `transaction_id` on `Charge.payment_method_details.affirm`
|
||||
* Add support for `buyer_id` on `Charge.payment_method_details.blik`
|
||||
* Add support for `authorization_code` on `Charge.payment_method_details.card`
|
||||
* Add support for `brand_product` on `Charge.payment_method_details.card_present`, `ConfirmationToken.payment_method_preview.card.generated_from.payment_method_details.card_present`, `ConfirmationToken.payment_method_preview.card_present`, `PaymentMethod.card.generated_from.payment_method_details.card_present`, and `PaymentMethod.card_present`
|
||||
* Add support for `network_transaction_id` on `Charge.payment_method_details.card_present`, `Charge.payment_method_details.interac_present`, `ConfirmationToken.payment_method_preview.card.generated_from.payment_method_details.card_present`, and `PaymentMethod.card.generated_from.payment_method_details.card_present`
|
||||
* Add support for `case_type` on `Dispute.payment_method_details.card`
|
||||
* Add support for new values `invoice.overdue` and `invoice.will_be_due` on enum `Event.type`
|
||||
* Add support for `twint` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, and `PaymentMethodConfiguration`
|
||||
* Add support for new values `invoice.overdue` and `invoice.will_be_due` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]`
|
||||
|
||||
## 16.4.0 - 2024-07-18
|
||||
* [#2138](https://github.com/stripe/stripe-node/pull/2138) Update generated code
|
||||
* Add support for `customer` on `ConfirmationToken.payment_method_preview`
|
||||
* Add support for new value `issuing_dispute.funds_rescinded` on enum `Event.type`
|
||||
* Add support for new value `multibanco` 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 `stripe_s700` on enums `Terminal.Reader.device_type` and `Terminal.ReaderListParams.device_type`
|
||||
* Add support for new value `issuing_dispute.funds_rescinded` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]`
|
||||
* [#2136](https://github.com/stripe/stripe-node/pull/2136) Update changelog
|
||||
|
||||
## 16.3.0 - 2024-07-11
|
||||
* [#2130](https://github.com/stripe/stripe-node/pull/2130) Update generated code
|
||||
* ⚠️ Remove support for values `billing_policy_remote_function_response_invalid`, `billing_policy_remote_function_timeout`, `billing_policy_remote_function_unexpected_status_code`, and `billing_policy_remote_function_unreachable` from enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code`.
|
||||
* ⚠️ Remove support for value `payment_intent_fx_quote_invalid` from enum `StripeError.code`. The was mistakenly released last week.
|
||||
* Add support for `payment_method_options` on `ConfirmationToken`
|
||||
* Add support for `payment_element` on `CustomerSession.components` and `CustomerSessionCreateParams.components`
|
||||
* Add support for `address_validation` on `Issuing.Card.shipping` and `Issuing.CardCreateParams.shipping`
|
||||
* Add support for `shipping` on `Issuing.CardUpdateParams`
|
||||
* Change `Plan.meter` and `Price.recurring.meter` to be required
|
||||
* [#2133](https://github.com/stripe/stripe-node/pull/2133) update node versions in CI
|
||||
* [#2132](https://github.com/stripe/stripe-node/pull/2132) check `hasOwnProperty` when using `for..in`
|
||||
* [#2048](https://github.com/stripe/stripe-node/pull/2048) Add generateTestHeaderStringAsync function to Webhooks.ts
|
||||
|
||||
## 16.2.0 - 2024-07-05
|
||||
* [#2125](https://github.com/stripe/stripe-node/pull/2125) Update generated code
|
||||
* Add support for `add_lines`, `remove_lines`, and `update_lines` methods on resource `Invoice`
|
||||
* Add support for new value `payment_intent_fx_quote_invalid` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code`
|
||||
* Add support for `posted_at` on `Tax.TransactionCreateFromCalculationParams` and `Tax.Transaction`
|
||||
|
||||
## 16.1.0 - 2024-06-27
|
||||
* [#2120](https://github.com/stripe/stripe-node/pull/2120) Update generated code
|
||||
* Add support for `filters` on `Checkout.Session.payment_method_options.us_bank_account.financial_connections`, `Invoice.payment_settings.payment_method_options.us_bank_account.financial_connections`, `InvoiceCreateParams.payment_settings.payment_method_options.us_bank_account.financial_connections`, `InvoiceUpdateParams.payment_settings.payment_method_options.us_bank_account.financial_connections`, `PaymentIntent.payment_method_options.us_bank_account.financial_connections`, `PaymentIntentConfirmParams.payment_method_options.us_bank_account.financial_connections`, `PaymentIntentCreateParams.payment_method_options.us_bank_account.financial_connections`, `PaymentIntentUpdateParams.payment_method_options.us_bank_account.financial_connections`, `SetupIntent.payment_method_options.us_bank_account.financial_connections`, `SetupIntentConfirmParams.payment_method_options.us_bank_account.financial_connections`, `SetupIntentCreateParams.payment_method_options.us_bank_account.financial_connections`, `SetupIntentUpdateParams.payment_method_options.us_bank_account.financial_connections`, `Subscription.payment_settings.payment_method_options.us_bank_account.financial_connections`, `SubscriptionCreateParams.payment_settings.payment_method_options.us_bank_account.financial_connections`, and `SubscriptionUpdateParams.payment_settings.payment_method_options.us_bank_account.financial_connections`
|
||||
* Add support for `email_type` on `CreditNoteCreateParams`, `CreditNotePreviewLinesParams`, and `CreditNotePreviewParams`
|
||||
* Add support for `account_subcategories` on `FinancialConnections.Session.filters` and `FinancialConnections.SessionCreateParams.filters`
|
||||
* Add support for new values `multibanco`, `twint`, and `zip` on enums `PaymentLink.payment_method_types[]`, `PaymentLinkCreateParams.payment_method_types[]`, and `PaymentLinkUpdateParams.payment_method_types[]`
|
||||
* Add support for `reboot_window` on `Terminal.ConfigurationCreateParams`, `Terminal.ConfigurationUpdateParams`, and `Terminal.Configuration`
|
||||
|
||||
## 16.0.0 - 2024-06-24
|
||||
* [#2113](https://github.com/stripe/stripe-node/pull/2113)
|
||||
|
||||
This release changes the pinned API version to 2024-06-20. Please read the [API Upgrade Guide](https://stripe.com/docs/upgrades#2024-06-20) and carefully review the API changes before upgrading.
|
||||
|
||||
### ⚠️ Breaking changes
|
||||
|
||||
* Remove the unused resource `PlatformTaxFee`
|
||||
* Rename `volume_decimal` to `quantity_decimal` on
|
||||
* `Issuing.AuthorizationCaptureParams.testHelpers.purchase_details.fuel`,
|
||||
* `Issuing.Transaction.purchase_details.fuel`,
|
||||
* `Issuing.TransactionCreateForceCaptureParams.testHelpers.purchase_details.fuel`, and
|
||||
* `Issuing.TransactionCreateUnlinkedRefundParams.testHelpers.purchase_details.fuel`
|
||||
* `Capabilities.Requirements.disabled_reason` and `Capabilities.Requirements.disabled_reason` are now enums with the below values
|
||||
* `other`
|
||||
* `paused.inactivity`
|
||||
* `pending.onboarding`
|
||||
* `pending.review`
|
||||
* `platform_disabled`
|
||||
* `platform_paused`
|
||||
* `rejected.inactivity`
|
||||
* `rejected.other`
|
||||
* `rejected.unsupported_business`
|
||||
* `requirements.fields_needed`
|
||||
|
||||
### Additions
|
||||
|
||||
* Add support for new values `charging_minute`, `imperial_gallon`, `kilogram`, `kilowatt_hour`, and `pound` on enums `Issuing.AuthorizationCaptureParams.testHelpers.purchase_details.fuel.unit`, `Issuing.TransactionCreateForceCaptureParams.testHelpers.purchase_details.fuel.unit`, and `Issuing.TransactionCreateUnlinkedRefundParams.testHelpers.purchase_details.fuel.unit`
|
||||
* Add support for new values `card_canceled`, `card_expired`, `cardholder_blocked`, `insecure_authorization_method`, and `pin_blocked` on enum `Issuing.Authorization.request_history[].reason`
|
||||
* Add support for `finalize_amount` test helper method on resource `Issuing.Authorization`
|
||||
* Add support for new value `ch_uid` 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 value `ch_uid` 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 `fleet` on `Issuing.AuthorizationCaptureParams.testHelpers.purchase_details`, `Issuing.AuthorizationCreateParams.testHelpers`, `Issuing.Authorization`, `Issuing.Transaction.purchase_details`, `Issuing.TransactionCreateForceCaptureParams.testHelpers.purchase_details`, and `Issuing.TransactionCreateUnlinkedRefundParams.testHelpers.purchase_details`
|
||||
* Add support for `fuel` on `Issuing.AuthorizationCreateParams.testHelpers` and `Issuing.Authorization`
|
||||
* Add support for `industry_product_code` and `quantity_decimal` on `Issuing.AuthorizationCaptureParams.testHelpers.purchase_details.fuel`, `Issuing.Transaction.purchase_details.fuel`, `Issuing.TransactionCreateForceCaptureParams.testHelpers.purchase_details.fuel`, and `Issuing.TransactionCreateUnlinkedRefundParams.testHelpers.purchase_details.fuel`
|
||||
* Add support for new value `2024-06-20` on enum `WebhookEndpointCreateParams.api_version`
|
||||
* [#2118](https://github.com/stripe/stripe-node/pull/2118) Use worker module in Bun
|
||||
|
||||
## 15.12.0 - 2024-06-17
|
||||
* [#2109](https://github.com/stripe/stripe-node/pull/2109) Update generated code
|
||||
* Add support for new value `mobilepay` on enums `PaymentLink.payment_method_types[]`, `PaymentLinkCreateParams.payment_method_types[]`, and `PaymentLinkUpdateParams.payment_method_types[]`
|
||||
* Add support for `tax_id_collection` on `PaymentLinkUpdateParams`
|
||||
* [#2111](https://github.com/stripe/stripe-node/pull/2111) Where params are union of types, merge the types instead of having numbered suffixes in type names
|
||||
* Change type of `PaymentIntentConfirmParams.mandate_data` from `Stripe.Emptyable<PaymentIntentConfirmParams.MandateData1 | PaymentIntentConfirmParams.MandateData2>` to `Stripe.Emptyable<PaymentIntentConfirmParams.MandateData>` where the new MandateData is a union of all the properties of MandateData1 and MandateData2
|
||||
* Change type of `PaymentMethodCreateParams.card` from `PaymentMethodCreateParams.Card1 | PaymentMethodCreateParams.Card2` to `PaymentMethodCreateParams.Card` where the new Card is a union of all the properties of Card1 and Card2
|
||||
* Change type of `SetupIntentConfirmParams.mandate_data` from `Stripe.Emptyable<SetupIntentConfirmParams.MandateData1 | SetupIntentConfirmParams.MandateData2>` to `Stripe.Emptyable<SetupIntentConfirmParams.MandateData>` where the new MandateData is a union of all the properties of MandateData1 and MandateData2
|
||||
|
||||
## 15.11.0 - 2024-06-13
|
||||
* [#2102](https://github.com/stripe/stripe-node/pull/2102) Update generated code
|
||||
* Add support for `multibanco_payments` and `twint_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities`
|
||||
* Add support for `twint` 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`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data`
|
||||
* Add support for `multibanco` on `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`, `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, `PaymentMethodConfiguration`, `PaymentMethodCreateParams`, `PaymentMethod`, `Refund.destination_details`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data`
|
||||
* Add support for new values `multibanco` and `twint` on enums `Checkout.SessionCreateParams.payment_method_types[]`, `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type`
|
||||
* Add support for new value `de_stn` 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 `multibanco` and `twint` 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 `multibanco` and `twint` on enums `ConfirmationToken.payment_method_preview.type` and `PaymentMethod.type`
|
||||
* Add support for new value `de_stn` 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 `multibanco_display_details` on `PaymentIntent.next_action`
|
||||
* Add support for `invoice_settings` on `Subscription`
|
||||
|
||||
## 15.10.0 - 2024-06-06
|
||||
* [#2101](https://github.com/stripe/stripe-node/pull/2101) Update generated code
|
||||
* Add support for `gb_bank_transfer_payments`, `jp_bank_transfer_payments`, `mx_bank_transfer_payments`, `sepa_bank_transfer_payments`, and `us_bank_transfer_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities`
|
||||
* Add support for new value `swish` 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[]`
|
||||
|
||||
## 15.9.0 - 2024-05-30
|
||||
* [#2095](https://github.com/stripe/stripe-node/pull/2095) Update generated code
|
||||
* Add support for new value `verification_requires_additional_proof_of_registration` on enums `Account.future_requirements.errors[].code`, `Account.requirements.errors[].code`, `BankAccount.future_requirements.errors[].code`, and `BankAccount.requirements.errors[].code`
|
||||
* Add support for `default_value` on `Checkout.Session.custom_fields[].dropdown`, `Checkout.Session.custom_fields[].numeric`, `Checkout.Session.custom_fields[].text`, `Checkout.SessionCreateParams.custom_fields[].dropdown`, `Checkout.SessionCreateParams.custom_fields[].numeric`, and `Checkout.SessionCreateParams.custom_fields[].text`
|
||||
* Add support for `generated_from` on `ConfirmationToken.payment_method_preview.card` and `PaymentMethod.card`
|
||||
* Add support for new values `issuing_personalization_design.activated`, `issuing_personalization_design.deactivated`, `issuing_personalization_design.rejected`, and `issuing_personalization_design.updated` on enum `Event.type`
|
||||
* Change `Issuing.Card.personalization_design` and `Issuing.PhysicalBundle.features` to be required
|
||||
* Add support for new values `en-RO` and `ro-RO` on enums `PaymentIntentConfirmParams.payment_method_options.klarna.preferred_locale`, `PaymentIntentCreateParams.payment_method_options.klarna.preferred_locale`, and `PaymentIntentUpdateParams.payment_method_options.klarna.preferred_locale`
|
||||
* Add support for new values `issuing_personalization_design.activated`, `issuing_personalization_design.deactivated`, `issuing_personalization_design.rejected`, and `issuing_personalization_design.updated` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]`
|
||||
|
||||
## 15.8.0 - 2024-05-23
|
||||
* [#2092](https://github.com/stripe/stripe-node/pull/2092) Update generated code
|
||||
* Add support for `external_account_collection` on `AccountSession.components.balances.features`, `AccountSession.components.payouts.features`, `AccountSessionCreateParams.components.balances.features`, and `AccountSessionCreateParams.components.payouts.features`
|
||||
* Add support for new value `terminal_reader_invalid_location_for_payment` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code`
|
||||
* Add support for `payment_method_remove` on `Checkout.Session.saved_payment_method_options`
|
||||
|
||||
## 15.7.0 - 2024-05-16
|
||||
* [#2088](https://github.com/stripe/stripe-node/pull/2088) Update generated code
|
||||
* Add support for `fee_source` on `ApplicationFee`
|
||||
* Add support for `net_available` on `Balance.instant_available[]`
|
||||
* Add support for `preferred_locales` on `Charge.payment_method_details.card_present`, `ConfirmationToken.payment_method_preview.card_present`, and `PaymentMethod.card_present`
|
||||
* Add support for `klarna` on `Dispute.payment_method_details`
|
||||
* Add support for new value `klarna` on enum `Dispute.payment_method_details.type`
|
||||
* Add support for `archived` and `lookup_key` on `Entitlements.FeatureListParams`
|
||||
* Change `FinancialConnections.SessionCreateParams.filters.countries` to be optional
|
||||
* Add support for `no_valid_authorization` on `Issuing.Dispute.evidence`, `Issuing.DisputeCreateParams.evidence`, and `Issuing.DisputeUpdateParams.evidence`
|
||||
* Add support for new value `no_valid_authorization` on enums `Issuing.Dispute.evidence.reason`, `Issuing.DisputeCreateParams.evidence.reason`, and `Issuing.DisputeUpdateParams.evidence.reason`
|
||||
* Add support for `loss_reason` on `Issuing.Dispute`
|
||||
* Add support for `routing` on `PaymentIntent.payment_method_options.card_present`, `PaymentIntentConfirmParams.payment_method_options.card_present`, `PaymentIntentCreateParams.payment_method_options.card_present`, and `PaymentIntentUpdateParams.payment_method_options.card_present`
|
||||
* Add support for `application_fee_amount` and `application_fee` on `Payout`
|
||||
* Add support for `stripe_s700` on `Terminal.ConfigurationCreateParams`, `Terminal.ConfigurationUpdateParams`, and `Terminal.Configuration`
|
||||
* Change `Treasury.OutboundPayment.tracking_details` and `Treasury.OutboundTransfer.tracking_details` to be required
|
||||
|
||||
## 15.6.0 - 2024-05-09
|
||||
* [#2086](https://github.com/stripe/stripe-node/pull/2086) Update generated code
|
||||
* Remove support for `pending_invoice_items_behavior` on `SubscriptionCreateParams`
|
||||
* [#2080](https://github.com/stripe/stripe-node/pull/2080) Update generated code
|
||||
* Add support for `update` test helper method on resources `Treasury.OutboundPayment` and `Treasury.OutboundTransfer`
|
||||
* Add support for `allow_redisplay` on `ConfirmationToken.payment_method_preview` and `PaymentMethod`
|
||||
* Add support for new values `treasury.outbound_payment.tracking_details_updated` and `treasury.outbound_transfer.tracking_details_updated` on enum `Event.type`
|
||||
* Add support for `preview_mode` on `InvoiceCreatePreviewParams`, `InvoiceUpcomingLinesParams`, and `InvoiceUpcomingParams`
|
||||
* Add support for `pending_invoice_items_behavior` on `SubscriptionCreateParams`
|
||||
* Add support for `tracking_details` on `Treasury.OutboundPayment` and `Treasury.OutboundTransfer`
|
||||
* Add support for new values `treasury.outbound_payment.tracking_details_updated` and `treasury.outbound_transfer.tracking_details_updated` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]`
|
||||
* [#2085](https://github.com/stripe/stripe-node/pull/2085) Remove unnecessary pointer to description in deprecation message
|
||||
|
||||
## 15.5.0 - 2024-05-02
|
||||
* [#2072](https://github.com/stripe/stripe-node/pull/2072) Update generated code
|
||||
* Add support for new value `shipping_address_invalid` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code`
|
||||
* Fix properties incorrectly marked as required in the OpenAPI spec.
|
||||
* Change `Apps.Secret.payload`, `BillingPortal.Configuration.features.subscription_update.products`, `Charge.refunds`, `ConfirmationToken.payment_method_preview.klarna.dob`, `Identity.VerificationReport.document.dob`, `Identity.VerificationReport.document.expiration_date`, `Identity.VerificationReport.document.number`, `Identity.VerificationReport.id_number.dob`, `Identity.VerificationReport.id_number.id_number`, `Identity.VerificationSession.provided_details`, `Identity.VerificationSession.verified_outputs.dob`, `Identity.VerificationSession.verified_outputs.id_number`, `Identity.VerificationSession.verified_outputs`, `Issuing.Dispute.balance_transactions`, `Issuing.Transaction.purchase_details`, `PaymentMethod.klarna.dob`, `Tax.Calculation.line_items`, `Tax.CalculationLineItem.tax_breakdown`, `Tax.Transaction.line_items`, `Treasury.FinancialAccount.financial_addresses[].aba.account_number`, `Treasury.ReceivedCredit.linked_flows.source_flow_details`, `Treasury.Transaction.entries`, `Treasury.Transaction.flow_details`, and `Treasury.TransactionEntry.flow_details` to be optional
|
||||
* Add support for `paypal` on `Dispute.payment_method_details`
|
||||
* Change type of `Dispute.payment_method_details.type` from `literal('card')` to `enum('card'|'paypal')`
|
||||
* Change type of `Entitlements.FeatureUpdateParams.metadata` from `map(string: string)` to `emptyable(map(string: string))`
|
||||
* Add support for `payment_method_types` on `PaymentIntentConfirmParams`
|
||||
* Add support for `ship_from_details` on `Tax.CalculationCreateParams`, `Tax.Calculation`, and `Tax.Transaction`
|
||||
* Add support for `bh`, `eg`, `ge`, `ke`, `kz`, `ng`, and `om` on `Tax.Registration.country_options` and `Tax.RegistrationCreateParams.country_options`
|
||||
* [#2077](https://github.com/stripe/stripe-node/pull/2077) Deprecate Node methods and params based on OpenAPI spec
|
||||
- Mark as deprecated the `approve` and `decline` methods on `Issuing.Authorization`. Instead, [respond directly to the webhook request to approve an authorization](https://stripe.com/docs/issuing/controls/real-time-authorizations#authorization-handling).
|
||||
- Mark as deprecated the `persistent_token` property on `ConfirmationToken.PaymentMethodPreview.Link`, `PaymentIntent.PaymentMethodOptions.Link`, `PaymentIntentResource.PaymentMethodOptions.Link`, `PaymentMethod.Link.persistent_token`. `SetupIntents.PaymentMethodOptions.Card.Link.persistent_token`, `SetupIntentsResource.persistent_token`. This is a legacy parameter that no longer has any function.
|
||||
* [#2074](https://github.com/stripe/stripe-node/pull/2074) Add a more explicit comment on `limit` param in `autoPagingToArray`
|
||||
|
||||
## 15.4.0 - 2024-04-25
|
||||
* [#2071](https://github.com/stripe/stripe-node/pull/2071) Update generated code
|
||||
* Add support for `setup_future_usage` on `Checkout.Session.payment_method_options.amazon_pay`, `Checkout.Session.payment_method_options.revolut_pay`, `PaymentIntent.payment_method_options.amazon_pay`, and `PaymentIntent.payment_method_options.revolut_pay`
|
||||
* Change type of `Entitlements.ActiveEntitlement.feature` from `string` to `expandable(Entitlements.Feature)`
|
||||
* Remove support for inadvertently released identity verification features `email` and `phone` on `Identity.VerificationSessionCreateParams.options` and `Identity.VerificationSessionUpdateParams.options`
|
||||
* Change `Identity.VerificationSession.provided_details`, `Identity.VerificationSession.verified_outputs.email`, and `Identity.VerificationSession.verified_outputs.phone` to be required
|
||||
* Add support for new values `amazon_pay` and `revolut_pay` 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 `amazon_pay` and `revolut_pay` on `Mandate.payment_method_details` and `SetupAttempt.payment_method_details`
|
||||
* Add support for `ending_before`, `limit`, and `starting_after` on `PaymentMethodConfigurationListParams`
|
||||
* Add support for `mobilepay` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, and `PaymentMethodConfiguration`
|
||||
* [#2061](https://github.com/stripe/stripe-node/pull/2061) Make cloudflare package export
|
||||
|
||||
## 15.3.0 - 2024-04-18
|
||||
* [#2069](https://github.com/stripe/stripe-node/pull/2069) Update generated code
|
||||
* Add support for `create_preview` method on resource `Invoice`
|
||||
* Add support for `payment_method_data` on `Checkout.SessionCreateParams`
|
||||
* Add support for `saved_payment_method_options` on `Checkout.SessionCreateParams` and `Checkout.Session`
|
||||
* Add support for `mobilepay` on `Checkout.Session.payment_method_options` and `Checkout.SessionCreateParams.payment_method_options`
|
||||
* Add support for new value `mobilepay` on enum `Checkout.SessionCreateParams.payment_method_types[]`
|
||||
* Add support for `allow_redisplay` on `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `CustomerListPaymentMethodsParams`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentMethodCreateParams`, `PaymentMethodUpdateParams`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data`
|
||||
* Add support for `schedule_details` and `subscription_details` on `InvoiceUpcomingLinesParams` and `InvoiceUpcomingParams`
|
||||
* Add support for new value `other` on enums `Issuing.AuthorizationCaptureParams.testHelpers.purchase_details.fuel.unit`, `Issuing.TransactionCreateForceCaptureParams.testHelpers.purchase_details.fuel.unit`, and `Issuing.TransactionCreateUnlinkedRefundParams.testHelpers.purchase_details.fuel.unit`
|
||||
|
||||
## 15.2.0 - 2024-04-16
|
||||
* [#2064](https://github.com/stripe/stripe-node/pull/2064) Update generated code
|
||||
* Add support for new resource `Entitlements.ActiveEntitlementSummary`
|
||||
* Add support for `balances` and `payouts_list` on `AccountSession.components` and `AccountSessionCreateParams.components`
|
||||
* Change `AccountSession.components.payment_details.features.destination_on_behalf_of_charge_management` and `AccountSession.components.payments.features.destination_on_behalf_of_charge_management` to be required
|
||||
* Change `Billing.MeterEventCreateParams.timestamp` and `Dispute.payment_method_details.card` to be optional
|
||||
* Change type of `Dispute.payment_method_details.card` from `DisputePaymentMethodDetailsCard | null` to `DisputePaymentMethodDetailsCard`
|
||||
* Add support for new value `entitlements.active_entitlement_summary.updated` on enum `Event.type`
|
||||
* Remove support for `config` on `Forwarding.RequestCreateParams` and `Forwarding.Request`. This field is no longer used by the Forwarding Request API.
|
||||
* Add support for `capture_method` on `PaymentIntent.payment_method_options.revolut_pay`, `PaymentIntentConfirmParams.payment_method_options.revolut_pay`, `PaymentIntentCreateParams.payment_method_options.revolut_pay`, and `PaymentIntentUpdateParams.payment_method_options.revolut_pay`
|
||||
* Add support for `swish` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, and `PaymentMethodConfiguration`
|
||||
* Add support for new value `entitlements.active_entitlement_summary.updated` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]`
|
||||
|
||||
## 15.1.0 - 2024-04-11
|
||||
* [#2062](https://github.com/stripe/stripe-node/pull/2062) Update generated code
|
||||
* Add support for `account_management` and `notification_banner` on `AccountSession.components` and `AccountSessionCreateParams.components`
|
||||
* Add support for `external_account_collection` on `AccountSession.components.account_onboarding.features` and `AccountSessionCreateParams.components.account_onboarding.features`
|
||||
* Add support for new values `billing_policy_remote_function_response_invalid`, `billing_policy_remote_function_timeout`, `billing_policy_remote_function_unexpected_status_code`, and `billing_policy_remote_function_unreachable` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code`
|
||||
* Change `Billing.MeterEventAdjustmentCreateParams.cancel.identifier` and `Billing.MeterEventAdjustmentCreateParams.cancel` to be optional
|
||||
* Change `Billing.MeterEventAdjustmentCreateParams.type` to be required
|
||||
* Change type of `Billing.MeterEventAdjustment.cancel` from `BillingMeterResourceBillingMeterEventAdjustmentCancel` to `BillingMeterResourceBillingMeterEventAdjustmentCancel | null`
|
||||
* Add support for `amazon_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`, `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, `PaymentMethodConfiguration`, `PaymentMethodCreateParams`, `PaymentMethod`, `Refund.destination_details`, `SetupIntent.payment_method_options`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentConfirmParams.payment_method_options`, `SetupIntentCreateParams.payment_method_data`, `SetupIntentCreateParams.payment_method_options`, `SetupIntentUpdateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_options`
|
||||
* Add support for new value `ownership` on enums `Checkout.Session.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `Checkout.SessionCreateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `Invoice.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `InvoiceCreateParams.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `InvoiceUpdateParams.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `PaymentIntent.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `PaymentIntentConfirmParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `PaymentIntentCreateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `PaymentIntentUpdateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `SetupIntent.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `SetupIntentConfirmParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `SetupIntentCreateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `SetupIntentUpdateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `Subscription.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `SubscriptionCreateParams.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`, and `SubscriptionUpdateParams.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`
|
||||
* Add support for new value `amazon_pay` on enum `Checkout.SessionCreateParams.payment_method_types[]`
|
||||
* Add support for new values `bh_vat`, `kz_bin`, `ng_tin`, and `om_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 value `amazon_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 value `amazon_pay` on enums `ConfirmationToken.payment_method_preview.type` and `PaymentMethod.type`
|
||||
* Add support for new values `bh_vat`, `kz_bin`, `ng_tin`, and `om_vat` on enums `CustomerCreateParams.tax_id_data[].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 new value `amazon_pay` on enums `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type`
|
||||
* Add support for `next_refresh_available_at` on `FinancialConnections.Account.ownership_refresh`
|
||||
* Add support for new value `ownership` on enums `Invoice.payment_settings.payment_method_options.us_bank_account.financial_connections.permissions[]` and `Subscription.payment_settings.payment_method_options.us_bank_account.financial_connections.permissions[]`
|
||||
|
||||
## 15.0.0 - 2024-04-10
|
||||
* [#2057](https://github.com/stripe/stripe-node/pull/2057)
|
||||
|
||||
* This release changes the pinned API version to `2024-04-10`. Please read the [API Upgrade Guide](https://stripe.com/docs/upgrades#2024-04-10) and carefully review the API changes before upgrading.
|
||||
|
||||
### ⚠️ Breaking changes
|
||||
|
||||
* Rename event type `InvoiceitemCreatedEvent` to `InvoiceItemCreatedEvent`
|
||||
* Rename event type `InvoiceitemDeletedEvent` to `InvoiceItemDeletedEvent`
|
||||
* Rename `features` to `marketing_features` on `ProductCreateOptions`, `ProductUpdateOptions`, and `Product`.
|
||||
|
||||
#### ⚠️ Removal of enum values, properties and events that are no longer part of the publicly documented Stripe API
|
||||
|
||||
* Remove `subscription_pause` from the below as the feature to pause subscription on the portal has been deprecated.
|
||||
* `BillingPortal.Configuration.Features`
|
||||
* `BillingPortal.ConfigurationCreateParams.Features`
|
||||
* `BillingPortal.ConfigurationUpdateParams.Features`
|
||||
* Remove the below deprecated values for the type `BalanceTransaction.Type`
|
||||
* `obligation_inbound`
|
||||
* `obligation_payout`
|
||||
* `obligation_payout_failure`
|
||||
* `'obligation_reversal_outbound'`
|
||||
* Remove deprecated value `various` for the type `Climate.Supplier.RemovalPathway`
|
||||
* Remove deprecated events
|
||||
* `invoiceitem.updated`
|
||||
* `order.created`
|
||||
* `recipient.created`
|
||||
* `recipient.deleted`
|
||||
* `recipient.updated`
|
||||
* `sku.created`
|
||||
* `sku.deleted`
|
||||
* `sku.updated`
|
||||
* Remove types for the deprecated events
|
||||
* `InvoiceItemUpdatedEvent`
|
||||
* `OrderCreatedEvent`
|
||||
* `RecipientCreatedEvent`
|
||||
* `RecipientDeletedEvent`
|
||||
* `RecipientUpdatedEvent`
|
||||
* `SKUCreatedEvent`
|
||||
* `SKUDeletedEvent`
|
||||
* Remove the deprecated value `include_and_require` for the type`InvoiceCreateParams.PendingInvoiceItemsBehavior`
|
||||
* Remove the deprecated value `service_tax` for the types `TaxRate.TaxType`, `TaxRateCreateParams.TaxType`, `TaxRateUpdateParams.TaxType`, and `InvoiceUpdateLineItemParams.TaxAmount.TaxRateData`
|
||||
* Remove `request_incremental_authorization` from `PaymentIntentCreateParams.PaymentMethodOptions.CardPresent`, `PaymentIntentUpdateParams.PaymentMethodOptions.CardPresent` and `PaymentIntentConfirmParams.PaymentMethodOptions.CardPresent`
|
||||
* Remove support for `id_bank_transfer`, `multibanco`, `netbanking`, `pay_by_bank`, and `upi` on `PaymentMethodConfiguration`
|
||||
* Remove the deprecated value `obligation` for the type `Reporting.ReportRunCreateParams.Parameters.ReportingCategory`
|
||||
* Remove the deprecated value `challenge_only` from the type `SetupIntent.PaymentMethodOptions.Card.RequestThreeDSecure`
|
||||
* Remove the legacy field `rendering_options` in `Invoice`, `InvoiceCreateOptions` and `InvoiceUpdateOptions`. Use `rendering` instead.
|
||||
|
||||
## 14.25.0 - 2024-04-09
|
||||
* [#2059](https://github.com/stripe/stripe-node/pull/2059) Update generated code
|
||||
@@ -10,7 +541,7 @@
|
||||
* Add support for new value `none` on enum `Account.type`
|
||||
* Add support for `event_name` on `Billing.MeterEventAdjustmentCreateParams` and `Billing.MeterEventAdjustment`
|
||||
* Add support for `cancel` and `type` on `Billing.MeterEventAdjustment`
|
||||
|
||||
|
||||
|
||||
## 14.24.0 - 2024-04-04
|
||||
* [#2053](https://github.com/stripe/stripe-node/pull/2053) Update generated code
|
||||
|
||||
114
server/node_modules/stripe/README.md
generated
vendored
114
server/node_modules/stripe/README.md
generated
vendored
@@ -2,7 +2,6 @@
|
||||
|
||||
[](https://www.npmjs.org/package/stripe)
|
||||
[](https://github.com/stripe/stripe-node/actions?query=branch%3Amaster)
|
||||
[](https://coveralls.io/github/stripe/stripe-node?branch=master)
|
||||
[](https://www.npmjs.com/package/stripe)
|
||||
[](https://runkit.com/npm/stripe)
|
||||
|
||||
@@ -61,6 +60,39 @@ const customer = await stripe.customers.create({
|
||||
console.log(customer.id);
|
||||
```
|
||||
|
||||
> [!WARNING]
|
||||
> If you're using `v17.x.x` or later and getting an error about a missing API key despite being sure it's available, it's likely you're importing the file that instantiates `Stripe` while the key isn't present (for instance, during a build step).
|
||||
> If that's the case, consider instantiating the client lazily:
|
||||
>
|
||||
> ```ts
|
||||
> import Stripe from 'stripe';
|
||||
>
|
||||
> let _stripe: Stripe | null = null;
|
||||
> const getStripe = (): Stripe => {
|
||||
> if (!_stripe) {
|
||||
> _stripe = new Stripe(process.env.STRIPE_SECRET_KEY as string, {
|
||||
> // ...
|
||||
> });
|
||||
> }
|
||||
> return _stripe;
|
||||
> };
|
||||
>
|
||||
> const getCustomers = () => getStripe().customers.list();
|
||||
> ```
|
||||
>
|
||||
> Alternatively, you can provide a placeholder for the real key (which will be enough to get the code through a build step):
|
||||
>
|
||||
> ```ts
|
||||
> import Stripe from 'stripe';
|
||||
>
|
||||
> export const stripe = new Stripe(
|
||||
> process.env.STRIPE_SECRET_KEY || 'api_key_placeholder',
|
||||
> {
|
||||
> // ...
|
||||
> }
|
||||
> );
|
||||
> ```
|
||||
|
||||
### Usage with TypeScript
|
||||
|
||||
As of 8.0.1, Stripe maintains types for the latest [API version][api-versions].
|
||||
@@ -197,7 +229,7 @@ const stripe = Stripe('sk_test_...', {
|
||||
| `host` | `'api.stripe.com'` | Host that requests are made to. |
|
||||
| `port` | 443 | Port that requests are made to. |
|
||||
| `protocol` | `'https'` | `'https'` or `'http'`. `http` is never appropriate for sending requests to Stripe servers, and we strongly discourage `http`, even in local testing scenarios, as this can result in your credentials being transmitted over an insecure channel. |
|
||||
| `telemetry` | `true` | Allow Stripe to send [telemetry](#telemetry). |
|
||||
| `telemetry` | `true` | Allow Stripe to send [telemetry](#telemetry). |
|
||||
|
||||
> **Note**
|
||||
> Both `maxNetworkRetries` and `timeout` can be overridden on a per-request basis.
|
||||
@@ -467,14 +499,15 @@ stripe.customers
|
||||
|
||||
This is a convenience for cases where you expect the number of items
|
||||
to be relatively small; accordingly, you must pass a `limit` option
|
||||
to prevent runaway list growth from consuming too much memory.
|
||||
to prevent runaway list growth from consuming too much memory. Once the
|
||||
`limit` number of items have been fetched, auto-pagination will stop.
|
||||
|
||||
Returns a promise of an array of all items across pages for a list request.
|
||||
|
||||
```js
|
||||
const allNewCustomers = await stripe.customers
|
||||
.list({created: {gt: lastMonth}})
|
||||
.autoPagingToArray({limit: 10000});
|
||||
.list({created: {gt: lastMonth}, limit: 100}) // 100 items per page
|
||||
.autoPagingToArray({limit: 10000}); // Stop after 10000 items total
|
||||
```
|
||||
|
||||
### Telemetry
|
||||
@@ -516,6 +549,39 @@ const stripe = new Stripe('sk_test_...', {
|
||||
});
|
||||
```
|
||||
|
||||
### Custom requests
|
||||
|
||||
If you would like to send a request to an undocumented API (for example you are in a private beta), or if you prefer to bypass the method definitions in the library and specify your request details directly, you can use the `rawRequest` method on the StripeClient object.
|
||||
|
||||
```javascript
|
||||
const client = new Stripe('sk_test_...');
|
||||
|
||||
client.rawRequest(
|
||||
'POST',
|
||||
'/v1/beta_endpoint',
|
||||
{ param: 123 },
|
||||
{ apiVersion: '2022-11-15; feature_beta=v3' }
|
||||
)
|
||||
.then((response) => /* handle response */ )
|
||||
.catch((error) => console.error(error));
|
||||
```
|
||||
|
||||
Or using ES modules and `async`/`await`:
|
||||
|
||||
```javascript
|
||||
import Stripe from 'stripe';
|
||||
const stripe = new Stripe('sk_test_...');
|
||||
|
||||
const response = await stripe.rawRequest(
|
||||
'POST',
|
||||
'/v1/beta_endpoint',
|
||||
{param: 123},
|
||||
{apiVersion: '2022-11-15; feature_beta=v3'}
|
||||
);
|
||||
|
||||
// handle response
|
||||
```
|
||||
|
||||
## Support
|
||||
|
||||
New features and bug fixes are released on the latest major version of the `stripe` package. If you are on an older major version, we recommend that you upgrade to the latest in order to use the new features and bug fixes including those for security vulnerabilities. Older major versions of the package will continue to be available for use, but will not be receiving any updates.
|
||||
@@ -529,16 +595,9 @@ New features and bug fixes are released on the latest major version of the `stri
|
||||
|
||||
## Development
|
||||
|
||||
Run all tests:
|
||||
[Contribution guidelines for this project](CONTRIBUTING.md)
|
||||
|
||||
```bash
|
||||
$ yarn install
|
||||
$ yarn test
|
||||
```
|
||||
|
||||
If you do not have `yarn` installed, you can get it with `npm install --global yarn`.
|
||||
|
||||
The tests also depends on [stripe-mock][stripe-mock], so make sure to fetch and
|
||||
The tests depend on [stripe-mock][stripe-mock], so make sure to fetch and
|
||||
run it from a background terminal ([stripe-mock's README][stripe-mock-usage]
|
||||
also contains instructions for installing via Homebrew and other methods):
|
||||
|
||||
@@ -547,24 +606,38 @@ go get -u github.com/stripe/stripe-mock
|
||||
stripe-mock
|
||||
```
|
||||
|
||||
Run a single test suite without a coverage report:
|
||||
We use [just](https://github.com/casey/just) for conveniently running development tasks. You can use them directly, or copy the commands out of the `justfile`. To our help docs, run `just`.
|
||||
|
||||
Run all tests (installing the dependencies first, if needed)
|
||||
|
||||
```bash
|
||||
$ yarn mocha-only test/Error.spec.ts
|
||||
just test
|
||||
# or: yarn && yarn test
|
||||
```
|
||||
|
||||
If you do not have `yarn` installed, consult its [installation instructions](https://classic.yarnpkg.com/lang/en/docs/install/).
|
||||
|
||||
Run a single test suite:
|
||||
|
||||
```bash
|
||||
just test test/Error.spec.ts
|
||||
# or: yarn test test/Error.spec.ts
|
||||
```
|
||||
|
||||
Run a single test (case sensitive) in watch mode:
|
||||
|
||||
```bash
|
||||
$ yarn mocha-only test/Error.spec.ts --grep 'Populates with type' --watch
|
||||
just test test/Error.spec.ts --grep 'StripeError' --watch
|
||||
# or: yarn test test/Error.spec.ts --grep 'StripeError' --watch
|
||||
```
|
||||
|
||||
If you wish, you may run tests using your Stripe _Test_ API key by setting the
|
||||
environment variable `STRIPE_TEST_API_KEY` before running the tests:
|
||||
|
||||
```bash
|
||||
$ export STRIPE_TEST_API_KEY='sk_test....'
|
||||
$ yarn test
|
||||
export STRIPE_TEST_API_KEY='sk_test....'
|
||||
just test
|
||||
# or: yarn test
|
||||
```
|
||||
|
||||
Run prettier:
|
||||
@@ -572,7 +645,8 @@ Run prettier:
|
||||
Add an [editor integration](https://prettier.io/docs/en/editors.html) or:
|
||||
|
||||
```bash
|
||||
$ yarn fix
|
||||
just format
|
||||
# or: yarn prettier src/**/*.ts --write
|
||||
```
|
||||
|
||||
[api-keys]: https://dashboard.stripe.com/account/apikeys
|
||||
|
||||
2
server/node_modules/stripe/VERSION
generated
vendored
2
server/node_modules/stripe/VERSION
generated
vendored
@@ -1 +1 @@
|
||||
14.25.0
|
||||
17.7.0
|
||||
|
||||
35
server/node_modules/stripe/cjs/Error.js
generated
vendored
35
server/node_modules/stripe/cjs/Error.js
generated
vendored
@@ -1,8 +1,9 @@
|
||||
"use strict";
|
||||
/* eslint-disable camelcase */
|
||||
/* eslint-disable no-warning-comments */
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.StripeUnknownError = exports.StripeInvalidGrantError = exports.StripeIdempotencyError = exports.StripeSignatureVerificationError = exports.StripeConnectionError = exports.StripeRateLimitError = exports.StripePermissionError = exports.StripeAuthenticationError = exports.StripeAPIError = exports.StripeInvalidRequestError = exports.StripeCardError = exports.StripeError = exports.generate = void 0;
|
||||
const generate = (rawStripeError) => {
|
||||
exports.TemporarySessionExpiredError = exports.StripeUnknownError = exports.StripeInvalidGrantError = exports.StripeIdempotencyError = exports.StripeSignatureVerificationError = exports.StripeConnectionError = exports.StripeRateLimitError = exports.StripePermissionError = exports.StripeAuthenticationError = exports.StripeAPIError = exports.StripeInvalidRequestError = exports.StripeCardError = exports.StripeError = exports.generateV2Error = exports.generateV1Error = void 0;
|
||||
const generateV1Error = (rawStripeError) => {
|
||||
switch (rawStripeError.type) {
|
||||
case 'card_error':
|
||||
return new StripeCardError(rawStripeError);
|
||||
@@ -22,7 +23,24 @@ const generate = (rawStripeError) => {
|
||||
return new StripeUnknownError(rawStripeError);
|
||||
}
|
||||
};
|
||||
exports.generate = generate;
|
||||
exports.generateV1Error = generateV1Error;
|
||||
// eslint-disable-next-line complexity
|
||||
const generateV2Error = (rawStripeError) => {
|
||||
switch (rawStripeError.type) {
|
||||
// switchCases: The beginning of the section generated from our OpenAPI spec
|
||||
case 'temporary_session_expired':
|
||||
return new TemporarySessionExpiredError(rawStripeError);
|
||||
// switchCases: The end of the section generated from our OpenAPI spec
|
||||
}
|
||||
// Special handling for requests with missing required fields in V2 APIs.
|
||||
// invalid_field response in V2 APIs returns the field 'code' instead of 'type'.
|
||||
switch (rawStripeError.code) {
|
||||
case 'invalid_fields':
|
||||
return new StripeInvalidRequestError(rawStripeError);
|
||||
}
|
||||
return (0, exports.generateV1Error)(rawStripeError);
|
||||
};
|
||||
exports.generateV2Error = generateV2Error;
|
||||
/**
|
||||
* StripeError is the base error from which all other more specific Stripe errors derive.
|
||||
* Specifically for errors returned from Stripe's REST API.
|
||||
@@ -42,6 +60,7 @@ class StripeError extends Error {
|
||||
this.statusCode = raw.statusCode;
|
||||
// @ts-ignore
|
||||
this.message = raw.message;
|
||||
this.userMessage = raw.user_message;
|
||||
this.charge = raw.charge;
|
||||
this.decline_code = raw.decline_code;
|
||||
this.payment_intent = raw.payment_intent;
|
||||
@@ -55,7 +74,7 @@ exports.StripeError = StripeError;
|
||||
/**
|
||||
* Helper factory which takes raw stripe errors and outputs wrapping instances
|
||||
*/
|
||||
StripeError.generate = exports.generate;
|
||||
StripeError.generate = exports.generateV1Error;
|
||||
// Specific Stripe Error types:
|
||||
/**
|
||||
* CardError is raised when a user enters a card that can't be charged for
|
||||
@@ -174,3 +193,11 @@ class StripeUnknownError extends StripeError {
|
||||
}
|
||||
}
|
||||
exports.StripeUnknownError = StripeUnknownError;
|
||||
// classDefinitions: The beginning of the section generated from our OpenAPI spec
|
||||
class TemporarySessionExpiredError extends StripeError {
|
||||
constructor(rawStripeError = {}) {
|
||||
super(rawStripeError, 'TemporarySessionExpiredError');
|
||||
}
|
||||
}
|
||||
exports.TemporarySessionExpiredError = TemporarySessionExpiredError;
|
||||
// classDefinitions: The end of the section generated from our OpenAPI spec
|
||||
|
||||
227
server/node_modules/stripe/cjs/RequestSender.js
generated
vendored
227
server/node_modules/stripe/cjs/RequestSender.js
generated
vendored
@@ -2,8 +2,8 @@
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.RequestSender = void 0;
|
||||
const Error_js_1 = require("./Error.js");
|
||||
const utils_js_1 = require("./utils.js");
|
||||
const HttpClient_js_1 = require("./net/HttpClient.js");
|
||||
const utils_js_1 = require("./utils.js");
|
||||
const MAX_RETRY_AFTER_WAIT = 60;
|
||||
class RequestSender {
|
||||
constructor(stripe, maxBufferedRequestMetric) {
|
||||
@@ -69,7 +69,7 @@ class RequestSender {
|
||||
* parses the JSON and returns it (i.e. passes it to the callback) if there
|
||||
* is no "error" field. Otherwise constructs/passes an appropriate Error.
|
||||
*/
|
||||
_jsonResponseHandler(requestEvent, usage, callback) {
|
||||
_jsonResponseHandler(requestEvent, apiMode, usage, callback) {
|
||||
return (res) => {
|
||||
const headers = res.getHeaders();
|
||||
const requestId = this._getRequestId(headers);
|
||||
@@ -101,8 +101,11 @@ class RequestSender {
|
||||
else if (statusCode === 429) {
|
||||
err = new Error_js_1.StripeRateLimitError(jsonResponse.error);
|
||||
}
|
||||
else if (apiMode === 'v2') {
|
||||
err = (0, Error_js_1.generateV2Error)(jsonResponse.error);
|
||||
}
|
||||
else {
|
||||
err = Error_js_1.StripeError.generate(jsonResponse.error);
|
||||
err = (0, Error_js_1.generateV1Error)(jsonResponse.error);
|
||||
}
|
||||
throw err;
|
||||
}
|
||||
@@ -174,7 +177,7 @@ class RequestSender {
|
||||
// Apply exponential backoff with initialNetworkRetryDelay on the
|
||||
// number of numRetries so far as inputs. Do not allow the number to exceed
|
||||
// maxNetworkRetryDelay.
|
||||
let sleepSeconds = Math.min(initialNetworkRetryDelay * Math.pow(numRetries - 1, 2), maxNetworkRetryDelay);
|
||||
let sleepSeconds = Math.min(initialNetworkRetryDelay * Math.pow(2, numRetries - 1), maxNetworkRetryDelay);
|
||||
// Apply some jitter by randomizing the value in the range of
|
||||
// (sleepSeconds / 2) to (sleepSeconds).
|
||||
sleepSeconds *= 0.5 * (1 + Math.random());
|
||||
@@ -193,26 +196,34 @@ class RequestSender {
|
||||
? settings.maxNetworkRetries
|
||||
: this._stripe.getMaxNetworkRetries();
|
||||
}
|
||||
_defaultIdempotencyKey(method, settings) {
|
||||
_defaultIdempotencyKey(method, settings, apiMode) {
|
||||
// If this is a POST and we allow multiple retries, ensure an idempotency key.
|
||||
const maxRetries = this._getMaxNetworkRetries(settings);
|
||||
if (method === 'POST' && maxRetries > 0) {
|
||||
return `stripe-node-retry-${this._stripe._platformFunctions.uuid4()}`;
|
||||
const genKey = () => `stripe-node-retry-${this._stripe._platformFunctions.uuid4()}`;
|
||||
// more verbose than it needs to be, but gives clear separation between V1 and V2 behavior
|
||||
if (apiMode === 'v2') {
|
||||
if (method === 'POST' || method === 'DELETE') {
|
||||
return genKey();
|
||||
}
|
||||
}
|
||||
else if (apiMode === 'v1') {
|
||||
if (method === 'POST' && maxRetries > 0) {
|
||||
return genKey();
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
_makeHeaders(auth, contentLength, apiVersion, clientUserAgent, method, userSuppliedHeaders, userSuppliedSettings) {
|
||||
_makeHeaders({ contentType, contentLength, apiVersion, clientUserAgent, method, userSuppliedHeaders, userSuppliedSettings, stripeAccount, stripeContext, apiMode, }) {
|
||||
const defaultHeaders = {
|
||||
// Use specified auth token or use default from this stripe instance:
|
||||
Authorization: auth ? `Bearer ${auth}` : this._stripe.getApiField('auth'),
|
||||
Accept: 'application/json',
|
||||
'Content-Type': 'application/x-www-form-urlencoded',
|
||||
'User-Agent': this._getUserAgentString(),
|
||||
'Content-Type': contentType,
|
||||
'User-Agent': this._getUserAgentString(apiMode),
|
||||
'X-Stripe-Client-User-Agent': clientUserAgent,
|
||||
'X-Stripe-Client-Telemetry': this._getTelemetryHeader(),
|
||||
'Stripe-Version': apiVersion,
|
||||
'Stripe-Account': this._stripe.getApiField('stripeAccount'),
|
||||
'Idempotency-Key': this._defaultIdempotencyKey(method, userSuppliedSettings),
|
||||
'Stripe-Account': stripeAccount,
|
||||
'Stripe-Context': stripeContext,
|
||||
'Idempotency-Key': this._defaultIdempotencyKey(method, userSuppliedSettings, apiMode),
|
||||
};
|
||||
// As per https://datatracker.ietf.org/doc/html/rfc7230#section-3.3.2:
|
||||
// A user agent SHOULD send a Content-Length in a request message when
|
||||
@@ -241,12 +252,12 @@ class RequestSender {
|
||||
// If the user supplied, say 'idempotency-key', override instead of appending by ensuring caps are the same.
|
||||
(0, utils_js_1.normalizeHeaders)(userSuppliedHeaders));
|
||||
}
|
||||
_getUserAgentString() {
|
||||
_getUserAgentString(apiMode) {
|
||||
const packageVersion = this._stripe.getConstant('PACKAGE_VERSION');
|
||||
const appInfo = this._stripe._appInfo
|
||||
? this._stripe.getAppInfoAsString()
|
||||
: '';
|
||||
return `Stripe/v1 NodeBindings/${packageVersion} ${appInfo}`.trim();
|
||||
return `Stripe/${apiMode} NodeBindings/${packageVersion} ${appInfo}`.trim();
|
||||
}
|
||||
_getTelemetryHeader() {
|
||||
if (this._stripe.getTelemetryEnabled() &&
|
||||
@@ -274,8 +285,61 @@ class RequestSender {
|
||||
}
|
||||
}
|
||||
}
|
||||
_request(method, host, path, data, auth, options = {}, usage = [], callback, requestDataProcessor = null) {
|
||||
_rawRequest(method, path, params, options) {
|
||||
const requestPromise = new Promise((resolve, reject) => {
|
||||
let opts;
|
||||
try {
|
||||
const requestMethod = method.toUpperCase();
|
||||
if (requestMethod !== 'POST' &&
|
||||
params &&
|
||||
Object.keys(params).length !== 0) {
|
||||
throw new Error('rawRequest only supports params on POST requests. Please pass null and add your parameters to path.');
|
||||
}
|
||||
const args = [].slice.call([params, options]);
|
||||
// Pull request data and options (headers, auth) from args.
|
||||
const dataFromArgs = (0, utils_js_1.getDataFromArgs)(args);
|
||||
const data = Object.assign({}, dataFromArgs);
|
||||
const calculatedOptions = (0, utils_js_1.getOptionsFromArgs)(args);
|
||||
const headers = calculatedOptions.headers;
|
||||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
||||
const authenticator = calculatedOptions.authenticator;
|
||||
opts = {
|
||||
requestMethod,
|
||||
requestPath: path,
|
||||
bodyData: data,
|
||||
queryData: {},
|
||||
authenticator,
|
||||
headers,
|
||||
host: null,
|
||||
streaming: false,
|
||||
settings: {},
|
||||
usage: ['raw_request'],
|
||||
};
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
return;
|
||||
}
|
||||
function requestCallback(err, response) {
|
||||
if (err) {
|
||||
reject(err);
|
||||
}
|
||||
else {
|
||||
resolve(response);
|
||||
}
|
||||
}
|
||||
const { headers, settings } = opts;
|
||||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
||||
const authenticator = opts.authenticator;
|
||||
this._request(opts.requestMethod, opts.host, path, opts.bodyData, authenticator, { headers, settings, streaming: opts.streaming }, opts.usage, requestCallback);
|
||||
});
|
||||
return requestPromise;
|
||||
}
|
||||
_request(method, host, path, data, authenticator, options, usage = [], callback, requestDataProcessor = null) {
|
||||
var _a;
|
||||
let requestData;
|
||||
authenticator = (_a = authenticator !== null && authenticator !== void 0 ? authenticator : this._stripe._authenticator) !== null && _a !== void 0 ? _a : null;
|
||||
const apiMode = (0, utils_js_1.getAPIMode)(path);
|
||||
const retryRequest = (requestFn, apiVersion, headers, requestRetries, retryAfter) => {
|
||||
return setTimeout(requestFn, this._getSleepTimeInMS(requestRetries, retryAfter), apiVersion, headers, requestRetries + 1);
|
||||
};
|
||||
@@ -287,50 +351,68 @@ class RequestSender {
|
||||
options.settings.timeout >= 0
|
||||
? options.settings.timeout
|
||||
: this._stripe.getApiField('timeout');
|
||||
const req = this._stripe
|
||||
.getApiField('httpClient')
|
||||
.makeRequest(host || this._stripe.getApiField('host'), this._stripe.getApiField('port'), path, method, headers, requestData, this._stripe.getApiField('protocol'), timeout);
|
||||
const requestStartTime = Date.now();
|
||||
// @ts-ignore
|
||||
const requestEvent = (0, utils_js_1.removeNullish)({
|
||||
api_version: apiVersion,
|
||||
account: headers['Stripe-Account'],
|
||||
idempotency_key: headers['Idempotency-Key'],
|
||||
method,
|
||||
path,
|
||||
request_start_time: requestStartTime,
|
||||
});
|
||||
const requestRetries = numRetries || 0;
|
||||
const maxRetries = this._getMaxNetworkRetries(options.settings || {});
|
||||
this._stripe._emitter.emit('request', requestEvent);
|
||||
req
|
||||
.then((res) => {
|
||||
if (RequestSender._shouldRetry(res, requestRetries, maxRetries)) {
|
||||
return retryRequest(makeRequest, apiVersion, headers, requestRetries,
|
||||
// @ts-ignore
|
||||
res.getHeaders()['retry-after']);
|
||||
}
|
||||
else if (options.streaming && res.getStatusCode() < 400) {
|
||||
return this._streamingResponseHandler(requestEvent, usage, callback)(res);
|
||||
}
|
||||
else {
|
||||
return this._jsonResponseHandler(requestEvent, usage, callback)(res);
|
||||
}
|
||||
})
|
||||
.catch((error) => {
|
||||
if (RequestSender._shouldRetry(null, requestRetries, maxRetries, error)) {
|
||||
return retryRequest(makeRequest, apiVersion, headers, requestRetries, null);
|
||||
}
|
||||
else {
|
||||
const isTimeoutError = error.code && error.code === HttpClient_js_1.HttpClient.TIMEOUT_ERROR_CODE;
|
||||
return callback(new Error_js_1.StripeConnectionError({
|
||||
message: isTimeoutError
|
||||
? `Request aborted due to timeout being reached (${timeout}ms)`
|
||||
: RequestSender._generateConnectionErrorMessage(requestRetries),
|
||||
const request = {
|
||||
host: host || this._stripe.getApiField('host'),
|
||||
port: this._stripe.getApiField('port'),
|
||||
path: path,
|
||||
method: method,
|
||||
headers: Object.assign({}, headers),
|
||||
body: requestData,
|
||||
protocol: this._stripe.getApiField('protocol'),
|
||||
};
|
||||
authenticator(request)
|
||||
.then(() => {
|
||||
const req = this._stripe
|
||||
.getApiField('httpClient')
|
||||
.makeRequest(request.host, request.port, request.path, request.method, request.headers, request.body, request.protocol, timeout);
|
||||
const requestStartTime = Date.now();
|
||||
// @ts-ignore
|
||||
const requestEvent = (0, utils_js_1.removeNullish)({
|
||||
api_version: apiVersion,
|
||||
account: headers['Stripe-Account'],
|
||||
idempotency_key: headers['Idempotency-Key'],
|
||||
method,
|
||||
path,
|
||||
request_start_time: requestStartTime,
|
||||
});
|
||||
const requestRetries = numRetries || 0;
|
||||
const maxRetries = this._getMaxNetworkRetries(options.settings || {});
|
||||
this._stripe._emitter.emit('request', requestEvent);
|
||||
req
|
||||
.then((res) => {
|
||||
if (RequestSender._shouldRetry(res, requestRetries, maxRetries)) {
|
||||
return retryRequest(makeRequest, apiVersion, headers, requestRetries,
|
||||
// @ts-ignore
|
||||
detail: error,
|
||||
}));
|
||||
}
|
||||
res.getHeaders()['retry-after']);
|
||||
}
|
||||
else if (options.streaming && res.getStatusCode() < 400) {
|
||||
return this._streamingResponseHandler(requestEvent, usage, callback)(res);
|
||||
}
|
||||
else {
|
||||
return this._jsonResponseHandler(requestEvent, apiMode, usage, callback)(res);
|
||||
}
|
||||
})
|
||||
.catch((error) => {
|
||||
if (RequestSender._shouldRetry(null, requestRetries, maxRetries, error)) {
|
||||
return retryRequest(makeRequest, apiVersion, headers, requestRetries, null);
|
||||
}
|
||||
else {
|
||||
const isTimeoutError = error.code && error.code === HttpClient_js_1.HttpClient.TIMEOUT_ERROR_CODE;
|
||||
return callback(new Error_js_1.StripeConnectionError({
|
||||
message: isTimeoutError
|
||||
? `Request aborted due to timeout being reached (${timeout}ms)`
|
||||
: RequestSender._generateConnectionErrorMessage(requestRetries),
|
||||
// @ts-ignore
|
||||
detail: error,
|
||||
}));
|
||||
}
|
||||
});
|
||||
})
|
||||
.catch((e) => {
|
||||
throw new Error_js_1.StripeError({
|
||||
message: 'Unable to authenticate the request',
|
||||
exception: e,
|
||||
});
|
||||
});
|
||||
};
|
||||
const prepareAndMakeRequest = (error, data) => {
|
||||
@@ -339,9 +421,21 @@ class RequestSender {
|
||||
}
|
||||
requestData = data;
|
||||
this._stripe.getClientUserAgent((clientUserAgent) => {
|
||||
var _a, _b;
|
||||
const apiVersion = this._stripe.getApiField('version');
|
||||
const headers = this._makeHeaders(auth, requestData.length, apiVersion, clientUserAgent, method, (_a = options.headers) !== null && _a !== void 0 ? _a : null, (_b = options.settings) !== null && _b !== void 0 ? _b : {});
|
||||
const headers = this._makeHeaders({
|
||||
contentType: apiMode == 'v2'
|
||||
? 'application/json'
|
||||
: 'application/x-www-form-urlencoded',
|
||||
contentLength: requestData.length,
|
||||
apiVersion: apiVersion,
|
||||
clientUserAgent,
|
||||
method,
|
||||
userSuppliedHeaders: options.headers,
|
||||
userSuppliedSettings: options.settings,
|
||||
stripeAccount: apiMode == 'v2' ? null : this._stripe.getApiField('stripeAccount'),
|
||||
stripeContext: apiMode == 'v2' ? this._stripe.getApiField('stripeContext') : null,
|
||||
apiMode: apiMode,
|
||||
});
|
||||
makeRequest(apiVersion, headers, 0);
|
||||
});
|
||||
};
|
||||
@@ -349,7 +443,14 @@ class RequestSender {
|
||||
requestDataProcessor(method, data, options.headers, prepareAndMakeRequest);
|
||||
}
|
||||
else {
|
||||
prepareAndMakeRequest(null, (0, utils_js_1.stringifyRequestData)(data || {}));
|
||||
let stringifiedData;
|
||||
if (apiMode == 'v2') {
|
||||
stringifiedData = data ? (0, utils_js_1.jsonStringifyRequestData)(data) : '';
|
||||
}
|
||||
else {
|
||||
stringifiedData = (0, utils_js_1.queryStringifyRequestData)(data || {}, apiMode);
|
||||
}
|
||||
prepareAndMakeRequest(null, stringifiedData);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
3
server/node_modules/stripe/cjs/ResourceNamespace.js
generated
vendored
3
server/node_modules/stripe/cjs/ResourceNamespace.js
generated
vendored
@@ -5,6 +5,9 @@ exports.resourceNamespace = void 0;
|
||||
// It also works recursively, so you could do i.e. `stripe.billing.invoicing.pay`.
|
||||
function ResourceNamespace(stripe, resources) {
|
||||
for (const name in resources) {
|
||||
if (!Object.prototype.hasOwnProperty.call(resources, name)) {
|
||||
continue;
|
||||
}
|
||||
const camelCaseName = name[0].toLowerCase() + name.substring(1);
|
||||
const resource = new resources[name](stripe);
|
||||
this[camelCaseName] = resource;
|
||||
|
||||
13
server/node_modules/stripe/cjs/StripeResource.js
generated
vendored
13
server/node_modules/stripe/cjs/StripeResource.js
generated
vendored
@@ -79,6 +79,7 @@ StripeResource.prototype = {
|
||||
return parts.join('/').replace(/\/{2,}/g, '/');
|
||||
},
|
||||
_getRequestOpts(requestArgs, spec, overrideData) {
|
||||
var _a;
|
||||
// Extract spec values with defaults.
|
||||
const requestMethod = (spec.method || 'GET').toUpperCase();
|
||||
const usage = spec.usage || [];
|
||||
@@ -122,14 +123,14 @@ StripeResource.prototype = {
|
||||
spec.validator(data, { headers });
|
||||
}
|
||||
const dataInQuery = spec.method === 'GET' || spec.method === 'DELETE';
|
||||
const bodyData = dataInQuery ? {} : data;
|
||||
const bodyData = dataInQuery ? null : data;
|
||||
const queryData = dataInQuery ? data : {};
|
||||
return {
|
||||
requestMethod,
|
||||
requestPath,
|
||||
bodyData,
|
||||
queryData,
|
||||
auth: options.auth,
|
||||
authenticator: (_a = options.authenticator) !== null && _a !== void 0 ? _a : null,
|
||||
headers,
|
||||
host: host !== null && host !== void 0 ? host : null,
|
||||
streaming,
|
||||
@@ -162,10 +163,14 @@ StripeResource.prototype = {
|
||||
const path = [
|
||||
opts.requestPath,
|
||||
emptyQuery ? '' : '?',
|
||||
(0, utils_js_1.stringifyRequestData)(opts.queryData),
|
||||
(0, utils_js_1.queryStringifyRequestData)(opts.queryData, (0, utils_js_1.getAPIMode)(opts.requestPath)),
|
||||
].join('');
|
||||
const { headers, settings } = opts;
|
||||
this._stripe._requestSender._request(opts.requestMethod, opts.host, path, opts.bodyData, opts.auth, { headers, settings, streaming: opts.streaming }, opts.usage, requestCallback, (_a = this.requestDataProcessor) === null || _a === void 0 ? void 0 : _a.bind(this));
|
||||
this._stripe._requestSender._request(opts.requestMethod, opts.host, path, opts.bodyData, opts.authenticator, {
|
||||
headers,
|
||||
settings,
|
||||
streaming: opts.streaming,
|
||||
}, opts.usage, requestCallback, (_a = this.requestDataProcessor) === null || _a === void 0 ? void 0 : _a.bind(this));
|
||||
});
|
||||
},
|
||||
};
|
||||
|
||||
48
server/node_modules/stripe/cjs/Webhooks.js
generated
vendored
48
server/node_modules/stripe/cjs/Webhooks.js
generated
vendored
@@ -43,23 +43,16 @@ function createWebhooks(platformFunctions) {
|
||||
* @property {CryptoProvider} cryptoProvider - Crypto provider to use for computing the signature if none was provided. Defaults to NodeCryptoProvider.
|
||||
*/
|
||||
generateTestHeaderString: function (opts) {
|
||||
if (!opts) {
|
||||
throw new Error_js_1.StripeError({
|
||||
message: 'Options are required',
|
||||
});
|
||||
}
|
||||
opts.timestamp =
|
||||
Math.floor(opts.timestamp) || Math.floor(Date.now() / 1000);
|
||||
opts.scheme = opts.scheme || signature.EXPECTED_SCHEME;
|
||||
opts.cryptoProvider = opts.cryptoProvider || getCryptoProvider();
|
||||
opts.signature =
|
||||
opts.signature ||
|
||||
opts.cryptoProvider.computeHMACSignature(opts.timestamp + '.' + opts.payload, opts.secret);
|
||||
const generatedHeader = [
|
||||
't=' + opts.timestamp,
|
||||
opts.scheme + '=' + opts.signature,
|
||||
].join(',');
|
||||
return generatedHeader;
|
||||
const preparedOpts = prepareOptions(opts);
|
||||
const signature = preparedOpts.signature ||
|
||||
preparedOpts.cryptoProvider.computeHMACSignature(preparedOpts.payloadString, preparedOpts.secret);
|
||||
return preparedOpts.generateHeaderString(signature);
|
||||
},
|
||||
generateTestHeaderStringAsync: async function (opts) {
|
||||
const preparedOpts = prepareOptions(opts);
|
||||
const signature = preparedOpts.signature ||
|
||||
(await preparedOpts.cryptoProvider.computeHMACSignatureAsync(preparedOpts.payloadString, preparedOpts.secret));
|
||||
return preparedOpts.generateHeaderString(signature);
|
||||
},
|
||||
};
|
||||
const signature = {
|
||||
@@ -131,7 +124,7 @@ function createWebhooks(platformFunctions) {
|
||||
function validateComputedSignature(payload, header, details, expectedSignature, tolerance, suspectPayloadType, secretContainsWhitespace, receivedAt) {
|
||||
const signatureFound = !!details.signatures.filter(platformFunctions.secureCompare.bind(platformFunctions, expectedSignature)).length;
|
||||
const docsLocation = '\nLearn more about webhook signing and explore webhook integration examples for various frameworks at ' +
|
||||
'https://github.com/stripe/stripe-node#webhook-signing';
|
||||
'https://docs.stripe.com/webhooks/signature';
|
||||
const whitespaceMessage = secretContainsWhitespace
|
||||
? '\n\nNote: The provided signing secret contains whitespace. This often indicates an extra newline or space is in the value'
|
||||
: '';
|
||||
@@ -194,6 +187,25 @@ function createWebhooks(platformFunctions) {
|
||||
}
|
||||
return webhooksCryptoProviderInstance;
|
||||
}
|
||||
function prepareOptions(opts) {
|
||||
if (!opts) {
|
||||
throw new Error_js_1.StripeError({
|
||||
message: 'Options are required',
|
||||
});
|
||||
}
|
||||
const timestamp = Math.floor(opts.timestamp) || Math.floor(Date.now() / 1000);
|
||||
const scheme = opts.scheme || signature.EXPECTED_SCHEME;
|
||||
const cryptoProvider = opts.cryptoProvider || getCryptoProvider();
|
||||
const payloadString = `${timestamp}.${opts.payload}`;
|
||||
const generateHeaderString = (signature) => {
|
||||
return `t=${timestamp},${scheme}=${signature}`;
|
||||
};
|
||||
return Object.assign(Object.assign({}, opts), { timestamp,
|
||||
scheme,
|
||||
cryptoProvider,
|
||||
payloadString,
|
||||
generateHeaderString });
|
||||
}
|
||||
Webhook.signature = signature;
|
||||
return Webhook;
|
||||
}
|
||||
|
||||
2
server/node_modules/stripe/cjs/apiVersion.js
generated
vendored
2
server/node_modules/stripe/cjs/apiVersion.js
generated
vendored
@@ -2,4 +2,4 @@
|
||||
// File generated from our OpenAPI spec
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.ApiVersion = void 0;
|
||||
exports.ApiVersion = '2023-10-16';
|
||||
exports.ApiVersion = '2025-02-24.acacia';
|
||||
|
||||
60
server/node_modules/stripe/cjs/autoPagination.js
generated
vendored
60
server/node_modules/stripe/cjs/autoPagination.js
generated
vendored
@@ -2,7 +2,7 @@
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.makeAutoPaginationMethods = void 0;
|
||||
const utils_js_1 = require("./utils.js");
|
||||
class StripeIterator {
|
||||
class V1Iterator {
|
||||
constructor(firstPagePromise, requestArgs, spec, stripeResource) {
|
||||
this.index = 0;
|
||||
this.pagePromise = firstPagePromise;
|
||||
@@ -60,7 +60,7 @@ class StripeIterator {
|
||||
return nextPromise;
|
||||
}
|
||||
}
|
||||
class ListIterator extends StripeIterator {
|
||||
class V1ListIterator extends V1Iterator {
|
||||
getNextPage(pageResult) {
|
||||
const reverseIteration = isReverseIteration(this.requestArgs);
|
||||
const lastId = getLastId(pageResult, reverseIteration);
|
||||
@@ -69,7 +69,7 @@ class ListIterator extends StripeIterator {
|
||||
});
|
||||
}
|
||||
}
|
||||
class SearchIterator extends StripeIterator {
|
||||
class V1SearchIterator extends V1Iterator {
|
||||
getNextPage(pageResult) {
|
||||
if (!pageResult.next_page) {
|
||||
throw Error('Unexpected: Stripe API response does not have a well-formed `next_page` field, but `has_more` was true.');
|
||||
@@ -79,12 +79,56 @@ class SearchIterator extends StripeIterator {
|
||||
});
|
||||
}
|
||||
}
|
||||
const makeAutoPaginationMethods = (stripeResource, requestArgs, spec, firstPagePromise) => {
|
||||
if (spec.methodType === 'search') {
|
||||
return makeAutoPaginationMethodsFromIterator(new SearchIterator(firstPagePromise, requestArgs, spec, stripeResource));
|
||||
class V2ListIterator {
|
||||
constructor(firstPagePromise, requestArgs, spec, stripeResource) {
|
||||
this.currentPageIterator = (async () => {
|
||||
const page = await firstPagePromise;
|
||||
return page.data[Symbol.iterator]();
|
||||
})();
|
||||
this.nextPageUrl = (async () => {
|
||||
const page = await firstPagePromise;
|
||||
return page.next_page_url || null;
|
||||
})();
|
||||
this.requestArgs = requestArgs;
|
||||
this.spec = spec;
|
||||
this.stripeResource = stripeResource;
|
||||
}
|
||||
if (spec.methodType === 'list') {
|
||||
return makeAutoPaginationMethodsFromIterator(new ListIterator(firstPagePromise, requestArgs, spec, stripeResource));
|
||||
async turnPage() {
|
||||
const nextPageUrl = await this.nextPageUrl;
|
||||
if (!nextPageUrl)
|
||||
return null;
|
||||
this.spec.fullPath = nextPageUrl;
|
||||
const page = await this.stripeResource._makeRequest([], this.spec, {});
|
||||
this.nextPageUrl = Promise.resolve(page.next_page_url);
|
||||
this.currentPageIterator = Promise.resolve(page.data[Symbol.iterator]());
|
||||
return this.currentPageIterator;
|
||||
}
|
||||
async next() {
|
||||
{
|
||||
const result = (await this.currentPageIterator).next();
|
||||
if (!result.done)
|
||||
return { done: false, value: result.value };
|
||||
}
|
||||
const nextPageIterator = await this.turnPage();
|
||||
if (!nextPageIterator) {
|
||||
return { done: true, value: undefined };
|
||||
}
|
||||
const result = nextPageIterator.next();
|
||||
if (!result.done)
|
||||
return { done: false, value: result.value };
|
||||
return { done: true, value: undefined };
|
||||
}
|
||||
}
|
||||
const makeAutoPaginationMethods = (stripeResource, requestArgs, spec, firstPagePromise) => {
|
||||
const apiMode = (0, utils_js_1.getAPIMode)(spec.fullPath || spec.path);
|
||||
if (apiMode !== 'v2' && spec.methodType === 'search') {
|
||||
return makeAutoPaginationMethodsFromIterator(new V1SearchIterator(firstPagePromise, requestArgs, spec, stripeResource));
|
||||
}
|
||||
if (apiMode !== 'v2' && spec.methodType === 'list') {
|
||||
return makeAutoPaginationMethodsFromIterator(new V1ListIterator(firstPagePromise, requestArgs, spec, stripeResource));
|
||||
}
|
||||
if (apiMode === 'v2' && spec.methodType === 'list') {
|
||||
return makeAutoPaginationMethodsFromIterator(new V2ListIterator(firstPagePromise, requestArgs, spec, stripeResource));
|
||||
}
|
||||
return null;
|
||||
};
|
||||
|
||||
6
server/node_modules/stripe/cjs/crypto/CryptoProvider.js
generated
vendored
6
server/node_modules/stripe/cjs/crypto/CryptoProvider.js
generated
vendored
@@ -31,6 +31,12 @@ class CryptoProvider {
|
||||
computeHMACSignatureAsync(payload, secret) {
|
||||
throw new Error('computeHMACSignatureAsync not implemented.');
|
||||
}
|
||||
/**
|
||||
* Computes a SHA-256 hash of the data.
|
||||
*/
|
||||
computeSHA256Async(data) {
|
||||
throw new Error('computeSHA256 not implemented.');
|
||||
}
|
||||
}
|
||||
exports.CryptoProvider = CryptoProvider;
|
||||
/**
|
||||
|
||||
7
server/node_modules/stripe/cjs/crypto/NodeCryptoProvider.js
generated
vendored
7
server/node_modules/stripe/cjs/crypto/NodeCryptoProvider.js
generated
vendored
@@ -19,5 +19,12 @@ class NodeCryptoProvider extends CryptoProvider_js_1.CryptoProvider {
|
||||
const signature = await this.computeHMACSignature(payload, secret);
|
||||
return signature;
|
||||
}
|
||||
/** @override */
|
||||
async computeSHA256Async(data) {
|
||||
return new Uint8Array(await crypto
|
||||
.createHash('sha256')
|
||||
.update(data)
|
||||
.digest());
|
||||
}
|
||||
}
|
||||
exports.NodeCryptoProvider = NodeCryptoProvider;
|
||||
|
||||
4
server/node_modules/stripe/cjs/crypto/SubtleCryptoProvider.js
generated
vendored
4
server/node_modules/stripe/cjs/crypto/SubtleCryptoProvider.js
generated
vendored
@@ -37,6 +37,10 @@ class SubtleCryptoProvider extends CryptoProvider_js_1.CryptoProvider {
|
||||
}
|
||||
return signatureHexCodes.join('');
|
||||
}
|
||||
/** @override */
|
||||
async computeSHA256Async(data) {
|
||||
return new Uint8Array(await this.subtleCrypto.digest('SHA-256', data));
|
||||
}
|
||||
}
|
||||
exports.SubtleCryptoProvider = SubtleCryptoProvider;
|
||||
// Cached mapping of byte to hex representation. We do this once to avoid re-
|
||||
|
||||
5
server/node_modules/stripe/cjs/multipart.js
generated
vendored
5
server/node_modules/stripe/cjs/multipart.js
generated
vendored
@@ -24,6 +24,9 @@ const multipartDataGenerator = (method, data, headers) => {
|
||||
}
|
||||
const flattenedData = (0, utils_js_1.flattenAndStringify)(data);
|
||||
for (const k in flattenedData) {
|
||||
if (!Object.prototype.hasOwnProperty.call(flattenedData, k)) {
|
||||
continue;
|
||||
}
|
||||
const v = flattenedData[k];
|
||||
push(`--${segno}`);
|
||||
if (Object.prototype.hasOwnProperty.call(v, 'data')) {
|
||||
@@ -45,7 +48,7 @@ const multipartDataGenerator = (method, data, headers) => {
|
||||
function multipartRequestDataProcessor(method, data, headers, callback) {
|
||||
data = data || {};
|
||||
if (method !== 'POST') {
|
||||
return callback(null, (0, utils_js_1.stringifyRequestData)(data));
|
||||
return callback(null, (0, utils_js_1.queryStringifyRequestData)(data));
|
||||
}
|
||||
this._stripe._platformFunctions
|
||||
.tryBufferData(data)
|
||||
|
||||
36
server/node_modules/stripe/cjs/resources.js
generated
vendored
36
server/node_modules/stripe/cjs/resources.js
generated
vendored
@@ -1,11 +1,12 @@
|
||||
"use strict";
|
||||
// File generated from our OpenAPI spec
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.Topups = exports.Tokens = exports.TaxRates = exports.TaxIds = exports.TaxCodes = exports.Subscriptions = exports.SubscriptionSchedules = exports.SubscriptionItems = exports.Sources = exports.ShippingRates = exports.SetupIntents = exports.SetupAttempts = exports.Reviews = exports.Refunds = exports.Quotes = exports.PromotionCodes = exports.Products = exports.Prices = exports.Plans = exports.Payouts = exports.PaymentMethods = exports.PaymentMethodDomains = exports.PaymentMethodConfigurations = exports.PaymentLinks = exports.PaymentIntents = exports.OAuth = exports.Mandates = exports.Invoices = exports.InvoiceItems = exports.Files = exports.FileLinks = exports.ExchangeRates = exports.Events = exports.EphemeralKeys = exports.Disputes = exports.Customers = exports.CustomerSessions = exports.CreditNotes = exports.Coupons = exports.CountrySpecs = exports.ConfirmationTokens = exports.Charges = exports.BalanceTransactions = exports.Balance = exports.ApplicationFees = exports.ApplePayDomains = exports.Accounts = exports.AccountSessions = exports.AccountLinks = exports.Account = void 0;
|
||||
exports.Treasury = exports.TestHelpers = exports.Terminal = exports.Tax = exports.Sigma = exports.Reporting = exports.Radar = exports.Issuing = exports.Identity = exports.Forwarding = exports.FinancialConnections = exports.Entitlements = exports.Climate = exports.Checkout = exports.BillingPortal = exports.Billing = exports.Apps = exports.WebhookEndpoints = exports.Transfers = void 0;
|
||||
exports.Tokens = exports.TaxRates = exports.TaxIds = exports.TaxCodes = exports.Subscriptions = exports.SubscriptionSchedules = exports.SubscriptionItems = exports.Sources = exports.ShippingRates = exports.SetupIntents = exports.SetupAttempts = exports.Reviews = exports.Refunds = exports.Quotes = exports.PromotionCodes = exports.Products = exports.Prices = exports.Plans = exports.Payouts = exports.PaymentMethods = exports.PaymentMethodDomains = exports.PaymentMethodConfigurations = exports.PaymentLinks = exports.PaymentIntents = exports.OAuth = exports.Mandates = exports.Invoices = exports.InvoiceRenderingTemplates = exports.InvoiceItems = exports.Files = exports.FileLinks = exports.ExchangeRates = exports.Events = exports.EphemeralKeys = exports.Disputes = exports.Customers = exports.CustomerSessions = exports.CreditNotes = exports.Coupons = exports.CountrySpecs = exports.ConfirmationTokens = exports.Charges = exports.BalanceTransactions = exports.Balance = exports.ApplicationFees = exports.ApplePayDomains = exports.Accounts = exports.AccountSessions = exports.AccountLinks = exports.Account = void 0;
|
||||
exports.V2 = exports.Treasury = exports.TestHelpers = exports.Terminal = exports.Tax = exports.Sigma = exports.Reporting = exports.Radar = exports.Issuing = exports.Identity = exports.Forwarding = exports.FinancialConnections = exports.Entitlements = exports.Climate = exports.Checkout = exports.BillingPortal = exports.Billing = exports.Apps = exports.WebhookEndpoints = exports.Transfers = exports.Topups = void 0;
|
||||
const ResourceNamespace_js_1 = require("./ResourceNamespace.js");
|
||||
const Accounts_js_1 = require("./resources/FinancialConnections/Accounts.js");
|
||||
const ActiveEntitlements_js_1 = require("./resources/Entitlements/ActiveEntitlements.js");
|
||||
const Alerts_js_1 = require("./resources/Billing/Alerts.js");
|
||||
const Authorizations_js_1 = require("./resources/TestHelpers/Issuing/Authorizations.js");
|
||||
const Authorizations_js_2 = require("./resources/Issuing/Authorizations.js");
|
||||
const Calculations_js_1 = require("./resources/Tax/Calculations.js");
|
||||
@@ -16,18 +17,27 @@ const Configurations_js_1 = require("./resources/BillingPortal/Configurations.js
|
||||
const Configurations_js_2 = require("./resources/Terminal/Configurations.js");
|
||||
const ConfirmationTokens_js_1 = require("./resources/TestHelpers/ConfirmationTokens.js");
|
||||
const ConnectionTokens_js_1 = require("./resources/Terminal/ConnectionTokens.js");
|
||||
const CreditBalanceSummary_js_1 = require("./resources/Billing/CreditBalanceSummary.js");
|
||||
const CreditBalanceTransactions_js_1 = require("./resources/Billing/CreditBalanceTransactions.js");
|
||||
const CreditGrants_js_1 = require("./resources/Billing/CreditGrants.js");
|
||||
const CreditReversals_js_1 = require("./resources/Treasury/CreditReversals.js");
|
||||
const Customers_js_1 = require("./resources/TestHelpers/Customers.js");
|
||||
const DebitReversals_js_1 = require("./resources/Treasury/DebitReversals.js");
|
||||
const Disputes_js_1 = require("./resources/Issuing/Disputes.js");
|
||||
const EarlyFraudWarnings_js_1 = require("./resources/Radar/EarlyFraudWarnings.js");
|
||||
const EventDestinations_js_1 = require("./resources/V2/Core/EventDestinations.js");
|
||||
const Events_js_1 = require("./resources/V2/Core/Events.js");
|
||||
const Features_js_1 = require("./resources/Entitlements/Features.js");
|
||||
const FinancialAccounts_js_1 = require("./resources/Treasury/FinancialAccounts.js");
|
||||
const InboundTransfers_js_1 = require("./resources/TestHelpers/Treasury/InboundTransfers.js");
|
||||
const InboundTransfers_js_2 = require("./resources/Treasury/InboundTransfers.js");
|
||||
const Locations_js_1 = require("./resources/Terminal/Locations.js");
|
||||
const MeterEventAdjustments_js_1 = require("./resources/Billing/MeterEventAdjustments.js");
|
||||
const MeterEventAdjustments_js_2 = require("./resources/V2/Billing/MeterEventAdjustments.js");
|
||||
const MeterEventSession_js_1 = require("./resources/V2/Billing/MeterEventSession.js");
|
||||
const MeterEventStream_js_1 = require("./resources/V2/Billing/MeterEventStream.js");
|
||||
const MeterEvents_js_1 = require("./resources/Billing/MeterEvents.js");
|
||||
const MeterEvents_js_2 = require("./resources/V2/Billing/MeterEvents.js");
|
||||
const Meters_js_1 = require("./resources/Billing/Meters.js");
|
||||
const Orders_js_1 = require("./resources/Climate/Orders.js");
|
||||
const OutboundPayments_js_1 = require("./resources/TestHelpers/Treasury/OutboundPayments.js");
|
||||
@@ -102,8 +112,8 @@ var Disputes_js_2 = require("./resources/Disputes.js");
|
||||
Object.defineProperty(exports, "Disputes", { enumerable: true, get: function () { return Disputes_js_2.Disputes; } });
|
||||
var EphemeralKeys_js_1 = require("./resources/EphemeralKeys.js");
|
||||
Object.defineProperty(exports, "EphemeralKeys", { enumerable: true, get: function () { return EphemeralKeys_js_1.EphemeralKeys; } });
|
||||
var Events_js_1 = require("./resources/Events.js");
|
||||
Object.defineProperty(exports, "Events", { enumerable: true, get: function () { return Events_js_1.Events; } });
|
||||
var Events_js_2 = require("./resources/Events.js");
|
||||
Object.defineProperty(exports, "Events", { enumerable: true, get: function () { return Events_js_2.Events; } });
|
||||
var ExchangeRates_js_1 = require("./resources/ExchangeRates.js");
|
||||
Object.defineProperty(exports, "ExchangeRates", { enumerable: true, get: function () { return ExchangeRates_js_1.ExchangeRates; } });
|
||||
var FileLinks_js_1 = require("./resources/FileLinks.js");
|
||||
@@ -112,6 +122,8 @@ var Files_js_1 = require("./resources/Files.js");
|
||||
Object.defineProperty(exports, "Files", { enumerable: true, get: function () { return Files_js_1.Files; } });
|
||||
var InvoiceItems_js_1 = require("./resources/InvoiceItems.js");
|
||||
Object.defineProperty(exports, "InvoiceItems", { enumerable: true, get: function () { return InvoiceItems_js_1.InvoiceItems; } });
|
||||
var InvoiceRenderingTemplates_js_1 = require("./resources/InvoiceRenderingTemplates.js");
|
||||
Object.defineProperty(exports, "InvoiceRenderingTemplates", { enumerable: true, get: function () { return InvoiceRenderingTemplates_js_1.InvoiceRenderingTemplates; } });
|
||||
var Invoices_js_1 = require("./resources/Invoices.js");
|
||||
Object.defineProperty(exports, "Invoices", { enumerable: true, get: function () { return Invoices_js_1.Invoices; } });
|
||||
var Mandates_js_1 = require("./resources/Mandates.js");
|
||||
@@ -174,6 +186,10 @@ var WebhookEndpoints_js_1 = require("./resources/WebhookEndpoints.js");
|
||||
Object.defineProperty(exports, "WebhookEndpoints", { enumerable: true, get: function () { return WebhookEndpoints_js_1.WebhookEndpoints; } });
|
||||
exports.Apps = (0, ResourceNamespace_js_1.resourceNamespace)('apps', { Secrets: Secrets_js_1.Secrets });
|
||||
exports.Billing = (0, ResourceNamespace_js_1.resourceNamespace)('billing', {
|
||||
Alerts: Alerts_js_1.Alerts,
|
||||
CreditBalanceSummary: CreditBalanceSummary_js_1.CreditBalanceSummary,
|
||||
CreditBalanceTransactions: CreditBalanceTransactions_js_1.CreditBalanceTransactions,
|
||||
CreditGrants: CreditGrants_js_1.CreditGrants,
|
||||
MeterEventAdjustments: MeterEventAdjustments_js_1.MeterEventAdjustments,
|
||||
MeterEvents: MeterEvents_js_1.MeterEvents,
|
||||
Meters: Meters_js_1.Meters,
|
||||
@@ -274,3 +290,15 @@ exports.Treasury = (0, ResourceNamespace_js_1.resourceNamespace)('treasury', {
|
||||
TransactionEntries: TransactionEntries_js_1.TransactionEntries,
|
||||
Transactions: Transactions_js_5.Transactions,
|
||||
});
|
||||
exports.V2 = (0, ResourceNamespace_js_1.resourceNamespace)('v2', {
|
||||
Billing: (0, ResourceNamespace_js_1.resourceNamespace)('billing', {
|
||||
MeterEventAdjustments: MeterEventAdjustments_js_2.MeterEventAdjustments,
|
||||
MeterEventSession: MeterEventSession_js_1.MeterEventSession,
|
||||
MeterEventStream: MeterEventStream_js_1.MeterEventStream,
|
||||
MeterEvents: MeterEvents_js_2.MeterEvents,
|
||||
}),
|
||||
Core: (0, ResourceNamespace_js_1.resourceNamespace)('core', {
|
||||
EventDestinations: EventDestinations_js_1.EventDestinations,
|
||||
Events: Events_js_1.Events,
|
||||
}),
|
||||
});
|
||||
|
||||
4
server/node_modules/stripe/cjs/resources/Checkout/Sessions.js
generated
vendored
4
server/node_modules/stripe/cjs/resources/Checkout/Sessions.js
generated
vendored
@@ -10,6 +10,10 @@ exports.Sessions = StripeResource_js_1.StripeResource.extend({
|
||||
method: 'GET',
|
||||
fullPath: '/v1/checkout/sessions/{session}',
|
||||
}),
|
||||
update: stripeMethod({
|
||||
method: 'POST',
|
||||
fullPath: '/v1/checkout/sessions/{session}',
|
||||
}),
|
||||
list: stripeMethod({
|
||||
method: 'GET',
|
||||
fullPath: '/v1/checkout/sessions',
|
||||
|
||||
16
server/node_modules/stripe/cjs/resources/Invoices.js
generated
vendored
16
server/node_modules/stripe/cjs/resources/Invoices.js
generated
vendored
@@ -14,6 +14,14 @@ exports.Invoices = StripeResource_js_1.StripeResource.extend({
|
||||
methodType: 'list',
|
||||
}),
|
||||
del: stripeMethod({ method: 'DELETE', fullPath: '/v1/invoices/{invoice}' }),
|
||||
addLines: stripeMethod({
|
||||
method: 'POST',
|
||||
fullPath: '/v1/invoices/{invoice}/add_lines',
|
||||
}),
|
||||
createPreview: stripeMethod({
|
||||
method: 'POST',
|
||||
fullPath: '/v1/invoices/create_preview',
|
||||
}),
|
||||
finalizeInvoice: stripeMethod({
|
||||
method: 'POST',
|
||||
fullPath: '/v1/invoices/{invoice}/finalize',
|
||||
@@ -33,6 +41,10 @@ exports.Invoices = StripeResource_js_1.StripeResource.extend({
|
||||
fullPath: '/v1/invoices/{invoice}/mark_uncollectible',
|
||||
}),
|
||||
pay: stripeMethod({ method: 'POST', fullPath: '/v1/invoices/{invoice}/pay' }),
|
||||
removeLines: stripeMethod({
|
||||
method: 'POST',
|
||||
fullPath: '/v1/invoices/{invoice}/remove_lines',
|
||||
}),
|
||||
retrieveUpcoming: stripeMethod({
|
||||
method: 'GET',
|
||||
fullPath: '/v1/invoices/upcoming',
|
||||
@@ -46,6 +58,10 @@ exports.Invoices = StripeResource_js_1.StripeResource.extend({
|
||||
method: 'POST',
|
||||
fullPath: '/v1/invoices/{invoice}/send',
|
||||
}),
|
||||
updateLines: stripeMethod({
|
||||
method: 'POST',
|
||||
fullPath: '/v1/invoices/{invoice}/update_lines',
|
||||
}),
|
||||
updateLineItem: stripeMethod({
|
||||
method: 'POST',
|
||||
fullPath: '/v1/invoices/{invoice}/lines/{line_item_id}',
|
||||
|
||||
2
server/node_modules/stripe/cjs/resources/OAuth.js
generated
vendored
2
server/node_modules/stripe/cjs/resources/OAuth.js
generated
vendored
@@ -24,7 +24,7 @@ exports.OAuth = StripeResource_js_1.StripeResource.extend({
|
||||
if (!params.scope) {
|
||||
params.scope = 'read_write';
|
||||
}
|
||||
return `https://${oAuthHost}/${path}?${(0, utils_js_1.stringifyRequestData)(params)}`;
|
||||
return `https://${oAuthHost}/${path}?${(0, utils_js_1.queryStringifyRequestData)(params)}`;
|
||||
},
|
||||
token: stripeMethod({
|
||||
method: 'POST',
|
||||
|
||||
4
server/node_modules/stripe/cjs/resources/Tax/Calculations.js
generated
vendored
4
server/node_modules/stripe/cjs/resources/Tax/Calculations.js
generated
vendored
@@ -6,6 +6,10 @@ const StripeResource_js_1 = require("../../StripeResource.js");
|
||||
const stripeMethod = StripeResource_js_1.StripeResource.method;
|
||||
exports.Calculations = StripeResource_js_1.StripeResource.extend({
|
||||
create: stripeMethod({ method: 'POST', fullPath: '/v1/tax/calculations' }),
|
||||
retrieve: stripeMethod({
|
||||
method: 'GET',
|
||||
fullPath: '/v1/tax/calculations/{calculation}',
|
||||
}),
|
||||
listLineItems: stripeMethod({
|
||||
method: 'GET',
|
||||
fullPath: '/v1/tax/calculations/{calculation}/line_items',
|
||||
|
||||
8
server/node_modules/stripe/cjs/resources/TestHelpers/Issuing/Authorizations.js
generated
vendored
8
server/node_modules/stripe/cjs/resources/TestHelpers/Issuing/Authorizations.js
generated
vendored
@@ -17,10 +17,18 @@ exports.Authorizations = StripeResource_js_1.StripeResource.extend({
|
||||
method: 'POST',
|
||||
fullPath: '/v1/test_helpers/issuing/authorizations/{authorization}/expire',
|
||||
}),
|
||||
finalizeAmount: stripeMethod({
|
||||
method: 'POST',
|
||||
fullPath: '/v1/test_helpers/issuing/authorizations/{authorization}/finalize_amount',
|
||||
}),
|
||||
increment: stripeMethod({
|
||||
method: 'POST',
|
||||
fullPath: '/v1/test_helpers/issuing/authorizations/{authorization}/increment',
|
||||
}),
|
||||
respond: stripeMethod({
|
||||
method: 'POST',
|
||||
fullPath: '/v1/test_helpers/issuing/authorizations/{authorization}/fraud_challenges/respond',
|
||||
}),
|
||||
reverse: stripeMethod({
|
||||
method: 'POST',
|
||||
fullPath: '/v1/test_helpers/issuing/authorizations/{authorization}/reverse',
|
||||
|
||||
4
server/node_modules/stripe/cjs/resources/TestHelpers/Issuing/Cards.js
generated
vendored
4
server/node_modules/stripe/cjs/resources/TestHelpers/Issuing/Cards.js
generated
vendored
@@ -21,4 +21,8 @@ exports.Cards = StripeResource_js_1.StripeResource.extend({
|
||||
method: 'POST',
|
||||
fullPath: '/v1/test_helpers/issuing/cards/{card}/shipping/ship',
|
||||
}),
|
||||
submitCard: stripeMethod({
|
||||
method: 'POST',
|
||||
fullPath: '/v1/test_helpers/issuing/cards/{card}/shipping/submit',
|
||||
}),
|
||||
});
|
||||
|
||||
4
server/node_modules/stripe/cjs/resources/TestHelpers/Treasury/OutboundPayments.js
generated
vendored
4
server/node_modules/stripe/cjs/resources/TestHelpers/Treasury/OutboundPayments.js
generated
vendored
@@ -5,6 +5,10 @@ exports.OutboundPayments = void 0;
|
||||
const StripeResource_js_1 = require("../../../StripeResource.js");
|
||||
const stripeMethod = StripeResource_js_1.StripeResource.method;
|
||||
exports.OutboundPayments = StripeResource_js_1.StripeResource.extend({
|
||||
update: stripeMethod({
|
||||
method: 'POST',
|
||||
fullPath: '/v1/test_helpers/treasury/outbound_payments/{id}',
|
||||
}),
|
||||
fail: stripeMethod({
|
||||
method: 'POST',
|
||||
fullPath: '/v1/test_helpers/treasury/outbound_payments/{id}/fail',
|
||||
|
||||
4
server/node_modules/stripe/cjs/resources/TestHelpers/Treasury/OutboundTransfers.js
generated
vendored
4
server/node_modules/stripe/cjs/resources/TestHelpers/Treasury/OutboundTransfers.js
generated
vendored
@@ -5,6 +5,10 @@ exports.OutboundTransfers = void 0;
|
||||
const StripeResource_js_1 = require("../../../StripeResource.js");
|
||||
const stripeMethod = StripeResource_js_1.StripeResource.method;
|
||||
exports.OutboundTransfers = StripeResource_js_1.StripeResource.extend({
|
||||
update: stripeMethod({
|
||||
method: 'POST',
|
||||
fullPath: '/v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}',
|
||||
}),
|
||||
fail: stripeMethod({
|
||||
method: 'POST',
|
||||
fullPath: '/v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}/fail',
|
||||
|
||||
4
server/node_modules/stripe/cjs/resources/Treasury/FinancialAccounts.js
generated
vendored
4
server/node_modules/stripe/cjs/resources/Treasury/FinancialAccounts.js
generated
vendored
@@ -22,6 +22,10 @@ exports.FinancialAccounts = StripeResource_js_1.StripeResource.extend({
|
||||
fullPath: '/v1/treasury/financial_accounts',
|
||||
methodType: 'list',
|
||||
}),
|
||||
close: stripeMethod({
|
||||
method: 'POST',
|
||||
fullPath: '/v1/treasury/financial_accounts/{financial_account}/close',
|
||||
}),
|
||||
retrieveFeatures: stripeMethod({
|
||||
method: 'GET',
|
||||
fullPath: '/v1/treasury/financial_accounts/{financial_account}/features',
|
||||
|
||||
49
server/node_modules/stripe/cjs/stripe.core.js
generated
vendored
49
server/node_modules/stripe/cjs/stripe.core.js
generated
vendored
@@ -2,23 +2,24 @@
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.createStripe = void 0;
|
||||
const _Error = require("./Error.js");
|
||||
const apiVersion = require("./apiVersion.js");
|
||||
const resources = require("./resources.js");
|
||||
const HttpClient_js_1 = require("./net/HttpClient.js");
|
||||
const utils_js_1 = require("./utils.js");
|
||||
const CryptoProvider_js_1 = require("./crypto/CryptoProvider.js");
|
||||
const RequestSender_js_1 = require("./RequestSender.js");
|
||||
const StripeResource_js_1 = require("./StripeResource.js");
|
||||
const Webhooks_js_1 = require("./Webhooks.js");
|
||||
const apiVersion_js_1 = require("./apiVersion.js");
|
||||
const CryptoProvider_js_1 = require("./crypto/CryptoProvider.js");
|
||||
const HttpClient_js_1 = require("./net/HttpClient.js");
|
||||
const resources = require("./resources.js");
|
||||
const utils_js_1 = require("./utils.js");
|
||||
const DEFAULT_HOST = 'api.stripe.com';
|
||||
const DEFAULT_PORT = '443';
|
||||
const DEFAULT_BASE_PATH = '/v1/';
|
||||
const DEFAULT_API_VERSION = apiVersion.ApiVersion;
|
||||
const DEFAULT_API_VERSION = apiVersion_js_1.ApiVersion;
|
||||
const DEFAULT_TIMEOUT = 80000;
|
||||
const MAX_NETWORK_RETRY_DELAY_SEC = 2;
|
||||
const MAX_NETWORK_RETRY_DELAY_SEC = 5;
|
||||
const INITIAL_NETWORK_RETRY_DELAY_SEC = 0.5;
|
||||
const APP_INFO_PROPERTIES = ['name', 'version', 'url', 'partner_id'];
|
||||
const ALLOWED_CONFIG_PROPERTIES = [
|
||||
'authenticator',
|
||||
'apiVersion',
|
||||
'typescript',
|
||||
'maxNetworkRetries',
|
||||
@@ -31,10 +32,11 @@ const ALLOWED_CONFIG_PROPERTIES = [
|
||||
'telemetry',
|
||||
'appInfo',
|
||||
'stripeAccount',
|
||||
'stripeContext',
|
||||
];
|
||||
const defaultRequestSenderFactory = (stripe) => new RequestSender_js_1.RequestSender(stripe, StripeResource_js_1.StripeResource.MAX_BUFFERED_REQUEST_METRICS);
|
||||
function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
|
||||
Stripe.PACKAGE_VERSION = '14.25.0';
|
||||
Stripe.PACKAGE_VERSION = '17.7.0';
|
||||
Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, (0, utils_js_1.determineProcessUserAgentProperties)());
|
||||
Stripe.StripeResource = StripeResource_js_1.StripeResource;
|
||||
Stripe.resources = resources;
|
||||
@@ -69,14 +71,13 @@ function createStripe(platformFunctions, requestSender = defaultRequestSenderFac
|
||||
this.off = this._emitter.removeListener.bind(this._emitter);
|
||||
const agent = props.httpAgent || null;
|
||||
this._api = {
|
||||
auth: null,
|
||||
host: props.host || DEFAULT_HOST,
|
||||
port: props.port || DEFAULT_PORT,
|
||||
protocol: props.protocol || 'https',
|
||||
basePath: DEFAULT_BASE_PATH,
|
||||
version: props.apiVersion || DEFAULT_API_VERSION,
|
||||
timeout: (0, utils_js_1.validateInteger)('timeout', props.timeout, DEFAULT_TIMEOUT),
|
||||
maxNetworkRetries: (0, utils_js_1.validateInteger)('maxNetworkRetries', props.maxNetworkRetries, 1),
|
||||
maxNetworkRetries: (0, utils_js_1.validateInteger)('maxNetworkRetries', props.maxNetworkRetries, 2),
|
||||
agent: agent,
|
||||
httpClient: props.httpClient ||
|
||||
(agent
|
||||
@@ -84,6 +85,7 @@ function createStripe(platformFunctions, requestSender = defaultRequestSenderFac
|
||||
: this._platformFunctions.createDefaultHttpClient()),
|
||||
dev: false,
|
||||
stripeAccount: props.stripeAccount || null,
|
||||
stripeContext: props.stripeContext || null,
|
||||
};
|
||||
const typescript = props.typescript || false;
|
||||
if (typescript !== Stripe.USER_AGENT.typescript) {
|
||||
@@ -97,7 +99,7 @@ function createStripe(platformFunctions, requestSender = defaultRequestSenderFac
|
||||
this._setAppInfo(props.appInfo);
|
||||
}
|
||||
this._prepResources();
|
||||
this._setApiKey(key);
|
||||
this._setAuthenticator(key, props.authenticator);
|
||||
this.errors = _Error;
|
||||
// Once Stripe.webhooks looses the factory function signature in a future release
|
||||
// then this should become this.webhooks = Stripe.webhooks
|
||||
@@ -150,13 +152,22 @@ function createStripe(platformFunctions, requestSender = defaultRequestSenderFac
|
||||
_enableTelemetry: null,
|
||||
_requestSender: null,
|
||||
_platformFunctions: null,
|
||||
rawRequest(method, path, params, options) {
|
||||
return this._requestSender._rawRequest(method, path, params, options);
|
||||
},
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
_setApiKey(key) {
|
||||
if (key) {
|
||||
this._setApiField('auth', `Bearer ${key}`);
|
||||
_setAuthenticator(key, authenticator) {
|
||||
if (key && authenticator) {
|
||||
throw new Error("Can't specify both apiKey and authenticator");
|
||||
}
|
||||
if (!key && !authenticator) {
|
||||
throw new Error('Neither apiKey nor config.authenticator provided');
|
||||
}
|
||||
this._authenticator = key
|
||||
? (0, utils_js_1.createApiKeyAuthenticator)(key)
|
||||
: authenticator;
|
||||
},
|
||||
/**
|
||||
* @private
|
||||
@@ -274,6 +285,9 @@ function createStripe(platformFunctions, requestSender = defaultRequestSenderFac
|
||||
var _a;
|
||||
const userAgent = {};
|
||||
for (const field in seed) {
|
||||
if (!Object.prototype.hasOwnProperty.call(seed, field)) {
|
||||
continue;
|
||||
}
|
||||
userAgent[field] = encodeURIComponent((_a = seed[field]) !== null && _a !== void 0 ? _a : 'null');
|
||||
}
|
||||
// URI-encode in case there are unusual characters in the system's uname.
|
||||
@@ -317,6 +331,9 @@ function createStripe(platformFunctions, requestSender = defaultRequestSenderFac
|
||||
*/
|
||||
_prepResources() {
|
||||
for (const name in resources) {
|
||||
if (!Object.prototype.hasOwnProperty.call(resources, name)) {
|
||||
continue;
|
||||
}
|
||||
// @ts-ignore
|
||||
this[(0, utils_js_1.pascalToCamelCase)(name)] = new resources[name](this);
|
||||
}
|
||||
@@ -349,6 +366,10 @@ function createStripe(platformFunctions, requestSender = defaultRequestSenderFac
|
||||
}
|
||||
return config;
|
||||
},
|
||||
parseThinEvent(payload, header, secret, tolerance, cryptoProvider, receivedAt) {
|
||||
// parses and validates the event payload all in one go
|
||||
return this.webhooks.constructEvent(payload, header, secret, tolerance, cryptoProvider, receivedAt);
|
||||
},
|
||||
};
|
||||
return Stripe;
|
||||
}
|
||||
|
||||
74
server/node_modules/stripe/cjs/utils.js
generated
vendored
74
server/node_modules/stripe/cjs/utils.js
generated
vendored
@@ -1,6 +1,6 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.concat = exports.determineProcessUserAgentProperties = exports.validateInteger = exports.flattenAndStringify = exports.isObject = exports.emitWarning = exports.pascalToCamelCase = exports.callbackifyPromiseWithTimeout = exports.normalizeHeader = exports.normalizeHeaders = exports.removeNullish = exports.protoExtend = exports.getOptionsFromArgs = exports.getDataFromArgs = exports.extractUrlParams = exports.makeURLInterpolator = exports.stringifyRequestData = exports.isOptionsHash = void 0;
|
||||
exports.getAPIMode = exports.jsonStringifyRequestData = exports.concat = exports.createApiKeyAuthenticator = exports.determineProcessUserAgentProperties = exports.validateInteger = exports.flattenAndStringify = exports.isObject = exports.emitWarning = exports.pascalToCamelCase = exports.callbackifyPromiseWithTimeout = exports.normalizeHeader = exports.normalizeHeaders = exports.removeNullish = exports.protoExtend = exports.getOptionsFromArgs = exports.getDataFromArgs = exports.extractUrlParams = exports.makeURLInterpolator = exports.queryStringifyRequestData = exports.isOptionsHash = void 0;
|
||||
const qs = require("qs");
|
||||
const OPTIONS_KEYS = [
|
||||
'apiKey',
|
||||
@@ -10,6 +10,9 @@ const OPTIONS_KEYS = [
|
||||
'maxNetworkRetries',
|
||||
'timeout',
|
||||
'host',
|
||||
'authenticator',
|
||||
'stripeContext',
|
||||
'additionalHeaders',
|
||||
];
|
||||
function isOptionsHash(o) {
|
||||
return (o &&
|
||||
@@ -21,10 +24,11 @@ exports.isOptionsHash = isOptionsHash;
|
||||
* Stringifies an Object, accommodating nested objects
|
||||
* (forming the conventional key 'parent[child]=value')
|
||||
*/
|
||||
function stringifyRequestData(data) {
|
||||
function queryStringifyRequestData(data, apiMode) {
|
||||
return (qs
|
||||
.stringify(data, {
|
||||
serializeDate: (d) => Math.floor(d.getTime() / 1000).toString(),
|
||||
arrayFormat: apiMode == 'v2' ? 'repeat' : 'indices',
|
||||
})
|
||||
// Don't use strict form encoding by changing the square bracket control
|
||||
// characters back to their literals. This is fine by the server, and
|
||||
@@ -32,7 +36,7 @@ function stringifyRequestData(data) {
|
||||
.replace(/%5B/g, '[')
|
||||
.replace(/%5D/g, ']'));
|
||||
}
|
||||
exports.stringifyRequestData = stringifyRequestData;
|
||||
exports.queryStringifyRequestData = queryStringifyRequestData;
|
||||
/**
|
||||
* Outputs a new function with interpolated object property values.
|
||||
* Use like so:
|
||||
@@ -94,7 +98,6 @@ exports.getDataFromArgs = getDataFromArgs;
|
||||
*/
|
||||
function getOptionsFromArgs(args) {
|
||||
const opts = {
|
||||
auth: null,
|
||||
host: null,
|
||||
headers: {},
|
||||
settings: {},
|
||||
@@ -102,7 +105,7 @@ function getOptionsFromArgs(args) {
|
||||
if (args.length > 0) {
|
||||
const arg = args[args.length - 1];
|
||||
if (typeof arg === 'string') {
|
||||
opts.auth = args.pop();
|
||||
opts.authenticator = createApiKeyAuthenticator(args.pop());
|
||||
}
|
||||
else if (isOptionsHash(arg)) {
|
||||
const params = Object.assign({}, args.pop());
|
||||
@@ -111,7 +114,7 @@ function getOptionsFromArgs(args) {
|
||||
emitWarning(`Invalid options found (${extraKeys.join(', ')}); ignoring.`);
|
||||
}
|
||||
if (params.apiKey) {
|
||||
opts.auth = params.apiKey;
|
||||
opts.authenticator = createApiKeyAuthenticator(params.apiKey);
|
||||
}
|
||||
if (params.idempotencyKey) {
|
||||
opts.headers['Idempotency-Key'] = params.idempotencyKey;
|
||||
@@ -119,6 +122,12 @@ function getOptionsFromArgs(args) {
|
||||
if (params.stripeAccount) {
|
||||
opts.headers['Stripe-Account'] = params.stripeAccount;
|
||||
}
|
||||
if (params.stripeContext) {
|
||||
if (opts.headers['Stripe-Account']) {
|
||||
throw new Error("Can't specify both stripeAccount and stripeContext.");
|
||||
}
|
||||
opts.headers['Stripe-Context'] = params.stripeContext;
|
||||
}
|
||||
if (params.apiVersion) {
|
||||
opts.headers['Stripe-Version'] = params.apiVersion;
|
||||
}
|
||||
@@ -131,6 +140,19 @@ function getOptionsFromArgs(args) {
|
||||
if (params.host) {
|
||||
opts.host = params.host;
|
||||
}
|
||||
if (params.authenticator) {
|
||||
if (params.apiKey) {
|
||||
throw new Error("Can't specify both apiKey and authenticator.");
|
||||
}
|
||||
if (typeof params.authenticator !== 'function') {
|
||||
throw new Error('The authenticator must be a function ' +
|
||||
'receiving a request as the first parameter.');
|
||||
}
|
||||
opts.authenticator = params.authenticator;
|
||||
}
|
||||
if (params.additionalHeaders) {
|
||||
opts.headers = params.additionalHeaders;
|
||||
}
|
||||
}
|
||||
}
|
||||
return opts;
|
||||
@@ -245,9 +267,7 @@ exports.isObject = isObject;
|
||||
function flattenAndStringify(data) {
|
||||
const result = {};
|
||||
const step = (obj, prevKey) => {
|
||||
Object.keys(obj).forEach((key) => {
|
||||
// @ts-ignore
|
||||
const value = obj[key];
|
||||
Object.entries(obj).forEach(([key, value]) => {
|
||||
const newKey = prevKey ? `${prevKey}[${key}]` : key;
|
||||
if (isObject(value)) {
|
||||
if (!(value instanceof Uint8Array) &&
|
||||
@@ -291,6 +311,16 @@ function determineProcessUserAgentProperties() {
|
||||
};
|
||||
}
|
||||
exports.determineProcessUserAgentProperties = determineProcessUserAgentProperties;
|
||||
function createApiKeyAuthenticator(apiKey) {
|
||||
const authenticator = (request) => {
|
||||
request.headers.Authorization = 'Bearer ' + apiKey;
|
||||
return Promise.resolve();
|
||||
};
|
||||
// For testing
|
||||
authenticator._apiKey = apiKey;
|
||||
return authenticator;
|
||||
}
|
||||
exports.createApiKeyAuthenticator = createApiKeyAuthenticator;
|
||||
/**
|
||||
* Joins an array of Uint8Arrays into a single Uint8Array
|
||||
*/
|
||||
@@ -305,3 +335,29 @@ function concat(arrays) {
|
||||
return merged;
|
||||
}
|
||||
exports.concat = concat;
|
||||
/**
|
||||
* Replaces Date objects with Unix timestamps
|
||||
*/
|
||||
function dateTimeReplacer(key, value) {
|
||||
if (this[key] instanceof Date) {
|
||||
return Math.floor(this[key].getTime() / 1000).toString();
|
||||
}
|
||||
return value;
|
||||
}
|
||||
/**
|
||||
* JSON stringifies an Object, replacing Date objects with Unix timestamps
|
||||
*/
|
||||
function jsonStringifyRequestData(data) {
|
||||
return JSON.stringify(data, dateTimeReplacer);
|
||||
}
|
||||
exports.jsonStringifyRequestData = jsonStringifyRequestData;
|
||||
/**
|
||||
* Inspects the given path to determine if the endpoint is for v1 or v2 API
|
||||
*/
|
||||
function getAPIMode(path) {
|
||||
if (!path) {
|
||||
return 'v1';
|
||||
}
|
||||
return path.startsWith('/v2') ? 'v2' : 'v1';
|
||||
}
|
||||
exports.getAPIMode = getAPIMode;
|
||||
|
||||
29
server/node_modules/stripe/esm/Error.js
generated
vendored
29
server/node_modules/stripe/esm/Error.js
generated
vendored
@@ -1,5 +1,6 @@
|
||||
/* eslint-disable camelcase */
|
||||
export const generate = (rawStripeError) => {
|
||||
/* eslint-disable no-warning-comments */
|
||||
export const generateV1Error = (rawStripeError) => {
|
||||
switch (rawStripeError.type) {
|
||||
case 'card_error':
|
||||
return new StripeCardError(rawStripeError);
|
||||
@@ -19,6 +20,22 @@ export const generate = (rawStripeError) => {
|
||||
return new StripeUnknownError(rawStripeError);
|
||||
}
|
||||
};
|
||||
// eslint-disable-next-line complexity
|
||||
export const generateV2Error = (rawStripeError) => {
|
||||
switch (rawStripeError.type) {
|
||||
// switchCases: The beginning of the section generated from our OpenAPI spec
|
||||
case 'temporary_session_expired':
|
||||
return new TemporarySessionExpiredError(rawStripeError);
|
||||
// switchCases: The end of the section generated from our OpenAPI spec
|
||||
}
|
||||
// Special handling for requests with missing required fields in V2 APIs.
|
||||
// invalid_field response in V2 APIs returns the field 'code' instead of 'type'.
|
||||
switch (rawStripeError.code) {
|
||||
case 'invalid_fields':
|
||||
return new StripeInvalidRequestError(rawStripeError);
|
||||
}
|
||||
return generateV1Error(rawStripeError);
|
||||
};
|
||||
/**
|
||||
* StripeError is the base error from which all other more specific Stripe errors derive.
|
||||
* Specifically for errors returned from Stripe's REST API.
|
||||
@@ -38,6 +55,7 @@ export class StripeError extends Error {
|
||||
this.statusCode = raw.statusCode;
|
||||
// @ts-ignore
|
||||
this.message = raw.message;
|
||||
this.userMessage = raw.user_message;
|
||||
this.charge = raw.charge;
|
||||
this.decline_code = raw.decline_code;
|
||||
this.payment_intent = raw.payment_intent;
|
||||
@@ -50,7 +68,7 @@ export class StripeError extends Error {
|
||||
/**
|
||||
* Helper factory which takes raw stripe errors and outputs wrapping instances
|
||||
*/
|
||||
StripeError.generate = generate;
|
||||
StripeError.generate = generateV1Error;
|
||||
// Specific Stripe Error types:
|
||||
/**
|
||||
* CardError is raised when a user enters a card that can't be charged for
|
||||
@@ -158,3 +176,10 @@ export class StripeUnknownError extends StripeError {
|
||||
super(raw, 'StripeUnknownError');
|
||||
}
|
||||
}
|
||||
// classDefinitions: The beginning of the section generated from our OpenAPI spec
|
||||
export class TemporarySessionExpiredError extends StripeError {
|
||||
constructor(rawStripeError = {}) {
|
||||
super(rawStripeError, 'TemporarySessionExpiredError');
|
||||
}
|
||||
}
|
||||
// classDefinitions: The end of the section generated from our OpenAPI spec
|
||||
|
||||
229
server/node_modules/stripe/esm/RequestSender.js
generated
vendored
229
server/node_modules/stripe/esm/RequestSender.js
generated
vendored
@@ -1,6 +1,6 @@
|
||||
import { StripeAPIError, StripeAuthenticationError, StripeConnectionError, StripeError, StripePermissionError, StripeRateLimitError, } from './Error.js';
|
||||
import { emitWarning, normalizeHeaders, removeNullish, stringifyRequestData, } from './utils.js';
|
||||
import { StripeAPIError, StripeAuthenticationError, StripeConnectionError, StripeError, StripePermissionError, StripeRateLimitError, generateV1Error, generateV2Error, } from './Error.js';
|
||||
import { HttpClient } from './net/HttpClient.js';
|
||||
import { emitWarning, jsonStringifyRequestData, normalizeHeaders, queryStringifyRequestData, removeNullish, getAPIMode, getOptionsFromArgs, getDataFromArgs, } from './utils.js';
|
||||
const MAX_RETRY_AFTER_WAIT = 60;
|
||||
export class RequestSender {
|
||||
constructor(stripe, maxBufferedRequestMetric) {
|
||||
@@ -66,7 +66,7 @@ export class RequestSender {
|
||||
* parses the JSON and returns it (i.e. passes it to the callback) if there
|
||||
* is no "error" field. Otherwise constructs/passes an appropriate Error.
|
||||
*/
|
||||
_jsonResponseHandler(requestEvent, usage, callback) {
|
||||
_jsonResponseHandler(requestEvent, apiMode, usage, callback) {
|
||||
return (res) => {
|
||||
const headers = res.getHeaders();
|
||||
const requestId = this._getRequestId(headers);
|
||||
@@ -98,8 +98,11 @@ export class RequestSender {
|
||||
else if (statusCode === 429) {
|
||||
err = new StripeRateLimitError(jsonResponse.error);
|
||||
}
|
||||
else if (apiMode === 'v2') {
|
||||
err = generateV2Error(jsonResponse.error);
|
||||
}
|
||||
else {
|
||||
err = StripeError.generate(jsonResponse.error);
|
||||
err = generateV1Error(jsonResponse.error);
|
||||
}
|
||||
throw err;
|
||||
}
|
||||
@@ -171,7 +174,7 @@ export class RequestSender {
|
||||
// Apply exponential backoff with initialNetworkRetryDelay on the
|
||||
// number of numRetries so far as inputs. Do not allow the number to exceed
|
||||
// maxNetworkRetryDelay.
|
||||
let sleepSeconds = Math.min(initialNetworkRetryDelay * Math.pow(numRetries - 1, 2), maxNetworkRetryDelay);
|
||||
let sleepSeconds = Math.min(initialNetworkRetryDelay * Math.pow(2, numRetries - 1), maxNetworkRetryDelay);
|
||||
// Apply some jitter by randomizing the value in the range of
|
||||
// (sleepSeconds / 2) to (sleepSeconds).
|
||||
sleepSeconds *= 0.5 * (1 + Math.random());
|
||||
@@ -190,26 +193,34 @@ export class RequestSender {
|
||||
? settings.maxNetworkRetries
|
||||
: this._stripe.getMaxNetworkRetries();
|
||||
}
|
||||
_defaultIdempotencyKey(method, settings) {
|
||||
_defaultIdempotencyKey(method, settings, apiMode) {
|
||||
// If this is a POST and we allow multiple retries, ensure an idempotency key.
|
||||
const maxRetries = this._getMaxNetworkRetries(settings);
|
||||
if (method === 'POST' && maxRetries > 0) {
|
||||
return `stripe-node-retry-${this._stripe._platformFunctions.uuid4()}`;
|
||||
const genKey = () => `stripe-node-retry-${this._stripe._platformFunctions.uuid4()}`;
|
||||
// more verbose than it needs to be, but gives clear separation between V1 and V2 behavior
|
||||
if (apiMode === 'v2') {
|
||||
if (method === 'POST' || method === 'DELETE') {
|
||||
return genKey();
|
||||
}
|
||||
}
|
||||
else if (apiMode === 'v1') {
|
||||
if (method === 'POST' && maxRetries > 0) {
|
||||
return genKey();
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
_makeHeaders(auth, contentLength, apiVersion, clientUserAgent, method, userSuppliedHeaders, userSuppliedSettings) {
|
||||
_makeHeaders({ contentType, contentLength, apiVersion, clientUserAgent, method, userSuppliedHeaders, userSuppliedSettings, stripeAccount, stripeContext, apiMode, }) {
|
||||
const defaultHeaders = {
|
||||
// Use specified auth token or use default from this stripe instance:
|
||||
Authorization: auth ? `Bearer ${auth}` : this._stripe.getApiField('auth'),
|
||||
Accept: 'application/json',
|
||||
'Content-Type': 'application/x-www-form-urlencoded',
|
||||
'User-Agent': this._getUserAgentString(),
|
||||
'Content-Type': contentType,
|
||||
'User-Agent': this._getUserAgentString(apiMode),
|
||||
'X-Stripe-Client-User-Agent': clientUserAgent,
|
||||
'X-Stripe-Client-Telemetry': this._getTelemetryHeader(),
|
||||
'Stripe-Version': apiVersion,
|
||||
'Stripe-Account': this._stripe.getApiField('stripeAccount'),
|
||||
'Idempotency-Key': this._defaultIdempotencyKey(method, userSuppliedSettings),
|
||||
'Stripe-Account': stripeAccount,
|
||||
'Stripe-Context': stripeContext,
|
||||
'Idempotency-Key': this._defaultIdempotencyKey(method, userSuppliedSettings, apiMode),
|
||||
};
|
||||
// As per https://datatracker.ietf.org/doc/html/rfc7230#section-3.3.2:
|
||||
// A user agent SHOULD send a Content-Length in a request message when
|
||||
@@ -238,12 +249,12 @@ export class RequestSender {
|
||||
// If the user supplied, say 'idempotency-key', override instead of appending by ensuring caps are the same.
|
||||
normalizeHeaders(userSuppliedHeaders));
|
||||
}
|
||||
_getUserAgentString() {
|
||||
_getUserAgentString(apiMode) {
|
||||
const packageVersion = this._stripe.getConstant('PACKAGE_VERSION');
|
||||
const appInfo = this._stripe._appInfo
|
||||
? this._stripe.getAppInfoAsString()
|
||||
: '';
|
||||
return `Stripe/v1 NodeBindings/${packageVersion} ${appInfo}`.trim();
|
||||
return `Stripe/${apiMode} NodeBindings/${packageVersion} ${appInfo}`.trim();
|
||||
}
|
||||
_getTelemetryHeader() {
|
||||
if (this._stripe.getTelemetryEnabled() &&
|
||||
@@ -271,8 +282,61 @@ export class RequestSender {
|
||||
}
|
||||
}
|
||||
}
|
||||
_request(method, host, path, data, auth, options = {}, usage = [], callback, requestDataProcessor = null) {
|
||||
_rawRequest(method, path, params, options) {
|
||||
const requestPromise = new Promise((resolve, reject) => {
|
||||
let opts;
|
||||
try {
|
||||
const requestMethod = method.toUpperCase();
|
||||
if (requestMethod !== 'POST' &&
|
||||
params &&
|
||||
Object.keys(params).length !== 0) {
|
||||
throw new Error('rawRequest only supports params on POST requests. Please pass null and add your parameters to path.');
|
||||
}
|
||||
const args = [].slice.call([params, options]);
|
||||
// Pull request data and options (headers, auth) from args.
|
||||
const dataFromArgs = getDataFromArgs(args);
|
||||
const data = Object.assign({}, dataFromArgs);
|
||||
const calculatedOptions = getOptionsFromArgs(args);
|
||||
const headers = calculatedOptions.headers;
|
||||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
||||
const authenticator = calculatedOptions.authenticator;
|
||||
opts = {
|
||||
requestMethod,
|
||||
requestPath: path,
|
||||
bodyData: data,
|
||||
queryData: {},
|
||||
authenticator,
|
||||
headers,
|
||||
host: null,
|
||||
streaming: false,
|
||||
settings: {},
|
||||
usage: ['raw_request'],
|
||||
};
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
return;
|
||||
}
|
||||
function requestCallback(err, response) {
|
||||
if (err) {
|
||||
reject(err);
|
||||
}
|
||||
else {
|
||||
resolve(response);
|
||||
}
|
||||
}
|
||||
const { headers, settings } = opts;
|
||||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
||||
const authenticator = opts.authenticator;
|
||||
this._request(opts.requestMethod, opts.host, path, opts.bodyData, authenticator, { headers, settings, streaming: opts.streaming }, opts.usage, requestCallback);
|
||||
});
|
||||
return requestPromise;
|
||||
}
|
||||
_request(method, host, path, data, authenticator, options, usage = [], callback, requestDataProcessor = null) {
|
||||
var _a;
|
||||
let requestData;
|
||||
authenticator = (_a = authenticator !== null && authenticator !== void 0 ? authenticator : this._stripe._authenticator) !== null && _a !== void 0 ? _a : null;
|
||||
const apiMode = getAPIMode(path);
|
||||
const retryRequest = (requestFn, apiVersion, headers, requestRetries, retryAfter) => {
|
||||
return setTimeout(requestFn, this._getSleepTimeInMS(requestRetries, retryAfter), apiVersion, headers, requestRetries + 1);
|
||||
};
|
||||
@@ -284,50 +348,68 @@ export class RequestSender {
|
||||
options.settings.timeout >= 0
|
||||
? options.settings.timeout
|
||||
: this._stripe.getApiField('timeout');
|
||||
const req = this._stripe
|
||||
.getApiField('httpClient')
|
||||
.makeRequest(host || this._stripe.getApiField('host'), this._stripe.getApiField('port'), path, method, headers, requestData, this._stripe.getApiField('protocol'), timeout);
|
||||
const requestStartTime = Date.now();
|
||||
// @ts-ignore
|
||||
const requestEvent = removeNullish({
|
||||
api_version: apiVersion,
|
||||
account: headers['Stripe-Account'],
|
||||
idempotency_key: headers['Idempotency-Key'],
|
||||
method,
|
||||
path,
|
||||
request_start_time: requestStartTime,
|
||||
});
|
||||
const requestRetries = numRetries || 0;
|
||||
const maxRetries = this._getMaxNetworkRetries(options.settings || {});
|
||||
this._stripe._emitter.emit('request', requestEvent);
|
||||
req
|
||||
.then((res) => {
|
||||
if (RequestSender._shouldRetry(res, requestRetries, maxRetries)) {
|
||||
return retryRequest(makeRequest, apiVersion, headers, requestRetries,
|
||||
// @ts-ignore
|
||||
res.getHeaders()['retry-after']);
|
||||
}
|
||||
else if (options.streaming && res.getStatusCode() < 400) {
|
||||
return this._streamingResponseHandler(requestEvent, usage, callback)(res);
|
||||
}
|
||||
else {
|
||||
return this._jsonResponseHandler(requestEvent, usage, callback)(res);
|
||||
}
|
||||
})
|
||||
.catch((error) => {
|
||||
if (RequestSender._shouldRetry(null, requestRetries, maxRetries, error)) {
|
||||
return retryRequest(makeRequest, apiVersion, headers, requestRetries, null);
|
||||
}
|
||||
else {
|
||||
const isTimeoutError = error.code && error.code === HttpClient.TIMEOUT_ERROR_CODE;
|
||||
return callback(new StripeConnectionError({
|
||||
message: isTimeoutError
|
||||
? `Request aborted due to timeout being reached (${timeout}ms)`
|
||||
: RequestSender._generateConnectionErrorMessage(requestRetries),
|
||||
const request = {
|
||||
host: host || this._stripe.getApiField('host'),
|
||||
port: this._stripe.getApiField('port'),
|
||||
path: path,
|
||||
method: method,
|
||||
headers: Object.assign({}, headers),
|
||||
body: requestData,
|
||||
protocol: this._stripe.getApiField('protocol'),
|
||||
};
|
||||
authenticator(request)
|
||||
.then(() => {
|
||||
const req = this._stripe
|
||||
.getApiField('httpClient')
|
||||
.makeRequest(request.host, request.port, request.path, request.method, request.headers, request.body, request.protocol, timeout);
|
||||
const requestStartTime = Date.now();
|
||||
// @ts-ignore
|
||||
const requestEvent = removeNullish({
|
||||
api_version: apiVersion,
|
||||
account: headers['Stripe-Account'],
|
||||
idempotency_key: headers['Idempotency-Key'],
|
||||
method,
|
||||
path,
|
||||
request_start_time: requestStartTime,
|
||||
});
|
||||
const requestRetries = numRetries || 0;
|
||||
const maxRetries = this._getMaxNetworkRetries(options.settings || {});
|
||||
this._stripe._emitter.emit('request', requestEvent);
|
||||
req
|
||||
.then((res) => {
|
||||
if (RequestSender._shouldRetry(res, requestRetries, maxRetries)) {
|
||||
return retryRequest(makeRequest, apiVersion, headers, requestRetries,
|
||||
// @ts-ignore
|
||||
detail: error,
|
||||
}));
|
||||
}
|
||||
res.getHeaders()['retry-after']);
|
||||
}
|
||||
else if (options.streaming && res.getStatusCode() < 400) {
|
||||
return this._streamingResponseHandler(requestEvent, usage, callback)(res);
|
||||
}
|
||||
else {
|
||||
return this._jsonResponseHandler(requestEvent, apiMode, usage, callback)(res);
|
||||
}
|
||||
})
|
||||
.catch((error) => {
|
||||
if (RequestSender._shouldRetry(null, requestRetries, maxRetries, error)) {
|
||||
return retryRequest(makeRequest, apiVersion, headers, requestRetries, null);
|
||||
}
|
||||
else {
|
||||
const isTimeoutError = error.code && error.code === HttpClient.TIMEOUT_ERROR_CODE;
|
||||
return callback(new StripeConnectionError({
|
||||
message: isTimeoutError
|
||||
? `Request aborted due to timeout being reached (${timeout}ms)`
|
||||
: RequestSender._generateConnectionErrorMessage(requestRetries),
|
||||
// @ts-ignore
|
||||
detail: error,
|
||||
}));
|
||||
}
|
||||
});
|
||||
})
|
||||
.catch((e) => {
|
||||
throw new StripeError({
|
||||
message: 'Unable to authenticate the request',
|
||||
exception: e,
|
||||
});
|
||||
});
|
||||
};
|
||||
const prepareAndMakeRequest = (error, data) => {
|
||||
@@ -336,9 +418,21 @@ export class RequestSender {
|
||||
}
|
||||
requestData = data;
|
||||
this._stripe.getClientUserAgent((clientUserAgent) => {
|
||||
var _a, _b;
|
||||
const apiVersion = this._stripe.getApiField('version');
|
||||
const headers = this._makeHeaders(auth, requestData.length, apiVersion, clientUserAgent, method, (_a = options.headers) !== null && _a !== void 0 ? _a : null, (_b = options.settings) !== null && _b !== void 0 ? _b : {});
|
||||
const headers = this._makeHeaders({
|
||||
contentType: apiMode == 'v2'
|
||||
? 'application/json'
|
||||
: 'application/x-www-form-urlencoded',
|
||||
contentLength: requestData.length,
|
||||
apiVersion: apiVersion,
|
||||
clientUserAgent,
|
||||
method,
|
||||
userSuppliedHeaders: options.headers,
|
||||
userSuppliedSettings: options.settings,
|
||||
stripeAccount: apiMode == 'v2' ? null : this._stripe.getApiField('stripeAccount'),
|
||||
stripeContext: apiMode == 'v2' ? this._stripe.getApiField('stripeContext') : null,
|
||||
apiMode: apiMode,
|
||||
});
|
||||
makeRequest(apiVersion, headers, 0);
|
||||
});
|
||||
};
|
||||
@@ -346,7 +440,14 @@ export class RequestSender {
|
||||
requestDataProcessor(method, data, options.headers, prepareAndMakeRequest);
|
||||
}
|
||||
else {
|
||||
prepareAndMakeRequest(null, stringifyRequestData(data || {}));
|
||||
let stringifiedData;
|
||||
if (apiMode == 'v2') {
|
||||
stringifiedData = data ? jsonStringifyRequestData(data) : '';
|
||||
}
|
||||
else {
|
||||
stringifiedData = queryStringifyRequestData(data || {}, apiMode);
|
||||
}
|
||||
prepareAndMakeRequest(null, stringifiedData);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
3
server/node_modules/stripe/esm/ResourceNamespace.js
generated
vendored
3
server/node_modules/stripe/esm/ResourceNamespace.js
generated
vendored
@@ -2,6 +2,9 @@
|
||||
// It also works recursively, so you could do i.e. `stripe.billing.invoicing.pay`.
|
||||
function ResourceNamespace(stripe, resources) {
|
||||
for (const name in resources) {
|
||||
if (!Object.prototype.hasOwnProperty.call(resources, name)) {
|
||||
continue;
|
||||
}
|
||||
const camelCaseName = name[0].toLowerCase() + name.substring(1);
|
||||
const resource = new resources[name](stripe);
|
||||
this[camelCaseName] = resource;
|
||||
|
||||
15
server/node_modules/stripe/esm/StripeResource.js
generated
vendored
15
server/node_modules/stripe/esm/StripeResource.js
generated
vendored
@@ -1,4 +1,4 @@
|
||||
import { getDataFromArgs, getOptionsFromArgs, makeURLInterpolator, protoExtend, stringifyRequestData, } from './utils.js';
|
||||
import { getDataFromArgs, getOptionsFromArgs, makeURLInterpolator, protoExtend, queryStringifyRequestData, getAPIMode, } from './utils.js';
|
||||
import { stripeMethod } from './StripeMethod.js';
|
||||
// Provide extension mechanism for Stripe Resource Sub-Classes
|
||||
StripeResource.extend = protoExtend;
|
||||
@@ -75,6 +75,7 @@ StripeResource.prototype = {
|
||||
return parts.join('/').replace(/\/{2,}/g, '/');
|
||||
},
|
||||
_getRequestOpts(requestArgs, spec, overrideData) {
|
||||
var _a;
|
||||
// Extract spec values with defaults.
|
||||
const requestMethod = (spec.method || 'GET').toUpperCase();
|
||||
const usage = spec.usage || [];
|
||||
@@ -118,14 +119,14 @@ StripeResource.prototype = {
|
||||
spec.validator(data, { headers });
|
||||
}
|
||||
const dataInQuery = spec.method === 'GET' || spec.method === 'DELETE';
|
||||
const bodyData = dataInQuery ? {} : data;
|
||||
const bodyData = dataInQuery ? null : data;
|
||||
const queryData = dataInQuery ? data : {};
|
||||
return {
|
||||
requestMethod,
|
||||
requestPath,
|
||||
bodyData,
|
||||
queryData,
|
||||
auth: options.auth,
|
||||
authenticator: (_a = options.authenticator) !== null && _a !== void 0 ? _a : null,
|
||||
headers,
|
||||
host: host !== null && host !== void 0 ? host : null,
|
||||
streaming,
|
||||
@@ -158,10 +159,14 @@ StripeResource.prototype = {
|
||||
const path = [
|
||||
opts.requestPath,
|
||||
emptyQuery ? '' : '?',
|
||||
stringifyRequestData(opts.queryData),
|
||||
queryStringifyRequestData(opts.queryData, getAPIMode(opts.requestPath)),
|
||||
].join('');
|
||||
const { headers, settings } = opts;
|
||||
this._stripe._requestSender._request(opts.requestMethod, opts.host, path, opts.bodyData, opts.auth, { headers, settings, streaming: opts.streaming }, opts.usage, requestCallback, (_a = this.requestDataProcessor) === null || _a === void 0 ? void 0 : _a.bind(this));
|
||||
this._stripe._requestSender._request(opts.requestMethod, opts.host, path, opts.bodyData, opts.authenticator, {
|
||||
headers,
|
||||
settings,
|
||||
streaming: opts.streaming,
|
||||
}, opts.usage, requestCallback, (_a = this.requestDataProcessor) === null || _a === void 0 ? void 0 : _a.bind(this));
|
||||
});
|
||||
},
|
||||
};
|
||||
|
||||
48
server/node_modules/stripe/esm/Webhooks.js
generated
vendored
48
server/node_modules/stripe/esm/Webhooks.js
generated
vendored
@@ -40,23 +40,16 @@ export function createWebhooks(platformFunctions) {
|
||||
* @property {CryptoProvider} cryptoProvider - Crypto provider to use for computing the signature if none was provided. Defaults to NodeCryptoProvider.
|
||||
*/
|
||||
generateTestHeaderString: function (opts) {
|
||||
if (!opts) {
|
||||
throw new StripeError({
|
||||
message: 'Options are required',
|
||||
});
|
||||
}
|
||||
opts.timestamp =
|
||||
Math.floor(opts.timestamp) || Math.floor(Date.now() / 1000);
|
||||
opts.scheme = opts.scheme || signature.EXPECTED_SCHEME;
|
||||
opts.cryptoProvider = opts.cryptoProvider || getCryptoProvider();
|
||||
opts.signature =
|
||||
opts.signature ||
|
||||
opts.cryptoProvider.computeHMACSignature(opts.timestamp + '.' + opts.payload, opts.secret);
|
||||
const generatedHeader = [
|
||||
't=' + opts.timestamp,
|
||||
opts.scheme + '=' + opts.signature,
|
||||
].join(',');
|
||||
return generatedHeader;
|
||||
const preparedOpts = prepareOptions(opts);
|
||||
const signature = preparedOpts.signature ||
|
||||
preparedOpts.cryptoProvider.computeHMACSignature(preparedOpts.payloadString, preparedOpts.secret);
|
||||
return preparedOpts.generateHeaderString(signature);
|
||||
},
|
||||
generateTestHeaderStringAsync: async function (opts) {
|
||||
const preparedOpts = prepareOptions(opts);
|
||||
const signature = preparedOpts.signature ||
|
||||
(await preparedOpts.cryptoProvider.computeHMACSignatureAsync(preparedOpts.payloadString, preparedOpts.secret));
|
||||
return preparedOpts.generateHeaderString(signature);
|
||||
},
|
||||
};
|
||||
const signature = {
|
||||
@@ -128,7 +121,7 @@ export function createWebhooks(platformFunctions) {
|
||||
function validateComputedSignature(payload, header, details, expectedSignature, tolerance, suspectPayloadType, secretContainsWhitespace, receivedAt) {
|
||||
const signatureFound = !!details.signatures.filter(platformFunctions.secureCompare.bind(platformFunctions, expectedSignature)).length;
|
||||
const docsLocation = '\nLearn more about webhook signing and explore webhook integration examples for various frameworks at ' +
|
||||
'https://github.com/stripe/stripe-node#webhook-signing';
|
||||
'https://docs.stripe.com/webhooks/signature';
|
||||
const whitespaceMessage = secretContainsWhitespace
|
||||
? '\n\nNote: The provided signing secret contains whitespace. This often indicates an extra newline or space is in the value'
|
||||
: '';
|
||||
@@ -191,6 +184,25 @@ export function createWebhooks(platformFunctions) {
|
||||
}
|
||||
return webhooksCryptoProviderInstance;
|
||||
}
|
||||
function prepareOptions(opts) {
|
||||
if (!opts) {
|
||||
throw new StripeError({
|
||||
message: 'Options are required',
|
||||
});
|
||||
}
|
||||
const timestamp = Math.floor(opts.timestamp) || Math.floor(Date.now() / 1000);
|
||||
const scheme = opts.scheme || signature.EXPECTED_SCHEME;
|
||||
const cryptoProvider = opts.cryptoProvider || getCryptoProvider();
|
||||
const payloadString = `${timestamp}.${opts.payload}`;
|
||||
const generateHeaderString = (signature) => {
|
||||
return `t=${timestamp},${scheme}=${signature}`;
|
||||
};
|
||||
return Object.assign(Object.assign({}, opts), { timestamp,
|
||||
scheme,
|
||||
cryptoProvider,
|
||||
payloadString,
|
||||
generateHeaderString });
|
||||
}
|
||||
Webhook.signature = signature;
|
||||
return Webhook;
|
||||
}
|
||||
|
||||
2
server/node_modules/stripe/esm/apiVersion.js
generated
vendored
2
server/node_modules/stripe/esm/apiVersion.js
generated
vendored
@@ -1,2 +1,2 @@
|
||||
// File generated from our OpenAPI spec
|
||||
export const ApiVersion = '2023-10-16';
|
||||
export const ApiVersion = '2025-02-24.acacia';
|
||||
|
||||
62
server/node_modules/stripe/esm/autoPagination.js
generated
vendored
62
server/node_modules/stripe/esm/autoPagination.js
generated
vendored
@@ -1,5 +1,5 @@
|
||||
import { callbackifyPromiseWithTimeout, getDataFromArgs } from './utils.js';
|
||||
class StripeIterator {
|
||||
import { callbackifyPromiseWithTimeout, getDataFromArgs, getAPIMode, } from './utils.js';
|
||||
class V1Iterator {
|
||||
constructor(firstPagePromise, requestArgs, spec, stripeResource) {
|
||||
this.index = 0;
|
||||
this.pagePromise = firstPagePromise;
|
||||
@@ -57,7 +57,7 @@ class StripeIterator {
|
||||
return nextPromise;
|
||||
}
|
||||
}
|
||||
class ListIterator extends StripeIterator {
|
||||
class V1ListIterator extends V1Iterator {
|
||||
getNextPage(pageResult) {
|
||||
const reverseIteration = isReverseIteration(this.requestArgs);
|
||||
const lastId = getLastId(pageResult, reverseIteration);
|
||||
@@ -66,7 +66,7 @@ class ListIterator extends StripeIterator {
|
||||
});
|
||||
}
|
||||
}
|
||||
class SearchIterator extends StripeIterator {
|
||||
class V1SearchIterator extends V1Iterator {
|
||||
getNextPage(pageResult) {
|
||||
if (!pageResult.next_page) {
|
||||
throw Error('Unexpected: Stripe API response does not have a well-formed `next_page` field, but `has_more` was true.');
|
||||
@@ -76,12 +76,56 @@ class SearchIterator extends StripeIterator {
|
||||
});
|
||||
}
|
||||
}
|
||||
export const makeAutoPaginationMethods = (stripeResource, requestArgs, spec, firstPagePromise) => {
|
||||
if (spec.methodType === 'search') {
|
||||
return makeAutoPaginationMethodsFromIterator(new SearchIterator(firstPagePromise, requestArgs, spec, stripeResource));
|
||||
class V2ListIterator {
|
||||
constructor(firstPagePromise, requestArgs, spec, stripeResource) {
|
||||
this.currentPageIterator = (async () => {
|
||||
const page = await firstPagePromise;
|
||||
return page.data[Symbol.iterator]();
|
||||
})();
|
||||
this.nextPageUrl = (async () => {
|
||||
const page = await firstPagePromise;
|
||||
return page.next_page_url || null;
|
||||
})();
|
||||
this.requestArgs = requestArgs;
|
||||
this.spec = spec;
|
||||
this.stripeResource = stripeResource;
|
||||
}
|
||||
if (spec.methodType === 'list') {
|
||||
return makeAutoPaginationMethodsFromIterator(new ListIterator(firstPagePromise, requestArgs, spec, stripeResource));
|
||||
async turnPage() {
|
||||
const nextPageUrl = await this.nextPageUrl;
|
||||
if (!nextPageUrl)
|
||||
return null;
|
||||
this.spec.fullPath = nextPageUrl;
|
||||
const page = await this.stripeResource._makeRequest([], this.spec, {});
|
||||
this.nextPageUrl = Promise.resolve(page.next_page_url);
|
||||
this.currentPageIterator = Promise.resolve(page.data[Symbol.iterator]());
|
||||
return this.currentPageIterator;
|
||||
}
|
||||
async next() {
|
||||
{
|
||||
const result = (await this.currentPageIterator).next();
|
||||
if (!result.done)
|
||||
return { done: false, value: result.value };
|
||||
}
|
||||
const nextPageIterator = await this.turnPage();
|
||||
if (!nextPageIterator) {
|
||||
return { done: true, value: undefined };
|
||||
}
|
||||
const result = nextPageIterator.next();
|
||||
if (!result.done)
|
||||
return { done: false, value: result.value };
|
||||
return { done: true, value: undefined };
|
||||
}
|
||||
}
|
||||
export const makeAutoPaginationMethods = (stripeResource, requestArgs, spec, firstPagePromise) => {
|
||||
const apiMode = getAPIMode(spec.fullPath || spec.path);
|
||||
if (apiMode !== 'v2' && spec.methodType === 'search') {
|
||||
return makeAutoPaginationMethodsFromIterator(new V1SearchIterator(firstPagePromise, requestArgs, spec, stripeResource));
|
||||
}
|
||||
if (apiMode !== 'v2' && spec.methodType === 'list') {
|
||||
return makeAutoPaginationMethodsFromIterator(new V1ListIterator(firstPagePromise, requestArgs, spec, stripeResource));
|
||||
}
|
||||
if (apiMode === 'v2' && spec.methodType === 'list') {
|
||||
return makeAutoPaginationMethodsFromIterator(new V2ListIterator(firstPagePromise, requestArgs, spec, stripeResource));
|
||||
}
|
||||
return null;
|
||||
};
|
||||
|
||||
6
server/node_modules/stripe/esm/crypto/CryptoProvider.js
generated
vendored
6
server/node_modules/stripe/esm/crypto/CryptoProvider.js
generated
vendored
@@ -28,6 +28,12 @@ export class CryptoProvider {
|
||||
computeHMACSignatureAsync(payload, secret) {
|
||||
throw new Error('computeHMACSignatureAsync not implemented.');
|
||||
}
|
||||
/**
|
||||
* Computes a SHA-256 hash of the data.
|
||||
*/
|
||||
computeSHA256Async(data) {
|
||||
throw new Error('computeSHA256 not implemented.');
|
||||
}
|
||||
}
|
||||
/**
|
||||
* If the crypto provider only supports asynchronous operations,
|
||||
|
||||
7
server/node_modules/stripe/esm/crypto/NodeCryptoProvider.js
generated
vendored
7
server/node_modules/stripe/esm/crypto/NodeCryptoProvider.js
generated
vendored
@@ -16,4 +16,11 @@ export class NodeCryptoProvider extends CryptoProvider {
|
||||
const signature = await this.computeHMACSignature(payload, secret);
|
||||
return signature;
|
||||
}
|
||||
/** @override */
|
||||
async computeSHA256Async(data) {
|
||||
return new Uint8Array(await crypto
|
||||
.createHash('sha256')
|
||||
.update(data)
|
||||
.digest());
|
||||
}
|
||||
}
|
||||
|
||||
4
server/node_modules/stripe/esm/crypto/SubtleCryptoProvider.js
generated
vendored
4
server/node_modules/stripe/esm/crypto/SubtleCryptoProvider.js
generated
vendored
@@ -34,6 +34,10 @@ export class SubtleCryptoProvider extends CryptoProvider {
|
||||
}
|
||||
return signatureHexCodes.join('');
|
||||
}
|
||||
/** @override */
|
||||
async computeSHA256Async(data) {
|
||||
return new Uint8Array(await this.subtleCrypto.digest('SHA-256', data));
|
||||
}
|
||||
}
|
||||
// Cached mapping of byte to hex representation. We do this once to avoid re-
|
||||
// computing every time we need to convert the result of a signature to hex.
|
||||
|
||||
7
server/node_modules/stripe/esm/multipart.js
generated
vendored
7
server/node_modules/stripe/esm/multipart.js
generated
vendored
@@ -1,4 +1,4 @@
|
||||
import { flattenAndStringify, stringifyRequestData } from './utils.js';
|
||||
import { flattenAndStringify, queryStringifyRequestData } from './utils.js';
|
||||
// Method for formatting HTTP body for the multipart/form-data specification
|
||||
// Mostly taken from Fermata.js
|
||||
// https://github.com/natevw/fermata/blob/5d9732a33d776ce925013a265935facd1626cc88/fermata.js#L315-L343
|
||||
@@ -21,6 +21,9 @@ const multipartDataGenerator = (method, data, headers) => {
|
||||
}
|
||||
const flattenedData = flattenAndStringify(data);
|
||||
for (const k in flattenedData) {
|
||||
if (!Object.prototype.hasOwnProperty.call(flattenedData, k)) {
|
||||
continue;
|
||||
}
|
||||
const v = flattenedData[k];
|
||||
push(`--${segno}`);
|
||||
if (Object.prototype.hasOwnProperty.call(v, 'data')) {
|
||||
@@ -42,7 +45,7 @@ const multipartDataGenerator = (method, data, headers) => {
|
||||
export function multipartRequestDataProcessor(method, data, headers, callback) {
|
||||
data = data || {};
|
||||
if (method !== 'POST') {
|
||||
return callback(null, stringifyRequestData(data));
|
||||
return callback(null, queryStringifyRequestData(data));
|
||||
}
|
||||
this._stripe._platformFunctions
|
||||
.tryBufferData(data)
|
||||
|
||||
27
server/node_modules/stripe/esm/resources.js
generated
vendored
27
server/node_modules/stripe/esm/resources.js
generated
vendored
@@ -2,6 +2,7 @@
|
||||
import { resourceNamespace } from './ResourceNamespace.js';
|
||||
import { Accounts as FinancialConnectionsAccounts } from './resources/FinancialConnections/Accounts.js';
|
||||
import { ActiveEntitlements as EntitlementsActiveEntitlements } from './resources/Entitlements/ActiveEntitlements.js';
|
||||
import { Alerts as BillingAlerts } from './resources/Billing/Alerts.js';
|
||||
import { Authorizations as TestHelpersIssuingAuthorizations } from './resources/TestHelpers/Issuing/Authorizations.js';
|
||||
import { Authorizations as IssuingAuthorizations } from './resources/Issuing/Authorizations.js';
|
||||
import { Calculations as TaxCalculations } from './resources/Tax/Calculations.js';
|
||||
@@ -12,18 +13,27 @@ import { Configurations as BillingPortalConfigurations } from './resources/Billi
|
||||
import { Configurations as TerminalConfigurations } from './resources/Terminal/Configurations.js';
|
||||
import { ConfirmationTokens as TestHelpersConfirmationTokens } from './resources/TestHelpers/ConfirmationTokens.js';
|
||||
import { ConnectionTokens as TerminalConnectionTokens } from './resources/Terminal/ConnectionTokens.js';
|
||||
import { CreditBalanceSummary as BillingCreditBalanceSummary } from './resources/Billing/CreditBalanceSummary.js';
|
||||
import { CreditBalanceTransactions as BillingCreditBalanceTransactions } from './resources/Billing/CreditBalanceTransactions.js';
|
||||
import { CreditGrants as BillingCreditGrants } from './resources/Billing/CreditGrants.js';
|
||||
import { CreditReversals as TreasuryCreditReversals } from './resources/Treasury/CreditReversals.js';
|
||||
import { Customers as TestHelpersCustomers } from './resources/TestHelpers/Customers.js';
|
||||
import { DebitReversals as TreasuryDebitReversals } from './resources/Treasury/DebitReversals.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 { InboundTransfers as TestHelpersTreasuryInboundTransfers } from './resources/TestHelpers/Treasury/InboundTransfers.js';
|
||||
import { InboundTransfers as TreasuryInboundTransfers } from './resources/Treasury/InboundTransfers.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';
|
||||
@@ -86,6 +96,7 @@ export { ExchangeRates } from './resources/ExchangeRates.js';
|
||||
export { FileLinks } from './resources/FileLinks.js';
|
||||
export { Files } from './resources/Files.js';
|
||||
export { InvoiceItems } from './resources/InvoiceItems.js';
|
||||
export { InvoiceRenderingTemplates } from './resources/InvoiceRenderingTemplates.js';
|
||||
export { Invoices } from './resources/Invoices.js';
|
||||
export { Mandates } from './resources/Mandates.js';
|
||||
export { OAuth } from './resources/OAuth.js';
|
||||
@@ -118,6 +129,10 @@ export { Transfers } from './resources/Transfers.js';
|
||||
export { WebhookEndpoints } from './resources/WebhookEndpoints.js';
|
||||
export const Apps = resourceNamespace('apps', { Secrets: AppsSecrets });
|
||||
export const Billing = resourceNamespace('billing', {
|
||||
Alerts: BillingAlerts,
|
||||
CreditBalanceSummary: BillingCreditBalanceSummary,
|
||||
CreditBalanceTransactions: BillingCreditBalanceTransactions,
|
||||
CreditGrants: BillingCreditGrants,
|
||||
MeterEventAdjustments: BillingMeterEventAdjustments,
|
||||
MeterEvents: BillingMeterEvents,
|
||||
Meters: BillingMeters,
|
||||
@@ -218,3 +233,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,
|
||||
}),
|
||||
});
|
||||
|
||||
4
server/node_modules/stripe/esm/resources/Checkout/Sessions.js
generated
vendored
4
server/node_modules/stripe/esm/resources/Checkout/Sessions.js
generated
vendored
@@ -7,6 +7,10 @@ export const Sessions = StripeResource.extend({
|
||||
method: 'GET',
|
||||
fullPath: '/v1/checkout/sessions/{session}',
|
||||
}),
|
||||
update: stripeMethod({
|
||||
method: 'POST',
|
||||
fullPath: '/v1/checkout/sessions/{session}',
|
||||
}),
|
||||
list: stripeMethod({
|
||||
method: 'GET',
|
||||
fullPath: '/v1/checkout/sessions',
|
||||
|
||||
16
server/node_modules/stripe/esm/resources/Invoices.js
generated
vendored
16
server/node_modules/stripe/esm/resources/Invoices.js
generated
vendored
@@ -11,6 +11,14 @@ export const Invoices = StripeResource.extend({
|
||||
methodType: 'list',
|
||||
}),
|
||||
del: stripeMethod({ method: 'DELETE', fullPath: '/v1/invoices/{invoice}' }),
|
||||
addLines: stripeMethod({
|
||||
method: 'POST',
|
||||
fullPath: '/v1/invoices/{invoice}/add_lines',
|
||||
}),
|
||||
createPreview: stripeMethod({
|
||||
method: 'POST',
|
||||
fullPath: '/v1/invoices/create_preview',
|
||||
}),
|
||||
finalizeInvoice: stripeMethod({
|
||||
method: 'POST',
|
||||
fullPath: '/v1/invoices/{invoice}/finalize',
|
||||
@@ -30,6 +38,10 @@ export const Invoices = StripeResource.extend({
|
||||
fullPath: '/v1/invoices/{invoice}/mark_uncollectible',
|
||||
}),
|
||||
pay: stripeMethod({ method: 'POST', fullPath: '/v1/invoices/{invoice}/pay' }),
|
||||
removeLines: stripeMethod({
|
||||
method: 'POST',
|
||||
fullPath: '/v1/invoices/{invoice}/remove_lines',
|
||||
}),
|
||||
retrieveUpcoming: stripeMethod({
|
||||
method: 'GET',
|
||||
fullPath: '/v1/invoices/upcoming',
|
||||
@@ -43,6 +55,10 @@ export const Invoices = StripeResource.extend({
|
||||
method: 'POST',
|
||||
fullPath: '/v1/invoices/{invoice}/send',
|
||||
}),
|
||||
updateLines: stripeMethod({
|
||||
method: 'POST',
|
||||
fullPath: '/v1/invoices/{invoice}/update_lines',
|
||||
}),
|
||||
updateLineItem: stripeMethod({
|
||||
method: 'POST',
|
||||
fullPath: '/v1/invoices/{invoice}/lines/{line_item_id}',
|
||||
|
||||
4
server/node_modules/stripe/esm/resources/OAuth.js
generated
vendored
4
server/node_modules/stripe/esm/resources/OAuth.js
generated
vendored
@@ -1,6 +1,6 @@
|
||||
'use strict';
|
||||
import { StripeResource } from '../StripeResource.js';
|
||||
import { stringifyRequestData } from '../utils.js';
|
||||
import { queryStringifyRequestData } from '../utils.js';
|
||||
const stripeMethod = StripeResource.method;
|
||||
const oAuthHost = 'connect.stripe.com';
|
||||
export const OAuth = StripeResource.extend({
|
||||
@@ -22,7 +22,7 @@ export const OAuth = StripeResource.extend({
|
||||
if (!params.scope) {
|
||||
params.scope = 'read_write';
|
||||
}
|
||||
return `https://${oAuthHost}/${path}?${stringifyRequestData(params)}`;
|
||||
return `https://${oAuthHost}/${path}?${queryStringifyRequestData(params)}`;
|
||||
},
|
||||
token: stripeMethod({
|
||||
method: 'POST',
|
||||
|
||||
4
server/node_modules/stripe/esm/resources/Tax/Calculations.js
generated
vendored
4
server/node_modules/stripe/esm/resources/Tax/Calculations.js
generated
vendored
@@ -3,6 +3,10 @@ import { StripeResource } from '../../StripeResource.js';
|
||||
const stripeMethod = StripeResource.method;
|
||||
export const Calculations = StripeResource.extend({
|
||||
create: stripeMethod({ method: 'POST', fullPath: '/v1/tax/calculations' }),
|
||||
retrieve: stripeMethod({
|
||||
method: 'GET',
|
||||
fullPath: '/v1/tax/calculations/{calculation}',
|
||||
}),
|
||||
listLineItems: stripeMethod({
|
||||
method: 'GET',
|
||||
fullPath: '/v1/tax/calculations/{calculation}/line_items',
|
||||
|
||||
8
server/node_modules/stripe/esm/resources/TestHelpers/Issuing/Authorizations.js
generated
vendored
8
server/node_modules/stripe/esm/resources/TestHelpers/Issuing/Authorizations.js
generated
vendored
@@ -14,10 +14,18 @@ export const Authorizations = StripeResource.extend({
|
||||
method: 'POST',
|
||||
fullPath: '/v1/test_helpers/issuing/authorizations/{authorization}/expire',
|
||||
}),
|
||||
finalizeAmount: stripeMethod({
|
||||
method: 'POST',
|
||||
fullPath: '/v1/test_helpers/issuing/authorizations/{authorization}/finalize_amount',
|
||||
}),
|
||||
increment: stripeMethod({
|
||||
method: 'POST',
|
||||
fullPath: '/v1/test_helpers/issuing/authorizations/{authorization}/increment',
|
||||
}),
|
||||
respond: stripeMethod({
|
||||
method: 'POST',
|
||||
fullPath: '/v1/test_helpers/issuing/authorizations/{authorization}/fraud_challenges/respond',
|
||||
}),
|
||||
reverse: stripeMethod({
|
||||
method: 'POST',
|
||||
fullPath: '/v1/test_helpers/issuing/authorizations/{authorization}/reverse',
|
||||
|
||||
4
server/node_modules/stripe/esm/resources/TestHelpers/Issuing/Cards.js
generated
vendored
4
server/node_modules/stripe/esm/resources/TestHelpers/Issuing/Cards.js
generated
vendored
@@ -18,4 +18,8 @@ export const Cards = StripeResource.extend({
|
||||
method: 'POST',
|
||||
fullPath: '/v1/test_helpers/issuing/cards/{card}/shipping/ship',
|
||||
}),
|
||||
submitCard: stripeMethod({
|
||||
method: 'POST',
|
||||
fullPath: '/v1/test_helpers/issuing/cards/{card}/shipping/submit',
|
||||
}),
|
||||
});
|
||||
|
||||
4
server/node_modules/stripe/esm/resources/TestHelpers/Treasury/OutboundPayments.js
generated
vendored
4
server/node_modules/stripe/esm/resources/TestHelpers/Treasury/OutboundPayments.js
generated
vendored
@@ -2,6 +2,10 @@
|
||||
import { StripeResource } from '../../../StripeResource.js';
|
||||
const stripeMethod = StripeResource.method;
|
||||
export const OutboundPayments = StripeResource.extend({
|
||||
update: stripeMethod({
|
||||
method: 'POST',
|
||||
fullPath: '/v1/test_helpers/treasury/outbound_payments/{id}',
|
||||
}),
|
||||
fail: stripeMethod({
|
||||
method: 'POST',
|
||||
fullPath: '/v1/test_helpers/treasury/outbound_payments/{id}/fail',
|
||||
|
||||
4
server/node_modules/stripe/esm/resources/TestHelpers/Treasury/OutboundTransfers.js
generated
vendored
4
server/node_modules/stripe/esm/resources/TestHelpers/Treasury/OutboundTransfers.js
generated
vendored
@@ -2,6 +2,10 @@
|
||||
import { StripeResource } from '../../../StripeResource.js';
|
||||
const stripeMethod = StripeResource.method;
|
||||
export const OutboundTransfers = StripeResource.extend({
|
||||
update: stripeMethod({
|
||||
method: 'POST',
|
||||
fullPath: '/v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}',
|
||||
}),
|
||||
fail: stripeMethod({
|
||||
method: 'POST',
|
||||
fullPath: '/v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}/fail',
|
||||
|
||||
4
server/node_modules/stripe/esm/resources/Treasury/FinancialAccounts.js
generated
vendored
4
server/node_modules/stripe/esm/resources/Treasury/FinancialAccounts.js
generated
vendored
@@ -19,6 +19,10 @@ export const FinancialAccounts = StripeResource.extend({
|
||||
fullPath: '/v1/treasury/financial_accounts',
|
||||
methodType: 'list',
|
||||
}),
|
||||
close: stripeMethod({
|
||||
method: 'POST',
|
||||
fullPath: '/v1/treasury/financial_accounts/{financial_account}/close',
|
||||
}),
|
||||
retrieveFeatures: stripeMethod({
|
||||
method: 'GET',
|
||||
fullPath: '/v1/treasury/financial_accounts/{financial_account}/features',
|
||||
|
||||
49
server/node_modules/stripe/esm/stripe.core.js
generated
vendored
49
server/node_modules/stripe/esm/stripe.core.js
generated
vendored
@@ -1,21 +1,22 @@
|
||||
import * as _Error from './Error.js';
|
||||
import * as apiVersion from './apiVersion.js';
|
||||
import * as resources from './resources.js';
|
||||
import { HttpClient, HttpClientResponse } from './net/HttpClient.js';
|
||||
import { determineProcessUserAgentProperties, pascalToCamelCase, validateInteger, } from './utils.js';
|
||||
import { CryptoProvider } from './crypto/CryptoProvider.js';
|
||||
import { RequestSender } from './RequestSender.js';
|
||||
import { StripeResource } from './StripeResource.js';
|
||||
import { createWebhooks } from './Webhooks.js';
|
||||
import { ApiVersion } from './apiVersion.js';
|
||||
import { CryptoProvider } from './crypto/CryptoProvider.js';
|
||||
import { HttpClient, HttpClientResponse } from './net/HttpClient.js';
|
||||
import * as resources from './resources.js';
|
||||
import { createApiKeyAuthenticator, determineProcessUserAgentProperties, pascalToCamelCase, validateInteger, } from './utils.js';
|
||||
const DEFAULT_HOST = 'api.stripe.com';
|
||||
const DEFAULT_PORT = '443';
|
||||
const DEFAULT_BASE_PATH = '/v1/';
|
||||
const DEFAULT_API_VERSION = apiVersion.ApiVersion;
|
||||
const DEFAULT_API_VERSION = ApiVersion;
|
||||
const DEFAULT_TIMEOUT = 80000;
|
||||
const MAX_NETWORK_RETRY_DELAY_SEC = 2;
|
||||
const MAX_NETWORK_RETRY_DELAY_SEC = 5;
|
||||
const INITIAL_NETWORK_RETRY_DELAY_SEC = 0.5;
|
||||
const APP_INFO_PROPERTIES = ['name', 'version', 'url', 'partner_id'];
|
||||
const ALLOWED_CONFIG_PROPERTIES = [
|
||||
'authenticator',
|
||||
'apiVersion',
|
||||
'typescript',
|
||||
'maxNetworkRetries',
|
||||
@@ -28,10 +29,11 @@ const ALLOWED_CONFIG_PROPERTIES = [
|
||||
'telemetry',
|
||||
'appInfo',
|
||||
'stripeAccount',
|
||||
'stripeContext',
|
||||
];
|
||||
const defaultRequestSenderFactory = (stripe) => new RequestSender(stripe, StripeResource.MAX_BUFFERED_REQUEST_METRICS);
|
||||
export function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
|
||||
Stripe.PACKAGE_VERSION = '14.25.0';
|
||||
Stripe.PACKAGE_VERSION = '17.7.0';
|
||||
Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, determineProcessUserAgentProperties());
|
||||
Stripe.StripeResource = StripeResource;
|
||||
Stripe.resources = resources;
|
||||
@@ -66,14 +68,13 @@ export function createStripe(platformFunctions, requestSender = defaultRequestSe
|
||||
this.off = this._emitter.removeListener.bind(this._emitter);
|
||||
const agent = props.httpAgent || null;
|
||||
this._api = {
|
||||
auth: null,
|
||||
host: props.host || DEFAULT_HOST,
|
||||
port: props.port || DEFAULT_PORT,
|
||||
protocol: props.protocol || 'https',
|
||||
basePath: DEFAULT_BASE_PATH,
|
||||
version: props.apiVersion || DEFAULT_API_VERSION,
|
||||
timeout: validateInteger('timeout', props.timeout, DEFAULT_TIMEOUT),
|
||||
maxNetworkRetries: validateInteger('maxNetworkRetries', props.maxNetworkRetries, 1),
|
||||
maxNetworkRetries: validateInteger('maxNetworkRetries', props.maxNetworkRetries, 2),
|
||||
agent: agent,
|
||||
httpClient: props.httpClient ||
|
||||
(agent
|
||||
@@ -81,6 +82,7 @@ export function createStripe(platformFunctions, requestSender = defaultRequestSe
|
||||
: this._platformFunctions.createDefaultHttpClient()),
|
||||
dev: false,
|
||||
stripeAccount: props.stripeAccount || null,
|
||||
stripeContext: props.stripeContext || null,
|
||||
};
|
||||
const typescript = props.typescript || false;
|
||||
if (typescript !== Stripe.USER_AGENT.typescript) {
|
||||
@@ -94,7 +96,7 @@ export function createStripe(platformFunctions, requestSender = defaultRequestSe
|
||||
this._setAppInfo(props.appInfo);
|
||||
}
|
||||
this._prepResources();
|
||||
this._setApiKey(key);
|
||||
this._setAuthenticator(key, props.authenticator);
|
||||
this.errors = _Error;
|
||||
// Once Stripe.webhooks looses the factory function signature in a future release
|
||||
// then this should become this.webhooks = Stripe.webhooks
|
||||
@@ -147,13 +149,22 @@ export function createStripe(platformFunctions, requestSender = defaultRequestSe
|
||||
_enableTelemetry: null,
|
||||
_requestSender: null,
|
||||
_platformFunctions: null,
|
||||
rawRequest(method, path, params, options) {
|
||||
return this._requestSender._rawRequest(method, path, params, options);
|
||||
},
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
_setApiKey(key) {
|
||||
if (key) {
|
||||
this._setApiField('auth', `Bearer ${key}`);
|
||||
_setAuthenticator(key, authenticator) {
|
||||
if (key && authenticator) {
|
||||
throw new Error("Can't specify both apiKey and authenticator");
|
||||
}
|
||||
if (!key && !authenticator) {
|
||||
throw new Error('Neither apiKey nor config.authenticator provided');
|
||||
}
|
||||
this._authenticator = key
|
||||
? createApiKeyAuthenticator(key)
|
||||
: authenticator;
|
||||
},
|
||||
/**
|
||||
* @private
|
||||
@@ -271,6 +282,9 @@ export function createStripe(platformFunctions, requestSender = defaultRequestSe
|
||||
var _a;
|
||||
const userAgent = {};
|
||||
for (const field in seed) {
|
||||
if (!Object.prototype.hasOwnProperty.call(seed, field)) {
|
||||
continue;
|
||||
}
|
||||
userAgent[field] = encodeURIComponent((_a = seed[field]) !== null && _a !== void 0 ? _a : 'null');
|
||||
}
|
||||
// URI-encode in case there are unusual characters in the system's uname.
|
||||
@@ -314,6 +328,9 @@ export function createStripe(platformFunctions, requestSender = defaultRequestSe
|
||||
*/
|
||||
_prepResources() {
|
||||
for (const name in resources) {
|
||||
if (!Object.prototype.hasOwnProperty.call(resources, name)) {
|
||||
continue;
|
||||
}
|
||||
// @ts-ignore
|
||||
this[pascalToCamelCase(name)] = new resources[name](this);
|
||||
}
|
||||
@@ -346,6 +363,10 @@ export function createStripe(platformFunctions, requestSender = defaultRequestSe
|
||||
}
|
||||
return config;
|
||||
},
|
||||
parseThinEvent(payload, header, secret, tolerance, cryptoProvider, receivedAt) {
|
||||
// parses and validates the event payload all in one go
|
||||
return this.webhooks.constructEvent(payload, header, secret, tolerance, cryptoProvider, receivedAt);
|
||||
},
|
||||
};
|
||||
return Stripe;
|
||||
}
|
||||
|
||||
67
server/node_modules/stripe/esm/utils.js
generated
vendored
67
server/node_modules/stripe/esm/utils.js
generated
vendored
@@ -7,6 +7,9 @@ const OPTIONS_KEYS = [
|
||||
'maxNetworkRetries',
|
||||
'timeout',
|
||||
'host',
|
||||
'authenticator',
|
||||
'stripeContext',
|
||||
'additionalHeaders',
|
||||
];
|
||||
export function isOptionsHash(o) {
|
||||
return (o &&
|
||||
@@ -17,10 +20,11 @@ export function isOptionsHash(o) {
|
||||
* Stringifies an Object, accommodating nested objects
|
||||
* (forming the conventional key 'parent[child]=value')
|
||||
*/
|
||||
export function stringifyRequestData(data) {
|
||||
export function queryStringifyRequestData(data, apiMode) {
|
||||
return (qs
|
||||
.stringify(data, {
|
||||
serializeDate: (d) => Math.floor(d.getTime() / 1000).toString(),
|
||||
arrayFormat: apiMode == 'v2' ? 'repeat' : 'indices',
|
||||
})
|
||||
// Don't use strict form encoding by changing the square bracket control
|
||||
// characters back to their literals. This is fine by the server, and
|
||||
@@ -87,7 +91,6 @@ export function getDataFromArgs(args) {
|
||||
*/
|
||||
export function getOptionsFromArgs(args) {
|
||||
const opts = {
|
||||
auth: null,
|
||||
host: null,
|
||||
headers: {},
|
||||
settings: {},
|
||||
@@ -95,7 +98,7 @@ export function getOptionsFromArgs(args) {
|
||||
if (args.length > 0) {
|
||||
const arg = args[args.length - 1];
|
||||
if (typeof arg === 'string') {
|
||||
opts.auth = args.pop();
|
||||
opts.authenticator = createApiKeyAuthenticator(args.pop());
|
||||
}
|
||||
else if (isOptionsHash(arg)) {
|
||||
const params = Object.assign({}, args.pop());
|
||||
@@ -104,7 +107,7 @@ export function getOptionsFromArgs(args) {
|
||||
emitWarning(`Invalid options found (${extraKeys.join(', ')}); ignoring.`);
|
||||
}
|
||||
if (params.apiKey) {
|
||||
opts.auth = params.apiKey;
|
||||
opts.authenticator = createApiKeyAuthenticator(params.apiKey);
|
||||
}
|
||||
if (params.idempotencyKey) {
|
||||
opts.headers['Idempotency-Key'] = params.idempotencyKey;
|
||||
@@ -112,6 +115,12 @@ export function getOptionsFromArgs(args) {
|
||||
if (params.stripeAccount) {
|
||||
opts.headers['Stripe-Account'] = params.stripeAccount;
|
||||
}
|
||||
if (params.stripeContext) {
|
||||
if (opts.headers['Stripe-Account']) {
|
||||
throw new Error("Can't specify both stripeAccount and stripeContext.");
|
||||
}
|
||||
opts.headers['Stripe-Context'] = params.stripeContext;
|
||||
}
|
||||
if (params.apiVersion) {
|
||||
opts.headers['Stripe-Version'] = params.apiVersion;
|
||||
}
|
||||
@@ -124,6 +133,19 @@ export function getOptionsFromArgs(args) {
|
||||
if (params.host) {
|
||||
opts.host = params.host;
|
||||
}
|
||||
if (params.authenticator) {
|
||||
if (params.apiKey) {
|
||||
throw new Error("Can't specify both apiKey and authenticator.");
|
||||
}
|
||||
if (typeof params.authenticator !== 'function') {
|
||||
throw new Error('The authenticator must be a function ' +
|
||||
'receiving a request as the first parameter.');
|
||||
}
|
||||
opts.authenticator = params.authenticator;
|
||||
}
|
||||
if (params.additionalHeaders) {
|
||||
opts.headers = params.additionalHeaders;
|
||||
}
|
||||
}
|
||||
}
|
||||
return opts;
|
||||
@@ -229,9 +251,7 @@ export function isObject(obj) {
|
||||
export function flattenAndStringify(data) {
|
||||
const result = {};
|
||||
const step = (obj, prevKey) => {
|
||||
Object.keys(obj).forEach((key) => {
|
||||
// @ts-ignore
|
||||
const value = obj[key];
|
||||
Object.entries(obj).forEach(([key, value]) => {
|
||||
const newKey = prevKey ? `${prevKey}[${key}]` : key;
|
||||
if (isObject(value)) {
|
||||
if (!(value instanceof Uint8Array) &&
|
||||
@@ -272,6 +292,15 @@ export function determineProcessUserAgentProperties() {
|
||||
platform: process.platform,
|
||||
};
|
||||
}
|
||||
export function createApiKeyAuthenticator(apiKey) {
|
||||
const authenticator = (request) => {
|
||||
request.headers.Authorization = 'Bearer ' + apiKey;
|
||||
return Promise.resolve();
|
||||
};
|
||||
// For testing
|
||||
authenticator._apiKey = apiKey;
|
||||
return authenticator;
|
||||
}
|
||||
/**
|
||||
* Joins an array of Uint8Arrays into a single Uint8Array
|
||||
*/
|
||||
@@ -285,3 +314,27 @@ export function concat(arrays) {
|
||||
});
|
||||
return merged;
|
||||
}
|
||||
/**
|
||||
* Replaces Date objects with Unix timestamps
|
||||
*/
|
||||
function dateTimeReplacer(key, value) {
|
||||
if (this[key] instanceof Date) {
|
||||
return Math.floor(this[key].getTime() / 1000).toString();
|
||||
}
|
||||
return value;
|
||||
}
|
||||
/**
|
||||
* JSON stringifies an Object, replacing Date objects with Unix timestamps
|
||||
*/
|
||||
export function jsonStringifyRequestData(data) {
|
||||
return JSON.stringify(data, dateTimeReplacer);
|
||||
}
|
||||
/**
|
||||
* Inspects the given path to determine if the endpoint is for v1 or v2 API
|
||||
*/
|
||||
export function getAPIMode(path) {
|
||||
if (!path) {
|
||||
return 'v1';
|
||||
}
|
||||
return path.startsWith('/v2') ? 'v2' : 'v1';
|
||||
}
|
||||
|
||||
26
server/node_modules/stripe/package.json
generated
vendored
26
server/node_modules/stripe/package.json
generated
vendored
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "stripe",
|
||||
"version": "14.25.0",
|
||||
"version": "17.7.0",
|
||||
"description": "Stripe API wrapper",
|
||||
"keywords": [
|
||||
"stripe",
|
||||
@@ -35,7 +35,6 @@
|
||||
"@typescript-eslint/parser": "^4.33.0",
|
||||
"chai": "^4.3.6",
|
||||
"chai-as-promised": "~7.1.1",
|
||||
"coveralls": "^3.1.1",
|
||||
"eslint": "^7.32.0",
|
||||
"eslint-config-prettier": "^8.5.0",
|
||||
"eslint-plugin-chai-friendly": "^0.7.2",
|
||||
@@ -60,19 +59,8 @@
|
||||
},
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"build": "yarn build-esm && yarn build-cjs",
|
||||
"build-esm": "mkdir -p esm && tsc -p tsconfig.esm.json && echo '{\"type\":\"module\"}' > esm/package.json",
|
||||
"build-cjs": "mkdir -p cjs && tsc -p tsconfig.cjs.json && echo '{\"type\":\"commonjs\"}' > cjs/package.json",
|
||||
"clean": "rm -rf ./.nyc_output ./node_modules/.cache ./coverage ./esm ./cjs",
|
||||
"prepack": "yarn install && yarn build",
|
||||
"mocha": "nyc mocha",
|
||||
"mocha-only": "mocha",
|
||||
"test": "yarn build && yarn test-typescript && yarn mocha",
|
||||
"test-typescript": "tsc --build types/test",
|
||||
"lint": "eslint --ext .js,.jsx,.ts .",
|
||||
"fix": "yarn lint --fix && ./scripts/updateAPIVersion.js",
|
||||
"report": "nyc -r text -r lcov report",
|
||||
"coveralls": "cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js"
|
||||
"test": "tsc -p tsconfig.cjs.json && mocha",
|
||||
"prepack": "just install && just build"
|
||||
},
|
||||
"exports": {
|
||||
"types": "./types/index.d.ts",
|
||||
@@ -80,6 +68,10 @@
|
||||
"import": "./esm/stripe.esm.worker.js",
|
||||
"require": "./cjs/stripe.cjs.worker.js"
|
||||
},
|
||||
"bun": {
|
||||
"import": "./esm/stripe.esm.worker.js",
|
||||
"require": "./cjs/stripe.cjs.worker.js"
|
||||
},
|
||||
"deno": {
|
||||
"import": "./esm/stripe.esm.worker.js",
|
||||
"require": "./cjs/stripe.cjs.worker.js"
|
||||
@@ -88,6 +80,10 @@
|
||||
"import": "./esm/stripe.esm.worker.js",
|
||||
"require": "./cjs/stripe.cjs.worker.js"
|
||||
},
|
||||
"workerd": {
|
||||
"import": "./esm/stripe.esm.worker.js",
|
||||
"require": "./cjs/stripe.cjs.worker.js"
|
||||
},
|
||||
"default": {
|
||||
"import": "./esm/stripe.esm.node.js",
|
||||
"require": "./cjs/stripe.cjs.node.js"
|
||||
|
||||
2
server/node_modules/stripe/types/AccountLinksResource.d.ts
generated
vendored
2
server/node_modules/stripe/types/AccountLinksResource.d.ts
generated
vendored
@@ -46,7 +46,7 @@ declare module 'stripe' {
|
||||
/**
|
||||
* Specifies whether the platform collects only currently_due requirements (`currently_due`) or both currently_due and eventually_due requirements (`eventually_due`). If you don't specify `collection_options`, the default value is `currently_due`.
|
||||
*/
|
||||
fields: CollectionOptions.Fields;
|
||||
fields?: CollectionOptions.Fields;
|
||||
|
||||
/**
|
||||
* Specifies whether the platform collects future_requirements in addition to requirements in Connect Onboarding. The default value is `omit`.
|
||||
|
||||
291
server/node_modules/stripe/types/AccountSessions.d.ts
generated
vendored
291
server/node_modules/stripe/types/AccountSessions.d.ts
generated
vendored
@@ -46,18 +46,61 @@ declare module 'stripe' {
|
||||
|
||||
namespace AccountSession {
|
||||
interface Components {
|
||||
account_management: Components.AccountManagement;
|
||||
|
||||
account_onboarding: Components.AccountOnboarding;
|
||||
|
||||
balances: Components.Balances;
|
||||
|
||||
documents: Components.Documents;
|
||||
|
||||
financial_account: Components.FinancialAccount;
|
||||
|
||||
financial_account_transactions: Components.FinancialAccountTransactions;
|
||||
|
||||
issuing_card: Components.IssuingCard;
|
||||
|
||||
issuing_cards_list: Components.IssuingCardsList;
|
||||
|
||||
notification_banner: Components.NotificationBanner;
|
||||
|
||||
payment_details: Components.PaymentDetails;
|
||||
|
||||
payments: Components.Payments;
|
||||
|
||||
payouts: Components.Payouts;
|
||||
|
||||
payouts_list: Components.PayoutsList;
|
||||
|
||||
tax_registrations: Components.TaxRegistrations;
|
||||
|
||||
tax_settings: Components.TaxSettings;
|
||||
}
|
||||
|
||||
namespace Components {
|
||||
interface AccountManagement {
|
||||
/**
|
||||
* Whether the embedded component is enabled.
|
||||
*/
|
||||
enabled: boolean;
|
||||
|
||||
features: AccountManagement.Features;
|
||||
}
|
||||
|
||||
namespace AccountManagement {
|
||||
interface Features {
|
||||
/**
|
||||
* Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
|
||||
*/
|
||||
disable_stripe_user_authentication: boolean;
|
||||
|
||||
/**
|
||||
* Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`.
|
||||
*/
|
||||
external_account_collection: boolean;
|
||||
}
|
||||
}
|
||||
|
||||
interface AccountOnboarding {
|
||||
/**
|
||||
* Whether the embedded component is enabled.
|
||||
@@ -68,7 +111,55 @@ declare module 'stripe' {
|
||||
}
|
||||
|
||||
namespace AccountOnboarding {
|
||||
interface Features {}
|
||||
interface Features {
|
||||
/**
|
||||
* Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
|
||||
*/
|
||||
disable_stripe_user_authentication: boolean;
|
||||
|
||||
/**
|
||||
* Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`.
|
||||
*/
|
||||
external_account_collection: boolean;
|
||||
}
|
||||
}
|
||||
|
||||
interface Balances {
|
||||
/**
|
||||
* Whether the embedded component is enabled.
|
||||
*/
|
||||
enabled: boolean;
|
||||
|
||||
features: Balances.Features;
|
||||
}
|
||||
|
||||
namespace Balances {
|
||||
interface Features {
|
||||
/**
|
||||
* Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
|
||||
*/
|
||||
disable_stripe_user_authentication: boolean;
|
||||
|
||||
/**
|
||||
* Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
|
||||
*/
|
||||
edit_payout_schedule: boolean;
|
||||
|
||||
/**
|
||||
* Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`.
|
||||
*/
|
||||
external_account_collection: boolean;
|
||||
|
||||
/**
|
||||
* Whether to allow creation of instant payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
|
||||
*/
|
||||
instant_payouts: boolean;
|
||||
|
||||
/**
|
||||
* Whether to allow creation of standard payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
|
||||
*/
|
||||
standard_payouts: boolean;
|
||||
}
|
||||
}
|
||||
|
||||
interface Documents {
|
||||
@@ -84,6 +175,151 @@ declare module 'stripe' {
|
||||
interface Features {}
|
||||
}
|
||||
|
||||
interface FinancialAccount {
|
||||
/**
|
||||
* Whether the embedded component is enabled.
|
||||
*/
|
||||
enabled: boolean;
|
||||
|
||||
features: FinancialAccount.Features;
|
||||
}
|
||||
|
||||
namespace FinancialAccount {
|
||||
interface Features {
|
||||
/**
|
||||
* Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
|
||||
*/
|
||||
disable_stripe_user_authentication: boolean;
|
||||
|
||||
/**
|
||||
* Whether to allow external accounts to be linked for money transfer.
|
||||
*/
|
||||
external_account_collection: boolean;
|
||||
|
||||
/**
|
||||
* Whether to allow sending money.
|
||||
*/
|
||||
send_money: boolean;
|
||||
|
||||
/**
|
||||
* Whether to allow transferring balance.
|
||||
*/
|
||||
transfer_balance: boolean;
|
||||
}
|
||||
}
|
||||
|
||||
interface FinancialAccountTransactions {
|
||||
/**
|
||||
* Whether the embedded component is enabled.
|
||||
*/
|
||||
enabled: boolean;
|
||||
|
||||
features: FinancialAccountTransactions.Features;
|
||||
}
|
||||
|
||||
namespace FinancialAccountTransactions {
|
||||
interface Features {
|
||||
/**
|
||||
* Whether to allow card spend dispute management features.
|
||||
*/
|
||||
card_spend_dispute_management: boolean;
|
||||
}
|
||||
}
|
||||
|
||||
interface IssuingCard {
|
||||
/**
|
||||
* Whether the embedded component is enabled.
|
||||
*/
|
||||
enabled: boolean;
|
||||
|
||||
features: IssuingCard.Features;
|
||||
}
|
||||
|
||||
namespace IssuingCard {
|
||||
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 {
|
||||
/**
|
||||
* Whether the embedded component is enabled.
|
||||
*/
|
||||
enabled: boolean;
|
||||
|
||||
features: IssuingCardsList.Features;
|
||||
}
|
||||
|
||||
namespace IssuingCardsList {
|
||||
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;
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
spend_control_management: boolean;
|
||||
}
|
||||
}
|
||||
|
||||
interface NotificationBanner {
|
||||
/**
|
||||
* Whether the embedded component is enabled.
|
||||
*/
|
||||
enabled: boolean;
|
||||
|
||||
features: NotificationBanner.Features;
|
||||
}
|
||||
|
||||
namespace NotificationBanner {
|
||||
interface Features {
|
||||
/**
|
||||
* Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
|
||||
*/
|
||||
disable_stripe_user_authentication: boolean;
|
||||
|
||||
/**
|
||||
* Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`.
|
||||
*/
|
||||
external_account_collection: boolean;
|
||||
}
|
||||
}
|
||||
|
||||
interface PaymentDetails {
|
||||
/**
|
||||
* Whether the embedded component is enabled.
|
||||
@@ -103,7 +339,7 @@ declare module 'stripe' {
|
||||
/**
|
||||
* Whether to allow connected accounts to manage destination charges that are created on behalf of them. This is `false` by default.
|
||||
*/
|
||||
destination_on_behalf_of_charge_management?: boolean;
|
||||
destination_on_behalf_of_charge_management: boolean;
|
||||
|
||||
/**
|
||||
* Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default.
|
||||
@@ -136,7 +372,7 @@ declare module 'stripe' {
|
||||
/**
|
||||
* Whether to allow connected accounts to manage destination charges that are created on behalf of them. This is `false` by default.
|
||||
*/
|
||||
destination_on_behalf_of_charge_management?: boolean;
|
||||
destination_on_behalf_of_charge_management: boolean;
|
||||
|
||||
/**
|
||||
* Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default.
|
||||
@@ -161,11 +397,21 @@ declare module 'stripe' {
|
||||
|
||||
namespace Payouts {
|
||||
interface Features {
|
||||
/**
|
||||
* Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
|
||||
*/
|
||||
disable_stripe_user_authentication: boolean;
|
||||
|
||||
/**
|
||||
* Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
|
||||
*/
|
||||
edit_payout_schedule: boolean;
|
||||
|
||||
/**
|
||||
* Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`.
|
||||
*/
|
||||
external_account_collection: boolean;
|
||||
|
||||
/**
|
||||
* Whether to allow creation of instant payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
|
||||
*/
|
||||
@@ -177,6 +423,45 @@ declare module 'stripe' {
|
||||
standard_payouts: boolean;
|
||||
}
|
||||
}
|
||||
|
||||
interface PayoutsList {
|
||||
/**
|
||||
* Whether the embedded component is enabled.
|
||||
*/
|
||||
enabled: boolean;
|
||||
|
||||
features: PayoutsList.Features;
|
||||
}
|
||||
|
||||
namespace PayoutsList {
|
||||
interface Features {}
|
||||
}
|
||||
|
||||
interface TaxRegistrations {
|
||||
/**
|
||||
* Whether the embedded component is enabled.
|
||||
*/
|
||||
enabled: boolean;
|
||||
|
||||
features: TaxRegistrations.Features;
|
||||
}
|
||||
|
||||
namespace TaxRegistrations {
|
||||
interface Features {}
|
||||
}
|
||||
|
||||
interface TaxSettings {
|
||||
/**
|
||||
* Whether the embedded component is enabled.
|
||||
*/
|
||||
enabled: boolean;
|
||||
|
||||
features: TaxSettings.Features;
|
||||
}
|
||||
|
||||
namespace TaxSettings {
|
||||
interface Features {}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
347
server/node_modules/stripe/types/AccountSessionsResource.d.ts
generated
vendored
347
server/node_modules/stripe/types/AccountSessionsResource.d.ts
generated
vendored
@@ -21,16 +21,51 @@ declare module 'stripe' {
|
||||
|
||||
namespace AccountSessionCreateParams {
|
||||
interface Components {
|
||||
/**
|
||||
* Configuration for the account management embedded component.
|
||||
*/
|
||||
account_management?: Components.AccountManagement;
|
||||
|
||||
/**
|
||||
* Configuration for the account onboarding embedded component.
|
||||
*/
|
||||
account_onboarding?: Components.AccountOnboarding;
|
||||
|
||||
/**
|
||||
* Configuration for the balances embedded component.
|
||||
*/
|
||||
balances?: Components.Balances;
|
||||
|
||||
/**
|
||||
* Configuration for the documents embedded component.
|
||||
*/
|
||||
documents?: Components.Documents;
|
||||
|
||||
/**
|
||||
* Configuration for the financial account embedded component.
|
||||
*/
|
||||
financial_account?: Components.FinancialAccount;
|
||||
|
||||
/**
|
||||
* Configuration for the financial account transactions embedded component.
|
||||
*/
|
||||
financial_account_transactions?: Components.FinancialAccountTransactions;
|
||||
|
||||
/**
|
||||
* Configuration for the issuing card embedded component.
|
||||
*/
|
||||
issuing_card?: Components.IssuingCard;
|
||||
|
||||
/**
|
||||
* Configuration for the issuing cards list embedded component.
|
||||
*/
|
||||
issuing_cards_list?: Components.IssuingCardsList;
|
||||
|
||||
/**
|
||||
* Configuration for the notification banner embedded component.
|
||||
*/
|
||||
notification_banner?: Components.NotificationBanner;
|
||||
|
||||
/**
|
||||
* Configuration for the payment details embedded component.
|
||||
*/
|
||||
@@ -45,9 +80,50 @@ declare module 'stripe' {
|
||||
* Configuration for the payouts embedded component.
|
||||
*/
|
||||
payouts?: Components.Payouts;
|
||||
|
||||
/**
|
||||
* Configuration for the payouts list embedded component.
|
||||
*/
|
||||
payouts_list?: Components.PayoutsList;
|
||||
|
||||
/**
|
||||
* Configuration for the tax registrations embedded component.
|
||||
*/
|
||||
tax_registrations?: Components.TaxRegistrations;
|
||||
|
||||
/**
|
||||
* Configuration for the tax settings embedded component.
|
||||
*/
|
||||
tax_settings?: Components.TaxSettings;
|
||||
}
|
||||
|
||||
namespace Components {
|
||||
interface AccountManagement {
|
||||
/**
|
||||
* Whether the embedded component is enabled.
|
||||
*/
|
||||
enabled: boolean;
|
||||
|
||||
/**
|
||||
* The list of features enabled in the embedded component.
|
||||
*/
|
||||
features?: AccountManagement.Features;
|
||||
}
|
||||
|
||||
namespace AccountManagement {
|
||||
interface Features {
|
||||
/**
|
||||
* Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
|
||||
*/
|
||||
disable_stripe_user_authentication?: boolean;
|
||||
|
||||
/**
|
||||
* Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`.
|
||||
*/
|
||||
external_account_collection?: boolean;
|
||||
}
|
||||
}
|
||||
|
||||
interface AccountOnboarding {
|
||||
/**
|
||||
* Whether the embedded component is enabled.
|
||||
@@ -61,7 +137,58 @@ declare module 'stripe' {
|
||||
}
|
||||
|
||||
namespace AccountOnboarding {
|
||||
interface Features {}
|
||||
interface Features {
|
||||
/**
|
||||
* Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
|
||||
*/
|
||||
disable_stripe_user_authentication?: boolean;
|
||||
|
||||
/**
|
||||
* Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`.
|
||||
*/
|
||||
external_account_collection?: boolean;
|
||||
}
|
||||
}
|
||||
|
||||
interface Balances {
|
||||
/**
|
||||
* Whether the embedded component is enabled.
|
||||
*/
|
||||
enabled: boolean;
|
||||
|
||||
/**
|
||||
* The list of features enabled in the embedded component.
|
||||
*/
|
||||
features?: Balances.Features;
|
||||
}
|
||||
|
||||
namespace Balances {
|
||||
interface Features {
|
||||
/**
|
||||
* Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
|
||||
*/
|
||||
disable_stripe_user_authentication?: boolean;
|
||||
|
||||
/**
|
||||
* Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
|
||||
*/
|
||||
edit_payout_schedule?: boolean;
|
||||
|
||||
/**
|
||||
* Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`.
|
||||
*/
|
||||
external_account_collection?: boolean;
|
||||
|
||||
/**
|
||||
* Whether to allow creation of instant payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
|
||||
*/
|
||||
instant_payouts?: boolean;
|
||||
|
||||
/**
|
||||
* Whether to allow creation of standard payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
|
||||
*/
|
||||
standard_payouts?: boolean;
|
||||
}
|
||||
}
|
||||
|
||||
interface Documents {
|
||||
@@ -80,6 +207,166 @@ declare module 'stripe' {
|
||||
interface Features {}
|
||||
}
|
||||
|
||||
interface FinancialAccount {
|
||||
/**
|
||||
* Whether the embedded component is enabled.
|
||||
*/
|
||||
enabled: boolean;
|
||||
|
||||
/**
|
||||
* The list of features enabled in the embedded component.
|
||||
*/
|
||||
features?: FinancialAccount.Features;
|
||||
}
|
||||
|
||||
namespace FinancialAccount {
|
||||
interface Features {
|
||||
/**
|
||||
* Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
|
||||
*/
|
||||
disable_stripe_user_authentication?: boolean;
|
||||
|
||||
/**
|
||||
* Whether to allow external accounts to be linked for money transfer.
|
||||
*/
|
||||
external_account_collection?: boolean;
|
||||
|
||||
/**
|
||||
* Whether to allow sending money.
|
||||
*/
|
||||
send_money?: boolean;
|
||||
|
||||
/**
|
||||
* Whether to allow transferring balance.
|
||||
*/
|
||||
transfer_balance?: boolean;
|
||||
}
|
||||
}
|
||||
|
||||
interface FinancialAccountTransactions {
|
||||
/**
|
||||
* Whether the embedded component is enabled.
|
||||
*/
|
||||
enabled: boolean;
|
||||
|
||||
/**
|
||||
* The list of features enabled in the embedded component.
|
||||
*/
|
||||
features?: FinancialAccountTransactions.Features;
|
||||
}
|
||||
|
||||
namespace FinancialAccountTransactions {
|
||||
interface Features {
|
||||
/**
|
||||
* Whether to allow card spend dispute management features.
|
||||
*/
|
||||
card_spend_dispute_management?: boolean;
|
||||
}
|
||||
}
|
||||
|
||||
interface IssuingCard {
|
||||
/**
|
||||
* Whether the embedded component is enabled.
|
||||
*/
|
||||
enabled: boolean;
|
||||
|
||||
/**
|
||||
* The list of features enabled in the embedded component.
|
||||
*/
|
||||
features?: IssuingCard.Features;
|
||||
}
|
||||
|
||||
namespace IssuingCard {
|
||||
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 {
|
||||
/**
|
||||
* Whether the embedded component is enabled.
|
||||
*/
|
||||
enabled: boolean;
|
||||
|
||||
/**
|
||||
* The list of features enabled in the embedded component.
|
||||
*/
|
||||
features?: IssuingCardsList.Features;
|
||||
}
|
||||
|
||||
namespace IssuingCardsList {
|
||||
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;
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
spend_control_management?: boolean;
|
||||
}
|
||||
}
|
||||
|
||||
interface NotificationBanner {
|
||||
/**
|
||||
* Whether the embedded component is enabled.
|
||||
*/
|
||||
enabled: boolean;
|
||||
|
||||
/**
|
||||
* The list of features enabled in the embedded component.
|
||||
*/
|
||||
features?: NotificationBanner.Features;
|
||||
}
|
||||
|
||||
namespace NotificationBanner {
|
||||
interface Features {
|
||||
/**
|
||||
* Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
|
||||
*/
|
||||
disable_stripe_user_authentication?: boolean;
|
||||
|
||||
/**
|
||||
* Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`.
|
||||
*/
|
||||
external_account_collection?: boolean;
|
||||
}
|
||||
}
|
||||
|
||||
interface PaymentDetails {
|
||||
/**
|
||||
* Whether the embedded component is enabled.
|
||||
@@ -166,11 +453,21 @@ declare module 'stripe' {
|
||||
|
||||
namespace Payouts {
|
||||
interface Features {
|
||||
/**
|
||||
* Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
|
||||
*/
|
||||
disable_stripe_user_authentication?: boolean;
|
||||
|
||||
/**
|
||||
* Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
|
||||
*/
|
||||
edit_payout_schedule?: boolean;
|
||||
|
||||
/**
|
||||
* Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`.
|
||||
*/
|
||||
external_account_collection?: boolean;
|
||||
|
||||
/**
|
||||
* Whether to allow creation of instant payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
|
||||
*/
|
||||
@@ -182,6 +479,54 @@ declare module 'stripe' {
|
||||
standard_payouts?: boolean;
|
||||
}
|
||||
}
|
||||
|
||||
interface PayoutsList {
|
||||
/**
|
||||
* Whether the embedded component is enabled.
|
||||
*/
|
||||
enabled: boolean;
|
||||
|
||||
/**
|
||||
* The list of features enabled in the embedded component.
|
||||
*/
|
||||
features?: PayoutsList.Features;
|
||||
}
|
||||
|
||||
namespace PayoutsList {
|
||||
interface Features {}
|
||||
}
|
||||
|
||||
interface TaxRegistrations {
|
||||
/**
|
||||
* Whether the embedded component is enabled.
|
||||
*/
|
||||
enabled: boolean;
|
||||
|
||||
/**
|
||||
* The list of features enabled in the embedded component.
|
||||
*/
|
||||
features?: TaxRegistrations.Features;
|
||||
}
|
||||
|
||||
namespace TaxRegistrations {
|
||||
interface Features {}
|
||||
}
|
||||
|
||||
interface TaxSettings {
|
||||
/**
|
||||
* Whether the embedded component is enabled.
|
||||
*/
|
||||
enabled: boolean;
|
||||
|
||||
/**
|
||||
* The list of features enabled in the embedded component.
|
||||
*/
|
||||
features?: TaxSettings.Features;
|
||||
}
|
||||
|
||||
namespace TaxSettings {
|
||||
interface Features {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
248
server/node_modules/stripe/types/Accounts.d.ts
generated
vendored
248
server/node_modules/stripe/types/Accounts.d.ts
generated
vendored
@@ -7,9 +7,14 @@ declare module 'stripe' {
|
||||
* properties on the account like its current requirements or if the account is
|
||||
* enabled to make live charges or receive payouts.
|
||||
*
|
||||
* For Custom accounts, the properties below are always returned. For other accounts, some properties are returned until that
|
||||
* account has started to go through Connect Onboarding. Once you create an [Account Link](https://stripe.com/docs/api/account_links) or [Account Session](https://stripe.com/docs/api/account_sessions),
|
||||
* some properties are only returned for Custom accounts. Learn about the differences [between accounts](https://stripe.com/docs/connect/accounts).
|
||||
* For accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection)
|
||||
* is `application`, which includes Custom accounts, the properties below are always
|
||||
* returned.
|
||||
*
|
||||
* For accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection)
|
||||
* is `stripe`, which includes Standard and Express accounts, some properties are only returned
|
||||
* until you create an [Account Link](https://stripe.com/api/account_links) or [Account Session](https://stripe.com/api/account_sessions)
|
||||
* to start Connect Onboarding. Learn about the [differences between accounts](https://stripe.com/connect/accounts).
|
||||
*/
|
||||
interface Account {
|
||||
/**
|
||||
@@ -28,14 +33,14 @@ declare module 'stripe' {
|
||||
business_profile?: Account.BusinessProfile | null;
|
||||
|
||||
/**
|
||||
* The business type. Once you create an [Account Link](https://stripe.com/docs/api/account_links) or [Account Session](https://stripe.com/docs/api/account_sessions), this property is only returned for Custom accounts.
|
||||
* The business type. After you create an [Account Link](https://stripe.com/api/account_links) or [Account Session](https://stripe.com/api/account_sessions), this property is only returned for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.
|
||||
*/
|
||||
business_type?: Account.BusinessType | null;
|
||||
|
||||
capabilities?: Account.Capabilities;
|
||||
|
||||
/**
|
||||
* Whether the account can create live charges.
|
||||
* Whether the account can process charges.
|
||||
*/
|
||||
charges_enabled: boolean;
|
||||
|
||||
@@ -64,7 +69,7 @@ declare module 'stripe' {
|
||||
deleted?: void;
|
||||
|
||||
/**
|
||||
* Whether account details have been submitted. Standard accounts cannot receive payouts before this is true.
|
||||
* Whether account details have been submitted. Accounts with Stripe Dashboard access, which includes Standard accounts, cannot receive payouts before this is true. Accounts where this is false should be directed to [an onboarding flow](https://stripe.com/connect/onboarding) to finish submitting account details.
|
||||
*/
|
||||
details_submitted: boolean;
|
||||
|
||||
@@ -80,13 +85,17 @@ declare module 'stripe' {
|
||||
|
||||
future_requirements?: Account.FutureRequirements;
|
||||
|
||||
/**
|
||||
* The groups associated with the account.
|
||||
*/
|
||||
groups?: Account.Groups | null;
|
||||
|
||||
/**
|
||||
* This is an object representing a person associated with a Stripe account.
|
||||
*
|
||||
* A platform cannot access a Standard or Express account's persons after the account starts onboarding, such as after generating an account link for the account.
|
||||
* See the [Standard onboarding](https://stripe.com/docs/connect/standard-accounts) or [Express onboarding documentation](https://stripe.com/docs/connect/express-accounts) for information about platform prefilling and account onboarding steps.
|
||||
* A platform cannot access a person for an account where [account.controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `stripe`, which includes Standard and Express accounts, after creating an Account Link or Account Session to start Connect onboarding.
|
||||
*
|
||||
* Related guide: [Handling identity verification with the API](https://stripe.com/docs/connect/handling-api-verification#person-information)
|
||||
* See the [Standard onboarding](https://stripe.com/connect/standard-accounts) or [Express onboarding](https://stripe.com/connect/express-accounts) documentation for information about prefilling information and account onboarding steps. Learn more about [handling identity verification with the API](https://stripe.com/connect/handling-api-verification#person-information).
|
||||
*/
|
||||
individual?: Stripe.Person;
|
||||
|
||||
@@ -96,7 +105,7 @@ declare module 'stripe' {
|
||||
metadata?: Stripe.Metadata;
|
||||
|
||||
/**
|
||||
* Whether Stripe can send payouts to this account.
|
||||
* Whether the funds in this account can be paid out.
|
||||
*/
|
||||
payouts_enabled: boolean;
|
||||
|
||||
@@ -110,7 +119,7 @@ declare module 'stripe' {
|
||||
tos_acceptance?: Account.TosAcceptance;
|
||||
|
||||
/**
|
||||
* The Stripe account type. Can be `standard`, `express`, or `custom`.
|
||||
* The Stripe account type. Can be `standard`, `express`, `custom`, or `none`.
|
||||
*/
|
||||
type: Account.Type;
|
||||
}
|
||||
@@ -120,15 +129,15 @@ declare module 'stripe' {
|
||||
/**
|
||||
* The applicant's gross annual revenue for its preceding fiscal year.
|
||||
*/
|
||||
annual_revenue: BusinessProfile.AnnualRevenue | null;
|
||||
annual_revenue?: BusinessProfile.AnnualRevenue | null;
|
||||
|
||||
/**
|
||||
* An estimated upper bound of employees, contractors, vendors, etc. currently working for the business.
|
||||
*/
|
||||
estimated_worker_count: number | null;
|
||||
estimated_worker_count?: number | null;
|
||||
|
||||
/**
|
||||
* [The merchant category code for the account](https://stripe.com/docs/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
|
||||
* [The merchant category code for the account](https://stripe.com/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
|
||||
*/
|
||||
mcc: string | null;
|
||||
|
||||
@@ -173,7 +182,7 @@ declare module 'stripe' {
|
||||
namespace BusinessProfile {
|
||||
interface AnnualRevenue {
|
||||
/**
|
||||
* A non-negative integer representing the amount in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
|
||||
* A non-negative integer representing the amount in the [smallest currency unit](https://stripe.com/currencies#zero-decimal).
|
||||
*/
|
||||
amount: number | null;
|
||||
|
||||
@@ -190,7 +199,7 @@ declare module 'stripe' {
|
||||
|
||||
interface MonthlyEstimatedRevenue {
|
||||
/**
|
||||
* A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
|
||||
* A non-negative integer representing how much to charge in the [smallest currency unit](https://stripe.com/currencies#zero-decimal).
|
||||
*/
|
||||
amount: number;
|
||||
|
||||
@@ -223,6 +232,11 @@ declare module 'stripe' {
|
||||
*/
|
||||
afterpay_clearpay_payments?: Capabilities.AfterpayClearpayPayments;
|
||||
|
||||
/**
|
||||
* The status of the Alma capability of the account, or whether the account can directly process Alma payments.
|
||||
*/
|
||||
alma_payments?: Capabilities.AlmaPayments;
|
||||
|
||||
/**
|
||||
* The status of the AmazonPay capability of the account, or whether the account can directly process AmazonPay payments.
|
||||
*/
|
||||
@@ -288,6 +302,11 @@ declare module 'stripe' {
|
||||
*/
|
||||
fpx_payments?: Capabilities.FpxPayments;
|
||||
|
||||
/**
|
||||
* The status of the GB customer_balance payments (GBP currency) capability of the account, or whether the account can directly process GB customer_balance charges.
|
||||
*/
|
||||
gb_bank_transfer_payments?: Capabilities.GbBankTransferPayments;
|
||||
|
||||
/**
|
||||
* The status of the giropay payments capability of the account, or whether the account can directly process giropay charges.
|
||||
*/
|
||||
@@ -313,6 +332,16 @@ declare module 'stripe' {
|
||||
*/
|
||||
jcb_payments?: Capabilities.JcbPayments;
|
||||
|
||||
/**
|
||||
* The status of the Japanese customer_balance payments (JPY currency) capability of the account, or whether the account can directly process Japanese customer_balance charges.
|
||||
*/
|
||||
jp_bank_transfer_payments?: Capabilities.JpBankTransferPayments;
|
||||
|
||||
/**
|
||||
* The status of the KakaoPay capability of the account, or whether the account can directly process KakaoPay payments.
|
||||
*/
|
||||
kakao_pay_payments?: Capabilities.KakaoPayPayments;
|
||||
|
||||
/**
|
||||
* The status of the Klarna payments capability of the account, or whether the account can directly process Klarna charges.
|
||||
*/
|
||||
@@ -323,6 +352,11 @@ declare module 'stripe' {
|
||||
*/
|
||||
konbini_payments?: Capabilities.KonbiniPayments;
|
||||
|
||||
/**
|
||||
* The status of the KrCard capability of the account, or whether the account can directly process KrCard payments.
|
||||
*/
|
||||
kr_card_payments?: Capabilities.KrCardPayments;
|
||||
|
||||
/**
|
||||
* The status of the legacy payments capability of the account.
|
||||
*/
|
||||
@@ -334,10 +368,25 @@ declare module 'stripe' {
|
||||
link_payments?: Capabilities.LinkPayments;
|
||||
|
||||
/**
|
||||
* The status of the MobilepPay capability of the account, or whether the account can directly process MobilePay charges.
|
||||
* The status of the MobilePay capability of the account, or whether the account can directly process MobilePay charges.
|
||||
*/
|
||||
mobilepay_payments?: Capabilities.MobilepayPayments;
|
||||
|
||||
/**
|
||||
* The status of the Multibanco payments capability of the account, or whether the account can directly process Multibanco charges.
|
||||
*/
|
||||
multibanco_payments?: Capabilities.MultibancoPayments;
|
||||
|
||||
/**
|
||||
* The status of the Mexican customer_balance payments (MXN currency) capability of the account, or whether the account can directly process Mexican customer_balance charges.
|
||||
*/
|
||||
mx_bank_transfer_payments?: Capabilities.MxBankTransferPayments;
|
||||
|
||||
/**
|
||||
* The status of the NaverPay capability of the account, or whether the account can directly process NaverPay payments.
|
||||
*/
|
||||
naver_pay_payments?: Capabilities.NaverPayPayments;
|
||||
|
||||
/**
|
||||
* The status of the OXXO payments capability of the account, or whether the account can directly process OXXO charges.
|
||||
*/
|
||||
@@ -348,6 +397,16 @@ declare module 'stripe' {
|
||||
*/
|
||||
p24_payments?: Capabilities.P24Payments;
|
||||
|
||||
/**
|
||||
* The status of the pay_by_bank payments capability of the account, or whether the account can directly process pay_by_bank charges.
|
||||
*/
|
||||
pay_by_bank_payments?: Capabilities.PayByBankPayments;
|
||||
|
||||
/**
|
||||
* The status of the Payco capability of the account, or whether the account can directly process Payco payments.
|
||||
*/
|
||||
payco_payments?: Capabilities.PaycoPayments;
|
||||
|
||||
/**
|
||||
* The status of the paynow payments capability of the account, or whether the account can directly process paynow charges.
|
||||
*/
|
||||
@@ -363,6 +422,16 @@ declare module 'stripe' {
|
||||
*/
|
||||
revolut_pay_payments?: Capabilities.RevolutPayPayments;
|
||||
|
||||
/**
|
||||
* The status of the SamsungPay capability of the account, or whether the account can directly process SamsungPay payments.
|
||||
*/
|
||||
samsung_pay_payments?: Capabilities.SamsungPayPayments;
|
||||
|
||||
/**
|
||||
* The status of the SEPA customer_balance payments (EUR currency) capability of the account, or whether the account can directly process SEPA customer_balance charges.
|
||||
*/
|
||||
sepa_bank_transfer_payments?: Capabilities.SepaBankTransferPayments;
|
||||
|
||||
/**
|
||||
* The status of the SEPA Direct Debits payments capability of the account, or whether the account can directly process SEPA Direct Debits charges.
|
||||
*/
|
||||
@@ -398,11 +467,21 @@ declare module 'stripe' {
|
||||
*/
|
||||
treasury?: Capabilities.Treasury;
|
||||
|
||||
/**
|
||||
* The status of the TWINT capability of the account, or whether the account can directly process TWINT charges.
|
||||
*/
|
||||
twint_payments?: Capabilities.TwintPayments;
|
||||
|
||||
/**
|
||||
* The status of the US bank account ACH payments capability of the account, or whether the account can directly process US bank account charges.
|
||||
*/
|
||||
us_bank_account_ach_payments?: Capabilities.UsBankAccountAchPayments;
|
||||
|
||||
/**
|
||||
* The status of the US customer_balance payments (USD currency) capability of the account, or whether the account can directly process US customer_balance charges.
|
||||
*/
|
||||
us_bank_transfer_payments?: Capabilities.UsBankTransferPayments;
|
||||
|
||||
/**
|
||||
* The status of the Zip capability of the account, or whether the account can directly process Zip charges.
|
||||
*/
|
||||
@@ -416,6 +495,8 @@ declare module 'stripe' {
|
||||
|
||||
type AfterpayClearpayPayments = 'active' | 'inactive' | 'pending';
|
||||
|
||||
type AlmaPayments = 'active' | 'inactive' | 'pending';
|
||||
|
||||
type AmazonPayPayments = 'active' | 'inactive' | 'pending';
|
||||
|
||||
type AuBecsDebitPayments = 'active' | 'inactive' | 'pending';
|
||||
@@ -442,6 +523,8 @@ declare module 'stripe' {
|
||||
|
||||
type FpxPayments = 'active' | 'inactive' | 'pending';
|
||||
|
||||
type GbBankTransferPayments = 'active' | 'inactive' | 'pending';
|
||||
|
||||
type GiropayPayments = 'active' | 'inactive' | 'pending';
|
||||
|
||||
type GrabpayPayments = 'active' | 'inactive' | 'pending';
|
||||
@@ -452,26 +535,46 @@ declare module 'stripe' {
|
||||
|
||||
type JcbPayments = 'active' | 'inactive' | 'pending';
|
||||
|
||||
type JpBankTransferPayments = 'active' | 'inactive' | 'pending';
|
||||
|
||||
type KakaoPayPayments = 'active' | 'inactive' | 'pending';
|
||||
|
||||
type KlarnaPayments = 'active' | 'inactive' | 'pending';
|
||||
|
||||
type KonbiniPayments = 'active' | 'inactive' | 'pending';
|
||||
|
||||
type KrCardPayments = 'active' | 'inactive' | 'pending';
|
||||
|
||||
type LegacyPayments = 'active' | 'inactive' | 'pending';
|
||||
|
||||
type LinkPayments = 'active' | 'inactive' | 'pending';
|
||||
|
||||
type MobilepayPayments = 'active' | 'inactive' | 'pending';
|
||||
|
||||
type MultibancoPayments = 'active' | 'inactive' | 'pending';
|
||||
|
||||
type MxBankTransferPayments = 'active' | 'inactive' | 'pending';
|
||||
|
||||
type NaverPayPayments = 'active' | 'inactive' | 'pending';
|
||||
|
||||
type OxxoPayments = 'active' | 'inactive' | 'pending';
|
||||
|
||||
type P24Payments = 'active' | 'inactive' | 'pending';
|
||||
|
||||
type PayByBankPayments = 'active' | 'inactive' | 'pending';
|
||||
|
||||
type PaycoPayments = 'active' | 'inactive' | 'pending';
|
||||
|
||||
type PaynowPayments = 'active' | 'inactive' | 'pending';
|
||||
|
||||
type PromptpayPayments = 'active' | 'inactive' | 'pending';
|
||||
|
||||
type RevolutPayPayments = 'active' | 'inactive' | 'pending';
|
||||
|
||||
type SamsungPayPayments = 'active' | 'inactive' | 'pending';
|
||||
|
||||
type SepaBankTransferPayments = 'active' | 'inactive' | 'pending';
|
||||
|
||||
type SepaDebitPayments = 'active' | 'inactive' | 'pending';
|
||||
|
||||
type SofortPayments = 'active' | 'inactive' | 'pending';
|
||||
@@ -486,8 +589,12 @@ declare module 'stripe' {
|
||||
|
||||
type Treasury = 'active' | 'inactive' | 'pending';
|
||||
|
||||
type TwintPayments = 'active' | 'inactive' | 'pending';
|
||||
|
||||
type UsBankAccountAchPayments = 'active' | 'inactive' | 'pending';
|
||||
|
||||
type UsBankTransferPayments = 'active' | 'inactive' | 'pending';
|
||||
|
||||
type ZipPayments = 'active' | 'inactive' | 'pending';
|
||||
}
|
||||
|
||||
@@ -509,6 +616,11 @@ declare module 'stripe' {
|
||||
*/
|
||||
directors_provided?: boolean;
|
||||
|
||||
/**
|
||||
* This hash is used to attest that the director information provided to Stripe is both current and correct.
|
||||
*/
|
||||
directorship_declaration?: Company.DirectorshipDeclaration | null;
|
||||
|
||||
/**
|
||||
* Whether the company's executives have been provided. This Boolean will be `true` if you've manually indicated that all executives are provided via [the `executives_provided` parameter](https://stripe.com/docs/api/accounts/update#update_account-company-executives_provided), or if Stripe determined that sufficient executives were provided.
|
||||
*/
|
||||
@@ -549,6 +661,8 @@ declare module 'stripe' {
|
||||
*/
|
||||
ownership_declaration?: Company.OwnershipDeclaration | null;
|
||||
|
||||
ownership_exemption_reason?: Company.OwnershipExemptionReason;
|
||||
|
||||
/**
|
||||
* The company's phone number (used for verification).
|
||||
*/
|
||||
@@ -655,6 +769,23 @@ declare module 'stripe' {
|
||||
town: string | null;
|
||||
}
|
||||
|
||||
interface DirectorshipDeclaration {
|
||||
/**
|
||||
* The Unix timestamp marking when the directorship declaration attestation was made.
|
||||
*/
|
||||
date: number | null;
|
||||
|
||||
/**
|
||||
* The IP address from which the directorship declaration attestation was made.
|
||||
*/
|
||||
ip: string | null;
|
||||
|
||||
/**
|
||||
* The user-agent string from the browser where the directorship declaration attestation was made.
|
||||
*/
|
||||
user_agent: string | null;
|
||||
}
|
||||
|
||||
interface OwnershipDeclaration {
|
||||
/**
|
||||
* The Unix timestamp marking when the beneficial owner attestation was made.
|
||||
@@ -672,6 +803,10 @@ declare module 'stripe' {
|
||||
user_agent: string | null;
|
||||
}
|
||||
|
||||
type OwnershipExemptionReason =
|
||||
| 'qualified_entity_exceeds_ownership_threshold'
|
||||
| 'qualifies_as_financial_institution';
|
||||
|
||||
type Structure =
|
||||
| 'free_zone_establishment'
|
||||
| 'free_zone_llc'
|
||||
@@ -752,7 +887,7 @@ declare module 'stripe' {
|
||||
namespace Controller {
|
||||
interface Fees {
|
||||
/**
|
||||
* A value indicating the responsible payer of a bundle of Stripe fees for pricing-control eligible products on this account.
|
||||
* A value indicating the responsible payer of a bundle of Stripe fees for pricing-control eligible products on this account. Learn more about [fee behavior on connected accounts](https://docs.stripe.com/connect/direct-charges-fee-payer-behavior).
|
||||
*/
|
||||
payer: Fees.Payer;
|
||||
}
|
||||
@@ -799,7 +934,7 @@ declare module 'stripe' {
|
||||
alternatives: Array<FutureRequirements.Alternative> | null;
|
||||
|
||||
/**
|
||||
* Date on which `future_requirements` merges with the main `requirements` hash and `future_requirements` becomes empty. After the transition, `currently_due` requirements may immediately become `past_due`, but the account may also be given a grace period depending on its enablement state prior to transitioning.
|
||||
* Date on which `future_requirements` becomes the main `requirements` hash and `future_requirements` becomes empty. After the transition, `currently_due` requirements may immediately become `past_due`, but the account may also be given a grace period depending on its enablement state prior to transitioning.
|
||||
*/
|
||||
current_deadline: number | null;
|
||||
|
||||
@@ -809,9 +944,9 @@ declare module 'stripe' {
|
||||
currently_due: Array<string> | 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.
|
||||
@@ -819,7 +954,7 @@ declare module 'stripe' {
|
||||
errors: Array<FutureRequirements.Error> | null;
|
||||
|
||||
/**
|
||||
* Fields that need to be collected assuming all volume thresholds are reached. As they become required, they appear in `currently_due` as well.
|
||||
* Fields you must collect when all thresholds are reached. As they become required, they appear in `currently_due` as well.
|
||||
*/
|
||||
eventually_due: Array<string> | null;
|
||||
|
||||
@@ -829,7 +964,7 @@ declare module 'stripe' {
|
||||
past_due: Array<string> | null;
|
||||
|
||||
/**
|
||||
* Fields that may become required depending on the results of verification or review. Will be an empty array unless an asynchronous verification is pending. If verification fails, these fields move to `eventually_due` or `currently_due`.
|
||||
* Fields that might become required depending on the results of verification or review. It's an empty array unless an asynchronous verification is pending. If verification fails, these fields move to `eventually_due` or `currently_due`. Fields might appear in `eventually_due` or `currently_due` and in `pending_verification` if verification fails but another verification is still pending.
|
||||
*/
|
||||
pending_verification: Array<string> | null;
|
||||
}
|
||||
@@ -847,6 +982,23 @@ declare module 'stripe' {
|
||||
original_fields_due: Array<string>;
|
||||
}
|
||||
|
||||
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.
|
||||
@@ -953,10 +1105,19 @@ declare module 'stripe' {
|
||||
| 'verification_missing_directors'
|
||||
| 'verification_missing_executives'
|
||||
| 'verification_missing_owners'
|
||||
| 'verification_requires_additional_memorandum_of_associations';
|
||||
| 'verification_requires_additional_memorandum_of_associations'
|
||||
| 'verification_requires_additional_proof_of_registration'
|
||||
| 'verification_supportability';
|
||||
}
|
||||
}
|
||||
|
||||
interface Groups {
|
||||
/**
|
||||
* The group the account is in to determine their payments pricing, and null if the account is on customized pricing. [See the Platform pricing tool documentation](https://stripe.com/docs/connect/platform-pricing-tools) for details.
|
||||
*/
|
||||
payments_pricing: string | null;
|
||||
}
|
||||
|
||||
interface Requirements {
|
||||
/**
|
||||
* Fields that are due and can be satisfied by providing the corresponding alternative fields instead.
|
||||
@@ -974,9 +1135,9 @@ declare module 'stripe' {
|
||||
currently_due: Array<string> | 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.
|
||||
@@ -984,7 +1145,7 @@ declare module 'stripe' {
|
||||
errors: Array<Requirements.Error> | null;
|
||||
|
||||
/**
|
||||
* Fields that need to be collected assuming all volume thresholds are reached. As they become required, they appear in `currently_due` as well, and `current_deadline` becomes set.
|
||||
* Fields you must collect when all thresholds are reached. As they become required, they appear in `currently_due` as well, and `current_deadline` becomes set.
|
||||
*/
|
||||
eventually_due: Array<string> | null;
|
||||
|
||||
@@ -994,7 +1155,7 @@ declare module 'stripe' {
|
||||
past_due: Array<string> | null;
|
||||
|
||||
/**
|
||||
* Fields that may become required depending on the results of verification or review. Will be an empty array unless an asynchronous verification is pending. If verification fails, these fields move to `eventually_due`, `currently_due`, or `past_due`.
|
||||
* Fields that might become required depending on the results of verification or review. It's an empty array unless an asynchronous verification is pending. If verification fails, these fields move to `eventually_due`, `currently_due`, or `past_due`. Fields might appear in `eventually_due`, `currently_due`, or `past_due` and in `pending_verification` if verification fails but another verification is still pending.
|
||||
*/
|
||||
pending_verification: Array<string> | null;
|
||||
}
|
||||
@@ -1012,6 +1173,23 @@ declare module 'stripe' {
|
||||
original_fields_due: Array<string>;
|
||||
}
|
||||
|
||||
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.
|
||||
@@ -1118,7 +1296,9 @@ declare module 'stripe' {
|
||||
| 'verification_missing_directors'
|
||||
| 'verification_missing_executives'
|
||||
| 'verification_missing_owners'
|
||||
| 'verification_requires_additional_memorandum_of_associations';
|
||||
| 'verification_requires_additional_memorandum_of_associations'
|
||||
| 'verification_requires_additional_proof_of_registration'
|
||||
| 'verification_supportability';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1261,29 +1441,29 @@ declare module 'stripe' {
|
||||
statement_descriptor: string | null;
|
||||
|
||||
/**
|
||||
* The Kana variation of the default text that appears on credit card statements when a charge is made (Japan only)
|
||||
* The Kana variation of `statement_descriptor` used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors).
|
||||
*/
|
||||
statement_descriptor_kana: string | null;
|
||||
|
||||
/**
|
||||
* The Kanji variation of the default text that appears on credit card statements when a charge is made (Japan only)
|
||||
* The Kanji variation of `statement_descriptor` used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors).
|
||||
*/
|
||||
statement_descriptor_kanji: string | null;
|
||||
|
||||
/**
|
||||
* The Kana variation of the default text that appears on credit card statements when a charge is made (Japan only). This field prefixes any dynamic `statement_descriptor_suffix_kana` specified on the charge. `statement_descriptor_prefix_kana` is useful for maximizing descriptor space for the dynamic portion.
|
||||
* The Kana variation of `statement_descriptor_prefix` used for card charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors).
|
||||
*/
|
||||
statement_descriptor_prefix_kana: string | null;
|
||||
|
||||
/**
|
||||
* The Kanji variation of the default text that appears on credit card statements when a charge is made (Japan only). This field prefixes any dynamic `statement_descriptor_suffix_kanji` specified on the charge. `statement_descriptor_prefix_kanji` is useful for maximizing descriptor space for the dynamic portion.
|
||||
* The Kanji variation of `statement_descriptor_prefix` used for card charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors).
|
||||
*/
|
||||
statement_descriptor_prefix_kanji: string | null;
|
||||
}
|
||||
|
||||
interface Payouts {
|
||||
/**
|
||||
* A Boolean indicating if Stripe should try to reclaim negative balances from an attached bank account. See our [Understanding Connect Account Balances](https://stripe.com/docs/connect/account-balances) documentation for details. Default value is `false` for Custom accounts, otherwise `true`.
|
||||
* A Boolean indicating if Stripe should try to reclaim negative balances from an attached bank account. See [Understanding Connect account balances](https://stripe.com/connect/account-balances) for details. The default value is `false` when [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts, otherwise `true`.
|
||||
*/
|
||||
debit_negative_balances: boolean;
|
||||
|
||||
|
||||
634
server/node_modules/stripe/types/AccountsResource.d.ts
generated
vendored
634
server/node_modules/stripe/types/AccountsResource.d.ts
generated
vendored
File diff suppressed because it is too large
Load Diff
28
server/node_modules/stripe/types/ApplicationFees.d.ts
generated
vendored
28
server/node_modules/stripe/types/ApplicationFees.d.ts
generated
vendored
@@ -56,6 +56,11 @@ declare module 'stripe' {
|
||||
*/
|
||||
currency: string;
|
||||
|
||||
/**
|
||||
* Polymorphic source of the application fee. Includes the ID of the object the application fee was created from.
|
||||
*/
|
||||
fee_source: ApplicationFee.FeeSource | null;
|
||||
|
||||
/**
|
||||
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
||||
*/
|
||||
@@ -76,5 +81,28 @@ declare module 'stripe' {
|
||||
*/
|
||||
refunds: ApiList<Stripe.FeeRefund>;
|
||||
}
|
||||
|
||||
namespace ApplicationFee {
|
||||
interface FeeSource {
|
||||
/**
|
||||
* Charge ID that created this application fee.
|
||||
*/
|
||||
charge?: string;
|
||||
|
||||
/**
|
||||
* Payout ID that created this application fee.
|
||||
*/
|
||||
payout?: string;
|
||||
|
||||
/**
|
||||
* Type of object that created the application fee, either `charge` or `payout`.
|
||||
*/
|
||||
type: FeeSource.Type;
|
||||
}
|
||||
|
||||
namespace FeeSource {
|
||||
type Type = 'charge' | 'payout';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
2
server/node_modules/stripe/types/Apps/Secrets.d.ts
generated
vendored
2
server/node_modules/stripe/types/Apps/Secrets.d.ts
generated
vendored
@@ -53,7 +53,7 @@ declare module 'stripe' {
|
||||
/**
|
||||
* The plaintext secret value to be stored.
|
||||
*/
|
||||
payload: string | null;
|
||||
payload?: string | null;
|
||||
|
||||
scope: Secret.Scope;
|
||||
}
|
||||
|
||||
70
server/node_modules/stripe/types/Balance.d.ts
generated
vendored
70
server/node_modules/stripe/types/Balance.d.ts
generated
vendored
@@ -27,7 +27,7 @@ declare module 'stripe' {
|
||||
available: Array<Balance.Available>;
|
||||
|
||||
/**
|
||||
* Funds held due to negative balances on connected Custom accounts. You can find the connect reserve balance for each currency and payment type in the `source_types` property.
|
||||
* Funds held due to negative balances on connected accounts where [account.controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts. You can find the connect reserve balance for each currency and payment type in the `source_types` property.
|
||||
*/
|
||||
connect_reserved?: Array<Balance.ConnectReserved>;
|
||||
|
||||
@@ -67,17 +67,17 @@ declare module 'stripe' {
|
||||
namespace Available {
|
||||
interface SourceTypes {
|
||||
/**
|
||||
* Amount for bank account.
|
||||
* Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated).
|
||||
*/
|
||||
bank_account?: number;
|
||||
|
||||
/**
|
||||
* Amount for card.
|
||||
* Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits).
|
||||
*/
|
||||
card?: number;
|
||||
|
||||
/**
|
||||
* Amount for FPX.
|
||||
* Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
|
||||
*/
|
||||
fpx?: number;
|
||||
}
|
||||
@@ -100,17 +100,17 @@ declare module 'stripe' {
|
||||
namespace ConnectReserved {
|
||||
interface SourceTypes {
|
||||
/**
|
||||
* Amount for bank account.
|
||||
* Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated).
|
||||
*/
|
||||
bank_account?: number;
|
||||
|
||||
/**
|
||||
* Amount for card.
|
||||
* Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits).
|
||||
*/
|
||||
card?: number;
|
||||
|
||||
/**
|
||||
* Amount for FPX.
|
||||
* Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
|
||||
*/
|
||||
fpx?: number;
|
||||
}
|
||||
@@ -127,23 +127,61 @@ declare module 'stripe' {
|
||||
*/
|
||||
currency: string;
|
||||
|
||||
/**
|
||||
* Breakdown of balance by destination.
|
||||
*/
|
||||
net_available?: Array<InstantAvailable.NetAvailable>;
|
||||
|
||||
source_types?: InstantAvailable.SourceTypes;
|
||||
}
|
||||
|
||||
namespace InstantAvailable {
|
||||
interface NetAvailable {
|
||||
/**
|
||||
* Net balance amount, subtracting fees from platform-set pricing.
|
||||
*/
|
||||
amount: number;
|
||||
|
||||
/**
|
||||
* ID of the external account for this net balance (not expandable).
|
||||
*/
|
||||
destination: string;
|
||||
|
||||
source_types?: NetAvailable.SourceTypes;
|
||||
}
|
||||
|
||||
namespace NetAvailable {
|
||||
interface SourceTypes {
|
||||
/**
|
||||
* Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated).
|
||||
*/
|
||||
bank_account?: number;
|
||||
|
||||
/**
|
||||
* Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits).
|
||||
*/
|
||||
card?: number;
|
||||
|
||||
/**
|
||||
* Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
|
||||
*/
|
||||
fpx?: number;
|
||||
}
|
||||
}
|
||||
|
||||
interface SourceTypes {
|
||||
/**
|
||||
* Amount for bank account.
|
||||
* Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated).
|
||||
*/
|
||||
bank_account?: number;
|
||||
|
||||
/**
|
||||
* Amount for card.
|
||||
* Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits).
|
||||
*/
|
||||
card?: number;
|
||||
|
||||
/**
|
||||
* Amount for FPX.
|
||||
* Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
|
||||
*/
|
||||
fpx?: number;
|
||||
}
|
||||
@@ -174,17 +212,17 @@ declare module 'stripe' {
|
||||
namespace Available {
|
||||
interface SourceTypes {
|
||||
/**
|
||||
* Amount for bank account.
|
||||
* Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated).
|
||||
*/
|
||||
bank_account?: number;
|
||||
|
||||
/**
|
||||
* Amount for card.
|
||||
* Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits).
|
||||
*/
|
||||
card?: number;
|
||||
|
||||
/**
|
||||
* Amount for FPX.
|
||||
* Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
|
||||
*/
|
||||
fpx?: number;
|
||||
}
|
||||
@@ -208,17 +246,17 @@ declare module 'stripe' {
|
||||
namespace Pending {
|
||||
interface SourceTypes {
|
||||
/**
|
||||
* Amount for bank account.
|
||||
* Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated).
|
||||
*/
|
||||
bank_account?: number;
|
||||
|
||||
/**
|
||||
* Amount for card.
|
||||
* Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits).
|
||||
*/
|
||||
card?: number;
|
||||
|
||||
/**
|
||||
* Amount for FPX.
|
||||
* Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
|
||||
*/
|
||||
fpx?: number;
|
||||
}
|
||||
|
||||
1
server/node_modules/stripe/types/BalanceTransactionSources.d.ts
generated
vendored
1
server/node_modules/stripe/types/BalanceTransactionSources.d.ts
generated
vendored
@@ -13,7 +13,6 @@ declare module 'stripe' {
|
||||
| Issuing.Dispute
|
||||
| Issuing.Transaction
|
||||
| Payout
|
||||
| PlatformTaxFee
|
||||
| Refund
|
||||
| ReserveTransaction
|
||||
| TaxDeductedAtSource
|
||||
|
||||
10
server/node_modules/stripe/types/BalanceTransactions.d.ts
generated
vendored
10
server/node_modules/stripe/types/BalanceTransactions.d.ts
generated
vendored
@@ -80,7 +80,7 @@ declare module 'stripe' {
|
||||
status: string;
|
||||
|
||||
/**
|
||||
* Transaction type: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `stripe_fee`, `stripe_fx_fee`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, or `transfer_refund`. Learn more about [balance transaction types and what they represent](https://stripe.com/docs/reports/balance-transaction-types). To classify transactions for accounting purposes, consider `reporting_category` instead.
|
||||
* Transaction type: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `payout_minimum_balance_hold`, `payout_minimum_balance_release`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `stripe_fee`, `stripe_fx_fee`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, or `transfer_refund`. Learn more about [balance transaction types and what they represent](https://stripe.com/docs/reports/balance-transaction-types). To classify transactions for accounting purposes, consider `reporting_category` instead.
|
||||
*/
|
||||
type: BalanceTransaction.Type;
|
||||
}
|
||||
@@ -141,6 +141,8 @@ declare module 'stripe' {
|
||||
| 'payout'
|
||||
| 'payout_cancel'
|
||||
| 'payout_failure'
|
||||
| 'payout_minimum_balance_hold'
|
||||
| 'payout_minimum_balance_release'
|
||||
| 'refund'
|
||||
| 'refund_failure'
|
||||
| 'reserve_transaction'
|
||||
@@ -153,11 +155,7 @@ declare module 'stripe' {
|
||||
| 'transfer'
|
||||
| 'transfer_cancel'
|
||||
| 'transfer_failure'
|
||||
| 'transfer_refund'
|
||||
| 'obligation_inbound'
|
||||
| 'obligation_payout'
|
||||
| 'obligation_payout_failure'
|
||||
| 'obligation_reversal_outbound';
|
||||
| 'transfer_refund';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
2
server/node_modules/stripe/types/BalanceTransactionsResource.d.ts
generated
vendored
2
server/node_modules/stripe/types/BalanceTransactionsResource.d.ts
generated
vendored
@@ -36,7 +36,7 @@ declare module 'stripe' {
|
||||
source?: string;
|
||||
|
||||
/**
|
||||
* Only returns transactions of the given type. One of: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `stripe_fee`, `stripe_fx_fee`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, or `transfer_refund`.
|
||||
* Only returns transactions of the given type. One of: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `payout_minimum_balance_hold`, `payout_minimum_balance_release`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `stripe_fee`, `stripe_fx_fee`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, or `transfer_refund`.
|
||||
*/
|
||||
type?: string;
|
||||
}
|
||||
|
||||
18
server/node_modules/stripe/types/BankAccounts.d.ts
generated
vendored
18
server/node_modules/stripe/types/BankAccounts.d.ts
generated
vendored
@@ -5,11 +5,11 @@ declare module 'stripe' {
|
||||
/**
|
||||
* These bank accounts are payment methods on `Customer` objects.
|
||||
*
|
||||
* On the other hand [External Accounts](https://stripe.com/docs/api#external_accounts) are transfer
|
||||
* destinations on `Account` objects for [Custom accounts](https://stripe.com/docs/connect/custom-accounts).
|
||||
* On the other hand [External Accounts](https://stripe.com/api#external_accounts) are transfer
|
||||
* destinations on `Account` objects for connected accounts.
|
||||
* They can be bank accounts or debit cards as well, and are documented in the links above.
|
||||
*
|
||||
* Related guide: [Bank debits and transfers](https://stripe.com/docs/payments/bank-debits-transfers)
|
||||
* Related guide: [Bank debits and transfers](https://stripe.com/payments/bank-debits-transfers)
|
||||
*/
|
||||
interface BankAccount {
|
||||
/**
|
||||
@@ -137,7 +137,7 @@ declare module 'stripe' {
|
||||
past_due: Array<string> | null;
|
||||
|
||||
/**
|
||||
* Fields that may become required depending on the results of verification or review. Will be an empty array unless an asynchronous verification is pending. If verification fails, these fields move to `eventually_due`, `currently_due`, or `past_due`.
|
||||
* Fields that might become required depending on the results of verification or review. It's an empty array unless an asynchronous verification is pending. If verification fails, these fields move to `eventually_due`, `currently_due`, or `past_due`. Fields might appear in `eventually_due`, `currently_due`, or `past_due` and in `pending_verification` if verification fails but another verification is still pending.
|
||||
*/
|
||||
pending_verification: Array<string> | null;
|
||||
}
|
||||
@@ -249,7 +249,9 @@ declare module 'stripe' {
|
||||
| 'verification_missing_directors'
|
||||
| 'verification_missing_executives'
|
||||
| 'verification_missing_owners'
|
||||
| 'verification_requires_additional_memorandum_of_associations';
|
||||
| 'verification_requires_additional_memorandum_of_associations'
|
||||
| 'verification_requires_additional_proof_of_registration'
|
||||
| 'verification_supportability';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -270,7 +272,7 @@ declare module 'stripe' {
|
||||
past_due: Array<string> | null;
|
||||
|
||||
/**
|
||||
* Fields that may become required depending on the results of verification or review. Will be an empty array unless an asynchronous verification is pending. If verification fails, these fields move to `eventually_due`, `currently_due`, or `past_due`.
|
||||
* Fields that might become required depending on the results of verification or review. It's an empty array unless an asynchronous verification is pending. If verification fails, these fields move to `eventually_due`, `currently_due`, or `past_due`. Fields might appear in `eventually_due`, `currently_due`, or `past_due` and in `pending_verification` if verification fails but another verification is still pending.
|
||||
*/
|
||||
pending_verification: Array<string> | null;
|
||||
}
|
||||
@@ -382,7 +384,9 @@ declare module 'stripe' {
|
||||
| 'verification_missing_directors'
|
||||
| 'verification_missing_executives'
|
||||
| 'verification_missing_owners'
|
||||
| 'verification_requires_additional_memorandum_of_associations';
|
||||
| 'verification_requires_additional_memorandum_of_associations'
|
||||
| 'verification_requires_additional_proof_of_registration'
|
||||
| 'verification_supportability';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
11
server/node_modules/stripe/types/Billing/MeterEventAdjustments.d.ts
generated
vendored
11
server/node_modules/stripe/types/Billing/MeterEventAdjustments.d.ts
generated
vendored
@@ -4,7 +4,7 @@ declare module 'stripe' {
|
||||
namespace Stripe {
|
||||
namespace Billing {
|
||||
/**
|
||||
* A billing meter event adjustment represents the status of a meter event adjustment.
|
||||
* A billing meter event adjustment is a resource that allows you to cancel a meter event. For example, you might create a billing meter event adjustment to cancel a meter event that was created in error or attached to the wrong customer.
|
||||
*/
|
||||
interface MeterEventAdjustment {
|
||||
/**
|
||||
@@ -12,7 +12,10 @@ declare module 'stripe' {
|
||||
*/
|
||||
object: 'billing.meter_event_adjustment';
|
||||
|
||||
cancel: MeterEventAdjustment.Cancel;
|
||||
/**
|
||||
* Specifies which event to cancel.
|
||||
*/
|
||||
cancel: MeterEventAdjustment.Cancel | null;
|
||||
|
||||
/**
|
||||
* The name of the meter event. Corresponds with the `event_name` field on a meter.
|
||||
@@ -30,7 +33,7 @@ declare module 'stripe' {
|
||||
status: MeterEventAdjustment.Status;
|
||||
|
||||
/**
|
||||
* Specifies whether to cancel a single event or a range of events for a time period.
|
||||
* Specifies whether to cancel a single event or a range of events for a time period. Time period cancellation is not supported yet.
|
||||
*/
|
||||
type: 'cancel';
|
||||
}
|
||||
@@ -40,7 +43,7 @@ declare module 'stripe' {
|
||||
/**
|
||||
* Unique identifier for the event.
|
||||
*/
|
||||
identifier: string;
|
||||
identifier: string | null;
|
||||
}
|
||||
|
||||
type Status = 'complete' | 'pending';
|
||||
|
||||
24
server/node_modules/stripe/types/Billing/MeterEventAdjustmentsResource.d.ts
generated
vendored
24
server/node_modules/stripe/types/Billing/MeterEventAdjustmentsResource.d.ts
generated
vendored
@@ -4,25 +4,25 @@ declare module 'stripe' {
|
||||
namespace Stripe {
|
||||
namespace Billing {
|
||||
interface MeterEventAdjustmentCreateParams {
|
||||
/**
|
||||
* Specifies which event to cancel.
|
||||
*/
|
||||
cancel: MeterEventAdjustmentCreateParams.Cancel;
|
||||
|
||||
/**
|
||||
* The name of the meter event. Corresponds with the `event_name` field on a meter.
|
||||
*/
|
||||
event_name: string;
|
||||
|
||||
/**
|
||||
* Specifies whether to cancel a single event or a range of events for a time period. Time period cancellation is not supported yet.
|
||||
*/
|
||||
type: 'cancel';
|
||||
|
||||
/**
|
||||
* Specifies which event to cancel.
|
||||
*/
|
||||
cancel?: MeterEventAdjustmentCreateParams.Cancel;
|
||||
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
|
||||
/**
|
||||
* Specifies whether to cancel a single event or a range of events for a time period.
|
||||
*/
|
||||
type?: 'cancel';
|
||||
}
|
||||
|
||||
namespace MeterEventAdjustmentCreateParams {
|
||||
@@ -30,13 +30,13 @@ declare module 'stripe' {
|
||||
/**
|
||||
* Unique identifier for the event. You can only cancel events within 24 hours of Stripe receiving them.
|
||||
*/
|
||||
identifier: string;
|
||||
identifier?: string;
|
||||
}
|
||||
}
|
||||
|
||||
class MeterEventAdjustmentsResource {
|
||||
/**
|
||||
* Creates a billing meter event adjustment
|
||||
* Creates a billing meter event adjustment.
|
||||
*/
|
||||
create(
|
||||
params: MeterEventAdjustmentCreateParams,
|
||||
|
||||
10
server/node_modules/stripe/types/Billing/MeterEventSummaries.d.ts
generated
vendored
10
server/node_modules/stripe/types/Billing/MeterEventSummaries.d.ts
generated
vendored
@@ -6,6 +6,8 @@ declare module 'stripe' {
|
||||
/**
|
||||
* A billing meter event summary represents an aggregated view of a customer's billing meter events within a specified timeframe. It indicates how much
|
||||
* usage was accrued by a customer for that period.
|
||||
*
|
||||
* Note: Meters events are aggregated asynchronously so the meter event summaries provide an eventually consistent view of the reported usage.
|
||||
*/
|
||||
interface MeterEventSummary {
|
||||
/**
|
||||
@@ -19,12 +21,12 @@ declare module 'stripe' {
|
||||
object: 'billing.meter_event_summary';
|
||||
|
||||
/**
|
||||
* Aggregated value of all the events within start_time (inclusive) and end_time (inclusive). The aggregation strategy is defined on meter via `default_aggregation``.
|
||||
* Aggregated value of all the events within `start_time` (inclusive) and `end_time` (inclusive). The aggregation strategy is defined on meter via `default_aggregation`.
|
||||
*/
|
||||
aggregated_value: number;
|
||||
|
||||
/**
|
||||
* End timestamp for this usage summary (inclusive).
|
||||
* End timestamp for this event summary (exclusive). Must be aligned with minute boundaries.
|
||||
*/
|
||||
end_time: number;
|
||||
|
||||
@@ -34,12 +36,12 @@ declare module 'stripe' {
|
||||
livemode: boolean;
|
||||
|
||||
/**
|
||||
* The meter associated with this usage summary.
|
||||
* The meter associated with this event summary.
|
||||
*/
|
||||
meter: string;
|
||||
|
||||
/**
|
||||
* Start timestamp for this usage summary (inclusive).
|
||||
* Start timestamp for this event summary (inclusive). Must be aligned with minute boundaries.
|
||||
*/
|
||||
start_time: number;
|
||||
}
|
||||
|
||||
5
server/node_modules/stripe/types/Billing/MeterEvents.d.ts
generated
vendored
5
server/node_modules/stripe/types/Billing/MeterEvents.d.ts
generated
vendored
@@ -4,8 +4,7 @@ declare module 'stripe' {
|
||||
namespace Stripe {
|
||||
namespace Billing {
|
||||
/**
|
||||
* A billing meter event represents a customer's usage of a product. Meter events are used to bill a customer based on their usage.
|
||||
* Meter events are associated with billing meters, which define the shape of the event's payload and how those events are aggregated for billing.
|
||||
* Meter events represent actions that customers take in your system. You can use meter events to bill a customer based on their usage. Meter events are associated with billing meters, which define both the contents of the event's payload and how to aggregate those events.
|
||||
*/
|
||||
interface MeterEvent {
|
||||
/**
|
||||
@@ -34,7 +33,7 @@ declare module 'stripe' {
|
||||
livemode: boolean;
|
||||
|
||||
/**
|
||||
* The payload of the event.
|
||||
* The payload of the event. This contains the fields corresponding to a meter's `customer_mapping.event_payload_key` (default is `stripe_customer_id`) and `value_settings.event_payload_key` (default is `value`). Read more about the [payload](https://stripe.com/docs/billing/subscriptions/usage-based/recording-usage#payload-key-overrides).
|
||||
*/
|
||||
payload: {
|
||||
[key: string]: string;
|
||||
|
||||
16
server/node_modules/stripe/types/Billing/MeterEventsResource.d.ts
generated
vendored
16
server/node_modules/stripe/types/Billing/MeterEventsResource.d.ts
generated
vendored
@@ -10,31 +10,31 @@ declare module 'stripe' {
|
||||
event_name: string;
|
||||
|
||||
/**
|
||||
* The payload of the event. This must contain a field with the event's numerical value and a field to map the event to a customer.
|
||||
* The payload of the event. This must contain the fields corresponding to a meter's `customer_mapping.event_payload_key` (default is `stripe_customer_id`) and `value_settings.event_payload_key` (default is `value`). Read more about the [payload](https://docs.stripe.com/billing/subscriptions/usage-based/recording-usage#payload-key-overrides).
|
||||
*/
|
||||
payload: {
|
||||
[key: string]: string;
|
||||
};
|
||||
|
||||
/**
|
||||
* The time of the event. Measured in seconds since the Unix epoch.
|
||||
*/
|
||||
timestamp: number;
|
||||
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
|
||||
/**
|
||||
* 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 is generated. We recommend 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;
|
||||
|
||||
/**
|
||||
* The time of the event. Measured in seconds since the Unix epoch. Must be within the past 35 calendar days or up to 5 minutes in the future. Defaults to current timestamp if not specified.
|
||||
*/
|
||||
timestamp?: number;
|
||||
}
|
||||
|
||||
class MeterEventsResource {
|
||||
/**
|
||||
* Creates a billing meter event
|
||||
* Creates a billing meter event.
|
||||
*/
|
||||
create(
|
||||
params: MeterEventCreateParams,
|
||||
|
||||
12
server/node_modules/stripe/types/Billing/Meters.d.ts
generated
vendored
12
server/node_modules/stripe/types/Billing/Meters.d.ts
generated
vendored
@@ -4,7 +4,9 @@ declare module 'stripe' {
|
||||
namespace Stripe {
|
||||
namespace Billing {
|
||||
/**
|
||||
* A billing meter is a resource that allows you to track usage of a particular event. For example, you might create a billing meter to track the number of API calls made by a particular user. You can then use the billing meter to charge the user for the number of API calls they make.
|
||||
* Meters specify how to aggregate meter events over a billing period. Meter events represent the actions that customers take in your system. Meters attach to prices and form the basis of the bill.
|
||||
*
|
||||
* Related guide: [Usage based billing](https://docs.stripe.com/billing/subscriptions/usage-based)
|
||||
*/
|
||||
interface Meter {
|
||||
/**
|
||||
@@ -32,12 +34,12 @@ declare module 'stripe' {
|
||||
display_name: string;
|
||||
|
||||
/**
|
||||
* The name of the usage event to record usage for. Corresponds with the `event_name` field on usage events.
|
||||
* The name of the meter event to record usage for. Corresponds with the `event_name` field on meter events.
|
||||
*/
|
||||
event_name: string;
|
||||
|
||||
/**
|
||||
* The time window to pre-aggregate usage events for, if any.
|
||||
* The time window to pre-aggregate meter events for, if any.
|
||||
*/
|
||||
event_time_window: Meter.EventTimeWindow | null;
|
||||
|
||||
@@ -64,7 +66,7 @@ declare module 'stripe' {
|
||||
namespace Meter {
|
||||
interface CustomerMapping {
|
||||
/**
|
||||
* The key in the usage event payload to use for mapping the event to a customer.
|
||||
* The key in the meter event payload to use for mapping the event to a customer.
|
||||
*/
|
||||
event_payload_key: string;
|
||||
|
||||
@@ -98,7 +100,7 @@ declare module 'stripe' {
|
||||
|
||||
interface ValueSettings {
|
||||
/**
|
||||
* The key in the usage event payload to use as the value for this meter.
|
||||
* The key in the meter event payload to use as the value for this meter.
|
||||
*/
|
||||
event_payload_key: string;
|
||||
}
|
||||
|
||||
36
server/node_modules/stripe/types/Billing/MetersResource.d.ts
generated
vendored
36
server/node_modules/stripe/types/Billing/MetersResource.d.ts
generated
vendored
@@ -10,12 +10,12 @@ declare module 'stripe' {
|
||||
default_aggregation: MeterCreateParams.DefaultAggregation;
|
||||
|
||||
/**
|
||||
* The meter's name.
|
||||
* The meter's name. Not visible to the customer.
|
||||
*/
|
||||
display_name: string;
|
||||
|
||||
/**
|
||||
* The name of the usage event to record usage for. Corresponds with the `event_name` field on usage events.
|
||||
* The name of the meter event to record usage for. Corresponds with the `event_name` field on meter events.
|
||||
*/
|
||||
event_name: string;
|
||||
|
||||
@@ -25,7 +25,7 @@ declare module 'stripe' {
|
||||
customer_mapping?: MeterCreateParams.CustomerMapping;
|
||||
|
||||
/**
|
||||
* The time window to pre-aggregate usage events for, if any.
|
||||
* The time window to pre-aggregate meter events for, if any.
|
||||
*/
|
||||
event_time_window?: MeterCreateParams.EventTimeWindow;
|
||||
|
||||
@@ -35,7 +35,7 @@ declare module 'stripe' {
|
||||
expand?: Array<string>;
|
||||
|
||||
/**
|
||||
* Fields that specify how to calculate a usage event's value.
|
||||
* Fields that specify how to calculate a meter event's value.
|
||||
*/
|
||||
value_settings?: MeterCreateParams.ValueSettings;
|
||||
}
|
||||
@@ -43,7 +43,7 @@ declare module 'stripe' {
|
||||
namespace MeterCreateParams {
|
||||
interface CustomerMapping {
|
||||
/**
|
||||
* The key in the usage event payload to use for mapping the event to a customer.
|
||||
* The key in the meter event payload to use for mapping the event to a customer.
|
||||
*/
|
||||
event_payload_key: string;
|
||||
|
||||
@@ -55,7 +55,7 @@ declare module 'stripe' {
|
||||
|
||||
interface DefaultAggregation {
|
||||
/**
|
||||
* Specifies how events are aggregated. Allowed values are `count` to count the number of events, `sum` to sum each event's value, or `last` to use the last event's value.
|
||||
* Specifies how events are aggregated. Allowed values are `count` to count the number of events and `sum` to sum each event's value.
|
||||
*/
|
||||
formula: DefaultAggregation.Formula;
|
||||
}
|
||||
@@ -83,7 +83,7 @@ declare module 'stripe' {
|
||||
|
||||
interface MeterUpdateParams {
|
||||
/**
|
||||
* The meter's name.
|
||||
* The meter's name. Not visible to the customer.
|
||||
*/
|
||||
display_name?: string;
|
||||
|
||||
@@ -123,12 +123,12 @@ declare module 'stripe' {
|
||||
customer: string;
|
||||
|
||||
/**
|
||||
* The timestamp from when to stop aggregating usage events (exclusive).
|
||||
* The timestamp from when to stop aggregating meter events (exclusive). Must be aligned with minute boundaries.
|
||||
*/
|
||||
end_time: number;
|
||||
|
||||
/**
|
||||
* The timestamp from when to start aggregating usage events (inclusive).
|
||||
* The timestamp from when to start aggregating meter events (inclusive). Must be aligned with minute boundaries.
|
||||
*/
|
||||
start_time: number;
|
||||
|
||||
@@ -138,9 +138,13 @@ declare module 'stripe' {
|
||||
expand?: Array<string>;
|
||||
|
||||
/**
|
||||
* Specifies what granularity to use when generating event summaries. If not specified, a single event summary would be returned for the specified time range.
|
||||
* Specifies what granularity to use when generating event summaries. If not specified, a single event summary would be returned for the specified time range. For hourly granularity, start and end times must align with hour boundaries (e.g., 00:00, 01:00, ..., 23:00). For daily granularity, start and end times must align with UTC day boundaries (00:00 UTC).
|
||||
*/
|
||||
value_grouping_window?: 'hour';
|
||||
value_grouping_window?: MeterListEventSummariesParams.ValueGroupingWindow;
|
||||
}
|
||||
|
||||
namespace MeterListEventSummariesParams {
|
||||
type ValueGroupingWindow = 'day' | 'hour';
|
||||
}
|
||||
|
||||
interface MeterReactivateParams {
|
||||
@@ -152,7 +156,7 @@ declare module 'stripe' {
|
||||
|
||||
class MetersResource {
|
||||
/**
|
||||
* Creates a billing meter
|
||||
* Creates a billing meter.
|
||||
*/
|
||||
create(
|
||||
params: MeterCreateParams,
|
||||
@@ -160,7 +164,7 @@ declare module 'stripe' {
|
||||
): Promise<Stripe.Response<Stripe.Billing.Meter>>;
|
||||
|
||||
/**
|
||||
* Retrieves a billing meter given an ID
|
||||
* Retrieves a billing meter given an ID.
|
||||
*/
|
||||
retrieve(
|
||||
id: string,
|
||||
@@ -173,7 +177,7 @@ declare module 'stripe' {
|
||||
): Promise<Stripe.Response<Stripe.Billing.Meter>>;
|
||||
|
||||
/**
|
||||
* Updates a billing meter
|
||||
* Updates a billing meter.
|
||||
*/
|
||||
update(
|
||||
id: string,
|
||||
@@ -191,7 +195,7 @@ declare module 'stripe' {
|
||||
list(options?: RequestOptions): ApiListPromise<Stripe.Billing.Meter>;
|
||||
|
||||
/**
|
||||
* Deactivates a billing meter
|
||||
* When a meter is deactivated, no more meter events will be accepted for this meter. You can't attach a deactivated meter to a price.
|
||||
*/
|
||||
deactivate(
|
||||
id: string,
|
||||
@@ -213,7 +217,7 @@ declare module 'stripe' {
|
||||
): ApiListPromise<Stripe.Billing.MeterEventSummary>;
|
||||
|
||||
/**
|
||||
* Reactivates a billing meter
|
||||
* When a meter is reactivated, events for this meter can be accepted and you can attach the meter to a price.
|
||||
*/
|
||||
reactivate(
|
||||
id: string,
|
||||
|
||||
33
server/node_modules/stripe/types/BillingPortal/Configurations.d.ts
generated
vendored
33
server/node_modules/stripe/types/BillingPortal/Configurations.d.ts
generated
vendored
@@ -96,8 +96,6 @@ declare module 'stripe' {
|
||||
subscription_cancel: Features.SubscriptionCancel;
|
||||
|
||||
subscription_update: Features.SubscriptionUpdate;
|
||||
|
||||
subscription_pause: Features.SubscriptionPause;
|
||||
}
|
||||
|
||||
namespace Features {
|
||||
@@ -189,13 +187,6 @@ declare module 'stripe' {
|
||||
| 'none';
|
||||
}
|
||||
|
||||
interface SubscriptionPause {
|
||||
/**
|
||||
* Whether the feature is enabled.
|
||||
*/
|
||||
enabled: boolean;
|
||||
}
|
||||
|
||||
interface SubscriptionUpdate {
|
||||
/**
|
||||
* The types of subscription updates that are supported for items listed in the `products` attribute. When empty, subscriptions are not updateable.
|
||||
@@ -212,12 +203,14 @@ declare module 'stripe' {
|
||||
/**
|
||||
* The list of up to 10 products that support subscription updates.
|
||||
*/
|
||||
products: Array<SubscriptionUpdate.Product> | null;
|
||||
products?: Array<SubscriptionUpdate.Product> | null;
|
||||
|
||||
/**
|
||||
* Determines how to handle prorations resulting from subscription updates. Valid values are `none`, `create_prorations`, and `always_invoice`. Defaults to a value of `none` if you don't set it during creation.
|
||||
*/
|
||||
proration_behavior: SubscriptionUpdate.ProrationBehavior;
|
||||
|
||||
schedule_at_period_end: SubscriptionUpdate.ScheduleAtPeriodEnd;
|
||||
}
|
||||
|
||||
namespace SubscriptionUpdate {
|
||||
@@ -239,6 +232,26 @@ declare module 'stripe' {
|
||||
| 'always_invoice'
|
||||
| 'create_prorations'
|
||||
| 'none';
|
||||
|
||||
interface ScheduleAtPeriodEnd {
|
||||
/**
|
||||
* List of conditions. When any condition is true, an update will be scheduled at the end of the current period.
|
||||
*/
|
||||
conditions: Array<ScheduleAtPeriodEnd.Condition>;
|
||||
}
|
||||
|
||||
namespace ScheduleAtPeriodEnd {
|
||||
interface Condition {
|
||||
/**
|
||||
* The type of condition.
|
||||
*/
|
||||
type: Condition.Type;
|
||||
}
|
||||
|
||||
namespace Condition {
|
||||
type Type = 'decreasing_item_amount' | 'shortening_interval';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
94
server/node_modules/stripe/types/BillingPortal/ConfigurationsResource.d.ts
generated
vendored
94
server/node_modules/stripe/types/BillingPortal/ConfigurationsResource.d.ts
generated
vendored
@@ -4,16 +4,16 @@ declare module 'stripe' {
|
||||
namespace Stripe {
|
||||
namespace BillingPortal {
|
||||
interface ConfigurationCreateParams {
|
||||
/**
|
||||
* The business information shown to customers in the portal.
|
||||
*/
|
||||
business_profile: ConfigurationCreateParams.BusinessProfile;
|
||||
|
||||
/**
|
||||
* Information about the features available in the portal.
|
||||
*/
|
||||
features: ConfigurationCreateParams.Features;
|
||||
|
||||
/**
|
||||
* The business information shown to customers in the portal.
|
||||
*/
|
||||
business_profile?: ConfigurationCreateParams.BusinessProfile;
|
||||
|
||||
/**
|
||||
* The default URL to redirect customers to when they click on the portal's link to return to your website. This can be [overriden](https://stripe.com/docs/api/customer_portal/sessions/create#create_portal_session-return_url) when creating the session.
|
||||
*/
|
||||
@@ -78,11 +78,6 @@ declare module 'stripe' {
|
||||
* Information about updating subscriptions in the portal.
|
||||
*/
|
||||
subscription_update?: Features.SubscriptionUpdate;
|
||||
|
||||
/**
|
||||
* Information about pausing subscriptions in the portal.
|
||||
*/
|
||||
subscription_pause?: Features.SubscriptionPause;
|
||||
}
|
||||
|
||||
namespace Features {
|
||||
@@ -141,7 +136,7 @@ declare module 'stripe' {
|
||||
mode?: SubscriptionCancel.Mode;
|
||||
|
||||
/**
|
||||
* Whether to create prorations when canceling subscriptions. Possible values are `none` and `create_prorations`, which is only compatible with `mode=immediately`. No prorations are generated when canceling a subscription at the end of its natural billing period.
|
||||
* Whether to create prorations when canceling subscriptions. Possible values are `none` and `create_prorations`, which is only compatible with `mode=immediately`. Passing `always_invoice` will result in an error. No prorations are generated when canceling a subscription at the end of its natural billing period.
|
||||
*/
|
||||
proration_behavior?: SubscriptionCancel.ProrationBehavior;
|
||||
}
|
||||
@@ -179,18 +174,11 @@ declare module 'stripe' {
|
||||
| 'none';
|
||||
}
|
||||
|
||||
interface SubscriptionPause {
|
||||
/**
|
||||
* Whether the feature is enabled.
|
||||
*/
|
||||
enabled: boolean;
|
||||
}
|
||||
|
||||
interface SubscriptionUpdate {
|
||||
/**
|
||||
* The types of subscription updates that are supported. When empty, subscriptions are not updateable.
|
||||
*/
|
||||
default_allowed_updates: Stripe.Emptyable<
|
||||
default_allowed_updates?: Stripe.Emptyable<
|
||||
Array<SubscriptionUpdate.DefaultAllowedUpdate>
|
||||
>;
|
||||
|
||||
@@ -202,12 +190,17 @@ declare module 'stripe' {
|
||||
/**
|
||||
* The list of up to 10 products that support subscription updates.
|
||||
*/
|
||||
products: Stripe.Emptyable<Array<SubscriptionUpdate.Product>>;
|
||||
products?: Stripe.Emptyable<Array<SubscriptionUpdate.Product>>;
|
||||
|
||||
/**
|
||||
* Determines how to handle prorations resulting from subscription updates. Valid values are `none`, `create_prorations`, and `always_invoice`.
|
||||
*/
|
||||
proration_behavior?: SubscriptionUpdate.ProrationBehavior;
|
||||
|
||||
/**
|
||||
* Setting to control when an update should be scheduled at the end of the period instead of applying immediately.
|
||||
*/
|
||||
schedule_at_period_end?: SubscriptionUpdate.ScheduleAtPeriodEnd;
|
||||
}
|
||||
|
||||
namespace SubscriptionUpdate {
|
||||
@@ -229,6 +222,26 @@ declare module 'stripe' {
|
||||
| 'always_invoice'
|
||||
| 'create_prorations'
|
||||
| 'none';
|
||||
|
||||
interface ScheduleAtPeriodEnd {
|
||||
/**
|
||||
* List of conditions. When any condition is true, the update will be scheduled at the end of the current period.
|
||||
*/
|
||||
conditions?: Array<ScheduleAtPeriodEnd.Condition>;
|
||||
}
|
||||
|
||||
namespace ScheduleAtPeriodEnd {
|
||||
interface Condition {
|
||||
/**
|
||||
* The type of condition.
|
||||
*/
|
||||
type: Condition.Type;
|
||||
}
|
||||
|
||||
namespace Condition {
|
||||
type Type = 'decreasing_item_amount' | 'shortening_interval';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -327,11 +340,6 @@ declare module 'stripe' {
|
||||
* Information about updating subscriptions in the portal.
|
||||
*/
|
||||
subscription_update?: Features.SubscriptionUpdate;
|
||||
|
||||
/**
|
||||
* Information about pausing subscriptions in the portal.
|
||||
*/
|
||||
subscription_pause?: Features.SubscriptionPause;
|
||||
}
|
||||
|
||||
namespace Features {
|
||||
@@ -390,7 +398,7 @@ declare module 'stripe' {
|
||||
mode?: SubscriptionCancel.Mode;
|
||||
|
||||
/**
|
||||
* Whether to create prorations when canceling subscriptions. Possible values are `none` and `create_prorations`, which is only compatible with `mode=immediately`. No prorations are generated when canceling a subscription at the end of its natural billing period.
|
||||
* Whether to create prorations when canceling subscriptions. Possible values are `none` and `create_prorations`, which is only compatible with `mode=immediately`. Passing `always_invoice` will result in an error. No prorations are generated when canceling a subscription at the end of its natural billing period.
|
||||
*/
|
||||
proration_behavior?: SubscriptionCancel.ProrationBehavior;
|
||||
}
|
||||
@@ -428,13 +436,6 @@ declare module 'stripe' {
|
||||
| 'none';
|
||||
}
|
||||
|
||||
interface SubscriptionPause {
|
||||
/**
|
||||
* Whether the feature is enabled.
|
||||
*/
|
||||
enabled: boolean;
|
||||
}
|
||||
|
||||
interface SubscriptionUpdate {
|
||||
/**
|
||||
* The types of subscription updates that are supported. When empty, subscriptions are not updateable.
|
||||
@@ -457,6 +458,11 @@ declare module 'stripe' {
|
||||
* Determines how to handle prorations resulting from subscription updates. Valid values are `none`, `create_prorations`, and `always_invoice`.
|
||||
*/
|
||||
proration_behavior?: SubscriptionUpdate.ProrationBehavior;
|
||||
|
||||
/**
|
||||
* Setting to control when an update should be scheduled at the end of the period instead of applying immediately.
|
||||
*/
|
||||
schedule_at_period_end?: SubscriptionUpdate.ScheduleAtPeriodEnd;
|
||||
}
|
||||
|
||||
namespace SubscriptionUpdate {
|
||||
@@ -478,6 +484,28 @@ declare module 'stripe' {
|
||||
| 'always_invoice'
|
||||
| 'create_prorations'
|
||||
| 'none';
|
||||
|
||||
interface ScheduleAtPeriodEnd {
|
||||
/**
|
||||
* List of conditions. When any condition is true, the update will be scheduled at the end of the current period.
|
||||
*/
|
||||
conditions?: Stripe.Emptyable<
|
||||
Array<ScheduleAtPeriodEnd.Condition>
|
||||
>;
|
||||
}
|
||||
|
||||
namespace ScheduleAtPeriodEnd {
|
||||
interface Condition {
|
||||
/**
|
||||
* The type of condition.
|
||||
*/
|
||||
type: Condition.Type;
|
||||
}
|
||||
|
||||
namespace Condition {
|
||||
type Type = 'decreasing_item_amount' | 'shortening_interval';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
4
server/node_modules/stripe/types/BillingPortal/Sessions.d.ts
generated
vendored
4
server/node_modules/stripe/types/BillingPortal/Sessions.d.ts
generated
vendored
@@ -17,7 +17,7 @@ declare module 'stripe' {
|
||||
* Create sessions on-demand when customers intend to manage their subscriptions
|
||||
* and billing details.
|
||||
*
|
||||
* Learn more in the [integration guide](https://stripe.com/docs/billing/subscriptions/integrating-customer-portal).
|
||||
* Related guide: [Customer management](https://stripe.com/customer-management)
|
||||
*/
|
||||
interface Session {
|
||||
/**
|
||||
@@ -61,7 +61,7 @@ declare module 'stripe' {
|
||||
locale: Session.Locale | null;
|
||||
|
||||
/**
|
||||
* The account for which the session was created on behalf of. When specified, only subscriptions and invoices with this `on_behalf_of` account appear in the portal. For more information, see the [docs](https://stripe.com/docs/connect/separate-charges-and-transfers#on-behalf-of). Use the [Accounts API](https://stripe.com/docs/api/accounts/object#account_object-settings-branding) to modify the `on_behalf_of` account's branding settings, which the portal displays.
|
||||
* The account for which the session was created on behalf of. When specified, only subscriptions and invoices with this `on_behalf_of` account appear in the portal. For more information, see the [docs](https://stripe.com/docs/connect/separate-charges-and-transfers#settlement-merchant). Use the [Accounts API](https://stripe.com/docs/api/accounts/object#account_object-settings-branding) to modify the `on_behalf_of` account's branding settings, which the portal displays.
|
||||
*/
|
||||
on_behalf_of: string | null;
|
||||
|
||||
|
||||
2
server/node_modules/stripe/types/BillingPortal/SessionsResource.d.ts
generated
vendored
2
server/node_modules/stripe/types/BillingPortal/SessionsResource.d.ts
generated
vendored
@@ -30,7 +30,7 @@ declare module 'stripe' {
|
||||
locale?: SessionCreateParams.Locale;
|
||||
|
||||
/**
|
||||
* The `on_behalf_of` account to use for this session. When specified, only subscriptions and invoices with this `on_behalf_of` account appear in the portal. For more information, see the [docs](https://stripe.com/docs/connect/separate-charges-and-transfers#on-behalf-of). Use the [Accounts API](https://stripe.com/docs/api/accounts/object#account_object-settings-branding) to modify the `on_behalf_of` account's branding settings, which the portal displays.
|
||||
* The `on_behalf_of` account to use for this session. When specified, only subscriptions and invoices with this `on_behalf_of` account appear in the portal. For more information, see the [docs](https://stripe.com/docs/connect/separate-charges-and-transfers#settlement-merchant). Use the [Accounts API](https://stripe.com/docs/api/accounts/object#account_object-settings-branding) to modify the `on_behalf_of` account's branding settings, which the portal displays.
|
||||
*/
|
||||
on_behalf_of?: string;
|
||||
|
||||
|
||||
58
server/node_modules/stripe/types/Capabilities.d.ts
generated
vendored
58
server/node_modules/stripe/types/Capabilities.d.ts
generated
vendored
@@ -38,7 +38,7 @@ declare module 'stripe' {
|
||||
requirements?: Capability.Requirements;
|
||||
|
||||
/**
|
||||
* The status of the capability. Can be `active`, `inactive`, `pending`, or `unrequested`.
|
||||
* The status of the capability.
|
||||
*/
|
||||
status: Capability.Status;
|
||||
}
|
||||
@@ -51,7 +51,7 @@ declare module 'stripe' {
|
||||
alternatives: Array<FutureRequirements.Alternative> | null;
|
||||
|
||||
/**
|
||||
* Date on which `future_requirements` merges with the main `requirements` hash and `future_requirements` becomes empty. After the transition, `currently_due` requirements may immediately become `past_due`, but the account may also be given a grace period depending on the capability's enablement state prior to transitioning.
|
||||
* Date on which `future_requirements` becomes the main `requirements` hash and `future_requirements` becomes empty. After the transition, `currently_due` requirements may immediately become `past_due`, but the account may also be given a grace period depending on the capability's enablement state prior to transitioning.
|
||||
*/
|
||||
current_deadline: number | null;
|
||||
|
||||
@@ -61,9 +61,9 @@ declare module 'stripe' {
|
||||
currently_due: Array<string>;
|
||||
|
||||
/**
|
||||
* This is typed as a string for consistency with `requirements.disabled_reason`, but it safe to assume `future_requirements.disabled_reason` is empty because fields in `future_requirements` will never disable the account.
|
||||
* This is typed as an enum for consistency with `requirements.disabled_reason`, but it safe to assume `future_requirements.disabled_reason` is null because fields in `future_requirements` will never disable the account.
|
||||
*/
|
||||
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.
|
||||
@@ -71,7 +71,7 @@ declare module 'stripe' {
|
||||
errors: Array<FutureRequirements.Error>;
|
||||
|
||||
/**
|
||||
* Fields that need to be collected assuming all volume thresholds are reached. As they become required, they appear in `currently_due` as well.
|
||||
* Fields you must collect when all thresholds are reached. As they become required, they appear in `currently_due` as well.
|
||||
*/
|
||||
eventually_due: Array<string>;
|
||||
|
||||
@@ -81,7 +81,7 @@ declare module 'stripe' {
|
||||
past_due: Array<string>;
|
||||
|
||||
/**
|
||||
* Fields that may become required depending on the results of verification or review. Will be an empty array unless an asynchronous verification is pending. If verification fails, these fields move to `eventually_due` or `currently_due`.
|
||||
* Fields that might become required depending on the results of verification or review. It's an empty array unless an asynchronous verification is pending. If verification fails, these fields move to `eventually_due` or `currently_due`. Fields might appear in `eventually_due` or `currently_due` and in `pending_verification` if verification fails but another verification is still pending.
|
||||
*/
|
||||
pending_verification: Array<string>;
|
||||
}
|
||||
@@ -99,6 +99,18 @@ declare module 'stripe' {
|
||||
original_fields_due: Array<string>;
|
||||
}
|
||||
|
||||
type DisabledReason =
|
||||
| 'other'
|
||||
| 'paused.inactivity'
|
||||
| 'pending.onboarding'
|
||||
| 'pending.review'
|
||||
| 'platform_disabled'
|
||||
| 'platform_paused'
|
||||
| 'rejected.inactivity'
|
||||
| 'rejected.other'
|
||||
| 'rejected.unsupported_business'
|
||||
| 'requirements.fields_needed';
|
||||
|
||||
interface Error {
|
||||
/**
|
||||
* The code for the type of error.
|
||||
@@ -205,7 +217,9 @@ declare module 'stripe' {
|
||||
| 'verification_missing_directors'
|
||||
| 'verification_missing_executives'
|
||||
| 'verification_missing_owners'
|
||||
| 'verification_requires_additional_memorandum_of_associations';
|
||||
| 'verification_requires_additional_memorandum_of_associations'
|
||||
| 'verification_requires_additional_proof_of_registration'
|
||||
| 'verification_supportability';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -226,15 +240,9 @@ declare module 'stripe' {
|
||||
currently_due: Array<string>;
|
||||
|
||||
/**
|
||||
* If the capability is disabled, this string describes why. Can be `requirements.past_due`, `requirements.pending_verification`, `listed`, `platform_paused`, `rejected.fraud`, `rejected.listed`, `rejected.terms_of_service`, `rejected.other`, `under_review`, or `other`.
|
||||
*
|
||||
* `rejected.unsupported_business` means that the account's business is not supported by the capability. For example, payment methods may restrict the businesses they support in their terms of service:
|
||||
*
|
||||
* - [Afterpay Clearpay's terms of service](https://stripe.com/afterpay-clearpay/legal#restricted-businesses)
|
||||
*
|
||||
* If you believe that the rejection is in error, please contact support at https://support.stripe.com/contact/ for assistance.
|
||||
* Description of why the capability is disabled. [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.
|
||||
@@ -242,7 +250,7 @@ declare module 'stripe' {
|
||||
errors: Array<Requirements.Error>;
|
||||
|
||||
/**
|
||||
* Fields that need to be collected assuming all volume thresholds are reached. As they become required, they appear in `currently_due` as well, and `current_deadline` becomes set.
|
||||
* Fields you must collect when all thresholds are reached. As they become required, they appear in `currently_due` as well, and `current_deadline` becomes set.
|
||||
*/
|
||||
eventually_due: Array<string>;
|
||||
|
||||
@@ -252,7 +260,7 @@ declare module 'stripe' {
|
||||
past_due: Array<string>;
|
||||
|
||||
/**
|
||||
* Fields that may become required depending on the results of verification or review. Will be an empty array unless an asynchronous verification is pending. If verification fails, these fields move to `eventually_due`, `currently_due`, or `past_due`.
|
||||
* Fields that might become required depending on the results of verification or review. It's an empty array unless an asynchronous verification is pending. If verification fails, these fields move to `eventually_due`, `currently_due`, or `past_due`. Fields might appear in `eventually_due`, `currently_due`, or `past_due` and in `pending_verification` if verification fails but another verification is still pending.
|
||||
*/
|
||||
pending_verification: Array<string>;
|
||||
}
|
||||
@@ -270,6 +278,18 @@ declare module 'stripe' {
|
||||
original_fields_due: Array<string>;
|
||||
}
|
||||
|
||||
type DisabledReason =
|
||||
| 'other'
|
||||
| 'paused.inactivity'
|
||||
| 'pending.onboarding'
|
||||
| 'pending.review'
|
||||
| 'platform_disabled'
|
||||
| 'platform_paused'
|
||||
| 'rejected.inactivity'
|
||||
| 'rejected.other'
|
||||
| 'rejected.unsupported_business'
|
||||
| 'requirements.fields_needed';
|
||||
|
||||
interface Error {
|
||||
/**
|
||||
* The code for the type of error.
|
||||
@@ -376,7 +396,9 @@ declare module 'stripe' {
|
||||
| 'verification_missing_directors'
|
||||
| 'verification_missing_executives'
|
||||
| 'verification_missing_owners'
|
||||
| 'verification_requires_additional_memorandum_of_associations';
|
||||
| 'verification_requires_additional_memorandum_of_associations'
|
||||
| 'verification_requires_additional_proof_of_registration'
|
||||
| 'verification_supportability';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
22
server/node_modules/stripe/types/Cards.d.ts
generated
vendored
22
server/node_modules/stripe/types/Cards.d.ts
generated
vendored
@@ -21,7 +21,7 @@ declare module 'stripe' {
|
||||
object: 'card';
|
||||
|
||||
/**
|
||||
* The account this card belongs to. This attribute will not be in the card object if the card belongs to a customer or recipient instead.
|
||||
* The account this card belongs to. This attribute will not be in the card object if the card belongs to a customer or recipient instead. This property is only available for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.
|
||||
*/
|
||||
account?: string | Stripe.Account | null;
|
||||
|
||||
@@ -65,13 +65,18 @@ declare module 'stripe' {
|
||||
*/
|
||||
address_zip_check: string | null;
|
||||
|
||||
/**
|
||||
* This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to “unspecified”.
|
||||
*/
|
||||
allow_redisplay?: Card.AllowRedisplay | null;
|
||||
|
||||
/**
|
||||
* A set of available payout methods for this card. Only values from this set should be passed as the `method` when creating a payout.
|
||||
*/
|
||||
available_payout_methods?: Array<Card.AvailablePayoutMethod> | null;
|
||||
|
||||
/**
|
||||
* Card brand. Can be `American Express`, `Diners Club`, `Discover`, `Eftpos Australia`, `JCB`, `MasterCard`, `UnionPay`, `Visa`, or `Unknown`.
|
||||
* Card brand. Can be `American Express`, `Diners Club`, `Discover`, `Eftpos Australia`, `Girocard`, `JCB`, `MasterCard`, `UnionPay`, `Visa`, or `Unknown`.
|
||||
*/
|
||||
brand: string;
|
||||
|
||||
@@ -81,7 +86,7 @@ declare module 'stripe' {
|
||||
country: string | null;
|
||||
|
||||
/**
|
||||
* Three-letter [ISO code for currency](https://stripe.com/docs/payouts). Only applicable on accounts (not customers or recipients). The card can be used as a transfer destination for funds in this currency.
|
||||
* Three-letter [ISO code for currency](https://www.iso.org/iso-4217-currency-codes.html) in lowercase. Must be a [supported currency](https://docs.stripe.com/currencies). Only applicable on accounts (not customers or recipients). The card can be used as a transfer destination for funds in this currency. This property is only available for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.
|
||||
*/
|
||||
currency?: string | null;
|
||||
|
||||
@@ -96,7 +101,7 @@ declare module 'stripe' {
|
||||
cvc_check: string | null;
|
||||
|
||||
/**
|
||||
* Whether this card is the default external account for its currency.
|
||||
* Whether this card is the default external account for its currency. This property is only available for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.
|
||||
*/
|
||||
default_for_currency?: boolean | null;
|
||||
|
||||
@@ -164,6 +169,11 @@ declare module 'stripe' {
|
||||
|
||||
networks?: Card.Networks;
|
||||
|
||||
/**
|
||||
* Status of a card based on the card issuer.
|
||||
*/
|
||||
regulated_status: Card.RegulatedStatus | null;
|
||||
|
||||
/**
|
||||
* For external accounts that are cards, possible values are `new` and `errored`. If a payout fails, the status is set to `errored` and [scheduled payouts](https://stripe.com/docs/payouts#payout-schedule) are stopped until account details are updated.
|
||||
*/
|
||||
@@ -176,6 +186,8 @@ declare module 'stripe' {
|
||||
}
|
||||
|
||||
namespace Card {
|
||||
type AllowRedisplay = 'always' | 'limited' | 'unspecified';
|
||||
|
||||
type AvailablePayoutMethod = 'instant' | 'standard';
|
||||
|
||||
interface Networks {
|
||||
@@ -184,6 +196,8 @@ declare module 'stripe' {
|
||||
*/
|
||||
preferred: string | null;
|
||||
}
|
||||
|
||||
type RegulatedStatus = 'regulated' | 'unregulated';
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
343
server/node_modules/stripe/types/Charges.d.ts
generated
vendored
343
server/node_modules/stripe/types/Charges.d.ts
generated
vendored
@@ -40,12 +40,12 @@ declare module 'stripe' {
|
||||
application: string | Stripe.Application | null;
|
||||
|
||||
/**
|
||||
* The application fee (if any) for the charge. [See the Connect documentation](https://stripe.com/docs/connect/direct-charges#collecting-fees) for details.
|
||||
* The application fee (if any) for the charge. [See the Connect documentation](https://stripe.com/docs/connect/direct-charges#collect-fees) for details.
|
||||
*/
|
||||
application_fee: string | Stripe.ApplicationFee | null;
|
||||
|
||||
/**
|
||||
* The amount of the application fee (if any) requested for the charge. [See the Connect documentation](https://stripe.com/docs/connect/direct-charges#collecting-fees) for details.
|
||||
* The amount of the application fee (if any) requested for the charge. [See the Connect documentation](https://stripe.com/docs/connect/direct-charges#collect-fees) for details.
|
||||
*/
|
||||
application_fee_amount: number | null;
|
||||
|
||||
@@ -62,7 +62,7 @@ declare module 'stripe' {
|
||||
billing_details: Charge.BillingDetails;
|
||||
|
||||
/**
|
||||
* The full statement descriptor that is passed to card networks, and that is displayed on your customers' credit card and bank statements. Allows you to see what the statement descriptor looks like after the static and dynamic portions are combined.
|
||||
* The full statement descriptor that is passed to card networks, and that is displayed on your customers' credit card and bank statements. Allows you to see what the statement descriptor looks like after the static and dynamic portions are combined. This value only exists for card payments.
|
||||
*/
|
||||
calculated_statement_descriptor: string | null;
|
||||
|
||||
@@ -191,7 +191,7 @@ declare module 'stripe' {
|
||||
/**
|
||||
* A list of refunds that have been applied to the charge.
|
||||
*/
|
||||
refunds: ApiList<Stripe.Refund> | null;
|
||||
refunds?: ApiList<Stripe.Refund> | null;
|
||||
|
||||
/**
|
||||
* ID of the review associated with this charge if one exists.
|
||||
@@ -209,17 +209,19 @@ declare module 'stripe' {
|
||||
source: Stripe.CustomerSource | null;
|
||||
|
||||
/**
|
||||
* The transfer ID which created this charge. Only present if the charge came from another Stripe account. [See the Connect documentation](https://stripe.com/docs/connect/destination-charges) for details.
|
||||
* The transfer ID which created this charge. Only present if the charge came from another Stripe account. [See the Connect documentation](https://docs.stripe.com/connect/destination-charges) for details.
|
||||
*/
|
||||
source_transfer: string | Stripe.Transfer | null;
|
||||
|
||||
/**
|
||||
* For card charges, use `statement_descriptor_suffix` instead. Otherwise, you can use this value as the complete description of a charge on your customers' statements. Must contain at least one letter, maximum 22 characters.
|
||||
* For a non-card charge, text that appears on the customer's statement as the statement descriptor. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors).
|
||||
*
|
||||
* For a card charge, this value is ignored unless you don't specify a `statement_descriptor_suffix`, in which case this value is used as the suffix.
|
||||
*/
|
||||
statement_descriptor: string | null;
|
||||
|
||||
/**
|
||||
* Provides information about the charge that customers see on their statements. Concatenated with the prefix (shortened descriptor) or statement descriptor that's set on the account to form the complete statement descriptor. Maximum 22 characters for the concatenated descriptor.
|
||||
* Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement. If the account has no prefix value, the suffix is concatenated to the account's statement descriptor.
|
||||
*/
|
||||
statement_descriptor_suffix: string | null;
|
||||
|
||||
@@ -310,6 +312,21 @@ declare module 'stripe' {
|
||||
}
|
||||
|
||||
interface Outcome {
|
||||
/**
|
||||
* An enumerated value providing a more detailed explanation on [how to proceed with an error](https://stripe.com/docs/declines#retrying-issuer-declines).
|
||||
*/
|
||||
advice_code: Outcome.AdviceCode | null;
|
||||
|
||||
/**
|
||||
* For charges declined by the network, a 2 digit code which indicates the advice returned by the network on how to proceed with an error.
|
||||
*/
|
||||
network_advice_code: string | null;
|
||||
|
||||
/**
|
||||
* For charges declined by the network, a brand specific 2, 3, or 4 digit code which indicates the reason the authorization failed.
|
||||
*/
|
||||
network_decline_code: string | null;
|
||||
|
||||
/**
|
||||
* Possible values are `approved_by_network`, `declined_by_network`, `not_sent_to_network`, and `reversed_after_approval`. The value `reversed_after_approval` indicates the payment was [blocked by Stripe](https://stripe.com/docs/declines#blocked-payments) after bank authorization, and may temporarily appear as "pending" on a cardholder's statement.
|
||||
*/
|
||||
@@ -347,6 +364,11 @@ declare module 'stripe' {
|
||||
}
|
||||
|
||||
namespace Outcome {
|
||||
type AdviceCode =
|
||||
| 'confirm_card_data'
|
||||
| 'do_not_try_again'
|
||||
| 'try_again_later';
|
||||
|
||||
interface Rule {
|
||||
/**
|
||||
* The action taken on the payment.
|
||||
@@ -378,6 +400,10 @@ declare module 'stripe' {
|
||||
|
||||
alipay?: PaymentMethodDetails.Alipay;
|
||||
|
||||
alma?: PaymentMethodDetails.Alma;
|
||||
|
||||
amazon_pay?: PaymentMethodDetails.AmazonPay;
|
||||
|
||||
au_becs_debit?: PaymentMethodDetails.AuBecsDebit;
|
||||
|
||||
bacs_debit?: PaymentMethodDetails.BacsDebit;
|
||||
@@ -408,20 +434,30 @@ declare module 'stripe' {
|
||||
|
||||
interac_present?: PaymentMethodDetails.InteracPresent;
|
||||
|
||||
kakao_pay?: PaymentMethodDetails.KakaoPay;
|
||||
|
||||
klarna?: PaymentMethodDetails.Klarna;
|
||||
|
||||
konbini?: PaymentMethodDetails.Konbini;
|
||||
|
||||
kr_card?: PaymentMethodDetails.KrCard;
|
||||
|
||||
link?: PaymentMethodDetails.Link;
|
||||
|
||||
mobilepay?: PaymentMethodDetails.Mobilepay;
|
||||
|
||||
multibanco?: PaymentMethodDetails.Multibanco;
|
||||
|
||||
naver_pay?: PaymentMethodDetails.NaverPay;
|
||||
|
||||
oxxo?: PaymentMethodDetails.Oxxo;
|
||||
|
||||
p24?: PaymentMethodDetails.P24;
|
||||
|
||||
pay_by_bank?: PaymentMethodDetails.PayByBank;
|
||||
|
||||
payco?: PaymentMethodDetails.Payco;
|
||||
|
||||
paynow?: PaymentMethodDetails.Paynow;
|
||||
|
||||
paypal?: PaymentMethodDetails.Paypal;
|
||||
@@ -432,6 +468,8 @@ declare module 'stripe' {
|
||||
|
||||
revolut_pay?: PaymentMethodDetails.RevolutPay;
|
||||
|
||||
samsung_pay?: PaymentMethodDetails.SamsungPay;
|
||||
|
||||
sepa_credit_transfer?: PaymentMethodDetails.SepaCreditTransfer;
|
||||
|
||||
sepa_debit?: PaymentMethodDetails.SepaDebit;
|
||||
@@ -442,8 +480,10 @@ declare module 'stripe' {
|
||||
|
||||
swish?: PaymentMethodDetails.Swish;
|
||||
|
||||
twint?: PaymentMethodDetails.Twint;
|
||||
|
||||
/**
|
||||
* The type of transaction-specific details of the payment method used in the payment, one of `ach_credit_transfer`, `ach_debit`, `acss_debit`, `alipay`, `au_becs_debit`, `bancontact`, `card`, `card_present`, `eps`, `giropay`, `ideal`, `klarna`, `multibanco`, `p24`, `sepa_debit`, `sofort`, `stripe_account`, or `wechat`.
|
||||
* The type of transaction-specific details of the payment method used in the payment. See [PaymentMethod.type](https://stripe.com/docs/api/payment_methods/object#payment_method_object-type) for the full list of possible types.
|
||||
* An additional hash is included on `payment_method_details` with a name matching this value.
|
||||
* It contains information specific to the payment method.
|
||||
*/
|
||||
@@ -549,7 +589,12 @@ declare module 'stripe' {
|
||||
transit_number: string | null;
|
||||
}
|
||||
|
||||
interface Affirm {}
|
||||
interface Affirm {
|
||||
/**
|
||||
* The Affirm transaction ID associated with this payment.
|
||||
*/
|
||||
transaction_id: string | null;
|
||||
}
|
||||
|
||||
interface AfterpayClearpay {
|
||||
/**
|
||||
@@ -580,6 +625,57 @@ declare module 'stripe' {
|
||||
transaction_id: string | null;
|
||||
}
|
||||
|
||||
interface Alma {}
|
||||
|
||||
interface AmazonPay {
|
||||
funding?: AmazonPay.Funding;
|
||||
}
|
||||
|
||||
namespace AmazonPay {
|
||||
interface Funding {
|
||||
card?: Funding.Card;
|
||||
|
||||
/**
|
||||
* funding type of the underlying payment method.
|
||||
*/
|
||||
type: 'card' | null;
|
||||
}
|
||||
|
||||
namespace Funding {
|
||||
interface Card {
|
||||
/**
|
||||
* Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
|
||||
*/
|
||||
brand: string | null;
|
||||
|
||||
/**
|
||||
* Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
|
||||
*/
|
||||
country: string | null;
|
||||
|
||||
/**
|
||||
* Two-digit number representing the card's expiration month.
|
||||
*/
|
||||
exp_month: number | null;
|
||||
|
||||
/**
|
||||
* Four-digit number representing the card's expiration year.
|
||||
*/
|
||||
exp_year: number | null;
|
||||
|
||||
/**
|
||||
* Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
|
||||
*/
|
||||
funding: string | null;
|
||||
|
||||
/**
|
||||
* The last four digits of the card.
|
||||
*/
|
||||
last4: string | null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
interface AuBecsDebit {
|
||||
/**
|
||||
* Bank-State-Branch number of the bank account.
|
||||
@@ -672,7 +768,12 @@ declare module 'stripe' {
|
||||
type PreferredLanguage = 'de' | 'en' | 'fr' | 'nl';
|
||||
}
|
||||
|
||||
interface Blik {}
|
||||
interface Blik {
|
||||
/**
|
||||
* A unique and immutable identifier assigned by BLIK to every buyer.
|
||||
*/
|
||||
buyer_id: string | null;
|
||||
}
|
||||
|
||||
interface Boleto {
|
||||
/**
|
||||
@@ -688,7 +789,12 @@ declare module 'stripe' {
|
||||
amount_authorized: number | null;
|
||||
|
||||
/**
|
||||
* Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
|
||||
* Authorization code on the charge.
|
||||
*/
|
||||
authorization_code: string | null;
|
||||
|
||||
/**
|
||||
* Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
|
||||
*/
|
||||
brand: string | null;
|
||||
|
||||
@@ -773,7 +879,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;
|
||||
|
||||
@@ -782,8 +888,18 @@ declare module 'stripe' {
|
||||
*/
|
||||
network_token?: Card.NetworkToken | null;
|
||||
|
||||
/**
|
||||
* This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. This value will be present if it is returned by the financial network in the authorization response, and null otherwise.
|
||||
*/
|
||||
network_transaction_id: string | null;
|
||||
|
||||
overcapture?: Card.Overcapture;
|
||||
|
||||
/**
|
||||
* Status of a card based on the card issuer.
|
||||
*/
|
||||
regulated_status: Card.RegulatedStatus | null;
|
||||
|
||||
/**
|
||||
* Populated if this transaction used 3D Secure authentication.
|
||||
*/
|
||||
@@ -896,6 +1012,8 @@ declare module 'stripe' {
|
||||
type Status = 'available' | 'unavailable';
|
||||
}
|
||||
|
||||
type RegulatedStatus = 'regulated' | 'unregulated';
|
||||
|
||||
interface ThreeDSecure {
|
||||
/**
|
||||
* For authenticated transactions: how the customer was authenticated by
|
||||
@@ -1069,10 +1187,15 @@ 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;
|
||||
|
||||
/**
|
||||
* The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card.
|
||||
*/
|
||||
brand_product: string | null;
|
||||
|
||||
/**
|
||||
* When using manual capture, a future timestamp after which the charge will be automatically refunded if uncaptured.
|
||||
*/
|
||||
@@ -1146,10 +1269,15 @@ 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;
|
||||
|
||||
/**
|
||||
* This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. This value will be present if it is returned by the financial network in the authorization response, and null otherwise.
|
||||
*/
|
||||
network_transaction_id: string | null;
|
||||
|
||||
/**
|
||||
* Details about payments collected offline.
|
||||
*/
|
||||
@@ -1160,6 +1288,11 @@ declare module 'stripe' {
|
||||
*/
|
||||
overcapture_supported: boolean;
|
||||
|
||||
/**
|
||||
* EMV tag 5F2D. Preferred languages specified by the integrated circuit chip.
|
||||
*/
|
||||
preferred_locales: Array<string> | null;
|
||||
|
||||
/**
|
||||
* How card details were read in this transaction.
|
||||
*/
|
||||
@@ -1169,6 +1302,8 @@ declare module 'stripe' {
|
||||
* A collection of fields required to be displayed on receipts. Only required for EMV transactions.
|
||||
*/
|
||||
receipt: CardPresent.Receipt | null;
|
||||
|
||||
wallet?: CardPresent.Wallet;
|
||||
}
|
||||
|
||||
namespace CardPresent {
|
||||
@@ -1177,6 +1312,11 @@ declare module 'stripe' {
|
||||
* Time at which the payment was collected while offline
|
||||
*/
|
||||
stored_at: number | null;
|
||||
|
||||
/**
|
||||
* The method used to process this payment method offline. Only deferred is allowed.
|
||||
*/
|
||||
type: 'deferred' | null;
|
||||
}
|
||||
|
||||
type ReadMethod =
|
||||
@@ -1236,6 +1376,17 @@ declare module 'stripe' {
|
||||
namespace Receipt {
|
||||
type AccountType = 'checking' | 'credit' | 'prepaid' | 'unknown';
|
||||
}
|
||||
|
||||
interface Wallet {
|
||||
/**
|
||||
* The type of mobile wallet, one of `apple_pay`, `google_pay`, `samsung_pay`, or `unknown`.
|
||||
*/
|
||||
type: Wallet.Type;
|
||||
}
|
||||
|
||||
namespace Wallet {
|
||||
type Type = 'apple_pay' | 'google_pay' | 'samsung_pay' | 'unknown';
|
||||
}
|
||||
}
|
||||
|
||||
interface Cashapp {
|
||||
@@ -1515,10 +1666,15 @@ 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;
|
||||
|
||||
/**
|
||||
* This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. This value will be present if it is returned by the financial network in the authorization response, and null otherwise.
|
||||
*/
|
||||
network_transaction_id: string | null;
|
||||
|
||||
/**
|
||||
* EMV tag 5F2D. Preferred languages specified by the integrated circuit chip.
|
||||
*/
|
||||
@@ -1595,7 +1751,19 @@ declare module 'stripe' {
|
||||
}
|
||||
}
|
||||
|
||||
interface KakaoPay {
|
||||
/**
|
||||
* A unique identifier for the buyer as determined by the local payment processor.
|
||||
*/
|
||||
buyer_id: string | null;
|
||||
}
|
||||
|
||||
interface Klarna {
|
||||
/**
|
||||
* The payer details for this transaction.
|
||||
*/
|
||||
payer_details: Klarna.PayerDetails | null;
|
||||
|
||||
/**
|
||||
* The Klarna payment method used for this transaction.
|
||||
* Can be one of `pay_later`, `pay_now`, `pay_with_financing`, or `pay_in_installments`
|
||||
@@ -1604,11 +1772,29 @@ declare module 'stripe' {
|
||||
|
||||
/**
|
||||
* Preferred language of the Klarna authorization page that the customer is redirected to.
|
||||
* Can be one of `de-AT`, `en-AT`, `nl-BE`, `fr-BE`, `en-BE`, `de-DE`, `en-DE`, `da-DK`, `en-DK`, `es-ES`, `en-ES`, `fi-FI`, `sv-FI`, `en-FI`, `en-GB`, `en-IE`, `it-IT`, `en-IT`, `nl-NL`, `en-NL`, `nb-NO`, `en-NO`, `sv-SE`, `en-SE`, `en-US`, `es-US`, `fr-FR`, `en-FR`, `cs-CZ`, `en-CZ`, `el-GR`, `en-GR`, `en-AU`, `en-NZ`, `en-CA`, `fr-CA`, `pl-PL`, `en-PL`, `pt-PT`, `en-PT`, `de-CH`, `fr-CH`, `it-CH`, or `en-CH`
|
||||
* Can be one of `de-AT`, `en-AT`, `nl-BE`, `fr-BE`, `en-BE`, `de-DE`, `en-DE`, `da-DK`, `en-DK`, `es-ES`, `en-ES`, `fi-FI`, `sv-FI`, `en-FI`, `en-GB`, `en-IE`, `it-IT`, `en-IT`, `nl-NL`, `en-NL`, `nb-NO`, `en-NO`, `sv-SE`, `en-SE`, `en-US`, `es-US`, `fr-FR`, `en-FR`, `cs-CZ`, `en-CZ`, `ro-RO`, `en-RO`, `el-GR`, `en-GR`, `en-AU`, `en-NZ`, `en-CA`, `fr-CA`, `pl-PL`, `en-PL`, `pt-PT`, `en-PT`, `de-CH`, `fr-CH`, `it-CH`, or `en-CH`
|
||||
*/
|
||||
preferred_locale: string | null;
|
||||
}
|
||||
|
||||
namespace Klarna {
|
||||
interface PayerDetails {
|
||||
/**
|
||||
* The payer's address
|
||||
*/
|
||||
address: PayerDetails.Address | null;
|
||||
}
|
||||
|
||||
namespace PayerDetails {
|
||||
interface Address {
|
||||
/**
|
||||
* The payer address country
|
||||
*/
|
||||
country: string | null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
interface Konbini {
|
||||
/**
|
||||
* If the payment succeeded, this contains the details of the convenience store where the payment was completed.
|
||||
@@ -1629,6 +1815,49 @@ declare module 'stripe' {
|
||||
}
|
||||
}
|
||||
|
||||
interface KrCard {
|
||||
/**
|
||||
* The local credit or debit card brand.
|
||||
*/
|
||||
brand: KrCard.Brand | null;
|
||||
|
||||
/**
|
||||
* A unique identifier for the buyer as determined by the local payment processor.
|
||||
*/
|
||||
buyer_id: string | null;
|
||||
|
||||
/**
|
||||
* The last four digits of the card. This may not be present for American Express cards.
|
||||
*/
|
||||
last4: string | null;
|
||||
}
|
||||
|
||||
namespace KrCard {
|
||||
type Brand =
|
||||
| 'bc'
|
||||
| 'citi'
|
||||
| 'hana'
|
||||
| 'hyundai'
|
||||
| 'jeju'
|
||||
| 'jeonbuk'
|
||||
| 'kakaobank'
|
||||
| 'kbank'
|
||||
| 'kdbbank'
|
||||
| 'kookmin'
|
||||
| 'kwangju'
|
||||
| 'lotte'
|
||||
| 'mg'
|
||||
| 'nh'
|
||||
| 'post'
|
||||
| 'samsung'
|
||||
| 'savingsbank'
|
||||
| 'shinhan'
|
||||
| 'shinhyup'
|
||||
| 'suhyup'
|
||||
| 'tossbank'
|
||||
| 'woori';
|
||||
}
|
||||
|
||||
interface Link {
|
||||
/**
|
||||
* Two-letter ISO code representing the funding source country beneath the Link payment.
|
||||
@@ -1638,6 +1867,9 @@ declare module 'stripe' {
|
||||
}
|
||||
|
||||
interface Mobilepay {
|
||||
/**
|
||||
* Internal card details
|
||||
*/
|
||||
card: Mobilepay.Card | null;
|
||||
}
|
||||
|
||||
@@ -1682,6 +1914,13 @@ declare module 'stripe' {
|
||||
reference: string | null;
|
||||
}
|
||||
|
||||
interface NaverPay {
|
||||
/**
|
||||
* A unique identifier for the buyer as determined by the local payment processor.
|
||||
*/
|
||||
buyer_id: string | null;
|
||||
}
|
||||
|
||||
interface Oxxo {
|
||||
/**
|
||||
* OXXO reference number
|
||||
@@ -1738,6 +1977,15 @@ declare module 'stripe' {
|
||||
| 'volkswagen_bank';
|
||||
}
|
||||
|
||||
interface PayByBank {}
|
||||
|
||||
interface Payco {
|
||||
/**
|
||||
* A unique identifier for the buyer as determined by the local payment processor.
|
||||
*/
|
||||
buyer_id: string | null;
|
||||
}
|
||||
|
||||
interface Paynow {
|
||||
/**
|
||||
* Reference number associated with this PayNow payment
|
||||
@@ -1746,6 +1994,11 @@ declare module 'stripe' {
|
||||
}
|
||||
|
||||
interface Paypal {
|
||||
/**
|
||||
* Two-letter ISO code representing the buyer's country. Values are provided by PayPal directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
||||
*/
|
||||
country: string | null;
|
||||
|
||||
/**
|
||||
* Owner's email. Values are provided by PayPal directly
|
||||
* (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
||||
@@ -1808,7 +2061,61 @@ declare module 'stripe' {
|
||||
reference: string | null;
|
||||
}
|
||||
|
||||
interface RevolutPay {}
|
||||
interface RevolutPay {
|
||||
funding?: RevolutPay.Funding;
|
||||
}
|
||||
|
||||
namespace RevolutPay {
|
||||
interface Funding {
|
||||
card?: Funding.Card;
|
||||
|
||||
/**
|
||||
* funding type of the underlying payment method.
|
||||
*/
|
||||
type: 'card' | null;
|
||||
}
|
||||
|
||||
namespace Funding {
|
||||
interface Card {
|
||||
/**
|
||||
* Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
|
||||
*/
|
||||
brand: string | null;
|
||||
|
||||
/**
|
||||
* Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
|
||||
*/
|
||||
country: string | null;
|
||||
|
||||
/**
|
||||
* Two-digit number representing the card's expiration month.
|
||||
*/
|
||||
exp_month: number | null;
|
||||
|
||||
/**
|
||||
* Four-digit number representing the card's expiration year.
|
||||
*/
|
||||
exp_year: number | null;
|
||||
|
||||
/**
|
||||
* Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
|
||||
*/
|
||||
funding: string | null;
|
||||
|
||||
/**
|
||||
* The last four digits of the card.
|
||||
*/
|
||||
last4: string | null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
interface SamsungPay {
|
||||
/**
|
||||
* A unique identifier for the buyer as determined by the local payment processor.
|
||||
*/
|
||||
buyer_id: string | null;
|
||||
}
|
||||
|
||||
interface SepaCreditTransfer {
|
||||
/**
|
||||
@@ -1938,6 +2245,8 @@ declare module 'stripe' {
|
||||
verified_phone_last4: string | null;
|
||||
}
|
||||
|
||||
interface Twint {}
|
||||
|
||||
interface UsBankAccount {
|
||||
/**
|
||||
* Account holder type: individual or company.
|
||||
|
||||
18
server/node_modules/stripe/types/ChargesResource.d.ts
generated
vendored
18
server/node_modules/stripe/types/ChargesResource.d.ts
generated
vendored
@@ -11,7 +11,7 @@ declare module 'stripe' {
|
||||
application_fee?: number;
|
||||
|
||||
/**
|
||||
* A fee in cents (or local equivalent) that will be applied to the charge and transferred to the application owner's Stripe account. The request must be made with an OAuth key or the `Stripe-Account` header in order to take an application fee. For more information, see the application fees [documentation](https://stripe.com/docs/connect/direct-charges#collecting-fees).
|
||||
* A fee in cents (or local equivalent) that will be applied to the charge and transferred to the application owner's Stripe account. The request must be made with an OAuth key or the `Stripe-Account` header in order to take an application fee. For more information, see the application fees [documentation](https://stripe.com/docs/connect/direct-charges#collect-fees).
|
||||
*/
|
||||
application_fee_amount?: number;
|
||||
|
||||
@@ -48,7 +48,7 @@ declare module 'stripe' {
|
||||
metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
|
||||
|
||||
/**
|
||||
* The Stripe account ID for which these funds are intended. Automatically set if you use the `destination` parameter. For details, see [Creating Separate Charges and Transfers](https://stripe.com/docs/connect/separate-charges-and-transfers#on-behalf-of).
|
||||
* The Stripe account ID for which these funds are intended. Automatically set if you use the `destination` parameter. For details, see [Creating Separate Charges and Transfers](https://stripe.com/docs/connect/separate-charges-and-transfers#settlement-merchant).
|
||||
*/
|
||||
on_behalf_of?: string;
|
||||
|
||||
@@ -73,12 +73,14 @@ declare module 'stripe' {
|
||||
source?: string;
|
||||
|
||||
/**
|
||||
* For card charges, use `statement_descriptor_suffix` instead. Otherwise, you can use this value as the complete description of a charge on your customers' statements. Must contain at least one letter, maximum 22 characters.
|
||||
* For a non-card charge, text that appears on the customer's statement as the statement descriptor. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors).
|
||||
*
|
||||
* For a card charge, this value is ignored unless you don't specify a `statement_descriptor_suffix`, in which case this value is used as the suffix.
|
||||
*/
|
||||
statement_descriptor?: string;
|
||||
|
||||
/**
|
||||
* Provides information about the charge that customers see on their statements. Concatenated with the prefix (shortened descriptor) or statement descriptor that's set on the account to form the complete statement descriptor. Maximum 22 characters for the concatenated descriptor.
|
||||
* Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement. If the account has no prefix value, the suffix is concatenated to the account's statement descriptor.
|
||||
*/
|
||||
statement_descriptor_suffix?: string;
|
||||
|
||||
@@ -264,7 +266,7 @@ declare module 'stripe' {
|
||||
payment_intent?: string;
|
||||
|
||||
/**
|
||||
* Only return charges for this transfer group.
|
||||
* Only return charges for this transfer group, limited to 100.
|
||||
*/
|
||||
transfer_group?: string;
|
||||
}
|
||||
@@ -296,12 +298,14 @@ declare module 'stripe' {
|
||||
receipt_email?: string;
|
||||
|
||||
/**
|
||||
* For card charges, use `statement_descriptor_suffix` instead. Otherwise, you can use this value as the complete description of a charge on your customers' statements. Must contain at least one letter, maximum 22 characters.
|
||||
* For a non-card charge, text that appears on the customer's statement as the statement descriptor. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors).
|
||||
*
|
||||
* For a card charge, this value is ignored unless you don't specify a `statement_descriptor_suffix`, in which case this value is used as the suffix.
|
||||
*/
|
||||
statement_descriptor?: string;
|
||||
|
||||
/**
|
||||
* Provides information about the charge that customers see on their statements. Concatenated with the prefix (shortened descriptor) or statement descriptor that's set on the account to form the complete statement descriptor. Maximum 22 characters for the concatenated descriptor.
|
||||
* Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement. If the account has no prefix value, the suffix is concatenated to the account's statement descriptor.
|
||||
*/
|
||||
statement_descriptor_suffix?: string;
|
||||
|
||||
|
||||
585
server/node_modules/stripe/types/Checkout/Sessions.d.ts
generated
vendored
585
server/node_modules/stripe/types/Checkout/Sessions.d.ts
generated
vendored
File diff suppressed because it is too large
Load Diff
644
server/node_modules/stripe/types/Checkout/SessionsResource.d.ts
generated
vendored
644
server/node_modules/stripe/types/Checkout/SessionsResource.d.ts
generated
vendored
File diff suppressed because it is too large
Load Diff
2
server/node_modules/stripe/types/Climate/OrdersResource.d.ts
generated
vendored
2
server/node_modules/stripe/types/Climate/OrdersResource.d.ts
generated
vendored
@@ -139,7 +139,7 @@ declare module 'stripe' {
|
||||
list(options?: RequestOptions): ApiListPromise<Stripe.Climate.Order>;
|
||||
|
||||
/**
|
||||
* Cancels a Climate order. You can cancel an order within 30 days of creation. Stripe refunds the
|
||||
* Cancels a Climate order. You can cancel an order within 24 hours of creation. Stripe refunds the
|
||||
* reservation amount_subtotal, but not the amount_fees for user-triggered cancellations. Frontier
|
||||
* might cancel reservations if suppliers fail to deliver. If Frontier cancels the reservation, Stripe
|
||||
* provides 90 days advance notice and refunds the amount_total.
|
||||
|
||||
3
server/node_modules/stripe/types/Climate/Suppliers.d.ts
generated
vendored
3
server/node_modules/stripe/types/Climate/Suppliers.d.ts
generated
vendored
@@ -74,8 +74,7 @@ declare module 'stripe' {
|
||||
type RemovalPathway =
|
||||
| 'biomass_carbon_removal_and_storage'
|
||||
| 'direct_air_capture'
|
||||
| 'enhanced_weathering'
|
||||
| 'various';
|
||||
| 'enhanced_weathering';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
447
server/node_modules/stripe/types/ConfirmationTokens.d.ts
generated
vendored
447
server/node_modules/stripe/types/ConfirmationTokens.d.ts
generated
vendored
@@ -28,7 +28,7 @@ declare module 'stripe' {
|
||||
created: number;
|
||||
|
||||
/**
|
||||
* Time at which this ConfirmationToken expires and can no longer be used to confirm a PaymentIntent or SetupIntent. This is set to null once this ConfirmationToken has been used.
|
||||
* Time at which this ConfirmationToken expires and can no longer be used to confirm a PaymentIntent or SetupIntent.
|
||||
*/
|
||||
expires_at: number | null;
|
||||
|
||||
@@ -47,6 +47,11 @@ declare module 'stripe' {
|
||||
*/
|
||||
payment_intent: string | null;
|
||||
|
||||
/**
|
||||
* Payment-method-specific configuration for this ConfirmationToken.
|
||||
*/
|
||||
payment_method_options: ConfirmationToken.PaymentMethodOptions | null;
|
||||
|
||||
/**
|
||||
* Payment details collected by the Payment Element, used to create a PaymentMethod when a PaymentIntent or SetupIntent is confirmed with this ConfirmationToken.
|
||||
*/
|
||||
@@ -116,6 +121,22 @@ declare module 'stripe' {
|
||||
}
|
||||
}
|
||||
|
||||
interface PaymentMethodOptions {
|
||||
/**
|
||||
* This hash contains the card payment method options.
|
||||
*/
|
||||
card: PaymentMethodOptions.Card | null;
|
||||
}
|
||||
|
||||
namespace PaymentMethodOptions {
|
||||
interface Card {
|
||||
/**
|
||||
* The `cvc_update` Token collected from the Payment Element.
|
||||
*/
|
||||
cvc_token: string | null;
|
||||
}
|
||||
}
|
||||
|
||||
interface PaymentMethodPreview {
|
||||
acss_debit?: PaymentMethodPreview.AcssDebit;
|
||||
|
||||
@@ -125,6 +146,15 @@ declare module 'stripe' {
|
||||
|
||||
alipay?: PaymentMethodPreview.Alipay;
|
||||
|
||||
/**
|
||||
* This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to “unspecified”.
|
||||
*/
|
||||
allow_redisplay?: PaymentMethodPreview.AllowRedisplay;
|
||||
|
||||
alma?: PaymentMethodPreview.Alma;
|
||||
|
||||
amazon_pay?: PaymentMethodPreview.AmazonPay;
|
||||
|
||||
au_becs_debit?: PaymentMethodPreview.AuBecsDebit;
|
||||
|
||||
bacs_debit?: PaymentMethodPreview.BacsDebit;
|
||||
@@ -143,6 +173,11 @@ declare module 'stripe' {
|
||||
|
||||
cashapp?: PaymentMethodPreview.Cashapp;
|
||||
|
||||
/**
|
||||
* The ID of the Customer to which this PaymentMethod is saved. This will not be set when the PaymentMethod has not been saved to a Customer.
|
||||
*/
|
||||
customer: string | Stripe.Customer | null;
|
||||
|
||||
customer_balance?: PaymentMethodPreview.CustomerBalance;
|
||||
|
||||
eps?: PaymentMethodPreview.Eps;
|
||||
@@ -157,18 +192,30 @@ declare module 'stripe' {
|
||||
|
||||
interac_present?: PaymentMethodPreview.InteracPresent;
|
||||
|
||||
kakao_pay?: PaymentMethodPreview.KakaoPay;
|
||||
|
||||
klarna?: PaymentMethodPreview.Klarna;
|
||||
|
||||
konbini?: PaymentMethodPreview.Konbini;
|
||||
|
||||
kr_card?: PaymentMethodPreview.KrCard;
|
||||
|
||||
link?: PaymentMethodPreview.Link;
|
||||
|
||||
mobilepay?: PaymentMethodPreview.Mobilepay;
|
||||
|
||||
multibanco?: PaymentMethodPreview.Multibanco;
|
||||
|
||||
naver_pay?: PaymentMethodPreview.NaverPay;
|
||||
|
||||
oxxo?: PaymentMethodPreview.Oxxo;
|
||||
|
||||
p24?: PaymentMethodPreview.P24;
|
||||
|
||||
pay_by_bank?: PaymentMethodPreview.PayByBank;
|
||||
|
||||
payco?: PaymentMethodPreview.Payco;
|
||||
|
||||
paynow?: PaymentMethodPreview.Paynow;
|
||||
|
||||
paypal?: PaymentMethodPreview.Paypal;
|
||||
@@ -179,12 +226,16 @@ declare module 'stripe' {
|
||||
|
||||
revolut_pay?: PaymentMethodPreview.RevolutPay;
|
||||
|
||||
samsung_pay?: PaymentMethodPreview.SamsungPay;
|
||||
|
||||
sepa_debit?: PaymentMethodPreview.SepaDebit;
|
||||
|
||||
sofort?: PaymentMethodPreview.Sofort;
|
||||
|
||||
swish?: PaymentMethodPreview.Swish;
|
||||
|
||||
twint?: PaymentMethodPreview.Twint;
|
||||
|
||||
/**
|
||||
* The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.
|
||||
*/
|
||||
@@ -231,6 +282,12 @@ declare module 'stripe' {
|
||||
|
||||
interface Alipay {}
|
||||
|
||||
type AllowRedisplay = 'always' | 'limited' | 'unspecified';
|
||||
|
||||
interface Alma {}
|
||||
|
||||
interface AmazonPay {}
|
||||
|
||||
interface AuBecsDebit {
|
||||
/**
|
||||
* Six-digit number identifying bank and branch associated with this bank account.
|
||||
@@ -300,7 +357,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;
|
||||
|
||||
@@ -346,6 +403,11 @@ declare module 'stripe' {
|
||||
*/
|
||||
funding: string;
|
||||
|
||||
/**
|
||||
* Details of the original PaymentMethod that created this object.
|
||||
*/
|
||||
generated_from: Card.GeneratedFrom | null;
|
||||
|
||||
/**
|
||||
* Issuer identification number of the card. (For internal use only and not typically available in standard API requests.)
|
||||
*/
|
||||
@@ -366,6 +428,11 @@ declare module 'stripe' {
|
||||
*/
|
||||
networks: Card.Networks | null;
|
||||
|
||||
/**
|
||||
* Status of a card based on the card issuer.
|
||||
*/
|
||||
regulated_status: Card.RegulatedStatus | null;
|
||||
|
||||
/**
|
||||
* Contains details on how this Card may be used for 3D Secure authentication.
|
||||
*/
|
||||
@@ -395,9 +462,256 @@ declare module 'stripe' {
|
||||
cvc_check: string | null;
|
||||
}
|
||||
|
||||
interface GeneratedFrom {
|
||||
/**
|
||||
* The charge that created this object.
|
||||
*/
|
||||
charge: string | null;
|
||||
|
||||
/**
|
||||
* Transaction-specific details of the payment method used in the payment.
|
||||
*/
|
||||
payment_method_details: GeneratedFrom.PaymentMethodDetails | null;
|
||||
|
||||
/**
|
||||
* The ID of the SetupAttempt that generated this PaymentMethod, if any.
|
||||
*/
|
||||
setup_attempt: string | Stripe.SetupAttempt | null;
|
||||
}
|
||||
|
||||
namespace GeneratedFrom {
|
||||
interface PaymentMethodDetails {
|
||||
card_present?: PaymentMethodDetails.CardPresent;
|
||||
|
||||
/**
|
||||
* The type of payment method transaction-specific details from the transaction that generated this `card` payment method. Always `card_present`.
|
||||
*/
|
||||
type: string;
|
||||
}
|
||||
|
||||
namespace PaymentMethodDetails {
|
||||
interface CardPresent {
|
||||
/**
|
||||
* The authorized amount
|
||||
*/
|
||||
amount_authorized: number | null;
|
||||
|
||||
/**
|
||||
* Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
|
||||
*/
|
||||
brand: string | null;
|
||||
|
||||
/**
|
||||
* The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card.
|
||||
*/
|
||||
brand_product: string | null;
|
||||
|
||||
/**
|
||||
* When using manual capture, a future timestamp after which the charge will be automatically refunded if uncaptured.
|
||||
*/
|
||||
capture_before?: number;
|
||||
|
||||
/**
|
||||
* The cardholder name as read from the card, in [ISO 7813](https://en.wikipedia.org/wiki/ISO/IEC_7813) format. May include alphanumeric characters, special characters and first/last name separator (`/`). In some cases, the cardholder name may not be available depending on how the issuer has configured the card. Cardholder name is typically not available on swipe or contactless payments, such as those made with Apple Pay and Google Pay.
|
||||
*/
|
||||
cardholder_name: string | null;
|
||||
|
||||
/**
|
||||
* Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
|
||||
*/
|
||||
country: string | null;
|
||||
|
||||
/**
|
||||
* A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.)
|
||||
*/
|
||||
description?: string | null;
|
||||
|
||||
/**
|
||||
* Authorization response cryptogram.
|
||||
*/
|
||||
emv_auth_data: string | null;
|
||||
|
||||
/**
|
||||
* Two-digit number representing the card's expiration month.
|
||||
*/
|
||||
exp_month: number;
|
||||
|
||||
/**
|
||||
* Four-digit number representing the card's expiration year.
|
||||
*/
|
||||
exp_year: number;
|
||||
|
||||
/**
|
||||
* Uniquely identifies this particular card number. You can use this attribute to check whether two customers who've signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number.
|
||||
*
|
||||
* *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.*
|
||||
*/
|
||||
fingerprint: string | null;
|
||||
|
||||
/**
|
||||
* Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
|
||||
*/
|
||||
funding: string | null;
|
||||
|
||||
/**
|
||||
* ID of a card PaymentMethod generated from the card_present PaymentMethod that may be attached to a Customer for future transactions. Only present if it was possible to generate a card PaymentMethod.
|
||||
*/
|
||||
generated_card: string | null;
|
||||
|
||||
/**
|
||||
* Issuer identification number of the card. (For internal use only and not typically available in standard API requests.)
|
||||
*/
|
||||
iin?: string | null;
|
||||
|
||||
/**
|
||||
* Whether this [PaymentIntent](https://stripe.com/docs/api/payment_intents) is eligible for incremental authorizations. Request support using [request_incremental_authorization_support](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-payment_method_options-card_present-request_incremental_authorization_support).
|
||||
*/
|
||||
incremental_authorization_supported: boolean;
|
||||
|
||||
/**
|
||||
* The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.)
|
||||
*/
|
||||
issuer?: string | null;
|
||||
|
||||
/**
|
||||
* The last four digits of the card.
|
||||
*/
|
||||
last4: string | null;
|
||||
|
||||
/**
|
||||
* 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;
|
||||
|
||||
/**
|
||||
* This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. This value will be present if it is returned by the financial network in the authorization response, and null otherwise.
|
||||
*/
|
||||
network_transaction_id: string | null;
|
||||
|
||||
/**
|
||||
* Details about payments collected offline.
|
||||
*/
|
||||
offline: CardPresent.Offline | null;
|
||||
|
||||
/**
|
||||
* Defines whether the authorized amount can be over-captured or not
|
||||
*/
|
||||
overcapture_supported: boolean;
|
||||
|
||||
/**
|
||||
* EMV tag 5F2D. Preferred languages specified by the integrated circuit chip.
|
||||
*/
|
||||
preferred_locales: Array<string> | null;
|
||||
|
||||
/**
|
||||
* How card details were read in this transaction.
|
||||
*/
|
||||
read_method: CardPresent.ReadMethod | null;
|
||||
|
||||
/**
|
||||
* A collection of fields required to be displayed on receipts. Only required for EMV transactions.
|
||||
*/
|
||||
receipt: CardPresent.Receipt | null;
|
||||
|
||||
wallet?: CardPresent.Wallet;
|
||||
}
|
||||
|
||||
namespace CardPresent {
|
||||
interface Offline {
|
||||
/**
|
||||
* Time at which the payment was collected while offline
|
||||
*/
|
||||
stored_at: number | null;
|
||||
|
||||
/**
|
||||
* The method used to process this payment method offline. Only deferred is allowed.
|
||||
*/
|
||||
type: 'deferred' | null;
|
||||
}
|
||||
|
||||
type ReadMethod =
|
||||
| 'contact_emv'
|
||||
| 'contactless_emv'
|
||||
| 'contactless_magstripe_mode'
|
||||
| 'magnetic_stripe_fallback'
|
||||
| 'magnetic_stripe_track2';
|
||||
|
||||
interface Receipt {
|
||||
/**
|
||||
* The type of account being debited or credited
|
||||
*/
|
||||
account_type?: Receipt.AccountType;
|
||||
|
||||
/**
|
||||
* EMV tag 9F26, cryptogram generated by the integrated circuit chip.
|
||||
*/
|
||||
application_cryptogram: string | null;
|
||||
|
||||
/**
|
||||
* Mnenomic of the Application Identifier.
|
||||
*/
|
||||
application_preferred_name: string | null;
|
||||
|
||||
/**
|
||||
* Identifier for this transaction.
|
||||
*/
|
||||
authorization_code: string | null;
|
||||
|
||||
/**
|
||||
* EMV tag 8A. A code returned by the card issuer.
|
||||
*/
|
||||
authorization_response_code: string | null;
|
||||
|
||||
/**
|
||||
* Describes the method used by the cardholder to verify ownership of the card. One of the following: `approval`, `failure`, `none`, `offline_pin`, `offline_pin_and_signature`, `online_pin`, or `signature`.
|
||||
*/
|
||||
cardholder_verification_method: string | null;
|
||||
|
||||
/**
|
||||
* EMV tag 84. Similar to the application identifier stored on the integrated circuit chip.
|
||||
*/
|
||||
dedicated_file_name: string | null;
|
||||
|
||||
/**
|
||||
* The outcome of a series of EMV functions performed by the card reader.
|
||||
*/
|
||||
terminal_verification_results: string | null;
|
||||
|
||||
/**
|
||||
* An indication of various EMV functions performed during the transaction.
|
||||
*/
|
||||
transaction_status_information: string | null;
|
||||
}
|
||||
|
||||
namespace Receipt {
|
||||
type AccountType =
|
||||
| 'checking'
|
||||
| 'credit'
|
||||
| 'prepaid'
|
||||
| 'unknown';
|
||||
}
|
||||
|
||||
interface Wallet {
|
||||
/**
|
||||
* The type of mobile wallet, one of `apple_pay`, `google_pay`, `samsung_pay`, or `unknown`.
|
||||
*/
|
||||
type: Wallet.Type;
|
||||
}
|
||||
|
||||
namespace Wallet {
|
||||
type Type =
|
||||
| 'apple_pay'
|
||||
| 'google_pay'
|
||||
| 'samsung_pay'
|
||||
| 'unknown';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
interface Networks {
|
||||
/**
|
||||
* All available networks for the card.
|
||||
* All networks available for selection via [payment_method_options.card.network](https://stripe.com/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network).
|
||||
*/
|
||||
available: Array<string>;
|
||||
|
||||
@@ -407,6 +721,8 @@ declare module 'stripe' {
|
||||
preferred: string | null;
|
||||
}
|
||||
|
||||
type RegulatedStatus = 'regulated' | 'unregulated';
|
||||
|
||||
interface ThreeDSecureUsage {
|
||||
/**
|
||||
* Whether 3D Secure is supported on this card.
|
||||
@@ -508,10 +824,15 @@ 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;
|
||||
|
||||
/**
|
||||
* The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card.
|
||||
*/
|
||||
brand_product: string | null;
|
||||
|
||||
/**
|
||||
* The cardholder name as read from the card, in [ISO 7813](https://en.wikipedia.org/wiki/ISO/IEC_7813) format. May include alphanumeric characters, special characters and first/last name separator (`/`). In some cases, the cardholder name may not be available depending on how the issuer has configured the card. Cardholder name is typically not available on swipe or contactless payments, such as those made with Apple Pay and Google Pay.
|
||||
*/
|
||||
@@ -569,16 +890,28 @@ declare module 'stripe' {
|
||||
*/
|
||||
networks: CardPresent.Networks | null;
|
||||
|
||||
/**
|
||||
* Details about payment methods collected offline.
|
||||
*/
|
||||
offline: CardPresent.Offline | null;
|
||||
|
||||
/**
|
||||
* EMV tag 5F2D. Preferred languages specified by the integrated circuit chip.
|
||||
*/
|
||||
preferred_locales: Array<string> | null;
|
||||
|
||||
/**
|
||||
* How card details were read in this transaction.
|
||||
*/
|
||||
read_method: CardPresent.ReadMethod | null;
|
||||
|
||||
wallet?: CardPresent.Wallet;
|
||||
}
|
||||
|
||||
namespace CardPresent {
|
||||
interface Networks {
|
||||
/**
|
||||
* All available networks for the card.
|
||||
* All networks available for selection via [payment_method_options.card.network](https://stripe.com/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network).
|
||||
*/
|
||||
available: Array<string>;
|
||||
|
||||
@@ -588,12 +921,35 @@ declare module 'stripe' {
|
||||
preferred: string | null;
|
||||
}
|
||||
|
||||
interface Offline {
|
||||
/**
|
||||
* Time at which the payment was collected while offline
|
||||
*/
|
||||
stored_at: number | null;
|
||||
|
||||
/**
|
||||
* The method used to process this payment method offline. Only deferred is allowed.
|
||||
*/
|
||||
type: 'deferred' | null;
|
||||
}
|
||||
|
||||
type ReadMethod =
|
||||
| 'contact_emv'
|
||||
| 'contactless_emv'
|
||||
| 'contactless_magstripe_mode'
|
||||
| 'magnetic_stripe_fallback'
|
||||
| 'magnetic_stripe_track2';
|
||||
|
||||
interface Wallet {
|
||||
/**
|
||||
* The type of mobile wallet, one of `apple_pay`, `google_pay`, `samsung_pay`, or `unknown`.
|
||||
*/
|
||||
type: Wallet.Type;
|
||||
}
|
||||
|
||||
namespace Wallet {
|
||||
type Type = 'apple_pay' | 'google_pay' | 'samsung_pay' | 'unknown';
|
||||
}
|
||||
}
|
||||
|
||||
interface Cashapp {
|
||||
@@ -821,7 +1177,7 @@ declare module 'stripe' {
|
||||
namespace InteracPresent {
|
||||
interface Networks {
|
||||
/**
|
||||
* All available networks for the card.
|
||||
* All networks available for selection via [payment_method_options.card.network](https://stripe.com/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network).
|
||||
*/
|
||||
available: Array<string>;
|
||||
|
||||
@@ -839,11 +1195,13 @@ declare module 'stripe' {
|
||||
| 'magnetic_stripe_track2';
|
||||
}
|
||||
|
||||
interface KakaoPay {}
|
||||
|
||||
interface Klarna {
|
||||
/**
|
||||
* The customer's date of birth, if provided.
|
||||
*/
|
||||
dob: Klarna.Dob | null;
|
||||
dob?: Klarna.Dob | null;
|
||||
}
|
||||
|
||||
namespace Klarna {
|
||||
@@ -867,6 +1225,44 @@ declare module 'stripe' {
|
||||
|
||||
interface Konbini {}
|
||||
|
||||
interface KrCard {
|
||||
/**
|
||||
* The local credit or debit card brand.
|
||||
*/
|
||||
brand: KrCard.Brand | null;
|
||||
|
||||
/**
|
||||
* The last four digits of the card. This may not be present for American Express cards.
|
||||
*/
|
||||
last4: string | null;
|
||||
}
|
||||
|
||||
namespace KrCard {
|
||||
type Brand =
|
||||
| 'bc'
|
||||
| 'citi'
|
||||
| 'hana'
|
||||
| 'hyundai'
|
||||
| 'jeju'
|
||||
| 'jeonbuk'
|
||||
| 'kakaobank'
|
||||
| 'kbank'
|
||||
| 'kdbbank'
|
||||
| 'kookmin'
|
||||
| 'kwangju'
|
||||
| 'lotte'
|
||||
| 'mg'
|
||||
| 'nh'
|
||||
| 'post'
|
||||
| 'samsung'
|
||||
| 'savingsbank'
|
||||
| 'shinhan'
|
||||
| 'shinhyup'
|
||||
| 'suhyup'
|
||||
| 'tossbank'
|
||||
| 'woori';
|
||||
}
|
||||
|
||||
interface Link {
|
||||
/**
|
||||
* Account owner's email address.
|
||||
@@ -875,12 +1271,26 @@ declare module 'stripe' {
|
||||
|
||||
/**
|
||||
* [Deprecated] This is a legacy parameter that no longer has any function.
|
||||
* @deprecated
|
||||
*/
|
||||
persistent_token?: string;
|
||||
}
|
||||
|
||||
interface Mobilepay {}
|
||||
|
||||
interface Multibanco {}
|
||||
|
||||
interface NaverPay {
|
||||
/**
|
||||
* Whether to fund this transaction with Naver Pay points or a card.
|
||||
*/
|
||||
funding: NaverPay.Funding;
|
||||
}
|
||||
|
||||
namespace NaverPay {
|
||||
type Funding = 'card' | 'points';
|
||||
}
|
||||
|
||||
interface Oxxo {}
|
||||
|
||||
interface P24 {
|
||||
@@ -920,9 +1330,18 @@ declare module 'stripe' {
|
||||
| 'volkswagen_bank';
|
||||
}
|
||||
|
||||
interface PayByBank {}
|
||||
|
||||
interface Payco {}
|
||||
|
||||
interface Paynow {}
|
||||
|
||||
interface Paypal {
|
||||
/**
|
||||
* Two-letter ISO code representing the buyer's country. Values are provided by PayPal directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
||||
*/
|
||||
country: string | null;
|
||||
|
||||
/**
|
||||
* Owner's email. Values are provided by PayPal directly
|
||||
* (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
||||
@@ -941,6 +1360,8 @@ declare module 'stripe' {
|
||||
|
||||
interface RevolutPay {}
|
||||
|
||||
interface SamsungPay {}
|
||||
|
||||
interface SepaDebit {
|
||||
/**
|
||||
* Bank code of bank associated with the bank account.
|
||||
@@ -996,11 +1417,15 @@ declare module 'stripe' {
|
||||
|
||||
interface Swish {}
|
||||
|
||||
interface Twint {}
|
||||
|
||||
type Type =
|
||||
| 'acss_debit'
|
||||
| 'affirm'
|
||||
| 'afterpay_clearpay'
|
||||
| 'alipay'
|
||||
| 'alma'
|
||||
| 'amazon_pay'
|
||||
| 'au_becs_debit'
|
||||
| 'bacs_debit'
|
||||
| 'bancontact'
|
||||
@@ -1016,20 +1441,28 @@ declare module 'stripe' {
|
||||
| 'grabpay'
|
||||
| 'ideal'
|
||||
| 'interac_present'
|
||||
| 'kakao_pay'
|
||||
| 'klarna'
|
||||
| 'konbini'
|
||||
| 'kr_card'
|
||||
| 'link'
|
||||
| 'mobilepay'
|
||||
| 'multibanco'
|
||||
| 'naver_pay'
|
||||
| 'oxxo'
|
||||
| 'p24'
|
||||
| 'pay_by_bank'
|
||||
| 'payco'
|
||||
| 'paynow'
|
||||
| 'paypal'
|
||||
| 'pix'
|
||||
| 'promptpay'
|
||||
| 'revolut_pay'
|
||||
| 'samsung_pay'
|
||||
| 'sepa_debit'
|
||||
| 'sofort'
|
||||
| 'swish'
|
||||
| 'twint'
|
||||
| 'us_bank_account'
|
||||
| 'wechat_pay'
|
||||
| 'zip';
|
||||
|
||||
33
server/node_modules/stripe/types/CreditNoteLineItems.d.ts
generated
vendored
33
server/node_modules/stripe/types/CreditNoteLineItems.d.ts
generated
vendored
@@ -51,6 +51,11 @@ declare module 'stripe' {
|
||||
*/
|
||||
livemode: boolean;
|
||||
|
||||
/**
|
||||
* The pretax credit amounts (ex: discount, credit grants, etc) for this line item.
|
||||
*/
|
||||
pretax_credit_amounts: Array<CreditNoteLineItem.PretaxCreditAmount>;
|
||||
|
||||
/**
|
||||
* The number of units of product being credited.
|
||||
*/
|
||||
@@ -100,6 +105,34 @@ declare module 'stripe' {
|
||||
discount: string | Stripe.Discount | Stripe.DeletedDiscount;
|
||||
}
|
||||
|
||||
interface PretaxCreditAmount {
|
||||
/**
|
||||
* The amount, in cents (or local equivalent), of the pretax credit amount.
|
||||
*/
|
||||
amount: number;
|
||||
|
||||
/**
|
||||
* The credit balance transaction that was applied to get this pretax credit amount.
|
||||
*/
|
||||
credit_balance_transaction?:
|
||||
| string
|
||||
| Stripe.Billing.CreditBalanceTransaction;
|
||||
|
||||
/**
|
||||
* The discount that was applied to get this pretax credit amount.
|
||||
*/
|
||||
discount?: string | Stripe.Discount | Stripe.DeletedDiscount;
|
||||
|
||||
/**
|
||||
* Type of the pretax credit amount referenced.
|
||||
*/
|
||||
type: PretaxCreditAmount.Type;
|
||||
}
|
||||
|
||||
namespace PretaxCreditAmount {
|
||||
type Type = 'credit_balance_transaction' | 'discount';
|
||||
}
|
||||
|
||||
interface TaxAmount {
|
||||
/**
|
||||
* The amount, in cents (or local equivalent), of the tax.
|
||||
|
||||
37
server/node_modules/stripe/types/CreditNotes.d.ts
generated
vendored
37
server/node_modules/stripe/types/CreditNotes.d.ts
generated
vendored
@@ -106,6 +106,11 @@ declare module 'stripe' {
|
||||
*/
|
||||
pdf: string;
|
||||
|
||||
/**
|
||||
* The pretax credit amounts (ex: discount, credit grants, etc) for all line items.
|
||||
*/
|
||||
pretax_credit_amounts: Array<CreditNote.PretaxCreditAmount>;
|
||||
|
||||
/**
|
||||
* Reason for issuing this credit note, one of `duplicate`, `fraudulent`, `order_change`, or `product_unsatisfactory`
|
||||
*/
|
||||
@@ -175,6 +180,34 @@ declare module 'stripe' {
|
||||
discount: string | Stripe.Discount | Stripe.DeletedDiscount;
|
||||
}
|
||||
|
||||
interface PretaxCreditAmount {
|
||||
/**
|
||||
* The amount, in cents (or local equivalent), of the pretax credit amount.
|
||||
*/
|
||||
amount: number;
|
||||
|
||||
/**
|
||||
* The credit balance transaction that was applied to get this pretax credit amount.
|
||||
*/
|
||||
credit_balance_transaction?:
|
||||
| string
|
||||
| Stripe.Billing.CreditBalanceTransaction;
|
||||
|
||||
/**
|
||||
* The discount that was applied to get this pretax credit amount.
|
||||
*/
|
||||
discount?: string | Stripe.Discount | Stripe.DeletedDiscount;
|
||||
|
||||
/**
|
||||
* Type of the pretax credit amount referenced.
|
||||
*/
|
||||
type: PretaxCreditAmount.Type;
|
||||
}
|
||||
|
||||
namespace PretaxCreditAmount {
|
||||
type Type = 'credit_balance_transaction' | 'discount';
|
||||
}
|
||||
|
||||
type Reason =
|
||||
| 'duplicate'
|
||||
| 'fraudulent'
|
||||
@@ -216,9 +249,9 @@ declare module 'stripe' {
|
||||
amount: number;
|
||||
|
||||
/**
|
||||
* Tax rates can be applied to [invoices](https://stripe.com/docs/billing/invoices/tax-rates), [subscriptions](https://stripe.com/docs/billing/subscriptions/taxes) and [Checkout Sessions](https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates) to collect tax.
|
||||
* Tax rates can be applied to [invoices](https://stripe.com/invoicing/taxes/tax-rates), [subscriptions](https://stripe.com/billing/taxes/tax-rates) and [Checkout Sessions](https://stripe.com/payments/checkout/use-manual-tax-rates) to collect tax.
|
||||
*
|
||||
* Related guide: [Tax rates](https://stripe.com/docs/billing/taxes/tax-rates)
|
||||
* Related guide: [Tax rates](https://stripe.com/billing/taxes/tax-rates)
|
||||
*/
|
||||
rate: Stripe.TaxRate;
|
||||
|
||||
|
||||
29
server/node_modules/stripe/types/CreditNotesResource.d.ts
generated
vendored
29
server/node_modules/stripe/types/CreditNotesResource.d.ts
generated
vendored
@@ -23,6 +23,11 @@ declare module 'stripe' {
|
||||
*/
|
||||
effective_at?: number;
|
||||
|
||||
/**
|
||||
* Type of email to send to the customer, one of `credit_note` or `none` and the default is `credit_note`.
|
||||
*/
|
||||
email_type?: CreditNoteCreateParams.EmailType;
|
||||
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
@@ -70,9 +75,11 @@ declare module 'stripe' {
|
||||
}
|
||||
|
||||
namespace CreditNoteCreateParams {
|
||||
type EmailType = 'credit_note' | 'none';
|
||||
|
||||
interface Line {
|
||||
/**
|
||||
* The line item amount to credit. Only valid when `type` is `invoice_line_item`.
|
||||
* The line item amount to credit. Only valid when `type` is `invoice_line_item`. If invoice is set up with `automatic_tax[enabled]=true`, this amount is tax exclusive
|
||||
*/
|
||||
amount?: number;
|
||||
|
||||
@@ -226,6 +233,11 @@ declare module 'stripe' {
|
||||
*/
|
||||
effective_at?: number;
|
||||
|
||||
/**
|
||||
* Type of email to send to the customer, one of `credit_note` or `none` and the default is `credit_note`.
|
||||
*/
|
||||
email_type?: CreditNoteListPreviewLineItemsParams.EmailType;
|
||||
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
@@ -273,9 +285,11 @@ declare module 'stripe' {
|
||||
}
|
||||
|
||||
namespace CreditNoteListPreviewLineItemsParams {
|
||||
type EmailType = 'credit_note' | 'none';
|
||||
|
||||
interface Line {
|
||||
/**
|
||||
* The line item amount to credit. Only valid when `type` is `invoice_line_item`.
|
||||
* The line item amount to credit. Only valid when `type` is `invoice_line_item`. If invoice is set up with `automatic_tax[enabled]=true`, this amount is tax exclusive
|
||||
*/
|
||||
amount?: number;
|
||||
|
||||
@@ -376,6 +390,11 @@ declare module 'stripe' {
|
||||
*/
|
||||
effective_at?: number;
|
||||
|
||||
/**
|
||||
* Type of email to send to the customer, one of `credit_note` or `none` and the default is `credit_note`.
|
||||
*/
|
||||
email_type?: CreditNotePreviewParams.EmailType;
|
||||
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
@@ -423,9 +442,11 @@ declare module 'stripe' {
|
||||
}
|
||||
|
||||
namespace CreditNotePreviewParams {
|
||||
type EmailType = 'credit_note' | 'none';
|
||||
|
||||
interface Line {
|
||||
/**
|
||||
* The line item amount to credit. Only valid when `type` is `invoice_line_item`.
|
||||
* The line item amount to credit. Only valid when `type` is `invoice_line_item`. If invoice is set up with `automatic_tax[enabled]=true`, this amount is tax exclusive
|
||||
*/
|
||||
amount?: number;
|
||||
|
||||
@@ -566,7 +587,7 @@ declare module 'stripe' {
|
||||
list(options?: RequestOptions): ApiListPromise<Stripe.CreditNote>;
|
||||
|
||||
/**
|
||||
* When retrieving a credit note, you'll get a lines property containing the the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.
|
||||
* When retrieving a credit note, you'll get a lines property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.
|
||||
*/
|
||||
listLineItems(
|
||||
id: string,
|
||||
|
||||
92
server/node_modules/stripe/types/CustomerSessions.d.ts
generated
vendored
92
server/node_modules/stripe/types/CustomerSessions.d.ts
generated
vendored
@@ -3,8 +3,12 @@
|
||||
declare module 'stripe' {
|
||||
namespace Stripe {
|
||||
/**
|
||||
* A customer session allows you to grant client access to Stripe's frontend SDKs (like StripeJs)
|
||||
* control over a customer.
|
||||
* A Customer Session allows you to grant Stripe's frontend SDKs (like Stripe.js) client-side access
|
||||
* control over a Customer.
|
||||
*
|
||||
* Related guides: [Customer Session with the Payment Element](https://stripe.com/payments/accept-a-payment-deferred?platform=web&type=payment#save-payment-methods),
|
||||
* [Customer Session with the Pricing Table](https://stripe.com/payments/checkout/pricing-table#customer-session),
|
||||
* [Customer Session with the Buy Button](https://stripe.com/payment-links/buy-button#pass-an-existing-customer).
|
||||
*/
|
||||
interface CustomerSession {
|
||||
/**
|
||||
@@ -13,14 +17,14 @@ declare module 'stripe' {
|
||||
object: 'customer_session';
|
||||
|
||||
/**
|
||||
* The client secret of this customer session. Used on the client to set up secure access to the given `customer`.
|
||||
* The client secret of this Customer Session. Used on the client to set up secure access to the given `customer`.
|
||||
*
|
||||
* The client secret can be used to provide access to `customer` from your frontend. It should not be stored, logged, or exposed to anyone other than the relevant customer. Make sure that you have TLS enabled on any page that includes the client secret.
|
||||
*/
|
||||
client_secret: string;
|
||||
|
||||
/**
|
||||
* Configuration for the components supported by this customer session.
|
||||
* Configuration for the components supported by this Customer Session.
|
||||
*/
|
||||
components?: CustomerSession.Components;
|
||||
|
||||
@@ -30,12 +34,12 @@ declare module 'stripe' {
|
||||
created: number;
|
||||
|
||||
/**
|
||||
* The customer the customer session was created for.
|
||||
* The Customer the Customer Session was created for.
|
||||
*/
|
||||
customer: string | Stripe.Customer;
|
||||
|
||||
/**
|
||||
* The timestamp at which this customer session will expire.
|
||||
* The timestamp at which this Customer Session will expire.
|
||||
*/
|
||||
expires_at: number;
|
||||
|
||||
@@ -52,6 +56,11 @@ declare module 'stripe' {
|
||||
*/
|
||||
buy_button: Components.BuyButton;
|
||||
|
||||
/**
|
||||
* This hash contains whether the Payment Element is enabled and the features it supports.
|
||||
*/
|
||||
payment_element: Components.PaymentElement;
|
||||
|
||||
/**
|
||||
* This hash contains whether the pricing table is enabled.
|
||||
*/
|
||||
@@ -66,6 +75,77 @@ declare module 'stripe' {
|
||||
enabled: boolean;
|
||||
}
|
||||
|
||||
interface PaymentElement {
|
||||
/**
|
||||
* Whether the Payment Element is enabled.
|
||||
*/
|
||||
enabled: boolean;
|
||||
|
||||
/**
|
||||
* This hash defines whether the Payment Element supports certain features.
|
||||
*/
|
||||
features: PaymentElement.Features | null;
|
||||
}
|
||||
|
||||
namespace PaymentElement {
|
||||
interface Features {
|
||||
/**
|
||||
* A list of [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) values that controls which saved payment methods the Payment Element displays by filtering to only show payment methods with an `allow_redisplay` value that is present in this list.
|
||||
*
|
||||
* If not specified, defaults to ["always"]. In order to display all saved payment methods, specify ["always", "limited", "unspecified"].
|
||||
*/
|
||||
payment_method_allow_redisplay_filters: Array<
|
||||
Features.PaymentMethodAllowRedisplayFilter
|
||||
>;
|
||||
|
||||
/**
|
||||
* Controls whether or not the Payment Element shows saved payment methods. This parameter defaults to `disabled`.
|
||||
*/
|
||||
payment_method_redisplay: Features.PaymentMethodRedisplay;
|
||||
|
||||
/**
|
||||
* Determines the max number of saved payment methods for the Payment Element to display. This parameter defaults to `3`.
|
||||
*/
|
||||
payment_method_redisplay_limit: number | null;
|
||||
|
||||
/**
|
||||
* Controls whether the Payment Element displays the option to remove a saved payment method. This parameter defaults to `disabled`.
|
||||
*
|
||||
* Allowing buyers to remove their saved payment methods impacts subscriptions that depend on that payment method. Removing the payment method detaches the [`customer` object](https://docs.stripe.com/api/payment_methods/object#payment_method_object-customer) from that [PaymentMethod](https://docs.stripe.com/api/payment_methods).
|
||||
*/
|
||||
payment_method_remove: Features.PaymentMethodRemove;
|
||||
|
||||
/**
|
||||
* Controls whether the Payment Element displays a checkbox offering to save a new payment method. This parameter defaults to `disabled`.
|
||||
*
|
||||
* If a customer checks the box, the [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) value on the PaymentMethod is set to `'always'` at confirmation time. For PaymentIntents, the [`setup_future_usage`](https://docs.stripe.com/api/payment_intents/object#payment_intent_object-setup_future_usage) value is also set to the value defined in `payment_method_save_usage`.
|
||||
*/
|
||||
payment_method_save: Features.PaymentMethodSave;
|
||||
|
||||
/**
|
||||
* When using PaymentIntents and the customer checks the save checkbox, this field determines the [`setup_future_usage`](https://docs.stripe.com/api/payment_intents/object#payment_intent_object-setup_future_usage) value used to confirm the PaymentIntent.
|
||||
*
|
||||
* When using SetupIntents, directly configure the [`usage`](https://docs.stripe.com/api/setup_intents/object#setup_intent_object-usage) value on SetupIntent creation.
|
||||
*/
|
||||
payment_method_save_usage: Features.PaymentMethodSaveUsage | null;
|
||||
}
|
||||
|
||||
namespace Features {
|
||||
type PaymentMethodAllowRedisplayFilter =
|
||||
| 'always'
|
||||
| 'limited'
|
||||
| 'unspecified';
|
||||
|
||||
type PaymentMethodRedisplay = 'disabled' | 'enabled';
|
||||
|
||||
type PaymentMethodRemove = 'disabled' | 'enabled';
|
||||
|
||||
type PaymentMethodSave = 'disabled' | 'enabled';
|
||||
|
||||
type PaymentMethodSaveUsage = 'off_session' | 'on_session';
|
||||
}
|
||||
}
|
||||
|
||||
interface PricingTable {
|
||||
/**
|
||||
* Whether the pricing table is enabled.
|
||||
|
||||
80
server/node_modules/stripe/types/CustomerSessionsResource.d.ts
generated
vendored
80
server/node_modules/stripe/types/CustomerSessionsResource.d.ts
generated
vendored
@@ -9,7 +9,7 @@ declare module 'stripe' {
|
||||
components: CustomerSessionCreateParams.Components;
|
||||
|
||||
/**
|
||||
* The ID of an existing customer for which to create the customer session.
|
||||
* The ID of an existing customer for which to create the Customer Session.
|
||||
*/
|
||||
customer: string;
|
||||
|
||||
@@ -26,6 +26,11 @@ declare module 'stripe' {
|
||||
*/
|
||||
buy_button?: Components.BuyButton;
|
||||
|
||||
/**
|
||||
* Configuration for the Payment Element.
|
||||
*/
|
||||
payment_element?: Components.PaymentElement;
|
||||
|
||||
/**
|
||||
* Configuration for the pricing table.
|
||||
*/
|
||||
@@ -40,6 +45,77 @@ declare module 'stripe' {
|
||||
enabled: boolean;
|
||||
}
|
||||
|
||||
interface PaymentElement {
|
||||
/**
|
||||
* Whether the Payment Element is enabled.
|
||||
*/
|
||||
enabled: boolean;
|
||||
|
||||
/**
|
||||
* This hash defines whether the Payment Element supports certain features.
|
||||
*/
|
||||
features?: PaymentElement.Features;
|
||||
}
|
||||
|
||||
namespace PaymentElement {
|
||||
interface Features {
|
||||
/**
|
||||
* A list of [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) values that controls which saved payment methods the Payment Element displays by filtering to only show payment methods with an `allow_redisplay` value that is present in this list.
|
||||
*
|
||||
* If not specified, defaults to ["always"]. In order to display all saved payment methods, specify ["always", "limited", "unspecified"].
|
||||
*/
|
||||
payment_method_allow_redisplay_filters?: Array<
|
||||
Features.PaymentMethodAllowRedisplayFilter
|
||||
>;
|
||||
|
||||
/**
|
||||
* Controls whether or not the Payment Element shows saved payment methods. This parameter defaults to `disabled`.
|
||||
*/
|
||||
payment_method_redisplay?: Features.PaymentMethodRedisplay;
|
||||
|
||||
/**
|
||||
* Determines the max number of saved payment methods for the Payment Element to display. This parameter defaults to `3`.
|
||||
*/
|
||||
payment_method_redisplay_limit?: number;
|
||||
|
||||
/**
|
||||
* Controls whether the Payment Element displays the option to remove a saved payment method. This parameter defaults to `disabled`.
|
||||
*
|
||||
* Allowing buyers to remove their saved payment methods impacts subscriptions that depend on that payment method. Removing the payment method detaches the [`customer` object](https://docs.stripe.com/api/payment_methods/object#payment_method_object-customer) from that [PaymentMethod](https://docs.stripe.com/api/payment_methods).
|
||||
*/
|
||||
payment_method_remove?: Features.PaymentMethodRemove;
|
||||
|
||||
/**
|
||||
* Controls whether the Payment Element displays a checkbox offering to save a new payment method. This parameter defaults to `disabled`.
|
||||
*
|
||||
* If a customer checks the box, the [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) value on the PaymentMethod is set to `'always'` at confirmation time. For PaymentIntents, the [`setup_future_usage`](https://docs.stripe.com/api/payment_intents/object#payment_intent_object-setup_future_usage) value is also set to the value defined in `payment_method_save_usage`.
|
||||
*/
|
||||
payment_method_save?: Features.PaymentMethodSave;
|
||||
|
||||
/**
|
||||
* When using PaymentIntents and the customer checks the save checkbox, this field determines the [`setup_future_usage`](https://docs.stripe.com/api/payment_intents/object#payment_intent_object-setup_future_usage) value used to confirm the PaymentIntent.
|
||||
*
|
||||
* When using SetupIntents, directly configure the [`usage`](https://docs.stripe.com/api/setup_intents/object#setup_intent_object-usage) value on SetupIntent creation.
|
||||
*/
|
||||
payment_method_save_usage?: Features.PaymentMethodSaveUsage;
|
||||
}
|
||||
|
||||
namespace Features {
|
||||
type PaymentMethodAllowRedisplayFilter =
|
||||
| 'always'
|
||||
| 'limited'
|
||||
| 'unspecified';
|
||||
|
||||
type PaymentMethodRedisplay = 'disabled' | 'enabled';
|
||||
|
||||
type PaymentMethodRemove = 'disabled' | 'enabled';
|
||||
|
||||
type PaymentMethodSave = 'disabled' | 'enabled';
|
||||
|
||||
type PaymentMethodSaveUsage = 'off_session' | 'on_session';
|
||||
}
|
||||
}
|
||||
|
||||
interface PricingTable {
|
||||
/**
|
||||
* Whether the pricing table is enabled.
|
||||
@@ -51,7 +127,7 @@ declare module 'stripe' {
|
||||
|
||||
class CustomerSessionsResource {
|
||||
/**
|
||||
* Creates a customer session object that includes a single-use client secret that you can use on your front-end to grant client-side API access for certain customer resources.
|
||||
* Creates a Customer Session object that includes a single-use client secret that you can use on your front-end to grant client-side API access for certain customer resources.
|
||||
*/
|
||||
create(
|
||||
params: CustomerSessionCreateParams,
|
||||
|
||||
12
server/node_modules/stripe/types/Customers.d.ts
generated
vendored
12
server/node_modules/stripe/types/Customers.d.ts
generated
vendored
@@ -3,9 +3,8 @@
|
||||
declare module 'stripe' {
|
||||
namespace Stripe {
|
||||
/**
|
||||
* This object represents a customer of your business. Use it to create recurring charges and track payments that belong to the same customer.
|
||||
*
|
||||
* Related guide: [Save a card during payment](https://stripe.com/docs/payments/save-during-payment)
|
||||
* This object represents a customer of your business. Use it to [create recurring charges](https://stripe.com/docs/invoicing/customer), [save payment](https://stripe.com/docs/payments/save-during-payment) and contact information,
|
||||
* and track payments that belong to the same customer.
|
||||
*/
|
||||
interface Customer {
|
||||
/**
|
||||
@@ -109,7 +108,7 @@ declare module 'stripe' {
|
||||
name?: string | null;
|
||||
|
||||
/**
|
||||
* The suffix of the customer's next invoice number (for example, 0001).
|
||||
* The suffix of the customer's next invoice number (for example, 0001). When the account uses account level sequencing, this parameter is ignored in API requests and the field omitted in API responses.
|
||||
*/
|
||||
next_invoice_sequence?: number;
|
||||
|
||||
@@ -197,6 +196,11 @@ declare module 'stripe' {
|
||||
* How line-item prices and amounts will be displayed with respect to tax on invoice PDFs.
|
||||
*/
|
||||
amount_tax_display: string | null;
|
||||
|
||||
/**
|
||||
* ID of the invoice rendering template to be used for this customer's invoices. If set, the template will be used on all invoices for this customer unless a template is set directly on the invoice.
|
||||
*/
|
||||
template: string | null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
105
server/node_modules/stripe/types/CustomersResource.d.ts
generated
vendored
105
server/node_modules/stripe/types/CustomersResource.d.ts
generated
vendored
@@ -171,6 +171,11 @@ declare module 'stripe' {
|
||||
amount_tax_display?: Stripe.Emptyable<
|
||||
RenderingOptions.AmountTaxDisplay
|
||||
>;
|
||||
|
||||
/**
|
||||
* ID of the invoice rendering template to use for future invoices.
|
||||
*/
|
||||
template?: string;
|
||||
}
|
||||
|
||||
namespace RenderingOptions {
|
||||
@@ -215,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`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `no_voec`, `nz_gst`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat`
|
||||
* Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `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`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin`
|
||||
*/
|
||||
type: TaxIdDatum.Type;
|
||||
|
||||
@@ -229,24 +234,35 @@ declare module 'stripe' {
|
||||
type Type =
|
||||
| 'ad_nrt'
|
||||
| 'ae_trn'
|
||||
| 'al_tin'
|
||||
| 'am_tin'
|
||||
| 'ao_tin'
|
||||
| 'ar_cuit'
|
||||
| 'au_abn'
|
||||
| 'au_arn'
|
||||
| 'ba_tin'
|
||||
| 'bb_tin'
|
||||
| 'bg_uic'
|
||||
| 'bh_vat'
|
||||
| 'bo_tin'
|
||||
| 'br_cnpj'
|
||||
| 'br_cpf'
|
||||
| 'bs_tin'
|
||||
| 'by_tin'
|
||||
| 'ca_bn'
|
||||
| 'ca_gst_hst'
|
||||
| 'ca_pst_bc'
|
||||
| 'ca_pst_mb'
|
||||
| 'ca_pst_sk'
|
||||
| 'ca_qst'
|
||||
| 'cd_nif'
|
||||
| 'ch_uid'
|
||||
| 'ch_vat'
|
||||
| 'cl_tin'
|
||||
| 'cn_tin'
|
||||
| 'co_nit'
|
||||
| 'cr_tin'
|
||||
| 'de_stn'
|
||||
| 'do_rcn'
|
||||
| 'ec_ruc'
|
||||
| 'eg_tin'
|
||||
@@ -255,7 +271,9 @@ declare module 'stripe' {
|
||||
| 'eu_vat'
|
||||
| 'gb_vat'
|
||||
| 'ge_vat'
|
||||
| 'gn_nif'
|
||||
| 'hk_br'
|
||||
| 'hr_oib'
|
||||
| 'hu_tin'
|
||||
| 'id_npwp'
|
||||
| 'il_vat'
|
||||
@@ -265,15 +283,26 @@ declare module 'stripe' {
|
||||
| 'jp_rn'
|
||||
| 'jp_trn'
|
||||
| 'ke_pin'
|
||||
| 'kh_tin'
|
||||
| 'kr_brn'
|
||||
| 'kz_bin'
|
||||
| 'li_uid'
|
||||
| 'li_vat'
|
||||
| 'ma_vat'
|
||||
| 'md_vat'
|
||||
| 'me_pib'
|
||||
| 'mk_vat'
|
||||
| 'mr_nif'
|
||||
| 'mx_rfc'
|
||||
| 'my_frp'
|
||||
| 'my_itn'
|
||||
| 'my_sst'
|
||||
| 'ng_tin'
|
||||
| 'no_vat'
|
||||
| 'no_voec'
|
||||
| 'np_pan'
|
||||
| 'nz_gst'
|
||||
| 'om_vat'
|
||||
| 'pe_ruc'
|
||||
| 'ph_tin'
|
||||
| 'ro_tin'
|
||||
@@ -284,16 +313,25 @@ declare module 'stripe' {
|
||||
| 'sg_gst'
|
||||
| 'sg_uen'
|
||||
| 'si_tin'
|
||||
| 'sn_ninea'
|
||||
| 'sr_fin'
|
||||
| 'sv_nit'
|
||||
| 'th_vat'
|
||||
| 'tj_tin'
|
||||
| 'tr_tin'
|
||||
| 'tw_vat'
|
||||
| 'tz_vat'
|
||||
| 'ua_vat'
|
||||
| 'ug_tin'
|
||||
| 'us_ein'
|
||||
| 'uy_ruc'
|
||||
| 'uz_tin'
|
||||
| 'uz_vat'
|
||||
| 've_rif'
|
||||
| 'vn_tin'
|
||||
| 'za_vat';
|
||||
| 'za_vat'
|
||||
| 'zm_tin'
|
||||
| 'zw_tin';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -470,6 +508,11 @@ declare module 'stripe' {
|
||||
amount_tax_display?: Stripe.Emptyable<
|
||||
RenderingOptions.AmountTaxDisplay
|
||||
>;
|
||||
|
||||
/**
|
||||
* ID of the invoice rendering template to use for future invoices.
|
||||
*/
|
||||
template?: string;
|
||||
}
|
||||
|
||||
namespace RenderingOptions {
|
||||
@@ -501,13 +544,13 @@ declare module 'stripe' {
|
||||
ip_address?: Stripe.Emptyable<string>;
|
||||
|
||||
/**
|
||||
* A flag that indicates when Stripe should validate the customer tax location. Defaults to `deferred`.
|
||||
* A flag that indicates when Stripe should validate the customer tax location. Defaults to `auto`.
|
||||
*/
|
||||
validate_location?: Tax.ValidateLocation;
|
||||
}
|
||||
|
||||
namespace Tax {
|
||||
type ValidateLocation = 'deferred' | 'immediately';
|
||||
type ValidateLocation = 'auto' | 'deferred' | 'immediately';
|
||||
}
|
||||
|
||||
type TaxExempt = 'exempt' | 'none' | 'reverse';
|
||||
@@ -646,7 +689,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`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `no_voec`, `nz_gst`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat`
|
||||
* Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `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`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin`
|
||||
*/
|
||||
type: CustomerCreateTaxIdParams.Type;
|
||||
|
||||
@@ -665,24 +708,35 @@ declare module 'stripe' {
|
||||
type Type =
|
||||
| 'ad_nrt'
|
||||
| 'ae_trn'
|
||||
| 'al_tin'
|
||||
| 'am_tin'
|
||||
| 'ao_tin'
|
||||
| 'ar_cuit'
|
||||
| 'au_abn'
|
||||
| 'au_arn'
|
||||
| 'ba_tin'
|
||||
| 'bb_tin'
|
||||
| 'bg_uic'
|
||||
| 'bh_vat'
|
||||
| 'bo_tin'
|
||||
| 'br_cnpj'
|
||||
| 'br_cpf'
|
||||
| 'bs_tin'
|
||||
| 'by_tin'
|
||||
| 'ca_bn'
|
||||
| 'ca_gst_hst'
|
||||
| 'ca_pst_bc'
|
||||
| 'ca_pst_mb'
|
||||
| 'ca_pst_sk'
|
||||
| 'ca_qst'
|
||||
| 'cd_nif'
|
||||
| 'ch_uid'
|
||||
| 'ch_vat'
|
||||
| 'cl_tin'
|
||||
| 'cn_tin'
|
||||
| 'co_nit'
|
||||
| 'cr_tin'
|
||||
| 'de_stn'
|
||||
| 'do_rcn'
|
||||
| 'ec_ruc'
|
||||
| 'eg_tin'
|
||||
@@ -691,7 +745,9 @@ declare module 'stripe' {
|
||||
| 'eu_vat'
|
||||
| 'gb_vat'
|
||||
| 'ge_vat'
|
||||
| 'gn_nif'
|
||||
| 'hk_br'
|
||||
| 'hr_oib'
|
||||
| 'hu_tin'
|
||||
| 'id_npwp'
|
||||
| 'il_vat'
|
||||
@@ -701,15 +757,26 @@ declare module 'stripe' {
|
||||
| 'jp_rn'
|
||||
| 'jp_trn'
|
||||
| 'ke_pin'
|
||||
| 'kh_tin'
|
||||
| 'kr_brn'
|
||||
| 'kz_bin'
|
||||
| 'li_uid'
|
||||
| 'li_vat'
|
||||
| 'ma_vat'
|
||||
| 'md_vat'
|
||||
| 'me_pib'
|
||||
| 'mk_vat'
|
||||
| 'mr_nif'
|
||||
| 'mx_rfc'
|
||||
| 'my_frp'
|
||||
| 'my_itn'
|
||||
| 'my_sst'
|
||||
| 'ng_tin'
|
||||
| 'no_vat'
|
||||
| 'no_voec'
|
||||
| 'np_pan'
|
||||
| 'nz_gst'
|
||||
| 'om_vat'
|
||||
| 'pe_ruc'
|
||||
| 'ph_tin'
|
||||
| 'ro_tin'
|
||||
@@ -720,16 +787,25 @@ declare module 'stripe' {
|
||||
| 'sg_gst'
|
||||
| 'sg_uen'
|
||||
| 'si_tin'
|
||||
| 'sn_ninea'
|
||||
| 'sr_fin'
|
||||
| 'sv_nit'
|
||||
| 'th_vat'
|
||||
| 'tj_tin'
|
||||
| 'tr_tin'
|
||||
| 'tw_vat'
|
||||
| 'tz_vat'
|
||||
| 'ua_vat'
|
||||
| 'ug_tin'
|
||||
| 'us_ein'
|
||||
| 'uy_ruc'
|
||||
| 'uz_tin'
|
||||
| 'uz_vat'
|
||||
| 've_rif'
|
||||
| 'vn_tin'
|
||||
| 'za_vat';
|
||||
| 'za_vat'
|
||||
| 'zm_tin'
|
||||
| 'zw_tin';
|
||||
}
|
||||
|
||||
interface CustomerDeleteDiscountParams {}
|
||||
@@ -759,6 +835,11 @@ declare module 'stripe' {
|
||||
}
|
||||
|
||||
interface CustomerListPaymentMethodsParams extends PaginationParams {
|
||||
/**
|
||||
* This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to `unspecified`.
|
||||
*/
|
||||
allow_redisplay?: CustomerListPaymentMethodsParams.AllowRedisplay;
|
||||
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
@@ -771,11 +852,15 @@ declare module 'stripe' {
|
||||
}
|
||||
|
||||
namespace CustomerListPaymentMethodsParams {
|
||||
type AllowRedisplay = 'always' | 'limited' | 'unspecified';
|
||||
|
||||
type Type =
|
||||
| 'acss_debit'
|
||||
| 'affirm'
|
||||
| 'afterpay_clearpay'
|
||||
| 'alipay'
|
||||
| 'alma'
|
||||
| 'amazon_pay'
|
||||
| 'au_becs_debit'
|
||||
| 'bacs_debit'
|
||||
| 'bancontact'
|
||||
@@ -789,20 +874,28 @@ declare module 'stripe' {
|
||||
| 'giropay'
|
||||
| 'grabpay'
|
||||
| 'ideal'
|
||||
| 'kakao_pay'
|
||||
| 'klarna'
|
||||
| 'konbini'
|
||||
| 'kr_card'
|
||||
| 'link'
|
||||
| 'mobilepay'
|
||||
| 'multibanco'
|
||||
| 'naver_pay'
|
||||
| 'oxxo'
|
||||
| 'p24'
|
||||
| 'pay_by_bank'
|
||||
| 'payco'
|
||||
| 'paynow'
|
||||
| 'paypal'
|
||||
| 'pix'
|
||||
| 'promptpay'
|
||||
| 'revolut_pay'
|
||||
| 'samsung_pay'
|
||||
| 'sepa_debit'
|
||||
| 'sofort'
|
||||
| 'swish'
|
||||
| 'twint'
|
||||
| 'us_bank_account'
|
||||
| 'wechat_pay'
|
||||
| 'zip';
|
||||
|
||||
230
server/node_modules/stripe/types/Disputes.d.ts
generated
vendored
230
server/node_modules/stripe/types/Disputes.d.ts
generated
vendored
@@ -45,6 +45,11 @@ declare module 'stripe' {
|
||||
*/
|
||||
currency: string;
|
||||
|
||||
/**
|
||||
* List of eligibility types that are included in `enhanced_evidence`.
|
||||
*/
|
||||
enhanced_eligibility_types: Array<'visa_compelling_evidence_3'>;
|
||||
|
||||
evidence: Dispute.Evidence;
|
||||
|
||||
evidence_details: Dispute.EvidenceDetails;
|
||||
@@ -154,6 +159,8 @@ declare module 'stripe' {
|
||||
*/
|
||||
duplicate_charge_id: string | null;
|
||||
|
||||
enhanced_evidence: Evidence.EnhancedEvidence;
|
||||
|
||||
/**
|
||||
* A description of the product or service that was sold.
|
||||
*/
|
||||
@@ -225,12 +232,135 @@ declare module 'stripe' {
|
||||
uncategorized_text: string | null;
|
||||
}
|
||||
|
||||
namespace Evidence {
|
||||
interface EnhancedEvidence {
|
||||
visa_compelling_evidence_3?: EnhancedEvidence.VisaCompellingEvidence3;
|
||||
|
||||
visa_compliance?: EnhancedEvidence.VisaCompliance;
|
||||
}
|
||||
|
||||
namespace EnhancedEvidence {
|
||||
interface VisaCompellingEvidence3 {
|
||||
/**
|
||||
* Disputed transaction details for Visa Compelling Evidence 3.0 evidence submission.
|
||||
*/
|
||||
disputed_transaction: VisaCompellingEvidence3.DisputedTransaction | null;
|
||||
|
||||
/**
|
||||
* List of exactly two prior undisputed transaction objects for Visa Compelling Evidence 3.0 evidence submission.
|
||||
*/
|
||||
prior_undisputed_transactions: Array<
|
||||
VisaCompellingEvidence3.PriorUndisputedTransaction
|
||||
>;
|
||||
}
|
||||
|
||||
namespace VisaCompellingEvidence3 {
|
||||
interface DisputedTransaction {
|
||||
/**
|
||||
* User Account ID used to log into business platform. Must be recognizable by the user.
|
||||
*/
|
||||
customer_account_id: string | null;
|
||||
|
||||
/**
|
||||
* Unique identifier of the cardholder's device derived from a combination of at least two hardware and software attributes. Must be at least 20 characters.
|
||||
*/
|
||||
customer_device_fingerprint: string | null;
|
||||
|
||||
/**
|
||||
* Unique identifier of the cardholder's device such as a device serial number (e.g., International Mobile Equipment Identity [IMEI]). Must be at least 15 characters.
|
||||
*/
|
||||
customer_device_id: string | null;
|
||||
|
||||
/**
|
||||
* The email address of the customer.
|
||||
*/
|
||||
customer_email_address: string | null;
|
||||
|
||||
/**
|
||||
* The IP address that the customer used when making the purchase.
|
||||
*/
|
||||
customer_purchase_ip: string | null;
|
||||
|
||||
/**
|
||||
* Categorization of disputed payment.
|
||||
*/
|
||||
merchandise_or_services: DisputedTransaction.MerchandiseOrServices | null;
|
||||
|
||||
/**
|
||||
* A description of the product or service that was sold.
|
||||
*/
|
||||
product_description: string | null;
|
||||
|
||||
/**
|
||||
* The address to which a physical product was shipped. All fields are required for Visa Compelling Evidence 3.0 evidence submission.
|
||||
*/
|
||||
shipping_address: Stripe.Address | null;
|
||||
}
|
||||
|
||||
namespace DisputedTransaction {
|
||||
type MerchandiseOrServices = 'merchandise' | 'services';
|
||||
}
|
||||
|
||||
interface PriorUndisputedTransaction {
|
||||
/**
|
||||
* Stripe charge ID for the Visa Compelling Evidence 3.0 eligible prior charge.
|
||||
*/
|
||||
charge: string;
|
||||
|
||||
/**
|
||||
* User Account ID used to log into business platform. Must be recognizable by the user.
|
||||
*/
|
||||
customer_account_id: string | null;
|
||||
|
||||
/**
|
||||
* Unique identifier of the cardholder's device derived from a combination of at least two hardware and software attributes. Must be at least 20 characters.
|
||||
*/
|
||||
customer_device_fingerprint: string | null;
|
||||
|
||||
/**
|
||||
* Unique identifier of the cardholder's device such as a device serial number (e.g., International Mobile Equipment Identity [IMEI]). Must be at least 15 characters.
|
||||
*/
|
||||
customer_device_id: string | null;
|
||||
|
||||
/**
|
||||
* The email address of the customer.
|
||||
*/
|
||||
customer_email_address: string | null;
|
||||
|
||||
/**
|
||||
* The IP address that the customer used when making the purchase.
|
||||
*/
|
||||
customer_purchase_ip: string | null;
|
||||
|
||||
/**
|
||||
* A description of the product or service that was sold.
|
||||
*/
|
||||
product_description: string | null;
|
||||
|
||||
/**
|
||||
* The address to which a physical product was shipped. All fields are required for Visa Compelling Evidence 3.0 evidence submission.
|
||||
*/
|
||||
shipping_address: Stripe.Address | null;
|
||||
}
|
||||
}
|
||||
|
||||
interface VisaCompliance {
|
||||
/**
|
||||
* A field acknowledging the fee incurred when countering a Visa compliance dispute. If this field is set to true, evidence can be submitted for the compliance dispute. Stripe collects a 500 USD (or local equivalent) amount to cover the network costs associated with resolving compliance disputes. Stripe refunds the 500 USD network fee if you win the dispute.
|
||||
*/
|
||||
fee_acknowledged: boolean;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
interface EvidenceDetails {
|
||||
/**
|
||||
* Date by which evidence must be submitted in order to successfully challenge dispute. Will be 0 if the customer's bank or credit card company doesn't allow a response for this particular dispute.
|
||||
*/
|
||||
due_by: number | null;
|
||||
|
||||
enhanced_eligibility: EvidenceDetails.EnhancedEligibility;
|
||||
|
||||
/**
|
||||
* Whether evidence has been staged for this dispute.
|
||||
*/
|
||||
@@ -247,30 +377,118 @@ declare module 'stripe' {
|
||||
submission_count: number;
|
||||
}
|
||||
|
||||
namespace EvidenceDetails {
|
||||
interface EnhancedEligibility {
|
||||
visa_compelling_evidence_3?: EnhancedEligibility.VisaCompellingEvidence3;
|
||||
|
||||
visa_compliance?: EnhancedEligibility.VisaCompliance;
|
||||
}
|
||||
|
||||
namespace EnhancedEligibility {
|
||||
interface VisaCompellingEvidence3 {
|
||||
/**
|
||||
* List of actions required to qualify dispute for Visa Compelling Evidence 3.0 evidence submission.
|
||||
*/
|
||||
required_actions: Array<VisaCompellingEvidence3.RequiredAction>;
|
||||
|
||||
/**
|
||||
* Visa Compelling Evidence 3.0 eligibility status.
|
||||
*/
|
||||
status: VisaCompellingEvidence3.Status;
|
||||
}
|
||||
|
||||
namespace VisaCompellingEvidence3 {
|
||||
type RequiredAction =
|
||||
| 'missing_customer_identifiers'
|
||||
| 'missing_disputed_transaction_description'
|
||||
| 'missing_merchandise_or_services'
|
||||
| 'missing_prior_undisputed_transaction_description'
|
||||
| 'missing_prior_undisputed_transactions';
|
||||
|
||||
type Status = 'not_qualified' | 'qualified' | 'requires_action';
|
||||
}
|
||||
|
||||
interface VisaCompliance {
|
||||
/**
|
||||
* Visa compliance eligibility status.
|
||||
*/
|
||||
status: VisaCompliance.Status;
|
||||
}
|
||||
|
||||
namespace VisaCompliance {
|
||||
type Status = 'fee_acknowledged' | 'requires_fee_acknowledgement';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
interface PaymentMethodDetails {
|
||||
/**
|
||||
* Card specific dispute details.
|
||||
*/
|
||||
card: PaymentMethodDetails.Card | null;
|
||||
amazon_pay?: PaymentMethodDetails.AmazonPay;
|
||||
|
||||
card?: PaymentMethodDetails.Card;
|
||||
|
||||
klarna?: PaymentMethodDetails.Klarna;
|
||||
|
||||
paypal?: PaymentMethodDetails.Paypal;
|
||||
|
||||
/**
|
||||
* Payment method type.
|
||||
*/
|
||||
type: 'card';
|
||||
type: PaymentMethodDetails.Type;
|
||||
}
|
||||
|
||||
namespace PaymentMethodDetails {
|
||||
interface AmazonPay {
|
||||
/**
|
||||
* The AmazonPay dispute type, chargeback or claim
|
||||
*/
|
||||
dispute_type: AmazonPay.DisputeType | null;
|
||||
}
|
||||
|
||||
namespace AmazonPay {
|
||||
type DisputeType = 'chargeback' | 'claim';
|
||||
}
|
||||
|
||||
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;
|
||||
|
||||
/**
|
||||
* The type of dispute opened. Different case types may have varying fees and financial impact.
|
||||
*/
|
||||
case_type: Card.CaseType;
|
||||
|
||||
/**
|
||||
* The card network's specific dispute reason code, which maps to one of Stripe's primary dispute categories to simplify response guidance. The [Network code map](https://stripe.com/docs/disputes/categories#network-code-map) lists all available dispute reason codes by network.
|
||||
*/
|
||||
network_reason_code: string | null;
|
||||
}
|
||||
|
||||
namespace Card {
|
||||
type CaseType = 'chargeback' | 'inquiry';
|
||||
}
|
||||
|
||||
interface Klarna {
|
||||
/**
|
||||
* The reason for the dispute as defined by Klarna
|
||||
*/
|
||||
reason_code: string | null;
|
||||
}
|
||||
|
||||
interface Paypal {
|
||||
/**
|
||||
* The ID of the dispute in PayPal.
|
||||
*/
|
||||
case_id: string | null;
|
||||
|
||||
/**
|
||||
* The reason for the dispute as defined by PayPal
|
||||
*/
|
||||
reason_code: string | null;
|
||||
}
|
||||
|
||||
type Type = 'amazon_pay' | 'card' | 'klarna' | 'paypal';
|
||||
}
|
||||
|
||||
type Status =
|
||||
|
||||
135
server/node_modules/stripe/types/DisputesResource.d.ts
generated
vendored
135
server/node_modules/stripe/types/DisputesResource.d.ts
generated
vendored
@@ -98,6 +98,11 @@ declare module 'stripe' {
|
||||
*/
|
||||
duplicate_charge_id?: string;
|
||||
|
||||
/**
|
||||
* Additional evidence for qualifying evidence programs.
|
||||
*/
|
||||
enhanced_evidence?: Stripe.Emptyable<Evidence.EnhancedEvidence>;
|
||||
|
||||
/**
|
||||
* A description of the product or service that was sold. Has a maximum character count of 20,000.
|
||||
*/
|
||||
@@ -168,6 +173,133 @@ declare module 'stripe' {
|
||||
*/
|
||||
uncategorized_text?: string;
|
||||
}
|
||||
|
||||
namespace Evidence {
|
||||
interface EnhancedEvidence {
|
||||
/**
|
||||
* Evidence provided for Visa Compelling Evidence 3.0 evidence submission.
|
||||
*/
|
||||
visa_compelling_evidence_3?: EnhancedEvidence.VisaCompellingEvidence3;
|
||||
|
||||
/**
|
||||
* Evidence provided for Visa compliance evidence submission.
|
||||
*/
|
||||
visa_compliance?: EnhancedEvidence.VisaCompliance;
|
||||
}
|
||||
|
||||
namespace EnhancedEvidence {
|
||||
interface VisaCompellingEvidence3 {
|
||||
/**
|
||||
* Disputed transaction details for Visa Compelling Evidence 3.0 evidence submission.
|
||||
*/
|
||||
disputed_transaction?: VisaCompellingEvidence3.DisputedTransaction;
|
||||
|
||||
/**
|
||||
* List of exactly two prior undisputed transaction objects for Visa Compelling Evidence 3.0 evidence submission.
|
||||
*/
|
||||
prior_undisputed_transactions?: Array<
|
||||
VisaCompellingEvidence3.PriorUndisputedTransaction
|
||||
>;
|
||||
}
|
||||
|
||||
namespace VisaCompellingEvidence3 {
|
||||
interface DisputedTransaction {
|
||||
/**
|
||||
* User Account ID used to log into business platform. Must be recognizable by the user.
|
||||
*/
|
||||
customer_account_id?: Stripe.Emptyable<string>;
|
||||
|
||||
/**
|
||||
* Unique identifier of the cardholder's device derived from a combination of at least two hardware and software attributes. Must be at least 20 characters.
|
||||
*/
|
||||
customer_device_fingerprint?: Stripe.Emptyable<string>;
|
||||
|
||||
/**
|
||||
* Unique identifier of the cardholder's device such as a device serial number (e.g., International Mobile Equipment Identity [IMEI]). Must be at least 15 characters.
|
||||
*/
|
||||
customer_device_id?: Stripe.Emptyable<string>;
|
||||
|
||||
/**
|
||||
* The email address of the customer.
|
||||
*/
|
||||
customer_email_address?: Stripe.Emptyable<string>;
|
||||
|
||||
/**
|
||||
* The IP address that the customer used when making the purchase.
|
||||
*/
|
||||
customer_purchase_ip?: Stripe.Emptyable<string>;
|
||||
|
||||
/**
|
||||
* Categorization of disputed payment.
|
||||
*/
|
||||
merchandise_or_services?: DisputedTransaction.MerchandiseOrServices;
|
||||
|
||||
/**
|
||||
* A description of the product or service that was sold.
|
||||
*/
|
||||
product_description?: Stripe.Emptyable<string>;
|
||||
|
||||
/**
|
||||
* The address to which a physical product was shipped. All fields are required for Visa Compelling Evidence 3.0 evidence submission.
|
||||
*/
|
||||
shipping_address?: Stripe.AddressParam;
|
||||
}
|
||||
|
||||
namespace DisputedTransaction {
|
||||
type MerchandiseOrServices = 'merchandise' | 'services';
|
||||
}
|
||||
|
||||
interface PriorUndisputedTransaction {
|
||||
/**
|
||||
* Stripe charge ID for the Visa Compelling Evidence 3.0 eligible prior charge.
|
||||
*/
|
||||
charge: string;
|
||||
|
||||
/**
|
||||
* User Account ID used to log into business platform. Must be recognizable by the user.
|
||||
*/
|
||||
customer_account_id?: Stripe.Emptyable<string>;
|
||||
|
||||
/**
|
||||
* Unique identifier of the cardholder's device derived from a combination of at least two hardware and software attributes. Must be at least 20 characters.
|
||||
*/
|
||||
customer_device_fingerprint?: Stripe.Emptyable<string>;
|
||||
|
||||
/**
|
||||
* Unique identifier of the cardholder's device such as a device serial number (e.g., International Mobile Equipment Identity [IMEI]). Must be at least 15 characters.
|
||||
*/
|
||||
customer_device_id?: Stripe.Emptyable<string>;
|
||||
|
||||
/**
|
||||
* The email address of the customer.
|
||||
*/
|
||||
customer_email_address?: Stripe.Emptyable<string>;
|
||||
|
||||
/**
|
||||
* The IP address that the customer used when making the purchase.
|
||||
*/
|
||||
customer_purchase_ip?: Stripe.Emptyable<string>;
|
||||
|
||||
/**
|
||||
* A description of the product or service that was sold.
|
||||
*/
|
||||
product_description?: Stripe.Emptyable<string>;
|
||||
|
||||
/**
|
||||
* The address to which a physical product was shipped. All fields are required for Visa Compelling Evidence 3.0 evidence submission.
|
||||
*/
|
||||
shipping_address?: Stripe.AddressParam;
|
||||
}
|
||||
}
|
||||
|
||||
interface VisaCompliance {
|
||||
/**
|
||||
* A field acknowledging the fee incurred when countering a Visa compliance dispute. If this field is set to true, evidence can be submitted for the compliance dispute. Stripe collects a 500 USD (or local equivalent) amount to cover the network costs associated with resolving compliance disputes. Stripe refunds the 500 USD network fee if you win the dispute.
|
||||
*/
|
||||
fee_acknowledged?: boolean;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
interface DisputeListParams extends PaginationParams {
|
||||
@@ -176,6 +308,9 @@ declare module 'stripe' {
|
||||
*/
|
||||
charge?: string;
|
||||
|
||||
/**
|
||||
* Only return disputes that were created during the given date interval.
|
||||
*/
|
||||
created?: Stripe.RangeQueryParam | number;
|
||||
|
||||
/**
|
||||
|
||||
4
server/node_modules/stripe/types/Entitlements/ActiveEntitlements.d.ts
generated
vendored
4
server/node_modules/stripe/types/Entitlements/ActiveEntitlements.d.ts
generated
vendored
@@ -18,9 +18,9 @@ declare module 'stripe' {
|
||||
object: 'entitlements.active_entitlement';
|
||||
|
||||
/**
|
||||
* The feature that the customer is entitled to.
|
||||
* The [Feature](https://stripe.com/docs/api/entitlements/feature) that the customer is entitled to.
|
||||
*/
|
||||
feature: string;
|
||||
feature: string | Stripe.Entitlements.Feature;
|
||||
|
||||
/**
|
||||
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
||||
|
||||
12
server/node_modules/stripe/types/Entitlements/FeaturesResource.d.ts
generated
vendored
12
server/node_modules/stripe/types/Entitlements/FeaturesResource.d.ts
generated
vendored
@@ -46,7 +46,7 @@ declare module 'stripe' {
|
||||
/**
|
||||
* Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
||||
*/
|
||||
metadata?: Stripe.MetadataParam;
|
||||
metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
|
||||
|
||||
/**
|
||||
* The feature's name, for your own purpose, not meant to be displayable to the customer.
|
||||
@@ -55,10 +55,20 @@ declare module 'stripe' {
|
||||
}
|
||||
|
||||
interface FeatureListParams extends PaginationParams {
|
||||
/**
|
||||
* If set, filter results to only include features with the given archive status.
|
||||
*/
|
||||
archived?: boolean;
|
||||
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
|
||||
/**
|
||||
* If set, filter results to only include features with the given lookup_key.
|
||||
*/
|
||||
lookup_key?: string;
|
||||
}
|
||||
|
||||
class FeaturesResource {
|
||||
|
||||
34
server/node_modules/stripe/types/Errors.d.ts
generated
vendored
34
server/node_modules/stripe/types/Errors.d.ts
generated
vendored
@@ -1,5 +1,6 @@
|
||||
declare module 'stripe' {
|
||||
namespace Stripe {
|
||||
// rawErrorTypeEnum: The beginning of the section generated from our OpenAPI spec
|
||||
export type RawErrorType =
|
||||
| 'card_error'
|
||||
| 'invalid_request_error'
|
||||
@@ -7,10 +8,13 @@ declare module 'stripe' {
|
||||
| 'idempotency_error'
|
||||
| 'rate_limit_error'
|
||||
| 'authentication_error'
|
||||
| 'invalid_grant';
|
||||
| 'invalid_grant'
|
||||
| 'temporary_session_expired';
|
||||
// rawErrorTypeEnum: The end of the section generated from our OpenAPI spec
|
||||
|
||||
export type StripeRawError = {
|
||||
message?: string;
|
||||
userMessage?: string;
|
||||
|
||||
type: RawErrorType;
|
||||
|
||||
@@ -32,27 +36,35 @@ declare module 'stripe' {
|
||||
};
|
||||
|
||||
namespace errors {
|
||||
/** @deprecated Not for external use. */
|
||||
function generate(
|
||||
rawError: StripeRawError & {type: 'card_error'}
|
||||
): StripeCardError;
|
||||
/** @deprecated Not for external use. */
|
||||
function generate(
|
||||
rawError: StripeRawError & {type: 'invalid_request_error'}
|
||||
): StripeInvalidRequestError;
|
||||
/** @deprecated Not for external use. */
|
||||
function generate(
|
||||
rawError: StripeRawError & {type: 'api_error'}
|
||||
): StripeAPIError;
|
||||
/** @deprecated Not for external use. */
|
||||
function generate(
|
||||
rawError: StripeRawError & {type: 'authentication_error'}
|
||||
): StripeAuthenticationError;
|
||||
/** @deprecated Not for external use. */
|
||||
function generate(
|
||||
rawError: StripeRawError & {type: 'rate_limit_error'}
|
||||
): StripeRateLimitError;
|
||||
/** @deprecated Not for external use. */
|
||||
function generate(
|
||||
rawError: StripeRawError & {type: 'idempotency_error'}
|
||||
): StripeIdempotencyError;
|
||||
/** @deprecated Not for external use. */
|
||||
function generate(
|
||||
rawError: StripeRawError & {type: 'invalid_grant'}
|
||||
): StripeInvalidGrantError;
|
||||
/** @deprecated Not for external use. */
|
||||
function generate(
|
||||
rawError: StripeRawError & {type: RawErrorType}
|
||||
): StripeError;
|
||||
@@ -60,27 +72,35 @@ declare module 'stripe' {
|
||||
class StripeError extends Error {
|
||||
constructor(rawError: StripeRawError);
|
||||
|
||||
/** @deprecated Not for external use. */
|
||||
static generate(
|
||||
rawError: StripeRawError & {type: 'card_error'}
|
||||
): StripeCardError;
|
||||
/** @deprecated Not for external use. */
|
||||
static generate(
|
||||
rawError: StripeRawError & {type: 'invalid_request_error'}
|
||||
): StripeInvalidRequestError;
|
||||
/** @deprecated Not for external use. */
|
||||
static generate(
|
||||
rawError: StripeRawError & {type: 'api_error'}
|
||||
): StripeAPIError;
|
||||
/** @deprecated Not for external use. */
|
||||
static generate(
|
||||
rawError: StripeRawError & {type: 'authentication_error'}
|
||||
): StripeAuthenticationError;
|
||||
/** @deprecated Not for external use. */
|
||||
static generate(
|
||||
rawError: StripeRawError & {type: 'rate_limit_error'}
|
||||
): StripeRateLimitError;
|
||||
/** @deprecated Not for external use. */
|
||||
static generate(
|
||||
rawError: StripeRawError & {type: 'idempotency_error'}
|
||||
): StripeIdempotencyError;
|
||||
/** @deprecated Not for external use. */
|
||||
static generate(
|
||||
rawError: StripeRawError & {type: 'invalid_grant'}
|
||||
): StripeInvalidGrantError;
|
||||
/** @deprecated Not for external use. */
|
||||
static generate(
|
||||
rawError: StripeRawError & {type: RawErrorType}
|
||||
): StripeError;
|
||||
@@ -91,6 +111,7 @@ declare module 'stripe' {
|
||||
*/
|
||||
readonly message: string;
|
||||
|
||||
// errorClassNameEnum: The beginning of the section generated from our OpenAPI spec
|
||||
readonly type:
|
||||
| 'StripeError'
|
||||
| 'StripeCardError'
|
||||
@@ -102,7 +123,9 @@ declare module 'stripe' {
|
||||
| 'StripeConnectionError'
|
||||
| 'StripeSignatureVerificationError'
|
||||
| 'StripeIdempotencyError'
|
||||
| 'StripeInvalidGrantError';
|
||||
| 'StripeInvalidGrantError'
|
||||
| 'TemporarySessionExpiredError';
|
||||
// errorClassNameEnum: The end of the section generated from our OpenAPI spec
|
||||
|
||||
/**
|
||||
* See the "error types" section at https://stripe.com/docs/api/errors
|
||||
@@ -245,6 +268,13 @@ declare module 'stripe' {
|
||||
readonly type: 'StripeInvalidGrantError';
|
||||
readonly rawType: 'invalid_grant';
|
||||
}
|
||||
|
||||
// errorClassDefinitions: The beginning of the section generated from our OpenAPI spec
|
||||
export class TemporarySessionExpiredError extends StripeError {
|
||||
readonly type: 'TemporarySessionExpiredError';
|
||||
readonly rawType: 'temporary_session_expired';
|
||||
}
|
||||
// errorClassDefinitions: The end of the section generated from our OpenAPI spec
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
383
server/node_modules/stripe/types/EventTypes.d.ts
generated
vendored
383
server/node_modules/stripe/types/EventTypes.d.ts
generated
vendored
@@ -13,6 +13,7 @@ declare module 'stripe' {
|
||||
| ApplicationFeeRefundUpdatedEvent
|
||||
| ApplicationFeeRefundedEvent
|
||||
| BalanceAvailableEvent
|
||||
| BillingAlertTriggeredEvent
|
||||
| BillingPortalConfigurationCreatedEvent
|
||||
| BillingPortalConfigurationUpdatedEvent
|
||||
| BillingPortalSessionCreatedEvent
|
||||
@@ -70,6 +71,7 @@ declare module 'stripe' {
|
||||
| CustomerTaxIdUpdatedEvent
|
||||
| CustomerUpdatedEvent
|
||||
| CustomerCashBalanceTransactionCreatedEvent
|
||||
| EntitlementsActiveEntitlementSummaryUpdatedEvent
|
||||
| FileCreatedEvent
|
||||
| FinancialConnectionsAccountCreatedEvent
|
||||
| FinancialConnectionsAccountDeactivatedEvent
|
||||
@@ -89,6 +91,7 @@ declare module 'stripe' {
|
||||
| InvoiceFinalizationFailedEvent
|
||||
| InvoiceFinalizedEvent
|
||||
| InvoiceMarkedUncollectibleEvent
|
||||
| InvoiceOverdueEvent
|
||||
| InvoicePaidEvent
|
||||
| InvoicePaymentActionRequiredEvent
|
||||
| InvoicePaymentFailedEvent
|
||||
@@ -97,8 +100,9 @@ declare module 'stripe' {
|
||||
| InvoiceUpcomingEvent
|
||||
| InvoiceUpdatedEvent
|
||||
| InvoiceVoidedEvent
|
||||
| InvoiceitemCreatedEvent
|
||||
| InvoiceitemDeletedEvent
|
||||
| InvoiceWillBeDueEvent
|
||||
| InvoiceItemCreatedEvent
|
||||
| InvoiceItemDeletedEvent
|
||||
| IssuingAuthorizationCreatedEvent
|
||||
| IssuingAuthorizationRequestEvent
|
||||
| IssuingAuthorizationUpdatedEvent
|
||||
@@ -109,11 +113,17 @@ declare module 'stripe' {
|
||||
| IssuingDisputeClosedEvent
|
||||
| IssuingDisputeCreatedEvent
|
||||
| IssuingDisputeFundsReinstatedEvent
|
||||
| IssuingDisputeFundsRescindedEvent
|
||||
| IssuingDisputeSubmittedEvent
|
||||
| IssuingDisputeUpdatedEvent
|
||||
| IssuingPersonalizationDesignActivatedEvent
|
||||
| IssuingPersonalizationDesignDeactivatedEvent
|
||||
| IssuingPersonalizationDesignRejectedEvent
|
||||
| IssuingPersonalizationDesignUpdatedEvent
|
||||
| IssuingTokenCreatedEvent
|
||||
| IssuingTokenUpdatedEvent
|
||||
| IssuingTransactionCreatedEvent
|
||||
| IssuingTransactionPurchaseDetailsReceiptUpdatedEvent
|
||||
| IssuingTransactionUpdatedEvent
|
||||
| MandateUpdatedEvent
|
||||
| PaymentIntentAmountCapturableUpdatedEvent
|
||||
@@ -157,6 +167,7 @@ declare module 'stripe' {
|
||||
| RadarEarlyFraudWarningCreatedEvent
|
||||
| RadarEarlyFraudWarningUpdatedEvent
|
||||
| RefundCreatedEvent
|
||||
| RefundFailedEvent
|
||||
| RefundUpdatedEvent
|
||||
| ReportingReportRunFailedEvent
|
||||
| ReportingReportRunSucceededEvent
|
||||
@@ -219,25 +230,21 @@ declare module 'stripe' {
|
||||
| TreasuryOutboundPaymentFailedEvent
|
||||
| TreasuryOutboundPaymentPostedEvent
|
||||
| TreasuryOutboundPaymentReturnedEvent
|
||||
| TreasuryOutboundPaymentTrackingDetailsUpdatedEvent
|
||||
| TreasuryOutboundTransferCanceledEvent
|
||||
| TreasuryOutboundTransferCreatedEvent
|
||||
| TreasuryOutboundTransferExpectedArrivalDateUpdatedEvent
|
||||
| TreasuryOutboundTransferFailedEvent
|
||||
| TreasuryOutboundTransferPostedEvent
|
||||
| TreasuryOutboundTransferReturnedEvent
|
||||
| TreasuryOutboundTransferTrackingDetailsUpdatedEvent
|
||||
| TreasuryReceivedCreditCreatedEvent
|
||||
| TreasuryReceivedCreditFailedEvent
|
||||
| TreasuryReceivedCreditSucceededEvent
|
||||
| TreasuryReceivedDebitCreatedEvent
|
||||
| InvoiceitemUpdatedEvent
|
||||
| OrderCreatedEvent
|
||||
| RecipientCreatedEvent
|
||||
| RecipientDeletedEvent
|
||||
| RecipientUpdatedEvent
|
||||
| SkuCreatedEvent
|
||||
| SkuDeletedEvent
|
||||
| SkuUpdatedEvent;
|
||||
| TreasuryReceivedDebitCreatedEvent;
|
||||
}
|
||||
|
||||
namespace Stripe {
|
||||
/**
|
||||
* Occurs whenever a user authorizes an application. Sent to the related application only.
|
||||
*/
|
||||
@@ -398,6 +405,22 @@ declare module 'stripe' {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Occurs whenever your custom alert threshold is met.
|
||||
*/
|
||||
interface BillingAlertTriggeredEvent extends EventBase {
|
||||
type: 'billing.alert.triggered';
|
||||
data: BillingAlertTriggeredEvent.Data;
|
||||
}
|
||||
|
||||
namespace BillingAlertTriggeredEvent {
|
||||
interface Data extends Stripe.Event.Data {
|
||||
object: Stripe.Billing.AlertTriggered;
|
||||
|
||||
previous_attributes?: Partial<Stripe.Billing.AlertTriggered>;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Occurs whenever a portal configuration is created.
|
||||
*/
|
||||
@@ -527,7 +550,7 @@ declare module 'stripe' {
|
||||
}
|
||||
|
||||
/**
|
||||
* Occurs when funds are reinstated to your account after a dispute is closed. This includes [partially refunded payments](/docs/disputes#disputes-on-partially-refunded-payments).
|
||||
* Occurs when funds are reinstated to your account after a dispute is closed. This includes [partially refunded payments](https://docs.stripe.com/disputes#disputes-on-partially-refunded-payments).
|
||||
*/
|
||||
interface ChargeDisputeFundsReinstatedEvent extends EventBase {
|
||||
type: 'charge.dispute.funds_reinstated';
|
||||
@@ -623,7 +646,7 @@ declare module 'stripe' {
|
||||
}
|
||||
|
||||
/**
|
||||
* Occurs whenever a refund is updated, on selected payment methods.
|
||||
* Occurs whenever a refund is updated on selected payment methods. For updates on all refunds, listen to `refund.updated` instead.
|
||||
*/
|
||||
interface ChargeRefundUpdatedEvent extends EventBase {
|
||||
type: 'charge.refund.updated';
|
||||
@@ -639,7 +662,7 @@ declare module 'stripe' {
|
||||
}
|
||||
|
||||
/**
|
||||
* Occurs whenever a charge is refunded, including partial refunds.
|
||||
* Occurs whenever a charge is refunded, including partial refunds. Listen to `refund.created` for information about the refund.
|
||||
*/
|
||||
interface ChargeRefundedEvent extends EventBase {
|
||||
type: 'charge.refunded';
|
||||
@@ -1071,7 +1094,7 @@ declare module 'stripe' {
|
||||
}
|
||||
|
||||
/**
|
||||
* Occurs whenever a card or source will expire at the end of the month.
|
||||
* Occurs whenever a card or source will expire at the end of the month. This event only works with legacy integrations using Card or Source objects. If you use the PaymentMethod API, this event won't occur.
|
||||
*/
|
||||
interface CustomerSourceExpiringEvent extends EventBase {
|
||||
type: 'customer.source.expiring';
|
||||
@@ -1135,7 +1158,7 @@ declare module 'stripe' {
|
||||
}
|
||||
|
||||
/**
|
||||
* Occurs whenever a customer's subscription is paused. Only applies when subscriptions enter `status=paused`, not when [payment collection](/docs/billing/subscriptions/pause) is paused.
|
||||
* Occurs whenever a customer's subscription is paused. Only applies when subscriptions enter `status=paused`, not when [payment collection](https://docs.stripe.com/billing/subscriptions/pause) is paused.
|
||||
*/
|
||||
interface CustomerSubscriptionPausedEvent extends EventBase {
|
||||
type: 'customer.subscription.paused';
|
||||
@@ -1183,7 +1206,7 @@ declare module 'stripe' {
|
||||
}
|
||||
|
||||
/**
|
||||
* Occurs whenever a customer's subscription is no longer paused. Only applies when a `status=paused` subscription is [resumed](/docs/api/subscriptions/resume), not when [payment collection](/docs/billing/subscriptions/pause) is resumed.
|
||||
* Occurs whenever a customer's subscription is no longer paused. Only applies when a `status=paused` subscription is [resumed](https://docs.stripe.com/api/subscriptions/resume), not when [payment collection](https://docs.stripe.com/billing/subscriptions/pause) is resumed.
|
||||
*/
|
||||
interface CustomerSubscriptionResumedEvent extends EventBase {
|
||||
type: 'customer.subscription.resumed';
|
||||
@@ -1310,6 +1333,25 @@ declare module 'stripe' {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Occurs whenever a customer's entitlements change.
|
||||
*/
|
||||
interface EntitlementsActiveEntitlementSummaryUpdatedEvent
|
||||
extends EventBase {
|
||||
type: 'entitlements.active_entitlement_summary.updated';
|
||||
data: EntitlementsActiveEntitlementSummaryUpdatedEvent.Data;
|
||||
}
|
||||
|
||||
namespace EntitlementsActiveEntitlementSummaryUpdatedEvent {
|
||||
interface Data extends Stripe.Event.Data {
|
||||
object: Stripe.Entitlements.ActiveEntitlementSummary;
|
||||
|
||||
previous_attributes?: Partial<
|
||||
Stripe.Entitlements.ActiveEntitlementSummary
|
||||
>;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Occurs whenever a new Stripe-generated file is available for your account.
|
||||
*/
|
||||
@@ -1538,7 +1580,7 @@ declare module 'stripe' {
|
||||
}
|
||||
|
||||
/**
|
||||
* Occurs whenever a new invoice is created. To learn how webhooks can be used with this event, and how they can affect it, see [Using Webhooks with Subscriptions](/docs/subscriptions/webhooks).
|
||||
* Occurs whenever a new invoice is created. To learn how webhooks can be used with this event, and how they can affect it, see [Using Webhooks with Subscriptions](https://docs.stripe.com/subscriptions/webhooks).
|
||||
*/
|
||||
interface InvoiceCreatedEvent extends EventBase {
|
||||
type: 'invoice.created';
|
||||
@@ -1554,7 +1596,7 @@ declare module 'stripe' {
|
||||
}
|
||||
|
||||
/**
|
||||
* Occurs whenever a draft invoice is deleted.
|
||||
* Occurs whenever a draft invoice is deleted. Note: This event is not sent for [invoice previews](https://docs.stripe.com/api/invoices/create_preview).
|
||||
*/
|
||||
interface InvoiceDeletedEvent extends EventBase {
|
||||
type: 'invoice.deleted';
|
||||
@@ -1570,7 +1612,7 @@ declare module 'stripe' {
|
||||
}
|
||||
|
||||
/**
|
||||
* Occurs whenever a draft invoice cannot be finalized. See the invoice’s [last finalization error](/docs/api/invoices/object#invoice_object-last_finalization_error) for details.
|
||||
* Occurs whenever a draft invoice cannot be finalized. See the invoice’s [last finalization error](https://docs.stripe.com/api/invoices/object#invoice_object-last_finalization_error) for details.
|
||||
*/
|
||||
interface InvoiceFinalizationFailedEvent extends EventBase {
|
||||
type: 'invoice.finalization_failed';
|
||||
@@ -1617,6 +1659,22 @@ declare module 'stripe' {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Occurs X number of days after an invoice becomes due—where X is determined by Automations
|
||||
*/
|
||||
interface InvoiceOverdueEvent extends EventBase {
|
||||
type: 'invoice.overdue';
|
||||
data: InvoiceOverdueEvent.Data;
|
||||
}
|
||||
|
||||
namespace InvoiceOverdueEvent {
|
||||
interface Data extends Stripe.Event.Data {
|
||||
object: Stripe.Invoice;
|
||||
|
||||
previous_attributes?: Partial<Stripe.Invoice>;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Occurs whenever an invoice payment attempt succeeds or an invoice is marked as paid out-of-band.
|
||||
*/
|
||||
@@ -1746,14 +1804,30 @@ declare module 'stripe' {
|
||||
}
|
||||
|
||||
/**
|
||||
* Occurs whenever an invoice item is created.
|
||||
* Occurs X number of days before an invoice becomes due—where X is determined by Automations
|
||||
*/
|
||||
interface InvoiceitemCreatedEvent extends EventBase {
|
||||
type: 'invoiceitem.created';
|
||||
data: InvoiceitemCreatedEvent.Data;
|
||||
interface InvoiceWillBeDueEvent extends EventBase {
|
||||
type: 'invoice.will_be_due';
|
||||
data: InvoiceWillBeDueEvent.Data;
|
||||
}
|
||||
|
||||
namespace InvoiceitemCreatedEvent {
|
||||
namespace InvoiceWillBeDueEvent {
|
||||
interface Data extends Stripe.Event.Data {
|
||||
object: Stripe.Invoice;
|
||||
|
||||
previous_attributes?: Partial<Stripe.Invoice>;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Occurs whenever an invoice item is created.
|
||||
*/
|
||||
interface InvoiceItemCreatedEvent extends EventBase {
|
||||
type: 'invoiceitem.created';
|
||||
data: InvoiceItemCreatedEvent.Data;
|
||||
}
|
||||
|
||||
namespace InvoiceItemCreatedEvent {
|
||||
interface Data extends Stripe.Event.Data {
|
||||
object: Stripe.InvoiceItem;
|
||||
|
||||
@@ -1764,12 +1838,12 @@ declare module 'stripe' {
|
||||
/**
|
||||
* Occurs whenever an invoice item is deleted.
|
||||
*/
|
||||
interface InvoiceitemDeletedEvent extends EventBase {
|
||||
interface InvoiceItemDeletedEvent extends EventBase {
|
||||
type: 'invoiceitem.deleted';
|
||||
data: InvoiceitemDeletedEvent.Data;
|
||||
data: InvoiceItemDeletedEvent.Data;
|
||||
}
|
||||
|
||||
namespace InvoiceitemDeletedEvent {
|
||||
namespace InvoiceItemDeletedEvent {
|
||||
interface Data extends Stripe.Event.Data {
|
||||
object: Stripe.InvoiceItem;
|
||||
|
||||
@@ -1794,7 +1868,7 @@ declare module 'stripe' {
|
||||
}
|
||||
|
||||
/**
|
||||
* Represents a synchronous request for authorization, see [Using your integration to handle authorization requests](/docs/issuing/purchases/authorizations#authorization-handling).
|
||||
* Represents a synchronous request for authorization, see [Using your integration to handle authorization requests](https://docs.stripe.com/issuing/purchases/authorizations#authorization-handling).
|
||||
*/
|
||||
interface IssuingAuthorizationRequestEvent extends EventBase {
|
||||
type: 'issuing_authorization.request';
|
||||
@@ -1937,6 +2011,22 @@ declare module 'stripe' {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Occurs whenever funds are deducted from your account for an Issuing dispute.
|
||||
*/
|
||||
interface IssuingDisputeFundsRescindedEvent extends EventBase {
|
||||
type: 'issuing_dispute.funds_rescinded';
|
||||
data: IssuingDisputeFundsRescindedEvent.Data;
|
||||
}
|
||||
|
||||
namespace IssuingDisputeFundsRescindedEvent {
|
||||
interface Data extends Stripe.Event.Data {
|
||||
object: Stripe.Issuing.Dispute;
|
||||
|
||||
previous_attributes?: Partial<Stripe.Issuing.Dispute>;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Occurs whenever a dispute is submitted.
|
||||
*/
|
||||
@@ -1969,6 +2059,70 @@ declare module 'stripe' {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Occurs whenever a personalization design is activated following the activation of the physical bundle that belongs to it.
|
||||
*/
|
||||
interface IssuingPersonalizationDesignActivatedEvent extends EventBase {
|
||||
type: 'issuing_personalization_design.activated';
|
||||
data: IssuingPersonalizationDesignActivatedEvent.Data;
|
||||
}
|
||||
|
||||
namespace IssuingPersonalizationDesignActivatedEvent {
|
||||
interface Data extends Stripe.Event.Data {
|
||||
object: Stripe.Issuing.PersonalizationDesign;
|
||||
|
||||
previous_attributes?: Partial<Stripe.Issuing.PersonalizationDesign>;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Occurs whenever a personalization design is deactivated following the deactivation of the physical bundle that belongs to it.
|
||||
*/
|
||||
interface IssuingPersonalizationDesignDeactivatedEvent extends EventBase {
|
||||
type: 'issuing_personalization_design.deactivated';
|
||||
data: IssuingPersonalizationDesignDeactivatedEvent.Data;
|
||||
}
|
||||
|
||||
namespace IssuingPersonalizationDesignDeactivatedEvent {
|
||||
interface Data extends Stripe.Event.Data {
|
||||
object: Stripe.Issuing.PersonalizationDesign;
|
||||
|
||||
previous_attributes?: Partial<Stripe.Issuing.PersonalizationDesign>;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Occurs whenever a personalization design is rejected by design review.
|
||||
*/
|
||||
interface IssuingPersonalizationDesignRejectedEvent extends EventBase {
|
||||
type: 'issuing_personalization_design.rejected';
|
||||
data: IssuingPersonalizationDesignRejectedEvent.Data;
|
||||
}
|
||||
|
||||
namespace IssuingPersonalizationDesignRejectedEvent {
|
||||
interface Data extends Stripe.Event.Data {
|
||||
object: Stripe.Issuing.PersonalizationDesign;
|
||||
|
||||
previous_attributes?: Partial<Stripe.Issuing.PersonalizationDesign>;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Occurs whenever a personalization design is updated.
|
||||
*/
|
||||
interface IssuingPersonalizationDesignUpdatedEvent extends EventBase {
|
||||
type: 'issuing_personalization_design.updated';
|
||||
data: IssuingPersonalizationDesignUpdatedEvent.Data;
|
||||
}
|
||||
|
||||
namespace IssuingPersonalizationDesignUpdatedEvent {
|
||||
interface Data extends Stripe.Event.Data {
|
||||
object: Stripe.Issuing.PersonalizationDesign;
|
||||
|
||||
previous_attributes?: Partial<Stripe.Issuing.PersonalizationDesign>;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Occurs whenever an issuing digital wallet token is created.
|
||||
*/
|
||||
@@ -2017,6 +2171,23 @@ declare module 'stripe' {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Occurs whenever an issuing transaction is updated with receipt data.
|
||||
*/
|
||||
interface IssuingTransactionPurchaseDetailsReceiptUpdatedEvent
|
||||
extends EventBase {
|
||||
type: 'issuing_transaction.purchase_details_receipt_updated';
|
||||
data: IssuingTransactionPurchaseDetailsReceiptUpdatedEvent.Data;
|
||||
}
|
||||
|
||||
namespace IssuingTransactionPurchaseDetailsReceiptUpdatedEvent {
|
||||
interface Data extends Stripe.Event.Data {
|
||||
object: Stripe.Issuing.Transaction;
|
||||
|
||||
previous_attributes?: Partial<Stripe.Issuing.Transaction>;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Occurs whenever an issuing transaction is updated.
|
||||
*/
|
||||
@@ -2050,7 +2221,7 @@ declare module 'stripe' {
|
||||
}
|
||||
|
||||
/**
|
||||
* Occurs when a PaymentIntent has funds to be captured. Check the `amount_capturable` property on the PaymentIntent to determine the amount that can be captured. You may capture the PaymentIntent with an `amount_to_capture` value up to the specified amount. [Learn more about capturing PaymentIntents.](https://stripe.com/docs/api/payment_intents/capture)
|
||||
* Occurs when a PaymentIntent has funds to be captured. Check the `amount_capturable` property on the PaymentIntent to determine the amount that can be captured. You may capture the PaymentIntent with an `amount_to_capture` value up to the specified amount. [Learn more about capturing PaymentIntents.](https://docs.stripe.com/api/payment_intents/capture)
|
||||
*/
|
||||
interface PaymentIntentAmountCapturableUpdatedEvent extends EventBase {
|
||||
type: 'payment_intent.amount_capturable_updated';
|
||||
@@ -2258,7 +2429,7 @@ declare module 'stripe' {
|
||||
}
|
||||
|
||||
/**
|
||||
* Occurs whenever a payment method is updated via the [PaymentMethod update API](https://stripe.com/docs/api/payment_methods/update).
|
||||
* Occurs whenever a payment method is updated via the [PaymentMethod update API](https://docs.stripe.com/api/payment_methods/update).
|
||||
*/
|
||||
interface PaymentMethodUpdatedEvent extends EventBase {
|
||||
type: 'payment_method.updated';
|
||||
@@ -2690,7 +2861,7 @@ declare module 'stripe' {
|
||||
}
|
||||
|
||||
/**
|
||||
* Occurs whenever a refund from a customer's cash balance is created.
|
||||
* Occurs whenever a refund is created.
|
||||
*/
|
||||
interface RefundCreatedEvent extends EventBase {
|
||||
type: 'refund.created';
|
||||
@@ -2706,7 +2877,23 @@ declare module 'stripe' {
|
||||
}
|
||||
|
||||
/**
|
||||
* Occurs whenever a refund from a customer's cash balance is updated.
|
||||
* Occurs whenever a refund has failed.
|
||||
*/
|
||||
interface RefundFailedEvent extends EventBase {
|
||||
type: 'refund.failed';
|
||||
data: RefundFailedEvent.Data;
|
||||
}
|
||||
|
||||
namespace RefundFailedEvent {
|
||||
interface Data extends Stripe.Event.Data {
|
||||
object: Stripe.Refund;
|
||||
|
||||
previous_attributes?: Partial<Stripe.Refund>;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Occurs whenever a refund is updated.
|
||||
*/
|
||||
interface RefundUpdatedEvent extends EventBase {
|
||||
type: 'refund.updated';
|
||||
@@ -3699,6 +3886,23 @@ declare module 'stripe' {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Occurs whenever tracking_details on an OutboundPayment is updated.
|
||||
*/
|
||||
interface TreasuryOutboundPaymentTrackingDetailsUpdatedEvent
|
||||
extends EventBase {
|
||||
type: 'treasury.outbound_payment.tracking_details_updated';
|
||||
data: TreasuryOutboundPaymentTrackingDetailsUpdatedEvent.Data;
|
||||
}
|
||||
|
||||
namespace TreasuryOutboundPaymentTrackingDetailsUpdatedEvent {
|
||||
interface Data extends Stripe.Event.Data {
|
||||
object: Stripe.Treasury.OutboundPayment;
|
||||
|
||||
previous_attributes?: Partial<Stripe.Treasury.OutboundPayment>;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Occurs whenever an OutboundTransfer is canceled.
|
||||
*/
|
||||
@@ -3796,6 +4000,23 @@ declare module 'stripe' {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Occurs whenever tracking_details on an OutboundTransfer is updated.
|
||||
*/
|
||||
interface TreasuryOutboundTransferTrackingDetailsUpdatedEvent
|
||||
extends EventBase {
|
||||
type: 'treasury.outbound_transfer.tracking_details_updated';
|
||||
data: TreasuryOutboundTransferTrackingDetailsUpdatedEvent.Data;
|
||||
}
|
||||
|
||||
namespace TreasuryOutboundTransferTrackingDetailsUpdatedEvent {
|
||||
interface Data extends Stripe.Event.Data {
|
||||
object: Stripe.Treasury.OutboundTransfer;
|
||||
|
||||
previous_attributes?: Partial<Stripe.Treasury.OutboundTransfer>;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Occurs whenever a received_credit is created as a result of funds being pushed by another account.
|
||||
*/
|
||||
@@ -3859,101 +4080,5 @@ declare module 'stripe' {
|
||||
previous_attributes?: Partial<Stripe.Treasury.ReceivedDebit>;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* The "invoiceitem.updated" event is deprecated and will be removed in the next major version
|
||||
*/
|
||||
interface InvoiceitemUpdatedEvent extends EventBase {
|
||||
type: 'invoiceitem.updated';
|
||||
data: InvoiceitemUpdatedEvent.Data;
|
||||
}
|
||||
|
||||
namespace InvoiceitemUpdatedEvent {
|
||||
interface Data extends Stripe.Event.Data {}
|
||||
}
|
||||
|
||||
/**
|
||||
* The "order.created" event is deprecated and will be removed in the next major version
|
||||
*/
|
||||
interface OrderCreatedEvent extends EventBase {
|
||||
type: 'order.created';
|
||||
data: OrderCreatedEvent.Data;
|
||||
}
|
||||
|
||||
namespace OrderCreatedEvent {
|
||||
interface Data extends Stripe.Event.Data {}
|
||||
}
|
||||
|
||||
/**
|
||||
* The "recipient.created" event is deprecated and will be removed in the next major version
|
||||
*/
|
||||
interface RecipientCreatedEvent extends EventBase {
|
||||
type: 'recipient.created';
|
||||
data: RecipientCreatedEvent.Data;
|
||||
}
|
||||
|
||||
namespace RecipientCreatedEvent {
|
||||
interface Data extends Stripe.Event.Data {}
|
||||
}
|
||||
|
||||
/**
|
||||
* The "recipient.deleted" event is deprecated and will be removed in the next major version
|
||||
*/
|
||||
interface RecipientDeletedEvent extends EventBase {
|
||||
type: 'recipient.deleted';
|
||||
data: RecipientDeletedEvent.Data;
|
||||
}
|
||||
|
||||
namespace RecipientDeletedEvent {
|
||||
interface Data extends Stripe.Event.Data {}
|
||||
}
|
||||
|
||||
/**
|
||||
* The "recipient.updated" event is deprecated and will be removed in the next major version
|
||||
*/
|
||||
interface RecipientUpdatedEvent extends EventBase {
|
||||
type: 'recipient.updated';
|
||||
data: RecipientUpdatedEvent.Data;
|
||||
}
|
||||
|
||||
namespace RecipientUpdatedEvent {
|
||||
interface Data extends Stripe.Event.Data {}
|
||||
}
|
||||
|
||||
/**
|
||||
* The "sku.created" event is deprecated and will be removed in the next major version
|
||||
*/
|
||||
interface SkuCreatedEvent extends EventBase {
|
||||
type: 'sku.created';
|
||||
data: SkuCreatedEvent.Data;
|
||||
}
|
||||
|
||||
namespace SkuCreatedEvent {
|
||||
interface Data extends Stripe.Event.Data {}
|
||||
}
|
||||
|
||||
/**
|
||||
* The "sku.deleted" event is deprecated and will be removed in the next major version
|
||||
*/
|
||||
interface SkuDeletedEvent extends EventBase {
|
||||
type: 'sku.deleted';
|
||||
data: SkuDeletedEvent.Data;
|
||||
}
|
||||
|
||||
namespace SkuDeletedEvent {
|
||||
interface Data extends Stripe.Event.Data {}
|
||||
}
|
||||
|
||||
/**
|
||||
* The "sku.updated" event is deprecated and will be removed in the next major version
|
||||
*/
|
||||
interface SkuUpdatedEvent extends EventBase {
|
||||
type: 'sku.updated';
|
||||
data: SkuUpdatedEvent.Data;
|
||||
}
|
||||
|
||||
namespace SkuUpdatedEvent {
|
||||
interface Data extends Stripe.Event.Data {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
27
server/node_modules/stripe/types/Events.d.ts
generated
vendored
27
server/node_modules/stripe/types/Events.d.ts
generated
vendored
@@ -44,6 +44,7 @@ declare module 'stripe' {
|
||||
| 'application_fee.refund.updated'
|
||||
| 'application_fee.refunded'
|
||||
| 'balance.available'
|
||||
| 'billing.alert.triggered'
|
||||
| 'billing_portal.configuration.created'
|
||||
| 'billing_portal.configuration.updated'
|
||||
| 'billing_portal.session.created'
|
||||
@@ -101,6 +102,7 @@ declare module 'stripe' {
|
||||
| 'customer.tax_id.updated'
|
||||
| 'customer.updated'
|
||||
| 'customer_cash_balance_transaction.created'
|
||||
| 'entitlements.active_entitlement_summary.updated'
|
||||
| 'file.created'
|
||||
| 'financial_connections.account.created'
|
||||
| 'financial_connections.account.deactivated'
|
||||
@@ -120,6 +122,7 @@ declare module 'stripe' {
|
||||
| 'invoice.finalization_failed'
|
||||
| 'invoice.finalized'
|
||||
| 'invoice.marked_uncollectible'
|
||||
| 'invoice.overdue'
|
||||
| 'invoice.paid'
|
||||
| 'invoice.payment_action_required'
|
||||
| 'invoice.payment_failed'
|
||||
@@ -128,6 +131,7 @@ declare module 'stripe' {
|
||||
| 'invoice.upcoming'
|
||||
| 'invoice.updated'
|
||||
| 'invoice.voided'
|
||||
| 'invoice.will_be_due'
|
||||
| 'invoiceitem.created'
|
||||
| 'invoiceitem.deleted'
|
||||
| 'issuing_authorization.created'
|
||||
@@ -140,11 +144,17 @@ declare module 'stripe' {
|
||||
| 'issuing_dispute.closed'
|
||||
| 'issuing_dispute.created'
|
||||
| 'issuing_dispute.funds_reinstated'
|
||||
| 'issuing_dispute.funds_rescinded'
|
||||
| 'issuing_dispute.submitted'
|
||||
| 'issuing_dispute.updated'
|
||||
| 'issuing_personalization_design.activated'
|
||||
| 'issuing_personalization_design.deactivated'
|
||||
| 'issuing_personalization_design.rejected'
|
||||
| 'issuing_personalization_design.updated'
|
||||
| 'issuing_token.created'
|
||||
| 'issuing_token.updated'
|
||||
| 'issuing_transaction.created'
|
||||
| 'issuing_transaction.purchase_details_receipt_updated'
|
||||
| 'issuing_transaction.updated'
|
||||
| 'mandate.updated'
|
||||
| 'payment_intent.amount_capturable_updated'
|
||||
@@ -188,6 +198,7 @@ declare module 'stripe' {
|
||||
| 'radar.early_fraud_warning.created'
|
||||
| 'radar.early_fraud_warning.updated'
|
||||
| 'refund.created'
|
||||
| 'refund.failed'
|
||||
| 'refund.updated'
|
||||
| 'reporting.report_run.failed'
|
||||
| 'reporting.report_run.succeeded'
|
||||
@@ -250,24 +261,18 @@ declare module 'stripe' {
|
||||
| 'treasury.outbound_payment.failed'
|
||||
| 'treasury.outbound_payment.posted'
|
||||
| 'treasury.outbound_payment.returned'
|
||||
| 'treasury.outbound_payment.tracking_details_updated'
|
||||
| 'treasury.outbound_transfer.canceled'
|
||||
| 'treasury.outbound_transfer.created'
|
||||
| 'treasury.outbound_transfer.expected_arrival_date_updated'
|
||||
| 'treasury.outbound_transfer.failed'
|
||||
| 'treasury.outbound_transfer.posted'
|
||||
| 'treasury.outbound_transfer.returned'
|
||||
| 'treasury.outbound_transfer.tracking_details_updated'
|
||||
| 'treasury.received_credit.created'
|
||||
| 'treasury.received_credit.failed'
|
||||
| 'treasury.received_credit.succeeded'
|
||||
| 'treasury.received_debit.created'
|
||||
| 'invoiceitem.updated'
|
||||
| 'order.created'
|
||||
| 'recipient.created'
|
||||
| 'recipient.deleted'
|
||||
| 'recipient.updated'
|
||||
| 'sku.created'
|
||||
| 'sku.deleted'
|
||||
| 'sku.updated';
|
||||
| 'treasury.received_debit.created';
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -292,10 +297,10 @@ declare module 'stripe' {
|
||||
* `Event` objects directly to an endpoint on your server. You can manage
|
||||
* webhooks in your
|
||||
* [account settings](https://dashboard.stripe.com/account/webhooks). Learn how
|
||||
* to [listen for events](https://stripe.com/docs/webhooks)
|
||||
* to [listen for events](https://docs.stripe.com/webhooks)
|
||||
* so that your integration can automatically trigger reactions.
|
||||
*
|
||||
* When using [Connect](https://stripe.com/docs/connect), you can also receive event notifications
|
||||
* When using [Connect](https://docs.stripe.com/connect), you can also receive event notifications
|
||||
* that occur in connected accounts. For these events, there's an
|
||||
* additional `account` attribute in the received `Event` object.
|
||||
*
|
||||
|
||||
4
server/node_modules/stripe/types/EventsResource.d.ts
generated
vendored
4
server/node_modules/stripe/types/EventsResource.d.ts
generated
vendored
@@ -38,7 +38,7 @@ declare module 'stripe' {
|
||||
|
||||
class EventsResource {
|
||||
/**
|
||||
* Retrieves the details of an event. Supply the unique identifier of the event, which you might have received in a webhook.
|
||||
* Retrieves the details of an event if it was created in the last 30 days. Supply the unique identifier of the event, which you might have received in a webhook.
|
||||
*/
|
||||
retrieve(
|
||||
id: string,
|
||||
@@ -51,7 +51,7 @@ declare module 'stripe' {
|
||||
): Promise<Stripe.Response<Stripe.Event>>;
|
||||
|
||||
/**
|
||||
* List events, going back up to 30 days. Each event data is rendered according to Stripe API version at its creation time, specified in [event object](https://stripe.com/docs/api/events/object) api_version attribute (not according to your current Stripe API version or Stripe-Version header).
|
||||
* List events, going back up to 30 days. Each event data is rendered according to Stripe API version at its creation time, specified in [event object](https://docs.stripe.com/api/events/object) api_version attribute (not according to your current Stripe API version or Stripe-Version header).
|
||||
*/
|
||||
list(
|
||||
params?: EventListParams,
|
||||
|
||||
2
server/node_modules/stripe/types/FileLinksResource.d.ts
generated
vendored
2
server/node_modules/stripe/types/FileLinksResource.d.ts
generated
vendored
@@ -4,7 +4,7 @@ declare module 'stripe' {
|
||||
namespace Stripe {
|
||||
interface FileLinkCreateParams {
|
||||
/**
|
||||
* The ID of the file. The file's `purpose` must be one of the following: `business_icon`, `business_logo`, `customer_signature`, `dispute_evidence`, `finance_report_run`, `identity_document_downloadable`, `pci_document`, `selfie`, `sigma_scheduled_query`, `tax_document_user_upload`, or `terminal_reader_splashscreen`.
|
||||
* The ID of the file. The file's `purpose` must be one of the following: `business_icon`, `business_logo`, `customer_signature`, `dispute_evidence`, `finance_report_run`, `financial_account_statement`, `identity_document_downloadable`, `issuing_regulatory_reporting`, `pci_document`, `selfie`, `sigma_scheduled_query`, `tax_document_user_upload`, or `terminal_reader_splashscreen`.
|
||||
*/
|
||||
file: string;
|
||||
|
||||
|
||||
2
server/node_modules/stripe/types/Files.d.ts
generated
vendored
2
server/node_modules/stripe/types/Files.d.ts
generated
vendored
@@ -78,8 +78,10 @@ declare module 'stripe' {
|
||||
| 'dispute_evidence'
|
||||
| 'document_provider_identity_document'
|
||||
| 'finance_report_run'
|
||||
| 'financial_account_statement'
|
||||
| 'identity_document'
|
||||
| 'identity_document_downloadable'
|
||||
| 'issuing_regulatory_reporting'
|
||||
| 'pci_document'
|
||||
| 'selfie'
|
||||
| 'sigma_scheduled_query'
|
||||
|
||||
5
server/node_modules/stripe/types/FilesResource.d.ts
generated
vendored
5
server/node_modules/stripe/types/FilesResource.d.ts
generated
vendored
@@ -27,7 +27,7 @@ declare module 'stripe' {
|
||||
namespace FileCreateParams {
|
||||
interface FileLinkData {
|
||||
/**
|
||||
* Set this to `true` to create a file link for the newly created file. Creating a link is only possible when the file's `purpose` is one of the following: `business_icon`, `business_logo`, `customer_signature`, `dispute_evidence`, `pci_document`, `tax_document_user_upload`, or `terminal_reader_splashscreen`.
|
||||
* Set this to `true` to create a file link for the newly created file. Creating a link is only possible when the file's `purpose` is one of the following: `business_icon`, `business_logo`, `customer_signature`, `dispute_evidence`, `issuing_regulatory_reporting`, `pci_document`, `tax_document_user_upload`, or `terminal_reader_splashscreen`.
|
||||
*/
|
||||
create: boolean;
|
||||
|
||||
@@ -50,6 +50,7 @@ declare module 'stripe' {
|
||||
| 'customer_signature'
|
||||
| 'dispute_evidence'
|
||||
| 'identity_document'
|
||||
| 'issuing_regulatory_reporting'
|
||||
| 'pci_document'
|
||||
| 'tax_document_user_upload'
|
||||
| 'terminal_reader_splashscreen';
|
||||
@@ -89,8 +90,10 @@ declare module 'stripe' {
|
||||
| 'dispute_evidence'
|
||||
| 'document_provider_identity_document'
|
||||
| 'finance_report_run'
|
||||
| 'financial_account_statement'
|
||||
| 'identity_document'
|
||||
| 'identity_document_downloadable'
|
||||
| 'issuing_regulatory_reporting'
|
||||
| 'pci_document'
|
||||
| 'selfie'
|
||||
| 'sigma_scheduled_query'
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user