Initial project import

This commit is contained in:
drjones
2026-06-13 17:36:44 -07:00
commit ad2a18cc8d
18471 changed files with 4497570 additions and 0 deletions

View File

@@ -0,0 +1,62 @@
import { StripeResource } from '../../../StripeResource.js';
import { InboundTransfer } from './../../Treasury/InboundTransfers.js';
import { RequestOptions, Response } from '../../../lib.js';
export declare class InboundTransferResource extends StripeResource {
/**
* Transitions a test mode created InboundTransfer to the failed status. The InboundTransfer must already be in the processing state.
*/
fail(id: string, params?: TestHelpers.Treasury.InboundTransferFailParams, options?: RequestOptions): Promise<Response<InboundTransfer>>;
/**
* Marks the test mode InboundTransfer object as returned and links the InboundTransfer to a ReceivedDebit. The InboundTransfer must already be in the succeeded state.
*/
returnInboundTransfer(id: string, params?: TestHelpers.Treasury.InboundTransferReturnInboundTransferParams, options?: RequestOptions): Promise<Response<InboundTransfer>>;
/**
* Transitions a test mode created InboundTransfer to the succeeded status. The InboundTransfer must already be in the processing state.
*/
succeed(id: string, params?: TestHelpers.Treasury.InboundTransferSucceedParams, options?: RequestOptions): Promise<Response<InboundTransfer>>;
}
export declare namespace TestHelpers {
namespace Treasury {
interface InboundTransferFailParams {
/**
* Specifies which fields in the response should be expanded.
*/
expand?: Array<string>;
/**
* Details about a failed InboundTransfer.
*/
failure_details?: InboundTransferFailParams.FailureDetails;
}
namespace InboundTransferFailParams {
interface FailureDetails {
/**
* Reason for the failure.
*/
code?: FailureDetails.Code;
}
namespace FailureDetails {
type Code = 'account_closed' | 'account_frozen' | 'bank_account_restricted' | 'bank_ownership_changed' | 'debit_not_authorized' | 'incorrect_account_holder_address' | 'incorrect_account_holder_name' | 'incorrect_account_holder_tax_id' | 'insufficient_funds' | 'invalid_account_number' | 'invalid_currency' | 'no_account' | 'other';
}
}
}
}
export declare namespace TestHelpers {
namespace Treasury {
interface InboundTransferReturnInboundTransferParams {
/**
* Specifies which fields in the response should be expanded.
*/
expand?: Array<string>;
}
}
}
export declare namespace TestHelpers {
namespace Treasury {
interface InboundTransferSucceedParams {
/**
* Specifies which fields in the response should be expanded.
*/
expand?: Array<string>;
}
}
}

View File

@@ -0,0 +1,23 @@
// File generated from our OpenAPI spec
import { StripeResource } from '../../../StripeResource.js';
export class InboundTransferResource extends StripeResource {
/**
* Transitions a test mode created InboundTransfer to the failed status. The InboundTransfer must already be in the processing state.
*/
fail(id, params, options) {
return this._makeRequest('POST', `/v1/test_helpers/treasury/inbound_transfers/${encodeURIComponent(id)}/fail`, params, options);
}
/**
* Marks the test mode InboundTransfer object as returned and links the InboundTransfer to a ReceivedDebit. The InboundTransfer must already be in the succeeded state.
*/
returnInboundTransfer(id, params, options) {
return this._makeRequest('POST', `/v1/test_helpers/treasury/inbound_transfers/${encodeURIComponent(id)}/return`, params, options);
}
/**
* Transitions a test mode created InboundTransfer to the succeeded status. The InboundTransfer must already be in the processing state.
*/
succeed(id, params, options) {
return this._makeRequest('POST', `/v1/test_helpers/treasury/inbound_transfers/${encodeURIComponent(id)}/succeed`, params, options);
}
}
//# sourceMappingURL=InboundTransfers.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"InboundTransfers.js","sourceRoot":"","sources":["../../../../src/resources/TestHelpers/Treasury/InboundTransfers.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAEvC,OAAO,EAAC,cAAc,EAAC,MAAM,4BAA4B,CAAC;AAI1D,MAAM,OAAO,uBAAwB,SAAQ,cAAc;IACzD;;OAEG;IACH,IAAI,CACF,EAAU,EACV,MAAuD,EACvD,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,+CAA+C,kBAAkB,CAC/D,EAAE,CACH,OAAO,EACR,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,qBAAqB,CACnB,EAAU,EACV,MAAwE,EACxE,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,+CAA+C,kBAAkB,CAC/D,EAAE,CACH,SAAS,EACV,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,OAAO,CACL,EAAU,EACV,MAA0D,EAC1D,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,+CAA+C,kBAAkB,CAC/D,EAAE,CACH,UAAU,EACX,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;CACF"}

