stripe 16.9.0-beta.1 → 16.9.0-beta.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.
Files changed (46) hide show
  1. package/CHANGELOG.md +23 -1
  2. package/VERSION +1 -1
  3. package/cjs/apiVersion.js +1 -1
  4. package/cjs/stripe.core.js +1 -1
  5. package/cjs/utils.js +1 -3
  6. package/esm/apiVersion.js +1 -1
  7. package/esm/stripe.core.js +1 -1
  8. package/esm/utils.js +1 -3
  9. package/package.json +1 -1
  10. package/types/Accounts.d.ts +7 -0
  11. package/types/AccountsResource.d.ts +24 -0
  12. package/types/Charges.d.ts +7 -1
  13. package/types/ChargesResource.d.ts +6 -2
  14. package/types/Checkout/Sessions.d.ts +2 -1
  15. package/types/Checkout/SessionsResource.d.ts +4 -2
  16. package/types/ConfirmationTokens.d.ts +5 -0
  17. package/types/CustomerSessions.d.ts +4 -0
  18. package/types/CustomersResource.d.ts +5 -2
  19. package/types/Disputes.d.ts +1 -7
  20. package/types/Invoices.d.ts +2 -1
  21. package/types/InvoicesResource.d.ts +9 -6
  22. package/types/Orders.d.ts +2 -1
  23. package/types/OrdersResource.d.ts +4 -2
  24. package/types/PaymentIntents.d.ts +18 -1
  25. package/types/PaymentIntentsResource.d.ts +94 -4
  26. package/types/PaymentLinksResource.d.ts +8 -4
  27. package/types/PaymentMethods.d.ts +5 -0
  28. package/types/PaymentMethodsResource.d.ts +9 -0
  29. package/types/QuotePreviewInvoices.d.ts +2 -1
  30. package/types/QuotesResource.d.ts +0 -577
  31. package/types/SetupIntentsResource.d.ts +24 -0
  32. package/types/SubscriptionSchedulesResource.d.ts +2 -2
  33. package/types/SubscriptionsResource.d.ts +2 -2
  34. package/types/Tax/Calculations.d.ts +2 -1
  35. package/types/Tax/CalculationsResource.d.ts +2 -1
  36. package/types/Tax/Transactions.d.ts +2 -1
  37. package/types/TaxIds.d.ts +2 -1
  38. package/types/TaxIdsResource.d.ts +2 -1
  39. package/types/TestHelpers/ConfirmationTokensResource.d.ts +8 -0
  40. package/types/Treasury/InboundTransfers.d.ts +3 -1
  41. package/types/Treasury/OutboundPayments.d.ts +3 -1
  42. package/types/Treasury/OutboundTransfers.d.ts +3 -1
  43. package/types/Treasury/ReceivedCredits.d.ts +3 -1
  44. package/types/Treasury/TransactionEntries.d.ts +9 -3
  45. package/types/Treasury/Transactions.d.ts +9 -3
  46. package/types/Webhooks.d.ts +37 -28
@@ -98,11 +98,6 @@ declare module 'stripe' {
98
98
  */
99
99
  on_behalf_of?: Stripe.Emptyable<string>;
100
100
 
101
- /**
102
- * List representing phases of the Quote. Each phase can be customized to have different durations, prices, and coupons.
103
- */
104
- phases?: Array<QuoteCreateParams.Phase>;
105
-
106
101
  /**
107
102
  * When creating a subscription or subscription schedule, the specified configuration data will be used. There must be at least one line item with a recurring price for a subscription or subscription schedule to be created. A subscription schedule is created if `subscription_data[effective_date]` is present and in the future, otherwise a subscription is created.
108
103
  */
@@ -1025,287 +1020,6 @@ declare module 'stripe' {
1025
1020
  }
1026
1021
  }
1027
1022
 
