stripe 20.1.0-alpha.1 → 20.1.0-alpha.3
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 +122 -0
- package/OPENAPI_VERSION +1 -1
- package/VERSION +1 -1
- package/cjs/resources/ProductCatalog/TrialOffers.js +12 -0
- package/cjs/resources/V2/Core/AccountTokens.js +13 -0
- package/cjs/resources/V2/Core/Accounts/PersonTokens.js +16 -0
- package/cjs/resources/V2/Core/Accounts.js +2 -0
- package/cjs/resources/V2/MoneyManagement/CurrencyConversions.js +21 -0
- package/cjs/resources.js +9 -1
- package/cjs/stripe.core.js +1 -1
- package/esm/resources/ProductCatalog/TrialOffers.js +9 -0
- package/esm/resources/V2/Core/AccountTokens.js +10 -0
- package/esm/resources/V2/Core/Accounts/PersonTokens.js +13 -0
- package/esm/resources/V2/Core/Accounts.js +2 -0
- package/esm/resources/V2/MoneyManagement/CurrencyConversions.js +18 -0
- package/esm/resources.js +8 -0
- package/esm/stripe.core.js +1 -1
- package/package.json +1 -1
- package/types/DelegatedCheckout/RequestedSessions.d.ts +23 -8
- package/types/InvoicesResource.d.ts +51 -15
- package/types/PaymentIntents.d.ts +12 -0
- package/types/PaymentIntentsResource.d.ts +12 -0
- package/types/PaymentMethodsResource.d.ts +1 -1
- package/types/ProductCatalog/TrialOffers.d.ts +77 -0
- package/types/ProductCatalog/TrialOffersResource.d.ts +80 -0
- package/types/QuoteLines.d.ts +17 -0
- package/types/QuotePreviewSubscriptionSchedules.d.ts +18 -92
- package/types/Quotes.d.ts +10 -116
- package/types/QuotesResource.d.ts +40 -10
- package/types/SubscriptionItems.d.ts +13 -0
- package/types/SubscriptionItemsResource.d.ts +34 -0
- package/types/SubscriptionSchedules.d.ts +18 -92
- package/types/SubscriptionSchedulesResource.d.ts +43 -14
- package/types/Subscriptions.d.ts +4 -90
- package/types/SubscriptionsResource.d.ts +36 -14
- package/types/V2/Billing/Cadences.d.ts +2 -2
- package/types/V2/Billing/CollectionSettingVersions.d.ts +2 -2
- package/types/V2/Billing/CollectionSettings.d.ts +2 -2
- package/types/V2/Billing/CollectionSettingsResource.d.ts +4 -4
- package/types/V2/Billing/MeterEvents.d.ts +2 -1
- package/types/V2/Billing/ServiceActions.d.ts +26 -2
- package/types/V2/Billing/ServiceActionsResource.d.ts +26 -2
- package/types/V2/Core/AccountPersonTokens.d.ts +44 -0
- package/types/V2/Core/AccountPersons.d.ts +1 -0
- package/types/V2/Core/AccountTokens.d.ts +44 -0
- package/types/V2/Core/AccountTokensResource.d.ts +1315 -0
- package/types/V2/Core/Accounts/PersonTokensResource.d.ts +509 -0
- package/types/V2/Core/Accounts/PersonsResource.d.ts +12 -0
- package/types/V2/Core/Accounts.d.ts +559 -19
- package/types/V2/Core/AccountsResource.d.ts +283 -9
- package/types/V2/Core/EventTypes.d.ts +322 -4286
- package/types/V2/Core/Events.d.ts +0 -5
- package/types/V2/Core/EventsResource.d.ts +2 -17
- package/types/V2/FinancialAddressGeneratedMicrodeposits.d.ts +15 -1
- package/types/V2/MoneyManagement/Adjustments.d.ts +13 -1
- package/types/V2/MoneyManagement/CurrencyConversions.d.ts +98 -0
- package/types/V2/MoneyManagement/CurrencyConversionsResource.d.ts +141 -0
- package/types/V2/MoneyManagement/FinancialAccounts.d.ts +41 -3
- package/types/V2/MoneyManagement/InboundTransfers.d.ts +41 -3
- package/types/V2/MoneyManagement/InboundTransfersResource.d.ts +13 -1
- package/types/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +56 -4
- package/types/V2/MoneyManagement/OutboundPaymentQuotesResource.d.ts +13 -1
- package/types/V2/MoneyManagement/OutboundPayments.d.ts +43 -3
- package/types/V2/MoneyManagement/OutboundPaymentsResource.d.ts +13 -1
- package/types/V2/MoneyManagement/OutboundTransfers.d.ts +43 -3
- package/types/V2/MoneyManagement/OutboundTransfersResource.d.ts +13 -1
- package/types/V2/MoneyManagement/ReceivedCredits.d.ts +26 -2
- package/types/V2/MoneyManagement/ReceivedDebits.d.ts +26 -2
- package/types/V2/MoneyManagement/TransactionEntries.d.ts +41 -3
- package/types/V2/MoneyManagement/Transactions.d.ts +54 -4
- package/types/V2/Payments/OffSessionPayments.d.ts +17 -94
- package/types/V2/Payments/OffSessionPaymentsResource.d.ts +21 -116
- package/types/V2/TestHelpers/FinancialAddressesResource.d.ts +13 -1
- package/types/index.d.ts +13 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,127 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 20.1.0-alpha.3 - 2025-11-24
|
|
4
|
+
* [#2512](https://github.com/stripe/stripe-node/pull/2512) Update generated code for private-preview
|
|
5
|
+
* Add support for new resource `ProductCatalog.TrialOffer`
|
|
6
|
+
* Add support for `create` method on resource `ProductCatalog.TrialOffer`
|
|
7
|
+
* Remove support for `amount_subtotal_after_discount` on `DelegatedCheckout.RequestedSession.line_item_details[]` and `DelegatedCheckout.RequestedSession.total_details`
|
|
8
|
+
* Remove support for `amount_total`, `unit_amount_after_discount`, and `unit_discount` on `DelegatedCheckout.RequestedSession.line_item_details[]`
|
|
9
|
+
* Add support for `amount_cart_discount` and `amount_items_discount` on `DelegatedCheckout.RequestedSession.total_details`
|
|
10
|
+
* Remove support for `amount_discount` on `DelegatedCheckout.RequestedSession.total_details`
|
|
11
|
+
* Add support for `payments_orchestration` on `PaymentIntentCreateParams` and `PaymentIntent`
|
|
12
|
+
|
|
13
|
+
## 20.1.0-alpha.2 - 2025-11-20
|
|
14
|
+
This release changes the pinned API version to `2025-11-17.preview`.
|
|
15
|
+
|
|
16
|
+
* [#2510](https://github.com/stripe/stripe-node/pull/2510) Update generated code for private-preview
|
|
17
|
+
* Add support for new resources `V2.Core.AccountPersonToken`, `V2.Core.AccountToken`, and `V2.MoneyManagement.CurrencyConversion`
|
|
18
|
+
* Add support for `create`, `list`, and `retrieve` methods on resource `V2.MoneyManagement.CurrencyConversion`
|
|
19
|
+
* Add support for `create` and `retrieve` methods on resources `V2.Core.AccountPersonToken` and `V2.Core.AccountToken`
|
|
20
|
+
* Add support for `effective_at` on `InvoiceCreatePreviewParams.schedule_details.amendments[]`, `InvoiceCreatePreviewParams.schedule_details.phases[]`, `QuoteCreateParams.lines[]`, `QuoteLine`, `QuotePreviewSubscriptionSchedule.phases[]`, `QuoteUpdateParams.lines[]`, `SubscriptionSchedule.phases[]`, `SubscriptionScheduleAmendParams.amendments[]`, `SubscriptionScheduleCreateParams.phases[]`, and `SubscriptionScheduleUpdateParams.phases[]`
|
|
21
|
+
* Add support for `trial_offer` on `InvoiceCreatePreviewParams.schedule_details.amendments[].item_actions[].add`, `InvoiceCreatePreviewParams.schedule_details.amendments[].item_actions[].set`, `InvoiceCreatePreviewParams.schedule_details.phases[].items[]`, `QuoteCreateParams.lines[].actions[].add_item`, `QuoteCreateParams.lines[].actions[].set_items[]`, `QuoteLine.actions[].add_item`, `QuoteLine.actions[].set_items[]`, `QuotePreviewSubscriptionSchedule.phases[].items[]`, `QuoteUpdateParams.lines[].actions[].add_item`, `QuoteUpdateParams.lines[].actions[].set_items[]`, `SubscriptionSchedule.phases[].items[]`, `SubscriptionScheduleAmendParams.amendments[].item_actions[].add`, `SubscriptionScheduleAmendParams.amendments[].item_actions[].set`, `SubscriptionScheduleCreateParams.phases[].items[]`, and `SubscriptionScheduleUpdateParams.phases[].items[]`
|
|
22
|
+
* Change type of `DelegatedCheckout.RequestedSession.amount_subtotal` from `longInteger` to `longInteger | null`
|
|
23
|
+
* Change type of `DelegatedCheckout.RequestedSession.amount_total` from `longInteger` to `longInteger | null`
|
|
24
|
+
* Add support for `amount_discount`, `amount_subtotal`, `amount_total`, `unit_amount_after_discount`, and `unit_discount` on `DelegatedCheckout.RequestedSession.line_item_details[]`
|
|
25
|
+
* Add support for `amount_subtotal_after_discount` on `DelegatedCheckout.RequestedSession.line_item_details[]` and `DelegatedCheckout.RequestedSession.total_details`
|
|
26
|
+
* Change type of `InvoiceCreatePreviewParams.schedule_details.billing_schedules` from `array(billing_schedules_update_params)` to `emptyable(array(billing_schedules_update_params))`
|
|
27
|
+
* Remove support for values `amendment_end`, `line_ends_at`, `schedule_end`, and `upcoming_invoice` from enums `InvoiceCreatePreviewParams.subscription_details.billing_schedules[].bill_until.type`, `Subscription.billing_schedules[].bill_until.type`, `SubscriptionCreateParams.billing_schedules[].bill_until.type`, `SubscriptionScheduleCreateParams.billing_schedules[].bill_until.type`, `SubscriptionScheduleUpdateParams.billing_schedules[].bill_until.type`, and `SubscriptionUpdateParams.billing_schedules[].bill_until.type`
|
|
28
|
+
* Add support for `current_trial` on `InvoiceCreatePreviewParams.subscription_details.items[]`, `SubscriptionCreateParams.items[]`, `SubscriptionItemCreateParams`, `SubscriptionItemUpdateParams`, `SubscriptionItem`, and `SubscriptionUpdateParams.items[]`
|
|
29
|
+
* Change type of `QuoteCreateParams.subscription_data.billing_schedules` and `QuoteCreateParams.subscription_data_overrides[].billing_schedules` from `emptyable(array(billing_schedules_create_specs))` to `array(billing_schedules_create_specs)`
|
|
30
|
+
* Add support for new value `line_start` on enums `QuoteCreateParams.subscription_data.phase_effective_at`, `QuoteCreateParams.subscription_data_overrides[].phase_effective_at`, `QuoteUpdateParams.subscription_data.phase_effective_at`, and `QuoteUpdateParams.subscription_data_overrides[].phase_effective_at`
|
|
31
|
+
* Remove support for value `phase_start` from enums `QuoteCreateParams.subscription_data.phase_effective_at`, `QuoteCreateParams.subscription_data_overrides[].phase_effective_at`, `QuoteUpdateParams.subscription_data.phase_effective_at`, and `QuoteUpdateParams.subscription_data_overrides[].phase_effective_at`
|
|
32
|
+
* Change type of `Quote.subscription_data.billing_schedules` and `Quote.subscription_data_overrides[].billing_schedules` from `array(SubscriptionsResourceBillingSchedules) | null` to `array(QuotesResourceSubscriptionDataBillingSchedules)`
|
|
33
|
+
* Change type of `Quote.subscription_data.phase_effective_at` and `Quote.subscription_data_overrides[].phase_effective_at` from `enum('billing_period_start'|'phase_start') | null` to `enum('billing_period_start'|'line_start')`
|
|
34
|
+
* Change type of `QuotePreviewSubscriptionSchedule.default_settings.phase_effective_at` and `SubscriptionSchedule.default_settings.phase_effective_at` from `enum('billing_period_start'|'phase_start') | null` to `enum('billing_period_start'|'phase_start')`
|
|
35
|
+
* Change type of `QuotePreviewSubscriptionSchedule.billing_schedules` and `SubscriptionSchedule.billing_schedules` from `array(SubscriptionsResourceBillingSchedules) | null` to `array(SubscriptionsResourceBillingSchedules)`
|
|
36
|
+
* Remove support for `amendment_start`, `line_starts_at`, and `relative` on `Subscription.billing_schedules[].bill_from`
|
|
37
|
+
* Change type of `Subscription.billing_schedules[].bill_from.computed_timestamp` from `DateTime | null` to `DateTime`
|
|
38
|
+
* Change type of `Subscription.billing_schedules[].bill_from.type` from `enum` to `literal('timestamp')`
|
|
39
|
+
* Remove support for `amendment_end` and `line_ends_at` on `Subscription.billing_schedules[].bill_until`
|
|
40
|
+
* Change type of `V2.Billing.ServiceAction.credit_grant.amount.monetary`, `V2.Billing.ServiceAction.credit_grant_per_tenant.amount.monetary`, `V2.Billing.ServiceActionCreateParams.credit_grant.amount.monetary`, and `V2.Billing.ServiceActionCreateParams.credit_grant_per_tenant.amount.monetary` from `amount` to `an object`
|
|
41
|
+
* Add support for `future_requirements` on `V2.Core.Account`
|
|
42
|
+
* Add support for `konbini_payments` and `script_statement_descriptor` on `V2.Core.Account.configuration.merchant`, `V2.Core.AccountCreateParams.configuration.merchant`, and `V2.Core.AccountUpdateParams.configuration.merchant`
|
|
43
|
+
* Add support for `eur` on `V2.Core.Account.configuration.storer.capabilities.holds_currencies`, `V2.Core.AccountCreateParams.configuration.storer.capabilities.holds_currencies`, and `V2.Core.AccountUpdateParams.configuration.storer.capabilities.holds_currencies`
|
|
44
|
+
* Add support for `requirements_collector` on `V2.Core.Account.defaults.responsibilities`
|
|
45
|
+
* Add support for new value `ar_cuit` on enums `V2.Core.Account.identity.business_details.id_numbers[].type`, `V2.Core.AccountCreateParams.identity.business_details.id_numbers[].type`, and `V2.Core.AccountUpdateParams.identity.business_details.id_numbers[].type`
|
|
46
|
+
* Add support for new value `ar_dni` on enums `V2.Core.Account.identity.individual.id_numbers[].type`, `V2.Core.AccountCreateParams.identity.individual.id_numbers[].type`, `V2.Core.AccountPerson.id_numbers[].type`, `V2.Core.AccountPersonCreateParams.id_numbers[].type`, `V2.Core.AccountPersonUpdateParams.id_numbers[].type`, and `V2.Core.AccountUpdateParams.identity.individual.id_numbers[].type`
|
|
47
|
+
* Remove support for `collector` on `V2.Core.Account.requirements`
|
|
48
|
+
* Add support for new value `holds_currencies.eur` on enum `V2.Core.Account.requirements.entries[].impact.restricts_capabilities[].capability`
|
|
49
|
+
* Add support for new values `payment_method` and `person` on enum `V2.Core.Account.requirements.entries[].reference.type`
|
|
50
|
+
* Remove support for value `resource` from enum `V2.Core.Account.requirements.entries[].reference.type`
|
|
51
|
+
* Remove support for value `future_requirements` from enum `V2.Core.Account.requirements.entries[].requested_reasons[].code`
|
|
52
|
+
* Remove support for `v1_event_id` on `V2.Core.Event`
|
|
53
|
+
* Remove support for `amount_details` and `capture_method` on `V2.Payments.OffSessionPaymentCreateParams` and `V2.Payments.OffSessionPayment`
|
|
54
|
+
* Change type of `V2.Payments.OffSessionPayment.amount_capturable` from `amount` to `an object`
|
|
55
|
+
* Change type of `V2.Payments.OffSessionPayment.amount_requested` from `amount` to `an object`
|
|
56
|
+
* Change type of `V2.Payments.OffSessionPaymentCreateParams.amount` from `amount` to `an object`
|
|
57
|
+
* Add support for new value `best_available` on enum `V2.Payments.OffSessionPaymentCreateParams.retry_details.retry_strategy`
|
|
58
|
+
* Remove support for values `heuristic`, `scheduled`, and `smart` from enum `V2.Payments.OffSessionPaymentCreateParams.retry_details.retry_strategy`
|
|
59
|
+
* Change `V2.Payments.OffSessionPaymentCreateParams.retry_details.retry_strategy` to be optional
|
|
60
|
+
* Remove support for `destination` on `V2.Payments.OffSessionPaymentCaptureParams.transfer_data`
|
|
61
|
+
* Change `V2.Payments.OffSessionPaymentCaptureParams.amount_to_capture` to be optional
|
|
62
|
+
* Add support for `created` on `V2.Core.EventListParams`
|
|
63
|
+
* Remove support for `gt`, `gte`, `lt`, and `lte` on `V2.Core.EventListParams`
|
|
64
|
+
* Add support for `account_token` on `V2.Core.AccountCreateParams` and `V2.Core.AccountUpdateParams`
|
|
65
|
+
* Add support for new value `future_requirements` on enums `V2.Core.AccountCreateParams.include`, `V2.Core.AccountRetrieveParams.include`, and `V2.Core.AccountUpdateParams.include`
|
|
66
|
+
* Add support for `person_token` on `V2.Core.AccountPersonCreateParams` and `V2.Core.AccountPersonUpdateParams`
|
|
67
|
+
* Add support for `impacted_requests_percentage` on `EventsV2CoreHealthApiErrorFiringEvent.impact`, `EventsV2CoreHealthApiErrorResolvedEvent.impact`, `EventsV2CoreHealthApiLatencyFiringEvent.impact`, `EventsV2CoreHealthApiLatencyResolvedEvent.impact`, `EventsV2CoreHealthPaymentMethodErrorFiringEvent.impact`, and `EventsV2CoreHealthPaymentMethodErrorResolvedEvent.impact`
|
|
68
|
+
* Add support for `context` and `related_object` on `EventsV2CoreHealthEventGenerationFailureResolvedEvent.impact`
|
|
69
|
+
* Remove support for `account`, `livemode`, `missing_delivery_attempts`, and `related_object_id` on `EventsV2CoreHealthEventGenerationFailureResolvedEvent.impact`
|
|
70
|
+
* Change type of `EventsV2CoreHealthFraudRateIncreasedEvent.impact.realized_fraud_amount` from `amount` to `an object`
|
|
71
|
+
* Change type of `EventsV2CoreHealthIssuingAuthorizationRequestErrorsFiringEvent.impact.approved_amount`, `EventsV2CoreHealthIssuingAuthorizationRequestErrorsResolvedEvent.impact.approved_amount`, `EventsV2CoreHealthIssuingAuthorizationRequestTimeoutFiringEvent.impact.approved_amount`, and `EventsV2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEvent.impact.approved_amount` from `amount` to `an object`
|
|
72
|
+
* Change type of `EventsV2CoreHealthIssuingAuthorizationRequestErrorsFiringEvent.impact.declined_amount`, `EventsV2CoreHealthIssuingAuthorizationRequestErrorsResolvedEvent.impact.declined_amount`, `EventsV2CoreHealthIssuingAuthorizationRequestTimeoutFiringEvent.impact.declined_amount`, and `EventsV2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEvent.impact.declined_amount` from `amount` to `an object`
|
|
73
|
+
* Add support for thin events `V2PaymentsOffSessionPaymentAttemptFailedEvent` and `V2PaymentsOffSessionPaymentAttemptStartedEvent` with related object `V2.Payments.OffSessionPayment`
|
|
74
|
+
* Remove support for thin event `V1AccountUpdatedEvent` with related object `Account`
|
|
75
|
+
* Remove support for thin events `V1ApplicationFeeCreatedEvent` and `V1ApplicationFeeRefundedEvent` with related object `ApplicationFee`
|
|
76
|
+
* Remove support for thin events `V1BillingPortalConfigurationCreatedEvent` and `V1BillingPortalConfigurationUpdatedEvent` with related object `BillingPortal.Configuration`
|
|
77
|
+
* Remove support for thin event `V1CapabilityUpdatedEvent` with related object `Capability`
|
|
78
|
+
* Remove support for thin events `V1ChargeCapturedEvent`, `V1ChargeExpiredEvent`, `V1ChargeFailedEvent`, `V1ChargePendingEvent`, `V1ChargeRefundedEvent`, `V1ChargeSucceededEvent`, and `V1ChargeUpdatedEvent` with related object `Charge`
|
|
79
|
+
* Remove support for thin events `V1ChargeDisputeClosedEvent`, `V1ChargeDisputeCreatedEvent`, `V1ChargeDisputeFundsReinstatedEvent`, `V1ChargeDisputeFundsWithdrawnEvent`, and `V1ChargeDisputeUpdatedEvent` with related object `Dispute`
|
|
80
|
+
* Remove support for thin events `V1ChargeRefundUpdatedEvent`, `V1RefundCreatedEvent`, `V1RefundFailedEvent`, and `V1RefundUpdatedEvent` with related object `Refund`
|
|
81
|
+
* Remove support for thin events `V1CheckoutSessionAsyncPaymentFailedEvent`, `V1CheckoutSessionAsyncPaymentSucceededEvent`, `V1CheckoutSessionCompletedEvent`, and `V1CheckoutSessionExpiredEvent` with related object `Checkout.Session`
|
|
82
|
+
* Remove support for thin events `V1ClimateOrderCanceledEvent`, `V1ClimateOrderCreatedEvent`, `V1ClimateOrderDelayedEvent`, `V1ClimateOrderDeliveredEvent`, and `V1ClimateOrderProductSubstitutedEvent` with related object `Climate.Order`
|
|
83
|
+
* Remove support for thin events `V1ClimateProductCreatedEvent` and `V1ClimateProductPricingUpdatedEvent` with related object `Climate.Product`
|
|
84
|
+
* Remove support for thin events `V1CouponCreatedEvent`, `V1CouponDeletedEvent`, and `V1CouponUpdatedEvent` with related object `Coupon`
|
|
85
|
+
* Remove support for thin events `V1CreditNoteCreatedEvent`, `V1CreditNoteUpdatedEvent`, and `V1CreditNoteVoidedEvent` with related object `CreditNote`
|
|
86
|
+
* Remove support for thin events `V1CustomerCreatedEvent`, `V1CustomerDeletedEvent`, and `V1CustomerUpdatedEvent` with related object `Customer`
|
|
87
|
+
* Remove support for thin events `V1CustomerSubscriptionCreatedEvent`, `V1CustomerSubscriptionDeletedEvent`, `V1CustomerSubscriptionPausedEvent`, `V1CustomerSubscriptionPendingUpdateAppliedEvent`, `V1CustomerSubscriptionPendingUpdateExpiredEvent`, `V1CustomerSubscriptionResumedEvent`, `V1CustomerSubscriptionTrialWillEndEvent`, and `V1CustomerSubscriptionUpdatedEvent` with related object `Subscription`
|
|
88
|
+
* Remove support for thin events `V1CustomerTaxIdCreatedEvent`, `V1CustomerTaxIdDeletedEvent`, and `V1CustomerTaxIdUpdatedEvent` with related object `TaxId`
|
|
89
|
+
* Remove support for thin event `V1FileCreatedEvent` with related object `File`
|
|
90
|
+
* Remove support for thin events `V1FinancialConnectionsAccountCreatedEvent`, `V1FinancialConnectionsAccountDeactivatedEvent`, `V1FinancialConnectionsAccountDisconnectedEvent`, `V1FinancialConnectionsAccountReactivatedEvent`, `V1FinancialConnectionsAccountRefreshedBalanceEvent`, `V1FinancialConnectionsAccountRefreshedOwnershipEvent`, and `V1FinancialConnectionsAccountRefreshedTransactionsEvent` with related object `FinancialConnections.Account`
|
|
91
|
+
* Remove support for thin events `V1IdentityVerificationSessionCanceledEvent`, `V1IdentityVerificationSessionCreatedEvent`, `V1IdentityVerificationSessionProcessingEvent`, `V1IdentityVerificationSessionRedactedEvent`, `V1IdentityVerificationSessionRequiresInputEvent`, and `V1IdentityVerificationSessionVerifiedEvent` with related object `Identity.VerificationSession`
|
|
92
|
+
* Remove support for thin events `V1InvoiceCreatedEvent`, `V1InvoiceDeletedEvent`, `V1InvoiceFinalizationFailedEvent`, `V1InvoiceFinalizedEvent`, `V1InvoiceMarkedUncollectibleEvent`, `V1InvoiceOverdueEvent`, `V1InvoiceOverpaidEvent`, `V1InvoicePaidEvent`, `V1InvoicePaymentActionRequiredEvent`, `V1InvoicePaymentFailedEvent`, `V1InvoicePaymentSucceededEvent`, `V1InvoiceSentEvent`, `V1InvoiceUpcomingEvent`, `V1InvoiceUpdatedEvent`, `V1InvoiceVoidedEvent`, and `V1InvoiceWillBeDueEvent` with related object `Invoice`
|
|
93
|
+
* Remove support for thin event `V1InvoicePaymentPaidEvent` with related object `InvoicePayment`
|
|
94
|
+
* Remove support for thin events `V1InvoiceitemCreatedEvent` and `V1InvoiceitemDeletedEvent` with related object `InvoiceItem`
|
|
95
|
+
* Remove support for thin events `V1IssuingAuthorizationCreatedEvent`, `V1IssuingAuthorizationRequestEvent`, and `V1IssuingAuthorizationUpdatedEvent` with related object `Issuing.Authorization`
|
|
96
|
+
* Remove support for thin events `V1IssuingCardCreatedEvent` and `V1IssuingCardUpdatedEvent` with related object `Issuing.Card`
|
|
97
|
+
* Remove support for thin events `V1IssuingCardholderCreatedEvent` and `V1IssuingCardholderUpdatedEvent` with related object `Issuing.Cardholder`
|
|
98
|
+
* Remove support for thin events `V1IssuingDisputeClosedEvent`, `V1IssuingDisputeCreatedEvent`, `V1IssuingDisputeFundsReinstatedEvent`, `V1IssuingDisputeFundsRescindedEvent`, `V1IssuingDisputeSubmittedEvent`, and `V1IssuingDisputeUpdatedEvent` with related object `Issuing.Dispute`
|
|
99
|
+
* Remove support for thin events `V1IssuingPersonalizationDesignActivatedEvent`, `V1IssuingPersonalizationDesignDeactivatedEvent`, `V1IssuingPersonalizationDesignRejectedEvent`, and `V1IssuingPersonalizationDesignUpdatedEvent` with related object `Issuing.PersonalizationDesign`
|
|
100
|
+
* Remove support for thin events `V1IssuingTokenCreatedEvent` and `V1IssuingTokenUpdatedEvent` with related object `Issuing.Token`
|
|
101
|
+
* Remove support for thin events `V1IssuingTransactionCreatedEvent`, `V1IssuingTransactionPurchaseDetailsReceiptUpdatedEvent`, and `V1IssuingTransactionUpdatedEvent` with related object `Issuing.Transaction`
|
|
102
|
+
* Remove support for thin event `V1MandateUpdatedEvent` with related object `Mandate`
|
|
103
|
+
* Remove support for thin events `V1PaymentIntentAmountCapturableUpdatedEvent`, `V1PaymentIntentCanceledEvent`, `V1PaymentIntentCreatedEvent`, `V1PaymentIntentPartiallyFundedEvent`, `V1PaymentIntentPaymentFailedEvent`, `V1PaymentIntentProcessingEvent`, `V1PaymentIntentRequiresActionEvent`, and `V1PaymentIntentSucceededEvent` with related object `PaymentIntent`
|
|
104
|
+
* Remove support for thin events `V1PaymentLinkCreatedEvent` and `V1PaymentLinkUpdatedEvent` with related object `PaymentLink`
|
|
105
|
+
* Remove support for thin events `V1PaymentMethodAttachedEvent`, `V1PaymentMethodAutomaticallyUpdatedEvent`, `V1PaymentMethodDetachedEvent`, and `V1PaymentMethodUpdatedEvent` with related object `PaymentMethod`
|
|
106
|
+
* Remove support for thin events `V1PayoutCanceledEvent`, `V1PayoutCreatedEvent`, `V1PayoutFailedEvent`, `V1PayoutPaidEvent`, `V1PayoutReconciliationCompletedEvent`, and `V1PayoutUpdatedEvent` with related object `Payout`
|
|
107
|
+
* Remove support for thin events `V1PersonCreatedEvent`, `V1PersonDeletedEvent`, and `V1PersonUpdatedEvent` with related object `Person`
|
|
108
|
+
* Remove support for thin events `V1PlanCreatedEvent`, `V1PlanDeletedEvent`, and `V1PlanUpdatedEvent` with related object `Plan`
|
|
109
|
+
* Remove support for thin events `V1PriceCreatedEvent`, `V1PriceDeletedEvent`, and `V1PriceUpdatedEvent` with related object `Price`
|
|
110
|
+
* Remove support for thin events `V1ProductCreatedEvent`, `V1ProductDeletedEvent`, and `V1ProductUpdatedEvent` with related object `Product`
|
|
111
|
+
* Remove support for thin events `V1PromotionCodeCreatedEvent` and `V1PromotionCodeUpdatedEvent` with related object `PromotionCode`
|
|
112
|
+
* Remove support for thin events `V1QuoteAcceptedEvent`, `V1QuoteCanceledEvent`, `V1QuoteCreatedEvent`, and `V1QuoteFinalizedEvent` with related object `Quote`
|
|
113
|
+
* Remove support for thin events `V1RadarEarlyFraudWarningCreatedEvent` and `V1RadarEarlyFraudWarningUpdatedEvent` with related object `Radar.EarlyFraudWarning`
|
|
114
|
+
* Remove support for thin events `V1ReviewClosedEvent` and `V1ReviewOpenedEvent` with related object `Review`
|
|
115
|
+
* Remove support for thin events `V1SetupIntentCanceledEvent`, `V1SetupIntentCreatedEvent`, `V1SetupIntentRequiresActionEvent`, `V1SetupIntentSetupFailedEvent`, and `V1SetupIntentSucceededEvent` with related object `SetupIntent`
|
|
116
|
+
* Remove support for thin event `V1SigmaScheduledQueryRunCreatedEvent` with related object `Sigma.ScheduledQueryRun`
|
|
117
|
+
* Remove support for thin events `V1SourceCanceledEvent`, `V1SourceChargeableEvent`, `V1SourceFailedEvent`, and `V1SourceRefundAttributesRequiredEvent` with related object `Source`
|
|
118
|
+
* Remove support for thin events `V1SubscriptionScheduleAbortedEvent`, `V1SubscriptionScheduleCanceledEvent`, `V1SubscriptionScheduleCompletedEvent`, `V1SubscriptionScheduleCreatedEvent`, `V1SubscriptionScheduleExpiringEvent`, `V1SubscriptionScheduleReleasedEvent`, and `V1SubscriptionScheduleUpdatedEvent` with related object `SubscriptionSchedule`
|
|
119
|
+
* Remove support for thin events `V1TaxRateCreatedEvent` and `V1TaxRateUpdatedEvent` with related object `TaxRate`
|
|
120
|
+
* Remove support for thin events `V1TerminalReaderActionFailedEvent`, `V1TerminalReaderActionSucceededEvent`, and `V1TerminalReaderActionUpdatedEvent` with related object `Terminal.Reader`
|
|
121
|
+
* Remove support for thin events `V1TestHelpersTestClockAdvancingEvent`, `V1TestHelpersTestClockCreatedEvent`, `V1TestHelpersTestClockDeletedEvent`, `V1TestHelpersTestClockInternalFailureEvent`, and `V1TestHelpersTestClockReadyEvent` with related object `TestHelpers.TestClock`
|
|
122
|
+
* Remove support for thin events `V1TopupCanceledEvent`, `V1TopupCreatedEvent`, `V1TopupFailedEvent`, `V1TopupReversedEvent`, and `V1TopupSucceededEvent` with related object `Topup`
|
|
123
|
+
* Remove support for thin events `V1TransferCreatedEvent`, `V1TransferReversedEvent`, and `V1TransferUpdatedEvent` with related object `Transfer`
|
|
124
|
+
|
|
3
125
|
## 20.1.0-alpha.1 - 2025-11-18
|
|
4
126
|
* [#2505](https://github.com/stripe/stripe-node/pull/2505) Update generated code for private-preview
|
|
5
127
|
* Add support for `billing_schedules_actions` on `InvoiceCreatePreviewParams.schedule_details.amendments[]` and `SubscriptionScheduleAmendParams.amendments[]`
|
package/OPENAPI_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
v2129
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
20.1.0-alpha.
|
|
1
|
+
20.1.0-alpha.3
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.TrialOffers = void 0;
|
|
5
|
+
const StripeResource_js_1 = require("../../StripeResource.js");
|
|
6
|
+
const stripeMethod = StripeResource_js_1.StripeResource.method;
|
|
7
|
+
exports.TrialOffers = StripeResource_js_1.StripeResource.extend({
|
|
8
|
+
create: stripeMethod({
|
|
9
|
+
method: 'POST',
|
|
10
|
+
fullPath: '/v1/product_catalog/trial_offers',
|
|
11
|
+
}),
|
|
12
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.AccountTokens = void 0;
|
|
5
|
+
const StripeResource_js_1 = require("../../../StripeResource.js");
|
|
6
|
+
const stripeMethod = StripeResource_js_1.StripeResource.method;
|
|
7
|
+
exports.AccountTokens = StripeResource_js_1.StripeResource.extend({
|
|
8
|
+
create: stripeMethod({ method: 'POST', fullPath: '/v2/core/account_tokens' }),
|
|
9
|
+
retrieve: stripeMethod({
|
|
10
|
+
method: 'GET',
|
|
11
|
+
fullPath: '/v2/core/account_tokens/{id}',
|
|
12
|
+
}),
|
|
13
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.PersonTokens = void 0;
|
|
5
|
+
const StripeResource_js_1 = require("../../../../StripeResource.js");
|
|
6
|
+
const stripeMethod = StripeResource_js_1.StripeResource.method;
|
|
7
|
+
exports.PersonTokens = StripeResource_js_1.StripeResource.extend({
|
|
8
|
+
create: stripeMethod({
|
|
9
|
+
method: 'POST',
|
|
10
|
+
fullPath: '/v2/core/accounts/{account_id}/person_tokens',
|
|
11
|
+
}),
|
|
12
|
+
retrieve: stripeMethod({
|
|
13
|
+
method: 'GET',
|
|
14
|
+
fullPath: '/v2/core/accounts/{account_id}/person_tokens/{id}',
|
|
15
|
+
}),
|
|
16
|
+
});
|
|
@@ -4,11 +4,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.Accounts = void 0;
|
|
5
5
|
const StripeResource_js_1 = require("../../../StripeResource.js");
|
|
6
6
|
const Persons_js_1 = require("./Accounts/Persons.js");
|
|
7
|
+
const PersonTokens_js_1 = require("./Accounts/PersonTokens.js");
|
|
7
8
|
const stripeMethod = StripeResource_js_1.StripeResource.method;
|
|
8
9
|
exports.Accounts = StripeResource_js_1.StripeResource.extend({
|
|
9
10
|
constructor: function (...args) {
|
|
10
11
|
StripeResource_js_1.StripeResource.apply(this, args);
|
|
11
12
|
this.persons = new Persons_js_1.Persons(...args);
|
|
13
|
+
this.personTokens = new PersonTokens_js_1.PersonTokens(...args);
|
|
12
14
|
},
|
|
13
15
|
create: stripeMethod({ method: 'POST', fullPath: '/v2/core/accounts' }),
|
|
14
16
|
retrieve: stripeMethod({ method: 'GET', fullPath: '/v2/core/accounts/{id}' }),
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.CurrencyConversions = void 0;
|
|
5
|
+
const StripeResource_js_1 = require("../../../StripeResource.js");
|
|
6
|
+
const stripeMethod = StripeResource_js_1.StripeResource.method;
|
|
7
|
+
exports.CurrencyConversions = StripeResource_js_1.StripeResource.extend({
|
|
8
|
+
create: stripeMethod({
|
|
9
|
+
method: 'POST',
|
|
10
|
+
fullPath: '/v2/money_management/currency_conversions',
|
|
11
|
+
}),
|
|
12
|
+
retrieve: stripeMethod({
|
|
13
|
+
method: 'GET',
|
|
14
|
+
fullPath: '/v2/money_management/currency_conversions/{id}',
|
|
15
|
+
}),
|
|
16
|
+
list: stripeMethod({
|
|
17
|
+
method: 'GET',
|
|
18
|
+
fullPath: '/v2/money_management/currency_conversions',
|
|
19
|
+
methodType: 'list',
|
|
20
|
+
}),
|
|
21
|
+
});
|
package/cjs/resources.js
CHANGED
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
// File generated from our OpenAPI spec
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.SetupAttempts = exports.Reviews = exports.Refunds = exports.Quotes = exports.PromotionCodes = exports.Products = exports.Prices = exports.Plans = exports.Payouts = exports.PaymentRecords = exports.PaymentMethods = exports.PaymentMethodDomains = exports.PaymentMethodConfigurations = exports.PaymentLinks = exports.PaymentIntents = exports.PaymentAttemptRecords = exports.Orders = exports.OAuth = exports.Margins = exports.Mandates = exports.Invoices = exports.InvoiceRenderingTemplates = exports.InvoicePayments = exports.InvoiceItems = exports.FxQuotes = exports.Files = exports.FileLinks = exports.ExternalAccounts = exports.ExchangeRates = exports.Events = exports.EphemeralKeys = exports.Disputes = exports.Customers = exports.CustomerSessions = exports.CreditNotes = exports.Coupons = exports.CountrySpecs = exports.ConfirmationTokens = exports.Charges = exports.BalanceTransfers = exports.BalanceTransactions = exports.BalanceSettings = exports.Balance = exports.ApplicationFees = exports.ApplePayDomains = exports.Accounts = exports.AccountSessions = exports.AccountNotices = exports.AccountLinks = exports.Account = void 0;
|
|
5
|
-
exports.V2 = exports.Treasury = exports.TestHelpers = exports.Terminal = exports.Tax = exports.Sigma = exports.Reporting = exports.Radar = exports.Privacy = exports.Issuing = exports.Identity = exports.Forwarding = exports.FinancialConnections = exports.Entitlements = exports.DelegatedCheckout = exports.Climate = exports.Checkout = exports.Capital = exports.BillingPortal = exports.Billing = exports.Apps = exports.WebhookEndpoints = exports.Transfers = exports.Topups = exports.Tokens = exports.TaxRates = exports.TaxIds = exports.TaxCodes = exports.Subscriptions = exports.SubscriptionSchedules = exports.SubscriptionItems = exports.Sources = exports.ShippingRates = exports.SetupIntents = void 0;
|
|
5
|
+
exports.V2 = exports.Treasury = exports.TestHelpers = exports.Terminal = exports.Tax = exports.Sigma = exports.Reporting = exports.Radar = exports.ProductCatalog = exports.Privacy = exports.Issuing = exports.Identity = exports.Forwarding = exports.FinancialConnections = exports.Entitlements = exports.DelegatedCheckout = exports.Climate = exports.Checkout = exports.Capital = exports.BillingPortal = exports.Billing = exports.Apps = exports.WebhookEndpoints = exports.Transfers = exports.Topups = exports.Tokens = exports.TaxRates = exports.TaxIds = exports.TaxCodes = exports.Subscriptions = exports.SubscriptionSchedules = exports.SubscriptionItems = exports.Sources = exports.ShippingRates = exports.SetupIntents = void 0;
|
|
6
6
|
const ResourceNamespace_js_1 = require("./ResourceNamespace.js");
|
|
7
7
|
const AccountEvaluations_js_1 = require("./resources/Radar/AccountEvaluations.js");
|
|
8
8
|
const AccountLinks_js_1 = require("./resources/V2/Core/AccountLinks.js");
|
|
9
|
+
const AccountTokens_js_1 = require("./resources/V2/Core/AccountTokens.js");
|
|
9
10
|
const Accounts_js_1 = require("./resources/FinancialConnections/Accounts.js");
|
|
10
11
|
const Accounts_js_2 = require("./resources/V2/Core/Accounts.js");
|
|
11
12
|
const ActiveEntitlements_js_1 = require("./resources/Entitlements/ActiveEntitlements.js");
|
|
@@ -32,6 +33,7 @@ const CreditBalanceTransactions_js_1 = require("./resources/Billing/CreditBalanc
|
|
|
32
33
|
const CreditGrants_js_1 = require("./resources/Billing/CreditGrants.js");
|
|
33
34
|
const CreditReversals_js_1 = require("./resources/Treasury/CreditReversals.js");
|
|
34
35
|
const CreditUnderwritingRecords_js_1 = require("./resources/Issuing/CreditUnderwritingRecords.js");
|
|
36
|
+
const CurrencyConversions_js_1 = require("./resources/V2/MoneyManagement/CurrencyConversions.js");
|
|
35
37
|
const CustomPricingUnits_js_1 = require("./resources/V2/Billing/CustomPricingUnits.js");
|
|
36
38
|
const Customers_js_1 = require("./resources/TestHelpers/Customers.js");
|
|
37
39
|
const DebitReversals_js_1 = require("./resources/Treasury/DebitReversals.js");
|
|
@@ -131,6 +133,7 @@ const Transactions_js_3 = require("./resources/Tax/Transactions.js");
|
|
|
131
133
|
const Transactions_js_4 = require("./resources/TestHelpers/Issuing/Transactions.js");
|
|
132
134
|
const Transactions_js_5 = require("./resources/Treasury/Transactions.js");
|
|
133
135
|
const Transactions_js_6 = require("./resources/V2/MoneyManagement/Transactions.js");
|
|
136
|
+
const TrialOffers_js_1 = require("./resources/ProductCatalog/TrialOffers.js");
|
|
134
137
|
const UsBankAccounts_js_1 = require("./resources/V2/Core/Vault/UsBankAccounts.js");
|
|
135
138
|
const ValueListItems_js_1 = require("./resources/Radar/ValueListItems.js");
|
|
136
139
|
const ValueLists_js_1 = require("./resources/Radar/ValueLists.js");
|
|
@@ -330,6 +333,9 @@ exports.Issuing = (0, ResourceNamespace_js_1.resourceNamespace)('issuing', {
|
|
|
330
333
|
exports.Privacy = (0, ResourceNamespace_js_1.resourceNamespace)('privacy', {
|
|
331
334
|
RedactionJobs: RedactionJobs_js_1.RedactionJobs,
|
|
332
335
|
});
|
|
336
|
+
exports.ProductCatalog = (0, ResourceNamespace_js_1.resourceNamespace)('productCatalog', {
|
|
337
|
+
TrialOffers: TrialOffers_js_1.TrialOffers,
|
|
338
|
+
});
|
|
333
339
|
exports.Radar = (0, ResourceNamespace_js_1.resourceNamespace)('radar', {
|
|
334
340
|
AccountEvaluations: AccountEvaluations_js_1.AccountEvaluations,
|
|
335
341
|
EarlyFraudWarnings: EarlyFraudWarnings_js_1.EarlyFraudWarnings,
|
|
@@ -420,6 +426,7 @@ exports.V2 = (0, ResourceNamespace_js_1.resourceNamespace)('v2', {
|
|
|
420
426
|
}),
|
|
421
427
|
Core: (0, ResourceNamespace_js_1.resourceNamespace)('core', {
|
|
422
428
|
AccountLinks: AccountLinks_js_1.AccountLinks,
|
|
429
|
+
AccountTokens: AccountTokens_js_1.AccountTokens,
|
|
423
430
|
Accounts: Accounts_js_2.Accounts,
|
|
424
431
|
ClaimableSandboxes: ClaimableSandboxes_js_1.ClaimableSandboxes,
|
|
425
432
|
EventDestinations: EventDestinations_js_1.EventDestinations,
|
|
@@ -431,6 +438,7 @@ exports.V2 = (0, ResourceNamespace_js_1.resourceNamespace)('v2', {
|
|
|
431
438
|
}),
|
|
432
439
|
MoneyManagement: (0, ResourceNamespace_js_1.resourceNamespace)('moneyManagement', {
|
|
433
440
|
Adjustments: Adjustments_js_1.Adjustments,
|
|
441
|
+
CurrencyConversions: CurrencyConversions_js_1.CurrencyConversions,
|
|
434
442
|
FinancialAccounts: FinancialAccounts_js_2.FinancialAccounts,
|
|
435
443
|
FinancialAddresses: FinancialAddresses_js_1.FinancialAddresses,
|
|
436
444
|
InboundTransfers: InboundTransfers_js_3.InboundTransfers,
|
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 = '20.1.0-alpha.
|
|
40
|
+
Stripe.PACKAGE_VERSION = '20.1.0-alpha.3';
|
|
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;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
import { StripeResource } from '../../StripeResource.js';
|
|
3
|
+
const stripeMethod = StripeResource.method;
|
|
4
|
+
export const TrialOffers = StripeResource.extend({
|
|
5
|
+
create: stripeMethod({
|
|
6
|
+
method: 'POST',
|
|
7
|
+
fullPath: '/v1/product_catalog/trial_offers',
|
|
8
|
+
}),
|
|
9
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
import { StripeResource } from '../../../StripeResource.js';
|
|
3
|
+
const stripeMethod = StripeResource.method;
|
|
4
|
+
export const AccountTokens = StripeResource.extend({
|
|
5
|
+
create: stripeMethod({ method: 'POST', fullPath: '/v2/core/account_tokens' }),
|
|
6
|
+
retrieve: stripeMethod({
|
|
7
|
+
method: 'GET',
|
|
8
|
+
fullPath: '/v2/core/account_tokens/{id}',
|
|
9
|
+
}),
|
|
10
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
import { StripeResource } from '../../../../StripeResource.js';
|
|
3
|
+
const stripeMethod = StripeResource.method;
|
|
4
|
+
export const PersonTokens = StripeResource.extend({
|
|
5
|
+
create: stripeMethod({
|
|
6
|
+
method: 'POST',
|
|
7
|
+
fullPath: '/v2/core/accounts/{account_id}/person_tokens',
|
|
8
|
+
}),
|
|
9
|
+
retrieve: stripeMethod({
|
|
10
|
+
method: 'GET',
|
|
11
|
+
fullPath: '/v2/core/accounts/{account_id}/person_tokens/{id}',
|
|
12
|
+
}),
|
|
13
|
+
});
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec
|
|
2
2
|
import { StripeResource } from '../../../StripeResource.js';
|
|
3
3
|
import { Persons } from './Accounts/Persons.js';
|
|
4
|
+
import { PersonTokens } from './Accounts/PersonTokens.js';
|
|
4
5
|
const stripeMethod = StripeResource.method;
|
|
5
6
|
export const Accounts = StripeResource.extend({
|
|
6
7
|
constructor: function (...args) {
|
|
7
8
|
StripeResource.apply(this, args);
|
|
8
9
|
this.persons = new Persons(...args);
|
|
10
|
+
this.personTokens = new PersonTokens(...args);
|
|
9
11
|
},
|
|
10
12
|
create: stripeMethod({ method: 'POST', fullPath: '/v2/core/accounts' }),
|
|
11
13
|
retrieve: stripeMethod({ method: 'GET', fullPath: '/v2/core/accounts/{id}' }),
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
import { StripeResource } from '../../../StripeResource.js';
|
|
3
|
+
const stripeMethod = StripeResource.method;
|
|
4
|
+
export const CurrencyConversions = StripeResource.extend({
|
|
5
|
+
create: stripeMethod({
|
|
6
|
+
method: 'POST',
|
|
7
|
+
fullPath: '/v2/money_management/currency_conversions',
|
|
8
|
+
}),
|
|
9
|
+
retrieve: stripeMethod({
|
|
10
|
+
method: 'GET',
|
|
11
|
+
fullPath: '/v2/money_management/currency_conversions/{id}',
|
|
12
|
+
}),
|
|
13
|
+
list: stripeMethod({
|
|
14
|
+
method: 'GET',
|
|
15
|
+
fullPath: '/v2/money_management/currency_conversions',
|
|
16
|
+
methodType: 'list',
|
|
17
|
+
}),
|
|
18
|
+
});
|
package/esm/resources.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { resourceNamespace } from './ResourceNamespace.js';
|
|
3
3
|
import { AccountEvaluations as RadarAccountEvaluations } from './resources/Radar/AccountEvaluations.js';
|
|
4
4
|
import { AccountLinks as V2CoreAccountLinks } from './resources/V2/Core/AccountLinks.js';
|
|
5
|
+
import { AccountTokens as V2CoreAccountTokens } from './resources/V2/Core/AccountTokens.js';
|
|
5
6
|
import { Accounts as FinancialConnectionsAccounts } from './resources/FinancialConnections/Accounts.js';
|
|
6
7
|
import { Accounts as V2CoreAccounts } from './resources/V2/Core/Accounts.js';
|
|
7
8
|
import { ActiveEntitlements as EntitlementsActiveEntitlements } from './resources/Entitlements/ActiveEntitlements.js';
|
|
@@ -28,6 +29,7 @@ import { CreditBalanceTransactions as BillingCreditBalanceTransactions } from '.
|
|
|
28
29
|
import { CreditGrants as BillingCreditGrants } from './resources/Billing/CreditGrants.js';
|
|
29
30
|
import { CreditReversals as TreasuryCreditReversals } from './resources/Treasury/CreditReversals.js';
|
|
30
31
|
import { CreditUnderwritingRecords as IssuingCreditUnderwritingRecords } from './resources/Issuing/CreditUnderwritingRecords.js';
|
|
32
|
+
import { CurrencyConversions as V2MoneyManagementCurrencyConversions } from './resources/V2/MoneyManagement/CurrencyConversions.js';
|
|
31
33
|
import { CustomPricingUnits as V2BillingCustomPricingUnits } from './resources/V2/Billing/CustomPricingUnits.js';
|
|
32
34
|
import { Customers as TestHelpersCustomers } from './resources/TestHelpers/Customers.js';
|
|
33
35
|
import { DebitReversals as TreasuryDebitReversals } from './resources/Treasury/DebitReversals.js';
|
|
@@ -127,6 +129,7 @@ import { Transactions as TaxTransactions } from './resources/Tax/Transactions.js
|
|
|
127
129
|
import { Transactions as TestHelpersIssuingTransactions } from './resources/TestHelpers/Issuing/Transactions.js';
|
|
128
130
|
import { Transactions as TreasuryTransactions } from './resources/Treasury/Transactions.js';
|
|
129
131
|
import { Transactions as V2MoneyManagementTransactions } from './resources/V2/MoneyManagement/Transactions.js';
|
|
132
|
+
import { TrialOffers as ProductCatalogTrialOffers } from './resources/ProductCatalog/TrialOffers.js';
|
|
130
133
|
import { UsBankAccounts as V2CoreVaultUsBankAccounts } from './resources/V2/Core/Vault/UsBankAccounts.js';
|
|
131
134
|
import { ValueListItems as RadarValueListItems } from './resources/Radar/ValueListItems.js';
|
|
132
135
|
import { ValueLists as RadarValueLists } from './resources/Radar/ValueLists.js';
|
|
@@ -263,6 +266,9 @@ export const Issuing = resourceNamespace('issuing', {
|
|
|
263
266
|
export const Privacy = resourceNamespace('privacy', {
|
|
264
267
|
RedactionJobs: PrivacyRedactionJobs,
|
|
265
268
|
});
|
|
269
|
+
export const ProductCatalog = resourceNamespace('productCatalog', {
|
|
270
|
+
TrialOffers: ProductCatalogTrialOffers,
|
|
271
|
+
});
|
|
266
272
|
export const Radar = resourceNamespace('radar', {
|
|
267
273
|
AccountEvaluations: RadarAccountEvaluations,
|
|
268
274
|
EarlyFraudWarnings: RadarEarlyFraudWarnings,
|
|
@@ -353,6 +359,7 @@ export const V2 = resourceNamespace('v2', {
|
|
|
353
359
|
}),
|
|
354
360
|
Core: resourceNamespace('core', {
|
|
355
361
|
AccountLinks: V2CoreAccountLinks,
|
|
362
|
+
AccountTokens: V2CoreAccountTokens,
|
|
356
363
|
Accounts: V2CoreAccounts,
|
|
357
364
|
ClaimableSandboxes: V2CoreClaimableSandboxes,
|
|
358
365
|
EventDestinations: V2CoreEventDestinations,
|
|
@@ -364,6 +371,7 @@ export const V2 = resourceNamespace('v2', {
|
|
|
364
371
|
}),
|
|
365
372
|
MoneyManagement: resourceNamespace('moneyManagement', {
|
|
366
373
|
Adjustments: V2MoneyManagementAdjustments,
|
|
374
|
+
CurrencyConversions: V2MoneyManagementCurrencyConversions,
|
|
367
375
|
FinancialAccounts: V2MoneyManagementFinancialAccounts,
|
|
368
376
|
FinancialAddresses: V2MoneyManagementFinancialAddresses,
|
|
369
377
|
InboundTransfers: V2MoneyManagementInboundTransfers,
|
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 = '20.1.0-alpha.
|
|
37
|
+
Stripe.PACKAGE_VERSION = '20.1.0-alpha.3';
|
|
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
|
@@ -20,12 +20,12 @@ declare module 'stripe' {
|
|
|
20
20
|
/**
|
|
21
21
|
* The subtotal amount of the requested session.
|
|
22
22
|
*/
|
|
23
|
-
amount_subtotal: number;
|
|
23
|
+
amount_subtotal: number | null;
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
26
|
* The total amount of the requested session.
|
|
27
27
|
*/
|
|
28
|
-
amount_total: number;
|
|
28
|
+
amount_total: number | null;
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
31
|
* Time at which the object was created. Measured in seconds since the Unix epoch.
|
|
@@ -259,9 +259,19 @@ declare module 'stripe' {
|
|
|
259
259
|
sku_id: string;
|
|
260
260
|
|
|
261
261
|
/**
|
|
262
|
-
* The unit amount of the
|
|
262
|
+
* The per-unit amount of the item before any discounts or taxes are applied.
|
|
263
263
|
*/
|
|
264
264
|
unit_amount: number;
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* The total discount for this line item. If no discount were applied, defaults to 0.
|
|
268
|
+
*/
|
|
269
|
+
amount_discount: number;
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
* The total before any discounts or taxes are applied.
|
|
273
|
+
*/
|
|
274
|
+
amount_subtotal: number;
|
|
265
275
|
}
|
|
266
276
|
|
|
267
277
|
interface OrderDetails {
|
|
@@ -339,11 +349,6 @@ declare module 'stripe' {
|
|
|
339
349
|
type Status = 'completed' | 'expired' | 'open';
|
|
340
350
|
|
|
341
351
|
interface TotalDetails {
|
|
342
|
-
/**
|
|
343
|
-
* The amount discount of the total details.
|
|
344
|
-
*/
|
|
345
|
-
amount_discount: number | null;
|
|
346
|
-
|
|
347
352
|
/**
|
|
348
353
|
* The amount fulfillment of the total details.
|
|
349
354
|
*/
|
|
@@ -354,6 +359,16 @@ declare module 'stripe' {
|
|
|
354
359
|
*/
|
|
355
360
|
amount_tax: number | null;
|
|
356
361
|
|
|
362
|
+
/**
|
|
363
|
+
* The amount of order-level discounts applied to the cart. The total discount amount for this session can be computed by summing the cart discount and the item discounts.
|
|
364
|
+
*/
|
|
365
|
+
amount_cart_discount: number | null;
|
|
366
|
+
|
|
367
|
+
/**
|
|
368
|
+
* The amount of item-level discounts applied to the cart. The total discount amount for this session can be computed by summing the cart discount and the item discounts.
|
|
369
|
+
*/
|
|
370
|
+
amount_items_discount: number | null;
|
|
371
|
+
|
|
357
372
|
/**
|
|
358
373
|
* The applicable fees of the total details.
|
|
359
374
|
*/
|