View File

@@ -0,0 +1,119 @@
import { StripeResource } from '../../../StripeResource.js';
import { OutboundPayment } from './../../Treasury/OutboundPayments.js';
import { RequestOptions, Response } from '../../../lib.js';
export declare class OutboundPaymentResource extends StripeResource {
/**
* Updates a test mode created OutboundPayment with tracking details. The OutboundPayment must not be cancelable, and cannot be in the canceled or failed states.
*/
update(id: string, params: TestHelpers.Treasury.OutboundPaymentUpdateParams, options?: RequestOptions): Promise<Response<OutboundPayment>>;
/**
* Transitions a test mode created OutboundPayment to the failed status. The OutboundPayment must already be in the processing state.
*/
fail(id: string, params?: TestHelpers.Treasury.OutboundPaymentFailParams, options?: RequestOptions): Promise<Response<OutboundPayment>>;
/**
* Transitions a test mode created OutboundPayment to the posted status. The OutboundPayment must already be in the processing state.
*/
post(id: string, params?: TestHelpers.Treasury.OutboundPaymentPostParams, options?: RequestOptions): Promise<Response<OutboundPayment>>;
/**
* Transitions a test mode created OutboundPayment to the returned status. The OutboundPayment must already be in the processing state.
*/
returnOutboundPayment(id: string, params?: TestHelpers.Treasury.OutboundPaymentReturnOutboundPaymentParams, options?: RequestOptions): Promise<Response<OutboundPayment>>;
}
export declare namespace TestHelpers {
namespace Treasury {
interface OutboundPaymentUpdateParams {
/**
* Details about network-specific tracking information.
*/
tracking_details: OutboundPaymentUpdateParams.TrackingDetails;
/**
* Specifies which fields in the response should be expanded.
*/
expand?: Array<string>;
}
namespace OutboundPaymentUpdateParams {
interface TrackingDetails {
/**
* ACH network tracking details.
*/
ach?: TrackingDetails.Ach;
/**
* The US bank account network used to send funds.
*/
type: TrackingDetails.Type;
/**
* US domestic wire network tracking details.
*/
us_domestic_wire?: TrackingDetails.UsDomesticWire;
}
namespace TrackingDetails {
interface Ach {
/**
* ACH trace ID for funds sent over the `ach` network.
*/
trace_id: string;
}
type Type = 'ach' | 'us_domestic_wire';
interface UsDomesticWire {
/**
* CHIPS System Sequence Number (SSN) for funds sent over the `us_domestic_wire` network.
*/
chips?: string;
/**
* IMAD for funds sent over the `us_domestic_wire` network.
*/
imad?: string;
/**
* OMAD for funds sent over the `us_domestic_wire` network.
*/
omad?: string;
}
}
}
}
}
export declare namespace TestHelpers {
namespace Treasury {
interface OutboundPaymentFailParams {
/**
* Specifies which fields in the response should be expanded.
*/
expand?: Array<string>;
}
}
}
export declare namespace TestHelpers {
namespace Treasury {
interface OutboundPaymentPostParams {
/**
* Specifies which fields in the response should be expanded.
*/
expand?: Array<string>;
}
}
}
export declare namespace TestHelpers {
namespace Treasury {
interface OutboundPaymentReturnOutboundPaymentParams {
/**
* Specifies which fields in the response should be expanded.
*/
expand?: Array<string>;
/**
* Optional hash to set the return code.
*/
returned_details?: OutboundPaymentReturnOutboundPaymentParams.ReturnedDetails;
}
namespace OutboundPaymentReturnOutboundPaymentParams {
interface ReturnedDetails {
/**
* The return code to be set on the OutboundPayment object.
*/
code?: ReturnedDetails.Code;
}
namespace ReturnedDetails {
type Code = 'account_closed' | 'account_frozen' | 'bank_account_restricted' | 'bank_ownership_changed' | 'declined' | 'incorrect_account_holder_name' | 'invalid_account_number' | 'invalid_currency' | 'no_account' | 'other';
}
}
}
}

