stripe 23.2.0-alpha.2 → 23.2.0-alpha.3
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 +25 -0
- package/OPENAPI_VERSION +1 -1
- package/VERSION +1 -1
- package/cjs/StripeEventNotificationHandler.js +5 -0
- package/cjs/StripeEventNotificationHandler.js.map +1 -1
- package/cjs/Webhooks.js +159 -42
- package/cjs/Webhooks.js.map +1 -1
- package/cjs/crypto/CryptoProvider.d.ts +4 -0
- package/cjs/crypto/CryptoProvider.js +6 -0
- package/cjs/crypto/CryptoProvider.js.map +1 -1
- package/cjs/crypto/NodeCryptoProvider.d.ts +2 -0
- package/cjs/crypto/NodeCryptoProvider.js +6 -2
- package/cjs/crypto/NodeCryptoProvider.js.map +1 -1
- package/cjs/crypto/SubtleCryptoProvider.d.ts +2 -0
- package/cjs/crypto/SubtleCryptoProvider.js +4 -0
- package/cjs/crypto/SubtleCryptoProvider.js.map +1 -1
- package/cjs/resources/BalanceTransactions.d.ts +1 -1
- package/cjs/resources/Charges.d.ts +23 -6
- package/cjs/resources/Checkout/Sessions.d.ts +6 -0
- package/cjs/resources/Checkout/Sessions.js +2 -0
- package/cjs/resources/Checkout/Sessions.js.map +1 -1
- package/cjs/resources/ConfirmationTokens.d.ts +19 -2
- package/cjs/resources/Customers.d.ts +50 -0
- package/cjs/resources/FxQuotes.d.ts +2 -2
- package/cjs/resources/Identity/VerificationReports.d.ts +32 -0
- package/cjs/resources/Mandates.d.ts +7 -0
- package/cjs/resources/PaymentAttemptRecords.d.ts +98 -1
- package/cjs/resources/PaymentIntents.d.ts +27 -0
- package/cjs/resources/PaymentMethodConfigurations.d.ts +70 -0
- package/cjs/resources/PaymentMethods.d.ts +19 -2
- package/cjs/resources/PaymentRecords.d.ts +132 -1
- package/cjs/resources/Radar/PaymentEvaluations.d.ts +24 -0
- package/cjs/resources/Reserve/Holds.d.ts +2 -2
- package/cjs/resources/Reserve/Holds.js +2 -2
- package/cjs/resources/Reserve/Plans.d.ts +2 -2
- package/cjs/resources/Reserve/Plans.js +2 -2
- package/cjs/resources/Reserve/Releases.d.ts +2 -2
- package/cjs/resources/Reserve/Releases.js +2 -2
- package/cjs/resources/SetupAttempts.d.ts +9 -2
- package/cjs/resources/SetupIntents.d.ts +34 -0
- package/cjs/resources/SharedPayment/GrantedTokens.d.ts +21 -2
- package/cjs/resources/SharedPayment/IssuedTokens.d.ts +36 -0
- package/cjs/resources/Terminal/Readers.d.ts +20 -2
- package/cjs/resources/V2/Core/Events.d.ts +81 -5
- package/cjs/resources/V2/Core/Events.js +12 -6
- package/cjs/resources/V2/Core/Events.js.map +1 -1
- package/cjs/resources/V2/Core/Vault/NetworkTokens.d.ts +1 -0
- package/cjs/resources/V2/Core/Vault/NetworkTokens.js +1 -0
- package/cjs/resources/V2/Core/Vault/NetworkTokens.js.map +1 -1
- package/cjs/resources/V2/MoneyManagement/OutboundPayments.d.ts +119 -1
- package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.d.ts +44 -2
- package/cjs/resources/V2/MoneyManagement/PayoutIntents.d.ts +76 -1
- package/cjs/resources/V2/MoneyManagement/PayoutMethods.d.ts +43 -1
- package/cjs/resources/V2/MoneyManagement/ReceivedDebitMandates.d.ts +3 -0
- package/cjs/resources/V2/MoneyManagement/ReceivedDebitMandates.js +3 -0
- package/cjs/resources/V2/MoneyManagement/ReceivedDebitMandates.js.map +1 -1
- package/cjs/resources/V2/MoneyManagement/ReceivedDebits.d.ts +10 -1
- package/cjs/resources/V2/MoneyManagement/SpendingMandates.d.ts +171 -0
- package/cjs/resources/V2/MoneyManagement/SpendingMandates.js +29 -0
- package/cjs/resources/V2/MoneyManagement/SpendingMandates.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/index.d.ts +15 -8
- package/cjs/resources/V2/MoneyManagement/index.js +2 -0
- package/cjs/resources/V2/MoneyManagement/index.js.map +1 -1
- package/cjs/resources.js +2 -0
- package/cjs/resources.js.map +1 -1
- package/cjs/stripe.cjs.node.d.ts +187 -0
- package/cjs/stripe.cjs.node.js.map +1 -1
- package/cjs/stripe.core.js +7 -3
- package/cjs/stripe.core.js.map +1 -1
- package/esm/StripeEventNotificationHandler.js +5 -0
- package/esm/StripeEventNotificationHandler.js.map +1 -1
- package/esm/Webhooks.js +159 -42
- package/esm/Webhooks.js.map +1 -1
- package/esm/crypto/CryptoProvider.d.ts +4 -0
- package/esm/crypto/CryptoProvider.js +6 -0
- package/esm/crypto/CryptoProvider.js.map +1 -1
- package/esm/crypto/NodeCryptoProvider.d.ts +2 -0
- package/esm/crypto/NodeCryptoProvider.js +6 -2
- package/esm/crypto/NodeCryptoProvider.js.map +1 -1
- package/esm/crypto/SubtleCryptoProvider.d.ts +2 -0
- package/esm/crypto/SubtleCryptoProvider.js +4 -0
- package/esm/crypto/SubtleCryptoProvider.js.map +1 -1
- package/esm/resources/BalanceTransactions.d.ts +1 -1
- package/esm/resources/Charges.d.ts +23 -6
- package/esm/resources/Checkout/Sessions.d.ts +6 -0
- package/esm/resources/Checkout/Sessions.js +2 -0
- package/esm/resources/Checkout/Sessions.js.map +1 -1
- package/esm/resources/ConfirmationTokens.d.ts +19 -2
- package/esm/resources/Customers.d.ts +50 -0
- package/esm/resources/FxQuotes.d.ts +2 -2
- package/esm/resources/Identity/VerificationReports.d.ts +32 -0
- package/esm/resources/Mandates.d.ts +7 -0
- package/esm/resources/PaymentAttemptRecords.d.ts +98 -1
- package/esm/resources/PaymentIntents.d.ts +27 -0
- package/esm/resources/PaymentMethodConfigurations.d.ts +70 -0
- package/esm/resources/PaymentMethods.d.ts +19 -2
- package/esm/resources/PaymentRecords.d.ts +132 -1
- package/esm/resources/Radar/PaymentEvaluations.d.ts +24 -0
- package/esm/resources/Reserve/Holds.d.ts +2 -2
- package/esm/resources/Reserve/Holds.js +2 -2
- package/esm/resources/Reserve/Plans.d.ts +2 -2
- package/esm/resources/Reserve/Plans.js +2 -2
- package/esm/resources/Reserve/Releases.d.ts +2 -2
- package/esm/resources/Reserve/Releases.js +2 -2
- package/esm/resources/SetupAttempts.d.ts +9 -2
- package/esm/resources/SetupIntents.d.ts +34 -0
- package/esm/resources/SharedPayment/GrantedTokens.d.ts +21 -2
- package/esm/resources/SharedPayment/IssuedTokens.d.ts +36 -0
- package/esm/resources/Terminal/Readers.d.ts +20 -2
- package/esm/resources/V2/Core/Events.d.ts +81 -5
- package/esm/resources/V2/Core/Events.js +12 -6
- package/esm/resources/V2/Core/Events.js.map +1 -1
- package/esm/resources/V2/Core/Vault/NetworkTokens.d.ts +1 -0
- package/esm/resources/V2/Core/Vault/NetworkTokens.js +1 -0
- package/esm/resources/V2/Core/Vault/NetworkTokens.js.map +1 -1
- package/esm/resources/V2/MoneyManagement/OutboundPayments.d.ts +119 -1
- package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.d.ts +44 -2
- package/esm/resources/V2/MoneyManagement/PayoutIntents.d.ts +76 -1
- package/esm/resources/V2/MoneyManagement/PayoutMethods.d.ts +43 -1
- package/esm/resources/V2/MoneyManagement/ReceivedDebitMandates.d.ts +3 -0
- package/esm/resources/V2/MoneyManagement/ReceivedDebitMandates.js +3 -0
- package/esm/resources/V2/MoneyManagement/ReceivedDebitMandates.js.map +1 -1
- package/esm/resources/V2/MoneyManagement/ReceivedDebits.d.ts +10 -1
- package/esm/resources/V2/MoneyManagement/SpendingMandates.d.ts +171 -0
- package/esm/resources/V2/MoneyManagement/SpendingMandates.js +25 -0
- package/esm/resources/V2/MoneyManagement/SpendingMandates.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/index.d.ts +15 -8
- package/esm/resources/V2/MoneyManagement/index.js +2 -0
- package/esm/resources/V2/MoneyManagement/index.js.map +1 -1
- package/esm/resources.js +2 -0
- package/esm/resources.js.map +1 -1
- package/esm/stripe.core.js +7 -3
- package/esm/stripe.core.js.map +1 -1
- package/esm/stripe.esm.node.js +7 -3
- package/esm/stripe.esm.node.js.map +1 -1
- package/package.json +1 -1
|
@@ -43,12 +43,18 @@ export class EventResource extends StripeResource {
|
|
|
43
43
|
}
|
|
44
44
|
return {
|
|
45
45
|
...pulledEvent,
|
|
46
|
-
fetchRelatedObject: () =>
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
46
|
+
fetchRelatedObject: () => {
|
|
47
|
+
// Issue the request through a client scoped to this event's own
|
|
48
|
+
// context, built lazily here (not eagerly per list item) since most
|
|
49
|
+
// fetchRelatedObject() calls are never invoked.
|
|
50
|
+
const eventClient = this._stripe.withStripeContext(pulledEvent.context);
|
|
51
|
+
return eventClient._requestSender._rawRequest('GET', pulledEvent.related_object.url, undefined, {
|
|
52
|
+
stripeContext: pulledEvent.context,
|
|
53
|
+
headers: {
|
|
54
|
+
'Stripe-Request-Trigger': `event=${pulledEvent.id}`,
|
|
55
|
+
},
|
|
56
|
+
});
|
|
57
|
+
},
|
|
52
58
|
};
|
|
53
59
|
}
|
|
54
60
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Events.js","sourceRoot":"","sources":["../../../../src/resources/V2/Core/Events.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAEvC,OAAO,EAAC,cAAc,EAAC,MAAM,4BAA4B,CAAC;AAI1D,MAAM,OAAO,aAAc,SAAQ,cAAc;IAC/C;;OAEG;IACH,IAAI,CACF,MAAgC,EAChC,OAAwB;QAExB,MAAM,qBAAqB,GAAG,CAAC,QAAa,EAAO,EAAE;YACnD,OAAO;gBACL,GAAG,QAAQ;gBACX,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,6BAA6B,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACvE,CAAC;QACJ,CAAC,CAAC;QACF,OAAO,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,iBAAiB,EAAE,MAAM,EAAE,OAAO,EAAE;YAClE,UAAU,EAAE,MAAM;YAClB,qBAAqB,EAAE,qBAAqB;SAC7C,CAAQ,CAAC;IACZ,CAAC;IACD;;;OAGG;IACH,QAAQ,CACN,EAAU,EACV,MAAoC,EACpC,OAAwB;QAExB,MAAM,qBAAqB,GAAG,CAAC,QAAa,EAAO,EAAE;YACnD,OAAO,IAAI,CAAC,6BAA6B,CAAC,QAAQ,CAAC,CAAC;QACtD,CAAC,CAAC;QACF,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,mBAAmB,kBAAkB,CAAC,EAAE,CAAC,EAAE,EAC3C,MAAM,EACN,OAAO,EACP;YACE,qBAAqB,EAAE,qBAAqB;SAC7C,CACK,CAAC;IACX,CAAC;IACD;;;;;;;;OAQG;IACH,6BAA6B,CAAC,WAAgB;QAC5C,IAAI,CAAC,WAAW,CAAC,cAAc,IAAI,CAAC,WAAW,CAAC,cAAc,CAAC,GAAG,EAAE;YAClE,OAAO,WAAW,CAAC;SACpB;QACD,OAAO;YACL,GAAG,WAAW;YACd,kBAAkB,EAAE,GAAwB,EAAE,
|
|
1
|
+
{"version":3,"file":"Events.js","sourceRoot":"","sources":["../../../../src/resources/V2/Core/Events.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAEvC,OAAO,EAAC,cAAc,EAAC,MAAM,4BAA4B,CAAC;AAI1D,MAAM,OAAO,aAAc,SAAQ,cAAc;IAC/C;;OAEG;IACH,IAAI,CACF,MAAgC,EAChC,OAAwB;QAExB,MAAM,qBAAqB,GAAG,CAAC,QAAa,EAAO,EAAE;YACnD,OAAO;gBACL,GAAG,QAAQ;gBACX,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,6BAA6B,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACvE,CAAC;QACJ,CAAC,CAAC;QACF,OAAO,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,iBAAiB,EAAE,MAAM,EAAE,OAAO,EAAE;YAClE,UAAU,EAAE,MAAM;YAClB,qBAAqB,EAAE,qBAAqB;SAC7C,CAAQ,CAAC;IACZ,CAAC;IACD;;;OAGG;IACH,QAAQ,CACN,EAAU,EACV,MAAoC,EACpC,OAAwB;QAExB,MAAM,qBAAqB,GAAG,CAAC,QAAa,EAAO,EAAE;YACnD,OAAO,IAAI,CAAC,6BAA6B,CAAC,QAAQ,CAAC,CAAC;QACtD,CAAC,CAAC;QACF,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,mBAAmB,kBAAkB,CAAC,EAAE,CAAC,EAAE,EAC3C,MAAM,EACN,OAAO,EACP;YACE,qBAAqB,EAAE,qBAAqB;SAC7C,CACK,CAAC;IACX,CAAC;IACD;;;;;;;;OAQG;IACH,6BAA6B,CAAC,WAAgB;QAC5C,IAAI,CAAC,WAAW,CAAC,cAAc,IAAI,CAAC,WAAW,CAAC,cAAc,CAAC,GAAG,EAAE;YAClE,OAAO,WAAW,CAAC;SACpB;QACD,OAAO;YACL,GAAG,WAAW;YACd,kBAAkB,EAAE,GAAwB,EAAE;gBAC5C,gEAAgE;gBAChE,oEAAoE;gBACpE,gDAAgD;gBAChD,MAAM,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,iBAAiB,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;gBACxE,OAAO,WAAW,CAAC,cAAc,CAAC,WAAW,CAC3C,KAAK,EACL,WAAW,CAAC,cAAc,CAAC,GAAG,EAC9B,SAAS,EACT;oBACE,aAAa,EAAE,WAAW,CAAC,OAAO;oBAClC,OAAO,EAAE;wBACP,wBAAwB,EAAE,SAAS,WAAW,CAAC,EAAE,EAAE;qBACpD;iBACF,CACF,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -13,6 +13,7 @@ export declare class NetworkTokenResource extends StripeResource {
|
|
|
13
13
|
* Creates a Network Token from an existing card reference.
|
|
14
14
|
* @throws Stripe.CannotProceedError
|
|
15
15
|
* @throws Stripe.BlockedByStripeError
|
|
16
|
+
* @throws Stripe.MerchantNotGatedError
|
|
16
17
|
*/
|
|
17
18
|
createFromCredential(params: V2.Core.Vault.NetworkTokenCreateFromCredentialParams, options?: RequestOptions): Promise<Response<NetworkToken>>;
|
|
18
19
|
/**
|
|
@@ -14,6 +14,7 @@ export class NetworkTokenResource extends StripeResource {
|
|
|
14
14
|
* Creates a Network Token from an existing card reference.
|
|
15
15
|
* @throws Stripe.CannotProceedError
|
|
16
16
|
* @throws Stripe.BlockedByStripeError
|
|
17
|
+
* @throws Stripe.MerchantNotGatedError
|
|
17
18
|
*/
|
|
18
19
|
createFromCredential(params, options) {
|
|
19
20
|
return this._makeRequest('POST', '/v2/core/vault/network_tokens/create_from_credential', params, options);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NetworkTokens.js","sourceRoot":"","sources":["../../../../../src/resources/V2/Core/Vault/NetworkTokens.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAEvC,OAAO,EAAC,cAAc,EAAC,MAAM,+BAA+B,CAAC;AAI7D,MAAM,OAAO,oBAAqB,SAAQ,cAAc;IACtD;;;;;OAKG;IACH,MAAM,CACJ,MAA8C,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,+BAA+B,EAC/B,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD
|
|
1
|
+
{"version":3,"file":"NetworkTokens.js","sourceRoot":"","sources":["../../../../../src/resources/V2/Core/Vault/NetworkTokens.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAEvC,OAAO,EAAC,cAAc,EAAC,MAAM,+BAA+B,CAAC;AAI7D,MAAM,OAAO,oBAAqB,SAAQ,cAAc;IACtD;;;;;OAKG;IACH,MAAM,CACJ,MAA8C,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,+BAA+B,EAC/B,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;;;;OAKG;IACH,oBAAoB,CAClB,MAA4D,EAC5D,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,sDAAsD,EACtD,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,QAAQ,CACN,EAAU,EACV,MAAiD,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,iCAAiC,kBAAkB,CAAC,EAAE,CAAC,EAAE,EACzD,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;;;;;OAMG;IACH,kBAAkB,CAChB,EAAU,EACV,MAA2D,EAC3D,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,iCAAiC,kBAAkB,CACjD,EAAE,CACH,sBAAsB,EACvB,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;CACF"}
|
|
@@ -240,6 +240,10 @@ export declare namespace OutboundPayment {
|
|
|
240
240
|
* Card tracking details.
|
|
241
241
|
*/
|
|
242
242
|
card?: TrackingDetails.Card;
|
|
243
|
+
/**
|
|
244
|
+
* Check send tracking details.
|
|
245
|
+
*/
|
|
246
|
+
check_send?: TrackingDetails.CheckSend;
|
|
243
247
|
/**
|
|
244
248
|
* Crypto wallet tracking details.
|
|
245
249
|
*/
|
|
@@ -305,7 +309,7 @@ export declare namespace OutboundPayment {
|
|
|
305
309
|
reason: Returned.Reason;
|
|
306
310
|
}
|
|
307
311
|
namespace Failed {
|
|
308
|
-
type Reason = 'fx_rate_drift_exceeded_after_review' | 'paper_check_attachment_too_large' | 'paper_check_expired' | 'paper_check_undeliverable' | 'payout_method_amount_limit_exceeded' | 'payout_method_declined' | 'payout_method_does_not_exist' | 'payout_method_expired' | 'payout_method_unsupported' | 'payout_method_usage_frequency_limit_exceeded' | 'review_rejected' | 'unknown_failure' | OtherString;
|
|
312
|
+
type Reason = 'check_attachment_too_large' | 'check_expired' | 'check_undeliverable' | 'fx_rate_drift_exceeded_after_review' | 'paper_check_attachment_too_large' | 'paper_check_expired' | 'paper_check_undeliverable' | 'payout_method_amount_limit_exceeded' | 'payout_method_declined' | 'payout_method_does_not_exist' | 'payout_method_expired' | 'payout_method_unsupported' | 'payout_method_usage_frequency_limit_exceeded' | 'review_rejected' | 'unknown_failure' | OtherString;
|
|
309
313
|
}
|
|
310
314
|
namespace Processing {
|
|
311
315
|
type Reason = 'under_review' | OtherString;
|
|
@@ -320,6 +324,10 @@ export declare namespace OutboundPayment {
|
|
|
320
324
|
* Options for bank account payout methods.
|
|
321
325
|
*/
|
|
322
326
|
bank_account?: PayoutMethodOptions.BankAccount;
|
|
327
|
+
/**
|
|
328
|
+
* Options for check send payout methods.
|
|
329
|
+
*/
|
|
330
|
+
check_send?: PayoutMethodOptions.CheckSend;
|
|
323
331
|
}
|
|
324
332
|
namespace PayoutMethodOptions {
|
|
325
333
|
interface BankAccount {
|
|
@@ -332,6 +340,24 @@ export declare namespace OutboundPayment {
|
|
|
332
340
|
*/
|
|
333
341
|
preferred_networks?: Array<BankAccount.PreferredNetwork>;
|
|
334
342
|
}
|
|
343
|
+
interface CheckSend {
|
|
344
|
+
/**
|
|
345
|
+
* The ID of a file to include as an attachment with the check.
|
|
346
|
+
*/
|
|
347
|
+
attachment_file?: string;
|
|
348
|
+
/**
|
|
349
|
+
* Memo printed on the memo field of the check.
|
|
350
|
+
*/
|
|
351
|
+
memo?: string;
|
|
352
|
+
/**
|
|
353
|
+
* Open Enum. Shipping speed of the check. Defaults to standard.
|
|
354
|
+
*/
|
|
355
|
+
shipping_speed?: CheckSend.ShippingSpeed;
|
|
356
|
+
/**
|
|
357
|
+
* Signature printed on the check.
|
|
358
|
+
*/
|
|
359
|
+
signature: string;
|
|
360
|
+
}
|
|
335
361
|
namespace BankAccount {
|
|
336
362
|
interface PreferredNetworkOptions {
|
|
337
363
|
/**
|
|
@@ -361,6 +387,9 @@ export declare namespace OutboundPayment {
|
|
|
361
387
|
}
|
|
362
388
|
}
|
|
363
389
|
}
|
|
390
|
+
namespace CheckSend {
|
|
391
|
+
type ShippingSpeed = 'priority' | 'standard' | OtherString;
|
|
392
|
+
}
|
|
364
393
|
}
|
|
365
394
|
}
|
|
366
395
|
namespace TraceId {
|
|
@@ -379,6 +408,40 @@ export declare namespace OutboundPayment {
|
|
|
379
408
|
*/
|
|
380
409
|
retrieval_reference?: string;
|
|
381
410
|
}
|
|
411
|
+
interface CheckSend {
|
|
412
|
+
/**
|
|
413
|
+
* Open Enum. Carrier of the check.
|
|
414
|
+
*/
|
|
415
|
+
carrier: CheckSend.Carrier;
|
|
416
|
+
/**
|
|
417
|
+
* Check number.
|
|
418
|
+
*/
|
|
419
|
+
check_number: string;
|
|
420
|
+
/**
|
|
421
|
+
* Postal code of the latest tracking update.
|
|
422
|
+
*/
|
|
423
|
+
current_postal_code: string;
|
|
424
|
+
/**
|
|
425
|
+
* The ID of a file containing a preview image of the mailed check.
|
|
426
|
+
*/
|
|
427
|
+
mailed_check_preview_file?: string;
|
|
428
|
+
/**
|
|
429
|
+
* Mailing address of the check.
|
|
430
|
+
*/
|
|
431
|
+
mailing_address: CheckSend.MailingAddress;
|
|
432
|
+
/**
|
|
433
|
+
* Tracking number for the check.
|
|
434
|
+
*/
|
|
435
|
+
tracking_number: string;
|
|
436
|
+
/**
|
|
437
|
+
* Open Enum. Tracking status of the check.
|
|
438
|
+
*/
|
|
439
|
+
tracking_status: CheckSend.TrackingStatus;
|
|
440
|
+
/**
|
|
441
|
+
* When the tracking details were last updated.
|
|
442
|
+
*/
|
|
443
|
+
updated_at: string;
|
|
444
|
+
}
|
|
382
445
|
interface CryptoWallet {
|
|
383
446
|
/**
|
|
384
447
|
* A unique identifier that can be used to track this OutboundPayment with the recipient crypto wallet.
|
|
@@ -417,6 +480,36 @@ export declare namespace OutboundPayment {
|
|
|
417
480
|
}
|
|
418
481
|
type Status = 'pending' | 'supported' | 'unsupported' | OtherString;
|
|
419
482
|
type Type = 'bank_account' | 'card' | 'check_send' | 'crypto_wallet' | 'paper_check' | OtherString;
|
|
483
|
+
namespace CheckSend {
|
|
484
|
+
type Carrier = 'fedex' | 'usps' | OtherString;
|
|
485
|
+
interface MailingAddress {
|
|
486
|
+
/**
|
|
487
|
+
* City, district, suburb, town, or village.
|
|
488
|
+
*/
|
|
489
|
+
city?: string;
|
|
490
|
+
/**
|
|
491
|
+
* Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
492
|
+
*/
|
|
493
|
+
country?: string;
|
|
494
|
+
/**
|
|
495
|
+
* Address line 1 (e.g., street, PO Box, or company name).
|
|
496
|
+
*/
|
|
497
|
+
line1?: string;
|
|
498
|
+
/**
|
|
499
|
+
* Address line 2 (e.g., apartment, suite, unit, or building).
|
|
500
|
+
*/
|
|
501
|
+
line2?: string;
|
|
502
|
+
/**
|
|
503
|
+
* ZIP or postal code.
|
|
504
|
+
*/
|
|
505
|
+
postal_code?: string;
|
|
506
|
+
/**
|
|
507
|
+
* State, county, province, or region.
|
|
508
|
+
*/
|
|
509
|
+
state?: string;
|
|
510
|
+
}
|
|
511
|
+
type TrackingStatus = 'delivered' | 'in_transit' | 'mailed' | OtherString;
|
|
512
|
+
}
|
|
420
513
|
namespace PaperCheck {
|
|
421
514
|
type Carrier = 'fedex' | 'usps' | OtherString;
|
|
422
515
|
interface MailingAddress {
|
|
@@ -588,6 +681,10 @@ export declare namespace V2 {
|
|
|
588
681
|
* Options for bank account payout methods.
|
|
589
682
|
*/
|
|
590
683
|
bank_account?: PayoutMethodOptions.BankAccount;
|
|
684
|
+
/**
|
|
685
|
+
* Options for check send payout methods.
|
|
686
|
+
*/
|
|
687
|
+
check_send?: PayoutMethodOptions.CheckSend;
|
|
591
688
|
}
|
|
592
689
|
namespace PayoutMethodOptions {
|
|
593
690
|
interface BankAccount {
|
|
@@ -600,6 +697,24 @@ export declare namespace V2 {
|
|
|
600
697
|
*/
|
|
601
698
|
preferred_networks?: Array<BankAccount.PreferredNetwork>;
|
|
602
699
|
}
|
|
700
|
+
interface CheckSend {
|
|
701
|
+
/**
|
|
702
|
+
* The ID of a file to include as an attachment with the check.
|
|
703
|
+
*/
|
|
704
|
+
attachment_file?: string;
|
|
705
|
+
/**
|
|
706
|
+
* Memo printed on the memo field of the check.
|
|
707
|
+
*/
|
|
708
|
+
memo?: string;
|
|
709
|
+
/**
|
|
710
|
+
* Open Enum. Shipping speed of the check. Defaults to standard.
|
|
711
|
+
*/
|
|
712
|
+
shipping_speed?: CheckSend.ShippingSpeed;
|
|
713
|
+
/**
|
|
714
|
+
* Signature printed on the check.
|
|
715
|
+
*/
|
|
716
|
+
signature: string;
|
|
717
|
+
}
|
|
603
718
|
namespace BankAccount {
|
|
604
719
|
interface PreferredNetworkOptions {
|
|
605
720
|
/**
|
|
@@ -629,6 +744,9 @@ export declare namespace V2 {
|
|
|
629
744
|
}
|
|
630
745
|
}
|
|
631
746
|
}
|
|
747
|
+
namespace CheckSend {
|
|
748
|
+
type ShippingSpeed = 'priority' | 'standard' | OtherString;
|
|
749
|
+
}
|
|
632
750
|
}
|
|
633
751
|
}
|
|
634
752
|
}
|
|
@@ -142,6 +142,10 @@ export declare namespace V2 {
|
|
|
142
142
|
* The type specific details of the card payout method.
|
|
143
143
|
*/
|
|
144
144
|
card?: PayoutMethodData.Card;
|
|
145
|
+
/**
|
|
146
|
+
* The type specific details of the check send payout method.
|
|
147
|
+
*/
|
|
148
|
+
check_send?: PayoutMethodData.CheckSend;
|
|
145
149
|
/**
|
|
146
150
|
* The type specific details of the crypto wallet payout method.
|
|
147
151
|
*/
|
|
@@ -218,6 +222,16 @@ export declare namespace V2 {
|
|
|
218
222
|
*/
|
|
219
223
|
number: string;
|
|
220
224
|
}
|
|
225
|
+
interface CheckSend {
|
|
226
|
+
/**
|
|
227
|
+
* The US mailing address the check is sent to.
|
|
228
|
+
*/
|
|
229
|
+
mailing_address: CheckSend.MailingAddress;
|
|
230
|
+
/**
|
|
231
|
+
* The name printed on the check's payee line.
|
|
232
|
+
*/
|
|
233
|
+
payee_name: string;
|
|
234
|
+
}
|
|
221
235
|
interface CryptoWallet {
|
|
222
236
|
/**
|
|
223
237
|
* Crypto wallet address.
|
|
@@ -244,10 +258,38 @@ export declare namespace V2 {
|
|
|
244
258
|
*/
|
|
245
259
|
pix_key?: string;
|
|
246
260
|
}
|
|
247
|
-
type Type = 'apple_pay' | 'bank_account' | 'card' | 'crypto_wallet' | 'network_business_profile_wallet' | 'pix' | OtherString;
|
|
261
|
+
type Type = 'apple_pay' | 'bank_account' | 'card' | 'check_send' | 'crypto_wallet' | 'network_business_profile_wallet' | 'pix' | OtherString;
|
|
248
262
|
namespace BankAccount {
|
|
249
263
|
type BankAccountType = 'checking' | 'futsu' | 'savings' | 'toza';
|
|
250
264
|
}
|
|
265
|
+
namespace CheckSend {
|
|
266
|
+
interface MailingAddress {
|
|
267
|
+
/**
|
|
268
|
+
* City.
|
|
269
|
+
*/
|
|
270
|
+
city: string;
|
|
271
|
+
/**
|
|
272
|
+
* Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
273
|
+
*/
|
|
274
|
+
country: string;
|
|
275
|
+
/**
|
|
276
|
+
* Address line 1 (e.g., street, PO Box, or company name).
|
|
277
|
+
*/
|
|
278
|
+
line1: string;
|
|
279
|
+
/**
|
|
280
|
+
* Address line 2 (e.g., apartment, suite, unit, or building).
|
|
281
|
+
*/
|
|
282
|
+
line2?: string;
|
|
283
|
+
/**
|
|
284
|
+
* ZIP or postal code.
|
|
285
|
+
*/
|
|
286
|
+
postal_code: string;
|
|
287
|
+
/**
|
|
288
|
+
* State.
|
|
289
|
+
*/
|
|
290
|
+
state: string;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
251
293
|
namespace CryptoWallet {
|
|
252
294
|
type Network = 'arbitrum' | 'avalanche_c_chain' | 'base' | 'ethereum' | 'optimism' | 'polygon' | 'solana' | 'stellar' | 'tempo' | OtherString;
|
|
253
295
|
}
|
|
@@ -339,7 +381,7 @@ export declare namespace V2 {
|
|
|
339
381
|
*/
|
|
340
382
|
number?: string;
|
|
341
383
|
}
|
|
342
|
-
type Type = 'apple_pay' | 'bank_account' | 'card' | 'crypto_wallet' | 'network_business_profile_wallet' | 'pix' | OtherString;
|
|
384
|
+
type Type = 'apple_pay' | 'bank_account' | 'card' | 'check_send' | 'crypto_wallet' | 'network_business_profile_wallet' | 'pix' | OtherString;
|
|
343
385
|
namespace BankAccount {
|
|
344
386
|
type BankAccountType = 'checking' | 'futsu' | 'savings' | 'toza';
|
|
345
387
|
}
|
|
@@ -362,7 +362,7 @@ export declare namespace PayoutIntent {
|
|
|
362
362
|
type Reason = 'automatically_required' | 'manually_requested' | OtherString;
|
|
363
363
|
}
|
|
364
364
|
namespace HandleFailure {
|
|
365
|
-
type FailureReason = 'account_not_configured_as_recipient' | 'currency_not_supported_for_financial_account_balance' | 'feature_not_active_for_recipient' | 'fx_rate_drift_exceeded_after_review' | 'insufficient_funds' | 'payout_method_account_type_incorrect' | 'payout_method_amount_limit_exceeded' | 'payout_method_canceled_by_customer' | 'payout_method_closed' | 'payout_method_currency_unsupported' | 'payout_method_declined' | 'payout_method_does_not_exist' | 'payout_method_expired' | 'payout_method_holder_address_incorrect' | 'payout_method_holder_details_incorrect' | 'payout_method_holder_name_incorrect' | 'payout_method_invalid' | 'payout_method_invalid_account_number' | 'payout_method_restricted' | 'payout_method_unsupported' | 'payout_method_usage_frequency_limit_exceeded' | 'recalled' | 'recipient_capability_not_active' | 'review_rejected' | 'to_destination_invalid' | 'unknown_failure' | OtherString;
|
|
365
|
+
type FailureReason = 'account_not_configured_as_recipient' | 'check_attachment_too_large' | 'check_expired' | 'check_undeliverable' | 'currency_not_supported_for_financial_account_balance' | 'feature_not_active_for_recipient' | 'fx_rate_drift_exceeded_after_review' | 'insufficient_funds' | 'payout_method_account_type_incorrect' | 'payout_method_amount_limit_exceeded' | 'payout_method_canceled_by_customer' | 'payout_method_closed' | 'payout_method_currency_unsupported' | 'payout_method_declined' | 'payout_method_does_not_exist' | 'payout_method_expired' | 'payout_method_holder_address_incorrect' | 'payout_method_holder_details_incorrect' | 'payout_method_holder_name_incorrect' | 'payout_method_invalid' | 'payout_method_invalid_account_number' | 'payout_method_restricted' | 'payout_method_unsupported' | 'payout_method_usage_frequency_limit_exceeded' | 'recalled' | 'recipient_capability_not_active' | 'review_rejected' | 'to_destination_invalid' | 'unknown_failure' | OtherString;
|
|
366
366
|
}
|
|
367
367
|
}
|
|
368
368
|
namespace RecipientNotification {
|
|
@@ -403,6 +403,10 @@ export declare namespace PayoutIntent {
|
|
|
403
403
|
* Options for bank account payout methods.
|
|
404
404
|
*/
|
|
405
405
|
bank_account?: PayoutMethodOptions.BankAccount;
|
|
406
|
+
/**
|
|
407
|
+
* Options for check send payout methods.
|
|
408
|
+
*/
|
|
409
|
+
check_send?: PayoutMethodOptions.CheckSend;
|
|
406
410
|
}
|
|
407
411
|
namespace PayoutMethodOptions {
|
|
408
412
|
interface BankAccount {
|
|
@@ -415,6 +419,24 @@ export declare namespace PayoutIntent {
|
|
|
415
419
|
*/
|
|
416
420
|
preferred_networks?: Array<BankAccount.PreferredNetwork>;
|
|
417
421
|
}
|
|
422
|
+
interface CheckSend {
|
|
423
|
+
/**
|
|
424
|
+
* The ID of a file to include as an attachment with the check.
|
|
425
|
+
*/
|
|
426
|
+
attachment_file?: string;
|
|
427
|
+
/**
|
|
428
|
+
* Memo printed on the memo field of the check.
|
|
429
|
+
*/
|
|
430
|
+
memo?: string;
|
|
431
|
+
/**
|
|
432
|
+
* Open Enum. Shipping speed of the check. Defaults to standard.
|
|
433
|
+
*/
|
|
434
|
+
shipping_speed?: CheckSend.ShippingSpeed;
|
|
435
|
+
/**
|
|
436
|
+
* Signature printed on the check.
|
|
437
|
+
*/
|
|
438
|
+
signature: string;
|
|
439
|
+
}
|
|
418
440
|
namespace BankAccount {
|
|
419
441
|
interface PreferredNetworkOptions {
|
|
420
442
|
/**
|
|
@@ -444,6 +466,9 @@ export declare namespace PayoutIntent {
|
|
|
444
466
|
}
|
|
445
467
|
}
|
|
446
468
|
}
|
|
469
|
+
namespace CheckSend {
|
|
470
|
+
type ShippingSpeed = 'priority' | 'standard' | OtherString;
|
|
471
|
+
}
|
|
447
472
|
}
|
|
448
473
|
}
|
|
449
474
|
}
|
|
@@ -539,6 +564,10 @@ export declare namespace V2 {
|
|
|
539
564
|
* Options for bank account payout methods.
|
|
540
565
|
*/
|
|
541
566
|
bank_account?: PayoutMethodOptions.BankAccount;
|
|
567
|
+
/**
|
|
568
|
+
* Options for check send payout methods.
|
|
569
|
+
*/
|
|
570
|
+
check_send?: PayoutMethodOptions.CheckSend;
|
|
542
571
|
}
|
|
543
572
|
namespace PayoutMethodOptions {
|
|
544
573
|
interface BankAccount {
|
|
@@ -551,6 +580,24 @@ export declare namespace V2 {
|
|
|
551
580
|
*/
|
|
552
581
|
preferred_networks?: Array<BankAccount.PreferredNetwork>;
|
|
553
582
|
}
|
|
583
|
+
interface CheckSend {
|
|
584
|
+
/**
|
|
585
|
+
* The ID of a file to include as an attachment with the check.
|
|
586
|
+
*/
|
|
587
|
+
attachment_file?: string;
|
|
588
|
+
/**
|
|
589
|
+
* Memo printed on the memo field of the check.
|
|
590
|
+
*/
|
|
591
|
+
memo?: string;
|
|
592
|
+
/**
|
|
593
|
+
* Open Enum. Shipping speed of the check. Defaults to standard.
|
|
594
|
+
*/
|
|
595
|
+
shipping_speed?: CheckSend.ShippingSpeed;
|
|
596
|
+
/**
|
|
597
|
+
* Signature printed on the check.
|
|
598
|
+
*/
|
|
599
|
+
signature: string;
|
|
600
|
+
}
|
|
554
601
|
namespace BankAccount {
|
|
555
602
|
interface PreferredNetworkOptions {
|
|
556
603
|
/**
|
|
@@ -580,6 +627,9 @@ export declare namespace V2 {
|
|
|
580
627
|
}
|
|
581
628
|
}
|
|
582
629
|
}
|
|
630
|
+
namespace CheckSend {
|
|
631
|
+
type ShippingSpeed = 'priority' | 'standard' | OtherString;
|
|
632
|
+
}
|
|
583
633
|
}
|
|
584
634
|
}
|
|
585
635
|
}
|
|
@@ -660,6 +710,10 @@ export declare namespace V2 {
|
|
|
660
710
|
* Options for bank account payout methods.
|
|
661
711
|
*/
|
|
662
712
|
bank_account?: PayoutMethodOptions.BankAccount;
|
|
713
|
+
/**
|
|
714
|
+
* Options for check send payout methods.
|
|
715
|
+
*/
|
|
716
|
+
check_send?: PayoutMethodOptions.CheckSend;
|
|
663
717
|
}
|
|
664
718
|
namespace PayoutMethodOptions {
|
|
665
719
|
interface BankAccount {
|
|
@@ -672,6 +726,24 @@ export declare namespace V2 {
|
|
|
672
726
|
*/
|
|
673
727
|
preferred_networks?: Array<BankAccount.PreferredNetwork>;
|
|
674
728
|
}
|
|
729
|
+
interface CheckSend {
|
|
730
|
+
/**
|
|
731
|
+
* The ID of a file to include as an attachment with the check.
|
|
732
|
+
*/
|
|
733
|
+
attachment_file?: string;
|
|
734
|
+
/**
|
|
735
|
+
* Memo printed on the memo field of the check.
|
|
736
|
+
*/
|
|
737
|
+
memo?: string;
|
|
738
|
+
/**
|
|
739
|
+
* Open Enum. Shipping speed of the check. Defaults to standard.
|
|
740
|
+
*/
|
|
741
|
+
shipping_speed?: CheckSend.ShippingSpeed;
|
|
742
|
+
/**
|
|
743
|
+
* Signature printed on the check.
|
|
744
|
+
*/
|
|
745
|
+
signature: string;
|
|
746
|
+
}
|
|
675
747
|
namespace BankAccount {
|
|
676
748
|
interface PreferredNetworkOptions {
|
|
677
749
|
/**
|
|
@@ -701,6 +773,9 @@ export declare namespace V2 {
|
|
|
701
773
|
}
|
|
702
774
|
}
|
|
703
775
|
}
|
|
776
|
+
namespace CheckSend {
|
|
777
|
+
type ShippingSpeed = 'priority' | 'standard' | OtherString;
|
|
778
|
+
}
|
|
704
779
|
}
|
|
705
780
|
}
|
|
706
781
|
}
|
|
@@ -70,6 +70,10 @@ export interface PayoutMethod {
|
|
|
70
70
|
* The PayoutMethodCard object details.
|
|
71
71
|
*/
|
|
72
72
|
card?: PayoutMethod.Card;
|
|
73
|
+
/**
|
|
74
|
+
* The PayoutMethodCheckSend object details.
|
|
75
|
+
*/
|
|
76
|
+
check_send?: PayoutMethod.CheckSend;
|
|
73
77
|
/**
|
|
74
78
|
* Created timestamp.
|
|
75
79
|
*/
|
|
@@ -217,6 +221,16 @@ export declare namespace PayoutMethod {
|
|
|
217
221
|
*/
|
|
218
222
|
supported_currencies: Array<string>;
|
|
219
223
|
}
|
|
224
|
+
interface CheckSend {
|
|
225
|
+
/**
|
|
226
|
+
* The US mailing address the check is sent to.
|
|
227
|
+
*/
|
|
228
|
+
mailing_address: CheckSend.MailingAddress;
|
|
229
|
+
/**
|
|
230
|
+
* The name printed on the check's payee line.
|
|
231
|
+
*/
|
|
232
|
+
payee_name: string;
|
|
233
|
+
}
|
|
220
234
|
interface CryptoWallet {
|
|
221
235
|
/**
|
|
222
236
|
* Destination wallet address.
|
|
@@ -251,7 +265,7 @@ export declare namespace PayoutMethod {
|
|
|
251
265
|
*/
|
|
252
266
|
pix_key?: string;
|
|
253
267
|
}
|
|
254
|
-
type Type = 'apple_pay' | 'bank_account' | 'card' | 'crypto_wallet' | 'network_business_profile_wallet' | 'pix' | OtherString;
|
|
268
|
+
type Type = 'apple_pay' | 'bank_account' | 'card' | 'check_send' | 'crypto_wallet' | 'network_business_profile_wallet' | 'pix' | OtherString;
|
|
255
269
|
interface UsageStatus {
|
|
256
270
|
/**
|
|
257
271
|
* Payments status - used when sending OutboundPayments (sending funds to recipients).
|
|
@@ -270,6 +284,34 @@ export declare namespace PayoutMethod {
|
|
|
270
284
|
namespace BankAccount {
|
|
271
285
|
type BankAccountType = 'checking' | 'futsu' | 'savings' | 'toza';
|
|
272
286
|
}
|
|
287
|
+
namespace CheckSend {
|
|
288
|
+
interface MailingAddress {
|
|
289
|
+
/**
|
|
290
|
+
* City.
|
|
291
|
+
*/
|
|
292
|
+
city: string;
|
|
293
|
+
/**
|
|
294
|
+
* Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
295
|
+
*/
|
|
296
|
+
country: string;
|
|
297
|
+
/**
|
|
298
|
+
* Address line 1 (e.g., street, PO Box, or company name).
|
|
299
|
+
*/
|
|
300
|
+
line1: string;
|
|
301
|
+
/**
|
|
302
|
+
* Address line 2 (e.g., apartment, suite, unit, or building).
|
|
303
|
+
*/
|
|
304
|
+
line2?: string;
|
|
305
|
+
/**
|
|
306
|
+
* ZIP or postal code.
|
|
307
|
+
*/
|
|
308
|
+
postal_code: string;
|
|
309
|
+
/**
|
|
310
|
+
* State.
|
|
311
|
+
*/
|
|
312
|
+
state: string;
|
|
313
|
+
}
|
|
314
|
+
}
|
|
273
315
|
namespace CryptoWallet {
|
|
274
316
|
type Network = 'arbitrum' | 'avalanche_c_chain' | 'base' | 'ethereum' | 'optimism' | 'polygon' | 'solana' | 'stellar' | 'tempo' | OtherString;
|
|
275
317
|
}
|
|
@@ -3,14 +3,17 @@ import { OtherString } from '../../../shared.js';
|
|
|
3
3
|
import { RequestOptions, V2ListPromise, Response } from '../../../lib.js';
|
|
4
4
|
export declare class ReceivedDebitMandateResource extends StripeResource {
|
|
5
5
|
/**
|
|
6
|
+
* Deprecated: Use ListSpendingMandates instead.
|
|
6
7
|
* Returns a list of ReceivedDebitMandates.
|
|
7
8
|
*/
|
|
8
9
|
list(params?: V2.MoneyManagement.ReceivedDebitMandateListParams, options?: RequestOptions): V2ListPromise<ReceivedDebitMandate>;
|
|
9
10
|
/**
|
|
11
|
+
* Deprecated: Use RetrieveSpendingMandate instead.
|
|
10
12
|
* Retrieves the details of an existing ReceivedDebitMandate.
|
|
11
13
|
*/
|
|
12
14
|
retrieve(id: string, params?: V2.MoneyManagement.ReceivedDebitMandateRetrieveParams, options?: RequestOptions): Promise<Response<ReceivedDebitMandate>>;
|
|
13
15
|
/**
|
|
16
|
+
* Deprecated: Use CancelSpendingMandate instead.
|
|
14
17
|
* Cancels an active ReceivedDebitMandate.
|
|
15
18
|
*/
|
|
16
19
|
cancel(id: string, params?: V2.MoneyManagement.ReceivedDebitMandateCancelParams, options?: RequestOptions): Promise<Response<ReceivedDebitMandate>>;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { StripeResource } from '../../../StripeResource.js';
|
|
3
3
|
export class ReceivedDebitMandateResource extends StripeResource {
|
|
4
4
|
/**
|
|
5
|
+
* Deprecated: Use ListSpendingMandates instead.
|
|
5
6
|
* Returns a list of ReceivedDebitMandates.
|
|
6
7
|
*/
|
|
7
8
|
list(params, options) {
|
|
@@ -10,12 +11,14 @@ export class ReceivedDebitMandateResource extends StripeResource {
|
|
|
10
11
|
});
|
|
11
12
|
}
|
|
12
13
|
/**
|
|
14
|
+
* Deprecated: Use RetrieveSpendingMandate instead.
|
|
13
15
|
* Retrieves the details of an existing ReceivedDebitMandate.
|
|
14
16
|
*/
|
|
15
17
|
retrieve(id, params, options) {
|
|
16
18
|
return this._makeRequest('GET', `/v2/money_management/received_debit_mandates/${encodeURIComponent(id)}`, params, options);
|
|
17
19
|
}
|
|
18
20
|
/**
|
|
21
|
+
* Deprecated: Use CancelSpendingMandate instead.
|
|
19
22
|
* Cancels an active ReceivedDebitMandate.
|
|
20
23
|
*/
|
|
21
24
|
cancel(id, params, options) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReceivedDebitMandates.js","sourceRoot":"","sources":["../../../../src/resources/V2/MoneyManagement/ReceivedDebitMandates.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAEvC,OAAO,EAAC,cAAc,EAAC,MAAM,4BAA4B,CAAC;AAI1D,MAAM,OAAO,4BAA6B,SAAQ,cAAc;IAC9D
|
|
1
|
+
{"version":3,"file":"ReceivedDebitMandates.js","sourceRoot":"","sources":["../../../../src/resources/V2/MoneyManagement/ReceivedDebitMandates.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAEvC,OAAO,EAAC,cAAc,EAAC,MAAM,4BAA4B,CAAC;AAI1D,MAAM,OAAO,4BAA6B,SAAQ,cAAc;IAC9D;;;OAGG;IACH,IAAI,CACF,MAA0D,EAC1D,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,8CAA8C,EAC9C,MAAM,EACN,OAAO,EACP;YACE,UAAU,EAAE,MAAM;SACnB,CACK,CAAC;IACX,CAAC;IACD;;;OAGG;IACH,QAAQ,CACN,EAAU,EACV,MAA8D,EAC9D,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,gDAAgD,kBAAkB,CAAC,EAAE,CAAC,EAAE,EACxE,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;;OAGG;IACH,MAAM,CACJ,EAAU,EACV,MAA4D,EAC5D,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,gDAAgD,kBAAkB,CAChE,EAAE,CACH,SAAS,EACV,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;CACF"}
|
|
@@ -130,6 +130,10 @@ export declare namespace ReceivedDebit {
|
|
|
130
130
|
* Open Enum. The type of the payment method used to originate the debit.
|
|
131
131
|
*/
|
|
132
132
|
payment_method_type: BankTransfer.PaymentMethodType;
|
|
133
|
+
/**
|
|
134
|
+
* The ID of the SpendingMandate associated with this debit.
|
|
135
|
+
*/
|
|
136
|
+
spending_mandate?: string;
|
|
133
137
|
/**
|
|
134
138
|
* The statement descriptor set by the originator of the debit.
|
|
135
139
|
*/
|
|
@@ -233,6 +237,7 @@ export declare namespace ReceivedDebit {
|
|
|
233
237
|
network: GbBankAccount.Network;
|
|
234
238
|
/**
|
|
235
239
|
* The ID of the mandate associated with this debit.
|
|
240
|
+
* Deprecated: use `bank_transfer.spending_mandate` instead.
|
|
236
241
|
*/
|
|
237
242
|
received_debit_mandate?: string;
|
|
238
243
|
/**
|
|
@@ -365,9 +370,13 @@ export declare namespace V2 {
|
|
|
365
370
|
*/
|
|
366
371
|
limit?: number;
|
|
367
372
|
/**
|
|
368
|
-
* Filter by the received debit mandate ID.
|
|
373
|
+
* Filter by the received debit mandate ID. Deprecated: use `spending_mandate` instead.
|
|
369
374
|
*/
|
|
370
375
|
received_debit_mandate?: string;
|
|
376
|
+
/**
|
|
377
|
+
* Filter by the SpendingMandate ID.
|
|
378
|
+
*/
|
|
379
|
+
spending_mandate?: string;
|
|
371
380
|
}
|
|
372
381
|
}
|
|
373
382
|
}
|