@augustusbank/typescript-sdk 0.20.0 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +28 -0
- package/client.d.mts +6 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +6 -0
- package/client.d.ts.map +1 -1
- package/client.js +6 -0
- package/client.js.map +1 -1
- package/client.mjs +6 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/account-holders.d.mts +1555 -1184
- package/resources/account-holders.d.mts.map +1 -1
- package/resources/account-holders.d.ts +1555 -1184
- package/resources/account-holders.d.ts.map +1 -1
- package/resources/account-holders.js +59 -0
- package/resources/account-holders.js.map +1 -1
- package/resources/account-holders.mjs +59 -0
- package/resources/account-holders.mjs.map +1 -1
- package/resources/account-programs.d.mts +2 -2
- package/resources/account-programs.d.ts +2 -2
- package/resources/accounts.d.mts +206 -43
- package/resources/accounts.d.mts.map +1 -1
- package/resources/accounts.d.ts +206 -43
- package/resources/accounts.d.ts.map +1 -1
- package/resources/accounts.js +53 -0
- package/resources/accounts.js.map +1 -1
- package/resources/accounts.mjs +53 -0
- package/resources/accounts.mjs.map +1 -1
- package/resources/api-keys.d.mts +1 -1
- package/resources/api-keys.d.mts.map +1 -1
- package/resources/api-keys.d.ts +1 -1
- package/resources/api-keys.d.ts.map +1 -1
- package/resources/api-versions.d.mts +3 -0
- package/resources/api-versions.d.mts.map +1 -1
- package/resources/api-versions.d.ts +3 -0
- package/resources/api-versions.d.ts.map +1 -1
- package/resources/conversions.d.mts +36 -81
- package/resources/conversions.d.mts.map +1 -1
- package/resources/conversions.d.ts +36 -81
- package/resources/conversions.d.ts.map +1 -1
- package/resources/conversions.js +25 -1
- package/resources/conversions.js.map +1 -1
- package/resources/conversions.mjs +25 -1
- package/resources/conversions.mjs.map +1 -1
- package/resources/counterparties.d.mts +1042 -0
- package/resources/counterparties.d.mts.map +1 -0
- package/resources/counterparties.d.ts +1042 -0
- package/resources/counterparties.d.ts.map +1 -0
- package/resources/counterparties.js +45 -0
- package/resources/counterparties.js.map +1 -0
- package/resources/counterparties.mjs +41 -0
- package/resources/counterparties.mjs.map +1 -0
- package/resources/deposits.d.mts +38 -186
- package/resources/deposits.d.mts.map +1 -1
- package/resources/deposits.d.ts +38 -186
- package/resources/deposits.d.ts.map +1 -1
- package/resources/index.d.mts +2 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -0
- package/resources/index.mjs.map +1 -1
- package/resources/payouts.d.mts +458 -276
- package/resources/payouts.d.mts.map +1 -1
- package/resources/payouts.d.ts +458 -276
- package/resources/payouts.d.ts.map +1 -1
- package/resources/payouts.js +27 -0
- package/resources/payouts.js.map +1 -1
- package/resources/payouts.mjs +27 -0
- package/resources/payouts.mjs.map +1 -1
- package/resources/quotes/indicative.d.mts +7 -11
- package/resources/quotes/indicative.d.mts.map +1 -1
- package/resources/quotes/indicative.d.ts +7 -11
- package/resources/quotes/indicative.d.ts.map +1 -1
- package/resources/quotes/quotes.d.mts +4 -8
- package/resources/quotes/quotes.d.mts.map +1 -1
- package/resources/quotes/quotes.d.ts +4 -8
- package/resources/quotes/quotes.d.ts.map +1 -1
- package/resources/quotes/quotes.js.map +1 -1
- package/resources/quotes/quotes.mjs.map +1 -1
- package/resources/returns.d.mts +84 -39
- package/resources/returns.d.mts.map +1 -1
- package/resources/returns.d.ts +84 -39
- package/resources/returns.d.ts.map +1 -1
- package/resources/returns.js +22 -0
- package/resources/returns.js.map +1 -1
- package/resources/returns.mjs +22 -0
- package/resources/returns.mjs.map +1 -1
- package/resources/scopes.d.mts +4 -1
- package/resources/scopes.d.mts.map +1 -1
- package/resources/scopes.d.ts +4 -1
- package/resources/scopes.d.ts.map +1 -1
- package/resources/simulations/account-programs.d.mts +281 -0
- package/resources/simulations/account-programs.d.mts.map +1 -0
- package/resources/simulations/account-programs.d.ts +281 -0
- package/resources/simulations/account-programs.d.ts.map +1 -0
- package/resources/simulations/account-programs.js +98 -0
- package/resources/simulations/account-programs.js.map +1 -0
- package/resources/simulations/account-programs.mjs +94 -0
- package/resources/simulations/account-programs.mjs.map +1 -0
- package/resources/simulations/accounts.d.mts +270 -0
- package/resources/simulations/accounts.d.mts.map +1 -0
- package/resources/simulations/accounts.d.ts +270 -0
- package/resources/simulations/accounts.d.ts.map +1 -0
- package/resources/simulations/accounts.js +91 -0
- package/resources/simulations/accounts.js.map +1 -0
- package/resources/simulations/accounts.mjs +87 -0
- package/resources/simulations/accounts.mjs.map +1 -0
- package/resources/simulations/deposits.d.mts +218 -0
- package/resources/simulations/deposits.d.mts.map +1 -0
- package/resources/simulations/deposits.d.ts +218 -0
- package/resources/simulations/deposits.d.ts.map +1 -0
- package/resources/simulations/deposits.js +25 -0
- package/resources/simulations/deposits.js.map +1 -0
- package/resources/simulations/deposits.mjs +21 -0
- package/resources/simulations/deposits.mjs.map +1 -0
- package/resources/simulations/index.d.mts +6 -0
- package/resources/simulations/index.d.mts.map +1 -0
- package/resources/simulations/index.d.ts +6 -0
- package/resources/simulations/index.d.ts.map +1 -0
- package/resources/simulations/index.js +15 -0
- package/resources/simulations/index.js.map +1 -0
- package/resources/simulations/index.mjs +7 -0
- package/resources/simulations/index.mjs.map +1 -0
- package/resources/simulations/payouts.d.mts +76 -0
- package/resources/simulations/payouts.d.mts.map +1 -0
- package/resources/simulations/payouts.d.ts +76 -0
- package/resources/simulations/payouts.d.ts.map +1 -0
- package/resources/simulations/payouts.js +39 -0
- package/resources/simulations/payouts.js.map +1 -0
- package/resources/simulations/payouts.mjs +35 -0
- package/resources/simulations/payouts.mjs.map +1 -0
- package/resources/simulations/simulations.d.mts +22 -0
- package/resources/simulations/simulations.d.mts.map +1 -0
- package/resources/simulations/simulations.d.ts +22 -0
- package/resources/simulations/simulations.d.ts.map +1 -0
- package/resources/simulations/simulations.js +29 -0
- package/resources/simulations/simulations.js.map +1 -0
- package/resources/simulations/simulations.mjs +24 -0
- package/resources/simulations/simulations.mjs.map +1 -0
- package/resources/simulations.d.mts +2 -0
- package/resources/simulations.d.mts.map +1 -0
- package/resources/simulations.d.ts +2 -0
- package/resources/simulations.d.ts.map +1 -0
- package/resources/simulations.js +6 -0
- package/resources/simulations.js.map +1 -0
- package/resources/simulations.mjs +3 -0
- package/resources/simulations.mjs.map +1 -0
- package/resources/transactions.d.mts +300 -180
- package/resources/transactions.d.mts.map +1 -1
- package/resources/transactions.d.ts +300 -180
- package/resources/transactions.d.ts.map +1 -1
- package/resources/webhook-subscriptions.d.mts +54 -4
- package/resources/webhook-subscriptions.d.mts.map +1 -1
- package/resources/webhook-subscriptions.d.ts +54 -4
- package/resources/webhook-subscriptions.d.ts.map +1 -1
- package/resources/webhook-subscriptions.js +49 -0
- package/resources/webhook-subscriptions.js.map +1 -1
- package/resources/webhook-subscriptions.mjs +49 -0
- package/resources/webhook-subscriptions.mjs.map +1 -1
- package/resources/webhooks.d.mts +736 -953
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +736 -953
- package/resources/webhooks.d.ts.map +1 -1
- package/src/client.ts +32 -0
- package/src/resources/account-holders.ts +1701 -1282
- package/src/resources/account-programs.ts +2 -2
- package/src/resources/accounts.ts +236 -44
- package/src/resources/api-keys.ts +3 -0
- package/src/resources/api-versions.ts +3 -0
- package/src/resources/conversions.ts +36 -93
- package/src/resources/counterparties.ts +3127 -0
- package/src/resources/deposits.ts +54 -269
- package/src/resources/index.ts +13 -0
- package/src/resources/payouts.ts +2089 -367
- package/src/resources/quotes/indicative.ts +7 -12
- package/src/resources/quotes/quotes.ts +4 -9
- package/src/resources/returns.ts +144 -40
- package/src/resources/scopes.ts +7 -1
- package/src/resources/simulations/account-programs.ts +363 -0
- package/src/resources/simulations/accounts.ts +340 -0
- package/src/resources/simulations/deposits.ts +530 -0
- package/src/resources/simulations/index.ts +32 -0
- package/src/resources/simulations/payouts.ts +98 -0
- package/src/resources/simulations/simulations.ts +82 -0
- package/src/resources/simulations.ts +3 -0
- package/src/resources/transactions.ts +910 -232
- package/src/resources/webhook-subscriptions.ts +54 -4
- package/src/resources/webhooks.ts +948 -1126
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deposits.d.mts","sourceRoot":"","sources":["../../src/resources/simulations/deposits.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAEhE,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;CAG/F;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,QAAQ,EAAE,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,MAAM,CAAC;IAEzC;;OAEG;IACH,IAAI,EAAE,MAAM,GAAG,cAAc,GAAG,iBAAiB,GAAG,KAAK,GAAG,SAAS,GAAG,OAAO,GAAG,IAAI,CAAC;IAEvF;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,IAAI,EAAE,oBAAoB,CAAC;IAE3B;;;OAGG;IACH,mCAAmC,EAAE,MAAM,GAAG,IAAI,CAAC;CACpD;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,QAAQ,EAAE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G,IAAI,CAAC;YAEtB;;eAEG;YACH,WAAW,EAAE,MAAM,CAAC;YAEpB;;eAEG;YACH,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;SACtB;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
4
|
+
export declare class Deposits extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Initiates an incoming deposit through the sandbox provider pipeline. This
|
|
7
|
+
* endpoint is unavailable in live production.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const deposit = await client.simulations.deposits.create({
|
|
12
|
+
* account_id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
13
|
+
* amount: '869.225610155',
|
|
14
|
+
* currency: 'EUR',
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
create(body: DepositCreateParams, options?: RequestOptions): APIPromise<DepositCreateResponse>;
|
|
19
|
+
}
|
|
20
|
+
export interface DepositCreateResponse {
|
|
21
|
+
/**
|
|
22
|
+
* Account receiving the simulated deposit.
|
|
23
|
+
*/
|
|
24
|
+
account_id: string;
|
|
25
|
+
/**
|
|
26
|
+
* Simulated amount as a decimal string.
|
|
27
|
+
*/
|
|
28
|
+
amount: string;
|
|
29
|
+
/**
|
|
30
|
+
* Currency of the receiving account.
|
|
31
|
+
*/
|
|
32
|
+
currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
33
|
+
/**
|
|
34
|
+
* Payment rail the simulated deposit arrived on, or null when not known.
|
|
35
|
+
*/
|
|
36
|
+
rail: 'sepa' | 'sepa_instant' | 'faster_payments' | 'ach' | 'fedwire' | 'swift' | null;
|
|
37
|
+
/**
|
|
38
|
+
* Whether the simulation submission was successful.
|
|
39
|
+
*/
|
|
40
|
+
success: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Resource type discriminator.
|
|
43
|
+
*/
|
|
44
|
+
type: 'deposit_simulation';
|
|
45
|
+
/**
|
|
46
|
+
* ISO 20022 unstructured remittance information (<RmtInf>/<Ustrd>), or null when
|
|
47
|
+
* omitted.
|
|
48
|
+
*/
|
|
49
|
+
unstructured_remittance_information: string | null;
|
|
50
|
+
}
|
|
51
|
+
export interface DepositCreateParams {
|
|
52
|
+
/**
|
|
53
|
+
* ID of the account to credit with the simulated deposit.
|
|
54
|
+
*/
|
|
55
|
+
account_id: string;
|
|
56
|
+
/**
|
|
57
|
+
* Amount as a decimal string in the account currency (e.g. "100.50").
|
|
58
|
+
*/
|
|
59
|
+
amount: string;
|
|
60
|
+
/**
|
|
61
|
+
* Currency of the simulated deposit.
|
|
62
|
+
*/
|
|
63
|
+
currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
64
|
+
/**
|
|
65
|
+
* Sender of the simulated deposit.
|
|
66
|
+
*/
|
|
67
|
+
counterparty?: DepositCreateParams.Counterparty;
|
|
68
|
+
/**
|
|
69
|
+
* Payment rail the simulated deposit arrives on.
|
|
70
|
+
*/
|
|
71
|
+
rail?: 'sepa' | 'sepa_instant' | 'faster_payments' | 'ach' | 'fedwire' | 'swift';
|
|
72
|
+
/**
|
|
73
|
+
* Unstructured remittance information attached to the transfer. Not all rails
|
|
74
|
+
* support this field.
|
|
75
|
+
*/
|
|
76
|
+
unstructured_remittance_information?: string;
|
|
77
|
+
}
|
|
78
|
+
export declare namespace DepositCreateParams {
|
|
79
|
+
/**
|
|
80
|
+
* Sender of the simulated deposit.
|
|
81
|
+
*/
|
|
82
|
+
interface Counterparty {
|
|
83
|
+
/**
|
|
84
|
+
* Financial address of the counterparty.
|
|
85
|
+
*/
|
|
86
|
+
financial_address: Counterparty.IbanFinancialAddressRequest | Counterparty.SortCodeFinancialAddress | Counterparty.AbaFinancialAddress | Counterparty.BicFinancialAddressRequest | Counterparty.CryptoWalletFinancialAddress;
|
|
87
|
+
/**
|
|
88
|
+
* Physical address of the counterparty.
|
|
89
|
+
*/
|
|
90
|
+
physical_address?: Counterparty.PhysicalAddress | null;
|
|
91
|
+
}
|
|
92
|
+
namespace Counterparty {
|
|
93
|
+
interface IbanFinancialAddressRequest {
|
|
94
|
+
/**
|
|
95
|
+
* Name of the account holder.
|
|
96
|
+
*/
|
|
97
|
+
account_holder_name: string;
|
|
98
|
+
/**
|
|
99
|
+
* International Bank Account Number.
|
|
100
|
+
*/
|
|
101
|
+
iban: string;
|
|
102
|
+
/**
|
|
103
|
+
* Discriminator for IBAN financial address.
|
|
104
|
+
*/
|
|
105
|
+
type: 'iban';
|
|
106
|
+
/**
|
|
107
|
+
* Bank Identifier Code. Optional; omit or send null if not provided.
|
|
108
|
+
*/
|
|
109
|
+
bic?: string | null;
|
|
110
|
+
}
|
|
111
|
+
interface SortCodeFinancialAddress {
|
|
112
|
+
/**
|
|
113
|
+
* Name of the account holder.
|
|
114
|
+
*/
|
|
115
|
+
account_holder_name: string;
|
|
116
|
+
/**
|
|
117
|
+
* UK account number (8 digits).
|
|
118
|
+
*/
|
|
119
|
+
account_number: string;
|
|
120
|
+
/**
|
|
121
|
+
* UK sort code (6 digits).
|
|
122
|
+
*/
|
|
123
|
+
sort_code: string;
|
|
124
|
+
/**
|
|
125
|
+
* Discriminator for UK sort code financial address.
|
|
126
|
+
*/
|
|
127
|
+
type: 'sort_code';
|
|
128
|
+
}
|
|
129
|
+
interface AbaFinancialAddress {
|
|
130
|
+
/**
|
|
131
|
+
* Name of the account holder.
|
|
132
|
+
*/
|
|
133
|
+
account_holder_name: string;
|
|
134
|
+
/**
|
|
135
|
+
* Bank account number.
|
|
136
|
+
*/
|
|
137
|
+
account_number: string;
|
|
138
|
+
/**
|
|
139
|
+
* ABA routing number (9 digits).
|
|
140
|
+
*/
|
|
141
|
+
routing_number: string;
|
|
142
|
+
/**
|
|
143
|
+
* Discriminator for ABA wire financial address.
|
|
144
|
+
*/
|
|
145
|
+
type: 'aba';
|
|
146
|
+
}
|
|
147
|
+
interface BicFinancialAddressRequest {
|
|
148
|
+
/**
|
|
149
|
+
* Name of the account holder.
|
|
150
|
+
*/
|
|
151
|
+
account_holder_name: string;
|
|
152
|
+
/**
|
|
153
|
+
* Local-format bank account number (1-34 alphanumeric characters).
|
|
154
|
+
*/
|
|
155
|
+
account_number: string;
|
|
156
|
+
/**
|
|
157
|
+
* ISO 9362 Bank Identifier Code (8 or 11 characters).
|
|
158
|
+
*/
|
|
159
|
+
bic: string;
|
|
160
|
+
/**
|
|
161
|
+
* Discriminator for BIC + local account financial address.
|
|
162
|
+
*/
|
|
163
|
+
type: 'bic';
|
|
164
|
+
/**
|
|
165
|
+
* Domestic bank or branch code where the destination country uses one (for example
|
|
166
|
+
* the BSB in Australia). Optional; omit or send null where the country has none.
|
|
167
|
+
*/
|
|
168
|
+
local_bank_code?: string | null;
|
|
169
|
+
}
|
|
170
|
+
interface CryptoWalletFinancialAddress {
|
|
171
|
+
/**
|
|
172
|
+
* Wallet address on the specified blockchain.
|
|
173
|
+
*/
|
|
174
|
+
address: string;
|
|
175
|
+
/**
|
|
176
|
+
* Blockchain network for the crypto wallet.
|
|
177
|
+
*/
|
|
178
|
+
blockchain: 'bitcoin' | 'ethereum' | 'solana' | 'polygon' | 'bitcoin_testnet4' | 'ethereum_sepolia' | 'solana_devnet' | 'polygon_amoy';
|
|
179
|
+
/**
|
|
180
|
+
* Discriminator for crypto wallet financial address.
|
|
181
|
+
*/
|
|
182
|
+
type: 'crypto_wallet';
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* Physical address of the counterparty.
|
|
186
|
+
*/
|
|
187
|
+
interface PhysicalAddress {
|
|
188
|
+
/**
|
|
189
|
+
* City or locality.
|
|
190
|
+
*/
|
|
191
|
+
city: string;
|
|
192
|
+
/**
|
|
193
|
+
* ISO 3166-1 alpha-2 country code.
|
|
194
|
+
*/
|
|
195
|
+
country_code: 'AF' | 'AL' | 'DZ' | 'AS' | 'AD' | 'AO' | 'AI' | 'AQ' | 'AG' | 'AR' | 'AM' | 'AW' | 'AU' | 'AT' | 'AZ' | 'BS' | 'BH' | 'BD' | 'BB' | 'BY' | 'BE' | 'BZ' | 'BJ' | 'BM' | 'BT' | 'BO' | 'BA' | 'BW' | 'BV' | 'BR' | 'IO' | 'BN' | 'BG' | 'BF' | 'BI' | 'KH' | 'CM' | 'CA' | 'CV' | 'KY' | 'CF' | 'TD' | 'CL' | 'CN' | 'CX' | 'CC' | 'CO' | 'KM' | 'CG' | 'CD' | 'CK' | 'CR' | 'CI' | 'HR' | 'CU' | 'CY' | 'CZ' | 'DK' | 'DJ' | 'DM' | 'DO' | 'EC' | 'EG' | 'SV' | 'GQ' | 'ER' | 'EE' | 'ET' | 'FK' | 'FO' | 'FJ' | 'FI' | 'FR' | 'GF' | 'PF' | 'TF' | 'GA' | 'GM' | 'GE' | 'DE' | 'GH' | 'GI' | 'GR' | 'GL' | 'GD' | 'GP' | 'GU' | 'GT' | 'GN' | 'GW' | 'GY' | 'HT' | 'HM' | 'VA' | 'HN' | 'HK' | 'HU' | 'IS' | 'IN' | 'ID' | 'IR' | 'IQ' | 'IE' | 'IL' | 'IT' | 'JM' | 'JP' | 'JO' | 'KZ' | 'KE' | 'KI' | 'KP' | 'KR' | 'KW' | 'KG' | 'LA' | 'LV' | 'LB' | 'LS' | 'LR' | 'LY' | 'LI' | 'LT' | 'LU' | 'MO' | 'MG' | 'MW' | 'MY' | 'MV' | 'ML' | 'MT' | 'MH' | 'MQ' | 'MR' | 'MU' | 'YT' | 'MX' | 'FM' | 'MD' | 'MC' | 'MN' | 'MS' | 'MA' | 'MZ' | 'MM' | 'NA' | 'NR' | 'NP' | 'NL' | 'NC' | 'NZ' | 'NI' | 'NE' | 'NG' | 'NU' | 'NF' | 'MP' | 'MK' | 'NO' | 'OM' | 'PK' | 'PW' | 'PS' | 'PA' | 'PG' | 'PY' | 'PE' | 'PH' | 'PN' | 'PL' | 'PT' | 'PR' | 'QA' | 'RE' | 'RO' | 'RU' | 'RW' | 'SH' | 'KN' | 'LC' | 'PM' | 'VC' | 'WS' | 'SM' | 'ST' | 'SA' | 'SN' | 'SC' | 'SL' | 'SG' | 'SK' | 'SI' | 'SB' | 'SO' | 'ZA' | 'GS' | 'ES' | 'LK' | 'SD' | 'SR' | 'SJ' | 'SZ' | 'SE' | 'CH' | 'SY' | 'TW' | 'TJ' | 'TZ' | 'TH' | 'TL' | 'TG' | 'TK' | 'TO' | 'TT' | 'TN' | 'TR' | 'TM' | 'TC' | 'TV' | 'UG' | 'UA' | 'AE' | 'GB' | 'US' | 'UM' | 'UY' | 'UZ' | 'VU' | 'VE' | 'VN' | 'VG' | 'VI' | 'WF' | 'EH' | 'YE' | 'ZM' | 'ZW' | 'AX' | 'BQ' | 'CW' | 'GG' | 'IM' | 'JE' | 'ME' | 'BL' | 'MF' | 'RS' | 'SX' | 'SS' | 'XK';
|
|
196
|
+
/**
|
|
197
|
+
* Primary street address.
|
|
198
|
+
*/
|
|
199
|
+
line_1: string;
|
|
200
|
+
/**
|
|
201
|
+
* Secondary street address, or null if not recorded.
|
|
202
|
+
*/
|
|
203
|
+
line_2: string | null;
|
|
204
|
+
/**
|
|
205
|
+
* Postal or ZIP code.
|
|
206
|
+
*/
|
|
207
|
+
postal_code: string;
|
|
208
|
+
/**
|
|
209
|
+
* State, province, or region, or null if not recorded.
|
|
210
|
+
*/
|
|
211
|
+
state: string | null;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
export declare namespace Deposits {
|
|
216
|
+
export { type DepositCreateResponse as DepositCreateResponse, type DepositCreateParams as DepositCreateParams, };
|
|
217
|
+
}
|
|
218
|
+
//# sourceMappingURL=deposits.d.ts.map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,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Deposits = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
class Deposits extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Initiates an incoming deposit through the sandbox provider pipeline. This
|
|
9
|
+
* endpoint is unavailable in live production.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const deposit = await client.simulations.deposits.create({
|
|
14
|
+
* account_id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
15
|
+
* amount: '869.225610155',
|
|
16
|
+
* currency: 'EUR',
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
create(body, options) {
|
|
21
|
+
return this._client.post('/v1/simulations/deposits', { body, ...options });
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.Deposits = Deposits;
|
|
25
|
+
//# sourceMappingURL=deposits.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deposits.js","sourceRoot":"","sources":["../../src/resources/simulations/deposits.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;CACF;AAjBD,4BAiBC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
export class Deposits extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Initiates an incoming deposit through the sandbox provider pipeline. This
|
|
6
|
+
* endpoint is unavailable in live production.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const deposit = await client.simulations.deposits.create({
|
|
11
|
+
* account_id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
12
|
+
* amount: '869.225610155',
|
|
13
|
+
* currency: 'EUR',
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
create(body, options) {
|
|
18
|
+
return this._client.post('/v1/simulations/deposits', { body, ...options });
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=deposits.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deposits.mjs","sourceRoot":"","sources":["../../src/resources/simulations/deposits.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAIlD,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;CACF"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { AccountPrograms, type AccountProgramCreateResponse, type AccountProgramCloseResponse, type AccountProgramDrainResponse, type AccountProgramFreezeResponse, type AccountProgramUnfreezeResponse, type AccountProgramCreateParams, type AccountProgramCloseParams, type AccountProgramDrainParams, } from "./account-programs.mjs";
|
|
2
|
+
export { Accounts, type AccountCreateResponse, type AccountCloseResponse, type AccountDrainResponse, type AccountFreezeResponse, type AccountUnfreezeResponse, type AccountCreateParams, type AccountCloseParams, type AccountDrainParams, } from "./accounts.mjs";
|
|
3
|
+
export { Deposits, type DepositCreateResponse, type DepositCreateParams } from "./deposits.mjs";
|
|
4
|
+
export { Payouts, type PayoutRejectResponse, type PayoutSendResponse, type PayoutRejectParams, } from "./payouts.mjs";
|
|
5
|
+
export { Simulations } from "./simulations.mjs";
|
|
6
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/simulations/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,eAAe,EACf,KAAK,4BAA4B,EACjC,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,4BAA4B,EACjC,KAAK,8BAA8B,EACnC,KAAK,0BAA0B,EAC/B,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,GAC/B,+BAA2B;AAC5B,OAAO,EACL,QAAQ,EACR,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,GACxB,uBAAmB;AACpB,OAAO,EAAE,QAAQ,EAAE,KAAK,qBAAqB,EAAE,KAAK,mBAAmB,EAAE,uBAAmB;AAC5F,OAAO,EACL,OAAO,EACP,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,GACxB,sBAAkB;AACnB,OAAO,EAAE,WAAW,EAAE,0BAAsB"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { AccountPrograms, type AccountProgramCreateResponse, type AccountProgramCloseResponse, type AccountProgramDrainResponse, type AccountProgramFreezeResponse, type AccountProgramUnfreezeResponse, type AccountProgramCreateParams, type AccountProgramCloseParams, type AccountProgramDrainParams, } from "./account-programs.js";
|
|
2
|
+
export { Accounts, type AccountCreateResponse, type AccountCloseResponse, type AccountDrainResponse, type AccountFreezeResponse, type AccountUnfreezeResponse, type AccountCreateParams, type AccountCloseParams, type AccountDrainParams, } from "./accounts.js";
|
|
3
|
+
export { Deposits, type DepositCreateResponse, type DepositCreateParams } from "./deposits.js";
|
|
4
|
+
export { Payouts, type PayoutRejectResponse, type PayoutSendResponse, type PayoutRejectParams, } from "./payouts.js";
|
|
5
|
+
export { Simulations } from "./simulations.js";
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/simulations/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,eAAe,EACf,KAAK,4BAA4B,EACjC,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,4BAA4B,EACjC,KAAK,8BAA8B,EACnC,KAAK,0BAA0B,EAC/B,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,GAC/B,8BAA2B;AAC5B,OAAO,EACL,QAAQ,EACR,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,GACxB,sBAAmB;AACpB,OAAO,EAAE,QAAQ,EAAE,KAAK,qBAAqB,EAAE,KAAK,mBAAmB,EAAE,sBAAmB;AAC5F,OAAO,EACL,OAAO,EACP,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,GACxB,qBAAkB;AACnB,OAAO,EAAE,WAAW,EAAE,yBAAsB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Simulations = exports.Payouts = exports.Deposits = exports.Accounts = exports.AccountPrograms = void 0;
|
|
5
|
+
var account_programs_1 = require("./account-programs.js");
|
|
6
|
+
Object.defineProperty(exports, "AccountPrograms", { enumerable: true, get: function () { return account_programs_1.AccountPrograms; } });
|
|
7
|
+
var accounts_1 = require("./accounts.js");
|
|
8
|
+
Object.defineProperty(exports, "Accounts", { enumerable: true, get: function () { return accounts_1.Accounts; } });
|
|
9
|
+
var deposits_1 = require("./deposits.js");
|
|
10
|
+
Object.defineProperty(exports, "Deposits", { enumerable: true, get: function () { return deposits_1.Deposits; } });
|
|
11
|
+
var payouts_1 = require("./payouts.js");
|
|
12
|
+
Object.defineProperty(exports, "Payouts", { enumerable: true, get: function () { return payouts_1.Payouts; } });
|
|
13
|
+
var simulations_1 = require("./simulations.js");
|
|
14
|
+
Object.defineProperty(exports, "Simulations", { enumerable: true, get: function () { return simulations_1.Simulations; } });
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/simulations/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0DAU4B;AAT1B,mHAAA,eAAe,OAAA;AAUjB,0CAUoB;AATlB,oGAAA,QAAQ,OAAA;AAUV,0CAA4F;AAAnF,oGAAA,QAAQ,OAAA;AACjB,wCAKmB;AAJjB,kGAAA,OAAO,OAAA;AAKT,gDAA4C;AAAnC,0GAAA,WAAW,OAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
export { AccountPrograms, } from "./account-programs.mjs";
|
|
3
|
+
export { Accounts, } from "./accounts.mjs";
|
|
4
|
+
export { Deposits } from "./deposits.mjs";
|
|
5
|
+
export { Payouts, } from "./payouts.mjs";
|
|
6
|
+
export { Simulations } from "./simulations.mjs";
|
|
7
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/simulations/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,eAAe,GAShB,+BAA2B;AAC5B,OAAO,EACL,QAAQ,GAST,uBAAmB;AACpB,OAAO,EAAE,QAAQ,EAAwD,uBAAmB;AAC5F,OAAO,EACL,OAAO,GAIR,sBAAkB;AACnB,OAAO,EAAE,WAAW,EAAE,0BAAsB"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
4
|
+
export declare class Payouts extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Submits a network rejection for an existing payout through the sandbox provider
|
|
7
|
+
* pipeline. This endpoint is unavailable in live production.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const response = await client.simulations.payouts.reject(
|
|
12
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
13
|
+
* { reason: 'invalid_routing_number' },
|
|
14
|
+
* );
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
reject(id: string, body: PayoutRejectParams, options?: RequestOptions): APIPromise<PayoutRejectResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Submits a successful send event for an existing payout through the sandbox
|
|
20
|
+
* provider pipeline. This endpoint is unavailable in live production.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```ts
|
|
24
|
+
* const response = await client.simulations.payouts.send(
|
|
25
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
26
|
+
* );
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
send(id: string, options?: RequestOptions): APIPromise<PayoutSendResponse>;
|
|
30
|
+
}
|
|
31
|
+
export interface PayoutRejectResponse {
|
|
32
|
+
/**
|
|
33
|
+
* Payout lifecycle event submitted to the sandbox provider.
|
|
34
|
+
*/
|
|
35
|
+
event: 'send' | 'reject' | 'return';
|
|
36
|
+
/**
|
|
37
|
+
* Payout whose lifecycle is being simulated.
|
|
38
|
+
*/
|
|
39
|
+
payout_id: string;
|
|
40
|
+
/**
|
|
41
|
+
* Whether the simulation submission was successful.
|
|
42
|
+
*/
|
|
43
|
+
success: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Resource type discriminator.
|
|
46
|
+
*/
|
|
47
|
+
type: 'payout_simulation';
|
|
48
|
+
}
|
|
49
|
+
export interface PayoutSendResponse {
|
|
50
|
+
/**
|
|
51
|
+
* Payout lifecycle event submitted to the sandbox provider.
|
|
52
|
+
*/
|
|
53
|
+
event: 'send' | 'reject' | 'return';
|
|
54
|
+
/**
|
|
55
|
+
* Payout whose lifecycle is being simulated.
|
|
56
|
+
*/
|
|
57
|
+
payout_id: string;
|
|
58
|
+
/**
|
|
59
|
+
* Whether the simulation submission was successful.
|
|
60
|
+
*/
|
|
61
|
+
success: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Resource type discriminator.
|
|
64
|
+
*/
|
|
65
|
+
type: 'payout_simulation';
|
|
66
|
+
}
|
|
67
|
+
export interface PayoutRejectParams {
|
|
68
|
+
/**
|
|
69
|
+
* Reason the sandbox provider rejects the payout.
|
|
70
|
+
*/
|
|
71
|
+
reason: 'invalid_routing_number';
|
|
72
|
+
}
|
|
73
|
+
export declare namespace Payouts {
|
|
74
|
+
export { type PayoutRejectResponse as PayoutRejectResponse, type PayoutSendResponse as PayoutSendResponse, type PayoutRejectParams as PayoutRejectParams, };
|
|
75
|
+
}
|
|
76
|
+
//# sourceMappingURL=payouts.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payouts.d.mts","sourceRoot":"","sources":["../../src/resources/simulations/payouts.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;IAIxG;;;;;;;;;;OAUG;IACH,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;CAG3E;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,QAAQ,GAAG,QAAQ,CAAC;IAEpC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,IAAI,EAAE,mBAAmB,CAAC;CAC3B;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,QAAQ,GAAG,QAAQ,CAAC;IAEpC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,IAAI,EAAE,mBAAmB,CAAC;CAC3B;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,MAAM,EAAE,wBAAwB,CAAC;CAClC;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
4
|
+
export declare class Payouts extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Submits a network rejection for an existing payout through the sandbox provider
|
|
7
|
+
* pipeline. This endpoint is unavailable in live production.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const response = await client.simulations.payouts.reject(
|
|
12
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
13
|
+
* { reason: 'invalid_routing_number' },
|
|
14
|
+
* );
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
reject(id: string, body: PayoutRejectParams, options?: RequestOptions): APIPromise<PayoutRejectResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Submits a successful send event for an existing payout through the sandbox
|
|
20
|
+
* provider pipeline. This endpoint is unavailable in live production.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```ts
|
|
24
|
+
* const response = await client.simulations.payouts.send(
|
|
25
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
26
|
+
* );
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
send(id: string, options?: RequestOptions): APIPromise<PayoutSendResponse>;
|
|
30
|
+
}
|
|
31
|
+
export interface PayoutRejectResponse {
|
|
32
|
+
/**
|
|
33
|
+
* Payout lifecycle event submitted to the sandbox provider.
|
|
34
|
+
*/
|
|
35
|
+
event: 'send' | 'reject' | 'return';
|
|
36
|
+
/**
|
|
37
|
+
* Payout whose lifecycle is being simulated.
|
|
38
|
+
*/
|
|
39
|
+
payout_id: string;
|
|
40
|
+
/**
|
|
41
|
+
* Whether the simulation submission was successful.
|
|
42
|
+
*/
|
|
43
|
+
success: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Resource type discriminator.
|
|
46
|
+
*/
|
|
47
|
+
type: 'payout_simulation';
|
|
48
|
+
}
|
|
49
|
+
export interface PayoutSendResponse {
|
|
50
|
+
/**
|
|
51
|
+
* Payout lifecycle event submitted to the sandbox provider.
|
|
52
|
+
*/
|
|
53
|
+
event: 'send' | 'reject' | 'return';
|
|
54
|
+
/**
|
|
55
|
+
* Payout whose lifecycle is being simulated.
|
|
56
|
+
*/
|
|
57
|
+
payout_id: string;
|
|
58
|
+
/**
|
|
59
|
+
* Whether the simulation submission was successful.
|
|
60
|
+
*/
|
|
61
|
+
success: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Resource type discriminator.
|
|
64
|
+
*/
|
|
65
|
+
type: 'payout_simulation';
|
|
66
|
+
}
|
|
67
|
+
export interface PayoutRejectParams {
|
|
68
|
+
/**
|
|
69
|
+
* Reason the sandbox provider rejects the payout.
|
|
70
|
+
*/
|
|
71
|
+
reason: 'invalid_routing_number';
|
|
72
|
+
}
|
|
73
|
+
export declare namespace Payouts {
|
|
74
|
+
export { type PayoutRejectResponse as PayoutRejectResponse, type PayoutSendResponse as PayoutSendResponse, type PayoutRejectParams as PayoutRejectParams, };
|
|
75
|
+
}
|
|
76
|
+
//# sourceMappingURL=payouts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payouts.d.ts","sourceRoot":"","sources":["../../src/resources/simulations/payouts.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;IAIxG;;;;;;;;;;OAUG;IACH,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;CAG3E;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,QAAQ,GAAG,QAAQ,CAAC;IAEpC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,IAAI,EAAE,mBAAmB,CAAC;CAC3B;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,QAAQ,GAAG,QAAQ,CAAC;IAEpC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,IAAI,EAAE,mBAAmB,CAAC;CAC3B;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,MAAM,EAAE,wBAAwB,CAAC;CAClC;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Payouts = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
7
|
+
class Payouts extends resource_1.APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Submits a network rejection for an existing payout through the sandbox provider
|
|
10
|
+
* pipeline. This endpoint is unavailable in live production.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const response = await client.simulations.payouts.reject(
|
|
15
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
16
|
+
* { reason: 'invalid_routing_number' },
|
|
17
|
+
* );
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
reject(id, body, options) {
|
|
21
|
+
return this._client.post((0, path_1.path) `/v1/simulations/payouts/${id}/reject`, { body, ...options });
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Submits a successful send event for an existing payout through the sandbox
|
|
25
|
+
* provider pipeline. This endpoint is unavailable in live production.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```ts
|
|
29
|
+
* const response = await client.simulations.payouts.send(
|
|
30
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
31
|
+
* );
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
send(id, options) {
|
|
35
|
+
return this._client.post((0, path_1.path) `/v1/simulations/payouts/${id}/send`, options);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
exports.Payouts = Payouts;
|
|
39
|
+
//# sourceMappingURL=payouts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payouts.js","sourceRoot":"","sources":["../../src/resources/simulations/payouts.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,EAAU,EAAE,IAAwB,EAAE,OAAwB;QACnE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,2BAA2B,EAAE,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CAAC,EAAU,EAAE,OAAwB;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,2BAA2B,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IAC9E,CAAC;CACF;AA/BD,0BA+BC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
4
|
+
export class Payouts extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Submits a network rejection for an existing payout through the sandbox provider
|
|
7
|
+
* pipeline. This endpoint is unavailable in live production.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const response = await client.simulations.payouts.reject(
|
|
12
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
13
|
+
* { reason: 'invalid_routing_number' },
|
|
14
|
+
* );
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
reject(id, body, options) {
|
|
18
|
+
return this._client.post(path `/v1/simulations/payouts/${id}/reject`, { body, ...options });
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Submits a successful send event for an existing payout through the sandbox
|
|
22
|
+
* provider pipeline. This endpoint is unavailable in live production.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```ts
|
|
26
|
+
* const response = await client.simulations.payouts.send(
|
|
27
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
28
|
+
* );
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
send(id, options) {
|
|
32
|
+
return this._client.post(path `/v1/simulations/payouts/${id}/send`, options);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=payouts.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payouts.mjs","sourceRoot":"","sources":["../../src/resources/simulations/payouts.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAGlD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,EAAU,EAAE,IAAwB,EAAE,OAAwB;QACnE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,2BAA2B,EAAE,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CAAC,EAAU,EAAE,OAAwB;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,2BAA2B,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IAC9E,CAAC;CACF"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import * as AccountProgramsAPI from "./account-programs.mjs";
|
|
3
|
+
import { AccountProgramCloseParams, AccountProgramCloseResponse, AccountProgramCreateParams, AccountProgramCreateResponse, AccountProgramDrainParams, AccountProgramDrainResponse, AccountProgramFreezeResponse, AccountProgramUnfreezeResponse, AccountPrograms } from "./account-programs.mjs";
|
|
4
|
+
import * as AccountsAPI from "./accounts.mjs";
|
|
5
|
+
import { AccountCloseParams, AccountCloseResponse, AccountCreateParams, AccountCreateResponse, AccountDrainParams, AccountDrainResponse, AccountFreezeResponse, AccountUnfreezeResponse, Accounts } from "./accounts.mjs";
|
|
6
|
+
import * as DepositsAPI from "./deposits.mjs";
|
|
7
|
+
import { DepositCreateParams, DepositCreateResponse, Deposits } from "./deposits.mjs";
|
|
8
|
+
import * as PayoutsAPI from "./payouts.mjs";
|
|
9
|
+
import { PayoutRejectParams, PayoutRejectResponse, PayoutSendResponse, Payouts } from "./payouts.mjs";
|
|
10
|
+
export declare class Simulations extends APIResource {
|
|
11
|
+
deposits: DepositsAPI.Deposits;
|
|
12
|
+
payouts: PayoutsAPI.Payouts;
|
|
13
|
+
accountPrograms: AccountProgramsAPI.AccountPrograms;
|
|
14
|
+
accounts: AccountsAPI.Accounts;
|
|
15
|
+
}
|
|
16
|
+
export declare namespace Simulations {
|
|
17
|
+
export { Deposits as Deposits, type DepositCreateResponse as DepositCreateResponse, type DepositCreateParams as DepositCreateParams, };
|
|
18
|
+
export { Payouts as Payouts, type PayoutRejectResponse as PayoutRejectResponse, type PayoutSendResponse as PayoutSendResponse, type PayoutRejectParams as PayoutRejectParams, };
|
|
19
|
+
export { AccountPrograms as AccountPrograms, type AccountProgramCreateResponse as AccountProgramCreateResponse, type AccountProgramCloseResponse as AccountProgramCloseResponse, type AccountProgramDrainResponse as AccountProgramDrainResponse, type AccountProgramFreezeResponse as AccountProgramFreezeResponse, type AccountProgramUnfreezeResponse as AccountProgramUnfreezeResponse, type AccountProgramCreateParams as AccountProgramCreateParams, type AccountProgramCloseParams as AccountProgramCloseParams, type AccountProgramDrainParams as AccountProgramDrainParams, };
|
|
20
|
+
export { Accounts as Accounts, type AccountCreateResponse as AccountCreateResponse, type AccountCloseResponse as AccountCloseResponse, type AccountDrainResponse as AccountDrainResponse, type AccountFreezeResponse as AccountFreezeResponse, type AccountUnfreezeResponse as AccountUnfreezeResponse, type AccountCreateParams as AccountCreateParams, type AccountCloseParams as AccountCloseParams, type AccountDrainParams as AccountDrainParams, };
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=simulations.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"simulations.d.mts","sourceRoot":"","sources":["../../src/resources/simulations/simulations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,kBAAkB,+BAA2B;AACzD,OAAO,EACL,yBAAyB,EACzB,2BAA2B,EAC3B,0BAA0B,EAC1B,4BAA4B,EAC5B,yBAAyB,EACzB,2BAA2B,EAC3B,4BAA4B,EAC5B,8BAA8B,EAC9B,eAAe,EAChB,+BAA2B;AAC5B,OAAO,KAAK,WAAW,uBAAmB;AAC1C,OAAO,EACL,kBAAkB,EAClB,oBAAo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