stripe 19.4.0-alpha.2 → 20.1.0-alpha.1
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 +96 -0
- package/OPENAPI_VERSION +1 -1
- package/VERSION +1 -1
- package/cjs/apiVersion.js +1 -1
- package/cjs/resources/BalanceTransfers.js +9 -0
- package/cjs/resources/Radar/AccountEvaluations.js +20 -0
- package/cjs/resources.js +6 -2
- package/cjs/stripe.core.js +1 -1
- package/cjs/utils.js +2 -1
- package/esm/apiVersion.js +1 -1
- package/esm/resources/BalanceTransfers.js +6 -0
- package/esm/resources/Radar/AccountEvaluations.js +17 -0
- package/esm/resources.js +3 -0
- package/esm/stripe.core.js +1 -1
- package/esm/utils.js +2 -1
- package/package.json +1 -1
- package/types/Accounts.d.ts +19 -1
- package/types/AccountsResource.d.ts +60 -18
- package/types/ApplicationFees.d.ts +4 -4
- package/types/BalanceTransfers.d.ts +122 -0
- package/types/BalanceTransfersResource.d.ts +87 -0
- package/types/BankAccounts.d.ts +2 -2
- package/types/Billing/Analytics/MeterUsageResource.d.ts +4 -4
- package/types/BillingPortal/Configurations.d.ts +5 -0
- package/types/Capital/FinancingOffers.d.ts +6 -6
- package/types/Capital/FinancingSummary.d.ts +7 -7
- package/types/Charges.d.ts +8 -1
- package/types/ChargesResource.d.ts +2757 -383
- package/types/Checkout/Sessions.d.ts +3 -3
- package/types/Checkout/SessionsResource.d.ts +3 -3
- package/types/ConfirmationTokens.d.ts +5 -2
- package/types/CustomerSessionsResource.d.ts +1 -1
- package/types/CustomersResource.d.ts +5 -0
- package/types/DelegatedCheckout/RequestedSessions.d.ts +4 -4
- package/types/EventTypes.d.ts +36 -0
- package/types/Events.d.ts +3 -0
- package/types/FinancialConnections/Accounts.d.ts +33 -0
- package/types/FinancialConnections/Sessions.d.ts +1 -1
- package/types/InvoicePaymentsResource.d.ts +5 -0
- package/types/Invoices.d.ts +1 -1
- package/types/InvoicesResource.d.ts +33 -0
- package/types/Issuing/Cards.d.ts +25 -0
- package/types/Mandates.d.ts +3 -3
- package/types/OrdersResource.d.ts +3177 -811
- package/types/PaymentAttemptRecords.d.ts +16 -6
- package/types/PaymentIntentAmountDetailsLineItems.d.ts +13 -7
- package/types/PaymentIntents.d.ts +27 -10
- package/types/PaymentIntentsResource.d.ts +16930 -8541
- package/types/PaymentMethods.d.ts +5 -2
- package/types/PaymentMethodsResource.d.ts +13 -0
- package/types/PaymentRecords.d.ts +16 -6
- package/types/QuotePreviewInvoices.d.ts +1 -1
- package/types/QuotePreviewSubscriptionSchedules.d.ts +16 -16
- package/types/Quotes.d.ts +53 -53
- package/types/QuotesResource.d.ts +48 -48
- package/types/Radar/AccountEvaluations.d.ts +88 -0
- package/types/Radar/AccountEvaluationsResource.d.ts +148 -0
- package/types/Refunds.d.ts +18 -0
- package/types/SetupAttempts.d.ts +3 -1
- package/types/SetupIntents.d.ts +3 -3
- package/types/SetupIntentsResource.d.ts +12 -9
- package/types/SubscriptionSchedules.d.ts +16 -16
- package/types/SubscriptionSchedulesResource.d.ts +35 -2
- package/types/Subscriptions.d.ts +16 -16
- package/types/Tax/Associations.d.ts +1 -1
- package/types/Tax/RegistrationsResource.d.ts +1 -1
- package/types/Terminal/ConfigurationsResource.d.ts +18 -18
- package/types/TestHelpers/ConfirmationTokensResource.d.ts +1 -0
- package/types/TestHelpers/Issuing/AuthorizationsResource.d.ts +27 -0
- package/types/TokensResource.d.ts +18 -18
- package/types/WebhookEndpointsResource.d.ts +8 -1
- package/types/apiVersion.d.ts +1 -1
- package/types/index.d.ts +6 -0
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
namespace Radar {
|
|
6
|
+
/**
|
|
7
|
+
* Account Evaluation resource returned by the Radar Account Evaluations API.
|
|
8
|
+
*/
|
|
9
|
+
interface AccountEvaluation {
|
|
10
|
+
/**
|
|
11
|
+
* Unique identifier for the object.
|
|
12
|
+
*/
|
|
13
|
+
id: string;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* String representing the object's type. Objects of the same type share the same value.
|
|
17
|
+
*/
|
|
18
|
+
object: 'radar.account_evaluation';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Time at which the object was created. Measured in seconds since the Unix epoch.
|
|
22
|
+
*/
|
|
23
|
+
created_at: number;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* The ID of the Stripe customer the account evaluation is associated with.
|
|
27
|
+
*/
|
|
28
|
+
customer: string;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* The list of events that were reported for this Account Evaluation object via the report API.
|
|
32
|
+
*/
|
|
33
|
+
events: Array<AccountEvaluation.Event> | null;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
37
|
+
*/
|
|
38
|
+
livemode: boolean;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* A hash of signal objects providing Radar's evaluation for the lifecycle event.
|
|
42
|
+
*/
|
|
43
|
+
signals: AccountEvaluation.Signals | null;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* The type of evaluation returned, based on the user's request.
|
|
47
|
+
*/
|
|
48
|
+
type: string;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
namespace AccountEvaluation {
|
|
52
|
+
interface Event {
|
|
53
|
+
/**
|
|
54
|
+
* Time at which the event occurred. Measured in seconds since the Unix epoch.
|
|
55
|
+
*/
|
|
56
|
+
occurred_at: number;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* The type of event that occurred.
|
|
60
|
+
*/
|
|
61
|
+
type: string;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
interface Signals {
|
|
65
|
+
account_sharing?: Signals.AccountSharing;
|
|
66
|
+
|
|
67
|
+
multi_accounting?: Signals.MultiAccounting;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
namespace Signals {
|
|
71
|
+
interface AccountSharing {
|
|
72
|
+
/**
|
|
73
|
+
* Score for this signal (float between 0.0-100.0).
|
|
74
|
+
*/
|
|
75
|
+
score: number;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
interface MultiAccounting {
|
|
79
|
+
/**
|
|
80
|
+
* Score for this signal (float between 0.0-100.0).
|
|
81
|
+
*/
|
|
82
|
+
score: number;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
namespace Radar {
|
|
6
|
+
interface AccountEvaluationCreateParams {
|
|
7
|
+
/**
|
|
8
|
+
* The type of evaluation requested.
|
|
9
|
+
*/
|
|
10
|
+
type: AccountEvaluationCreateParams.Type;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Specifies which fields in the response should be expanded.
|
|
14
|
+
*/
|
|
15
|
+
expand?: Array<string>;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Event payload for login_initiated.
|
|
19
|
+
*/
|
|
20
|
+
login_initiated?: AccountEvaluationCreateParams.LoginInitiated;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Event payload for registration_initiated.
|
|
24
|
+
*/
|
|
25
|
+
registration_initiated?: AccountEvaluationCreateParams.RegistrationInitiated;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
namespace AccountEvaluationCreateParams {
|
|
29
|
+
interface LoginInitiated {
|
|
30
|
+
/**
|
|
31
|
+
* Client device metadata details (e.g., radar_session).
|
|
32
|
+
*/
|
|
33
|
+
client_device_metadata_details: LoginInitiated.ClientDeviceMetadataDetails;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Stripe customer ID
|
|
37
|
+
*/
|
|
38
|
+
customer: string;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
namespace LoginInitiated {
|
|
42
|
+
interface ClientDeviceMetadataDetails {
|
|
43
|
+
/**
|
|
44
|
+
* ID for the Radar Session associated with the account evaluation.
|
|
45
|
+
*/
|
|
46
|
+
radar_session: string;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
interface RegistrationInitiated {
|
|
51
|
+
/**
|
|
52
|
+
* Client device metadata details (e.g., radar_session).
|
|
53
|
+
*/
|
|
54
|
+
client_device_metadata_details: RegistrationInitiated.ClientDeviceMetadataDetails;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Stripe customer ID
|
|
58
|
+
*/
|
|
59
|
+
customer?: string;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Customer data
|
|
63
|
+
*/
|
|
64
|
+
customer_data?: RegistrationInitiated.CustomerData;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
namespace RegistrationInitiated {
|
|
68
|
+
interface ClientDeviceMetadataDetails {
|
|
69
|
+
/**
|
|
70
|
+
* ID for the Radar Session associated with the account evaluation.
|
|
71
|
+
*/
|
|
72
|
+
radar_session: string;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
interface CustomerData {
|
|
76
|
+
/**
|
|
77
|
+
* Customer email
|
|
78
|
+
*/
|
|
79
|
+
email?: string;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Customer name
|
|
83
|
+
*/
|
|
84
|
+
name?: string;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Customer phone
|
|
88
|
+
*/
|
|
89
|
+
phone?: string;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
type Type = 'login_initiated' | 'registration_initiated';
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
interface AccountEvaluationRetrieveParams {
|
|
97
|
+
/**
|
|
98
|
+
* Specifies which fields in the response should be expanded.
|
|
99
|
+
*/
|
|
100
|
+
expand?: Array<string>;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
interface AccountEvaluationUpdateParams {
|
|
104
|
+
/**
|
|
105
|
+
* The type of event to report.
|
|
106
|
+
*/
|
|
107
|
+
type: 'registration_succeeded';
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Specifies which fields in the response should be expanded.
|
|
111
|
+
*/
|
|
112
|
+
expand?: Array<string>;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
class AccountEvaluationsResource {
|
|
116
|
+
/**
|
|
117
|
+
* Creates a new AccountEvaluation object.
|
|
118
|
+
*/
|
|
119
|
+
create(
|
|
120
|
+
params: AccountEvaluationCreateParams,
|
|
121
|
+
options?: RequestOptions
|
|
122
|
+
): Promise<Stripe.Response<Stripe.Radar.AccountEvaluation>>;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Retrieves an AccountEvaluation object.
|
|
126
|
+
*/
|
|
127
|
+
retrieve(
|
|
128
|
+
id: string,
|
|
129
|
+
params?: AccountEvaluationRetrieveParams,
|
|
130
|
+
options?: RequestOptions
|
|
131
|
+
): Promise<Stripe.Response<Stripe.Radar.AccountEvaluation>>;
|
|
132
|
+
retrieve(
|
|
133
|
+
id: string,
|
|
134
|
+
options?: RequestOptions
|
|
135
|
+
): Promise<Stripe.Response<Stripe.Radar.AccountEvaluation>>;
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Reports an event on an AccountEvaluation object.
|
|
139
|
+
*/
|
|
140
|
+
update(
|
|
141
|
+
id: string,
|
|
142
|
+
params: AccountEvaluationUpdateParams,
|
|
143
|
+
options?: RequestOptions
|
|
144
|
+
): Promise<Stripe.Response<Stripe.Radar.AccountEvaluation>>;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
package/types/Refunds.d.ts
CHANGED
|
@@ -154,6 +154,8 @@ declare module 'stripe' {
|
|
|
154
154
|
|
|
155
155
|
klarna?: DestinationDetails.Klarna;
|
|
156
156
|
|
|
157
|
+
mb_way?: DestinationDetails.MbWay;
|
|
158
|
+
|
|
157
159
|
multibanco?: DestinationDetails.Multibanco;
|
|
158
160
|
|
|
159
161
|
mx_bank_transfer?: DestinationDetails.MxBankTransfer;
|
|
@@ -176,6 +178,8 @@ declare module 'stripe' {
|
|
|
176
178
|
|
|
177
179
|
th_bank_transfer?: DestinationDetails.ThBankTransfer;
|
|
178
180
|
|
|
181
|
+
twint?: DestinationDetails.Twint;
|
|
182
|
+
|
|
179
183
|
/**
|
|
180
184
|
* The type of transaction-specific details of the payment method used in the refund (e.g., `card`). An additional hash is included on `destination_details` with a name matching this value. It contains information specific to the refund transaction.
|
|
181
185
|
*/
|
|
@@ -323,6 +327,18 @@ declare module 'stripe' {
|
|
|
323
327
|
|
|
324
328
|
interface Klarna {}
|
|
325
329
|
|
|
330
|
+
interface MbWay {
|
|
331
|
+
/**
|
|
332
|
+
* The reference assigned to the refund.
|
|
333
|
+
*/
|
|
334
|
+
reference: string | null;
|
|
335
|
+
|
|
336
|
+
/**
|
|
337
|
+
* Status of the reference on the refund. This can be `pending`, `available` or `unavailable`.
|
|
338
|
+
*/
|
|
339
|
+
reference_status: string | null;
|
|
340
|
+
}
|
|
341
|
+
|
|
326
342
|
interface Multibanco {
|
|
327
343
|
/**
|
|
328
344
|
* The reference assigned to the refund.
|
|
@@ -405,6 +421,8 @@ declare module 'stripe' {
|
|
|
405
421
|
reference_status: string | null;
|
|
406
422
|
}
|
|
407
423
|
|
|
424
|
+
interface Twint {}
|
|
425
|
+
|
|
408
426
|
interface UsBankTransfer {
|
|
409
427
|
/**
|
|
410
428
|
* The reference assigned to the refund.
|
package/types/SetupAttempts.d.ts
CHANGED
|
@@ -439,7 +439,7 @@ declare module 'stripe' {
|
|
|
439
439
|
|
|
440
440
|
interface Ideal {
|
|
441
441
|
/**
|
|
442
|
-
* The customer's bank. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
|
|
442
|
+
* The customer's bank. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `finom`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
|
|
443
443
|
*/
|
|
444
444
|
bank: Ideal.Bank | null;
|
|
445
445
|
|
|
@@ -476,6 +476,7 @@ declare module 'stripe' {
|
|
|
476
476
|
| 'asn_bank'
|
|
477
477
|
| 'bunq'
|
|
478
478
|
| 'buut'
|
|
479
|
+
| 'finom'
|
|
479
480
|
| 'handelsbanken'
|
|
480
481
|
| 'ing'
|
|
481
482
|
| 'knab'
|
|
@@ -496,6 +497,7 @@ declare module 'stripe' {
|
|
|
496
497
|
| 'BITSNL2A'
|
|
497
498
|
| 'BUNQNL2A'
|
|
498
499
|
| 'BUUTNL2A'
|
|
500
|
+
| 'FNOMNL22'
|
|
499
501
|
| 'FVLBNL22'
|
|
500
502
|
| 'HANDNL2A'
|
|
501
503
|
| 'INGBNL2A'
|
package/types/SetupIntents.d.ts
CHANGED
|
@@ -944,7 +944,7 @@ declare module 'stripe' {
|
|
|
944
944
|
amount: number | null;
|
|
945
945
|
|
|
946
946
|
/**
|
|
947
|
-
* The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively.
|
|
947
|
+
* The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively. Defaults to `maximum`.
|
|
948
948
|
*/
|
|
949
949
|
amount_type: MandateOptions.AmountType | null;
|
|
950
950
|
|
|
@@ -954,7 +954,7 @@ declare module 'stripe' {
|
|
|
954
954
|
end_date: string | null;
|
|
955
955
|
|
|
956
956
|
/**
|
|
957
|
-
* The periodicity at which payments will be collected.
|
|
957
|
+
* The periodicity at which payments will be collected. Defaults to `adhoc`.
|
|
958
958
|
*/
|
|
959
959
|
payment_schedule: MandateOptions.PaymentSchedule | null;
|
|
960
960
|
|
|
@@ -964,7 +964,7 @@ declare module 'stripe' {
|
|
|
964
964
|
payments_per_period: number | null;
|
|
965
965
|
|
|
966
966
|
/**
|
|
967
|
-
* The purpose for which payments are made.
|
|
967
|
+
* The purpose for which payments are made. Has a default value based on your merchant category code.
|
|
968
968
|
*/
|
|
969
969
|
purpose: MandateOptions.Purpose | null;
|
|
970
970
|
|
|
@@ -783,6 +783,7 @@ declare module 'stripe' {
|
|
|
783
783
|
| 'asn_bank'
|
|
784
784
|
| 'bunq'
|
|
785
785
|
| 'buut'
|
|
786
|
+
| 'finom'
|
|
786
787
|
| 'handelsbanken'
|
|
787
788
|
| 'ing'
|
|
788
789
|
| 'knab'
|
|
@@ -1649,7 +1650,7 @@ declare module 'stripe' {
|
|
|
1649
1650
|
amount?: number;
|
|
1650
1651
|
|
|
1651
1652
|
/**
|
|
1652
|
-
* The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively.
|
|
1653
|
+
* The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively. Defaults to `maximum`.
|
|
1653
1654
|
*/
|
|
1654
1655
|
amount_type?: MandateOptions.AmountType;
|
|
1655
1656
|
|
|
@@ -1659,7 +1660,7 @@ declare module 'stripe' {
|
|
|
1659
1660
|
end_date?: string;
|
|
1660
1661
|
|
|
1661
1662
|
/**
|
|
1662
|
-
* The periodicity at which payments will be collected.
|
|
1663
|
+
* The periodicity at which payments will be collected. Defaults to `adhoc`.
|
|
1663
1664
|
*/
|
|
1664
1665
|
payment_schedule?: MandateOptions.PaymentSchedule;
|
|
1665
1666
|
|
|
@@ -1669,7 +1670,7 @@ declare module 'stripe' {
|
|
|
1669
1670
|
payments_per_period?: number;
|
|
1670
1671
|
|
|
1671
1672
|
/**
|
|
1672
|
-
* The purpose for which payments are made.
|
|
1673
|
+
* The purpose for which payments are made. Has a default value based on your merchant category code.
|
|
1673
1674
|
*/
|
|
1674
1675
|
purpose?: MandateOptions.Purpose;
|
|
1675
1676
|
|
|
@@ -2617,6 +2618,7 @@ declare module 'stripe' {
|
|
|
2617
2618
|
| 'asn_bank'
|
|
2618
2619
|
| 'bunq'
|
|
2619
2620
|
| 'buut'
|
|
2621
|
+
| 'finom'
|
|
2620
2622
|
| 'handelsbanken'
|
|
2621
2623
|
| 'ing'
|
|
2622
2624
|
| 'knab'
|
|
@@ -3483,7 +3485,7 @@ declare module 'stripe' {
|
|
|
3483
3485
|
amount?: number;
|
|
3484
3486
|
|
|
3485
3487
|
/**
|
|
3486
|
-
* The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively.
|
|
3488
|
+
* The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively. Defaults to `maximum`.
|
|
3487
3489
|
*/
|
|
3488
3490
|
amount_type?: MandateOptions.AmountType;
|
|
3489
3491
|
|
|
@@ -3493,7 +3495,7 @@ declare module 'stripe' {
|
|
|
3493
3495
|
end_date?: string;
|
|
3494
3496
|
|
|
3495
3497
|
/**
|
|
3496
|
-
* The periodicity at which payments will be collected.
|
|
3498
|
+
* The periodicity at which payments will be collected. Defaults to `adhoc`.
|
|
3497
3499
|
*/
|
|
3498
3500
|
payment_schedule?: MandateOptions.PaymentSchedule;
|
|
3499
3501
|
|
|
@@ -3503,7 +3505,7 @@ declare module 'stripe' {
|
|
|
3503
3505
|
payments_per_period?: number;
|
|
3504
3506
|
|
|
3505
3507
|
/**
|
|
3506
|
-
* The purpose for which payments are made.
|
|
3508
|
+
* The purpose for which payments are made. Has a default value based on your merchant category code.
|
|
3507
3509
|
*/
|
|
3508
3510
|
purpose?: MandateOptions.Purpose;
|
|
3509
3511
|
|
|
@@ -4433,6 +4435,7 @@ declare module 'stripe' {
|
|
|
4433
4435
|
| 'asn_bank'
|
|
4434
4436
|
| 'bunq'
|
|
4435
4437
|
| 'buut'
|
|
4438
|
+
| 'finom'
|
|
4436
4439
|
| 'handelsbanken'
|
|
4437
4440
|
| 'ing'
|
|
4438
4441
|
| 'knab'
|
|
@@ -5299,7 +5302,7 @@ declare module 'stripe' {
|
|
|
5299
5302
|
amount?: number;
|
|
5300
5303
|
|
|
5301
5304
|
/**
|
|
5302
|
-
* The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively.
|
|
5305
|
+
* The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively. Defaults to `maximum`.
|
|
5303
5306
|
*/
|
|
5304
5307
|
amount_type?: MandateOptions.AmountType;
|
|
5305
5308
|
|
|
@@ -5309,7 +5312,7 @@ declare module 'stripe' {
|
|
|
5309
5312
|
end_date?: string;
|
|
5310
5313
|
|
|
5311
5314
|
/**
|
|
5312
|
-
* The periodicity at which payments will be collected.
|
|
5315
|
+
* The periodicity at which payments will be collected. Defaults to `adhoc`.
|
|
5313
5316
|
*/
|
|
5314
5317
|
payment_schedule?: MandateOptions.PaymentSchedule;
|
|
5315
5318
|
|
|
@@ -5319,7 +5322,7 @@ declare module 'stripe' {
|
|
|
5319
5322
|
payments_per_period?: number;
|
|
5320
5323
|
|
|
5321
5324
|
/**
|
|
5322
|
-
* The purpose for which payments are made.
|
|
5325
|
+
* The purpose for which payments are made. Has a default value based on your merchant category code.
|
|
5323
5326
|
*/
|
|
5324
5327
|
purpose?: MandateOptions.Purpose;
|
|
5325
5328
|
|
|
@@ -177,19 +177,19 @@ declare module 'stripe' {
|
|
|
177
177
|
applies_to: Array<BillingSchedule.AppliesTo> | null;
|
|
178
178
|
|
|
179
179
|
/**
|
|
180
|
-
* Specifies the billing period.
|
|
180
|
+
* Specifies the start of the billing period.
|
|
181
181
|
*/
|
|
182
|
-
|
|
182
|
+
bill_from?: BillingSchedule.BillFrom | null;
|
|
183
183
|
|
|
184
184
|
/**
|
|
185
|
-
*
|
|
185
|
+
* Specifies the end of billing period.
|
|
186
186
|
*/
|
|
187
|
-
|
|
187
|
+
bill_until: BillingSchedule.BillUntil;
|
|
188
188
|
|
|
189
189
|
/**
|
|
190
|
-
*
|
|
190
|
+
* Unique identifier for the billing schedule.
|
|
191
191
|
*/
|
|
192
|
-
|
|
192
|
+
key: string;
|
|
193
193
|
}
|
|
194
194
|
|
|
195
195
|
namespace BillingSchedule {
|
|
@@ -279,6 +279,11 @@ declare module 'stripe' {
|
|
|
279
279
|
}
|
|
280
280
|
|
|
281
281
|
interface BillUntil {
|
|
282
|
+
/**
|
|
283
|
+
* Use an index to specify the position of an amendment to end prebilling with.
|
|
284
|
+
*/
|
|
285
|
+
amendment_end?: BillUntil.AmendmentEnd | null;
|
|
286
|
+
|
|
282
287
|
/**
|
|
283
288
|
* The timestamp the billing schedule will apply until.
|
|
284
289
|
*/
|
|
@@ -289,6 +294,11 @@ declare module 'stripe' {
|
|
|
289
294
|
*/
|
|
290
295
|
duration: BillUntil.Duration | null;
|
|
291
296
|
|
|
297
|
+
/**
|
|
298
|
+
* Lets you bill the period ending at a particular Quote line.
|
|
299
|
+
*/
|
|
300
|
+
line_ends_at?: BillUntil.LineEndsAt | null;
|
|
301
|
+
|
|
292
302
|
/**
|
|
293
303
|
* If specified, the billing schedule will apply until the specified timestamp.
|
|
294
304
|
*/
|
|
@@ -298,16 +308,6 @@ declare module 'stripe' {
|
|
|
298
308
|
* Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`.
|
|
299
309
|
*/
|
|
300
310
|
type: BillUntil.Type;
|
|
301
|
-
|
|
302
|
-
/**
|
|
303
|
-
* Use an index to specify the position of an amendment to end prebilling with.
|
|
304
|
-
*/
|
|
305
|
-
amendment_end?: BillUntil.AmendmentEnd | null;
|
|
306
|
-
|
|
307
|
-
/**
|
|
308
|
-
* Lets you bill the period ending at a particular Quote line.
|
|
309
|
-
*/
|
|
310
|
-
line_ends_at?: BillUntil.LineEndsAt | null;
|
|
311
311
|
}
|
|
312
312
|
|
|
313
313
|
namespace BillUntil {
|
|
@@ -1060,8 +1060,8 @@ declare module 'stripe' {
|
|
|
1060
1060
|
/**
|
|
1061
1061
|
* Sets the billing schedules for the subscription schedule.
|
|
1062
1062
|
*/
|
|
1063
|
-
billing_schedules?:
|
|
1064
|
-
SubscriptionScheduleUpdateParams.BillingSchedule
|
|
1063
|
+
billing_schedules?: Stripe.Emptyable<
|
|
1064
|
+
Array<SubscriptionScheduleUpdateParams.BillingSchedule>
|
|
1065
1065
|
>;
|
|
1066
1066
|
|
|
1067
1067
|
/**
|
|
@@ -2176,6 +2176,11 @@ declare module 'stripe' {
|
|
|
2176
2176
|
* Settings related to subscription trials.
|
|
2177
2177
|
*/
|
|
2178
2178
|
trial_settings?: Amendment.TrialSettings;
|
|
2179
|
+
|
|
2180
|
+
/**
|
|
2181
|
+
* Actions to apply to the billing schedules.
|
|
2182
|
+
*/
|
|
2183
|
+
billing_schedules_actions?: Array<Amendment.BillingSchedulesAction>;
|
|
2179
2184
|
}
|
|
2180
2185
|
|
|
2181
2186
|
namespace Amendment {
|
|
@@ -2285,6 +2290,34 @@ declare module 'stripe' {
|
|
|
2285
2290
|
|
|
2286
2291
|
type BillingCycleAnchor = 'amendment_start' | 'automatic';
|
|
2287
2292
|
|
|
2293
|
+
interface BillingSchedulesAction {
|
|
2294
|
+
/**
|
|
2295
|
+
* Specify which subscription items the billing schedule applies to.
|
|
2296
|
+
*/
|
|
2297
|
+
applies_to?: Array<BillingSchedulesAction.AppliesTo>;
|
|
2298
|
+
|
|
2299
|
+
/**
|
|
2300
|
+
* Select the action.
|
|
2301
|
+
*/
|
|
2302
|
+
type: BillingSchedulesAction.Type;
|
|
2303
|
+
}
|
|
2304
|
+
|
|
2305
|
+
namespace BillingSchedulesAction {
|
|
2306
|
+
interface AppliesTo {
|
|
2307
|
+
/**
|
|
2308
|
+
* The ID of the price object.
|
|
2309
|
+
*/
|
|
2310
|
+
price?: string;
|
|
2311
|
+
|
|
2312
|
+
/**
|
|
2313
|
+
* Controls which subscription items the billing schedule applies to.
|
|
2314
|
+
*/
|
|
2315
|
+
type: 'price';
|
|
2316
|
+
}
|
|
2317
|
+
|
|
2318
|
+
type Type = 'remove' | 'set';
|
|
2319
|
+
}
|
|
2320
|
+
|
|
2288
2321
|
interface DiscountAction {
|
|
2289
2322
|
/**
|
|
2290
2323
|
* Details of the discount to add.
|
package/types/Subscriptions.d.ts
CHANGED
|
@@ -364,19 +364,19 @@ declare module 'stripe' {
|
|
|
364
364
|
applies_to: Array<BillingSchedule.AppliesTo> | null;
|
|
365
365
|
|
|
366
366
|
/**
|
|
367
|
-
* Specifies the billing period.
|
|
367
|
+
* Specifies the start of the billing period.
|
|
368
368
|
*/
|
|
369
|
-
|
|
369
|
+
bill_from?: BillingSchedule.BillFrom | null;
|
|
370
370
|
|
|
371
371
|
/**
|
|
372
|
-
*
|
|
372
|
+
* Specifies the end of billing period.
|
|
373
373
|
*/
|
|
374
|
-
|
|
374
|
+
bill_until: BillingSchedule.BillUntil;
|
|
375
375
|
|
|
376
376
|
/**
|
|
377
|
-
*
|
|
377
|
+
* Unique identifier for the billing schedule.
|
|
378
378
|
*/
|
|
379
|
-
|
|
379
|
+
key: string;
|
|
380
380
|
}
|
|
381
381
|
|
|
382
382
|
namespace BillingSchedule {
|
|
@@ -466,6 +466,11 @@ declare module 'stripe' {
|
|
|
466
466
|
}
|
|
467
467
|
|
|
468
468
|
interface BillUntil {
|
|
469
|
+
/**
|
|
470
|
+
* Use an index to specify the position of an amendment to end prebilling with.
|
|
471
|
+
*/
|
|
472
|
+
amendment_end?: BillUntil.AmendmentEnd | null;
|
|
473
|
+
|
|
469
474
|
/**
|
|
470
475
|
* The timestamp the billing schedule will apply until.
|
|
471
476
|
*/
|
|
@@ -476,6 +481,11 @@ declare module 'stripe' {
|
|
|
476
481
|
*/
|
|
477
482
|
duration: BillUntil.Duration | null;
|
|
478
483
|
|
|
484
|
+
/**
|
|
485
|
+
* Lets you bill the period ending at a particular Quote line.
|
|
486
|
+
*/
|
|
487
|
+
line_ends_at?: BillUntil.LineEndsAt | null;
|
|
488
|
+
|
|
479
489
|
/**
|
|
480
490
|
* If specified, the billing schedule will apply until the specified timestamp.
|
|
481
491
|
*/
|
|
@@ -485,16 +495,6 @@ declare module 'stripe' {
|
|
|
485
495
|
* Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`.
|
|
486
496
|
*/
|
|
487
497
|
type: BillUntil.Type;
|
|
488
|
-
|
|
489
|
-
/**
|
|
490
|
-
* Use an index to specify the position of an amendment to end prebilling with.
|
|
491
|
-
*/
|
|
492
|
-
amendment_end?: BillUntil.AmendmentEnd | null;
|
|
493
|
-
|
|
494
|
-
/**
|
|
495
|
-
* Lets you bill the period ending at a particular Quote line.
|
|
496
|
-
*/
|
|
497
|
-
line_ends_at?: BillUntil.LineEndsAt | null;
|
|
498
498
|
}
|
|
499
499
|
|
|
500
500
|
namespace BillUntil {
|
|
@@ -2338,7 +2338,7 @@ declare module 'stripe' {
|
|
|
2338
2338
|
namespace Us {
|
|
2339
2339
|
interface LocalAmusementTax {
|
|
2340
2340
|
/**
|
|
2341
|
-
* A [FIPS code](https://www.census.gov/library/reference/code-lists/ansi.html) representing the local jurisdiction. Supported FIPS codes are: `14000` (Chicago), `06613` (Bloomington), `21696` (East Dundee), `24582` (Evanston), `45421` (Lynwood), `48892` (Midlothian), `64343` (River Grove), and `68081` (Schiller Park).
|
|
2341
|
+
* A [FIPS code](https://www.census.gov/library/reference/code-lists/ansi.html) representing the local jurisdiction. Supported FIPS codes are: `14000` (Chicago), `02154` (Arlington Heights), `06613` (Bloomington), `10906` (Campton Hills), `21696` (East Dundee), `24582` (Evanston), `45421` (Lynwood), `48892` (Midlothian), `64343` (River Grove), and `68081` (Schiller Park).
|
|
2342
2342
|
*/
|
|
2343
2343
|
jurisdiction: string;
|
|
2344
2344
|
}
|