stripe 9.7.0 → 9.8.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 +4 -0
- package/VERSION +1 -1
- package/package.json +1 -1
- package/types/2020-08-27/TestHelpers/Treasury/ReceivedCredits.d.ts +26 -0
- package/types/2020-08-27/TestHelpers/Treasury/ReceivedDebits.d.ts +26 -0
- package/types/2020-08-27/Treasury/OutboundTransfers.d.ts +52 -0
- package/types/2020-08-27/Treasury/ReceivedCredits.d.ts +26 -0
- package/types/2020-08-27/Treasury/ReceivedDebits.d.ts +31 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## 9.8.0-beta.1 - 2022-06-08
|
|
4
|
+
* [#1442](https://github.com/stripe/stripe-node/pull/1442) API Updates
|
|
5
|
+
* Add support for `network_details` method on resource `ReceivedCredits`/`ReceivedDebits`
|
|
6
|
+
|
|
3
7
|
## 9.7.0 - 2022-06-08
|
|
4
8
|
* [#1441](https://github.com/stripe/stripe-node/pull/1441) API Updates
|
|
5
9
|
* Add support for `affirm`, `bancontact`, `card`, `ideal`, `p24`, and `sofort` on `Checkout.Session.payment_method_options` and `CheckoutSessionCreateParams.payment_method_options`
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
9.
|
|
1
|
+
9.8.0-beta.1
|
package/package.json
CHANGED
|
@@ -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
|
|
|
@@ -74,6 +74,11 @@ declare module 'stripe' {
|
|
|
74
74
|
*/
|
|
75
75
|
metadata: Stripe.Metadata;
|
|
76
76
|
|
|
77
|
+
/**
|
|
78
|
+
* Details about the network used for the OutboundTransfer.
|
|
79
|
+
*/
|
|
80
|
+
network_details?: OutboundTransfer.NetworkDetails | null;
|
|
81
|
+
|
|
77
82
|
/**
|
|
78
83
|
* Details about a returned OutboundTransfer. Only set when the status is `returned`.
|
|
79
84
|
*/
|
|
@@ -170,6 +175,27 @@ declare module 'stripe' {
|
|
|
170
175
|
}
|
|
171
176
|
}
|
|
172
177
|
|
|
178
|
+
interface NetworkDetails {
|
|
179
|
+
/**
|
|
180
|
+
* Details about an ACH transaction.
|
|
181
|
+
*/
|
|
182
|
+
ach?: NetworkDetails.Ach | null;
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* The type of flow that originated the OutboundTransfer.
|
|
186
|
+
*/
|
|
187
|
+
type: 'ach';
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
namespace NetworkDetails {
|
|
191
|
+
interface Ach {
|
|
192
|
+
/**
|
|
193
|
+
* ACH Addenda record
|
|
194
|
+
*/
|
|
195
|
+
addenda: string | null;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
|
|
173
199
|
interface ReturnedDetails {
|
|
174
200
|
/**
|
|
175
201
|
* Reason for the return.
|
|
@@ -267,6 +293,11 @@ declare module 'stripe' {
|
|
|
267
293
|
*/
|
|
268
294
|
metadata?: Stripe.MetadataParam;
|
|
269
295
|
|
|
296
|
+
/**
|
|
297
|
+
* Details about the network used for the OutboundTransfer.
|
|
298
|
+
*/
|
|
299
|
+
network_details?: OutboundTransferCreateParams.NetworkDetails;
|
|
300
|
+
|
|
270
301
|
/**
|
|
271
302
|
* Statement descriptor to be shown on the receiving end of an OutboundTransfer. Maximum 10 characters for `ach` transfers or 140 characters for `wire` transfers. The default value is `transfer`.
|
|
272
303
|
*/
|
|
@@ -295,6 +326,27 @@ declare module 'stripe' {
|
|
|
295
326
|
type Network = 'ach' | 'us_domestic_wire';
|
|
296
327
|
}
|
|
297
328
|
}
|
|
329
|
+
|
|
330
|
+
interface NetworkDetails {
|
|
331
|
+
/**
|
|
332
|
+
* Optional fields for `ach`.
|
|
333
|
+
*/
|
|
334
|
+
ach?: NetworkDetails.Ach;
|
|
335
|
+
|
|
336
|
+
/**
|
|
337
|
+
* The type of flow that originated the OutboundTransfer.
|
|
338
|
+
*/
|
|
339
|
+
type: 'ach';
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
namespace NetworkDetails {
|
|
343
|
+
interface Ach {
|
|
344
|
+
/**
|
|
345
|
+
* Addenda record data associated with this OutboundTransfer.
|
|
346
|
+
*/
|
|
347
|
+
addenda?: string;
|
|
348
|
+
}
|
|
349
|
+
}
|
|
298
350
|
}
|
|
299
351
|
|
|
300
352
|
interface OutboundTransferRetrieveParams {
|
|
@@ -61,6 +61,11 @@ declare module 'stripe' {
|
|
|
61
61
|
*/
|
|
62
62
|
network: ReceivedCredit.Network;
|
|
63
63
|
|
|
64
|
+
/**
|
|
65
|
+
* Details specific to the money movement rails.
|
|
66
|
+
*/
|
|
67
|
+
network_details?: ReceivedCredit.NetworkDetails | null;
|
|
68
|
+
|
|
64
69
|
/**
|
|
65
70
|
* Status of the ReceivedCredit. ReceivedCredits are created either `succeeded` (approved) or `failed` (declined). If a ReceivedCredit is declined, the failure reason can be found in the `failure_code` field.
|
|
66
71
|
*/
|
|
@@ -225,6 +230,27 @@ declare module 'stripe' {
|
|
|
225
230
|
|
|
226
231
|
type Network = 'ach' | 'card' | 'stripe' | 'us_domestic_wire';
|
|
227
232
|
|
|
233
|
+
interface NetworkDetails {
|
|
234
|
+
/**
|
|
235
|
+
* Details about an ACH transaction.
|
|
236
|
+
*/
|
|
237
|
+
ach?: NetworkDetails.Ach | null;
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* The type of flow that originated the ReceivedCredit.
|
|
241
|
+
*/
|
|
242
|
+
type: 'ach';
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
namespace NetworkDetails {
|
|
246
|
+
interface Ach {
|
|
247
|
+
/**
|
|
248
|
+
* ACH Addenda record
|
|
249
|
+
*/
|
|
250
|
+
addenda: string | null;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
|
|
228
254
|
type Status = 'failed' | 'succeeded';
|
|
229
255
|
}
|
|
230
256
|
|
|
@@ -61,6 +61,11 @@ declare module 'stripe' {
|
|
|
61
61
|
*/
|
|
62
62
|
network: ReceivedDebit.Network;
|
|
63
63
|
|
|
64
|
+
/**
|
|
65
|
+
* Details specific to the money movement rails.
|
|
66
|
+
*/
|
|
67
|
+
network_details?: ReceivedDebit.NetworkDetails | null;
|
|
68
|
+
|
|
64
69
|
/**
|
|
65
70
|
* Status of the ReceivedDebit. ReceivedDebits are created with a status of either `succeeded` (approved) or `failed` (declined). The failure reason can be found under the `failure_code`.
|
|
66
71
|
*/
|
|
@@ -169,10 +174,36 @@ declare module 'stripe' {
|
|
|
169
174
|
* Set if the ReceivedDebit is also viewable as an [Issuing Dispute](https://stripe.com/docs/api#issuing_disputes) object.
|
|
170
175
|
*/
|
|
171
176
|
issuing_transaction: string | null;
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* The ReceivedCredit that Capital withheld from
|
|
180
|
+
*/
|
|
181
|
+
received_credit_capital_withholding?: string | null;
|
|
172
182
|
}
|
|
173
183
|
|
|
174
184
|
type Network = 'ach' | 'card' | 'stripe';
|
|
175
185
|
|
|
186
|
+
interface NetworkDetails {
|
|
187
|
+
/**
|
|
188
|
+
* Details about an ACH transaction.
|
|
189
|
+
*/
|
|
190
|
+
ach?: NetworkDetails.Ach | null;
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* The type of flow that originated the ReceivedDebit.
|
|
194
|
+
*/
|
|
195
|
+
type: 'ach';
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
namespace NetworkDetails {
|
|
199
|
+
interface Ach {
|
|
200
|
+
/**
|
|
201
|
+
* ACH Addenda record
|
|
202
|
+
*/
|
|
203
|
+
addenda: string | null;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
176
207
|
type Status = 'failed' | 'succeeded';
|
|
177
208
|
}
|
|
178
209
|
|