stripe 20.4.0-alpha.2 → 20.4.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.
Files changed (67) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/OPENAPI_VERSION +1 -1
  3. package/VERSION +1 -1
  4. package/cjs/resources/V2/Billing/Cadences/SpendModifierRules.js +17 -0
  5. package/cjs/resources/V2/Billing/Cadences.js +5 -0
  6. package/cjs/resources/V2/Billing/OneTimeItems.js +25 -0
  7. package/cjs/resources/V2/Billing/RateCards/CustomPricingUnitOverageRates.js +25 -0
  8. package/cjs/resources/V2/Billing/RateCards.js +2 -0
  9. package/cjs/resources.js +2 -0
  10. package/cjs/stripe.core.js +1 -1
  11. package/esm/resources/V2/Billing/Cadences/SpendModifierRules.js +14 -0
  12. package/esm/resources/V2/Billing/Cadences.js +5 -0
  13. package/esm/resources/V2/Billing/OneTimeItems.js +22 -0
  14. package/esm/resources/V2/Billing/RateCards/CustomPricingUnitOverageRates.js +22 -0
  15. package/esm/resources/V2/Billing/RateCards.js +2 -0
  16. package/esm/resources.js +2 -0
  17. package/esm/stripe.core.js +1 -1
  18. package/package.json +1 -1
  19. package/types/ApplicationFees.d.ts +7 -0
  20. package/types/FrMealVouchersOnboardings.d.ts +7 -1
  21. package/types/FrMealVouchersOnboardingsResource.d.ts +10 -3
  22. package/types/InvoiceItems.d.ts +25 -0
  23. package/types/InvoiceLineItems.d.ts +25 -0
  24. package/types/InvoicesResource.d.ts +16 -0
  25. package/types/QuotesResource.d.ts +1 -3
  26. package/types/SubscriptionsResource.d.ts +7 -0
  27. package/types/V2/Billing/CadenceSpendModifiers.d.ts +108 -0
  28. package/types/V2/Billing/Cadences/SpendModifierRulesResource.d.ts +63 -0
  29. package/types/V2/Billing/CadencesResource.d.ts +2 -0
  30. package/types/V2/Billing/IntentActions.d.ts +116 -2
  31. package/types/V2/Billing/IntentsResource.d.ts +111 -2
  32. package/types/V2/Billing/OneTimeItems.d.ts +73 -0
  33. package/types/V2/Billing/OneTimeItemsResource.d.ts +157 -0
  34. package/types/V2/Billing/RateCardCustomPricingUnitOverageRates.d.ts +67 -0
  35. package/types/V2/Billing/RateCards/CustomPricingUnitOverageRatesResource.d.ts +135 -0
  36. package/types/V2/Billing/RateCardsResource.d.ts +1 -0
  37. package/types/V2/Billing/ServiceActions.d.ts +4 -4
  38. package/types/V2/Billing/ServiceActionsResource.d.ts +4 -4
  39. package/types/V2/Core/AccountTokensResource.d.ts +4 -4
  40. package/types/V2/Core/Accounts.d.ts +4 -4
  41. package/types/V2/Core/AccountsResource.d.ts +8 -8
  42. package/types/V2/Core/EventTypes.d.ts +18 -18
  43. package/types/V2/FinancialAddressGeneratedMicrodeposits.d.ts +2 -2
  44. package/types/V2/MoneyManagement/Adjustments.d.ts +2 -2
  45. package/types/V2/MoneyManagement/CurrencyConversions.d.ts +4 -4
  46. package/types/V2/MoneyManagement/CurrencyConversionsResource.d.ts +4 -4
  47. package/types/V2/MoneyManagement/FinancialAccounts.d.ts +8 -8
  48. package/types/V2/MoneyManagement/InboundTransfers.d.ts +6 -6
  49. package/types/V2/MoneyManagement/InboundTransfersResource.d.ts +2 -2
  50. package/types/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +8 -8
  51. package/types/V2/MoneyManagement/OutboundPaymentQuotesResource.d.ts +2 -2
  52. package/types/V2/MoneyManagement/OutboundPayments.d.ts +6 -6
  53. package/types/V2/MoneyManagement/OutboundPaymentsResource.d.ts +2 -2
  54. package/types/V2/MoneyManagement/OutboundTransfers.d.ts +6 -6
  55. package/types/V2/MoneyManagement/OutboundTransfersResource.d.ts +2 -2
  56. package/types/V2/MoneyManagement/ReceivedCredits.d.ts +4 -4
  57. package/types/V2/MoneyManagement/ReceivedDebits.d.ts +8 -8
  58. package/types/V2/MoneyManagement/TransactionEntries.d.ts +6 -6
  59. package/types/V2/MoneyManagement/Transactions.d.ts +8 -8
  60. package/types/V2/Payments/OffSessionPayments.d.ts +4 -4
  61. package/types/V2/Payments/OffSessionPaymentsResource.d.ts +2 -2
  62. package/types/V2/Payments/SettlementAllocationIntentSplits.d.ts +2 -2
  63. package/types/V2/Payments/SettlementAllocationIntents/SplitsResource.d.ts +2 -2
  64. package/types/V2/Payments/SettlementAllocationIntents.d.ts +2 -2
  65. package/types/V2/Payments/SettlementAllocationIntentsResource.d.ts +4 -4
  66. package/types/V2/TestHelpers/FinancialAddressesResource.d.ts +2 -2
  67. package/types/index.d.ts +7 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Changelog