View File

@@ -0,0 +1,29 @@
// File generated from our OpenAPI spec
import { StripeResource } from '../../../StripeResource.js';
export class OutboundPaymentResource extends StripeResource {
/**
* Updates a test mode created OutboundPayment with tracking details. The OutboundPayment must not be cancelable, and cannot be in the canceled or failed states.
*/
update(id, params, options) {
return this._makeRequest('POST', `/v1/test_helpers/treasury/outbound_payments/${encodeURIComponent(id)}`, params, options);
}
/**
* Transitions a test mode created OutboundPayment to the failed status. The OutboundPayment must already be in the processing state.
*/
fail(id, params, options) {
return this._makeRequest('POST', `/v1/test_helpers/treasury/outbound_payments/${encodeURIComponent(id)}/fail`, params, options);
}
/**
* Transitions a test mode created OutboundPayment to the posted status. The OutboundPayment must already be in the processing state.
*/
post(id, params, options) {
return this._makeRequest('POST', `/v1/test_helpers/treasury/outbound_payments/${encodeURIComponent(id)}/post`, params, options);
}
/**
* Transitions a test mode created OutboundPayment to the returned status. The OutboundPayment must already be in the processing state.
*/
returnOutboundPayment(id, params, options) {
return this._makeRequest('POST', `/v1/test_helpers/treasury/outbound_payments/${encodeURIComponent(id)}/return`, params, options);
}
}
//# sourceMappingURL=OutboundPayments.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"OutboundPayments.js","sourceRoot":"","sources":["../../../../src/resources/TestHelpers/Treasury/OutboundPayments.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAEvC,OAAO,EAAC,cAAc,EAAC,MAAM,4BAA4B,CAAC;AAI1D,MAAM,OAAO,uBAAwB,SAAQ,cAAc;IACzD;;OAEG;IACH,MAAM,CACJ,EAAU,EACV,MAAwD,EACxD,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,+CAA+C,kBAAkB,CAAC,EAAE,CAAC,EAAE,EACvE,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,IAAI,CACF,EAAU,EACV,MAAuD,EACvD,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,+CAA+C,kBAAkB,CAC/D,EAAE,CACH,OAAO,EACR,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,IAAI,CACF,EAAU,EACV,MAAuD,EACvD,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,+CAA+C,kBAAkB,CAC/D,EAAE,CACH,OAAO,EACR,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,qBAAqB,CACnB,EAAU,EACV,MAAwE,EACxE,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,+CAA+C,kBAAkB,CAC/D,EAAE,CACH,SAAS,EACV,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;CACF"}

View File

