stripe 16.8.0 → 16.9.0-beta.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 +805 -118
- package/README.md +33 -0
- package/VERSION +1 -1
- package/cjs/RequestSender.js +66 -5
- package/cjs/StripeResource.js +1 -1
- package/cjs/apiVersion.js +2 -1
- package/cjs/multipart.js +1 -1
- package/cjs/resources/AccountNotices.js +21 -0
- package/cjs/resources/Capital/FinancingOffers.js +21 -0
- package/cjs/resources/Capital/FinancingSummary.js +12 -0
- package/cjs/resources/Capital/FinancingTransactions.js +17 -0
- package/cjs/resources/FinancialConnections/Accounts.js +5 -0
- package/cjs/resources/FinancialConnections/Institutions.js +17 -0
- package/cjs/resources/GiftCards/Cards.js +23 -0
- package/cjs/resources/GiftCards/Transactions.js +33 -0
- package/cjs/resources/Invoices.js +17 -0
- package/cjs/resources/Issuing/CreditUnderwritingRecords.js +33 -0
- package/cjs/resources/Margins.js +22 -0
- package/cjs/resources/OAuth.js +1 -1
- package/cjs/resources/Orders.js +24 -0
- package/cjs/resources/PaymentIntents.js +4 -0
- package/cjs/resources/QuotePhases.js +22 -0
- package/cjs/resources/Quotes.js +32 -0
- package/cjs/resources/SubscriptionSchedules.js +4 -0
- package/cjs/resources/Tax/Associations.js +9 -0
- package/cjs/resources/Tax/Forms.js +20 -0
- package/cjs/resources/Terminal/Readers.js +12 -0
- package/cjs/resources.js +40 -10
- package/cjs/stripe.core.js +6 -3
- package/cjs/utils.js +30 -3
- package/esm/RequestSender.js +67 -6
- package/esm/StripeResource.js +2 -2
- package/esm/apiVersion.js +1 -0
- package/esm/multipart.js +2 -2
- package/esm/resources/AccountNotices.js +18 -0
- package/esm/resources/Capital/FinancingOffers.js +18 -0
- package/esm/resources/Capital/FinancingSummary.js +9 -0
- package/esm/resources/Capital/FinancingTransactions.js +14 -0
- package/esm/resources/FinancialConnections/Accounts.js +5 -0
- package/esm/resources/FinancialConnections/Institutions.js +14 -0
- package/esm/resources/GiftCards/Cards.js +20 -0
- package/esm/resources/GiftCards/Transactions.js +30 -0
- package/esm/resources/Invoices.js +17 -0
- package/esm/resources/Issuing/CreditUnderwritingRecords.js +30 -0
- package/esm/resources/Margins.js +19 -0
- package/esm/resources/OAuth.js +2 -2
- package/esm/resources/Orders.js +21 -0
- package/esm/resources/PaymentIntents.js +4 -0
- package/esm/resources/QuotePhases.js +19 -0
- package/esm/resources/Quotes.js +32 -0
- package/esm/resources/SubscriptionSchedules.js +4 -0
- package/esm/resources/Tax/Associations.js +6 -0
- package/esm/resources/Tax/Forms.js +17 -0
- package/esm/resources/Terminal/Readers.js +12 -0
- package/esm/resources.js +26 -0
- package/esm/stripe.core.js +6 -3
- package/esm/utils.js +27 -1
- package/package.json +1 -1
- package/types/AccountLinksResource.d.ts +5 -1
- package/types/AccountNotices.d.ts +113 -0
- package/types/AccountNoticesResource.d.ts +98 -0
- package/types/AccountSessions.d.ts +45 -0
- package/types/AccountSessionsResource.d.ts +260 -0
- package/types/Accounts.d.ts +106 -1
- package/types/AccountsResource.d.ts +246 -0
- package/types/Capital/FinancingOffers.d.ts +188 -0
- package/types/Capital/FinancingOffersResource.d.ts +97 -0
- package/types/Capital/FinancingSummary.d.ts +106 -0
- package/types/Capital/FinancingSummaryResource.d.ts +27 -0
- package/types/Capital/FinancingTransactions.d.ts +135 -0
- package/types/Capital/FinancingTransactionsResource.d.ts +68 -0
- package/types/Charges.d.ts +67 -0
- package/types/ChargesResource.d.ts +1294 -0
- package/types/Checkout/Sessions.d.ts +185 -4
- package/types/Checkout/SessionsResource.d.ts +349 -5
- package/types/ConfirmationTokens.d.ts +62 -0
- package/types/Coupons.d.ts +1 -1
- package/types/CouponsResource.d.ts +1 -1
- package/types/CreditNotes.d.ts +21 -0
- package/types/CreditNotesResource.d.ts +51 -0
- package/types/CustomersResource.d.ts +2 -0
- package/types/Disputes.d.ts +158 -0
- package/types/DisputesResource.d.ts +120 -0
- package/types/EventTypes.d.ts +460 -0
- package/types/Events.d.ts +85 -0
- package/types/FinancialConnections/AccountInferredBalances.d.ts +38 -0
- package/types/FinancialConnections/Accounts.d.ts +29 -1
- package/types/FinancialConnections/AccountsResource.d.ts +35 -3
- package/types/FinancialConnections/Institutions.d.ts +93 -0
- package/types/FinancialConnections/InstitutionsResource.d.ts +47 -0
- package/types/FinancialConnections/Sessions.d.ts +49 -1
- package/types/FinancialConnections/SessionsResource.d.ts +38 -1
- package/types/GiftCards/Cards.d.ts +118 -0
- package/types/GiftCards/CardsResource.d.ts +159 -0
- package/types/GiftCards/Transactions.d.ts +129 -0
- package/types/GiftCards/TransactionsResource.d.ts +201 -0
- package/types/InvoiceItems.d.ts +5 -0
- package/types/InvoiceItemsResource.d.ts +98 -0
- package/types/InvoiceLineItems.d.ts +22 -0
- package/types/InvoicePayments.d.ts +138 -0
- package/types/Invoices.d.ts +116 -1
- package/types/InvoicesResource.d.ts +5455 -1797
- package/types/Issuing/CardholdersResource.d.ts +2 -1
- package/types/Issuing/CreditUnderwritingRecords.d.ts +446 -0
- package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +1017 -0
- package/types/LineItems.d.ts +7 -0
- package/types/Mandates.d.ts +77 -0
- package/types/Margins.d.ts +56 -0
- package/types/MarginsResource.d.ts +114 -0
- package/types/Orders.d.ts +1083 -0
- package/types/OrdersResource.d.ts +2763 -0
- package/types/PaymentIntents.d.ts +487 -1
- package/types/PaymentIntentsResource.d.ts +6954 -3438
- package/types/PaymentLinks.d.ts +1 -0
- package/types/PaymentLinksResource.d.ts +2 -0
- package/types/PaymentMethodConfigurations.d.ts +36 -0
- package/types/PaymentMethodConfigurationsResource.d.ts +50 -0
- package/types/PaymentMethods.d.ts +62 -0
- package/types/PaymentMethodsResource.d.ts +110 -0
- package/types/Prices.d.ts +22 -0
- package/types/PricesResource.d.ts +22 -0
- package/types/Products.d.ts +39 -0
- package/types/ProductsResource.d.ts +36 -0
- package/types/QuoteLines.d.ts +634 -0
- package/types/QuotePhases.d.ts +198 -0
- package/types/QuotePhasesResource.d.ts +67 -0
- package/types/QuotePreviewInvoices.d.ts +1530 -0
- package/types/QuotePreviewSubscriptionSchedules.d.ts +814 -0
- package/types/Quotes.d.ts +596 -1
- package/types/QuotesResource.d.ts +3174 -265
- package/types/SetupAttempts.d.ts +9 -0
- package/types/SetupIntents.d.ts +110 -1
- package/types/SetupIntentsResource.d.ts +498 -3
- package/types/Sources.d.ts +23 -0
- package/types/SubscriptionItems.d.ts +21 -0
- package/types/SubscriptionItemsResource.d.ts +109 -0
- package/types/SubscriptionSchedules.d.ts +200 -0
- package/types/SubscriptionSchedulesResource.d.ts +1234 -16
- package/types/Subscriptions.d.ts +82 -1
- package/types/SubscriptionsResource.d.ts +347 -2
- package/types/Tax/Associations.d.ts +126 -0
- package/types/Tax/AssociationsResource.d.ts +29 -0
- package/types/Tax/Forms.d.ts +133 -0
- package/types/Tax/FormsResource.d.ts +90 -0
- package/types/Terminal/Readers.d.ts +278 -0
- package/types/Terminal/ReadersResource.d.ts +208 -0
- package/types/TestHelpers/ConfirmationTokensResource.d.ts +55 -0
- package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +26 -0
- package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +26 -0
- package/types/Treasury/FinancialAccounts.d.ts +5 -0
- package/types/Treasury/FinancialAccountsResource.d.ts +10 -0
- package/types/Treasury/OutboundTransfers.d.ts +26 -0
- package/types/Treasury/OutboundTransfersResource.d.ts +26 -0
- package/types/Treasury/ReceivedCredits.d.ts +26 -0
- package/types/Treasury/ReceivedDebits.d.ts +31 -0
- package/types/WebhookEndpointsResource.d.ts +54 -0
- package/types/index.d.ts +67 -0
- package/types/lib.d.ts +12 -0
|
@@ -104,6 +104,187 @@ declare module 'stripe' {
|
|
|
104
104
|
expand?: Array<string>;
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
+
interface ReaderCollectInputsParams {
|
|
108
|
+
/**
|
|
109
|
+
* List of inputs to be collected using the Reader
|
|
110
|
+
*/
|
|
111
|
+
inputs: Array<ReaderCollectInputsParams.Input>;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Specifies which fields in the response should be expanded.
|
|
115
|
+
*/
|
|
116
|
+
expand?: Array<string>;
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* 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`.
|
|
120
|
+
*/
|
|
121
|
+
metadata?: Stripe.MetadataParam;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
namespace ReaderCollectInputsParams {
|
|
125
|
+
interface Input {
|
|
126
|
+
/**
|
|
127
|
+
* Customize the text which will be displayed while collecting this input
|
|
128
|
+
*/
|
|
129
|
+
custom_text: Input.CustomText;
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Indicate that this input is required, disabling the skip button
|
|
133
|
+
*/
|
|
134
|
+
required?: boolean;
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* Options for the `selection` input
|
|
138
|
+
*/
|
|
139
|
+
selection?: Input.Selection;
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* List of toggles to be displayed and customization for the toggles
|
|
143
|
+
*/
|
|
144
|
+
toggles?: Array<Input.Toggle>;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* The type of input to collect
|
|
148
|
+
*/
|
|
149
|
+
type: Input.Type;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
namespace Input {
|
|
153
|
+
interface CustomText {
|
|
154
|
+
/**
|
|
155
|
+
* The description which will be displayed when collecting this input
|
|
156
|
+
*/
|
|
157
|
+
description?: string;
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* The skip button text
|
|
161
|
+
*/
|
|
162
|
+
skip_button?: string;
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* The submit button text
|
|
166
|
+
*/
|
|
167
|
+
submit_button?: string;
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* The title which will be displayed when collecting this input
|
|
171
|
+
*/
|
|
172
|
+
title: string;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
interface Selection {
|
|
176
|
+
/**
|
|
177
|
+
* List of choices for the `selection` input
|
|
178
|
+
*/
|
|
179
|
+
choices: Array<Selection.Choice>;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
namespace Selection {
|
|
183
|
+
interface Choice {
|
|
184
|
+
/**
|
|
185
|
+
* The style of the button which will be shown for this choice
|
|
186
|
+
*/
|
|
187
|
+
style?: Choice.Style;
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* The text which will be shown on the button for this choice
|
|
191
|
+
*/
|
|
192
|
+
value: string;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
namespace Choice {
|
|
196
|
+
type Style = 'primary' | 'secondary';
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
interface Toggle {
|
|
201
|
+
/**
|
|
202
|
+
* The default value of the toggle
|
|
203
|
+
*/
|
|
204
|
+
default_value?: Toggle.DefaultValue;
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* The description which will be displayed for the toggle
|
|
208
|
+
*/
|
|
209
|
+
description?: string;
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* The title which will be displayed for the toggle
|
|
213
|
+
*/
|
|
214
|
+
title?: string;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
namespace Toggle {
|
|
218
|
+
type DefaultValue = 'disabled' | 'enabled';
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
type Type =
|
|
222
|
+
| 'email'
|
|
223
|
+
| 'numeric'
|
|
224
|
+
| 'phone'
|
|
225
|
+
| 'selection'
|
|
226
|
+
| 'signature'
|
|
227
|
+
| 'text';
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
interface ReaderCollectPaymentMethodParams {
|
|
232
|
+
/**
|
|
233
|
+
* PaymentIntent ID
|
|
234
|
+
*/
|
|
235
|
+
payment_intent: string;
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* Configuration overrides
|
|
239
|
+
*/
|
|
240
|
+
collect_config?: ReaderCollectPaymentMethodParams.CollectConfig;
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* Specifies which fields in the response should be expanded.
|
|
244
|
+
*/
|
|
245
|
+
expand?: Array<string>;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
namespace ReaderCollectPaymentMethodParams {
|
|
249
|
+
interface CollectConfig {
|
|
250
|
+
/**
|
|
251
|
+
* Enables cancel button on transaction screens.
|
|
252
|
+
*/
|
|
253
|
+
enable_customer_cancellation?: boolean;
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* Override showing a tipping selection screen on this transaction.
|
|
257
|
+
*/
|
|
258
|
+
skip_tipping?: boolean;
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* Tipping configuration for this transaction.
|
|
262
|
+
*/
|
|
263
|
+
tipping?: CollectConfig.Tipping;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
namespace CollectConfig {
|
|
267
|
+
interface Tipping {
|
|
268
|
+
/**
|
|
269
|
+
* Amount used to calculate tip suggestions on tipping selection screen for this transaction. Must be a positive integer in the smallest currency unit (e.g., 100 cents to represent $1.00 or 100 to represent ¥100, a zero-decimal currency).
|
|
270
|
+
*/
|
|
271
|
+
amount_eligible?: number;
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
interface ReaderConfirmPaymentIntentParams {
|
|
277
|
+
/**
|
|
278
|
+
* PaymentIntent ID
|
|
279
|
+
*/
|
|
280
|
+
payment_intent: string;
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* Specifies which fields in the response should be expanded.
|
|
284
|
+
*/
|
|
285
|
+
expand?: Array<string>;
|
|
286
|
+
}
|
|
287
|
+
|
|
107
288
|
interface ReaderProcessPaymentIntentParams {
|
|
108
289
|
/**
|
|
109
290
|
* PaymentIntent ID
|
|
@@ -369,6 +550,33 @@ declare module 'stripe' {
|
|
|
369
550
|
options?: RequestOptions
|
|
370
551
|
): Promise<Stripe.Response<Stripe.Terminal.Reader>>;
|
|
371
552
|
|
|
553
|
+
/**
|
|
554
|
+
* Initiates an input collection flow on a Reader.
|
|
555
|
+
*/
|
|
556
|
+
collectInputs(
|
|
557
|
+
id: string,
|
|
558
|
+
params: ReaderCollectInputsParams,
|
|
559
|
+
options?: RequestOptions
|
|
560
|
+
): Promise<Stripe.Response<Stripe.Terminal.Reader>>;
|
|
561
|
+
|
|
562
|
+
/**
|
|
563
|
+
* Initiates a payment flow on a Reader and updates the PaymentIntent with card details before manual confirmation.
|
|
564
|
+
*/
|
|
565
|
+
collectPaymentMethod(
|
|
566
|
+
id: string,
|
|
567
|
+
params: ReaderCollectPaymentMethodParams,
|
|
568
|
+
options?: RequestOptions
|
|
569
|
+
): Promise<Stripe.Response<Stripe.Terminal.Reader>>;
|
|
570
|
+
|
|
571
|
+
/**
|
|
572
|
+
* Finalizes a payment on a Reader.
|
|
573
|
+
*/
|
|
574
|
+
confirmPaymentIntent(
|
|
575
|
+
id: string,
|
|
576
|
+
params: ReaderConfirmPaymentIntentParams,
|
|
577
|
+
options?: RequestOptions
|
|
578
|
+
): Promise<Stripe.Response<Stripe.Terminal.Reader>>;
|
|
579
|
+
|
|
372
580
|
/**
|
|
373
581
|
* Initiates a payment flow on a Reader.
|
|
374
582
|
*/
|
|
@@ -189,6 +189,11 @@ declare module 'stripe' {
|
|
|
189
189
|
*/
|
|
190
190
|
paypal?: PaymentMethodData.Paypal;
|
|
191
191
|
|
|
192
|
+
/**
|
|
193
|
+
* If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
|
|
194
|
+
*/
|
|
195
|
+
payto?: PaymentMethodData.Payto;
|
|
196
|
+
|
|
192
197
|
/**
|
|
193
198
|
* If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
|
|
194
199
|
*/
|
|
@@ -204,6 +209,11 @@ declare module 'stripe' {
|
|
|
204
209
|
*/
|
|
205
210
|
radar_options?: PaymentMethodData.RadarOptions;
|
|
206
211
|
|
|
212
|
+
/**
|
|
213
|
+
* If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
|
|
214
|
+
*/
|
|
215
|
+
rechnung?: PaymentMethodData.Rechnung;
|
|
216
|
+
|
|
207
217
|
/**
|
|
208
218
|
* If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
|
209
219
|
*/
|
|
@@ -528,6 +538,23 @@ declare module 'stripe' {
|
|
|
528
538
|
|
|
529
539
|
interface Paypal {}
|
|
530
540
|
|
|
541
|
+
interface Payto {
|
|
542
|
+
/**
|
|
543
|
+
* The account number for the bank account.
|
|
544
|
+
*/
|
|
545
|
+
account_number?: string;
|
|
546
|
+
|
|
547
|
+
/**
|
|
548
|
+
* Bank-State-Branch number of the bank account.
|
|
549
|
+
*/
|
|
550
|
+
bsb_number?: string;
|
|
551
|
+
|
|
552
|
+
/**
|
|
553
|
+
* The PayID alias for the bank account.
|
|
554
|
+
*/
|
|
555
|
+
pay_id?: string;
|
|
556
|
+
}
|
|
557
|
+
|
|
531
558
|
interface Pix {}
|
|
532
559
|
|
|
533
560
|
interface Promptpay {}
|
|
@@ -539,6 +566,32 @@ declare module 'stripe' {
|
|
|
539
566
|
session?: string;
|
|
540
567
|
}
|
|
541
568
|
|
|
569
|
+
interface Rechnung {
|
|
570
|
+
/**
|
|
571
|
+
* Customer's date of birth
|
|
572
|
+
*/
|
|
573
|
+
dob: Rechnung.Dob;
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
namespace Rechnung {
|
|
577
|
+
interface Dob {
|
|
578
|
+
/**
|
|
579
|
+
* The day of birth, between 1 and 31.
|
|
580
|
+
*/
|
|
581
|
+
day: number;
|
|
582
|
+
|
|
583
|
+
/**
|
|
584
|
+
* The month of birth, between 1 and 12.
|
|
585
|
+
*/
|
|
586
|
+
month: number;
|
|
587
|
+
|
|
588
|
+
/**
|
|
589
|
+
* The four-digit year of birth.
|
|
590
|
+
*/
|
|
591
|
+
year: number;
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
|
|
542
595
|
interface RevolutPay {}
|
|
543
596
|
|
|
544
597
|
interface SepaDebit {
|
|
@@ -590,8 +643,10 @@ declare module 'stripe' {
|
|
|
590
643
|
| 'p24'
|
|
591
644
|
| 'paynow'
|
|
592
645
|
| 'paypal'
|
|
646
|
+
| 'payto'
|
|
593
647
|
| 'pix'
|
|
594
648
|
| 'promptpay'
|
|
649
|
+
| 'rechnung'
|
|
595
650
|
| 'revolut_pay'
|
|
596
651
|
| 'sepa_debit'
|
|
597
652
|
| 'sofort'
|
|
@@ -39,6 +39,11 @@ declare module 'stripe' {
|
|
|
39
39
|
* Initiating payment method details for the object.
|
|
40
40
|
*/
|
|
41
41
|
initiating_payment_method_details?: ReceivedCreditCreateParams.InitiatingPaymentMethodDetails;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Details about the network used for the ReceivedCredit.
|
|
45
|
+
*/
|
|
46
|
+
network_details?: ReceivedCreditCreateParams.NetworkDetails;
|
|
42
47
|
}
|
|
43
48
|
|
|
44
49
|
namespace ReceivedCreditCreateParams {
|
|
@@ -74,6 +79,27 @@ declare module 'stripe' {
|
|
|
74
79
|
}
|
|
75
80
|
|
|
76
81
|
type Network = 'ach' | 'us_domestic_wire';
|
|
82
|
+
|
|
83
|
+
interface NetworkDetails {
|
|
84
|
+
/**
|
|
85
|
+
* Optional fields for `ach`.
|
|
86
|
+
*/
|
|
87
|
+
ach?: NetworkDetails.Ach;
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* The type of flow that originated the ReceivedCredit.
|
|
91
|
+
*/
|
|
92
|
+
type: 'ach';
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
namespace NetworkDetails {
|
|
96
|
+
interface Ach {
|
|
97
|
+
/**
|
|
98
|
+
* ACH Addenda record
|
|
99
|
+
*/
|
|
100
|
+
addenda?: string;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
77
103
|
}
|
|
78
104
|
}
|
|
79
105
|
|
|
@@ -39,6 +39,11 @@ declare module 'stripe' {
|
|
|
39
39
|
* Initiating payment method details for the object.
|
|
40
40
|
*/
|
|
41
41
|
initiating_payment_method_details?: ReceivedDebitCreateParams.InitiatingPaymentMethodDetails;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Details about the network used for the ReceivedDebit.
|
|
45
|
+
*/
|
|
46
|
+
network_details?: ReceivedDebitCreateParams.NetworkDetails;
|
|
42
47
|
}
|
|
43
48
|
|
|
44
49
|
namespace ReceivedDebitCreateParams {
|
|
@@ -72,6 +77,27 @@ declare module 'stripe' {
|
|
|
72
77
|
routing_number?: string;
|
|
73
78
|
}
|
|
74
79
|
}
|
|
80
|
+
|
|
81
|
+
interface NetworkDetails {
|
|
82
|
+
/**
|
|
83
|
+
* Optional fields for `ach`.
|
|
84
|
+
*/
|
|
85
|
+
ach?: NetworkDetails.Ach;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* The type of flow that originated the ReceivedDebit.
|
|
89
|
+
*/
|
|
90
|
+
type: 'ach';
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
namespace NetworkDetails {
|
|
94
|
+
interface Ach {
|
|
95
|
+
/**
|
|
96
|
+
* Addenda record data associated with this ReceivedDebit.
|
|
97
|
+
*/
|
|
98
|
+
addenda?: string;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
75
101
|
}
|
|
76
102
|
}
|
|
77
103
|
|
|
@@ -38,6 +38,11 @@ declare module 'stripe' {
|
|
|
38
38
|
*/
|
|
39
39
|
created: number;
|
|
40
40
|
|
|
41
|
+
/**
|
|
42
|
+
* The display name for the FinancialAccount. Use this field to customize the names of the FinancialAccounts for your connected accounts. Unlike the `nickname` field, `display_name` is not internal metadata and will be exposed to connected accounts.
|
|
43
|
+
*/
|
|
44
|
+
display_name?: string | null;
|
|
45
|
+
|
|
41
46
|
/**
|
|
42
47
|
* Encodes whether a FinancialAccount has access to a particular Feature, with a `status` enum and associated `status_details`.
|
|
43
48
|
* Stripe or the platform can control Features via the requested field.
|
|
@@ -9,6 +9,11 @@ declare module 'stripe' {
|
|
|
9
9
|
*/
|
|
10
10
|
supported_currencies: Array<string>;
|
|
11
11
|
|
|
12
|
+
/**
|
|
13
|
+
* The display name for the FinancialAccount. Use this field to customize the names of the FinancialAccounts for your connected accounts. Unlike the `nickname` field, `display_name` is not internal metadata and will be exposed to connected accounts.
|
|
14
|
+
*/
|
|
15
|
+
display_name?: Stripe.Emptyable<string>;
|
|
16
|
+
|
|
12
17
|
/**
|
|
13
18
|
* Specifies which fields in the response should be expanded.
|
|
14
19
|
*/
|
|
@@ -206,6 +211,11 @@ declare module 'stripe' {
|
|
|
206
211
|
}
|
|
207
212
|
|
|
208
213
|
interface FinancialAccountUpdateParams {
|
|
214
|
+
/**
|
|
215
|
+
* The display name for the FinancialAccount. Use this field to customize the names of the FinancialAccounts for your connected accounts. Unlike the `nickname` field, `display_name` is not internal metadata and will be exposed to connected accounts.
|
|
216
|
+
*/
|
|
217
|
+
display_name?: Stripe.Emptyable<string>;
|
|
218
|
+
|
|
209
219
|
/**
|
|
210
220
|
* Specifies which fields in the response should be expanded.
|
|
211
221
|
*/
|
|
@@ -76,6 +76,11 @@ declare module 'stripe' {
|
|
|
76
76
|
*/
|
|
77
77
|
metadata: Stripe.Metadata;
|
|
78
78
|
|
|
79
|
+
/**
|
|
80
|
+
* Details about the network used for the OutboundTransfer.
|
|
81
|
+
*/
|
|
82
|
+
network_details?: OutboundTransfer.NetworkDetails | null;
|
|
83
|
+
|
|
79
84
|
/**
|
|
80
85
|
* Details about a returned OutboundTransfer. Only set when the status is `returned`.
|
|
81
86
|
*/
|
|
@@ -182,6 +187,27 @@ declare module 'stripe' {
|
|
|
182
187
|
}
|
|
183
188
|
}
|
|
184
189
|
|
|
190
|
+
interface NetworkDetails {
|
|
191
|
+
/**
|
|
192
|
+
* Details about an ACH transaction.
|
|
193
|
+
*/
|
|
194
|
+
ach?: NetworkDetails.Ach | null;
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* The type of flow that originated the OutboundTransfer.
|
|
198
|
+
*/
|
|
199
|
+
type: 'ach';
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
namespace NetworkDetails {
|
|
203
|
+
interface Ach {
|
|
204
|
+
/**
|
|
205
|
+
* ACH Addenda record
|
|
206
|
+
*/
|
|
207
|
+
addenda: string | null;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
185
211
|
interface ReturnedDetails {
|
|
186
212
|
/**
|
|
187
213
|
* Reason for the return.
|
|
@@ -44,6 +44,11 @@ declare module 'stripe' {
|
|
|
44
44
|
*/
|
|
45
45
|
metadata?: Stripe.MetadataParam;
|
|
46
46
|
|
|
47
|
+
/**
|
|
48
|
+
* Details about the network used for the OutboundTransfer.
|
|
49
|
+
*/
|
|
50
|
+
network_details?: OutboundTransferCreateParams.NetworkDetails;
|
|
51
|
+
|
|
47
52
|
/**
|
|
48
53
|
* Statement descriptor to be shown on the receiving end of an OutboundTransfer. Maximum 10 characters for `ach` transfers or 140 characters for `us_domestic_wire` transfers. The default value is "transfer".
|
|
49
54
|
*/
|
|
@@ -72,6 +77,27 @@ declare module 'stripe' {
|
|
|
72
77
|
type Network = 'ach' | 'us_domestic_wire';
|
|
73
78
|
}
|
|
74
79
|
}
|
|
80
|
+
|
|
81
|
+
interface NetworkDetails {
|
|
82
|
+
/**
|
|
83
|
+
* Optional fields for `ach`.
|
|
84
|
+
*/
|
|
85
|
+
ach?: NetworkDetails.Ach;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* The type of flow that originated the OutboundTransfer.
|
|
89
|
+
*/
|
|
90
|
+
type: 'ach';
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
namespace NetworkDetails {
|
|
94
|
+
interface Ach {
|
|
95
|
+
/**
|
|
96
|
+
* Addenda record data associated with this OutboundTransfer.
|
|
97
|
+
*/
|
|
98
|
+
addenda?: string;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
75
101
|
}
|
|
76
102
|
|
|
77
103
|
interface OutboundTransferRetrieveParams {
|
|
@@ -66,6 +66,11 @@ declare module 'stripe' {
|
|
|
66
66
|
*/
|
|
67
67
|
network: ReceivedCredit.Network;
|
|
68
68
|
|
|
69
|
+
/**
|
|
70
|
+
* Details specific to the money movement rails.
|
|
71
|
+
*/
|
|
72
|
+
network_details?: ReceivedCredit.NetworkDetails | null;
|
|
73
|
+
|
|
69
74
|
/**
|
|
70
75
|
* Details describing when a ReceivedCredit may be reversed.
|
|
71
76
|
*/
|
|
@@ -235,6 +240,27 @@ declare module 'stripe' {
|
|
|
235
240
|
|
|
236
241
|
type Network = 'ach' | 'card' | 'stripe' | 'us_domestic_wire';
|
|
237
242
|
|
|
243
|
+
interface NetworkDetails {
|
|
244
|
+
/**
|
|
245
|
+
* Details about an ACH transaction.
|
|
246
|
+
*/
|
|
247
|
+
ach?: NetworkDetails.Ach | null;
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* The type of flow that originated the ReceivedCredit.
|
|
251
|
+
*/
|
|
252
|
+
type: 'ach';
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
namespace NetworkDetails {
|
|
256
|
+
interface Ach {
|
|
257
|
+
/**
|
|
258
|
+
* ACH Addenda record
|
|
259
|
+
*/
|
|
260
|
+
addenda: string | null;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
|
|
238
264
|
interface ReversalDetails {
|
|
239
265
|
/**
|
|
240
266
|
* Time before which a ReceivedCredit can be reversed.
|
|
@@ -66,6 +66,11 @@ declare module 'stripe' {
|
|
|
66
66
|
*/
|
|
67
67
|
network: ReceivedDebit.Network;
|
|
68
68
|
|
|
69
|
+
/**
|
|
70
|
+
* Details specific to the money movement rails.
|
|
71
|
+
*/
|
|
72
|
+
network_details?: ReceivedDebit.NetworkDetails | null;
|
|
73
|
+
|
|
69
74
|
/**
|
|
70
75
|
* Details describing when a ReceivedDebit might be reversed.
|
|
71
76
|
*/
|
|
@@ -189,10 +194,36 @@ declare module 'stripe' {
|
|
|
189
194
|
* Set if the ReceivedDebit was created due to a [Payout](https://stripe.com/docs/api#payouts) object.
|
|
190
195
|
*/
|
|
191
196
|
payout: string | null;
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* The ReceivedCredit that Capital withheld from
|
|
200
|
+
*/
|
|
201
|
+
received_credit_capital_withholding?: string | null;
|
|
192
202
|
}
|
|
193
203
|
|
|
194
204
|
type Network = 'ach' | 'card' | 'stripe';
|
|
195
205
|
|
|
206
|
+
interface NetworkDetails {
|
|
207
|
+
/**
|
|
208
|
+
* Details about an ACH transaction.
|
|
209
|
+
*/
|
|
210
|
+
ach?: NetworkDetails.Ach | null;
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* The type of flow that originated the ReceivedDebit.
|
|
214
|
+
*/
|
|
215
|
+
type: 'ach';
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
namespace NetworkDetails {
|
|
219
|
+
interface Ach {
|
|
220
|
+
/**
|
|
221
|
+
* ACH Addenda record
|
|
222
|
+
*/
|
|
223
|
+
addenda: string | null;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
|
|
196
227
|
interface ReversalDetails {
|
|
197
228
|
/**
|
|
198
229
|
* Time before which a ReceivedDebit can be reversed.
|