2
2
 
3
+ ## 20.4.0-alpha.3 - 2026-02-11
4
+ * [#2572](https://github.com/stripe/stripe-node/pull/2572) Update generated code for private-preview
5
+ * Add support for new resources `V2.Billing.CadenceSpendModifier`, `V2.Billing.OneTimeItem`, and `V2.Billing.RateCardCustomPricingUnitOverageRate`
6
+ * Add support for `create`, `del`, `list`, and `retrieve` methods on resource `V2.Billing.RateCardCustomPricingUnitOverageRate`
7
+ * Add support for `create`, `list`, `retrieve`, and `update` methods on resource `V2.Billing.OneTimeItem`
8
+ * Add support for `retrieve` method on resource `V2.Billing.CadenceSpendModifier`
9
+ * Change `EventsV2CoreHealthFraudRateIncreasedEvent.impact.realized_fraud_amount.value`, `EventsV2CoreHealthIssuingAuthorizationRequestErrorsFiringEvent.impact.approved_amount.value`, `EventsV2CoreHealthIssuingAuthorizationRequestErrorsFiringEvent.impact.declined_amount.value`, `EventsV2CoreHealthIssuingAuthorizationRequestErrorsResolvedEvent.impact.approved_amount.value`, `EventsV2CoreHealthIssuingAuthorizationRequestErrorsResolvedEvent.impact.declined_amount.value`, `EventsV2CoreHealthIssuingAuthorizationRequestTimeoutFiringEvent.impact.approved_amount.value`, `EventsV2CoreHealthIssuingAuthorizationRequestTimeoutFiringEvent.impact.declined_amount.value`, `EventsV2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEvent.impact.approved_amount.value`, `EventsV2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEvent.impact.declined_amount.value`, `V2.Billing.ServiceAction.credit_grant.amount.monetary.value`, `V2.Billing.ServiceAction.credit_grant_per_tenant.amount.monetary.value`, `V2.Billing.ServiceActionCreateParams.credit_grant.amount.monetary.value`, `V2.Billing.ServiceActionCreateParams.credit_grant_per_tenant.amount.monetary.value`, `V2.Core.Account.identity.business_details.annual_revenue.amount.value`, `V2.Core.Account.identity.business_details.monthly_estimated_revenue.amount.value`, `V2.Core.AccountCreateParams.identity.business_details.annual_revenue.amount.value`, `V2.Core.AccountCreateParams.identity.business_details.monthly_estimated_revenue.amount.value`, `V2.Core.AccountTokenCreateParams.identity.business_details.annual_revenue.amount.value`, `V2.Core.AccountTokenCreateParams.identity.business_details.monthly_estimated_revenue.amount.value`, `V2.Core.AccountUpdateParams.identity.business_details.annual_revenue.amount.value`, `V2.Core.AccountUpdateParams.identity.business_details.monthly_estimated_revenue.amount.value`, `V2.FinancialAddressCreditSimulationCreditParams.amount.value`, `V2.FinancialAddressGeneratedMicrodeposits.amounts[].value`, `V2.MoneyManagement.Adjustment.amount.value`, `V2.MoneyManagement.CurrencyConversion.from.amount.value`, `V2.MoneyManagement.CurrencyConversion.to.amount.value`, `V2.MoneyManagement.CurrencyConversionCreateParams.from.amount.value`, `V2.MoneyManagement.CurrencyConversionCreateParams.to.amount.value`, `V2.MoneyManagement.FinancialAccount.balance.available.value.value`, `V2.MoneyManagement.FinancialAccount.balance.inbound_pending.value.value`, `V2.MoneyManagement.FinancialAccount.balance.outbound_pending.value.value`, `V2.MoneyManagement.FinancialAccount.payments.starting_balance.available.value.value`, `V2.MoneyManagement.InboundTransfer.amount.value`, `V2.MoneyManagement.InboundTransfer.from.debited.value`, `V2.MoneyManagement.InboundTransfer.to.credited.value`, `V2.MoneyManagement.InboundTransferCreateParams.amount.value`, `V2.MoneyManagement.OutboundPayment.amount.value`, `V2.MoneyManagement.OutboundPayment.from.debited.value`, `V2.MoneyManagement.OutboundPayment.to.credited.value`, `V2.MoneyManagement.OutboundPaymentCreateParams.amount.value`, `V2.MoneyManagement.OutboundPaymentQuote.amount.value`, `V2.MoneyManagement.OutboundPaymentQuote.estimated_fees[].amount.value`, `V2.MoneyManagement.OutboundPaymentQuote.from.debited.value`, `V2.MoneyManagement.OutboundPaymentQuote.to.credited.value`, `V2.MoneyManagement.OutboundPaymentQuoteCreateParams.amount.value`, `V2.MoneyManagement.OutboundTransfer.amount.value`, `V2.MoneyManagement.OutboundTransfer.from.debited.value`, `V2.MoneyManagement.OutboundTransfer.to.credited.value`, `V2.MoneyManagement.OutboundTransferCreateParams.amount.value`, `V2.MoneyManagement.ReceivedCredit.amount.value`, `V2.MoneyManagement.ReceivedCredit.external_amount.value`, `V2.MoneyManagement.ReceivedDebit.amount.value`, `V2.MoneyManagement.ReceivedDebit.card_spend.authorization.amount.value`, `V2.MoneyManagement.ReceivedDebit.card_spend.card_transactions[].amount.value`, `V2.MoneyManagement.ReceivedDebit.external_amount.value`, `V2.MoneyManagement.Transaction.amount.value`, `V2.MoneyManagement.Transaction.balance_impact.available.value`, `V2.MoneyManagement.Transaction.balance_impact.inbound_pending.value`, `V2.MoneyManagement.Transaction.balance_impact.outbound_pending.value`, `V2.MoneyManagement.TransactionEntry.balance_impact.available.value`, `V2.MoneyManagement.TransactionEntry.balance_impact.inbound_pending.value`, `V2.MoneyManagement.TransactionEntry.balance_impact.outbound_pending.value`, `V2.Payments.OffSessionPayment.amount_capturable.value`, `V2.Payments.OffSessionPayment.amount_requested.value`, `V2.Payments.OffSessionPaymentCreateParams.amount.value`, `V2.Payments.SettlementAllocationIntent.amount.value`, `V2.Payments.SettlementAllocationIntentCreateParams.amount.value`, `V2.Payments.SettlementAllocationIntentSplit.amount.value`, `V2.Payments.SettlementAllocationIntentSplitCreateParams.amount.value`, and `V2.Payments.SettlementAllocationIntentUpdateParams.amount.value` to be required
10
+ * Change `EventsV2CoreHealthFraudRateIncreasedEvent.impact.realized_fraud_amount.currency`, `EventsV2CoreHealthIssuingAuthorizationRequestErrorsFiringEvent.impact.approved_amount.currency`, `EventsV2CoreHealthIssuingAuthorizationRequestErrorsFiringEvent.impact.declined_amount.currency`, `EventsV2CoreHealthIssuingAuthorizationRequestErrorsResolvedEvent.impact.approved_amount.currency`, `EventsV2CoreHealthIssuingAuthorizationRequestErrorsResolvedEvent.impact.declined_amount.currency`, `EventsV2CoreHealthIssuingAuthorizationRequestTimeoutFiringEvent.impact.approved_amount.currency`, `EventsV2CoreHealthIssuingAuthorizationRequestTimeoutFiringEvent.impact.declined_amount.currency`, `EventsV2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEvent.impact.approved_amount.currency`, `EventsV2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEvent.impact.declined_amount.currency`, `V2.Billing.ServiceAction.credit_grant.amount.monetary.currency`, `V2.Billing.ServiceAction.credit_grant_per_tenant.amount.monetary.currency`, `V2.Billing.ServiceActionCreateParams.credit_grant.amount.monetary.currency`, `V2.Billing.ServiceActionCreateParams.credit_grant_per_tenant.amount.monetary.currency`, `V2.Core.Account.identity.business_details.annual_revenue.amount.currency`, `V2.Core.Account.identity.business_details.monthly_estimated_revenue.amount.currency`, `V2.Core.AccountCreateParams.identity.business_details.annual_revenue.amount.currency`, `V2.Core.AccountCreateParams.identity.business_details.monthly_estimated_revenue.amount.currency`, `V2.Core.AccountTokenCreateParams.identity.business_details.annual_revenue.amount.currency`, `V2.Core.AccountTokenCreateParams.identity.business_details.monthly_estimated_revenue.amount.currency`, `V2.Core.AccountUpdateParams.identity.business_details.annual_revenue.amount.currency`, `V2.Core.AccountUpdateParams.identity.business_details.monthly_estimated_revenue.amount.currency`, `V2.FinancialAddressCreditSimulationCreditParams.amount.currency`, `V2.FinancialAddressGeneratedMicrodeposits.amounts[].currency`, `V2.MoneyManagement.Adjustment.amount.currency`, `V2.MoneyManagement.CurrencyConversion.from.amount.currency`, `V2.MoneyManagement.CurrencyConversion.to.amount.currency`, `V2.MoneyManagement.CurrencyConversionCreateParams.from.amount.currency`, `V2.MoneyManagement.CurrencyConversionCreateParams.to.amount.currency`, `V2.MoneyManagement.FinancialAccount.balance.available.value.currency`, `V2.MoneyManagement.FinancialAccount.balance.inbound_pending.value.currency`, `V2.MoneyManagement.FinancialAccount.balance.outbound_pending.value.currency`, `V2.MoneyManagement.FinancialAccount.payments.starting_balance.available.value.currency`, `V2.MoneyManagement.InboundTransfer.amount.currency`, `V2.MoneyManagement.InboundTransfer.from.debited.currency`, `V2.MoneyManagement.InboundTransfer.to.credited.currency`, `V2.MoneyManagement.InboundTransferCreateParams.amount.currency`, `V2.MoneyManagement.OutboundPayment.amount.currency`, `V2.MoneyManagement.OutboundPayment.from.debited.currency`, `V2.MoneyManagement.OutboundPayment.to.credited.currency`, `V2.MoneyManagement.OutboundPaymentCreateParams.amount.currency`, `V2.MoneyManagement.OutboundPaymentQuote.amount.currency`, `V2.MoneyManagement.OutboundPaymentQuote.estimated_fees[].amount.currency`, `V2.MoneyManagement.OutboundPaymentQuote.from.debited.currency`, `V2.MoneyManagement.OutboundPaymentQuote.to.credited.currency`, `V2.MoneyManagement.OutboundPaymentQuoteCreateParams.amount.currency`, `V2.MoneyManagement.OutboundTransfer.amount.currency`, `V2.MoneyManagement.OutboundTransfer.from.debited.currency`, `V2.MoneyManagement.OutboundTransfer.to.credited.currency`, `V2.MoneyManagement.OutboundTransferCreateParams.amount.currency`, `V2.MoneyManagement.ReceivedCredit.amount.currency`, `V2.MoneyManagement.ReceivedCredit.external_amount.currency`, `V2.MoneyManagement.ReceivedDebit.amount.currency`, `V2.MoneyManagement.ReceivedDebit.card_spend.authorization.amount.currency`, `V2.MoneyManagement.ReceivedDebit.card_spend.card_transactions[].amount.currency`, `V2.MoneyManagement.ReceivedDebit.external_amount.currency`, `V2.MoneyManagement.Transaction.amount.currency`, `V2.MoneyManagement.Transaction.balance_impact.available.currency`, `V2.MoneyManagement.Transaction.balance_impact.inbound_pending.currency`, `V2.MoneyManagement.Transaction.balance_impact.outbound_pending.currency`, `V2.MoneyManagement.TransactionEntry.balance_impact.available.currency`, `V2.MoneyManagement.TransactionEntry.balance_impact.inbound_pending.currency`, `V2.MoneyManagement.TransactionEntry.balance_impact.outbound_pending.currency`, `V2.Payments.OffSessionPayment.amount_capturable.currency`, `V2.Payments.OffSessionPayment.amount_requested.currency`, `V2.Payments.OffSessionPaymentCreateParams.amount.currency`, `V2.Payments.SettlementAllocationIntent.amount.currency`, `V2.Payments.SettlementAllocationIntentCreateParams.amount.currency`, `V2.Payments.SettlementAllocationIntentSplit.amount.currency`, `V2.Payments.SettlementAllocationIntentSplitCreateParams.amount.currency`, and `V2.Payments.SettlementAllocationIntentUpdateParams.amount.currency` to be required
11
+ * Add support for `settlement_type` on `ApplicationFee`
12
+ * Add support for `rate_card_custom_pricing_unit_overage_rate_details` on `InvoiceItem.pricing` and `InvoiceLineItem.pricing`
13
+ * Add support for new value `rate_card_custom_pricing_unit_overage_rate_details` on enums `InvoiceItem.pricing.type` and `InvoiceLineItem.pricing.type`
14
+ * Add support for `default_settings` on `InvoiceCreatePreviewParams.schedule_details`
15
+ * Change type of `QuoteUpdateParams.subscription_data_overrides[].billing_schedules` from `emptyable(array(billing_schedules_update_specs))` to `array(billing_schedules_update_specs)`
16
+ * Add support for `payment_behavior` on `SubscriptionResumeParams`
17
+ * Add support for `effective_at` and `spend_modifier_rule` on `V2.Billing.IntentAction.apply`, `V2.Billing.IntentAction.remove`, `V2.Billing.IntentCreateParams.actions[].apply`, and `V2.Billing.IntentCreateParams.actions[].remove`
18
+ * Change type of `V2.Billing.IntentAction.apply.type`, `V2.Billing.IntentAction.remove.type`, `V2.Billing.IntentCreateParams.actions[].apply.type`, and `V2.Billing.IntentCreateParams.actions[].remove.type` from `literal('invoice_discount_rule')` to `enum('invoice_discount_rule'|'spend_modifier_rule')`
19
+
3
20
  ## 20.4.0-alpha.2 - 2026-02-04
4
21
  * [#2567](https://github.com/stripe/stripe-node/pull/2567) Update generated code for private-preview
5
22
  * Add support for new resource `V2.Core.ConnectionSession`
@@ -52,6 +69,10 @@ This release changes the pinned API version to `2026-01-28.preview`.
52
69
  * Add support for `subtotal` on `InvoiceLineItem`
53
70
  * Add support for `billing_cadence` on `SubscriptionListParams`
54
71
 
72
+ ## 20.3.1 - 2026-02-05
73
+ * [#2571](https://github.com/stripe/stripe-node/pull/2571) Fix `UnhandledPromiseRejection` error on failed V2 List operations
74
+ - Fixes a bug where any error returned from the Stripe API on a V2 List call (e.g. a 4xx or 5xx) would crash Node due to an `UnhandledPromiseRejection`
75
+
55
76
  ## 20.3.0 - 2026-01-28
56
77
  This release changes the pinned API version to `2026-01-28.clover`.
57
78
 
package/OPENAPI_VERSION CHANGED
@@ -1 +1 @@
1
- v2164
1
+ v2169
package/VERSION CHANGED
@@ -1 +1 @@
1
- 20.4.0-alpha.2
1
+ 20.4.0-alpha.3
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.SpendModifierRules = void 0;
5
+ const StripeResource_js_1 = require("../../../../StripeResource.js");
6
+ const stripeMethod = StripeResource_js_1.StripeResource.method;
7
+ exports.SpendModifierRules = StripeResource_js_1.StripeResource.extend({
8
+ retrieve: stripeMethod({
9
+ method: 'GET',
10
+ fullPath: '/v2/billing/cadences/{cadence_id}/spend_modifier_rules/{id}',
11
+ }),
12
+ list: stripeMethod({
13
+ method: 'GET',
14
+ fullPath: '/v2/billing/cadences/{cadence_id}/spend_modifier_rules',
15
+ methodType: 'list',
16
+ }),
17
+ });
@@ -3,8 +3,13 @@
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.Cadences = void 0;
5
5
  const StripeResource_js_1 = require("../../../StripeResource.js");
6
+ const SpendModifierRules_js_1 = require("./Cadences/SpendModifierRules.js");
6
7
  const stripeMethod = StripeResource_js_1.StripeResource.method;
7
8
  exports.Cadences = StripeResource_js_1.StripeResource.extend({
9
+ constructor: function (...args) {
10
+ StripeResource_js_1.StripeResource.apply(this, args);
11
+ this.spendModifierRules = new SpendModifierRules_js_1.SpendModifierRules(...args);
12
+ },
8
13
  create: stripeMethod({ method: 'POST', fullPath: '/v2/billing/cadences' }),
9
14
  retrieve: stripeMethod({
10
15
  method: 'GET',
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.OneTimeItems = void 0;
5
+ const StripeResource_js_1 = require("../../../StripeResource.js");
6
+ const stripeMethod = StripeResource_js_1.StripeResource.method;
7
+ exports.OneTimeItems = StripeResource_js_1.StripeResource.extend({
8
+ create: stripeMethod({
9
+ method: 'POST',
10
+ fullPath: '/v2/billing/one_time_items',
11
+ }),
12
+ retrieve: stripeMethod({
13
+ method: 'GET',
14
+ fullPath: '/v2/billing/one_time_items/{id}',
15
+ }),
16
+ update: stripeMethod({
17
+ method: 'POST',
18
+ fullPath: '/v2/billing/one_time_items/{id}',
19
+ }),
20
+ list: stripeMethod({
21
+ method: 'GET',
22
+ fullPath: '/v2/billing/one_time_items',
23
+ methodType: 'list',
24
+ }),
25
+ });
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.CustomPricingUnitOverageRates = void 0;
5
+ const StripeResource_js_1 = require("../../../../StripeResource.js");
6
+ const stripeMethod = StripeResource_js_1.StripeResource.method;
7
+ exports.CustomPricingUnitOverageRates = StripeResource_js_1.StripeResource.extend({
8
+ create: stripeMethod({
9
+ method: 'POST',
10
+ fullPath: '/v2/billing/rate_cards/{rate_card_id}/custom_pricing_unit_overage_rates',
11
+ }),
12
+ retrieve: stripeMethod({
13
+ method: 'GET',
14
+ fullPath: '/v2/billing/rate_cards/{rate_card_id}/custom_pricing_unit_overage_rates/{id}',
15
+ }),
16
+ list: stripeMethod({
17
+ method: 'GET',
18
+ fullPath: '/v2/billing/rate_cards/{rate_card_id}/custom_pricing_unit_overage_rates',
19
+ methodType: 'list',
20
+ }),
21
+ del: stripeMethod({
22
+ method: 'DELETE',
23
+ fullPath: '/v2/billing/rate_cards/{rate_card_id}/custom_pricing_unit_overage_rates/{id}',
24
+ }),
25
+ });
@@ -3,12 +3,14 @@
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.RateCards = void 0;
5
5
  const StripeResource_js_1 = require("../../../StripeResource.js");
6
+ const CustomPricingUnitOverageRates_js_1 = require("./RateCards/CustomPricingUnitOverageRates.js");
6
7
  const Rates_js_1 = require("./RateCards/Rates.js");
7
8
  const Versions_js_1 = require("./RateCards/Versions.js");
8
9
  const stripeMethod = StripeResource_js_1.StripeResource.method;
9
10
  exports.RateCards = StripeResource_js_1.StripeResource.extend({
10
11
  constructor: function (...args) {
11
12
  StripeResource_js_1.StripeResource.apply(this, args);
13
+ this.customPricingUnitOverageRates = new CustomPricingUnitOverageRates_js_1.CustomPricingUnitOverageRates(...args);
12
14
  this.rates = new Rates_js_1.Rates(...args);
13
15
  this.versions = new Versions_js_1.Versions(...args);
14
16
  },
package/cjs/resources.js CHANGED
@@ -83,6 +83,7 @@ const Meters_js_1 = require("./resources/Billing/Meters.js");
83
83
  const MoneyManagement_js_1 = require("./resources/V2/TestHelpers/MoneyManagement.js");
84
84
  const OffSessionPayments_js_1 = require("./resources/V2/Payments/OffSessionPayments.js");
85
85
  const OnboardingLinks_js_1 = require("./resources/Terminal/OnboardingLinks.js");
86
+ const OneTimeItems_js_1 = require("./resources/V2/Billing/OneTimeItems.js");
86
87
  const Orders_js_1 = require("./resources/Climate/Orders.js");
87
88
  const OutboundPaymentQuotes_js_1 = require("./resources/V2/MoneyManagement/OutboundPaymentQuotes.js");
88
89
  const OutboundPayments_js_1 = require("./resources/TestHelpers/Treasury/OutboundPayments.js");
@@ -445,6 +446,7 @@ exports.V2 = (0, ResourceNamespace_js_1.resourceNamespace)('v2', {
445
446
  MeterEventStream: MeterEventStream_js_1.MeterEventStream,
446
447
  MeterEvents: MeterEvents_js_2.MeterEvents,
447
448
  MeteredItems: MeteredItems_js_1.MeteredItems,
449
+ OneTimeItems: OneTimeItems_js_1.OneTimeItems,
448
450
  PricingPlanSubscriptions: PricingPlanSubscriptions_js_1.PricingPlanSubscriptions,
449
451
  PricingPlans: PricingPlans_js_1.PricingPlans,
450
452
  Profiles: Profiles_js_1.Profiles,
@@ -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.4.0-alpha.2';
40
+ Stripe.PACKAGE_VERSION = '20.4.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,14 @@
1
+ // File generated from our OpenAPI spec
2
+ import { StripeResource } from '../../../../StripeResource.js';
3
+ const stripeMethod = StripeResource.method;
4
+ export const SpendModifierRules = StripeResource.extend({
5
+ retrieve: stripeMethod({
6
+ method: 'GET',
7
+ fullPath: '/v2/billing/cadences/{cadence_id}/spend_modifier_rules/{id}',
8
+ }),
9
+ list: stripeMethod({
10
+ method: 'GET',
11
+ fullPath: '/v2/billing/cadences/{cadence_id}/spend_modifier_rules',
12
+ methodType: 'list',
13
+ }),
14
+ });
@@ -1,7 +1,12 @@
1
1
  // File generated from our OpenAPI spec
2
2
  import { StripeResource } from '../../../StripeResource.js';
3
+ import { SpendModifierRules } from './Cadences/SpendModifierRules.js';
3
4
  const stripeMethod = StripeResource.method;
4
5
  export const Cadences = StripeResource.extend({
6
+ constructor: function (...args) {
7
+ StripeResource.apply(this, args);
8
+ this.spendModifierRules = new SpendModifierRules(...args);
9
+ },
5
10
  create: stripeMethod({ method: 'POST', fullPath: '/v2/billing/cadences' }),
6
11
  retrieve: stripeMethod({
7
12
  method: 'GET',
@@ -0,0 +1,22 @@
1
+ // File generated from our OpenAPI spec
2
+ import { StripeResource } from '../../../StripeResource.js';
3
+ const stripeMethod = StripeResource.method;
4
+ export const OneTimeItems = StripeResource.extend({
5
+ create: stripeMethod({
6
+ method: 'POST',
7
+ fullPath: '/v2/billing/one_time_items',
8
+ }),
9
+ retrieve: stripeMethod({
10
+ method: 'GET',
11
+ fullPath: '/v2/billing/one_time_items/{id}',
12
+ }),
13
+ update: stripeMethod({
14
+ method: 'POST',
15
+ fullPath: '/v2/billing/one_time_items/{id}',
16
+ }),
17
+ list: stripeMethod({
18
+ method: 'GET',
19
+ fullPath: '/v2/billing/one_time_items',
20
+ methodType: 'list',
21
+ }),
22
+ });
@@ -0,0 +1,22 @@
1
+ // File generated from our OpenAPI spec
2
+ import { StripeResource } from '../../../../StripeResource.js';
3
+ const stripeMethod = StripeResource.method;
4
+ export const CustomPricingUnitOverageRates = StripeResource.extend({
5
+ create: stripeMethod({
6
+ method: 'POST',
7
+ fullPath: '/v2/billing/rate_cards/{rate_card_id}/custom_pricing_unit_overage_rates',
8
+ }),
9
+ retrieve: stripeMethod({
10
+ method: 'GET',
11
+ fullPath: '/v2/billing/rate_cards/{rate_card_id}/custom_pricing_unit_overage_rates/{id}',
12
+ }),
13
+ list: stripeMethod({
14
+ method: 'GET',
15
+ fullPath: '/v2/billing/rate_cards/{rate_card_id}/custom_pricing_unit_overage_rates',
16
+ methodType: 'list',
17
+ }),
18
+ del: stripeMethod({
19
+ method: 'DELETE',
20
+ fullPath: '/v2/billing/rate_cards/{rate_card_id}/custom_pricing_unit_overage_rates/{id}',
21
+ }),
22
+ });
@@ -1,11 +1,13 @@
1
1
  // File generated from our OpenAPI spec
2
2
  import { StripeResource } from '../../../StripeResource.js';
3
+ import { CustomPricingUnitOverageRates } from './RateCards/CustomPricingUnitOverageRates.js';
3
4
  import { Rates } from './RateCards/Rates.js';
4
5
  import { Versions } from './RateCards/Versions.js';
5
6
  const stripeMethod = StripeResource.method;
6
7
  export const RateCards = StripeResource.extend({
7
8
  constructor: function (...args) {
8
9
  StripeResource.apply(this, args);
10
+ this.customPricingUnitOverageRates = new CustomPricingUnitOverageRates(...args);
9
11
  this.rates = new Rates(...args);
10
12
  this.versions = new Versions(...args);
11
13
  },
package/esm/resources.js CHANGED
@@ -79,6 +79,7 @@ import { Meters as BillingMeters } from './resources/Billing/Meters.js';
79
79
  import { MoneyManagement as V2TestHelpersMoneyManagement } from './resources/V2/TestHelpers/MoneyManagement.js';
80
80
  import { OffSessionPayments as V2PaymentsOffSessionPayments } from './resources/V2/Payments/OffSessionPayments.js';
81
81
  import { OnboardingLinks as TerminalOnboardingLinks } from './resources/Terminal/OnboardingLinks.js';
82
+ import { OneTimeItems as V2BillingOneTimeItems } from './resources/V2/Billing/OneTimeItems.js';
82
83
  import { Orders as ClimateOrders } from './resources/Climate/Orders.js';
83
84
  import { OutboundPaymentQuotes as V2MoneyManagementOutboundPaymentQuotes } from './resources/V2/MoneyManagement/OutboundPaymentQuotes.js';
84
85
  import { OutboundPayments as TestHelpersTreasuryOutboundPayments } from './resources/TestHelpers/Treasury/OutboundPayments.js';
@@ -377,6 +378,7 @@ export const V2 = resourceNamespace('v2', {
377
378
  MeterEventStream: V2BillingMeterEventStream,
378
379
  MeterEvents: V2BillingMeterEvents,
379
380
  MeteredItems: V2BillingMeteredItems,
381
+ OneTimeItems: V2BillingOneTimeItems,
380
382
  PricingPlanSubscriptions: V2BillingPricingPlanSubscriptions,
381
383
  PricingPlans: V2BillingPricingPlans,
382
384
  Profiles: V2BillingProfiles,
@@ -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.4.0-alpha.2';
37
+ Stripe.PACKAGE_VERSION = '20.4.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stripe",
3
- "version": "20.4.0-alpha.2",
3
+ "version": "20.4.0-alpha.3",
4
4
  "description": "Stripe API wrapper",
5
5
  "keywords": [
6
6
  "stripe",
@@ -80,6 +80,11 @@ declare module 'stripe' {
80
80
  * A list of refunds that have been applied to the fee.
81
81
  */
82
82
  refunds: ApiList<Stripe.FeeRefund>;
83
+
84
+ /**
85
+ * Type of settlement for the application fee. One of `net_settled` or `gross_settled`.
86
+ */
87
+ settlement_type?: ApplicationFee.SettlementType;
83
88
  }
84
89
 
85
90
  namespace ApplicationFee {
@@ -108,6 +113,8 @@ declare module 'stripe' {
108
113
  namespace FeeSource {
109
114
  type Type = 'charge' | 'payout' | 'transfer';
110
115
  }
116
+
117
+ type SettlementType = 'gross_settled' | 'net_settled';
111
118
  }
112
119
  }
113
120
  }
@@ -3,8 +3,14 @@
3
3
  declare module 'stripe' {
4
4
  namespace Stripe {
5
5
  /**
6
- * The French Meal Vouchers Onboarding resource encapsulates the onboarding status and other related information
6
+ * The `French Meal Vouchers Onboarding` resource encapsulates the onboarding status and other related information
7
7
  * for a single restaurant (SIRET number) in the context of the French Meal Vouchers program.
8
+ *
9
+ * To onboard a restaurant for the French Meal Vouchers program, you create a `French Meal Vouchers Onboarding` object.
10
+ * You can retrieve individual objects, list all such objects, or update objects to correct the postal code of the restaurant.
11
+ * We identify `French Meal Vouchers Onboarding` objects with a unique, random ID.
12
+ *
13
+ * Related guide: [Set up a restaurant for titres-restaurant payments](https://docs.stripe.com/payments/meal-vouchers/fr-meal-vouchers/set-up-restaurant)
8
14
  */
9
15
  interface FrMealVouchersOnboarding {
10
16
  /**
@@ -65,7 +65,10 @@ declare module 'stripe' {
65
65
  ): Promise<Stripe.Response<Stripe.FrMealVouchersOnboarding>>;
66
66
 
67
67
  /**
68
- * Retrieves the details of a French Meal Vouchers Onboarding object
68
+ * Retrieves the details of a previously created French Meal Vouchers Onboarding object.
69
+ *
70
+ * Supply the unique French Meal Vouchers Onboarding ID that was returned from your previous request,
71
+ * and Stripe returns the corresponding onboarding information.
69
72
  */
70
73
  retrieve(
71
74
  id: string,
@@ -78,7 +81,11 @@ declare module 'stripe' {
78
81
  ): Promise<Stripe.Response<Stripe.FrMealVouchersOnboarding>>;
79
82
 
80
83
  /**
81
- * Updates the details of a restaurant's French Meal Vouchers Onboarding object
84
+ * Updates the details of a restaurant's French Meal Vouchers Onboarding object by
85
+ * setting the values of the parameters passed. Any parameters not provided are left unchanged.
86
+ * After you update the object, the onboarding process automatically restarts.
87
+ *
88
+ * You can only update French Meal Vouchers Onboarding objects with the postal_code field requirement in past_due.
82
89
  */
83
90
  update(
84
91
  id: string,
@@ -87,7 +94,7 @@ declare module 'stripe' {
87
94
  ): Promise<Stripe.Response<Stripe.FrMealVouchersOnboarding>>;
88
95
 
89
96
  /**
90
- * Lists French Meal Vouchers Onboarding objects
97
+ * Lists French Meal Vouchers Onboarding objects. The objects are returned in sorted order, with the most recently created objects appearing first.
91
98
  */
92
99
  list(
93
100
  params?: FrMealVouchersOnboardingListParams,
@@ -275,6 +275,8 @@ declare module 'stripe' {
275
275
  * The unit amount (in the `currency` specified) of the item which contains a decimal value with at most 12 decimal places.
276
276
  */
277
277
  unit_amount_decimal: string | null;
278
+
279
+ rate_card_custom_pricing_unit_overage_rate_details?: Pricing.RateCardCustomPricingUnitOverageRateDetails;
278
280
  }
279
281
 
280
282
  namespace Pricing {
@@ -307,6 +309,28 @@ declare module 'stripe' {
307
309
  product: string;
308
310
  }
309
311
 
312
+ interface RateCardCustomPricingUnitOverageRateDetails {
313
+ /**
314
+ * The ID of the custom pricing unit this item is associated with
315
+ */
316
+ custom_pricing_unit: string;
317
+
318
+ /**
319
+ * The ID of the custom pricing unit overage rate this item is associated with
320
+ */
321
+ custom_pricing_unit_overage_rate: string;
322
+
323
+ /**
324
+ * The ID of the one-time item this custom pricing unit overage rate is associated with
325
+ */
326
+ one_time_item: string;
327
+
328
+ /**
329
+ * The ID of the rate card this item is associated with
330
+ */
331
+ rate_card: string;
332
+ }
333
+
310
334
  interface RateCardRateDetails {
311
335
  /**
312
336
  * The ID of billable item this item is associated with
@@ -327,6 +351,7 @@ declare module 'stripe' {
327
351
  type Type =
328
352
  | 'license_fee_details'
329
353
  | 'price_details'
354
+ | 'rate_card_custom_pricing_unit_overage_rate_details'
330
355
  | 'rate_card_rate_details';
331
356
  }
332
357
 
@@ -397,6 +397,8 @@ declare module 'stripe' {
397
397
  * The unit amount (in the `currency` specified) of the item which contains a decimal value with at most 12 decimal places.
398
398
  */
399
399
  unit_amount_decimal: string | null;
400
+
401
+ rate_card_custom_pricing_unit_overage_rate_details?: Pricing.RateCardCustomPricingUnitOverageRateDetails;
400
402
  }
401
403
 
402
404
  namespace Pricing {
@@ -429,6 +431,28 @@ declare module 'stripe' {
429
431
  product: string;
430
432
  }
431
433
 
434
+ interface RateCardCustomPricingUnitOverageRateDetails {
435
+ /**
436
+ * The ID of the custom pricing unit this item is associated with
437
+ */
438
+ custom_pricing_unit: string;
439
+
440
+ /**
441
+ * The ID of the custom pricing unit overage rate this item is associated with
442
+ */
443
+ custom_pricing_unit_overage_rate: string;
444
+
445
+ /**
446
+ * The ID of the one-time item this custom pricing unit overage rate is associated with
447
+ */
448
+ one_time_item: string;
449
+
450
+ /**
451
+ * The ID of the rate card this item is associated with
452
+ */
453
+ rate_card: string;
454
+ }
455
+
432
456
  interface RateCardRateDetails {
433
457
  /**
434
458
  * The ID of billable item this item is associated with
@@ -449,6 +473,7 @@ declare module 'stripe' {
449
473
  type Type =
450
474
  | 'license_fee_details'
451
475
  | 'price_details'
476
+ | 'rate_card_custom_pricing_unit_overage_rate_details'
452
477
  | 'rate_card_rate_details';
453
478
  }
454
479
 
@@ -3032,6 +3032,11 @@ declare module 'stripe' {
3032
3032
  * In cases where the `schedule_details` params update the currently active phase, specifies if and how to prorate at the time of the request.
3033
3033
  */
3034
3034
  proration_behavior?: ScheduleDetails.ProrationBehavior;
3035
+
3036
+ /**
3037
+ * Object representing the subscription schedule's default settings.
3038
+ */
3039
+ default_settings?: ScheduleDetails.DefaultSettings;
3035
3040
  }
3036
3041
 
3037
3042
  namespace ScheduleDetails {
@@ -4047,6 +4052,17 @@ declare module 'stripe' {
4047
4052
  }
4048
4053
  }
4049
4054
 
4055
+ interface DefaultSettings {
4056
+ /**
4057
+ * Configures how the subscription schedule handles billing for phase transitions.
4058
+ */
4059
+ phase_effective_at?: DefaultSettings.PhaseEffectiveAt;
4060
+ }
4061
+
4062
+ namespace DefaultSettings {
4063
+ type PhaseEffectiveAt = 'billing_period_start' | 'phase_start';
4064
+ }
4065
+
4050
4066
  type EndBehavior = 'cancel' | 'release';
4051
4067
 
4052
4068
  interface Phase {
@@ -3697,9 +3697,7 @@ declare module 'stripe' {
3697
3697
  /**
3698
3698
  * Billing schedules that will be applied to the subscription or subscription schedule created when the quote is accepted.
3699
3699
  */
3700
- billing_schedules?: Stripe.Emptyable<
3701
- Array<SubscriptionDataOverride.BillingSchedule>
3702
- >;
3700
+ billing_schedules?: Array<SubscriptionDataOverride.BillingSchedule>;
3703
3701
 
3704
3702
  /**
3705
3703
  * The customer the Subscription Data override applies to.
@@ -3209,6 +3209,11 @@ declare module 'stripe' {
3209
3209
  */
3210
3210
  expand?: Array<string>;
3211
3211
 
3212
+ /**
3213
+ * Controls when the subscription transitions from `paused` to `active`. Determines how payment on the invoice affects the resumption process.The default is `pending_if_incomplete`.
3214
+ */
3215
+ payment_behavior?: SubscriptionResumeParams.PaymentBehavior;
3216
+
3212
3217
  /**
3213
3218
  * Determines how to handle [prorations](https://docs.stripe.com/billing/subscriptions/prorations) resulting from the `billing_cycle_anchor` being `unchanged`. When the `billing_cycle_anchor` is set to `now` (default value), no prorations are generated. If no value is passed, the default is `create_prorations`.
3214
3219
  */
@@ -3223,6 +3228,8 @@ declare module 'stripe' {
3223
3228
  namespace SubscriptionResumeParams {
3224
3229
  type BillingCycleAnchor = 'now' | 'unchanged';
3225
3230
 
3231
+ type PaymentBehavior = 'allow_incomplete' | 'pending_if_incomplete';
3232
+
3226
3233
  type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none';
3227
3234
  }
3228
3235