@@ -0,0 +1,119 @@
import { StripeResource } from '../../../StripeResource.js';
import { OutboundTransfer } from './../../Treasury/OutboundTransfers.js';
import { RequestOptions, Response } from '../../../lib.js';
export declare class OutboundTransferResource extends StripeResource {
/**
* Updates a test mode created OutboundTransfer with tracking details. The OutboundTransfer must not be cancelable, and cannot be in the canceled or failed states.
*/
update(id: string, params: TestHelpers.Treasury.OutboundTransferUpdateParams, options?: RequestOptions): Promise<Response<OutboundTransfer>>;
/**
* Transitions a test mode created OutboundTransfer to the failed status. The OutboundTransfer must already be in the processing state.
*/
fail(id: string, params?: TestHelpers.Treasury.OutboundTransferFailParams, options?: RequestOptions): Promise<Response<OutboundTransfer>>;
/**
* Transitions a test mode created OutboundTransfer to the posted status. The OutboundTransfer must already be in the processing state.
*/
post(id: string, params?: TestHelpers.Treasury.OutboundTransferPostParams, options?: RequestOptions): Promise<Response<OutboundTransfer>>;
/**
* Transitions a test mode created OutboundTransfer to the returned status. The OutboundTransfer must already be in the processing state.
*/
returnOutboundTransfer(id: string, params?: TestHelpers.Treasury.OutboundTransferReturnOutboundTransferParams, options?: RequestOptions): Promise<Response<OutboundTransfer>>;
}
export declare namespace TestHelpers {
namespace Treasury {
interface OutboundTransferUpdateParams {
/**
* Details about network-specific tracking information.
*/
tracking_details: OutboundTransferUpdateParams.TrackingDetails;
/**
* Specifies which fields in the response should be expanded.
*/
expand?: Array<string>;
}
namespace OutboundTransferUpdateParams {
interface TrackingDetails {
/**
* ACH network tracking details.
*/
ach?: TrackingDetails.Ach;
/**
* The US bank account network used to send funds.
*/
type: TrackingDetails.Type;
/**
* US domestic wire network tracking details.
*/
us_domestic_wire?: TrackingDetails.UsDomesticWire;
}
namespace TrackingDetails {
interface Ach {
/**
* ACH trace ID for funds sent over the `ach` network.
*/
trace_id: string;
}
type Type = 'ach' | 'us_domestic_wire';
interface UsDomesticWire {
/**
* CHIPS System Sequence Number (SSN) for funds sent over the `us_domestic_wire` network.
*/
chips?: string;
/**
* IMAD for funds sent over the `us_domestic_wire` network.
*/
imad?: string;
/**
* OMAD for funds sent over the `us_domestic_wire` network.
*/
omad?: string;
}
}
}
}
}
export declare namespace TestHelpers {
namespace Treasury {
interface OutboundTransferFailParams {
/**
* Specifies which fields in the response should be expanded.
*/
expand?: Array<string>;
}
}
}
export declare namespace TestHelpers {
namespace Treasury {
interface OutboundTransferPostParams {
/**
* Specifies which fields in the response should be expanded.
*/
expand?: Array<string>;
}
}
}
export declare namespace TestHelpers {
namespace Treasury {
interface OutboundTransferReturnOutboundTransferParams {
/**
* Specifies which fields in the response should be expanded.
*/
expand?: Array<string>;
/**
* Details about a returned OutboundTransfer.
*/
returned_details?: OutboundTransferReturnOutboundTransferParams.ReturnedDetails;
}
namespace OutboundTransferReturnOutboundTransferParams {
interface ReturnedDetails {
/**
* Reason for the return.
*/
code?: ReturnedDetails.Code;
}
namespace ReturnedDetails {
type Code = 'account_closed' | 'account_frozen' | 'bank_account_restricted' | 'bank_ownership_changed' | 'declined' | 'incorrect_account_holder_name' | 'invalid_account_number' | 'invalid_currency' | 'no_account' | 'other';
}
}
}
}

View File