1028
- interface Phase {
1029
- /**
1030
- * When specified as `reset`, the subscription will always start a new billing period when the quote is accepted.
1031
- */
1032
- billing_cycle_anchor?: 'reset';
1033
-
1034
- /**
1035
- * Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay the underlying subscription at the end of each billing cycle using the default source attached to the customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions and mark the subscription as `active`. Defaults to `charge_automatically` on creation.
1036
- */
1037
- collection_method?: Phase.CollectionMethod;
1038
-
1039
- /**
1040
- * A list of [Tax Rate](https://stripe.com/docs/api/tax_rates) ids. These Tax Rates will set the Subscription's [`default_tax_rates`](https://stripe.com/docs/api/subscriptions/create#create_subscription-default_tax_rates), which means they will be the Invoice's [`default_tax_rates`](https://stripe.com/docs/api/invoices/create#create_invoice-default_tax_rates) for any Invoices issued by the Subscription during this Phase.
1041
- */
1042
- default_tax_rates?: Stripe.Emptyable<Array<string>>;
1043
-
1044
- /**
1045
- * The coupons to redeem into discounts for the schedule phase. If not specified, inherits the discount from the subscription's customer. Pass an empty string to avoid inheriting any discounts.
1046
- */
1047
- discounts?: Stripe.Emptyable<Array<Phase.Discount>>;
1048
-
1049
- /**
1050
- * The date at which this phase of the quote ends. If set, `iterations` must not be set.
1051
- */
1052
- end_date?: number;
1053
-
1054
- /**
1055
- * All invoices will be billed using the specified settings.
1056
- */
1057
- invoice_settings?: Phase.InvoiceSettings;
1058
-
1059
- /**
1060
- * Integer representing the multiplier applied to the price interval. For example, `iterations=2` applied to a price with `interval=month` and `interval_count=3` results in a phase of duration `2 * 3 months = 6 months`. If set, `end_date` must not be set.
1061
- */
1062
- iterations?: number;
1063
-
1064
- /**
1065
- * A list of line items the customer is being quoted for within this phase. Each line item includes information about the product, the quantity, and the resulting cost.
1066
- */
1067
- line_items: Array<Phase.LineItem>;
1068
-
1069
- /**
1070
- * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that will declaratively set metadata on the subscription schedule's phases when the quote is accepted.
1071
- */
1072
- metadata?: Stripe.MetadataParam;
1073
-
1074
- /**
1075
- * If the update changes the current phase, indicates whether the changes should be prorated. The default value is `create_prorations`.
1076
- */
1077
- proration_behavior?: Phase.ProrationBehavior;
1078
-
1079
- /**
1080
- * If set to true the entire phase is counted as a trial and the customer will not be charged for any fees.
1081
- */
1082
- trial?: boolean;
1083
-
1084
- /**
1085
- * Sets the phase to trialing from the start date to this date. Must be before the phase end date, can not be combined with `trial`.
1086
- */
1087
- trial_end?: number;
1088
- }
1089
-
1090
- namespace Phase {
1091
- type CollectionMethod = 'charge_automatically' | 'send_invoice';
1092
-
1093
- interface Discount {
1094
- /**
1095
- * ID of the coupon to create a new discount for.
1096
- */
1097
- coupon?: string;
1098
-
1099
- /**
1100
- * ID of an existing discount on the object (or one of its ancestors) to reuse.
1101
- */
1102
- discount?: string;
1103
-
1104
- /**
1105
- * Details to determine how long the discount should be applied for.
1106
- */
1107
- discount_end?: Discount.DiscountEnd;
1108
-
1109
- /**
1110
- * ID of the promotion code to create a new discount for.
1111
- */
1112
- promotion_code?: string;
1113
- }
1114
-
1115
- namespace Discount {
1116
- interface DiscountEnd {
1117
- /**
1118
- * Time span for the redeemed discount.
1119
- */
1120
- duration?: DiscountEnd.Duration;
1121
-
1122
- /**
1123
- * A precise Unix timestamp for the discount to end. Must be in the future.
1124
- */
1125
- timestamp?: number;
1126
-
1127
- /**
1128
- * The type of calculation made to determine when the discount ends.
1129
- */
1130
- type: DiscountEnd.Type;
1131
- }
1132
-
1133
- namespace DiscountEnd {
1134
- interface Duration {
1135
- /**
1136
- * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
1137
- */
1138
- interval: Duration.Interval;
1139
-
1140
- /**
1141
- * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
1142
- */
1143
- interval_count: number;
1144
- }
1145
-
1146
- namespace Duration {
1147
- type Interval = 'day' | 'month' | 'week' | 'year';
1148
- }
1149
-
1150
- type Type = 'duration' | 'timestamp';
1151
- }
1152
- }
1153
-
1154
- interface InvoiceSettings {
1155
- /**
1156
- * Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `billing=charge_automatically`.
1157
- */
1158
- days_until_due?: number;
1159
- }
1160
-
1161
- interface LineItem {
1162
- /**
1163
- * The discounts applied to this line item.
1164
- */
1165
- discounts?: Stripe.Emptyable<Array<LineItem.Discount>>;
1166
-
1167
- /**
1168
- * The ID of the price object. One of `price` or `price_data` is required.
1169
- */
1170
- price?: string;
1171
-
1172
- /**
1173
- * Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
1174
- */
1175
- price_data?: LineItem.PriceData;
1176
-
1177
- /**
1178
- * The quantity of the line item.
1179
- */
1180
- quantity?: number;
1181
-
1182
- /**
1183
- * The tax rates which apply to the line item. When set, the `default_tax_rates` on the quote do not apply to this line item.
1184
- */
1185
- tax_rates?: Stripe.Emptyable<Array<string>>;
1186
- }
1187
-
1188
- namespace LineItem {
1189
- interface Discount {
1190
- /**
1191
- * ID of the coupon to create a new discount for.
1192
- */
1193
- coupon?: string;
1194
-
1195
- /**
1196
- * ID of an existing discount on the object (or one of its ancestors) to reuse.
1197
- */
1198
- discount?: string;
1199
-
1200
- /**
1201
- * Details to determine how long the discount should be applied for.
1202
- */
1203
- discount_end?: Discount.DiscountEnd;
1204
-
1205
- /**
1206
- * ID of the promotion code to create a new discount for.
1207
- */
1208
- promotion_code?: string;
1209
- }
1210
-
1211
- namespace Discount {
1212
- interface DiscountEnd {
1213
- /**
1214
- * Time span for the redeemed discount.
1215
- */
1216
- duration?: DiscountEnd.Duration;
1217
-
1218
- /**
1219
- * A precise Unix timestamp for the discount to end. Must be in the future.
1220
- */
1221
- timestamp?: number;
1222
-
1223
- /**
1224
- * The type of calculation made to determine when the discount ends.
1225
- */
1226
- type: DiscountEnd.Type;
1227
- }
1228
-
1229
- namespace DiscountEnd {
1230
- interface Duration {
1231
- /**
1232
- * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
1233
- */
1234
- interval: Duration.Interval;
1235
-
1236
- /**
1237
- * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
1238
- */
1239
- interval_count: number;
1240
- }
1241
-
1242
- namespace Duration {
1243
- type Interval = 'day' | 'month' | 'week' | 'year';
1244
- }
1245
-
1246
- type Type = 'duration' | 'timestamp';
1247
- }
1248
- }
1249
-
1250
- interface PriceData {
1251
- /**
1252
- * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
1253
- */
1254
- currency: string;
1255
-
1256
- /**
1257
- * The ID of the product that this price will belong to.
1258
- */
1259
- product: string;
1260
-
1261
- /**
1262
- * The recurring components of a price such as `interval` and `interval_count`.
1263
- */
1264
- recurring?: PriceData.Recurring;
1265
-
1266
- /**
1267
- * Only required if a [default tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
1268
- */
1269
- tax_behavior?: PriceData.TaxBehavior;
1270
-
1271
- /**
1272
- * A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge.
1273
- */
1274
- unit_amount?: number;
1275
-
1276
- /**
1277
- * Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.
1278
- */
1279
- unit_amount_decimal?: string;
1280
- }
1281
-
1282
- namespace PriceData {
1283
- interface Recurring {
1284
- /**
1285
- * Specifies billing frequency. Either `day`, `week`, `month` or `year`.
1286
- */
1287
- interval: Recurring.Interval;
1288
-
1289
- /**
1290
- * The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks).
1291
- */
1292
- interval_count?: number;
1293
- }
1294
-
1295
- namespace Recurring {
1296
- type Interval = 'day' | 'month' | 'week' | 'year';
1297
- }
1298
-
1299
- type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified';
1300
- }
1301
- }
1302
-
1303
- type ProrationBehavior =
1304
- | 'always_invoice'
1305
- | 'create_prorations'
1306
- | 'none';
1307
- }
1308
-
1309
1023
  interface SubscriptionData {
1310
1024
  /**
1311
1025
  * Describes the period to bill for upon accepting the quote.
@@ -1337,11 +1051,6 @@ declare module 'stripe' {
1337
1051
  */
1338
1052
  end_behavior?: SubscriptionData.EndBehavior;
1339
1053
 
1340
- /**
1341
- * The id of a subscription schedule the quote will update. The quote will inherit the state of the subscription schedule, such as `phases`. Cannot be combined with other parameters.
1342
- */
1343
- from_schedule?: string;
1344
-
1345
1054
  /**
1346
1055
  * The id of a subscription that the quote will update. By default, the quote will contain the state of the subscription (such as line items, collection method and billing thresholds) unless overridden.
1347
1056
  */
@@ -1805,11 +1514,6 @@ declare module 'stripe' {
1805
1514
  */
1806
1515
  on_behalf_of?: Stripe.Emptyable<string>;
1807
1516
 
1808
- /**
1809
- * List representing phases of the Quote. Each phase can be customized to have different durations, prices, and coupons.
1810
- */
1811
- phases?: Array<QuoteUpdateParams.Phase>;
1812
-
1813
1517
  /**
1814
1518
  * When creating a subscription or subscription schedule, the specified configuration data will be used. There must be at least one line item with a recurring price for a subscription or subscription schedule to be created. A subscription schedule is created if `subscription_data[effective_date]` is present and in the future, otherwise a subscription is created.
1815
1519
  */
@@ -2730,287 +2434,6 @@ declare module 'stripe' {
2730
2434
  }
2731
2435
  }
2732
2436
 
2733
- interface Phase {
2734
- /**
2735
- * When specified as `reset`, the subscription will always start a new billing period when the quote is accepted.
2736
- */
2737
- billing_cycle_anchor?: 'reset';
2738
-
2739
- /**
2740
- * Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay the underlying subscription at the end of each billing cycle using the default source attached to the customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions and mark the subscription as `active`. Defaults to `charge_automatically` on creation.
2741
- */
2742
- collection_method?: Phase.CollectionMethod;
2743
-
2744
- /**
2745
- * A list of [Tax Rate](https://stripe.com/docs/api/tax_rates) ids. These Tax Rates will set the Subscription's [`default_tax_rates`](https://stripe.com/docs/api/subscriptions/create#create_subscription-default_tax_rates), which means they will be the Invoice's [`default_tax_rates`](https://stripe.com/docs/api/invoices/create#create_invoice-default_tax_rates) for any Invoices issued by the Subscription during this Phase.
2746
- */
2747
- default_tax_rates?: Stripe.Emptyable<Array<string>>;
2748
-
2749
- /**
2750
- * The coupons to redeem into discounts for the schedule phase. If not specified, inherits the discount from the subscription's customer. Pass an empty string to avoid inheriting any discounts.
2751
- */
2752
- discounts?: Stripe.Emptyable<Array<Phase.Discount>>;
2753
-
2754
- /**
2755
- * The date at which this phase of the quote ends. If set, `iterations` must not be set.
2756
- */
2757
- end_date?: number;
2758
-
2759
- /**
2760
- * All invoices will be billed using the specified settings.
2761
- */
2762
- invoice_settings?: Phase.InvoiceSettings;
2763
-
2764
- /**
2765
- * Integer representing the multiplier applied to the price interval. For example, `iterations=2` applied to a price with `interval=month` and `interval_count=3` results in a phase of duration `2 * 3 months = 6 months`. If set, `end_date` must not be set.
2766
- */
2767
- iterations?: number;
2768
-
2769
- /**
2770
- * A list of line items the customer is being quoted for within this phase. Each line item includes information about the product, the quantity, and the resulting cost.
2771
- */
2772
- line_items: Array<Phase.LineItem>;
2773
-
2774
- /**
2775
- * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that will declaratively set metadata on the subscription schedule's phases when the quote is accepted. After a quote has been finalized, this field can be updated by specifying an identical set of quote phases to what was on the quote originally, excluding changes in metadata and phases that are now in the past.
2776
- */
2777
- metadata?: Stripe.MetadataParam;
2778
-
2779
- /**
2780
- * If the update changes the current phase, indicates whether the changes should be prorated. The default value is `create_prorations`.
2781
- */
2782
- proration_behavior?: Phase.ProrationBehavior;
2783
-
2784
- /**
2785
- * If set to true the entire phase is counted as a trial and the customer will not be charged for any fees.
2786
- */
2787
- trial?: boolean;
2788
-
2789
- /**
2790
- * Sets the phase to trialing from the start date to this date. Must be before the phase end date, can not be combined with `trial`.
2791
- */
2792
- trial_end?: number;
2793
- }
2794
-
2795
- namespace Phase {
2796
- type CollectionMethod = 'charge_automatically' | 'send_invoice';
2797
-
2798
- interface Discount {
2799
- /**
2800
- * ID of the coupon to create a new discount for.
2801
- */
2802
- coupon?: string;
2803
-
2804
- /**
2805
- * ID of an existing discount on the object (or one of its ancestors) to reuse.
2806
- */
2807
- discount?: string;
2808
-
2809
- /**
2810
- * Details to determine how long the discount should be applied for.
2811
- */
2812
- discount_end?: Discount.DiscountEnd;
2813
-
2814
- /**
2815
- * ID of the promotion code to create a new discount for.
2816
- */
2817
- promotion_code?: string;
2818
- }
2819
-
2820
- namespace Discount {
2821
- interface DiscountEnd {
2822
- /**
2823
- * Time span for the redeemed discount.
2824
- */
2825
- duration?: DiscountEnd.Duration;
2826
-
2827
- /**
2828
- * A precise Unix timestamp for the discount to end. Must be in the future.
2829
- */
2830
- timestamp?: number;
2831
-
2832
- /**
2833
- * The type of calculation made to determine when the discount ends.
2834
- */
2835
- type: DiscountEnd.Type;
2836
- }
2837
-
2838
- namespace DiscountEnd {
2839
- interface Duration {
2840
- /**
2841
- * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
2842
- */
2843
- interval: Duration.Interval;
2844
-
2845
- /**
2846
- * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
2847
- */
2848
- interval_count: number;
2849
- }
2850
-
2851
- namespace Duration {
2852
- type Interval = 'day' | 'month' | 'week' | 'year';
2853
- }
2854
-
2855
- type Type = 'duration' | 'timestamp';
2856
- }
2857
- }
2858
-
2859
- interface InvoiceSettings {
2860
- /**
2861
- * Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `billing=charge_automatically`.
2862
- */
2863
- days_until_due?: number;
2864
- }
2865
-
2866
- interface LineItem {
2867
- /**
2868
- * The discounts applied to this line item.
2869
- */
2870
- discounts?: Stripe.Emptyable<Array<LineItem.Discount>>;
2871
-
2872
- /**
2873
- * The ID of the price object. One of `price` or `price_data` is required.
2874
- */
2875
- price?: string;
2876
-
2877
- /**
2878
- * Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
2879
- */
2880
- price_data?: LineItem.PriceData;
2881
-
2882
- /**
2883
- * The quantity of the line item.
2884
- */
2885
- quantity?: number;
2886
-
2887
- /**
2888
- * The tax rates which apply to the line item. When set, the `default_tax_rates` on the quote do not apply to this line item.
2889
- */
2890
- tax_rates?: Stripe.Emptyable<Array<string>>;
2891
- }
2892
-
2893
- namespace LineItem {
2894
- interface Discount {
2895
- /**
2896
- * ID of the coupon to create a new discount for.
2897
- */
2898
- coupon?: string;
2899
-
2900
- /**
2901
- * ID of an existing discount on the object (or one of its ancestors) to reuse.
2902
- */
2903
- discount?: string;
2904
-
2905
- /**
2906
- * Details to determine how long the discount should be applied for.
2907
- */
2908
- discount_end?: Discount.DiscountEnd;
2909
-
2910
- /**
2911
- * ID of the promotion code to create a new discount for.
2912
- */
2913
- promotion_code?: string;
2914
- }
2915
-
2916
- namespace Discount {
2917
- interface DiscountEnd {
2918
- /**
2919
- * Time span for the redeemed discount.
2920
- */
2921
- duration?: DiscountEnd.Duration;
2922
-
2923
- /**
2924
- * A precise Unix timestamp for the discount to end. Must be in the future.
2925
- */
2926
- timestamp?: number;
2927
-
2928
- /**
2929
- * The type of calculation made to determine when the discount ends.
2930
- */
2931
- type: DiscountEnd.Type;
2932
- }
2933
-
2934
- namespace DiscountEnd {
2935
- interface Duration {
2936
- /**
2937
- * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
2938
- */
2939
- interval: Duration.Interval;
2940
-
2941
- /**
2942
- * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
2943
- */
2944
- interval_count: number;
2945
- }
2946
-
2947
- namespace Duration {
2948
- type Interval = 'day' | 'month' | 'week' | 'year';
2949
- }
2950
-
2951
- type Type = 'duration' | 'timestamp';
2952
- }
2953
- }
2954
-
2955
- interface PriceData {
2956
- /**
2957
- * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
2958
- */
2959
- currency: string;
2960
-
2961
- /**
2962
- * The ID of the product that this price will belong to.
2963
- */
2964
- product: string;
2965
-
2966
- /**
2967
- * The recurring components of a price such as `interval` and `interval_count`.
2968
- */
2969
- recurring?: PriceData.Recurring;
2970
-
2971
- /**
2972
- * Only required if a [default tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
2973
- */
2974
- tax_behavior?: PriceData.TaxBehavior;
2975
-
2976
- /**
2977
- * A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge.
2978
- */
2979
- unit_amount?: number;
2980
-
2981
- /**
2982
- * Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.
2983
- */
2984
- unit_amount_decimal?: string;
2985
- }
2986
-
2987
- namespace PriceData {
2988
- interface Recurring {
2989
- /**
2990
- * Specifies billing frequency. Either `day`, `week`, `month` or `year`.
2991
- */
2992
- interval: Recurring.Interval;
2993
-
2994
- /**
2995
- * The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks).
2996
- */
2997
- interval_count?: number;
2998
- }
2999
-
3000
- namespace Recurring {
3001
- type Interval = 'day' | 'month' | 'week' | 'year';
3002
- }
3003
-
3004
- type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified';
3005
- }
3006
- }
3007
-
3008
- type ProrationBehavior =
3009
- | 'always_invoice'
3010
- | 'create_prorations'
3011
- | 'none';
3012
- }
3013
-
3014
2437
  interface SubscriptionData {
3015
2438
  /**
3016
2439
  * Describes the period to bill for upon accepting the quote.
@@ -299,6 +299,11 @@ declare module 'stripe' {
299
299
  */
300
300
  link?: PaymentMethodData.Link;
301
301
 
302
+ /**
303
+ * If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
304
+ */
305
+ mb_way?: PaymentMethodData.MbWay;
306
+
302
307
  /**
303
308
  * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
304
309
  */
@@ -636,6 +641,8 @@ declare module 'stripe' {
636
641
 
637
642
  interface Link {}
638
643
 
644
+ interface MbWay {}
645
+
639
646
  interface Mobilepay {}
640
647
 
641
648
  interface Multibanco {}
@@ -782,6 +789,7 @@ declare module 'stripe' {
782
789
  | 'klarna'
783
790
  | 'konbini'
784
791
  | 'link'
792
+ | 'mb_way'
785
793
  | 'mobilepay'
786
794
  | 'multibanco'
787
795
  | 'oxxo'
@@ -1591,6 +1599,11 @@ declare module 'stripe' {
1591
1599
  */
1592
1600
  link?: PaymentMethodData.Link;
1593
1601
 
1602
+ /**
1603
+ * If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
1604
+ */
1605
+ mb_way?: PaymentMethodData.MbWay;
1606
+
1594
1607
  /**
1595
1608
  * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
1596
1609
  */
@@ -1928,6 +1941,8 @@ declare module 'stripe' {
1928
1941
 
1929
1942
  interface Link {}
1930
1943
 
1944
+ interface MbWay {}
1945
+
1931
1946
  interface Mobilepay {}
1932
1947
 
1933
1948
  interface Multibanco {}
@@ -2074,6 +2089,7 @@ declare module 'stripe' {
2074
2089
  | 'klarna'
2075
2090
  | 'konbini'
2076
2091
  | 'link'
2092
+ | 'mb_way'
2077
2093
  | 'mobilepay'
2078
2094
  | 'multibanco'
2079
2095
  | 'oxxo'
@@ -2932,6 +2948,11 @@ declare module 'stripe' {
2932
2948
  */
2933
2949
  link?: PaymentMethodData.Link;
2934
2950
 
2951
+ /**
2952
+ * If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
2953
+ */
2954
+ mb_way?: PaymentMethodData.MbWay;
2955
+
2935
2956
  /**
2936
2957
  * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
2937
2958
  */
@@ -3269,6 +3290,8 @@ declare module 'stripe' {
3269
3290
 
3270
3291
  interface Link {}
3271
3292
 
3293
+ interface MbWay {}
3294
+
3272
3295
  interface Mobilepay {}
3273
3296
 
3274
3297
  interface Multibanco {}
@@ -3415,6 +3438,7 @@ declare module 'stripe' {
3415
3438
  | 'klarna'
3416
3439
  | 'konbini'
3417
3440
  | 'link'
3441
+ | 'mb_way'
3418
3442
  | 'mobilepay'
3419
3443
  | 'multibanco'
3420
3444
  | 'oxxo'