stripe 9.0.0 → 9.3.0
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 +35 -0
- package/VERSION +1 -1
- package/lib/resources/Apps/Secrets.js +31 -0
- package/lib/resources/Customers.js +5 -0
- package/lib/resources/FinancialConnections/Accounts.js +12 -0
- package/lib/resources/TestHelpers/Treasury/InboundTransfers.js +25 -0
- package/lib/resources/TestHelpers/Treasury/OutboundPayments.js +25 -0
- package/lib/resources/TestHelpers/Treasury/OutboundTransfers.js +25 -0
- package/lib/resources/TestHelpers/Treasury/ReceivedCredits.js +15 -0
- package/lib/resources/TestHelpers/Treasury/ReceivedDebits.js +15 -0
- package/lib/resources/Treasury/CreditReversals.js +26 -0
- package/lib/resources/Treasury/DebitReversals.js +26 -0
- package/lib/resources/Treasury/FinancialAccounts.js +41 -0
- package/lib/resources/Treasury/InboundTransfers.js +31 -0
- package/lib/resources/Treasury/OutboundPayments.js +31 -0
- package/lib/resources/Treasury/OutboundTransfers.js +31 -0
- package/lib/resources/Treasury/ReceivedCredits.js +21 -0
- package/lib/resources/Treasury/ReceivedDebits.js +21 -0
- package/lib/resources/Treasury/TransactionEntries.js +21 -0
- package/lib/resources/Treasury/Transactions.js +21 -0
- package/lib/resources.js +22 -0
- package/package.json +1 -1
- package/types/2020-08-27/Accounts.d.ts +5 -5
- package/types/2020-08-27/Apps/Secrets.d.ts +241 -0
- package/types/2020-08-27/BillingPortal/Configurations.d.ts +1 -1
- package/types/2020-08-27/BillingPortal/Sessions.d.ts +1 -1
- package/types/2020-08-27/Charges.d.ts +8 -0
- package/types/2020-08-27/Checkout/Sessions.d.ts +51 -3
- package/types/2020-08-27/Customers.d.ts +24 -0
- package/types/2020-08-27/Discounts.d.ts +4 -4
- package/types/2020-08-27/FinancialConnections/Accounts.d.ts +63 -0
- package/types/2020-08-27/Invoices.d.ts +3 -0
- package/types/2020-08-27/Issuing/Authorizations.d.ts +22 -0
- package/types/2020-08-27/Issuing/Cards.d.ts +7 -0
- package/types/2020-08-27/Issuing/Disputes.d.ts +29 -0
- package/types/2020-08-27/Issuing/Transactions.d.ts +17 -0
- package/types/2020-08-27/LineItems.d.ts +2 -3
- package/types/2020-08-27/Mandates.d.ts +4 -0
- package/types/2020-08-27/Orders.d.ts +84 -4
- package/types/2020-08-27/PaymentIntents.d.ts +332 -2
- package/types/2020-08-27/PaymentLinks.d.ts +167 -0
- package/types/2020-08-27/PaymentMethods.d.ts +73 -0
- package/types/2020-08-27/PromotionCodes.d.ts +2 -2
- package/types/2020-08-27/Quotes.d.ts +6 -9
- package/types/2020-08-27/Refunds.d.ts +1 -1
- package/types/2020-08-27/SetupAttempts.d.ts +4 -0
- package/types/2020-08-27/SetupIntents.d.ts +157 -0
- package/types/2020-08-27/SubscriptionSchedules.d.ts +15 -0
- package/types/2020-08-27/Subscriptions.d.ts +41 -2
- package/types/2020-08-27/Terminal/Configurations.d.ts +63 -0
- package/types/2020-08-27/TestHelpers/Treasury/InboundTransfers.d.ts +108 -0
- package/types/2020-08-27/TestHelpers/Treasury/OutboundPayments.d.ts +105 -0
- package/types/2020-08-27/TestHelpers/Treasury/OutboundTransfers.d.ts +105 -0
- package/types/2020-08-27/TestHelpers/Treasury/ReceivedCredits.d.ts +93 -0
- package/types/2020-08-27/TestHelpers/Treasury/ReceivedDebits.d.ts +91 -0
- package/types/2020-08-27/Tokens.d.ts +2 -2
- package/types/2020-08-27/Treasury/CreditReversals.d.ts +168 -0
- package/types/2020-08-27/Treasury/DebitReversals.d.ts +187 -0
- package/types/2020-08-27/Treasury/FinancialAccountFeatures.d.ts +622 -0
- package/types/2020-08-27/Treasury/FinancialAccounts.d.ts +833 -0
- package/types/2020-08-27/Treasury/InboundTransfers.d.ts +349 -0
- package/types/2020-08-27/Treasury/OutboundPayments.d.ts +550 -0
- package/types/2020-08-27/Treasury/OutboundTransfers.d.ts +385 -0
- package/types/2020-08-27/Treasury/ReceivedCredits.d.ts +303 -0
- package/types/2020-08-27/Treasury/ReceivedDebits.d.ts +231 -0
- package/types/2020-08-27/Treasury/TransactionEntries.d.ts +257 -0
- package/types/2020-08-27/Treasury/Transactions.d.ts +268 -0
- package/types/2020-08-27/WebhookEndpoints.d.ts +62 -2
- package/types/2020-08-27/index.d.ts +39 -0
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
namespace Apps {
|
|
6
|
+
/**
|
|
7
|
+
* The Secret object.
|
|
8
|
+
*/
|
|
9
|
+
interface Secret {
|
|
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: 'apps.secret';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Time at which the object was created. Measured in seconds since the Unix epoch.
|
|
22
|
+
*/
|
|
23
|
+
created: number;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* If true, indicates that this secret has been deleted
|
|
27
|
+
*/
|
|
28
|
+
deleted?: boolean;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
32
|
+
*/
|
|
33
|
+
livemode: boolean;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* A name for the secret that's unique within the scope.
|
|
37
|
+
*/
|
|
38
|
+
name: string;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* The plaintext secret value to be stored.
|
|
42
|
+
*/
|
|
43
|
+
payload: string | null;
|
|
44
|
+
|
|
45
|
+
scope: Secret.Scope;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
namespace Secret {
|
|
49
|
+
interface Scope {
|
|
50
|
+
/**
|
|
51
|
+
* The secret scope type.
|
|
52
|
+
*/
|
|
53
|
+
type: Scope.Type;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* The user ID, if type is set to "user"
|
|
57
|
+
*/
|
|
58
|
+
user?: string;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
namespace Scope {
|
|
62
|
+
type Type = 'account' | 'user';
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
interface SecretCreateParams {
|
|
67
|
+
/**
|
|
68
|
+
* A name for the secret that's unique within the scope.
|
|
69
|
+
*/
|
|
70
|
+
name: string;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* The plaintext secret value to be stored.
|
|
74
|
+
*/
|
|
75
|
+
payload: string;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Specifies the scoping of the secret. Requests originating from UI extensions can only access account-scoped secrets or secrets scoped to their own user.
|
|
79
|
+
*/
|
|
80
|
+
scope: SecretCreateParams.Scope;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Specifies which fields in the response should be expanded.
|
|
84
|
+
*/
|
|
85
|
+
expand?: Array<string>;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
namespace SecretCreateParams {
|
|
89
|
+
interface Scope {
|
|
90
|
+
/**
|
|
91
|
+
* The secret scope type.
|
|
92
|
+
*/
|
|
93
|
+
type: Scope.Type;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* The user ID. This field is required if `type` is set to `user`, and should not be provided if `type` is set to `account`.
|
|
97
|
+
*/
|
|
98
|
+
user?: string;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
namespace Scope {
|
|
102
|
+
type Type = 'account' | 'user';
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
interface SecretListParams extends PaginationParams {
|
|
107
|
+
/**
|
|
108
|
+
* Specifies the scoping of the secret. Requests originating from UI extensions can only access account-scoped secrets or secrets scoped to their own user.
|
|
109
|
+
*/
|
|
110
|
+
scope: SecretListParams.Scope;
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Specifies which fields in the response should be expanded.
|
|
114
|
+
*/
|
|
115
|
+
expand?: Array<string>;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
namespace SecretListParams {
|
|
119
|
+
interface Scope {
|
|
120
|
+
/**
|
|
121
|
+
* The secret scope type.
|
|
122
|
+
*/
|
|
123
|
+
type: Scope.Type;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* The user ID. This field is required if `type` is set to `user`, and should not be provided if `type` is set to `account`.
|
|
127
|
+
*/
|
|
128
|
+
user?: string;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
namespace Scope {
|
|
132
|
+
type Type = 'account' | 'user';
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
interface SecretDeleteWhereParams {
|
|
137
|
+
/**
|
|
138
|
+
* A name for the secret that's unique within the scope.
|
|
139
|
+
*/
|
|
140
|
+
name: string;
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Specifies the scoping of the secret. Requests originating from UI extensions can only access account-scoped secrets or secrets scoped to their own user.
|
|
144
|
+
*/
|
|
145
|
+
scope: SecretDeleteWhereParams.Scope;
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Specifies which fields in the response should be expanded.
|
|
149
|
+
*/
|
|
150
|
+
expand?: Array<string>;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
namespace SecretDeleteWhereParams {
|
|
154
|
+
interface Scope {
|
|
155
|
+
/**
|
|
156
|
+
* The secret scope type.
|
|
157
|
+
*/
|
|
158
|
+
type: Scope.Type;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* The user ID. This field is required if `type` is set to `user`, and should not be provided if `type` is set to `account`.
|
|
162
|
+
*/
|
|
163
|
+
user?: string;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
namespace Scope {
|
|
167
|
+
type Type = 'account' | 'user';
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
interface SecretFindParams {
|
|
172
|
+
/**
|
|
173
|
+
* A name for the secret that's unique within the scope.
|
|
174
|
+
*/
|
|
175
|
+
name: string;
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Specifies the scoping of the secret. Requests originating from UI extensions can only access account-scoped secrets or secrets scoped to their own user.
|
|
179
|
+
*/
|
|
180
|
+
scope: SecretFindParams.Scope;
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Specifies which fields in the response should be expanded.
|
|
184
|
+
*/
|
|
185
|
+
expand?: Array<string>;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
namespace SecretFindParams {
|
|
189
|
+
interface Scope {
|
|
190
|
+
/**
|
|
191
|
+
* The secret scope type.
|
|
192
|
+
*/
|
|
193
|
+
type: Scope.Type;
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* The user ID. This field is required if `type` is set to `user`, and should not be provided if `type` is set to `account`.
|
|
197
|
+
*/
|
|
198
|
+
user?: string;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
namespace Scope {
|
|
202
|
+
type Type = 'account' | 'user';
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
class SecretsResource {
|
|
207
|
+
/**
|
|
208
|
+
* Create or replace a secret in the secret store.
|
|
209
|
+
*/
|
|
210
|
+
create(
|
|
211
|
+
params: SecretCreateParams,
|
|
212
|
+
options?: RequestOptions
|
|
213
|
+
): Promise<Stripe.Response<Stripe.Apps.Secret>>;
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* List all secrets stored on the given scope.
|
|
217
|
+
*/
|
|
218
|
+
list(
|
|
219
|
+
params: SecretListParams,
|
|
220
|
+
options?: RequestOptions
|
|
221
|
+
): ApiListPromise<Stripe.Apps.Secret>;
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* Deletes a secret from the secret store by name and scope.
|
|
225
|
+
*/
|
|
226
|
+
deleteWhere(
|
|
227
|
+
params: SecretDeleteWhereParams,
|
|
228
|
+
options?: RequestOptions
|
|
229
|
+
): Promise<Stripe.Response<Stripe.Apps.Secret>>;
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* Finds a secret in the secret store by name and scope.
|
|
233
|
+
*/
|
|
234
|
+
find(
|
|
235
|
+
params: SecretFindParams,
|
|
236
|
+
options?: RequestOptions
|
|
237
|
+
): Promise<Stripe.Response<Stripe.Apps.Secret>>;
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}
|
|
@@ -322,7 +322,7 @@ declare module 'stripe' {
|
|
|
322
322
|
/**
|
|
323
323
|
* The types of customer updates that are supported. When empty, customers are not updateable.
|
|
324
324
|
*/
|
|
325
|
-
allowed_updates
|
|
325
|
+
allowed_updates?: Stripe.Emptyable<
|
|
326
326
|
Array<CustomerUpdate.AllowedUpdate>
|
|
327
327
|
>;
|
|
328
328
|
|
|
@@ -50,7 +50,7 @@ declare module 'stripe' {
|
|
|
50
50
|
/**
|
|
51
51
|
* The URL to redirect customers to when they click on the portal's link to return to your website.
|
|
52
52
|
*/
|
|
53
|
-
return_url: string;
|
|
53
|
+
return_url: string | null;
|
|
54
54
|
|
|
55
55
|
/**
|
|
56
56
|
* The short-lived URL of the session that gives customers access to the customer portal.
|
|
@@ -388,6 +388,8 @@ declare module 'stripe' {
|
|
|
388
388
|
|
|
389
389
|
acss_debit?: PaymentMethodDetails.AcssDebit;
|
|
390
390
|
|
|
391
|
+
affirm?: PaymentMethodDetails.Affirm;
|
|
392
|
+
|
|
391
393
|
afterpay_clearpay?: PaymentMethodDetails.AfterpayClearpay;
|
|
392
394
|
|
|
393
395
|
alipay?: PaymentMethodDetails.Alipay;
|
|
@@ -422,6 +424,8 @@ declare module 'stripe' {
|
|
|
422
424
|
|
|
423
425
|
konbini?: PaymentMethodDetails.Konbini;
|
|
424
426
|
|
|
427
|
+
link?: PaymentMethodDetails.Link;
|
|
428
|
+
|
|
425
429
|
multibanco?: PaymentMethodDetails.Multibanco;
|
|
426
430
|
|
|
427
431
|
oxxo?: PaymentMethodDetails.Oxxo;
|
|
@@ -543,6 +547,8 @@ declare module 'stripe' {
|
|
|
543
547
|
transit_number: string | null;
|
|
544
548
|
}
|
|
545
549
|
|
|
550
|
+
interface Affirm {}
|
|
551
|
+
|
|
546
552
|
interface AfterpayClearpay {
|
|
547
553
|
/**
|
|
548
554
|
* Order identifier shown to the merchant in Afterpay's online portal.
|
|
@@ -1469,6 +1475,8 @@ declare module 'stripe' {
|
|
|
1469
1475
|
}
|
|
1470
1476
|
}
|
|
1471
1477
|
|
|
1478
|
+
interface Link {}
|
|
1479
|
+
|
|
1472
1480
|
interface Multibanco {
|
|
1473
1481
|
/**
|
|
1474
1482
|
* Entity number associated with this Multibanco payment.
|
|
@@ -449,14 +449,34 @@ declare module 'stripe' {
|
|
|
449
449
|
interface PaymentMethodOptions {
|
|
450
450
|
acss_debit?: PaymentMethodOptions.AcssDebit;
|
|
451
451
|
|
|
452
|
+
afterpay_clearpay?: PaymentMethodOptions.AfterpayClearpay;
|
|
453
|
+
|
|
452
454
|
alipay?: PaymentMethodOptions.Alipay;
|
|
453
455
|
|
|
456
|
+
au_becs_debit?: PaymentMethodOptions.AuBecsDebit;
|
|
457
|
+
|
|
458
|
+
bacs_debit?: PaymentMethodOptions.BacsDebit;
|
|
459
|
+
|
|
454
460
|
boleto?: PaymentMethodOptions.Boleto;
|
|
455
461
|
|
|
462
|
+
eps?: PaymentMethodOptions.Eps;
|
|
463
|
+
|
|
464
|
+
fpx?: PaymentMethodOptions.Fpx;
|
|
465
|
+
|
|
466
|
+
giropay?: PaymentMethodOptions.Giropay;
|
|
467
|
+
|
|
468
|
+
grabpay?: PaymentMethodOptions.Grabpay;
|
|
469
|
+
|
|
470
|
+
klarna?: PaymentMethodOptions.Klarna;
|
|
471
|
+
|
|
456
472
|
konbini?: PaymentMethodOptions.Konbini;
|
|
457
473
|
|
|
458
474
|
oxxo?: PaymentMethodOptions.Oxxo;
|
|
459
475
|
|
|
476
|
+
paynow?: PaymentMethodOptions.Paynow;
|
|
477
|
+
|
|
478
|
+
sepa_debit?: PaymentMethodOptions.SepaDebit;
|
|
479
|
+
|
|
460
480
|
us_bank_account?: PaymentMethodOptions.UsBankAccount;
|
|
461
481
|
}
|
|
462
482
|
|
|
@@ -511,8 +531,14 @@ declare module 'stripe' {
|
|
|
511
531
|
type VerificationMethod = 'automatic' | 'instant' | 'microdeposits';
|
|
512
532
|
}
|
|
513
533
|
|
|
534
|
+
interface AfterpayClearpay {}
|
|
535
|
+
|
|
514
536
|
interface Alipay {}
|
|
515
537
|
|
|
538
|
+
interface AuBecsDebit {}
|
|
539
|
+
|
|
540
|
+
interface BacsDebit {}
|
|
541
|
+
|
|
516
542
|
interface Boleto {
|
|
517
543
|
/**
|
|
518
544
|
* The number of calendar days before a Boleto voucher expires. For example, if you create a Boleto voucher on Monday and you set expires_after_days to 2, the Boleto voucher will expire on Wednesday at 23:59 America/Sao_Paulo time.
|
|
@@ -520,6 +546,16 @@ declare module 'stripe' {
|
|
|
520
546
|
expires_after_days: number;
|
|
521
547
|
}
|
|
522
548
|
|
|
549
|
+
interface Eps {}
|
|
550
|
+
|
|
551
|
+
interface Fpx {}
|
|
552
|
+
|
|
553
|
+
interface Giropay {}
|
|
554
|
+
|
|
555
|
+
interface Grabpay {}
|
|
556
|
+
|
|
557
|
+
interface Klarna {}
|
|
558
|
+
|
|
523
559
|
interface Konbini {
|
|
524
560
|
/**
|
|
525
561
|
* The number of calendar days (between 1 and 60) after which Konbini payment instructions will expire. For example, if a PaymentIntent is confirmed with Konbini and `expires_after_days` set to 2 on Monday JST, the instructions will expire on Wednesday 23:59:59 JST.
|
|
@@ -534,6 +570,10 @@ declare module 'stripe' {
|
|
|
534
570
|
expires_after_days: number;
|
|
535
571
|
}
|
|
536
572
|
|
|
573
|
+
interface Paynow {}
|
|
574
|
+
|
|
575
|
+
interface SepaDebit {}
|
|
576
|
+
|
|
537
577
|
interface UsBankAccount {
|
|
538
578
|
financial_connections?: UsBankAccount.FinancialConnections;
|
|
539
579
|
|
|
@@ -913,9 +953,8 @@ declare module 'stripe' {
|
|
|
913
953
|
amount: number;
|
|
914
954
|
|
|
915
955
|
/**
|
|
916
|
-
* A discount represents the actual application of a coupon
|
|
917
|
-
*
|
|
918
|
-
* will end.
|
|
956
|
+
* A discount represents the actual application of a [coupon](https://stripe.com/docs/api#coupons) or [promotion code](https://stripe.com/docs/api#promotion_codes).
|
|
957
|
+
* It contains information about when the discount began, when it will end, and what it is applied to.
|
|
919
958
|
*
|
|
920
959
|
* Related guide: [Applying Discounts to Subscriptions](https://stripe.com/docs/billing/subscriptions/discounts).
|
|
921
960
|
*/
|
|
@@ -1079,6 +1118,8 @@ declare module 'stripe' {
|
|
|
1079
1118
|
/**
|
|
1080
1119
|
* A list of the types of payment methods (e.g., `card`) this Checkout Session can accept.
|
|
1081
1120
|
*
|
|
1121
|
+
* Do not include this attribute if you prefer to manage your payment methods from the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods).
|
|
1122
|
+
*
|
|
1082
1123
|
* Read more about the supported payment methods and their requirements in our [payment
|
|
1083
1124
|
* method details guide](https://stripe.com/docs/payments/checkout/payment-methods).
|
|
1084
1125
|
*
|
|
@@ -2157,6 +2198,13 @@ declare module 'stripe' {
|
|
|
2157
2198
|
*/
|
|
2158
2199
|
default_tax_rates?: Array<string>;
|
|
2159
2200
|
|
|
2201
|
+
/**
|
|
2202
|
+
* The subscription's description, meant to be displayable to the customer.
|
|
2203
|
+
* Use this field to optionally store an explanation of the subscription
|
|
2204
|
+
* for rendering in Stripe hosted surfaces.
|
|
2205
|
+
*/
|
|
2206
|
+
description?: string;
|
|
2207
|
+
|
|
2160
2208
|
/**
|
|
2161
2209
|
* A list of items, each with an attached plan, that the customer is subscribing to. Prefer using `line_items`.
|
|
2162
2210
|
*/
|
|
@@ -810,6 +810,7 @@ declare module 'stripe' {
|
|
|
810
810
|
namespace CustomerListPaymentMethodsParams {
|
|
811
811
|
type Type =
|
|
812
812
|
| 'acss_debit'
|
|
813
|
+
| 'affirm'
|
|
813
814
|
| 'afterpay_clearpay'
|
|
814
815
|
| 'alipay'
|
|
815
816
|
| 'au_becs_debit'
|
|
@@ -826,6 +827,7 @@ declare module 'stripe' {
|
|
|
826
827
|
| 'ideal'
|
|
827
828
|
| 'klarna'
|
|
828
829
|
| 'konbini'
|
|
830
|
+
| 'link'
|
|
829
831
|
| 'oxxo'
|
|
830
832
|
| 'p24'
|
|
831
833
|
| 'paynow'
|
|
@@ -835,6 +837,13 @@ declare module 'stripe' {
|
|
|
835
837
|
| 'wechat_pay';
|
|
836
838
|
}
|
|
837
839
|
|
|
840
|
+
interface CustomerRetrievePaymentMethodParams {
|
|
841
|
+
/**
|
|
842
|
+
* Specifies which fields in the response should be expanded.
|
|
843
|
+
*/
|
|
844
|
+
expand?: Array<string>;
|
|
845
|
+
}
|
|
846
|
+
|
|
838
847
|
interface CustomerSearchParams {
|
|
839
848
|
/**
|
|
840
849
|
* The search query string. See [search query language](https://stripe.com/docs/search#search-query-language) and the list of supported [query fields for customers](https://stripe.com/docs/search#query-fields-for-customers).
|
|
@@ -948,6 +957,21 @@ declare module 'stripe' {
|
|
|
948
957
|
options?: RequestOptions
|
|
949
958
|
): ApiListPromise<Stripe.PaymentMethod>;
|
|
950
959
|
|
|
960
|
+
/**
|
|
961
|
+
* Retrieves a PaymentMethod object.
|
|
962
|
+
*/
|
|
963
|
+
retrievePaymentMethod(
|
|
964
|
+
customerId: string,
|
|
965
|
+
id: string,
|
|
966
|
+
params?: CustomerRetrievePaymentMethodParams,
|
|
967
|
+
options?: RequestOptions
|
|
968
|
+
): Promise<Stripe.Response<Stripe.PaymentMethod>>;
|
|
969
|
+
retrievePaymentMethod(
|
|
970
|
+
customerId: string,
|
|
971
|
+
id: string,
|
|
972
|
+
options?: RequestOptions
|
|
973
|
+
): Promise<Stripe.Response<Stripe.PaymentMethod>>;
|
|
974
|
+
|
|
951
975
|
/**
|
|
952
976
|
* Search for customers you've previously created using Stripe's [Search Query Language](https://stripe.com/docs/search#search-query-language).
|
|
953
977
|
* Don't use search in read-after-write flows where strict consistency is necessary. Under normal operating
|
|
@@ -23,8 +23,8 @@ declare module 'stripe' {
|
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
* A coupon contains information about a percent-off or amount-off discount you
|
|
26
|
-
* might want to apply to a customer. Coupons may be applied to [invoices](https://stripe.com/docs/api#invoices)
|
|
27
|
-
* [
|
|
26
|
+
* might want to apply to a customer. Coupons may be applied to [subscriptions](https://stripe.com/docs/api#subscriptions), [invoices](https://stripe.com/docs/api#invoices),
|
|
27
|
+
* [checkout sessions](https://stripe.com/docs/api/checkout/sessions), [quotes](https://stripe.com/docs/api#quotes), and more. Coupons do not work with conventional one-off [charges](https://stripe.com/docs/api#create_charge) or [payment intents](https://stripe.com/docs/api/payment_intents).
|
|
28
28
|
*/
|
|
29
29
|
coupon: Stripe.Coupon;
|
|
30
30
|
|
|
@@ -87,8 +87,8 @@ declare module 'stripe' {
|
|
|
87
87
|
|
|
88
88
|
/**
|
|
89
89
|
* A coupon contains information about a percent-off or amount-off discount you
|
|
90
|
-
* might want to apply to a customer. Coupons may be applied to [invoices](https://stripe.com/docs/api#invoices)
|
|
91
|
-
* [
|
|
90
|
+
* might want to apply to a customer. Coupons may be applied to [subscriptions](https://stripe.com/docs/api#subscriptions), [invoices](https://stripe.com/docs/api#invoices),
|
|
91
|
+
* [checkout sessions](https://stripe.com/docs/api/checkout/sessions), [quotes](https://stripe.com/docs/api#quotes), and more. Coupons do not work with conventional one-off [charges](https://stripe.com/docs/api#create_charge) or [payment intents](https://stripe.com/docs/api/payment_intents).
|
|
92
92
|
*/
|
|
93
93
|
coupon: Stripe.Coupon;
|
|
94
94
|
|
|
@@ -247,6 +247,37 @@ declare module 'stripe' {
|
|
|
247
247
|
expand?: Array<string>;
|
|
248
248
|
}
|
|
249
249
|
|
|
250
|
+
interface AccountListParams extends PaginationParams {
|
|
251
|
+
/**
|
|
252
|
+
* If present, only return accounts that belong to the specified account holder. `account_holder[customer]` and `account_holder[account]` are mutually exclusive.
|
|
253
|
+
*/
|
|
254
|
+
account_holder?: AccountListParams.AccountHolder;
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* Specifies which fields in the response should be expanded.
|
|
258
|
+
*/
|
|
259
|
+
expand?: Array<string>;
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* If present, only return accounts that were collected as part of the given session.
|
|
263
|
+
*/
|
|
264
|
+
session?: string;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
namespace AccountListParams {
|
|
268
|
+
interface AccountHolder {
|
|
269
|
+
/**
|
|
270
|
+
* The ID of the Stripe account whose accounts will be retrieved.
|
|
271
|
+
*/
|
|
272
|
+
account?: string;
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* The ID of the Stripe customer whose accounts will be retrieved.
|
|
276
|
+
*/
|
|
277
|
+
customer?: string;
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
|
|
250
281
|
interface AccountDisconnectParams {
|
|
251
282
|
/**
|
|
252
283
|
* Specifies which fields in the response should be expanded.
|
|
@@ -254,6 +285,18 @@ declare module 'stripe' {
|
|
|
254
285
|
expand?: Array<string>;
|
|
255
286
|
}
|
|
256
287
|
|
|
288
|
+
interface AccountListOwnersParams extends PaginationParams {
|
|
289
|
+
/**
|
|
290
|
+
* The ID of the ownership object to fetch owners from.
|
|
291
|
+
*/
|
|
292
|
+
ownership: string;
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* Specifies which fields in the response should be expanded.
|
|
296
|
+
*/
|
|
297
|
+
expand?: Array<string>;
|
|
298
|
+
}
|
|
299
|
+
|
|
257
300
|
interface AccountRefreshParams {
|
|
258
301
|
/**
|
|
259
302
|
* The list of account features that you would like to refresh. Either: `balance` or `ownership`.
|
|
@@ -284,6 +327,17 @@ declare module 'stripe' {
|
|
|
284
327
|
options?: RequestOptions
|
|
285
328
|
): Promise<Stripe.Response<Stripe.FinancialConnections.Account>>;
|
|
286
329
|
|
|
330
|
+
/**
|
|
331
|
+
* Returns a list of Financial Connections Account objects.
|
|
332
|
+
*/
|
|
333
|
+
list(
|
|
334
|
+
params?: AccountListParams,
|
|
335
|
+
options?: RequestOptions
|
|
336
|
+
): ApiListPromise<Stripe.FinancialConnections.Account>;
|
|
337
|
+
list(
|
|
338
|
+
options?: RequestOptions
|
|
339
|
+
): ApiListPromise<Stripe.FinancialConnections.Account>;
|
|
340
|
+
|
|
287
341
|
/**
|
|
288
342
|
* Disables your access to a Financial Connections Account. You will no longer be able to access data associated with the account (e.g. balances, transactions).
|
|
289
343
|
*/
|
|
@@ -297,6 +351,15 @@ declare module 'stripe' {
|
|
|
297
351
|
options?: RequestOptions
|
|
298
352
|
): Promise<Stripe.Response<Stripe.FinancialConnections.Account>>;
|
|
299
353
|
|
|
354
|
+
/**
|
|
355
|
+
* Lists all owners for a given Account
|
|
356
|
+
*/
|
|
357
|
+
listOwners(
|
|
358
|
+
id: string,
|
|
359
|
+
params: AccountListOwnersParams,
|
|
360
|
+
options?: RequestOptions
|
|
361
|
+
): ApiListPromise<Stripe.FinancialConnections.AccountOwner>;
|
|
362
|
+
|
|
300
363
|
/**
|
|
301
364
|
* Refreshes the data associated with a Financial Connections Account.
|
|
302
365
|
*/
|
|
@@ -745,6 +745,7 @@ declare module 'stripe' {
|
|
|
745
745
|
| 'grabpay'
|
|
746
746
|
| 'ideal'
|
|
747
747
|
| 'konbini'
|
|
748
|
+
| 'link'
|
|
748
749
|
| 'paynow'
|
|
749
750
|
| 'sepa_credit_transfer'
|
|
750
751
|
| 'sepa_debit'
|
|
@@ -1193,6 +1194,7 @@ declare module 'stripe' {
|
|
|
1193
1194
|
| 'grabpay'
|
|
1194
1195
|
| 'ideal'
|
|
1195
1196
|
| 'konbini'
|
|
1197
|
+
| 'link'
|
|
1196
1198
|
| 'paynow'
|
|
1197
1199
|
| 'sepa_credit_transfer'
|
|
1198
1200
|
| 'sepa_debit'
|
|
@@ -1533,6 +1535,7 @@ declare module 'stripe' {
|
|
|
1533
1535
|
| 'grabpay'
|
|
1534
1536
|
| 'ideal'
|
|
1535
1537
|
| 'konbini'
|
|
1538
|
+
| 'link'
|
|
1536
1539
|
| 'paynow'
|
|
1537
1540
|
| 'sepa_credit_transfer'
|
|
1538
1541
|
| 'sepa_debit'
|
|
@@ -104,6 +104,11 @@ declare module 'stripe' {
|
|
|
104
104
|
*/
|
|
105
105
|
transactions: Array<Stripe.Issuing.Transaction>;
|
|
106
106
|
|
|
107
|
+
/**
|
|
108
|
+
* [Treasury](https://stripe.com/docs/api/treasury) details related to this authorization if it was created on a [FinancialAccount](https://stripe.com/docs/api/treasury/financial_accounts).
|
|
109
|
+
*/
|
|
110
|
+
treasury?: Authorization.Treasury | null;
|
|
111
|
+
|
|
107
112
|
verification_data: Authorization.VerificationData;
|
|
108
113
|
|
|
109
114
|
/**
|
|
@@ -278,6 +283,23 @@ declare module 'stripe' {
|
|
|
278
283
|
|
|
279
284
|
type Status = 'closed' | 'pending' | 'reversed';
|
|
280
285
|
|
|
286
|
+
interface Treasury {
|
|
287
|
+
/**
|
|
288
|
+
* The array of [ReceivedCredits](https://stripe.com/docs/api/treasury/received_credits) associated with this authorization
|
|
289
|
+
*/
|
|
290
|
+
received_credits: Array<string>;
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* The array of [ReceivedDebits](https://stripe.com/docs/api/treasury/received_debits) associated with this authorization
|
|
294
|
+
*/
|
|
295
|
+
received_debits: Array<string>;
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* The Treasury [Transaction](https://stripe.com/docs/api/treasury/transactions) associated with this authorization
|
|
299
|
+
*/
|
|
300
|
+
transaction: string | null;
|
|
301
|
+
}
|
|
302
|
+
|
|
281
303
|
interface VerificationData {
|
|
282
304
|
/**
|
|
283
305
|
* Whether the cardholder provided an address first line and if it matched the cardholder's `billing.address.line1`.
|
|
@@ -59,6 +59,11 @@ declare module 'stripe' {
|
|
|
59
59
|
*/
|
|
60
60
|
exp_year: number;
|
|
61
61
|
|
|
62
|
+
/**
|
|
63
|
+
* The financial account this card is attached to.
|
|
64
|
+
*/
|
|
65
|
+
financial_account?: string | null;
|
|
66
|
+
|
|
62
67
|
/**
|
|
63
68
|
* The last 4 digits of the card number.
|
|
64
69
|
*/
|
|
@@ -1180,6 +1185,8 @@ declare module 'stripe' {
|
|
|
1180
1185
|
*/
|
|
1181
1186
|
expand?: Array<string>;
|
|
1182
1187
|
|
|
1188
|
+
financial_account?: string;
|
|
1189
|
+
|
|
1183
1190
|
/**
|
|
1184
1191
|
* 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`.
|
|
1185
1192
|
*/
|