@@ -0,0 +1,29 @@
// File generated from our OpenAPI spec
import { StripeResource } from '../../../StripeResource.js';
export class OutboundTransferResource extends StripeResource {
/**
* Updates a test mode created OutboundTransfer with tracking details. The OutboundTransfer must not be cancelable, and cannot be in the canceled or failed states.
*/
update(id, params, options) {
return this._makeRequest('POST', `/v1/test_helpers/treasury/outbound_transfers/${encodeURIComponent(id)}`, params, options);
}
/**
* Transitions a test mode created OutboundTransfer to the failed status. The OutboundTransfer must already be in the processing state.
*/
fail(id, params, options) {
return this._makeRequest('POST', `/v1/test_helpers/treasury/outbound_transfers/${encodeURIComponent(id)}/fail`, params, options);
}
/**
* Transitions a test mode created OutboundTransfer to the posted status. The OutboundTransfer must already be in the processing state.
*/
post(id, params, options) {
return this._makeRequest('POST', `/v1/test_helpers/treasury/outbound_transfers/${encodeURIComponent(id)}/post`, params, options);
}
/**
* Transitions a test mode created OutboundTransfer to the returned status. The OutboundTransfer must already be in the processing state.
*/
returnOutboundTransfer(id, params, options) {
return this._makeRequest('POST', `/v1/test_helpers/treasury/outbound_transfers/${encodeURIComponent(id)}/return`, params, options);
}
}
//# sourceMappingURL=OutboundTransfers.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"OutboundTransfers.js","sourceRoot":"","sources":["../../../../src/resources/TestHelpers/Treasury/OutboundTransfers.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAEvC,OAAO,EAAC,cAAc,EAAC,MAAM,4BAA4B,CAAC;AAI1D,MAAM,OAAO,wBAAyB,SAAQ,cAAc;IAC1D;;OAEG;IACH,MAAM,CACJ,EAAU,EACV,MAAyD,EACzD,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,gDAAgD,kBAAkB,CAAC,EAAE,CAAC,EAAE,EACxE,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,IAAI,CACF,EAAU,EACV,MAAwD,EACxD,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,gDAAgD,kBAAkB,CAChE,EAAE,CACH,OAAO,EACR,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,IAAI,CACF,EAAU,EACV,MAAwD,EACxD,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,gDAAgD,kBAAkB,CAChE,EAAE,CACH,OAAO,EACR,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,sBAAsB,CACpB,EAAU,EACV,MAA0E,EAC1E,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,gDAAgD,kBAAkB,CAChE,EAAE,CACH,SAAS,EACV,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;CACF"}

View File

@@ -0,0 +1,72 @@
import { StripeResource } from '../../../StripeResource.js';
import { ReceivedCredit } from './../../Treasury/ReceivedCredits.js';
import { RequestOptions, Response } from '../../../lib.js';
export declare class ReceivedCreditResource extends StripeResource {
/**
* Use this endpoint to simulate a test mode ReceivedCredit initiated by a third party. In live mode, you can't directly create ReceivedCredits initiated by third parties.
*/
create(params: TestHelpers.Treasury.ReceivedCreditCreateParams, options?: RequestOptions): Promise<Response<ReceivedCredit>>;
}
export declare namespace TestHelpers {
namespace Treasury {
interface ReceivedCreditCreateParams {
/**
* Amount (in cents) to be transferred.
*/
amount: number;
/**
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
*/
currency: string;
/**
* The FinancialAccount to send funds to.
*/
financial_account: string;
/**
* Specifies the network rails to be used. If not set, will default to the PaymentMethod's preferred network. See the [docs](https://docs.stripe.com/treasury/money-movement/timelines) to learn more about money movement timelines for each network type.
*/
network: ReceivedCreditCreateParams.Network;
/**
* An arbitrary string attached to the object. Often useful for displaying to users.
*/
description?: string;
/**
* Specifies which fields in the response should be expanded.
*/
expand?: Array<string>;
/**
* Initiating payment method details for the object.
*/
initiating_payment_method_details?: ReceivedCreditCreateParams.InitiatingPaymentMethodDetails;
}
namespace ReceivedCreditCreateParams {
type Network = 'ach' | 'us_domestic_wire';
interface InitiatingPaymentMethodDetails {
/**
* The source type.
*/
type: 'us_bank_account';
/**
* Optional fields for `us_bank_account`.
*/
us_bank_account?: InitiatingPaymentMethodDetails.UsBankAccount;
}
namespace InitiatingPaymentMethodDetails {
interface UsBankAccount {
/**
* The bank account holder's name.
*/
account_holder_name?: string;
/**
* The bank account number.
*/
account_number?: string;
/**
* The bank account's routing number.
*/
routing_number?: string;
}
}
}
}
}

