stripe 19.2.0-alpha.1 → 19.2.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +81 -44
- package/OPENAPI_VERSION +1 -1
- package/VERSION +1 -1
- package/cjs/resources/PaymentMethods.js +4 -0
- package/cjs/stripe.core.js +1 -1
- package/esm/resources/PaymentMethods.js +4 -0
- package/esm/stripe.core.js +1 -1
- package/package.json +1 -1
- package/types/Cards.d.ts +14 -0
- package/types/Charges.d.ts +9 -0
- package/types/ConfirmationTokens.d.ts +14 -0
- package/types/PaymentIntents.d.ts +15 -0
- package/types/PaymentIntentsResource.d.ts +63 -0
- package/types/PaymentMethodBalances.d.ts +63 -0
- package/types/PaymentMethods.d.ts +14 -0
- package/types/PaymentMethodsResource.d.ts +20 -0
- package/types/SetupIntents.d.ts +21 -0
- package/types/SetupIntentsResource.d.ts +90 -0
- package/types/V2/Core/Accounts.d.ts +838 -0
- package/types/V2/Core/AccountsResource.d.ts +977 -0
- package/types/V2/Core/EventTypes.d.ts +71 -34
- package/types/index.d.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,47 +1,31 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 19.2.0-alpha.2 - 2025-10-09
|
|
4
|
+
* [#2457](https://github.com/stripe/stripe-node/pull/2457) Update generated code for private-preview
|
|
5
|
+
* Add support for new resource `PaymentMethodBalance`
|
|
6
|
+
* Add support for `check_balance` method on resource `PaymentMethod`
|
|
7
|
+
* Add support for `benefits` on `Card`, `Charge.payment_method_details.card`, `ConfirmationToken.payment_method_preview.card`, and `PaymentMethod.card`
|
|
8
|
+
* Add support for `benefit` on `PaymentIntent.payment_details`, `PaymentIntentConfirmParams.payment_details`, `PaymentIntentCreateParams.payment_details`, and `PaymentIntentUpdateParams.payment_details`
|
|
9
|
+
* Add support for `setup_details` on `SetupIntentConfirmParams`, `SetupIntentCreateParams`, `SetupIntentUpdateParams`, and `SetupIntent`
|
|
10
|
+
* Add support for new value `card_creator` on enums `V2.Core.Account.applied_configurations` and `V2.Core.AccountCloseParams.applied_configurations`
|
|
11
|
+
* Add support for `card_creator` on `V2.Core.Account.configuration`, `V2.Core.Account.identity.attestations.terms_of_service`, `V2.Core.AccountCreateParams.configuration`, `V2.Core.AccountCreateParams.identity.attestations.terms_of_service`, `V2.Core.AccountUpdateParams.configuration`, and `V2.Core.AccountUpdateParams.identity.attestations.terms_of_service`
|
|
12
|
+
* Add support for new values `commercial.celtic.charge_card`, `commercial.celtic.spend_card`, `commercial.cross_river_bank.charge_card`, `commercial.cross_river_bank.spend_card`, `commercial.stripe.charge_card`, and `commercial.stripe.prepaid_card` on enum `V2.Core.Account.requirements.entries[].impact.restricts_capabilities[].capability`
|
|
13
|
+
* Add support for new value `card_creator` on enum `V2.Core.Account.requirements.entries[].impact.restricts_capabilities[].configuration`
|
|
14
|
+
* Add support for new value `configuration.card_creator` on enums `V2.Core.AccountCreateParams.include`, `V2.Core.AccountRetrieveParams.include`, and `V2.Core.AccountUpdateParams.include`
|
|
15
|
+
* Add support for thin events `V2CoreAccountIncludingConfigurationCardCreatorCapabilityStatusUpdatedEvent` and `V2CoreAccountIncludingConfigurationCardCreatorUpdatedEvent` with related object `V2.Core.Account`
|
|
16
|
+
* Remove support for thin events `V1CustomerDiscountCreatedEvent`, `V1CustomerDiscountDeletedEvent`, and `V1CustomerDiscountUpdatedEvent` with related object `Discount`
|
|
17
|
+
* [#2449](https://github.com/stripe/stripe-node/pull/2449) Update changelog for private preview
|
|
18
|
+
|
|
3
19
|
## 19.2.0-alpha.1 - 2025-10-03
|
|
4
20
|
* Contains bug fixes and improvements from [v19.1.0](https://github.com/stripe/stripe-node/blob/master/CHANGELOG.md#1910---2025-10-03).
|
|
5
21
|
|
|
6
|
-
## 19.1.0
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
* [#
|
|
12
|
-
|
|
13
|
-
* Add support for `acknowledge`, `create`, `recipient_verifications`, and `retrieve` methods on resource `V2.MoneyManagement.RecipientVerification`
|
|
14
|
-
* Add support for `update` method on resources `V2.Billing.PricingPlanSubscription` and `V2.Billing.ServiceAction`
|
|
15
|
-
* Add support for `crypto_wallets` on `V2.Account.configuration.recipient_data.features`, `V2.AccountCreateParams.configuration.recipient_data.features`, `V2.AccountUpdateParams.configuration.recipient_data.features`, `V2.Core.Account.configuration.recipient.capabilities`, `V2.Core.AccountCreateParams.configuration.recipient.capabilities`, and `V2.Core.AccountUpdateParams.configuration.recipient.capabilities`
|
|
16
|
-
* Add support for new value `crypto` on enum `V2.Core.Account.requirements.entries[].impact.restricts_capabilities[].capability`
|
|
17
|
-
* Add support for new value `crypto_wallet` on enum `V2.Account.configuration.recipient_data.default_outbound_destination.type`
|
|
18
|
-
* Add support for new value `crypto_wallets` on enum `V2.Account.configuration.supportable_features.recipient_data`
|
|
19
|
-
* Add support for new value `crypto_wallets` on enum `V2.Account.requirements[].impact.required_for_features`
|
|
20
|
-
* Add support for `lookup_key` on `V2.Billing.CadenceCreateParams`, `V2.Billing.CadenceUpdateParams`, and `V2.Billing.Cadence`
|
|
21
|
-
* Add support for `settings_data` on `V2.Billing.Cadence`
|
|
22
|
-
* Change type of `V2.Billing.Cadence.payer.billing_profile` from `string | null` to `string`
|
|
23
|
-
* Add support for `v1_event_id` on `V2.Core.Event`
|
|
24
|
-
* Add support for `recipient_verification` on `V2.MoneyManagement.OutboundPaymentCreateParams`, `V2.MoneyManagement.OutboundPayment`, `V2.MoneyManagement.OutboundTransferCreateParams`, and `V2.MoneyManagement.OutboundTransfer`
|
|
25
|
-
* Add support for `crypto_wallet` on `V2.MoneyManagement.OutboundSetupIntentCreateParams.payout_method_data` and `V2.MoneyManagement.PayoutMethod`
|
|
26
|
-
* Add support for `custom_pricing_unit_details` on `V2.Billing.RateCardRate.custom_pricing_unit_amount`, `V2.Billing.ServiceAction.credit_grant.amount.custom_pricing_unit`, and `V2.Billing.ServiceAction.credit_grant_per_tenant.amount.custom_pricing_unit`
|
|
27
|
-
* Add support for `origin_type` on `V2.MoneyManagement.ReceivedDebit.bank_transfer`
|
|
28
|
-
* Add support for new value `sepa_credit_transfer` on enum `V2.FinancialAddressCreditSimulationCreditParams.network`
|
|
29
|
-
* Add support for new value `credentials.sepa_bank_account.iban` on enums `V2.MoneyManagement.FinancialAddressListParams.include` and `V2.MoneyManagement.FinancialAddressRetrieveParams.include`
|
|
30
|
-
* Add support for `sepa_bank_account` on `V2.MoneyManagement.FinancialAddressCreateParams`
|
|
31
|
-
* Remove support for `price` on `V2.Billing.RateCardRateCreateParams`
|
|
32
|
-
* Change `V2.Billing.LicenseFeeUpdateParams.display_name` to be optional
|
|
33
|
-
* Add support for `lookup_keys` on `V2.Billing.CadenceListParams`
|
|
34
|
-
* Change type of `V2.Billing.CadenceCancelParams.include`, `V2.Billing.CadenceCreateParams.include`, `V2.Billing.CadenceListParams.include`, `V2.Billing.CadenceRetrieveParams.include`, and `V2.Billing.CadenceUpdateParams.include` from `literal('invoice_discount_rules')` to `enum('invoice_discount_rules'|'settings_data')`
|
|
35
|
-
* Remove support for `customer` and `type` on `V2.Billing.CadenceCreateParams.payer`
|
|
36
|
-
* Change `V2.Billing.CadenceCreateParams.payer.billing_profile` to be required
|
|
37
|
-
* Add support for new value `crypto_wallets` on enum `EventsAccountConfigurationRecipientDataFeatureStatusUpdatedEvent.feature_name`
|
|
38
|
-
* Add support for new value `crypto_wallets_v2` on enum `EventsV2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent.updated_capability`
|
|
39
|
-
* Remove support for `alert_id` on `EventsV2CoreHealthApiErrorResolvedEvent`, `EventsV2CoreHealthApiLatencyResolvedEvent`, `EventsV2CoreHealthAuthorizationRateDropResolvedEvent`, `EventsV2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEvent`, `EventsV2CoreHealthPaymentMethodErrorResolvedEvent`, `EventsV2CoreHealthTrafficVolumeDropResolvedEvent`, and `EventsV2CoreHealthWebhookLatencyResolvedEvent`
|
|
40
|
-
* Add support for thin event `V1AccountUpdatedEvent` with related object `V2.Account`
|
|
41
|
-
* Add support for thin events `V1ApplicationFeeCreatedEvent`, `V1ApplicationFeeRefundedEvent`, `V1BillingPortalConfigurationCreatedEvent`, `V1BillingPortalConfigurationUpdatedEvent`, `V1CapabilityUpdatedEvent`, `V1ChargeCapturedEvent`, `V1ChargeDisputeClosedEvent`, `V1ChargeDisputeCreatedEvent`, `V1ChargeDisputeFundsReinstatedEvent`, `V1ChargeDisputeFundsWithdrawnEvent`, `V1ChargeDisputeUpdatedEvent`, `V1ChargeExpiredEvent`, `V1ChargeFailedEvent`, `V1ChargePendingEvent`, `V1ChargeRefundUpdatedEvent`, `V1ChargeRefundedEvent`, `V1ChargeSucceededEvent`, `V1ChargeUpdatedEvent`, `V1CheckoutSessionAsyncPaymentFailedEvent`, `V1CheckoutSessionAsyncPaymentSucceededEvent`, `V1CheckoutSessionCompletedEvent`, `V1CheckoutSessionExpiredEvent`, `V1ClimateOrderCanceledEvent`, `V1ClimateOrderCreatedEvent`, `V1ClimateOrderDelayedEvent`, `V1ClimateOrderDeliveredEvent`, `V1ClimateOrderProductSubstitutedEvent`, `V1ClimateProductCreatedEvent`, `V1ClimateProductPricingUpdatedEvent`, `V1CouponCreatedEvent`, `V1CouponDeletedEvent`, `V1CouponUpdatedEvent`, `V1CreditNoteCreatedEvent`, `V1CreditNoteUpdatedEvent`, `V1CreditNoteVoidedEvent`, `V1CustomerCreatedEvent`, `V1CustomerDeletedEvent`, `V1CustomerDiscountCreatedEvent`, `V1CustomerDiscountDeletedEvent`, `V1CustomerDiscountUpdatedEvent`, `V1CustomerSubscriptionCreatedEvent`, `V1CustomerSubscriptionDeletedEvent`, `V1CustomerSubscriptionPausedEvent`, `V1CustomerSubscriptionPendingUpdateAppliedEvent`, `V1CustomerSubscriptionPendingUpdateExpiredEvent`, `V1CustomerSubscriptionResumedEvent`, `V1CustomerSubscriptionTrialWillEndEvent`, `V1CustomerSubscriptionUpdatedEvent`, `V1CustomerTaxIdCreatedEvent`, `V1CustomerTaxIdDeletedEvent`, `V1CustomerTaxIdUpdatedEvent`, `V1CustomerUpdatedEvent`, `V1FileCreatedEvent`, `V1FinancialConnectionsAccountCreatedEvent`, `V1FinancialConnectionsAccountDeactivatedEvent`, `V1FinancialConnectionsAccountDisconnectedEvent`, `V1FinancialConnectionsAccountReactivatedEvent`, `V1FinancialConnectionsAccountRefreshedBalanceEvent`, `V1FinancialConnectionsAccountRefreshedOwnershipEvent`, `V1FinancialConnectionsAccountRefreshedTransactionsEvent`, `V1IdentityVerificationSessionCanceledEvent`, `V1IdentityVerificationSessionCreatedEvent`, `V1IdentityVerificationSessionProcessingEvent`, `V1IdentityVerificationSessionRedactedEvent`, `V1IdentityVerificationSessionRequiresInputEvent`, `V1IdentityVerificationSessionVerifiedEvent`, `V1InvoiceCreatedEvent`, `V1InvoiceDeletedEvent`, `V1InvoiceFinalizationFailedEvent`, `V1InvoiceFinalizedEvent`, `V1InvoiceMarkedUncollectibleEvent`, `V1InvoiceOverdueEvent`, `V1InvoiceOverpaidEvent`, `V1InvoicePaidEvent`, `V1InvoicePaymentActionRequiredEvent`, `V1InvoicePaymentFailedEvent`, `V1InvoicePaymentPaidEvent`, `V1InvoicePaymentSucceededEvent`, `V1InvoiceSentEvent`, `V1InvoiceUpcomingEvent`, `V1InvoiceUpdatedEvent`, `V1InvoiceVoidedEvent`, `V1InvoiceWillBeDueEvent`, `V1InvoiceitemCreatedEvent`, `V1InvoiceitemDeletedEvent`, `V1IssuingAuthorizationCreatedEvent`, `V1IssuingAuthorizationRequestEvent`, `V1IssuingAuthorizationUpdatedEvent`, `V1IssuingCardCreatedEvent`, `V1IssuingCardUpdatedEvent`, `V1IssuingCardholderCreatedEvent`, `V1IssuingCardholderUpdatedEvent`, `V1IssuingDisputeClosedEvent`, `V1IssuingDisputeCreatedEvent`, `V1IssuingDisputeFundsReinstatedEvent`, `V1IssuingDisputeFundsRescindedEvent`, `V1IssuingDisputeSubmittedEvent`, `V1IssuingDisputeUpdatedEvent`, `V1IssuingPersonalizationDesignActivatedEvent`, `V1IssuingPersonalizationDesignDeactivatedEvent`, `V1IssuingPersonalizationDesignRejectedEvent`, `V1IssuingPersonalizationDesignUpdatedEvent`, `V1IssuingTokenCreatedEvent`, `V1IssuingTokenUpdatedEvent`, `V1IssuingTransactionCreatedEvent`, `V1IssuingTransactionPurchaseDetailsReceiptUpdatedEvent`, `V1IssuingTransactionUpdatedEvent`, `V1MandateUpdatedEvent`, `V1PaymentIntentAmountCapturableUpdatedEvent`, `V1PaymentIntentCanceledEvent`, `V1PaymentIntentCreatedEvent`, `V1PaymentIntentPartiallyFundedEvent`, `V1PaymentIntentPaymentFailedEvent`, `V1PaymentIntentProcessingEvent`, `V1PaymentIntentRequiresActionEvent`, `V1PaymentIntentSucceededEvent`, `V1PaymentLinkCreatedEvent`, `V1PaymentLinkUpdatedEvent`, `V1PaymentMethodAttachedEvent`, `V1PaymentMethodAutomaticallyUpdatedEvent`, `V1PaymentMethodDetachedEvent`, `V1PaymentMethodUpdatedEvent`, `V1PayoutCanceledEvent`, `V1PayoutCreatedEvent`, `V1PayoutFailedEvent`, `V1PayoutPaidEvent`, `V1PayoutReconciliationCompletedEvent`, `V1PayoutUpdatedEvent`, `V1PersonCreatedEvent`, `V1PersonDeletedEvent`, `V1PersonUpdatedEvent`, `V1PlanCreatedEvent`, `V1PlanDeletedEvent`, `V1PlanUpdatedEvent`, `V1PriceCreatedEvent`, `V1PriceDeletedEvent`, `V1PriceUpdatedEvent`, `V1ProductCreatedEvent`, `V1ProductDeletedEvent`, `V1ProductUpdatedEvent`, `V1PromotionCodeCreatedEvent`, `V1PromotionCodeUpdatedEvent`, `V1QuoteAcceptedEvent`, `V1QuoteCanceledEvent`, `V1QuoteCreatedEvent`, `V1QuoteFinalizedEvent`, `V1RadarEarlyFraudWarningCreatedEvent`, `V1RadarEarlyFraudWarningUpdatedEvent`, `V1RefundCreatedEvent`, `V1RefundFailedEvent`, `V1RefundUpdatedEvent`, `V1ReviewClosedEvent`, `V1ReviewOpenedEvent`, `V1SetupIntentCanceledEvent`, `V1SetupIntentCreatedEvent`, `V1SetupIntentRequiresActionEvent`, `V1SetupIntentSetupFailedEvent`, `V1SetupIntentSucceededEvent`, `V1SigmaScheduledQueryRunCreatedEvent`, `V1SourceCanceledEvent`, `V1SourceChargeableEvent`, `V1SourceFailedEvent`, `V1SourceRefundAttributesRequiredEvent`, `V1SubscriptionScheduleAbortedEvent`, `V1SubscriptionScheduleCanceledEvent`, `V1SubscriptionScheduleCompletedEvent`, `V1SubscriptionScheduleCreatedEvent`, `V1SubscriptionScheduleExpiringEvent`, `V1SubscriptionScheduleReleasedEvent`, `V1SubscriptionScheduleUpdatedEvent`, `V1TaxRateCreatedEvent`, `V1TaxRateUpdatedEvent`, `V1TerminalReaderActionFailedEvent`, `V1TerminalReaderActionSucceededEvent`, `V1TerminalReaderActionUpdatedEvent`, `V1TestHelpersTestClockAdvancingEvent`, `V1TestHelpersTestClockCreatedEvent`, `V1TestHelpersTestClockDeletedEvent`, `V1TestHelpersTestClockInternalFailureEvent`, `V1TestHelpersTestClockReadyEvent`, `V1TopupCanceledEvent`, `V1TopupCreatedEvent`, `V1TopupFailedEvent`, `V1TopupReversedEvent`, `V1TopupSucceededEvent`, `V1TransferCreatedEvent`, `V1TransferReversedEvent`, `V1TransferUpdatedEvent`, `V2CoreHealthIssuingAuthorizationRequestErrorsFiringEvent`, and `V2CoreHealthIssuingAuthorizationRequestErrorsResolvedEvent`
|
|
42
|
-
* Add support for thin event `V2CoreClaimableSandboxCreatedEvent` with related object `V2.Core.ClaimableSandbox`
|
|
43
|
-
* Add support for thin events `V2MoneyManagementRecipientVerificationCreatedEvent` and `V2MoneyManagementRecipientVerificationUpdatedEvent` with related object `V2.MoneyManagement.RecipientVerification`
|
|
44
|
-
* Add support for error code `account_rate_limit_exceeded` on `RateLimitError`
|
|
22
|
+
## 19.1.0 - 2025-10-03
|
|
23
|
+
* [#2453](https://github.com/stripe/stripe-node/pull/2453) add missing fetchEvent type for UnknownEventNotification
|
|
24
|
+
|
|
25
|
+
- Add missing `fetchEvent()` declaration to the `Stripe.Events.UnknownEventNotification` interface
|
|
26
|
+
- Tweak `Stripe.Events.fetchRelatedObject` so that it's always defined and returns `null` if there's no `related_object`. This fixes the situation where the `UnknownEventNotification` says that `fetchRelatedObject()` is defined, but calling it throws an error.
|
|
27
|
+
* [#2447](https://github.com/stripe/stripe-node/pull/2447) Update param in deprecation docs link
|
|
28
|
+
* [#2444](https://github.com/stripe/stripe-node/pull/2444) Update CHANGELOG.md to point to right API version
|
|
45
29
|
|
|
46
30
|
## 19.1.0-beta.1 - 2025-09-30
|
|
47
31
|
This release changes the pinned API version to `2025-09-30.preview`. It is built on top of SDK version 19.0.0 which contains breaking changes. Please review the [changelog for 19.0.0](https://github.com/stripe/stripe-go/blob/master/CHANGELOG.md#1900---2025-09-30) if upgrading from older SDK versions.
|
|
@@ -109,6 +93,59 @@ This release changes the pinned API version to `2025-09-30.preview`. It is built
|
|
|
109
93
|
* Add support for `billed_until` on `SubscriptionItem`
|
|
110
94
|
* Add support for error codes `financial_connections_account_pending_account_numbers` and `financial_connections_account_unavailable_account_numbers` on `QuotePreviewInvoice.last_finalization_error`
|
|
111
95
|
|
|
96
|
+
## 19.1.0-alpha.1 - 2025-09-30
|
|
97
|
+
This release changes the pinned API version to `2025-09-30.preview`. It is built on top of SDK version 19.0.0 and 19.1.0-beta.1 which contain breaking changes. Please review the changelog for these versions if upgrading from older SDK versions.
|
|
98
|
+
|
|
99
|
+
* [#2417](https://github.com/stripe/stripe-node/pull/2417) parseThinEvent__experimental is no longer needed
|
|
100
|
+
* ⚠️ Remove the `StripeClient.parseThinEvent__experimental` and `PushedThinEvent` classes. They've been replaced with `StripeClient.parseEventNotification` and the *`EventNotification` classes respectively.
|
|
101
|
+
* [#2419](https://github.com/stripe/stripe-node/pull/2419) Update generated code for private-preview
|
|
102
|
+
* Add support for `paypay_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities`
|
|
103
|
+
* Remove support for values `saturday` and `sunday` from enums `Account.settings.payouts.schedule.weekly_payout_days`, `AccountCreateParams.settings.payouts.schedule.weekly_payout_days`, `AccountUpdateParams.settings.payouts.schedule.weekly_payout_days`
|
|
104
|
+
* Add support for `credit_grants` on `Billing.AlertCreateParams.credit_balance_threshold.filters[]`
|
|
105
|
+
* Add support for `paypay` 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`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data`
|
|
106
|
+
* Add support for `location` and `reader` on `Charge.payment_method_details.paynow`
|
|
107
|
+
* Add support for new value `paypay` on enum `Checkout.SessionCreateParams.payment_method_types`
|
|
108
|
+
* Add support for new value `paypay` 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`
|
|
109
|
+
* Add support for new value `paypay` on enums `ConfirmationToken.payment_method_preview.type` and `PaymentMethod.type`
|
|
110
|
+
* Add support for new value `paypay` on enums `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type`
|
|
111
|
+
* Add support for new value `paypay` on enums `PaymentIntent.excluded_payment_method_types` and `PaymentIntentCreateParams.excluded_payment_method_types`
|
|
112
|
+
* Add support for new value `paypay` on enums `PaymentLink.payment_method_types`, `PaymentLinkCreateParams.payment_method_types`, and `PaymentLinkUpdateParams.payment_method_types`
|
|
113
|
+
* Add support for `billing_cadence` on `InvoiceListParams`
|
|
114
|
+
* Add support for `payment_record_refund` and `type` on `CreditNote.refunds[]`, `CreditNoteCreateParams.refunds[]`, `CreditNotePreviewLinesParams.refunds[]`, and `CreditNotePreviewParams.refunds[]`
|
|
115
|
+
* [#2409](https://github.com/stripe/stripe-node/pull/2409) Update generated code for private-preview
|
|
116
|
+
* Add support for new resource `V2.MoneyManagement.RecipientVerification`
|
|
117
|
+
* Add support for `acknowledge`, `create`, `recipient_verifications`, and `retrieve` methods on resource `V2.MoneyManagement.RecipientVerification`
|
|
118
|
+
* Add support for `update` method on resources `V2.Billing.PricingPlanSubscription` and `V2.Billing.ServiceAction`
|
|
119
|
+
* Add support for `crypto_wallets` on `V2.Account.configuration.recipient_data.features`, `V2.AccountCreateParams.configuration.recipient_data.features`, `V2.AccountUpdateParams.configuration.recipient_data.features`, `V2.Core.Account.configuration.recipient.capabilities`, `V2.Core.AccountCreateParams.configuration.recipient.capabilities`, and `V2.Core.AccountUpdateParams.configuration.recipient.capabilities`
|
|
120
|
+
* Add support for new value `crypto` on enum `V2.Core.Account.requirements.entries[].impact.restricts_capabilities[].capability`
|
|
121
|
+
* Add support for new value `crypto_wallet` on enum `V2.Account.configuration.recipient_data.default_outbound_destination.type`
|
|
122
|
+
* Add support for new value `crypto_wallets` on enum `V2.Account.configuration.supportable_features.recipient_data`
|
|
123
|
+
* Add support for new value `crypto_wallets` on enum `V2.Account.requirements[].impact.required_for_features`
|
|
124
|
+
* Add support for `lookup_key` on `V2.Billing.CadenceCreateParams`, `V2.Billing.CadenceUpdateParams`, and `V2.Billing.Cadence`
|
|
125
|
+
* Add support for `settings_data` on `V2.Billing.Cadence`
|
|
126
|
+
* Change type of `V2.Billing.Cadence.payer.billing_profile` from `string | null` to `string`
|
|
127
|
+
* Add support for `v1_event_id` on `V2.Core.Event`
|
|
128
|
+
* Add support for `recipient_verification` on `V2.MoneyManagement.OutboundPaymentCreateParams`, `V2.MoneyManagement.OutboundPayment`, `V2.MoneyManagement.OutboundTransferCreateParams`, and `V2.MoneyManagement.OutboundTransfer`
|
|
129
|
+
* Add support for `crypto_wallet` on `V2.MoneyManagement.OutboundSetupIntentCreateParams.payout_method_data` and `V2.MoneyManagement.PayoutMethod`
|
|
130
|
+
* Add support for `custom_pricing_unit_details` on `V2.Billing.RateCardRate.custom_pricing_unit_amount`, `V2.Billing.ServiceAction.credit_grant.amount.custom_pricing_unit`, and `V2.Billing.ServiceAction.credit_grant_per_tenant.amount.custom_pricing_unit`
|
|
131
|
+
* Add support for `origin_type` on `V2.MoneyManagement.ReceivedDebit.bank_transfer`
|
|
132
|
+
* Add support for new value `sepa_credit_transfer` on enum `V2.FinancialAddressCreditSimulationCreditParams.network`
|
|
133
|
+
* Add support for new value `credentials.sepa_bank_account.iban` on enums `V2.MoneyManagement.FinancialAddressListParams.include` and `V2.MoneyManagement.FinancialAddressRetrieveParams.include`
|
|
134
|
+
* Add support for `sepa_bank_account` on `V2.MoneyManagement.FinancialAddressCreateParams`
|
|
135
|
+
* Remove support for `price` on `V2.Billing.RateCardRateCreateParams`
|
|
136
|
+
* Add support for `lookup_keys` on `V2.Billing.CadenceListParams`
|
|
137
|
+
* Change type of `V2.Billing.CadenceCancelParams.include`, `V2.Billing.CadenceCreateParams.include`, `V2.Billing.CadenceListParams.include`, `V2.Billing.CadenceRetrieveParams.include`, and `V2.Billing.CadenceUpdateParams.include` from `literal('invoice_discount_rules')` to `enum('invoice_discount_rules'|'settings_data')`
|
|
138
|
+
* Remove support for `customer` and `type` on `V2.Billing.CadenceCreateParams.payer`
|
|
139
|
+
* Change `V2.Billing.CadenceCreateParams.payer.billing_profile` to be required
|
|
140
|
+
* Add support for new value `crypto_wallets` on enum `EventsAccountConfigurationRecipientDataFeatureStatusUpdatedEvent.feature_name`
|
|
141
|
+
* Add support for new value `crypto_wallets_v2` on enum `EventsV2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent.updated_capability`
|
|
142
|
+
* Remove support for `alert_id` on `EventsV2CoreHealthApiErrorResolvedEvent`, `EventsV2CoreHealthApiLatencyResolvedEvent`, `EventsV2CoreHealthAuthorizationRateDropResolvedEvent`, `EventsV2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEvent`, `EventsV2CoreHealthPaymentMethodErrorResolvedEvent`, `EventsV2CoreHealthTrafficVolumeDropResolvedEvent`, and `EventsV2CoreHealthWebhookLatencyResolvedEvent`
|
|
143
|
+
* Add support for thin event `V1AccountUpdatedEvent` with related object `V2.Account`
|
|
144
|
+
* Add support for thin events `V1ApplicationFeeCreatedEvent`, `V1ApplicationFeeRefundedEvent`, `V1BillingPortalConfigurationCreatedEvent`, `V1BillingPortalConfigurationUpdatedEvent`, `V1CapabilityUpdatedEvent`, `V1ChargeCapturedEvent`, `V1ChargeDisputeClosedEvent`, `V1ChargeDisputeCreatedEvent`, `V1ChargeDisputeFundsReinstatedEvent`, `V1ChargeDisputeFundsWithdrawnEvent`, `V1ChargeDisputeUpdatedEvent`, `V1ChargeExpiredEvent`, `V1ChargeFailedEvent`, `V1ChargePendingEvent`, `V1ChargeRefundUpdatedEvent`, `V1ChargeRefundedEvent`, `V1ChargeSucceededEvent`, `V1ChargeUpdatedEvent`, `V1CheckoutSessionAsyncPaymentFailedEvent`, `V1CheckoutSessionAsyncPaymentSucceededEvent`, `V1CheckoutSessionCompletedEvent`, `V1CheckoutSessionExpiredEvent`, `V1ClimateOrderCanceledEvent`, `V1ClimateOrderCreatedEvent`, `V1ClimateOrderDelayedEvent`, `V1ClimateOrderDeliveredEvent`, `V1ClimateOrderProductSubstitutedEvent`, `V1ClimateProductCreatedEvent`, `V1ClimateProductPricingUpdatedEvent`, `V1CouponCreatedEvent`, `V1CouponDeletedEvent`, `V1CouponUpdatedEvent`, `V1CreditNoteCreatedEvent`, `V1CreditNoteUpdatedEvent`, `V1CreditNoteVoidedEvent`, `V1CustomerCreatedEvent`, `V1CustomerDeletedEvent`, `V1CustomerDiscountCreatedEvent`, `V1CustomerDiscountDeletedEvent`, `V1CustomerDiscountUpdatedEvent`, `V1CustomerSubscriptionCreatedEvent`, `V1CustomerSubscriptionDeletedEvent`, `V1CustomerSubscriptionPausedEvent`, `V1CustomerSubscriptionPendingUpdateAppliedEvent`, `V1CustomerSubscriptionPendingUpdateExpiredEvent`, `V1CustomerSubscriptionResumedEvent`, `V1CustomerSubscriptionTrialWillEndEvent`, `V1CustomerSubscriptionUpdatedEvent`, `V1CustomerTaxIdCreatedEvent`, `V1CustomerTaxIdDeletedEvent`, `V1CustomerTaxIdUpdatedEvent`, `V1CustomerUpdatedEvent`, `V1FileCreatedEvent`, `V1FinancialConnectionsAccountCreatedEvent`, `V1FinancialConnectionsAccountDeactivatedEvent`, `V1FinancialConnectionsAccountDisconnectedEvent`, `V1FinancialConnectionsAccountReactivatedEvent`, `V1FinancialConnectionsAccountRefreshedBalanceEvent`, `V1FinancialConnectionsAccountRefreshedOwnershipEvent`, `V1FinancialConnectionsAccountRefreshedTransactionsEvent`, `V1IdentityVerificationSessionCanceledEvent`, `V1IdentityVerificationSessionCreatedEvent`, `V1IdentityVerificationSessionProcessingEvent`, `V1IdentityVerificationSessionRedactedEvent`, `V1IdentityVerificationSessionRequiresInputEvent`, `V1IdentityVerificationSessionVerifiedEvent`, `V1InvoiceCreatedEvent`, `V1InvoiceDeletedEvent`, `V1InvoiceFinalizationFailedEvent`, `V1InvoiceFinalizedEvent`, `V1InvoiceMarkedUncollectibleEvent`, `V1InvoiceOverdueEvent`, `V1InvoiceOverpaidEvent`, `V1InvoicePaidEvent`, `V1InvoicePaymentActionRequiredEvent`, `V1InvoicePaymentFailedEvent`, `V1InvoicePaymentPaidEvent`, `V1InvoicePaymentSucceededEvent`, `V1InvoiceSentEvent`, `V1InvoiceUpcomingEvent`, `V1InvoiceUpdatedEvent`, `V1InvoiceVoidedEvent`, `V1InvoiceWillBeDueEvent`, `V1InvoiceitemCreatedEvent`, `V1InvoiceitemDeletedEvent`, `V1IssuingAuthorizationCreatedEvent`, `V1IssuingAuthorizationRequestEvent`, `V1IssuingAuthorizationUpdatedEvent`, `V1IssuingCardCreatedEvent`, `V1IssuingCardUpdatedEvent`, `V1IssuingCardholderCreatedEvent`, `V1IssuingCardholderUpdatedEvent`, `V1IssuingDisputeClosedEvent`, `V1IssuingDisputeCreatedEvent`, `V1IssuingDisputeFundsReinstatedEvent`, `V1IssuingDisputeFundsRescindedEvent`, `V1IssuingDisputeSubmittedEvent`, `V1IssuingDisputeUpdatedEvent`, `V1IssuingPersonalizationDesignActivatedEvent`, `V1IssuingPersonalizationDesignDeactivatedEvent`, `V1IssuingPersonalizationDesignRejectedEvent`, `V1IssuingPersonalizationDesignUpdatedEvent`, `V1IssuingTokenCreatedEvent`, `V1IssuingTokenUpdatedEvent`, `V1IssuingTransactionCreatedEvent`, `V1IssuingTransactionPurchaseDetailsReceiptUpdatedEvent`, `V1IssuingTransactionUpdatedEvent`, `V1MandateUpdatedEvent`, `V1PaymentIntentAmountCapturableUpdatedEvent`, `V1PaymentIntentCanceledEvent`, `V1PaymentIntentCreatedEvent`, `V1PaymentIntentPartiallyFundedEvent`, `V1PaymentIntentPaymentFailedEvent`, `V1PaymentIntentProcessingEvent`, `V1PaymentIntentRequiresActionEvent`, `V1PaymentIntentSucceededEvent`, `V1PaymentLinkCreatedEvent`, `V1PaymentLinkUpdatedEvent`, `V1PaymentMethodAttachedEvent`, `V1PaymentMethodAutomaticallyUpdatedEvent`, `V1PaymentMethodDetachedEvent`, `V1PaymentMethodUpdatedEvent`, `V1PayoutCanceledEvent`, `V1PayoutCreatedEvent`, `V1PayoutFailedEvent`, `V1PayoutPaidEvent`, `V1PayoutReconciliationCompletedEvent`, `V1PayoutUpdatedEvent`, `V1PersonCreatedEvent`, `V1PersonDeletedEvent`, `V1PersonUpdatedEvent`, `V1PlanCreatedEvent`, `V1PlanDeletedEvent`, `V1PlanUpdatedEvent`, `V1PriceCreatedEvent`, `V1PriceDeletedEvent`, `V1PriceUpdatedEvent`, `V1ProductCreatedEvent`, `V1ProductDeletedEvent`, `V1ProductUpdatedEvent`, `V1PromotionCodeCreatedEvent`, `V1PromotionCodeUpdatedEvent`, `V1QuoteAcceptedEvent`, `V1QuoteCanceledEvent`, `V1QuoteCreatedEvent`, `V1QuoteFinalizedEvent`, `V1RadarEarlyFraudWarningCreatedEvent`, `V1RadarEarlyFraudWarningUpdatedEvent`, `V1RefundCreatedEvent`, `V1RefundFailedEvent`, `V1RefundUpdatedEvent`, `V1ReviewClosedEvent`, `V1ReviewOpenedEvent`, `V1SetupIntentCanceledEvent`, `V1SetupIntentCreatedEvent`, `V1SetupIntentRequiresActionEvent`, `V1SetupIntentSetupFailedEvent`, `V1SetupIntentSucceededEvent`, `V1SigmaScheduledQueryRunCreatedEvent`, `V1SourceCanceledEvent`, `V1SourceChargeableEvent`, `V1SourceFailedEvent`, `V1SourceRefundAttributesRequiredEvent`, `V1SubscriptionScheduleAbortedEvent`, `V1SubscriptionScheduleCanceledEvent`, `V1SubscriptionScheduleCompletedEvent`, `V1SubscriptionScheduleCreatedEvent`, `V1SubscriptionScheduleExpiringEvent`, `V1SubscriptionScheduleReleasedEvent`, `V1SubscriptionScheduleUpdatedEvent`, `V1TaxRateCreatedEvent`, `V1TaxRateUpdatedEvent`, `V1TerminalReaderActionFailedEvent`, `V1TerminalReaderActionSucceededEvent`, `V1TerminalReaderActionUpdatedEvent`, `V1TestHelpersTestClockAdvancingEvent`, `V1TestHelpersTestClockCreatedEvent`, `V1TestHelpersTestClockDeletedEvent`, `V1TestHelpersTestClockInternalFailureEvent`, `V1TestHelpersTestClockReadyEvent`, `V1TopupCanceledEvent`, `V1TopupCreatedEvent`, `V1TopupFailedEvent`, `V1TopupReversedEvent`, `V1TopupSucceededEvent`, `V1TransferCreatedEvent`, `V1TransferReversedEvent`, `V1TransferUpdatedEvent`, `V2CoreHealthIssuingAuthorizationRequestErrorsFiringEvent`, and `V2CoreHealthIssuingAuthorizationRequestErrorsResolvedEvent`
|
|
145
|
+
* Add support for thin event `V2CoreClaimableSandboxCreatedEvent` with related object `V2.Core.ClaimableSandbox`
|
|
146
|
+
* Add support for thin events `V2MoneyManagementRecipientVerificationCreatedEvent` and `V2MoneyManagementRecipientVerificationUpdatedEvent` with related object `V2.MoneyManagement.RecipientVerification`
|
|
147
|
+
* Add support for error code `account_rate_limit_exceeded` on `RateLimitError`
|
|
148
|
+
|
|
112
149
|
## 19.0.0 - 2025-09-30
|
|
113
150
|
This release changes the pinned API version to `2025-09-30.clover` and contains breaking changes (prefixed with ⚠️ below)
|
|
114
151
|
|
|
@@ -185,14 +222,14 @@ This release changes the pinned API version to `2025-09-30.clover` and contains
|
|
|
185
222
|
|
|
186
223
|
* [#2404](https://github.com/stripe/stripe-node/pull/2404) Update generated code for private-preview
|
|
187
224
|
* Add support for `retrieve` method on resource `V2.Core.ClaimableSandbox`
|
|
188
|
-
* Add support for `month_of_year` on `V2.Billing.Cadence
|
|
225
|
+
* Add support for `month_of_year` on `V2.Billing.Cadence.billing_cycle.month` and `V2.Billing.CadenceCreateParams.billing_cycle.month`
|
|
189
226
|
* Add support for `claimed_at`, `expires_at`, `sandbox_details`, and `status` on `V2.Core.ClaimableSandbox`
|
|
190
227
|
* Remove support for `api_keys` on `V2.Core.ClaimableSandbox`
|
|
191
|
-
* Change type of `V2.Core.ClaimableSandbox.claim_url` from `string` to `
|
|
192
|
-
* Add support for new value `current_billing_period_end` on enums `V2.Billing.
|
|
228
|
+
* Change type of `V2.Core.ClaimableSandbox.claim_url` from `string` to `string | null`
|
|
229
|
+
* Add support for new value `current_billing_period_end` on enums `V2.Billing.IntentAction.deactivate.effective_at.type` and `V2.Billing.IntentCreateParams.actions[].deactivate.effective_at.type`
|
|
193
230
|
* Add support for `will_activate_at` and `will_cancel_at` on `V2.Billing.PricingPlanSubscription.servicing_status_transitions` and `V2.Billing.RateCardSubscription.servicing_status_transitions`
|
|
194
|
-
* Add support for `category` and `priority` on `V2.Billing.ServiceAction
|
|
195
|
-
* Change `V2.Billing.
|
|
231
|
+
* Add support for `category` and `priority` on `V2.Billing.ServiceAction.credit_grant_per_tenant`, `V2.Billing.ServiceAction.credit_grant`, `V2.Billing.ServiceActionCreateParams.credit_grant_per_tenant`, and `V2.Billing.ServiceActionCreateParams.credit_grant`
|
|
232
|
+
* Change `V2.Billing.LicenseFeeUpdateParams.display_name` to be optional
|
|
196
233
|
* Add support for `invoices` on `EventsV2BillingCadenceBilledEvent`
|
|
197
234
|
* Add support for thin events `V2CoreClaimableSandboxClaimedEvent`, `V2CoreClaimableSandboxExpiredEvent`, `V2CoreClaimableSandboxExpiringEvent`, and `V2CoreClaimableSandboxSandboxDetailsOwnerAccountUpdatedEvent` with related object `V2.Core.ClaimableSandbox`
|
|
198
235
|
* Remove support for thin event `V2BillingCadenceErroredEvent` with related object `V2.Billing.Cadence`
|
package/OPENAPI_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
v2049
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
19.2.0-alpha.
|
|
1
|
+
19.2.0-alpha.2
|
|
@@ -23,6 +23,10 @@ exports.PaymentMethods = StripeResource_js_1.StripeResource.extend({
|
|
|
23
23
|
method: 'POST',
|
|
24
24
|
fullPath: '/v1/payment_methods/{payment_method}/attach',
|
|
25
25
|
}),
|
|
26
|
+
checkBalance: stripeMethod({
|
|
27
|
+
method: 'POST',
|
|
28
|
+
fullPath: '/v1/payment_methods/{payment_method}/check_balance',
|
|
29
|
+
}),
|
|
26
30
|
detach: stripeMethod({
|
|
27
31
|
method: 'POST',
|
|
28
32
|
fullPath: '/v1/payment_methods/{payment_method}/detach',
|
package/cjs/stripe.core.js
CHANGED
|
@@ -37,7 +37,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
|
|
|
37
37
|
];
|
|
38
38
|
const defaultRequestSenderFactory = (stripe) => new RequestSender_js_1.RequestSender(stripe, StripeResource_js_1.StripeResource.MAX_BUFFERED_REQUEST_METRICS);
|
|
39
39
|
function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
|
|
40
|
-
Stripe.PACKAGE_VERSION = '19.2.0-alpha.
|
|
40
|
+
Stripe.PACKAGE_VERSION = '19.2.0-alpha.2';
|
|
41
41
|
Stripe.API_VERSION = apiVersion_js_1.ApiVersion;
|
|
42
42
|
Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, (0, utils_js_1.determineProcessUserAgentProperties)());
|
|
43
43
|
Stripe.StripeResource = StripeResource_js_1.StripeResource;
|
|
@@ -20,6 +20,10 @@ export const PaymentMethods = StripeResource.extend({
|
|
|
20
20
|
method: 'POST',
|
|
21
21
|
fullPath: '/v1/payment_methods/{payment_method}/attach',
|
|
22
22
|
}),
|
|
23
|
+
checkBalance: stripeMethod({
|
|
24
|
+
method: 'POST',
|
|
25
|
+
fullPath: '/v1/payment_methods/{payment_method}/check_balance',
|
|
26
|
+
}),
|
|
23
27
|
detach: stripeMethod({
|
|
24
28
|
method: 'POST',
|
|
25
29
|
fullPath: '/v1/payment_methods/{payment_method}/detach',
|
package/esm/stripe.core.js
CHANGED
|
@@ -34,7 +34,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
|
|
|
34
34
|
];
|
|
35
35
|
const defaultRequestSenderFactory = (stripe) => new RequestSender(stripe, StripeResource.MAX_BUFFERED_REQUEST_METRICS);
|
|
36
36
|
export function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
|
|
37
|
-
Stripe.PACKAGE_VERSION = '19.2.0-alpha.
|
|
37
|
+
Stripe.PACKAGE_VERSION = '19.2.0-alpha.2';
|
|
38
38
|
Stripe.API_VERSION = ApiVersion;
|
|
39
39
|
Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, determineProcessUserAgentProperties());
|
|
40
40
|
Stripe.StripeResource = StripeResource;
|
package/package.json
CHANGED
package/types/Cards.d.ts
CHANGED
|
@@ -72,6 +72,8 @@ declare module 'stripe' {
|
|
|
72
72
|
*/
|
|
73
73
|
available_payout_methods?: Array<Card.AvailablePayoutMethod> | null;
|
|
74
74
|
|
|
75
|
+
benefits?: Card.Benefits;
|
|
76
|
+
|
|
75
77
|
/**
|
|
76
78
|
* Card brand. Can be `American Express`, `Cartes Bancaires`, `Diners Club`, `Discover`, `Eftpos Australia`, `Girocard`, `JCB`, `MasterCard`, `UnionPay`, `Visa`, or `Unknown`.
|
|
77
79
|
*/
|
|
@@ -192,6 +194,18 @@ declare module 'stripe' {
|
|
|
192
194
|
|
|
193
195
|
type AvailablePayoutMethod = 'instant' | 'standard';
|
|
194
196
|
|
|
197
|
+
interface Benefits {
|
|
198
|
+
/**
|
|
199
|
+
* Issuer of this benefit card
|
|
200
|
+
*/
|
|
201
|
+
issuer: string | null;
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* Available benefit programs for this card
|
|
205
|
+
*/
|
|
206
|
+
programs: Array<string> | null;
|
|
207
|
+
}
|
|
208
|
+
|
|
195
209
|
interface Networks {
|
|
196
210
|
/**
|
|
197
211
|
* The preferred network for co-branded cards. Can be `cartes_bancaires`, `mastercard`, `visa` or `invalid_preference` if requested network is not valid for the card.
|
package/types/Charges.d.ts
CHANGED
|
@@ -988,9 +988,18 @@ declare module 'stripe' {
|
|
|
988
988
|
* If this Card is part of a card wallet, this contains the details of the card wallet.
|
|
989
989
|
*/
|
|
990
990
|
wallet: Card.Wallet | null;
|
|
991
|
+
|
|
992
|
+
benefits?: Card.Benefits;
|
|
991
993
|
}
|
|
992
994
|
|
|
993
995
|
namespace Card {
|
|
996
|
+
interface Benefits {
|
|
997
|
+
/**
|
|
998
|
+
* Issuer of the benefit card utilized on this payment
|
|
999
|
+
*/
|
|
1000
|
+
issuer: string | null;
|
|
1001
|
+
}
|
|
1002
|
+
|
|
994
1003
|
interface Checks {
|
|
995
1004
|
/**
|
|
996
1005
|
* If a address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
|
|
@@ -517,9 +517,23 @@ declare module 'stripe' {
|
|
|
517
517
|
* If this Card is part of a card wallet, this contains the details of the card wallet.
|
|
518
518
|
*/
|
|
519
519
|
wallet: Card.Wallet | null;
|
|
520
|
+
|
|
521
|
+
benefits?: Card.Benefits;
|
|
520
522
|
}
|
|
521
523
|
|
|
522
524
|
namespace Card {
|
|
525
|
+
interface Benefits {
|
|
526
|
+
/**
|
|
527
|
+
* Issuer of this benefit card
|
|
528
|
+
*/
|
|
529
|
+
issuer: string | null;
|
|
530
|
+
|
|
531
|
+
/**
|
|
532
|
+
* Available benefit programs for this card
|
|
533
|
+
*/
|
|
534
|
+
programs: Array<string> | null;
|
|
535
|
+
}
|
|
536
|
+
|
|
523
537
|
interface Checks {
|
|
524
538
|
/**
|
|
525
539
|
* If a address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
|
|
@@ -1501,9 +1501,24 @@ declare module 'stripe' {
|
|
|
1501
1501
|
order_reference?: string | null;
|
|
1502
1502
|
|
|
1503
1503
|
subscription?: PaymentDetails.Subscription;
|
|
1504
|
+
|
|
1505
|
+
benefit?: PaymentDetails.Benefit;
|
|
1504
1506
|
}
|
|
1505
1507
|
|
|
1506
1508
|
namespace PaymentDetails {
|
|
1509
|
+
interface Benefit {
|
|
1510
|
+
fr_meal_voucher?: Benefit.FrMealVoucher;
|
|
1511
|
+
}
|
|
1512
|
+
|
|
1513
|
+
namespace Benefit {
|
|
1514
|
+
interface FrMealVoucher {
|
|
1515
|
+
/**
|
|
1516
|
+
* The 14-digit SIRET of the meal voucher acceptor.
|
|
1517
|
+
*/
|
|
1518
|
+
siret?: string;
|
|
1519
|
+
}
|
|
1520
|
+
}
|
|
1521
|
+
|
|
1507
1522
|
interface CarRental {
|
|
1508
1523
|
affiliate?: CarRental.Affiliate;
|
|
1509
1524
|
|
|
@@ -593,9 +593,30 @@ declare module 'stripe' {
|
|
|
593
593
|
* Subscription details for this PaymentIntent
|
|
594
594
|
*/
|
|
595
595
|
subscription?: PaymentDetails.Subscription;
|
|
596
|
+
|
|
597
|
+
/**
|
|
598
|
+
* Benefit details for this PaymentIntent
|
|
599
|
+
*/
|
|
600
|
+
benefit?: PaymentDetails.Benefit;
|
|
596
601
|
}
|
|
597
602
|
|
|
598
603
|
namespace PaymentDetails {
|
|
604
|
+
interface Benefit {
|
|
605
|
+
/**
|
|
606
|
+
* French meal voucher benefit details for this PaymentIntent.
|
|
607
|
+
*/
|
|
608
|
+
fr_meal_voucher?: Benefit.FrMealVoucher;
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
namespace Benefit {
|
|
612
|
+
interface FrMealVoucher {
|
|
613
|
+
/**
|
|
614
|
+
* The 14-digit SIRET of the meal voucher acceptor.
|
|
615
|
+
*/
|
|
616
|
+
siret: string;
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
|
|
599
620
|
interface CarRental {
|
|
600
621
|
/**
|
|
601
622
|
* Affiliate details for this purchase.
|
|
@@ -5119,9 +5140,30 @@ declare module 'stripe' {
|
|
|
5119
5140
|
* Subscription details for this PaymentIntent
|
|
5120
5141
|
*/
|
|
5121
5142
|
subscription?: PaymentDetails.Subscription;
|
|
5143
|
+
|
|
5144
|
+
/**
|
|
5145
|
+
* Benefit details for this PaymentIntent
|
|
5146
|
+
*/
|
|
5147
|
+
benefit?: PaymentDetails.Benefit;
|
|
5122
5148
|
}
|
|
5123
5149
|
|
|
5124
5150
|
namespace PaymentDetails {
|
|
5151
|
+
interface Benefit {
|
|
5152
|
+
/**
|
|
5153
|
+
* French meal voucher benefit details for this PaymentIntent.
|
|
5154
|
+
*/
|
|
5155
|
+
fr_meal_voucher?: Benefit.FrMealVoucher;
|
|
5156
|
+
}
|
|
5157
|
+
|
|
5158
|
+
namespace Benefit {
|
|
5159
|
+
interface FrMealVoucher {
|
|
5160
|
+
/**
|
|
5161
|
+
* The 14-digit SIRET of the meal voucher acceptor.
|
|
5162
|
+
*/
|
|
5163
|
+
siret: string;
|
|
5164
|
+
}
|
|
5165
|
+
}
|
|
5166
|
+
|
|
5125
5167
|
interface CarRental {
|
|
5126
5168
|
/**
|
|
5127
5169
|
* Affiliate details for this purchase.
|
|
@@ -10633,9 +10675,30 @@ declare module 'stripe' {
|
|
|
10633
10675
|
* Subscription details for this PaymentIntent
|
|
10634
10676
|
*/
|
|
10635
10677
|
subscription?: PaymentDetails.Subscription;
|
|
10678
|
+
|
|
10679
|
+
/**
|
|
10680
|
+
* Benefit details for this PaymentIntent
|
|
10681
|
+
*/
|
|
10682
|
+
benefit?: PaymentDetails.Benefit;
|
|
10636
10683
|
}
|
|
10637
10684
|
|
|
10638
10685
|
namespace PaymentDetails {
|
|
10686
|
+
interface Benefit {
|
|
10687
|
+
/**
|
|
10688
|
+
* French meal voucher benefit details for this PaymentIntent.
|
|
10689
|
+
*/
|
|
10690
|
+
fr_meal_voucher?: Benefit.FrMealVoucher;
|
|
10691
|
+
}
|
|
10692
|
+
|
|
10693
|
+
namespace Benefit {
|
|
10694
|
+
interface FrMealVoucher {
|
|
10695
|
+
/**
|
|
10696
|
+
* The 14-digit SIRET of the meal voucher acceptor.
|
|
10697
|
+
*/
|
|
10698
|
+
siret: string;
|
|
10699
|
+
}
|
|
10700
|
+
}
|
|
10701
|
+
|
|
10639
10702
|
interface CarRental {
|
|
10640
10703
|
/**
|
|
10641
10704
|
* Affiliate details for this purchase.
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
/**
|
|
6
|
+
* PaymentMethodBalance objects represent balances available on a payment method.
|
|
7
|
+
* You can use v1/payment_methods/:id/check_balance to check the balance of a payment method.
|
|
8
|
+
*/
|
|
9
|
+
interface PaymentMethodBalance {
|
|
10
|
+
/**
|
|
11
|
+
* String representing the object's type. Objects of the same type share the same value.
|
|
12
|
+
*/
|
|
13
|
+
object: 'payment_method_balance';
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* The time at which the balance was calculated. Measured in seconds since the Unix epoch.
|
|
17
|
+
*/
|
|
18
|
+
as_of: number;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* BalanceEntry contain information about every individual balance type of a card.
|
|
22
|
+
*/
|
|
23
|
+
balance: PaymentMethodBalance.Balance;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
27
|
+
*/
|
|
28
|
+
livemode: boolean;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
namespace PaymentMethodBalance {
|
|
32
|
+
interface Balance {
|
|
33
|
+
/**
|
|
34
|
+
* The available FR Meal Voucher balances.
|
|
35
|
+
*/
|
|
36
|
+
fr_meal_voucher: Balance.FrMealVoucher | null;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
namespace Balance {
|
|
40
|
+
interface FrMealVoucher {
|
|
41
|
+
/**
|
|
42
|
+
* The hashes of balances and amounts for available balances.
|
|
43
|
+
*/
|
|
44
|
+
available: Array<FrMealVoucher.Available> | null;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
namespace FrMealVoucher {
|
|
48
|
+
interface Available {
|
|
49
|
+
/**
|
|
50
|
+
* The amount of the balance.
|
|
51
|
+
*/
|
|
52
|
+
amount: number;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* The currency of the balance.
|
|
56
|
+
*/
|
|
57
|
+
currency: string;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -389,9 +389,23 @@ declare module 'stripe' {
|
|
|
389
389
|
* If this Card is part of a card wallet, this contains the details of the card wallet.
|
|
390
390
|
*/
|
|
391
391
|
wallet: Card.Wallet | null;
|
|
392
|
+
|
|
393
|
+
benefits?: Card.Benefits;
|
|
392
394
|
}
|
|
393
395
|
|
|
394
396
|
namespace Card {
|
|
397
|
+
interface Benefits {
|
|
398
|
+
/**
|
|
399
|
+
* Issuer of this benefit card
|
|
400
|
+
*/
|
|
401
|
+
issuer: string | null;
|
|
402
|
+
|
|
403
|
+
/**
|
|
404
|
+
* Available benefit programs for this card
|
|
405
|
+
*/
|
|
406
|
+
programs: Array<string> | null;
|
|
407
|
+
}
|
|
408
|
+
|
|
395
409
|
interface Checks {
|
|
396
410
|
/**
|
|
397
411
|
* If a address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
|
|
@@ -1168,6 +1168,13 @@ declare module 'stripe' {
|
|
|
1168
1168
|
expand?: Array<string>;
|
|
1169
1169
|
}
|
|
1170
1170
|
|
|
1171
|
+
interface PaymentMethodCheckBalanceParams {
|
|
1172
|
+
/**
|
|
1173
|
+
* Specifies which fields in the response should be expanded.
|
|
1174
|
+
*/
|
|
1175
|
+
expand?: Array<string>;
|
|
1176
|
+
}
|
|
1177
|
+
|
|
1171
1178
|
interface PaymentMethodDetachParams {
|
|
1172
1179
|
/**
|
|
1173
1180
|
* Specifies which fields in the response should be expanded.
|
|
@@ -1245,6 +1252,19 @@ declare module 'stripe' {
|
|
|
1245
1252
|
options?: RequestOptions
|
|
1246
1253
|
): Promise<Stripe.Response<Stripe.PaymentMethod>>;
|
|
1247
1254
|
|
|
1255
|
+
/**
|
|
1256
|
+
* Retrieves a payment method's balance.
|
|
1257
|
+
*/
|
|
1258
|
+
checkBalance(
|
|
1259
|
+
id: string,
|
|
1260
|
+
params?: PaymentMethodCheckBalanceParams,
|
|
1261
|
+
options?: RequestOptions
|
|
1262
|
+
): Promise<Stripe.Response<Stripe.PaymentMethodBalance>>;
|
|
1263
|
+
checkBalance(
|
|
1264
|
+
id: string,
|
|
1265
|
+
options?: RequestOptions
|
|
1266
|
+
): Promise<Stripe.Response<Stripe.PaymentMethodBalance>>;
|
|
1267
|
+
|
|
1248
1268
|
/**
|
|
1249
1269
|
* Detaches a PaymentMethod object from a Customer. After a PaymentMethod is detached, it can no longer be used for a payment or re-attached to a Customer.
|
|
1250
1270
|
*/
|
package/types/SetupIntents.d.ts
CHANGED
|
@@ -151,6 +151,8 @@ declare module 'stripe' {
|
|
|
151
151
|
*/
|
|
152
152
|
payment_method_types: Array<string>;
|
|
153
153
|
|
|
154
|
+
setup_details?: SetupIntent.SetupDetails;
|
|
155
|
+
|
|
154
156
|
/**
|
|
155
157
|
* ID of the single_use Mandate generated by the SetupIntent.
|
|
156
158
|
*/
|
|
@@ -1091,6 +1093,25 @@ declare module 'stripe' {
|
|
|
1091
1093
|
}
|
|
1092
1094
|
}
|
|
1093
1095
|
|
|
1096
|
+
interface SetupDetails {
|
|
1097
|
+
benefit?: SetupDetails.Benefit;
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1100
|
+
namespace SetupDetails {
|
|
1101
|
+
interface Benefit {
|
|
1102
|
+
fr_meal_voucher?: Benefit.FrMealVoucher;
|
|
1103
|
+
}
|
|
1104
|
+
|
|
1105
|
+
namespace Benefit {
|
|
1106
|
+
interface FrMealVoucher {
|
|
1107
|
+
/**
|
|
1108
|
+
* The 14-digit SIRET of the meal voucher acceptor.
|
|
1109
|
+
*/
|
|
1110
|
+
siret?: string;
|
|
1111
|
+
}
|
|
1112
|
+
}
|
|
1113
|
+
}
|
|
1114
|
+
|
|
1094
1115
|
type Status =
|
|
1095
1116
|
| 'canceled'
|
|
1096
1117
|
| 'processing'
|