@augustusbank/typescript-sdk 0.27.0 → 0.28.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.
Files changed (61) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/package.json +1 -1
  3. package/resources/accounts.d.mts +186 -114
  4. package/resources/accounts.d.mts.map +1 -1
  5. package/resources/accounts.d.ts +186 -114
  6. package/resources/accounts.d.ts.map +1 -1
  7. package/resources/counterparties.d.mts +243 -97
  8. package/resources/counterparties.d.mts.map +1 -1
  9. package/resources/counterparties.d.ts +243 -97
  10. package/resources/counterparties.d.ts.map +1 -1
  11. package/resources/counterparties.js +3 -2
  12. package/resources/counterparties.js.map +1 -1
  13. package/resources/counterparties.mjs +3 -2
  14. package/resources/counterparties.mjs.map +1 -1
  15. package/resources/payouts.d.mts +1 -1
  16. package/resources/payouts.d.ts +1 -1
  17. package/resources/payouts.js +1 -1
  18. package/resources/payouts.mjs +1 -1
  19. package/resources/simulations/account-programs.d.mts +37 -22
  20. package/resources/simulations/account-programs.d.mts.map +1 -1
  21. package/resources/simulations/account-programs.d.ts +37 -22
  22. package/resources/simulations/account-programs.d.ts.map +1 -1
  23. package/resources/simulations/account-programs.js +3 -2
  24. package/resources/simulations/account-programs.js.map +1 -1
  25. package/resources/simulations/account-programs.mjs +3 -2
  26. package/resources/simulations/account-programs.mjs.map +1 -1
  27. package/resources/simulations/accounts.d.mts +37 -22
  28. package/resources/simulations/accounts.d.mts.map +1 -1
  29. package/resources/simulations/accounts.d.ts +37 -22
  30. package/resources/simulations/accounts.d.ts.map +1 -1
  31. package/resources/simulations/accounts.js +4 -3
  32. package/resources/simulations/accounts.js.map +1 -1
  33. package/resources/simulations/accounts.mjs +4 -3
  34. package/resources/simulations/accounts.mjs.map +1 -1
  35. package/resources/simulations/deposits.d.mts +41 -20
  36. package/resources/simulations/deposits.d.mts.map +1 -1
  37. package/resources/simulations/deposits.d.ts +41 -20
  38. package/resources/simulations/deposits.d.ts.map +1 -1
  39. package/resources/simulations/deposits.js +1 -1
  40. package/resources/simulations/deposits.mjs +1 -1
  41. package/resources/transactions.d.mts +62 -38
  42. package/resources/transactions.d.mts.map +1 -1
  43. package/resources/transactions.d.ts +62 -38
  44. package/resources/transactions.d.ts.map +1 -1
  45. package/resources/webhooks.d.mts +258 -114
  46. package/resources/webhooks.d.mts.map +1 -1
  47. package/resources/webhooks.d.ts +258 -114
  48. package/resources/webhooks.d.ts.map +1 -1
  49. package/src/resources/accounts.ts +216 -126
  50. package/src/resources/counterparties.ts +286 -107
  51. package/src/resources/payouts.ts +1 -1
  52. package/src/resources/simulations/account-programs.ts +42 -25
  53. package/src/resources/simulations/accounts.ts +42 -25
  54. package/src/resources/simulations/deposits.ts +46 -22
  55. package/src/resources/transactions.ts +72 -42
  56. package/src/resources/webhooks.ts +306 -126
  57. package/src/version.ts +1 -1
  58. package/version.d.mts +1 -1
  59. package/version.d.ts +1 -1
  60. package/version.js +1 -1
  61. package/version.mjs +1 -1