View File

@@ -0,0 +1,11 @@
// File generated from our OpenAPI spec
import { StripeResource } from '../../../StripeResource.js';
export class ReceivedCreditResource extends StripeResource {
/**
* Use this endpoint to simulate a test mode ReceivedCredit initiated by a third party. In live mode, you can't directly create ReceivedCredits initiated by third parties.
*/
create(params, options) {
return this._makeRequest('POST', '/v1/test_helpers/treasury/received_credits', params, options);
}
}
//# sourceMappingURL=ReceivedCredits.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"ReceivedCredits.js","sourceRoot":"","sources":["../../../../src/resources/TestHelpers/Treasury/ReceivedCredits.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAEvC,OAAO,EAAC,cAAc,EAAC,MAAM,4BAA4B,CAAC;AAI1D,MAAM,OAAO,sBAAuB,SAAQ,cAAc;IACxD;;OAEG;IACH,MAAM,CACJ,MAAuD,EACvD,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,4CAA4C,EAC5C,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;CACF"}

View File

@@ -0,0 +1,71 @@
import { StripeResource } from '../../../StripeResource.js';
import { ReceivedDebit } from './../../Treasury/ReceivedDebits.js';
import { RequestOptions, Response } from '../../../lib.js';
export declare class ReceivedDebitResource extends StripeResource {
/**
* Use this endpoint to simulate a test mode ReceivedDebit initiated by a third party. In live mode, you can't directly create ReceivedDebits initiated by third parties.
*/
create(params: TestHelpers.Treasury.ReceivedDebitCreateParams, options?: RequestOptions): Promise<Response<ReceivedDebit>>;
}
export declare namespace TestHelpers {
namespace Treasury {
interface ReceivedDebitCreateParams {
/**
* Amount (in cents) to be transferred.
*/
amount: number;
/**
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
*/
currency: string;
/**
* The FinancialAccount to pull funds from.
*/
financial_account: string;
/**
* Specifies the network rails to be used. If not set, will default to the PaymentMethod's preferred network. See the [docs](https://docs.stripe.com/treasury/money-movement/timelines) to learn more about money movement timelines for each network type.
*/
network: 'ach';
/**
* An arbitrary string attached to the object. Often useful for displaying to users.
*/
description?: string;
/**
* Specifies which fields in the response should be expanded.
*/
expand?: Array<string>;
/**
* Initiating payment method details for the object.
*/
initiating_payment_method_details?: ReceivedDebitCreateParams.InitiatingPaymentMethodDetails;
}
namespace ReceivedDebitCreateParams {
interface InitiatingPaymentMethodDetails {
/**
* The source type.
*/
type: 'us_bank_account';
/**
* Optional fields for `us_bank_account`.
*/
us_bank_account?: InitiatingPaymentMethodDetails.UsBankAccount;
}
namespace InitiatingPaymentMethodDetails {
interface UsBankAccount {
/**
* The bank account holder's name.
*/
account_holder_name?: string;
/**
* The bank account number.
*/
account_number?: string;
/**
* The bank account's routing number.
*/
routing_number?: string;
}
}
}
}
}

