stripe 9.8.0-beta.1 → 9.8.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 +13 -3
- package/VERSION +1 -1
- package/package.json +1 -1
- package/types/2020-08-27/Accounts.d.ts +87 -0
- package/types/2020-08-27/Customers.d.ts +62 -4
- package/types/2020-08-27/FundingInstructions.d.ts +73 -2
- package/types/2020-08-27/Invoices.d.ts +46 -3
- package/types/2020-08-27/Orders.d.ts +94 -12
- package/types/2020-08-27/PaymentIntents.d.ts +196 -19
- package/types/2020-08-27/PaymentMethods.d.ts +3 -3
- package/types/2020-08-27/Prices.d.ts +49 -0
- package/types/2020-08-27/Subscriptions.d.ts +46 -3
- package/types/2020-08-27/TestHelpers/Treasury/ReceivedCredits.d.ts +0 -26
- package/types/2020-08-27/TestHelpers/Treasury/ReceivedDebits.d.ts +0 -26
- package/types/2020-08-27/Treasury/OutboundTransfers.d.ts +0 -52
- package/types/2020-08-27/Treasury/ReceivedCredits.d.ts +0 -26
- package/types/2020-08-27/Treasury/ReceivedDebits.d.ts +0 -31
- package/types/lib.d.ts +14 -0
- package/types/test/typescriptTest.ts +4 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
-
## 9.8.0
|
|
4
|
-
* [#
|
|
5
|
-
|
|
3
|
+
## 9.8.0 - 2022-06-09
|
|
4
|
+
* [#1448](https://github.com/stripe/stripe-node/pull/1448) Add types for extra request options
|
|
5
|
+
* [#1446](https://github.com/stripe/stripe-node/pull/1446) API Updates
|
|
6
|
+
* Add support for `treasury` on `Account.settings`, `AccountCreateParams.settings`, and `AccountUpdateParams.settings`
|
|
7
|
+
* Add support for `rendering_options` on `CustomerCreateParams.invoice_settings` and `CustomerUpdateParams.invoice_settings`
|
|
8
|
+
* Add support for `eu_bank_transfer` on `CustomerCreateFundingInstructionsParams.bank_transfer`, `Invoice.payment_settings.payment_method_options.customer_balance.bank_transfer`, `InvoiceCreateParams.payment_settings.payment_method_options.customer_balance.bank_transfer`, `InvoiceUpdateParams.payment_settings.payment_method_options.customer_balance.bank_transfer`, `Order.payment.settings.payment_method_options.customer_balance.bank_transfer`, `OrderCreateParams.payment.settings.payment_method_options.customer_balance.bank_transfer`, `OrderUpdateParams.payment.settings.payment_method_options.customer_balance.bank_transfer`, `PaymentIntent.payment_method_options.customer_balance.bank_transfer`, `PaymentIntentConfirmParams.payment_method_options.customer_balance.bank_transfer`, `PaymentIntentCreateParams.payment_method_options.customer_balance.bank_transfer`, `PaymentIntentUpdateParams.payment_method_options.customer_balance.bank_transfer`, `Subscription.payment_settings.payment_method_options.customer_balance.bank_transfer`, `SubscriptionCreateParams.payment_settings.payment_method_options.customer_balance.bank_transfer`, and `SubscriptionUpdateParams.payment_settings.payment_method_options.customer_balance.bank_transfer`
|
|
9
|
+
* Change type of `CustomerCreateFundingInstructionsParams.bank_transfer.requested_address_types[]` from `literal('zengin')` to `enum('iban'|'sort_code'|'spei'|'zengin')`
|
|
10
|
+
* Change type of `CustomerCreateFundingInstructionsParams.bank_transfer.type`, `Order.payment.settings.payment_method_options.customer_balance.bank_transfer.type`, `OrderCreateParams.payment.settings.payment_method_options.customer_balance.bank_transfer.type`, `OrderUpdateParams.payment.settings.payment_method_options.customer_balance.bank_transfer.type`, `PaymentIntent.next_action.display_bank_transfer_instructions.type`, `PaymentIntent.payment_method_options.customer_balance.bank_transfer.type`, `PaymentIntentConfirmParams.payment_method_options.customer_balance.bank_transfer.type`, `PaymentIntentCreateParams.payment_method_options.customer_balance.bank_transfer.type`, and `PaymentIntentUpdateParams.payment_method_options.customer_balance.bank_transfer.type` from `literal('jp_bank_transfer')` to `enum('eu_bank_transfer'|'gb_bank_transfer'|'jp_bank_transfer'|'mx_bank_transfer')`
|
|
11
|
+
* Add support for `iban`, `sort_code`, and `spei` on `FundingInstructions.bank_transfer.financial_addresses[]` and `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[]`
|
|
12
|
+
* Add support for new values `bacs`, `fps`, and `spei` on enums `FundingInstructions.bank_transfer.financial_addresses[].supported_networks[]` and `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].supported_networks[]`
|
|
13
|
+
* Add support for new values `sort_code` and `spei` on enums `FundingInstructions.bank_transfer.financial_addresses[].type` and `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].type`
|
|
14
|
+
* Change type of `Order.payment.settings.payment_method_options.customer_balance.bank_transfer.requested_address_types[]`, `OrderCreateParams.payment.settings.payment_method_options.customer_balance.bank_transfer.requested_address_types[]`, `OrderUpdateParams.payment.settings.payment_method_options.customer_balance.bank_transfer.requested_address_types[]`, `PaymentIntent.payment_method_options.customer_balance.bank_transfer.requested_address_types[]`, `PaymentIntentConfirmParams.payment_method_options.customer_balance.bank_transfer.requested_address_types[]`, `PaymentIntentCreateParams.payment_method_options.customer_balance.bank_transfer.requested_address_types[]`, and `PaymentIntentUpdateParams.payment_method_options.customer_balance.bank_transfer.requested_address_types[]` from `literal('zengin')` to `enum`
|
|
15
|
+
* Add support for `custom_unit_amount` on `PriceCreateParams` and `Price`
|
|
6
16
|
|
|
7
17
|
## 9.7.0 - 2022-06-08
|
|
8
18
|
* [#1441](https://github.com/stripe/stripe-node/pull/1441) API Updates
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
9.8.0
|
|
1
|
+
9.8.0
|
package/package.json
CHANGED
|
@@ -874,6 +874,8 @@ declare module 'stripe' {
|
|
|
874
874
|
payouts?: Settings.Payouts;
|
|
875
875
|
|
|
876
876
|
sepa_debit_payments?: Settings.SepaDebitPayments;
|
|
877
|
+
|
|
878
|
+
treasury?: Settings.Treasury;
|
|
877
879
|
}
|
|
878
880
|
|
|
879
881
|
namespace Settings {
|
|
@@ -1025,6 +1027,29 @@ declare module 'stripe' {
|
|
|
1025
1027
|
*/
|
|
1026
1028
|
creditor_id?: string;
|
|
1027
1029
|
}
|
|
1030
|
+
|
|
1031
|
+
interface Treasury {
|
|
1032
|
+
tos_acceptance?: Treasury.TosAcceptance;
|
|
1033
|
+
}
|
|
1034
|
+
|
|
1035
|
+
namespace Treasury {
|
|
1036
|
+
interface TosAcceptance {
|
|
1037
|
+
/**
|
|
1038
|
+
* The Unix timestamp marking when the account representative accepted the service agreement.
|
|
1039
|
+
*/
|
|
1040
|
+
date: number | null;
|
|
1041
|
+
|
|
1042
|
+
/**
|
|
1043
|
+
* The IP address from which the account representative accepted the service agreement.
|
|
1044
|
+
*/
|
|
1045
|
+
ip: string | null;
|
|
1046
|
+
|
|
1047
|
+
/**
|
|
1048
|
+
* The user agent of the browser from which the account representative accepted the service agreement.
|
|
1049
|
+
*/
|
|
1050
|
+
user_agent?: string;
|
|
1051
|
+
}
|
|
1052
|
+
}
|
|
1028
1053
|
}
|
|
1029
1054
|
|
|
1030
1055
|
interface TosAcceptance {
|
|
@@ -2069,6 +2094,11 @@ declare module 'stripe' {
|
|
|
2069
2094
|
* Settings specific to the account's payouts.
|
|
2070
2095
|
*/
|
|
2071
2096
|
payouts?: Settings.Payouts;
|
|
2097
|
+
|
|
2098
|
+
/**
|
|
2099
|
+
* Settings specific to the account's Treasury FinancialAccounts.
|
|
2100
|
+
*/
|
|
2101
|
+
treasury?: Settings.Treasury;
|
|
2072
2102
|
}
|
|
2073
2103
|
|
|
2074
2104
|
namespace Settings {
|
|
@@ -2216,6 +2246,32 @@ declare module 'stripe' {
|
|
|
2216
2246
|
| 'wednesday';
|
|
2217
2247
|
}
|
|
2218
2248
|
}
|
|
2249
|
+
|
|
2250
|
+
interface Treasury {
|
|
2251
|
+
/**
|
|
2252
|
+
* Details on the account's acceptance of the Stripe Treasury Services Agreement.
|
|
2253
|
+
*/
|
|
2254
|
+
tos_acceptance?: Treasury.TosAcceptance;
|
|
2255
|
+
}
|
|
2256
|
+
|
|
2257
|
+
namespace Treasury {
|
|
2258
|
+
interface TosAcceptance {
|
|
2259
|
+
/**
|
|
2260
|
+
* The Unix timestamp marking when the account representative accepted the service agreement.
|
|
2261
|
+
*/
|
|
2262
|
+
date?: number;
|
|
2263
|
+
|
|
2264
|
+
/**
|
|
2265
|
+
* The IP address from which the account representative accepted the service agreement.
|
|
2266
|
+
*/
|
|
2267
|
+
ip?: string;
|
|
2268
|
+
|
|
2269
|
+
/**
|
|
2270
|
+
* The user agent of the browser from which the account representative accepted the service agreement.
|
|
2271
|
+
*/
|
|
2272
|
+
user_agent?: string;
|
|
2273
|
+
}
|
|
2274
|
+
}
|
|
2219
2275
|
}
|
|
2220
2276
|
|
|
2221
2277
|
interface TosAcceptance {
|
|
@@ -3200,6 +3256,11 @@ declare module 'stripe' {
|
|
|
3200
3256
|
* Settings specific to the account's payouts.
|
|
3201
3257
|
*/
|
|
3202
3258
|
payouts?: Settings.Payouts;
|
|
3259
|
+
|
|
3260
|
+
/**
|
|
3261
|
+
* Settings specific to the account's Treasury FinancialAccounts.
|
|
3262
|
+
*/
|
|
3263
|
+
treasury?: Settings.Treasury;
|
|
3203
3264
|
}
|
|
3204
3265
|
|
|
3205
3266
|
namespace Settings {
|
|
@@ -3347,6 +3408,32 @@ declare module 'stripe' {
|
|
|
3347
3408
|
| 'wednesday';
|
|
3348
3409
|
}
|
|
3349
3410
|
}
|
|
3411
|
+
|
|
3412
|
+
interface Treasury {
|
|
3413
|
+
/**
|
|
3414
|
+
* Details on the account's acceptance of the Stripe Treasury Services Agreement.
|
|
3415
|
+
*/
|
|
3416
|
+
tos_acceptance?: Treasury.TosAcceptance;
|
|
3417
|
+
}
|
|
3418
|
+
|
|
3419
|
+
namespace Treasury {
|
|
3420
|
+
interface TosAcceptance {
|
|
3421
|
+
/**
|
|
3422
|
+
* The Unix timestamp marking when the account representative accepted the service agreement.
|
|
3423
|
+
*/
|
|
3424
|
+
date?: number;
|
|
3425
|
+
|
|
3426
|
+
/**
|
|
3427
|
+
* The IP address from which the account representative accepted the service agreement.
|
|
3428
|
+
*/
|
|
3429
|
+
ip?: string;
|
|
3430
|
+
|
|
3431
|
+
/**
|
|
3432
|
+
* The user agent of the browser from which the account representative accepted the service agreement.
|
|
3433
|
+
*/
|
|
3434
|
+
user_agent?: string;
|
|
3435
|
+
}
|
|
3436
|
+
}
|
|
3350
3437
|
}
|
|
3351
3438
|
|
|
3352
3439
|
interface TosAcceptance {
|
|
@@ -418,6 +418,11 @@ declare module 'stripe' {
|
|
|
418
418
|
* Default footer to be displayed on invoices for this customer.
|
|
419
419
|
*/
|
|
420
420
|
footer?: string;
|
|
421
|
+
|
|
422
|
+
/**
|
|
423
|
+
* Default options for invoice PDF rendering for this customer.
|
|
424
|
+
*/
|
|
425
|
+
rendering_options?: InvoiceSettings.RenderingOptions;
|
|
421
426
|
}
|
|
422
427
|
|
|
423
428
|
namespace InvoiceSettings {
|
|
@@ -432,6 +437,19 @@ declare module 'stripe' {
|
|
|
432
437
|
*/
|
|
433
438
|
value: string;
|
|
434
439
|
}
|
|
440
|
+
|
|
441
|
+
interface RenderingOptions {
|
|
442
|
+
/**
|
|
443
|
+
* How line-item prices and amounts will be displayed with respect to tax on invoice PDFs.
|
|
444
|
+
*/
|
|
445
|
+
amount_tax_display?: Stripe.Emptyable<
|
|
446
|
+
RenderingOptions.AmountTaxDisplay
|
|
447
|
+
>;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
namespace RenderingOptions {
|
|
451
|
+
type AmountTaxDisplay = 'exclude_tax' | 'include_inclusive_tax';
|
|
452
|
+
}
|
|
435
453
|
}
|
|
436
454
|
|
|
437
455
|
interface Shipping {
|
|
@@ -685,6 +703,11 @@ declare module 'stripe' {
|
|
|
685
703
|
* Default footer to be displayed on invoices for this customer.
|
|
686
704
|
*/
|
|
687
705
|
footer?: string;
|
|
706
|
+
|
|
707
|
+
/**
|
|
708
|
+
* Default options for invoice PDF rendering for this customer.
|
|
709
|
+
*/
|
|
710
|
+
rendering_options?: InvoiceSettings.RenderingOptions;
|
|
688
711
|
}
|
|
689
712
|
|
|
690
713
|
namespace InvoiceSettings {
|
|
@@ -699,6 +722,19 @@ declare module 'stripe' {
|
|
|
699
722
|
*/
|
|
700
723
|
value: string;
|
|
701
724
|
}
|
|
725
|
+
|
|
726
|
+
interface RenderingOptions {
|
|
727
|
+
/**
|
|
728
|
+
* How line-item prices and amounts will be displayed with respect to tax on invoice PDFs.
|
|
729
|
+
*/
|
|
730
|
+
amount_tax_display?: Stripe.Emptyable<
|
|
731
|
+
RenderingOptions.AmountTaxDisplay
|
|
732
|
+
>;
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
namespace RenderingOptions {
|
|
736
|
+
type AmountTaxDisplay = 'exclude_tax' | 'include_inclusive_tax';
|
|
737
|
+
}
|
|
702
738
|
}
|
|
703
739
|
|
|
704
740
|
interface Shipping {
|
|
@@ -779,17 +815,39 @@ declare module 'stripe' {
|
|
|
779
815
|
|
|
780
816
|
namespace CustomerCreateFundingInstructionsParams {
|
|
781
817
|
interface BankTransfer {
|
|
818
|
+
/**
|
|
819
|
+
* Configuration for eu_bank_transfer funding type.
|
|
820
|
+
*/
|
|
821
|
+
eu_bank_transfer?: BankTransfer.EuBankTransfer;
|
|
822
|
+
|
|
782
823
|
/**
|
|
783
824
|
* List of address types that should be returned in the financial_addresses response. If not specified, all valid types will be returned.
|
|
784
825
|
*
|
|
785
|
-
* Permitted values include: `zengin`.
|
|
826
|
+
* Permitted values include: `sort_code`, `zengin`, `iban`, or `spei`.
|
|
786
827
|
*/
|
|
787
|
-
requested_address_types?: Array<
|
|
828
|
+
requested_address_types?: Array<BankTransfer.RequestedAddressType>;
|
|
788
829
|
|
|
789
830
|
/**
|
|
790
831
|
* The type of the `bank_transfer`
|
|
791
832
|
*/
|
|
792
|
-
type:
|
|
833
|
+
type: BankTransfer.Type;
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
namespace BankTransfer {
|
|
837
|
+
interface EuBankTransfer {
|
|
838
|
+
/**
|
|
839
|
+
* The desired country code of the bank account information. Permitted values include: `DE`, `ES`, `FR`, `IE`, or `NL`.
|
|
840
|
+
*/
|
|
841
|
+
country: string;
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
type RequestedAddressType = 'iban' | 'sort_code' | 'spei' | 'zengin';
|
|
845
|
+
|
|
846
|
+
type Type =
|
|
847
|
+
| 'eu_bank_transfer'
|
|
848
|
+
| 'gb_bank_transfer'
|
|
849
|
+
| 'jp_bank_transfer'
|
|
850
|
+
| 'mx_bank_transfer';
|
|
793
851
|
}
|
|
794
852
|
}
|
|
795
853
|
|
|
@@ -958,7 +1016,7 @@ declare module 'stripe' {
|
|
|
958
1016
|
): ApiListPromise<Stripe.PaymentMethod>;
|
|
959
1017
|
|
|
960
1018
|
/**
|
|
961
|
-
* Retrieves a PaymentMethod object.
|
|
1019
|
+
* Retrieves a PaymentMethod object for a given Customer.
|
|
962
1020
|
*/
|
|
963
1021
|
retrievePaymentMethod(
|
|
964
1022
|
customerId: string,
|
|
@@ -49,6 +49,21 @@ declare module 'stripe' {
|
|
|
49
49
|
|
|
50
50
|
namespace BankTransfer {
|
|
51
51
|
interface FinancialAddress {
|
|
52
|
+
/**
|
|
53
|
+
* Iban Records contain E.U. bank account details per the SEPA format.
|
|
54
|
+
*/
|
|
55
|
+
iban?: FinancialAddress.Iban;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Sort Code Records contain U.K. bank account details per the sort code format.
|
|
59
|
+
*/
|
|
60
|
+
sort_code?: FinancialAddress.SortCode;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* SPEI Records contain Mexico bank account details per the SPEI format.
|
|
64
|
+
*/
|
|
65
|
+
spei?: FinancialAddress.Spei;
|
|
66
|
+
|
|
52
67
|
/**
|
|
53
68
|
* The payment networks supported by this FinancialAddress
|
|
54
69
|
*/
|
|
@@ -66,9 +81,65 @@ declare module 'stripe' {
|
|
|
66
81
|
}
|
|
67
82
|
|
|
68
83
|
namespace FinancialAddress {
|
|
69
|
-
|
|
84
|
+
interface Iban {
|
|
85
|
+
/**
|
|
86
|
+
* The name of the person or business that owns the bank account
|
|
87
|
+
*/
|
|
88
|
+
account_holder_name: string;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* The BIC/SWIFT code of the account.
|
|
92
|
+
*/
|
|
93
|
+
bic: string;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
97
|
+
*/
|
|
98
|
+
country: string;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* The IBAN of the account.
|
|
102
|
+
*/
|
|
103
|
+
iban: string;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
interface SortCode {
|
|
107
|
+
/**
|
|
108
|
+
* The name of the person or business that owns the bank account
|
|
109
|
+
*/
|
|
110
|
+
account_holder_name: string;
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* The account number
|
|
114
|
+
*/
|
|
115
|
+
account_number: string;
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* The six-digit sort code
|
|
119
|
+
*/
|
|
120
|
+
sort_code: string;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
interface Spei {
|
|
124
|
+
/**
|
|
125
|
+
* The three-digit bank code
|
|
126
|
+
*/
|
|
127
|
+
bank_code: string;
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* The short banking institution name
|
|
131
|
+
*/
|
|
132
|
+
bank_name: string;
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* The CLABE number
|
|
136
|
+
*/
|
|
137
|
+
clabe: string;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
type SupportedNetwork = 'bacs' | 'fps' | 'sepa' | 'spei' | 'zengin';
|
|
70
141
|
|
|
71
|
-
type Type = 'iban' | 'zengin';
|
|
142
|
+
type Type = 'iban' | 'sort_code' | 'spei' | 'zengin';
|
|
72
143
|
|
|
73
144
|
interface Zengin {
|
|
74
145
|
/**
|
|
@@ -696,11 +696,26 @@ declare module 'stripe' {
|
|
|
696
696
|
|
|
697
697
|
namespace CustomerBalance {
|
|
698
698
|
interface BankTransfer {
|
|
699
|
+
eu_bank_transfer?: BankTransfer.EuBankTransfer;
|
|
700
|
+
|
|
699
701
|
/**
|
|
700
|
-
* The bank transfer type that can be used for funding. Permitted values include: `jp_bank_transfer`.
|
|
702
|
+
* The bank transfer type that can be used for funding. Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, or `mx_bank_transfer`.
|
|
701
703
|
*/
|
|
702
704
|
type: string | null;
|
|
703
705
|
}
|
|
706
|
+
|
|
707
|
+
namespace BankTransfer {
|
|
708
|
+
interface EuBankTransfer {
|
|
709
|
+
/**
|
|
710
|
+
* The desired country code of the bank account information. Permitted values include: `DE`, `ES`, `FR`, `IE`, or `NL`.
|
|
711
|
+
*/
|
|
712
|
+
country: EuBankTransfer.Country;
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
namespace EuBankTransfer {
|
|
716
|
+
type Country = 'DE' | 'ES' | 'FR' | 'IE' | 'NL';
|
|
717
|
+
}
|
|
718
|
+
}
|
|
704
719
|
}
|
|
705
720
|
|
|
706
721
|
interface Konbini {}
|
|
@@ -1139,10 +1154,24 @@ declare module 'stripe' {
|
|
|
1139
1154
|
namespace CustomerBalance {
|
|
1140
1155
|
interface BankTransfer {
|
|
1141
1156
|
/**
|
|
1142
|
-
*
|
|
1157
|
+
* Configuration for eu_bank_transfer funding type.
|
|
1158
|
+
*/
|
|
1159
|
+
eu_bank_transfer?: BankTransfer.EuBankTransfer;
|
|
1160
|
+
|
|
1161
|
+
/**
|
|
1162
|
+
* The bank transfer type that can be used for funding. Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, or `mx_bank_transfer`.
|
|
1143
1163
|
*/
|
|
1144
1164
|
type?: string;
|
|
1145
1165
|
}
|
|
1166
|
+
|
|
1167
|
+
namespace BankTransfer {
|
|
1168
|
+
interface EuBankTransfer {
|
|
1169
|
+
/**
|
|
1170
|
+
* The desired country code of the bank account information. Permitted values include: `DE`, `ES`, `FR`, `IE`, or `NL`.
|
|
1171
|
+
*/
|
|
1172
|
+
country: string;
|
|
1173
|
+
}
|
|
1174
|
+
}
|
|
1146
1175
|
}
|
|
1147
1176
|
|
|
1148
1177
|
interface Konbini {}
|
|
@@ -1480,10 +1509,24 @@ declare module 'stripe' {
|
|
|
1480
1509
|
namespace CustomerBalance {
|
|
1481
1510
|
interface BankTransfer {
|
|
1482
1511
|
/**
|
|
1483
|
-
*
|
|
1512
|
+
* Configuration for eu_bank_transfer funding type.
|
|
1513
|
+
*/
|
|
1514
|
+
eu_bank_transfer?: BankTransfer.EuBankTransfer;
|
|
1515
|
+
|
|
1516
|
+
/**
|
|
1517
|
+
* The bank transfer type that can be used for funding. Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, or `mx_bank_transfer`.
|
|
1484
1518
|
*/
|
|
1485
1519
|
type?: string;
|
|
1486
1520
|
}
|
|
1521
|
+
|
|
1522
|
+
namespace BankTransfer {
|
|
1523
|
+
interface EuBankTransfer {
|
|
1524
|
+
/**
|
|
1525
|
+
* The desired country code of the bank account information. Permitted values include: `DE`, `ES`, `FR`, `IE`, or `NL`.
|
|
1526
|
+
*/
|
|
1527
|
+
country: string;
|
|
1528
|
+
}
|
|
1529
|
+
}
|
|
1487
1530
|
}
|
|
1488
1531
|
|
|
1489
1532
|
interface Konbini {}
|
|
@@ -405,17 +405,47 @@ declare module 'stripe' {
|
|
|
405
405
|
|
|
406
406
|
namespace CustomerBalance {
|
|
407
407
|
interface BankTransfer {
|
|
408
|
+
eu_bank_transfer?: BankTransfer.EuBankTransfer;
|
|
409
|
+
|
|
408
410
|
/**
|
|
409
411
|
* List of address types that should be returned in the financial_addresses response. If not specified, all valid types will be returned.
|
|
410
412
|
*
|
|
411
|
-
* Permitted values include: `zengin`.
|
|
413
|
+
* Permitted values include: `sort_code`, `zengin`, `iban`, or `spei`.
|
|
412
414
|
*/
|
|
413
|
-
requested_address_types?: Array<
|
|
415
|
+
requested_address_types?: Array<
|
|
416
|
+
BankTransfer.RequestedAddressType
|
|
417
|
+
>;
|
|
414
418
|
|
|
415
419
|
/**
|
|
416
|
-
* The bank transfer type that this PaymentIntent is allowed to use for funding Permitted values include: `jp_bank_transfer`.
|
|
420
|
+
* The bank transfer type that this PaymentIntent is allowed to use for funding Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, or `mx_bank_transfer`.
|
|
417
421
|
*/
|
|
418
|
-
type:
|
|
422
|
+
type: BankTransfer.Type | null;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
namespace BankTransfer {
|
|
426
|
+
interface EuBankTransfer {
|
|
427
|
+
/**
|
|
428
|
+
* The desired country code of the bank account information. Permitted values include: `DE`, `ES`, `FR`, `IE`, or `NL`.
|
|
429
|
+
*/
|
|
430
|
+
country: EuBankTransfer.Country;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
namespace EuBankTransfer {
|
|
434
|
+
type Country = 'DE' | 'ES' | 'FR' | 'IE' | 'NL';
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
type RequestedAddressType =
|
|
438
|
+
| 'iban'
|
|
439
|
+
| 'sepa'
|
|
440
|
+
| 'sort_code'
|
|
441
|
+
| 'spei'
|
|
442
|
+
| 'zengin';
|
|
443
|
+
|
|
444
|
+
type Type =
|
|
445
|
+
| 'eu_bank_transfer'
|
|
446
|
+
| 'gb_bank_transfer'
|
|
447
|
+
| 'jp_bank_transfer'
|
|
448
|
+
| 'mx_bank_transfer';
|
|
419
449
|
}
|
|
420
450
|
}
|
|
421
451
|
|
|
@@ -1363,17 +1393,43 @@ declare module 'stripe' {
|
|
|
1363
1393
|
|
|
1364
1394
|
namespace CustomerBalance {
|
|
1365
1395
|
interface BankTransfer {
|
|
1396
|
+
eu_bank_transfer?: BankTransfer.EuBankTransfer;
|
|
1397
|
+
|
|
1366
1398
|
/**
|
|
1367
1399
|
* List of address types that should be returned in the financial_addresses response. If not specified, all valid types will be returned.
|
|
1368
1400
|
*
|
|
1369
|
-
* Permitted values include: `zengin`.
|
|
1401
|
+
* Permitted values include: `sort_code`, `zengin`, `iban`, or `spei`.
|
|
1370
1402
|
*/
|
|
1371
|
-
requested_address_types?: Array<
|
|
1403
|
+
requested_address_types?: Array<
|
|
1404
|
+
BankTransfer.RequestedAddressType
|
|
1405
|
+
>;
|
|
1372
1406
|
|
|
1373
1407
|
/**
|
|
1374
|
-
* The list of bank transfer types that this PaymentIntent is allowed to use for funding Permitted values include: `jp_bank_transfer`.
|
|
1408
|
+
* The list of bank transfer types that this PaymentIntent is allowed to use for funding Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, or `mx_bank_transfer`.
|
|
1375
1409
|
*/
|
|
1376
|
-
type:
|
|
1410
|
+
type: BankTransfer.Type;
|
|
1411
|
+
}
|
|
1412
|
+
|
|
1413
|
+
namespace BankTransfer {
|
|
1414
|
+
interface EuBankTransfer {
|
|
1415
|
+
/**
|
|
1416
|
+
* The desired country code of the bank account information. Permitted values include: `DE`, `ES`, `FR`, `IE`, or `NL`.
|
|
1417
|
+
*/
|
|
1418
|
+
country: string;
|
|
1419
|
+
}
|
|
1420
|
+
|
|
1421
|
+
type RequestedAddressType =
|
|
1422
|
+
| 'iban'
|
|
1423
|
+
| 'sepa'
|
|
1424
|
+
| 'sort_code'
|
|
1425
|
+
| 'spei'
|
|
1426
|
+
| 'zengin';
|
|
1427
|
+
|
|
1428
|
+
type Type =
|
|
1429
|
+
| 'eu_bank_transfer'
|
|
1430
|
+
| 'gb_bank_transfer'
|
|
1431
|
+
| 'jp_bank_transfer'
|
|
1432
|
+
| 'mx_bank_transfer';
|
|
1377
1433
|
}
|
|
1378
1434
|
}
|
|
1379
1435
|
|
|
@@ -2385,17 +2441,43 @@ declare module 'stripe' {
|
|
|
2385
2441
|
|
|
2386
2442
|
namespace CustomerBalance {
|
|
2387
2443
|
interface BankTransfer {
|
|
2444
|
+
eu_bank_transfer?: BankTransfer.EuBankTransfer;
|
|
2445
|
+
|
|
2388
2446
|
/**
|
|
2389
2447
|
* List of address types that should be returned in the financial_addresses response. If not specified, all valid types will be returned.
|
|
2390
2448
|
*
|
|
2391
|
-
* Permitted values include: `zengin`.
|
|
2449
|
+
* Permitted values include: `sort_code`, `zengin`, `iban`, or `spei`.
|
|
2392
2450
|
*/
|
|
2393
|
-
requested_address_types?: Array<
|
|
2451
|
+
requested_address_types?: Array<
|
|
2452
|
+
BankTransfer.RequestedAddressType
|
|
2453
|
+
>;
|
|
2394
2454
|
|
|
2395
2455
|
/**
|
|
2396
|
-
* The list of bank transfer types that this PaymentIntent is allowed to use for funding Permitted values include: `jp_bank_transfer`.
|
|
2456
|
+
* The list of bank transfer types that this PaymentIntent is allowed to use for funding Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, or `mx_bank_transfer`.
|
|
2397
2457
|
*/
|
|
2398
|
-
type:
|
|
2458
|
+
type: BankTransfer.Type;
|
|
2459
|
+
}
|
|
2460
|
+
|
|
2461
|
+
namespace BankTransfer {
|
|
2462
|
+
interface EuBankTransfer {
|
|
2463
|
+
/**
|
|
2464
|
+
* The desired country code of the bank account information. Permitted values include: `DE`, `ES`, `FR`, `IE`, or `NL`.
|
|
2465
|
+
*/
|
|
2466
|
+
country: string;
|
|
2467
|
+
}
|
|
2468
|
+
|
|
2469
|
+
type RequestedAddressType =
|
|
2470
|
+
| 'iban'
|
|
2471
|
+
| 'sepa'
|
|
2472
|
+
| 'sort_code'
|
|
2473
|
+
| 'spei'
|
|
2474
|
+
| 'zengin';
|
|
2475
|
+
|
|
2476
|
+
type Type =
|
|
2477
|
+
| 'eu_bank_transfer'
|
|
2478
|
+
| 'gb_bank_transfer'
|
|
2479
|
+
| 'jp_bank_transfer'
|
|
2480
|
+
| 'mx_bank_transfer';
|
|
2399
2481
|
}
|
|
2400
2482
|
}
|
|
2401
2483
|
|