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
|
@@ -21,6 +21,13 @@ declare module 'stripe' {
|
|
|
21
21
|
*/
|
|
22
22
|
application: string | Stripe.Application | null;
|
|
23
23
|
|
|
24
|
+
/**
|
|
25
|
+
* If present, the SetupIntent's payment method will be attached to the in-context Stripe Account.
|
|
26
|
+
*
|
|
27
|
+
* It can only be used for this Stripe Account's own money movement flows like InboundTransfer and OutboundTransfers. It cannot be set to true when setting up a PaymentMethod for a Customer, and defaults to false when attaching a PaymentMethod to a Customer.
|
|
28
|
+
*/
|
|
29
|
+
attach_to_self?: boolean;
|
|
30
|
+
|
|
24
31
|
/**
|
|
25
32
|
* Reason for cancellation of this SetupIntent, one of `abandoned`, `requested_by_customer`, or `duplicate`.
|
|
26
33
|
*/
|
|
@@ -50,6 +57,13 @@ declare module 'stripe' {
|
|
|
50
57
|
*/
|
|
51
58
|
description: string | null;
|
|
52
59
|
|
|
60
|
+
/**
|
|
61
|
+
* Indicates the directions of money movement for which this payment method is intended to be used.
|
|
62
|
+
*
|
|
63
|
+
* Include `inbound` if you intend to use the payment method as the origin to pull funds from. Include `outbound` if you intend to use the payment method as the destination to send funds to. You can include both if you intend to use the payment method for both purposes.
|
|
64
|
+
*/
|
|
65
|
+
flow_directions?: Array<SetupIntent.FlowDirection> | null;
|
|
66
|
+
|
|
53
67
|
/**
|
|
54
68
|
* The error encountered in the previous SetupIntent confirmation.
|
|
55
69
|
*/
|
|
@@ -124,6 +138,8 @@ declare module 'stripe' {
|
|
|
124
138
|
| 'duplicate'
|
|
125
139
|
| 'requested_by_customer';
|
|
126
140
|
|
|
141
|
+
type FlowDirection = 'inbound' | 'outbound';
|
|
142
|
+
|
|
127
143
|
interface LastSetupError {
|
|
128
144
|
/**
|
|
129
145
|
* For card errors, the ID of the failed charge.
|
|
@@ -284,6 +300,8 @@ declare module 'stripe' {
|
|
|
284
300
|
|
|
285
301
|
card?: PaymentMethodOptions.Card;
|
|
286
302
|
|
|
303
|
+
link?: PaymentMethodOptions.Link;
|
|
304
|
+
|
|
287
305
|
sepa_debit?: PaymentMethodOptions.SepaDebit;
|
|
288
306
|
|
|
289
307
|
us_bank_account?: PaymentMethodOptions.UsBankAccount;
|
|
@@ -419,6 +437,13 @@ declare module 'stripe' {
|
|
|
419
437
|
type RequestThreeDSecure = 'any' | 'automatic' | 'challenge_only';
|
|
420
438
|
}
|
|
421
439
|
|
|
440
|
+
interface Link {
|
|
441
|
+
/**
|
|
442
|
+
* Token used for persistent Link logins.
|
|
443
|
+
*/
|
|
444
|
+
persistent_token: string | null;
|
|
445
|
+
}
|
|
446
|
+
|
|
422
447
|
interface SepaDebit {
|
|
423
448
|
mandate_options?: SepaDebit.MandateOptions;
|
|
424
449
|
}
|
|
@@ -601,6 +626,11 @@ declare module 'stripe' {
|
|
|
601
626
|
*/
|
|
602
627
|
acss_debit?: PaymentMethodData.AcssDebit;
|
|
603
628
|
|
|
629
|
+
/**
|
|
630
|
+
* If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
|
|
631
|
+
*/
|
|
632
|
+
affirm?: PaymentMethodData.Affirm;
|
|
633
|
+
|
|
604
634
|
/**
|
|
605
635
|
* If this is an `AfterpayClearpay` PaymentMethod, this hash contains details about the AfterpayClearpay payment method.
|
|
606
636
|
*/
|
|
@@ -681,6 +711,11 @@ declare module 'stripe' {
|
|
|
681
711
|
*/
|
|
682
712
|
konbini?: PaymentMethodData.Konbini;
|
|
683
713
|
|
|
714
|
+
/**
|
|
715
|
+
* If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
|
|
716
|
+
*/
|
|
717
|
+
link?: PaymentMethodData.Link;
|
|
718
|
+
|
|
684
719
|
/**
|
|
685
720
|
* 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`.
|
|
686
721
|
*/
|
|
@@ -745,6 +780,8 @@ declare module 'stripe' {
|
|
|
745
780
|
transit_number: string;
|
|
746
781
|
}
|
|
747
782
|
|
|
783
|
+
interface Affirm {}
|
|
784
|
+
|
|
748
785
|
interface AfterpayClearpay {}
|
|
749
786
|
|
|
750
787
|
interface Alipay {}
|
|
@@ -947,6 +984,8 @@ declare module 'stripe' {
|
|
|
947
984
|
|
|
948
985
|
interface Konbini {}
|
|
949
986
|
|
|
987
|
+
interface Link {}
|
|
988
|
+
|
|
950
989
|
interface Oxxo {}
|
|
951
990
|
|
|
952
991
|
interface P24 {
|
|
@@ -1007,6 +1046,7 @@ declare module 'stripe' {
|
|
|
1007
1046
|
|
|
1008
1047
|
type Type =
|
|
1009
1048
|
| 'acss_debit'
|
|
1049
|
+
| 'affirm'
|
|
1010
1050
|
| 'afterpay_clearpay'
|
|
1011
1051
|
| 'alipay'
|
|
1012
1052
|
| 'au_becs_debit'
|
|
@@ -1021,6 +1061,7 @@ declare module 'stripe' {
|
|
|
1021
1061
|
| 'ideal'
|
|
1022
1062
|
| 'klarna'
|
|
1023
1063
|
| 'konbini'
|
|
1064
|
+
| 'link'
|
|
1024
1065
|
| 'oxxo'
|
|
1025
1066
|
| 'p24'
|
|
1026
1067
|
| 'paynow'
|
|
@@ -1076,6 +1117,11 @@ declare module 'stripe' {
|
|
|
1076
1117
|
*/
|
|
1077
1118
|
card?: PaymentMethodOptions.Card;
|
|
1078
1119
|
|
|
1120
|
+
/**
|
|
1121
|
+
* If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options.
|
|
1122
|
+
*/
|
|
1123
|
+
link?: PaymentMethodOptions.Link;
|
|
1124
|
+
|
|
1079
1125
|
/**
|
|
1080
1126
|
* If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
|
|
1081
1127
|
*/
|
|
@@ -1229,6 +1275,13 @@ declare module 'stripe' {
|
|
|
1229
1275
|
type RequestThreeDSecure = 'any' | 'automatic';
|
|
1230
1276
|
}
|
|
1231
1277
|
|
|
1278
|
+
interface Link {
|
|
1279
|
+
/**
|
|
1280
|
+
* Token used for persistent Link logins.
|
|
1281
|
+
*/
|
|
1282
|
+
persistent_token?: string;
|
|
1283
|
+
}
|
|
1284
|
+
|
|
1232
1285
|
interface SepaDebit {
|
|
1233
1286
|
/**
|
|
1234
1287
|
* Additional fields for Mandate creation
|
|
@@ -1246,6 +1299,11 @@ declare module 'stripe' {
|
|
|
1246
1299
|
*/
|
|
1247
1300
|
financial_connections?: UsBankAccount.FinancialConnections;
|
|
1248
1301
|
|
|
1302
|
+
/**
|
|
1303
|
+
* Additional fields for network related functions
|
|
1304
|
+
*/
|
|
1305
|
+
networks?: UsBankAccount.Networks;
|
|
1306
|
+
|
|
1249
1307
|
/**
|
|
1250
1308
|
* Verification method for the intent
|
|
1251
1309
|
*/
|
|
@@ -1273,6 +1331,17 @@ declare module 'stripe' {
|
|
|
1273
1331
|
| 'transactions';
|
|
1274
1332
|
}
|
|
1275
1333
|
|
|
1334
|
+
interface Networks {
|
|
1335
|
+
/**
|
|
1336
|
+
* Triggers validations to run across the selected networks
|
|
1337
|
+
*/
|
|
1338
|
+
requested?: Array<Networks.Requested>;
|
|
1339
|
+
}
|
|
1340
|
+
|
|
1341
|
+
namespace Networks {
|
|
1342
|
+
type Requested = 'ach' | 'us_domestic_wire';
|
|
1343
|
+
}
|
|
1344
|
+
|
|
1276
1345
|
type VerificationMethod = 'automatic' | 'instant' | 'microdeposits';
|
|
1277
1346
|
}
|
|
1278
1347
|
}
|
|
@@ -1356,6 +1425,11 @@ declare module 'stripe' {
|
|
|
1356
1425
|
*/
|
|
1357
1426
|
acss_debit?: PaymentMethodData.AcssDebit;
|
|
1358
1427
|
|
|
1428
|
+
/**
|
|
1429
|
+
* If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
|
|
1430
|
+
*/
|
|
1431
|
+
affirm?: PaymentMethodData.Affirm;
|
|
1432
|
+
|
|
1359
1433
|
/**
|
|
1360
1434
|
* If this is an `AfterpayClearpay` PaymentMethod, this hash contains details about the AfterpayClearpay payment method.
|
|
1361
1435
|
*/
|
|
@@ -1436,6 +1510,11 @@ declare module 'stripe' {
|
|
|
1436
1510
|
*/
|
|
1437
1511
|
konbini?: PaymentMethodData.Konbini;
|
|
1438
1512
|
|
|
1513
|
+
/**
|
|
1514
|
+
* If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
|
|
1515
|
+
*/
|
|
1516
|
+
link?: PaymentMethodData.Link;
|
|
1517
|
+
|
|
1439
1518
|
/**
|
|
1440
1519
|
* 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`.
|
|
1441
1520
|
*/
|
|
@@ -1500,6 +1579,8 @@ declare module 'stripe' {
|
|
|
1500
1579
|
transit_number: string;
|
|
1501
1580
|
}
|
|
1502
1581
|
|
|
1582
|
+
interface Affirm {}
|
|
1583
|
+
|
|
1503
1584
|
interface AfterpayClearpay {}
|
|
1504
1585
|
|
|
1505
1586
|
interface Alipay {}
|
|
@@ -1702,6 +1783,8 @@ declare module 'stripe' {
|
|
|
1702
1783
|
|
|
1703
1784
|
interface Konbini {}
|
|
1704
1785
|
|
|
1786
|
+
interface Link {}
|
|
1787
|
+
|
|
1705
1788
|
interface Oxxo {}
|
|
1706
1789
|
|
|
1707
1790
|
interface P24 {
|
|
@@ -1762,6 +1845,7 @@ declare module 'stripe' {
|
|
|
1762
1845
|
|
|
1763
1846
|
type Type =
|
|
1764
1847
|
| 'acss_debit'
|
|
1848
|
+
| 'affirm'
|
|
1765
1849
|
| 'afterpay_clearpay'
|
|
1766
1850
|
| 'alipay'
|
|
1767
1851
|
| 'au_becs_debit'
|
|
@@ -1776,6 +1860,7 @@ declare module 'stripe' {
|
|
|
1776
1860
|
| 'ideal'
|
|
1777
1861
|
| 'klarna'
|
|
1778
1862
|
| 'konbini'
|
|
1863
|
+
| 'link'
|
|
1779
1864
|
| 'oxxo'
|
|
1780
1865
|
| 'p24'
|
|
1781
1866
|
| 'paynow'
|
|
@@ -1831,6 +1916,11 @@ declare module 'stripe' {
|
|
|
1831
1916
|
*/
|
|
1832
1917
|
card?: PaymentMethodOptions.Card;
|
|
1833
1918
|
|
|
1919
|
+
/**
|
|
1920
|
+
* If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options.
|
|
1921
|
+
*/
|
|
1922
|
+
link?: PaymentMethodOptions.Link;
|
|
1923
|
+
|
|
1834
1924
|
/**
|
|
1835
1925
|
* If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
|
|
1836
1926
|
*/
|
|
@@ -1984,6 +2074,13 @@ declare module 'stripe' {
|
|
|
1984
2074
|
type RequestThreeDSecure = 'any' | 'automatic';
|
|
1985
2075
|
}
|
|
1986
2076
|
|
|
2077
|
+
interface Link {
|
|
2078
|
+
/**
|
|
2079
|
+
* Token used for persistent Link logins.
|
|
2080
|
+
*/
|
|
2081
|
+
persistent_token?: string;
|
|
2082
|
+
}
|
|
2083
|
+
|
|
1987
2084
|
interface SepaDebit {
|
|
1988
2085
|
/**
|
|
1989
2086
|
* Additional fields for Mandate creation
|
|
@@ -2001,6 +2098,11 @@ declare module 'stripe' {
|
|
|
2001
2098
|
*/
|
|
2002
2099
|
financial_connections?: UsBankAccount.FinancialConnections;
|
|
2003
2100
|
|
|
2101
|
+
/**
|
|
2102
|
+
* Additional fields for network related functions
|
|
2103
|
+
*/
|
|
2104
|
+
networks?: UsBankAccount.Networks;
|
|
2105
|
+
|
|
2004
2106
|
/**
|
|
2005
2107
|
* Verification method for the intent
|
|
2006
2108
|
*/
|
|
@@ -2028,6 +2130,17 @@ declare module 'stripe' {
|
|
|
2028
2130
|
| 'transactions';
|
|
2029
2131
|
}
|
|
2030
2132
|
|
|
2133
|
+
interface Networks {
|
|
2134
|
+
/**
|
|
2135
|
+
* Triggers validations to run across the selected networks
|
|
2136
|
+
*/
|
|
2137
|
+
requested?: Array<Networks.Requested>;
|
|
2138
|
+
}
|
|
2139
|
+
|
|
2140
|
+
namespace Networks {
|
|
2141
|
+
type Requested = 'ach' | 'us_domestic_wire';
|
|
2142
|
+
}
|
|
2143
|
+
|
|
2031
2144
|
type VerificationMethod = 'automatic' | 'instant' | 'microdeposits';
|
|
2032
2145
|
}
|
|
2033
2146
|
}
|
|
@@ -2202,6 +2315,11 @@ declare module 'stripe' {
|
|
|
2202
2315
|
*/
|
|
2203
2316
|
acss_debit?: PaymentMethodData.AcssDebit;
|
|
2204
2317
|
|
|
2318
|
+
/**
|
|
2319
|
+
* If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
|
|
2320
|
+
*/
|
|
2321
|
+
affirm?: PaymentMethodData.Affirm;
|
|
2322
|
+
|
|
2205
2323
|
/**
|
|
2206
2324
|
* If this is an `AfterpayClearpay` PaymentMethod, this hash contains details about the AfterpayClearpay payment method.
|
|
2207
2325
|
*/
|
|
@@ -2282,6 +2400,11 @@ declare module 'stripe' {
|
|
|
2282
2400
|
*/
|
|
2283
2401
|
konbini?: PaymentMethodData.Konbini;
|
|
2284
2402
|
|
|
2403
|
+
/**
|
|
2404
|
+
* If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
|
|
2405
|
+
*/
|
|
2406
|
+
link?: PaymentMethodData.Link;
|
|
2407
|
+
|
|
2285
2408
|
/**
|
|
2286
2409
|
* 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`.
|
|
2287
2410
|
*/
|
|
@@ -2346,6 +2469,8 @@ declare module 'stripe' {
|
|
|
2346
2469
|
transit_number: string;
|
|
2347
2470
|
}
|
|
2348
2471
|
|
|
2472
|
+
interface Affirm {}
|
|
2473
|
+
|
|
2349
2474
|
interface AfterpayClearpay {}
|
|
2350
2475
|
|
|
2351
2476
|
interface Alipay {}
|
|
@@ -2548,6 +2673,8 @@ declare module 'stripe' {
|
|
|
2548
2673
|
|
|
2549
2674
|
interface Konbini {}
|
|
2550
2675
|
|
|
2676
|
+
interface Link {}
|
|
2677
|
+
|
|
2551
2678
|
interface Oxxo {}
|
|
2552
2679
|
|
|
2553
2680
|
interface P24 {
|
|
@@ -2608,6 +2735,7 @@ declare module 'stripe' {
|
|
|
2608
2735
|
|
|
2609
2736
|
type Type =
|
|
2610
2737
|
| 'acss_debit'
|
|
2738
|
+
| 'affirm'
|
|
2611
2739
|
| 'afterpay_clearpay'
|
|
2612
2740
|
| 'alipay'
|
|
2613
2741
|
| 'au_becs_debit'
|
|
@@ -2622,6 +2750,7 @@ declare module 'stripe' {
|
|
|
2622
2750
|
| 'ideal'
|
|
2623
2751
|
| 'klarna'
|
|
2624
2752
|
| 'konbini'
|
|
2753
|
+
| 'link'
|
|
2625
2754
|
| 'oxxo'
|
|
2626
2755
|
| 'p24'
|
|
2627
2756
|
| 'paynow'
|
|
@@ -2677,6 +2806,11 @@ declare module 'stripe' {
|
|
|
2677
2806
|
*/
|
|
2678
2807
|
card?: PaymentMethodOptions.Card;
|
|
2679
2808
|
|
|
2809
|
+
/**
|
|
2810
|
+
* If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options.
|
|
2811
|
+
*/
|
|
2812
|
+
link?: PaymentMethodOptions.Link;
|
|
2813
|
+
|
|
2680
2814
|
/**
|
|
2681
2815
|
* If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
|
|
2682
2816
|
*/
|
|
@@ -2830,6 +2964,13 @@ declare module 'stripe' {
|
|
|
2830
2964
|
type RequestThreeDSecure = 'any' | 'automatic';
|
|
2831
2965
|
}
|
|
2832
2966
|
|
|
2967
|
+
interface Link {
|
|
2968
|
+
/**
|
|
2969
|
+
* Token used for persistent Link logins.
|
|
2970
|
+
*/
|
|
2971
|
+
persistent_token?: string;
|
|
2972
|
+
}
|
|
2973
|
+
|
|
2833
2974
|
interface SepaDebit {
|
|
2834
2975
|
/**
|
|
2835
2976
|
* Additional fields for Mandate creation
|
|
@@ -2847,6 +2988,11 @@ declare module 'stripe' {
|
|
|
2847
2988
|
*/
|
|
2848
2989
|
financial_connections?: UsBankAccount.FinancialConnections;
|
|
2849
2990
|
|
|
2991
|
+
/**
|
|
2992
|
+
* Additional fields for network related functions
|
|
2993
|
+
*/
|
|
2994
|
+
networks?: UsBankAccount.Networks;
|
|
2995
|
+
|
|
2850
2996
|
/**
|
|
2851
2997
|
* Verification method for the intent
|
|
2852
2998
|
*/
|
|
@@ -2874,6 +3020,17 @@ declare module 'stripe' {
|
|
|
2874
3020
|
| 'transactions';
|
|
2875
3021
|
}
|
|
2876
3022
|
|
|
3023
|
+
interface Networks {
|
|
3024
|
+
/**
|
|
3025
|
+
* Triggers validations to run across the selected networks
|
|
3026
|
+
*/
|
|
3027
|
+
requested?: Array<Networks.Requested>;
|
|
3028
|
+
}
|
|
3029
|
+
|
|
3030
|
+
namespace Networks {
|
|
3031
|
+
type Requested = 'ach' | 'us_domestic_wire';
|
|
3032
|
+
}
|
|
3033
|
+
|
|
2877
3034
|
type VerificationMethod = 'automatic' | 'instant' | 'microdeposits';
|
|
2878
3035
|
}
|
|
2879
3036
|
}
|
|
@@ -254,6 +254,11 @@ declare module 'stripe' {
|
|
|
254
254
|
*/
|
|
255
255
|
items: Array<Phase.Item>;
|
|
256
256
|
|
|
257
|
+
/**
|
|
258
|
+
* Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to a phase. Metadata on a schedule's phase will update the underlying subscription's `metadata` when the phase is entered. Updating the underlying subscription's `metadata` directly will not affect the current phase's `metadata`.
|
|
259
|
+
*/
|
|
260
|
+
metadata: Stripe.Metadata | null;
|
|
261
|
+
|
|
257
262
|
/**
|
|
258
263
|
* If the subscription schedule will prorate when transitioning to this phase. Possible values are `create_prorations` and `none`.
|
|
259
264
|
*/
|
|
@@ -584,6 +589,11 @@ declare module 'stripe' {
|
|
|
584
589
|
*/
|
|
585
590
|
iterations?: number;
|
|
586
591
|
|
|
592
|
+
/**
|
|
593
|
+
* Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to a phase. Metadata on a schedule's phase will update the underlying subscription's `metadata` when the phase is entered, adding new keys and replacing existing keys in the subscription's `metadata`. Individual keys in the subscription's `metadata` can be unset by posting an empty value to them in the phase's `metadata`. To unset all keys in the subscription's `metadata`, update the subscription directly or unset every key individually from the phase's `metadata`.
|
|
594
|
+
*/
|
|
595
|
+
metadata?: Stripe.MetadataParam;
|
|
596
|
+
|
|
587
597
|
/**
|
|
588
598
|
* If a subscription schedule will create prorations when transitioning to this phase. Possible values are `create_prorations` or `none`, and the default value is `create_prorations`. See [Prorations](https://stripe.com/docs/billing/subscriptions/prorations).
|
|
589
599
|
*/
|
|
@@ -999,6 +1009,11 @@ declare module 'stripe' {
|
|
|
999
1009
|
*/
|
|
1000
1010
|
iterations?: number;
|
|
1001
1011
|
|
|
1012
|
+
/**
|
|
1013
|
+
* Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to a phase. Metadata on a schedule's phase will update the underlying subscription's `metadata` when the phase is entered, adding new keys and replacing existing keys in the subscription's `metadata`. Individual keys in the subscription's `metadata` can be unset by posting an empty value to them in the phase's `metadata`. To unset all keys in the subscription's `metadata`, update the subscription directly or unset every key individually from the phase's `metadata`.
|
|
1014
|
+
*/
|
|
1015
|
+
metadata?: Stripe.MetadataParam;
|
|
1016
|
+
|
|
1002
1017
|
/**
|
|
1003
1018
|
* If a subscription schedule will create prorations when transitioning to this phase. Possible values are `create_prorations` or `none`, and the default value is `create_prorations`. See [Prorations](https://stripe.com/docs/billing/subscriptions/prorations).
|
|
1004
1019
|
*/
|
|
@@ -102,6 +102,11 @@ declare module 'stripe' {
|
|
|
102
102
|
*/
|
|
103
103
|
default_tax_rates?: Array<Stripe.TaxRate> | null;
|
|
104
104
|
|
|
105
|
+
/**
|
|
106
|
+
* The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces.
|
|
107
|
+
*/
|
|
108
|
+
description: string | null;
|
|
109
|
+
|
|
105
110
|
/**
|
|
106
111
|
* Describes the current discount applied to this subscription, if there is one. When billing, a discount applied to a subscription overrides a discount applied on a customer-wide basis.
|
|
107
112
|
*/
|
|
@@ -254,6 +259,11 @@ declare module 'stripe' {
|
|
|
254
259
|
* The list of payment method types to provide to every invoice created by the subscription. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice).
|
|
255
260
|
*/
|
|
256
261
|
payment_method_types: Array<PaymentSettings.PaymentMethodType> | null;
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* Either `off`, or `on_subscription`. With `on_subscription` Stripe updates `subscription.default_payment_method` when a subscription payment succeeds.
|
|
265
|
+
*/
|
|
266
|
+
save_default_payment_method: PaymentSettings.SaveDefaultPaymentMethod | null;
|
|
257
267
|
}
|
|
258
268
|
|
|
259
269
|
namespace PaymentSettings {
|
|
@@ -419,12 +429,15 @@ declare module 'stripe' {
|
|
|
419
429
|
| 'grabpay'
|
|
420
430
|
| 'ideal'
|
|
421
431
|
| 'konbini'
|
|
432
|
+
| 'link'
|
|
422
433
|
| 'paynow'
|
|
423
434
|
| 'sepa_credit_transfer'
|
|
424
435
|
| 'sepa_debit'
|
|
425
436
|
| 'sofort'
|
|
426
437
|
| 'us_bank_account'
|
|
427
438
|
| 'wechat_pay';
|
|
439
|
+
|
|
440
|
+
type SaveDefaultPaymentMethod = 'off' | 'on_subscription';
|
|
428
441
|
}
|
|
429
442
|
|
|
430
443
|
interface PendingInvoiceItemInterval {
|
|
@@ -509,7 +522,7 @@ declare module 'stripe' {
|
|
|
509
522
|
application_fee_percent?: number;
|
|
510
523
|
|
|
511
524
|
/**
|
|
512
|
-
* Automatic tax settings for this subscription.
|
|
525
|
+
* Automatic tax settings for this subscription. We recommend you only include this parameter when the existing value is being changed.
|
|
513
526
|
*/
|
|
514
527
|
automatic_tax?: SubscriptionCreateParams.AutomaticTax;
|
|
515
528
|
|
|
@@ -570,6 +583,11 @@ declare module 'stripe' {
|
|
|
570
583
|
*/
|
|
571
584
|
default_tax_rates?: Stripe.Emptyable<Array<string>>;
|
|
572
585
|
|
|
586
|
+
/**
|
|
587
|
+
* The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces.
|
|
588
|
+
*/
|
|
589
|
+
description?: string;
|
|
590
|
+
|
|
573
591
|
/**
|
|
574
592
|
* Specifies which fields in the response should be expanded.
|
|
575
593
|
*/
|
|
@@ -839,6 +857,11 @@ declare module 'stripe' {
|
|
|
839
857
|
payment_method_types?: Stripe.Emptyable<
|
|
840
858
|
Array<PaymentSettings.PaymentMethodType>
|
|
841
859
|
>;
|
|
860
|
+
|
|
861
|
+
/**
|
|
862
|
+
* Either `off`, or `on_subscription`. With `on_subscription` Stripe updates `subscription.default_payment_method` when a subscription payment succeeds.
|
|
863
|
+
*/
|
|
864
|
+
save_default_payment_method?: PaymentSettings.SaveDefaultPaymentMethod;
|
|
842
865
|
}
|
|
843
866
|
|
|
844
867
|
namespace PaymentSettings {
|
|
@@ -1024,12 +1047,15 @@ declare module 'stripe' {
|
|
|
1024
1047
|
| 'grabpay'
|
|
1025
1048
|
| 'ideal'
|
|
1026
1049
|
| 'konbini'
|
|
1050
|
+
| 'link'
|
|
1027
1051
|
| 'paynow'
|
|
1028
1052
|
| 'sepa_credit_transfer'
|
|
1029
1053
|
| 'sepa_debit'
|
|
1030
1054
|
| 'sofort'
|
|
1031
1055
|
| 'us_bank_account'
|
|
1032
1056
|
| 'wechat_pay';
|
|
1057
|
+
|
|
1058
|
+
type SaveDefaultPaymentMethod = 'off' | 'on_subscription';
|
|
1033
1059
|
}
|
|
1034
1060
|
|
|
1035
1061
|
interface PendingInvoiceItemInterval {
|
|
@@ -1082,7 +1108,7 @@ declare module 'stripe' {
|
|
|
1082
1108
|
application_fee_percent?: number;
|
|
1083
1109
|
|
|
1084
1110
|
/**
|
|
1085
|
-
* Automatic tax settings for this subscription.
|
|
1111
|
+
* Automatic tax settings for this subscription. We recommend you only include this parameter when the existing value is being changed.
|
|
1086
1112
|
*/
|
|
1087
1113
|
automatic_tax?: SubscriptionUpdateParams.AutomaticTax;
|
|
1088
1114
|
|
|
@@ -1138,6 +1164,11 @@ declare module 'stripe' {
|
|
|
1138
1164
|
*/
|
|
1139
1165
|
default_tax_rates?: Stripe.Emptyable<Array<string>>;
|
|
1140
1166
|
|
|
1167
|
+
/**
|
|
1168
|
+
* The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces.
|
|
1169
|
+
*/
|
|
1170
|
+
description?: string;
|
|
1171
|
+
|
|
1141
1172
|
/**
|
|
1142
1173
|
* Specifies which fields in the response should be expanded.
|
|
1143
1174
|
*/
|
|
@@ -1449,6 +1480,11 @@ declare module 'stripe' {
|
|
|
1449
1480
|
payment_method_types?: Stripe.Emptyable<
|
|
1450
1481
|
Array<PaymentSettings.PaymentMethodType>
|
|
1451
1482
|
>;
|
|
1483
|
+
|
|
1484
|
+
/**
|
|
1485
|
+
* Either `off`, or `on_subscription`. With `on_subscription` Stripe updates `subscription.default_payment_method` when a subscription payment succeeds.
|
|
1486
|
+
*/
|
|
1487
|
+
save_default_payment_method?: PaymentSettings.SaveDefaultPaymentMethod;
|
|
1452
1488
|
}
|
|
1453
1489
|
|
|
1454
1490
|
namespace PaymentSettings {
|
|
@@ -1634,12 +1670,15 @@ declare module 'stripe' {
|
|
|
1634
1670
|
| 'grabpay'
|
|
1635
1671
|
| 'ideal'
|
|
1636
1672
|
| 'konbini'
|
|
1673
|
+
| 'link'
|
|
1637
1674
|
| 'paynow'
|
|
1638
1675
|
| 'sepa_credit_transfer'
|
|
1639
1676
|
| 'sepa_debit'
|
|
1640
1677
|
| 'sofort'
|
|
1641
1678
|
| 'us_bank_account'
|
|
1642
1679
|
| 'wechat_pay';
|
|
1680
|
+
|
|
1681
|
+
type SaveDefaultPaymentMethod = 'off' | 'on_subscription';
|
|
1643
1682
|
}
|
|
1644
1683
|
|
|
1645
1684
|
interface PendingInvoiceItemInterval {
|
|
@@ -51,6 +51,8 @@ declare module 'stripe' {
|
|
|
51
51
|
|
|
52
52
|
chf?: Tipping.Chf;
|
|
53
53
|
|
|
54
|
+
czk?: Tipping.Czk;
|
|
55
|
+
|
|
54
56
|
dkk?: Tipping.Dkk;
|
|
55
57
|
|
|
56
58
|
eur?: Tipping.Eur;
|
|
@@ -124,6 +126,23 @@ declare module 'stripe' {
|
|
|
124
126
|
smart_tip_threshold?: number;
|
|
125
127
|
}
|
|
126
128
|
|
|
129
|
+
interface Czk {
|
|
130
|
+
/**
|
|
131
|
+
* Fixed amounts displayed when collecting a tip
|
|
132
|
+
*/
|
|
133
|
+
fixed_amounts: Array<number> | null;
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* Percentages displayed when collecting a tip
|
|
137
|
+
*/
|
|
138
|
+
percentages: Array<number> | null;
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
|
|
142
|
+
*/
|
|
143
|
+
smart_tip_threshold?: number;
|
|
144
|
+
}
|
|
145
|
+
|
|
127
146
|
interface Dkk {
|
|
128
147
|
/**
|
|
129
148
|
* Fixed amounts displayed when collecting a tip
|
|
@@ -369,6 +388,11 @@ declare module 'stripe' {
|
|
|
369
388
|
*/
|
|
370
389
|
chf?: Tipping.Chf;
|
|
371
390
|
|
|
391
|
+
/**
|
|
392
|
+
* Tipping configuration for CZK
|
|
393
|
+
*/
|
|
394
|
+
czk?: Tipping.Czk;
|
|
395
|
+
|
|
372
396
|
/**
|
|
373
397
|
* Tipping configuration for DKK
|
|
374
398
|
*/
|
|
@@ -472,6 +496,23 @@ declare module 'stripe' {
|
|
|
472
496
|
smart_tip_threshold?: number;
|
|
473
497
|
}
|
|
474
498
|
|
|
499
|
+
interface Czk {
|
|
500
|
+
/**
|
|
501
|
+
* Fixed amounts displayed when collecting a tip
|
|
502
|
+
*/
|
|
503
|
+
fixed_amounts?: Array<number>;
|
|
504
|
+
|
|
505
|
+
/**
|
|
506
|
+
* Percentages displayed when collecting a tip
|
|
507
|
+
*/
|
|
508
|
+
percentages?: Array<number>;
|
|
509
|
+
|
|
510
|
+
/**
|
|
511
|
+
* Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
|
|
512
|
+
*/
|
|
513
|
+
smart_tip_threshold?: number;
|
|
514
|
+
}
|
|
515
|
+
|
|
475
516
|
interface Dkk {
|
|
476
517
|
/**
|
|
477
518
|
* Fixed amounts displayed when collecting a tip
|
|
@@ -708,6 +749,11 @@ declare module 'stripe' {
|
|
|
708
749
|
*/
|
|
709
750
|
chf?: Tipping.Chf;
|
|
710
751
|
|
|
752
|
+
/**
|
|
753
|
+
* Tipping configuration for CZK
|
|
754
|
+
*/
|
|
755
|
+
czk?: Tipping.Czk;
|
|
756
|
+
|
|
711
757
|
/**
|
|
712
758
|
* Tipping configuration for DKK
|
|
713
759
|
*/
|
|
@@ -811,6 +857,23 @@ declare module 'stripe' {
|
|
|
811
857
|
smart_tip_threshold?: number;
|
|
812
858
|
}
|
|
813
859
|
|
|
860
|
+
interface Czk {
|
|
861
|
+
/**
|
|
862
|
+
* Fixed amounts displayed when collecting a tip
|
|
863
|
+
*/
|
|
864
|
+
fixed_amounts?: Array<number>;
|
|
865
|
+
|
|
866
|
+
/**
|
|
867
|
+
* Percentages displayed when collecting a tip
|
|
868
|
+
*/
|
|
869
|
+
percentages?: Array<number>;
|
|
870
|
+
|
|
871
|
+
/**
|
|
872
|
+
* Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
|
|
873
|
+
*/
|
|
874
|
+
smart_tip_threshold?: number;
|
|
875
|
+
}
|
|
876
|
+
|
|
814
877
|
interface Dkk {
|
|
815
878
|
/**
|
|
816
879
|
* Fixed amounts displayed when collecting a tip
|