View File

@@ -0,0 +1,11 @@
// File generated from our OpenAPI spec
import { StripeResource } from '../../../StripeResource.js';
export class ReceivedDebitResource extends StripeResource {
/**
* Use this endpoint to simulate a test mode ReceivedDebit initiated by a third party. In live mode, you can't directly create ReceivedDebits initiated by third parties.
*/
create(params, options) {
return this._makeRequest('POST', '/v1/test_helpers/treasury/received_debits', params, options);
}
}
//# sourceMappingURL=ReceivedDebits.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"ReceivedDebits.js","sourceRoot":"","sources":["../../../../src/resources/TestHelpers/Treasury/ReceivedDebits.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAEvC,OAAO,EAAC,cAAc,EAAC,MAAM,4BAA4B,CAAC;AAI1D,MAAM,OAAO,qBAAsB,SAAQ,cAAc;IACvD;;OAEG;IACH,MAAM,CACJ,MAAsD,EACtD,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,2CAA2C,EAC3C,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;CACF"}

View File

@@ -0,0 +1,16 @@
import { Stripe } from '../../../stripe.core.js';
import { InboundTransferResource } from './InboundTransfers.js';
import { OutboundPaymentResource } from './OutboundPayments.js';
import { OutboundTransferResource } from './OutboundTransfers.js';
import { ReceivedCreditResource } from './ReceivedCredits.js';
import { ReceivedDebitResource } from './ReceivedDebits.js';
export declare class Treasury {
private readonly stripe;
inboundTransfers: InboundTransferResource;
outboundPayments: OutboundPaymentResource;
outboundTransfers: OutboundTransferResource;
receivedCredits: ReceivedCreditResource;
receivedDebits: ReceivedDebitResource;
constructor(stripe: Stripe);
}
export declare namespace Treasury { }

View File

@@ -0,0 +1,17 @@
// File generated from our OpenAPI spec
import { InboundTransferResource, } from './InboundTransfers.js';
import { OutboundPaymentResource, } from './OutboundPayments.js';
import { OutboundTransferResource, } from './OutboundTransfers.js';
import { ReceivedCreditResource, } from './ReceivedCredits.js';
import { ReceivedDebitResource, } from './ReceivedDebits.js';
export class Treasury {
constructor(stripe) {
this.stripe = stripe;
this.inboundTransfers = new InboundTransferResource(stripe);
this.outboundPayments = new OutboundPaymentResource(stripe);
this.outboundTransfers = new OutboundTransferResource(stripe);
this.receivedCredits = new ReceivedCreditResource(stripe);
this.receivedDebits = new ReceivedDebitResource(stripe);
}
}
//# sourceMappingURL=index.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/resources/TestHelpers/Treasury/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAGvC,OAAO,EAEL,uBAAuB,GACxB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAEL,uBAAuB,GACxB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAEL,wBAAwB,GACzB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,sBAAsB,GACvB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAEL,qBAAqB,GACtB,MAAM,qBAAqB,CAAC;AAE7B,MAAM,OAAO,QAAQ;IAOnB,YAA6B,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;QACzC,IAAI,CAAC,gBAAgB,GAAG,IAAI,uBAAuB,CAAC,MAAM,CAAC,CAAC;QAC5D,IAAI,CAAC,gBAAgB,GAAG,IAAI,uBAAuB,CAAC,MAAM,CAAC,CAAC;QAC5D,IAAI,CAAC,iBAAiB,GAAG,IAAI,wBAAwB,CAAC,MAAM,CAAC,CAAC;QAC9D,IAAI,CAAC,eAAe,GAAG,IAAI,sBAAsB,CAAC,MAAM,CAAC,CAAC;QAC1D,IAAI,CAAC,cAAc,GAAG,IAAI,qBAAqB,CAAC,MAAM,CAAC,CAAC;IAC1D,CAAC;CACF"}