@@ -9,7 +9,7 @@ export declare class Accounts extends APIResource {
9
9
  * @example
10
10
  * ```ts
11
11
  * const account = await client.simulations.accounts.create({
12
- * label: 'Operating EUR account',
12
+ * label: 'Operating USD account',
13
13
  * type: 'operating',
14
14
  * });
15
15
  * ```
@@ -41,8 +41,9 @@ export declare class Accounts extends APIResource {
41
41
  * {
42
42
  * destination: {
43
43
  * account_holder_name: 'Acme Sandbox Ltd.',
44
- * iban: 'DE89370400440532013000',
45
- * type: 'iban',
44
+ * account_number: '000123456789',
45
+ * routing_number: '110000000',
46
+ * type: 'aba',
46
47
  * },
47
48
  * },
48
49
  * );
@@ -150,9 +151,34 @@ export interface AccountDrainParams {
150
151
  * Fiat financial address to which the residual balance of the frozen account is
151
152
  * drained.
152
153
  */
153
- destination: AccountDrainParams.IbanFinancialAddressRequest | AccountDrainParams.SortCodeFinancialAddressRequest | AccountDrainParams.AbaFinancialAddressRequest;
154
+ destination: AccountDrainParams.AbaFinancialAddressRequest | AccountDrainParams.IbanFinancialAddressRequest | AccountDrainParams.SortCodeFinancialAddressRequest;
154
155
  }
155
156
  export declare namespace AccountDrainParams {
157
+ interface AbaFinancialAddressRequest {
158
+ /**
159
+ * Name of the account holder.
160
+ */
161
+ account_holder_name: string;
162
+ /**
163
+ * Bank account number.
164
+ */
165
+ account_number: string;
166
+ /**
167
+ * ABA routing number (9 digits).
168
+ */
169
+ routing_number: string;
170
+ /**
171
+ * Discriminator for ABA wire financial address.
172
+ */
173
+ type: 'aba';
174
+ /**
175
+ * Whether the account is a checking or a savings account. Optional; omit or send
176
+ * null if not provided. Some destination countries require it (for example the
177
+ * Dominican Republic, Honduras and Jamaica) and ACH uses it for the transaction
178
+ * code. A payment to an account without one is sent as checking.
179
+ */
180
+ account_type?: 'checking' | 'savings' | null;
181
+ }
156
182
  interface IbanFinancialAddressRequest {
157
183
  /**
158
184
  * Name of the account holder.
@@ -166,6 +192,13 @@ export declare namespace AccountDrainParams {
166
192
  * Discriminator for IBAN financial address.
167
193
  */
168
194
  type: 'iban';
195
+ /**
196
+ * Whether the account is a checking or a savings account. Optional; omit or send
197
+ * null if not provided. Some destination countries require it (for example the
198
+ * Dominican Republic, Honduras and Jamaica) and ACH uses it for the transaction
199
+ * code. A payment to an account without one is sent as checking.
200
+ */
201
+ account_type?: 'checking' | 'savings' | null;
169
202
  /**
170
203
  * Bank Identifier Code. Optional; omit or send null if not provided.
171
204
  */
@@ -189,24 +222,6 @@ export declare namespace AccountDrainParams {
189
222
  */
190
223
  type: 'sort_code';
191
224
  }
192
- interface AbaFinancialAddressRequest {
193
- /**
194
- * Name of the account holder.
195
- */
196
- account_holder_name: string;
197
- /**
198
- * Bank account number.
199
- */
200
- account_number: string;
201
- /**
202
- * ABA routing number (9 digits).
203
- */
204
- routing_number: string;
205
- /**
206
- * Discriminator for ABA wire financial address.
207
- */
208
- type: 'aba';
209
- }
210
225
  }
211
226
  export declare namespace Accounts {
212
227
  export { 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, };
@@ -1 +1 @@
1
- {"version":3,"file":"accounts.d.ts","sourceRoot":"","sources":["../../src/resources/simulations/accounts.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAI9F;;;;;;;;;;;OAWG;IACH,KAAK,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;IAIvG;;;;;;;;;;;;;;;;;;;OAmBG;IACH,KAAK,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;IAIvG;;;;;;;;;;OAUG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAI/E;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;CAGpF;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,IAAI,EAAE,oBAAoB,CAAC;CAC5B;AAED,MA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AI,kBAAkB,GAC9C,CAAC;CACH"}
@@ -12,7 +12,7 @@ class Accounts extends resource_1.APIResource {
12
12
  * @example
13
13
  * ```ts
14
14
  * const account = await client.simulations.accounts.create({
15
- * label: 'Operating EUR account',
15
+ * label: 'Operating USD account',
16
16
  * type: 'operating',
17
17
  * });
18
18
  * ```
@@ -48,8 +48,9 @@ class Accounts extends resource_1.APIResource {
48
48
  * {
49
49
  * destination: {
50
50
  * account_holder_name: 'Acme Sandbox Ltd.',
51
- * iban: 'DE89370400440532013000',
52
- * type: 'iban',
51
+ * account_number: '000123456789',
52
+ * routing_number: '110000000',
53
+ * type: 'aba',
53
54
  * },
54
55
  * },
55
56
  * );
@@ -1 +1 @@
1
- {"version":3,"file":"accounts.js","sourceRoot":"","sources":["../../src/resources/simulations/accounts.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;;;;;;OAWG;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;IAED;;;;;;;;;;;OAWG;IACH,KAAK,CAAC,EAAU,EAAE,IAAwB,EAAE,OAAwB;QAClE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,4BAA4B,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,KAAK,CAAC,EAAU,EAAE,IAAwB,EAAE,OAAwB;QAClE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,4BAA4B,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC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IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,4BAA4B,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;IACjF,CAAC;IAED;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,4BAA4B,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;IACnF,CAAC;CACF;AAvFD,4BAuFC"}
@@ -9,7 +9,7 @@ export class Accounts extends APIResource {
9
9
  * @example
10
10
  * ```ts
11
11
  * const account = await client.simulations.accounts.create({
12
- * label: 'Operating EUR account',
12
+ * label: 'Operating USD account',
13
13
  * type: 'operating',
14
14
  * });
15
15
  * ```
@@ -45,8 +45,9 @@ export class Accounts extends APIResource {
45
45
  * {
46
46
  * destination: {
47
47
  * account_holder_name: 'Acme Sandbox Ltd.',
48
- * iban: 'DE89370400440532013000',
49
- * type: 'iban',
48
+ * account_number: '000123456789',
49
+ * routing_number: '110000000',
50
+ * type: 'aba',
50
51
  * },
51
52
  * },
52
53
  * );
@@ -1 +1 @@
1
- {"version":3,"file":"accounts.mjs","sourceRoot":"","sources":["../../src/resources/simulations/accounts.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAGlD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;OAWG;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;IAED;;;;;;;;;;;OAWG;IACH,KAAK,CAAC,EAAU,EAAE,IAAwB,EAAE,OAAwB;QACl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O,CAAC,IAAI,CAAC,IAAI,CAAA,4BAA4B,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;IAED;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,KAAK,CAAC,EAAU,EAAE,IAAwB,EAAE,OAAwB;QAClE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,4BAA4B,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,4BAA4B,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;IACjF,CAAC;IAED;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,4BAA4B,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;IACnF,CAAC;CACF"}
@@ -11,7 +11,7 @@ export declare class Deposits extends APIResource {
11
11
  * const deposit = await client.simulations.deposits.create({
12
12
  * account_id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
13
13
  * amount: '100.50',
14
- * currency: 'EUR',
14
+ * currency: 'USD',
15
15
  * });
16
16
  * ```
17
17
  */
@@ -67,13 +67,38 @@ export declare namespace DepositCreateParams {
67
67
  /**
68
68
  * Financial address of the counterparty.
69
69
  */
70
- financial_address: Counterparty.IbanFinancialAddressRequest | Counterparty.SortCodeFinancialAddressRequest | Counterparty.AbaFinancialAddressRequest | Counterparty.BicFinancialAddressRequest | Counterparty.CryptoWalletFinancialAddress;
70
+ financial_address: Counterparty.AbaFinancialAddressRequest | Counterparty.IbanFinancialAddressRequest | Counterparty.SortCodeFinancialAddressRequest | Counterparty.BicFinancialAddressRequest | Counterparty.CryptoWalletFinancialAddress;
71
71
  /**
72
72
  * Physical address of the counterparty.
73
73
  */
74
74
  physical_address?: Counterparty.PhysicalAddress | null;
75
75
  }
76
76
  namespace Counterparty {
77
+ interface AbaFinancialAddressRequest {
78
+ /**
79
+ * Name of the account holder.
80
+ */
81
+ account_holder_name: string;
82
+ /**
83
+ * Bank account number.
84
+ */
85
+ account_number: string;
86
+ /**
87
+ * ABA routing number (9 digits).
88
+ */
89
+ routing_number: string;
90
+ /**
91
+ * Discriminator for ABA wire financial address.
92
+ */
93
+ type: 'aba';
94
+ /**
95
+ * Whether the account is a checking or a savings account. Optional; omit or send
96
+ * null if not provided. Some destination countries require it (for example the
97
+ * Dominican Republic, Honduras and Jamaica) and ACH uses it for the transaction
98
+ * code. A payment to an account without one is sent as checking.
99
+ */
100
+ account_type?: 'checking' | 'savings' | null;
101
+ }
77
102
  interface IbanFinancialAddressRequest {
78
103
  /**
79
104
  * Name of the account holder.
@@ -87,6 +112,13 @@ export declare namespace DepositCreateParams {
87
112
  * Discriminator for IBAN financial address.
88
113
  */
89
114
  type: 'iban';
115
+ /**
116
+ * Whether the account is a checking or a savings account. Optional; omit or send
117
+ * null if not provided. Some destination countries require it (for example the
118
+ * Dominican Republic, Honduras and Jamaica) and ACH uses it for the transaction
119
+ * code. A payment to an account without one is sent as checking.
120
+ */
121
+ account_type?: 'checking' | 'savings' | null;
90
122
  /**
91
123
  * Bank Identifier Code. Optional; omit or send null if not provided.
92
124
  */
@@ -110,24 +142,6 @@ export declare namespace DepositCreateParams {
110
142
  */
111
143
  type: 'sort_code';
112
144
  }
113
- interface AbaFinancialAddressRequest {
114
- /**
115
- * Name of the account holder.
116
- */
117
- account_holder_name: string;
118
- /**
119
- * Bank account number.
120
- */
121
- account_number: string;
122
- /**
123
- * ABA routing number (9 digits).
124
- */
125
- routing_number: string;
126
- /**
127
- * Discriminator for ABA wire financial address.
128
- */
129
- type: 'aba';
130
- }
131
145
  interface BicFinancialAddressRequest {
132
146
  /**
133
147
  * Name of the account holder.
@@ -145,6 +159,13 @@ export declare namespace DepositCreateParams {
145
159
  * Discriminator for BIC + local account financial address.
146
160
  */
147
161
  type: 'bic';
162
+ /**
163
+ * Whether the account is a checking or a savings account. Optional; omit or send
164
+ * null if not provided. Some destination countries require it (for example the
165
+ * Dominican Republic, Honduras and Jamaica) and ACH uses it for the transaction
166
+ * code. A payment to an account without one is sent as checking.
167
+ */
168
+ account_type?: 'checking' | 'savings' | null;
148
169
  /**
149
170
  * Domestic bank or branch code where the destination country uses one (for example
150
171
  * the BSB in Australia). Optional; omit or send null where the country has none.
@@ -1 +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,IAAI,EAAE,oBAAoB,CAAC;CAC5B;AAED,MAAM,WAAW,mBAAmB;IAClC;;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,YAAY,CAAC,EAAE,mBAAmB,CAAC,YAAY,CAAC;IAEhD;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,IAAI,CAAC,EACD,MAAM,GACN,cAAc,GAC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AAM,GAAG,IAAI,CAAC;SACvB;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
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,IAAI,EAAE,oBAAoB,CAAC;CAC5B;AAED,MAAM,WAAW,mBAAmB;IAClC;;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,YAAY,CAAC,EAAE,mBAAmB,CAAC,YAAY,CAAC;IAEhD;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,IAAI,CAAC,EACD,MAAM,GACN,cAAc,GACd,iBAAiB,GACjB,OAAO,GACP,KAAK,GACL,SAAS,GACT,UAAU,GACV,kBAAkB,GAClB,QAAQ,GACR,eAAe,GACf,SAAS,GACT,cAAc,CAAC;IAEnB;;;OAGG;IACH,mCAAmC,CAAC,EAAE,MAAM,CAAC;CAC9C;AAED,yBAAiB,mBAAmB,CAAC;IAC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ACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;SACvB;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
@@ -11,7 +11,7 @@ export declare class Deposits extends APIResource {
11
11
  * const deposit = await client.simulations.deposits.create({
12
12
  * account_id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
13
13
  * amount: '100.50',
14
- * currency: 'EUR',
14
+ * currency: 'USD',
15
15
  * });
16
16
  * ```
17
17
  */
@@ -67,13 +67,38 @@ export declare namespace DepositCreateParams {
67
67
  /**
68
68
  * Financial address of the counterparty.
69
69
  */
70
- financial_address: Counterparty.IbanFinancialAddressRequest | Counterparty.SortCodeFinancialAddressRequest | Counterparty.AbaFinancialAddressRequest | Counterparty.BicFinancialAddressRequest | Counterparty.CryptoWalletFinancialAddress;
70
+ financial_address: Counterparty.AbaFinancialAddressRequest | Counterparty.IbanFinancialAddressRequest | Counterparty.SortCodeFinancialAddressRequest | Counterparty.BicFinancialAddressRequest | Counterparty.CryptoWalletFinancialAddress;
71
71
  /**
72
72
  * Physical address of the counterparty.
73
73
  */
74
74
  physical_address?: Counterparty.PhysicalAddress | null;
75
75
  }
76
76
  namespace Counterparty {
77
+ interface AbaFinancialAddressRequest {
78
+ /**
79
+ * Name of the account holder.
80
+ */
81
+ account_holder_name: string;
82
+ /**
83
+ * Bank account number.
84
+ */
85
+ account_number: string;
86
+ /**
87
+ * ABA routing number (9 digits).
88
+ */
89
+ routing_number: string;
90
+ /**
91
+ * Discriminator for ABA wire financial address.
92
+ */
93
+ type: 'aba';
94
+ /**
95
+ * Whether the account is a checking or a savings account. Optional; omit or send
96
+ * null if not provided. Some destination countries require it (for example the
97
+ * Dominican Republic, Honduras and Jamaica) and ACH uses it for the transaction
98
+ * code. A payment to an account without one is sent as checking.
99
+ */
100
+ account_type?: 'checking' | 'savings' | null;
101
+ }
77
102
  interface IbanFinancialAddressRequest {
78
103
  /**
79
104
  * Name of the account holder.
@@ -87,6 +112,13 @@ export declare namespace DepositCreateParams {
87
112
  * Discriminator for IBAN financial address.
88
113
  */
89
114
  type: 'iban';
115
+ /**
116
+ * Whether the account is a checking or a savings account. Optional; omit or send
117
+ * null if not provided. Some destination countries require it (for example the
118
+ * Dominican Republic, Honduras and Jamaica) and ACH uses it for the transaction
119
+ * code. A payment to an account without one is sent as checking.
120
+ */
121
+ account_type?: 'checking' | 'savings' | null;
90
122
  /**
91
123
  * Bank Identifier Code. Optional; omit or send null if not provided.
92
124
  */
@@ -110,24 +142,6 @@ export declare namespace DepositCreateParams {
110
142
  */
111
143
  type: 'sort_code';
112
144
  }
113
- interface AbaFinancialAddressRequest {
114
- /**
115
- * Name of the account holder.
116
- */
117
- account_holder_name: string;
118
- /**
119
- * Bank account number.
120
- */
121
- account_number: string;
122
- /**
123
- * ABA routing number (9 digits).
124
- */
125
- routing_number: string;
126
- /**
127
- * Discriminator for ABA wire financial address.
128
- */
129
- type: 'aba';
130
- }
131
145
  interface BicFinancialAddressRequest {
132
146
  /**
133
147
  * Name of the account holder.
@@ -145,6 +159,13 @@ export declare namespace DepositCreateParams {
145
159
  * Discriminator for BIC + local account financial address.
146
160
  */
147
161
  type: 'bic';
162
+ /**
163
+ * Whether the account is a checking or a savings account. Optional; omit or send
164
+ * null if not provided. Some destination countries require it (for example the
165
+ * Dominican Republic, Honduras and Jamaica) and ACH uses it for the transaction
166
+ * code. A payment to an account without one is sent as checking.
167
+ */
168
+ account_type?: 'checking' | 'savings' | null;
148
169
  /**
149
170
  * Domestic bank or branch code where the destination country uses one (for example
150
171
  * the BSB in Australia). Optional; omit or send null where the country has none.
@@ -1 +1 @@
1
- {"version":3,"file":"deposits.d.ts","sourceRoot":"","sources":["../../src/resources/simulations/deposits.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;A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I,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,CAAC;YAET;;eAEG;YACH,MAAM,EAAE,MAAM,CAAC;YAEf;;eAEG;YACH,WAAW,EAAE,MAAM,CAAC;YAEpB;;eAEG;YACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;YAEvB;;eAEG;YACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;SACvB;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
@@ -13,7 +13,7 @@ class Deposits extends resource_1.APIResource {
13
13
  * const deposit = await client.simulations.deposits.create({
14
14
  * account_id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
15
15
  * amount: '100.50',
16
- * currency: 'EUR',
16
+ * currency: 'USD',
17
17
  * });
18
18
  * ```
19
19
  */
@@ -10,7 +10,7 @@ export class Deposits extends APIResource {
10
10
  * const deposit = await client.simulations.deposits.create({
11
11
  * account_id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
12
12
  * amount: '100.50',
13
- * currency: 'EUR',
13
+ * currency: 'USD',
14
14
  * });
15
15
  * ```
16
16
  */
@@ -89,18 +89,44 @@ export declare namespace TransactionRetrieveResponse {
89
89
  /**
90
90
  * Financial address of the counterparty.
91
91
  */
92
- financial_address: Counterparty.IbanFinancialAddress | Counterparty.SortCodeFinancialAddress | Counterparty.AbaFinancialAddress | Counterparty.BicFinancialAddress | Counterparty.CryptoWalletFinancialAddress;
92
+ financial_address: Counterparty.AbaFinancialAddress | Counterparty.IbanFinancialAddress | Counterparty.SortCodeFinancialAddress | Counterparty.BicFinancialAddress | Counterparty.CryptoWalletFinancialAddress;
93
93
  /**
94
94
  * Physical address of the counterparty.
95
95
  */
96
96
  physical_address: Counterparty.PhysicalAddress | null;
97
97
  }
98
98
  namespace Counterparty {
99
+ interface AbaFinancialAddress {
100
+ /**
101
+ * Name of the account holder.
102
+ */
103
+ account_holder_name: string;
104
+ /**
105
+ * Bank account number.
106
+ */
107
+ account_number: string;
108
+ /**
109
+ * Whether the account is a checking or a savings account, or null if not provided.
110
+ */
111
+ account_type: 'checking' | 'savings' | null;
112
+ /**
113
+ * ABA routing number (9 digits).
114
+ */
115
+ routing_number: string;
116
+ /**
117
+ * Discriminator for ABA wire financial address.
118
+ */
119
+ type: 'aba';
120
+ }
99
121
  interface IbanFinancialAddress {
100
122
  /**
101
123
  * Name of the account holder.
102
124
  */
103
125
  account_holder_name: string;
126
+ /**
127
+ * Whether the account is a checking or a savings account, or null if not provided.
128
+ */
129
+ account_type: 'checking' | 'savings' | null;
104
130
  /**
105
131
  * Bank Identifier Code, or null if not provided.
106
132
  */
@@ -132,24 +158,6 @@ export declare namespace TransactionRetrieveResponse {
132
158
  */
133
159
  type: 'sort_code';
134
160
  }
135
- interface AbaFinancialAddress {
136
- /**
137
- * Name of the account holder.
138
- */
139
- account_holder_name: string;
140
- /**
141
- * Bank account number.
142
- */
143
- account_number: string;
144
- /**
145
- * ABA routing number (9 digits).
146
- */
147
- routing_number: string;
148
- /**
149
- * Discriminator for ABA wire financial address.
150
- */
151
- type: 'aba';
152
- }
153
161
  interface BicFinancialAddress {
154
162
  /**
155
163
  * Name of the account holder.
@@ -159,6 +167,10 @@ export declare namespace TransactionRetrieveResponse {
159
167
  * Local-format bank account number.
160
168
  */
161
169
  account_number: string;
170
+ /**
171
+ * Whether the account is a checking or a savings account, or null if not provided.
172
+ */
173
+ account_type: 'checking' | 'savings' | null;
162
174
  /**
163
175
  * ISO 9362 Bank Identifier Code (8 or 11 characters).
164
176
  */
@@ -308,18 +320,44 @@ export declare namespace TransactionListResponse {
308
320
  /**
309
321
  * Financial address of the counterparty.
310
322
  */
311
- financial_address: Counterparty.IbanFinancialAddress | Counterparty.SortCodeFinancialAddress | Counterparty.AbaFinancialAddress | Counterparty.BicFinancialAddress | Counterparty.CryptoWalletFinancialAddress;
323
+ financial_address: Counterparty.AbaFinancialAddress | Counterparty.IbanFinancialAddress | Counterparty.SortCodeFinancialAddress | Counterparty.BicFinancialAddress | Counterparty.CryptoWalletFinancialAddress;
312
324
  /**
313
325
  * Physical address of the counterparty.
314
326
  */
315
327
  physical_address: Counterparty.PhysicalAddress | null;
316
328
  }
317
329
  namespace Counterparty {
330
+ interface AbaFinancialAddress {
331
+ /**
332
+ * Name of the account holder.
333
+ */
334
+ account_holder_name: string;
335
+ /**
336
+ * Bank account number.
337
+ */
338
+ account_number: string;
339
+ /**
340
+ * Whether the account is a checking or a savings account, or null if not provided.
341
+ */
342
+ account_type: 'checking' | 'savings' | null;
343
+ /**
344
+ * ABA routing number (9 digits).
345
+ */
346
+ routing_number: string;
347
+ /**
348
+ * Discriminator for ABA wire financial address.
349
+ */
350
+ type: 'aba';
351
+ }
318
352
  interface IbanFinancialAddress {
319
353
  /**
320
354
  * Name of the account holder.
321
355
  */
322
356
  account_holder_name: string;
357
+ /**
358
+ * Whether the account is a checking or a savings account, or null if not provided.
359
+ */
360
+ account_type: 'checking' | 'savings' | null;
323
361
  /**
324
362
  * Bank Identifier Code, or null if not provided.
325
363
  */
@@ -351,24 +389,6 @@ export declare namespace TransactionListResponse {
351
389
  */
352
390
  type: 'sort_code';
353
391
  }
354
- interface AbaFinancialAddress {
355
- /**
356
- * Name of the account holder.
357
- */
358
- account_holder_name: string;
359
- /**
360
- * Bank account number.
361
- */
362
- account_number: string;
363
- /**
364
- * ABA routing number (9 digits).
365
- */
366
- routing_number: string;
367
- /**
368
- * Discriminator for ABA wire financial address.
369
- */
370
- type: 'aba';
371
- }
372
392
  interface BicFinancialAddress {
373
393
  /**
374
394
  * Name of the account holder.
@@ -378,6 +398,10 @@ export declare namespace TransactionListResponse {
378
398
  * Local-format bank account number.
379
399
  */
380
400
  account_number: string;
401
+ /**
402
+ * Whether the account is a checking or a savings account, or null if not provided.
403
+ */
404
+ account_type: 'checking' | 'savings' | null;
381
405
  /**
382
406
  * ISO 9362 Bank Identifier Code (8 or 11 characters).
383
407
  */