@augustusbank/typescript-sdk 0.22.0 → 0.22.2

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 (164) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/client.d.mts +8 -8
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +8 -8
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs.map +1 -1
  8. package/package.json +1 -1
  9. package/resources/account-programs.d.mts +21 -16
  10. package/resources/account-programs.d.mts.map +1 -1
  11. package/resources/account-programs.d.ts +21 -16
  12. package/resources/account-programs.d.ts.map +1 -1
  13. package/resources/account-programs.js +2 -2
  14. package/resources/account-programs.js.map +1 -1
  15. package/resources/account-programs.mjs +2 -2
  16. package/resources/account-programs.mjs.map +1 -1
  17. package/resources/accounts.d.mts +21 -6
  18. package/resources/accounts.d.mts.map +1 -1
  19. package/resources/accounts.d.ts +21 -6
  20. package/resources/accounts.d.ts.map +1 -1
  21. package/resources/accounts.js +2 -2
  22. package/resources/accounts.js.map +1 -1
  23. package/resources/accounts.mjs +2 -2
  24. package/resources/accounts.mjs.map +1 -1
  25. package/resources/counterparties.d.mts +16 -16
  26. package/resources/counterparties.d.mts.map +1 -1
  27. package/resources/counterparties.d.ts +16 -16
  28. package/resources/counterparties.d.ts.map +1 -1
  29. package/resources/deposits.d.mts +10 -0
  30. package/resources/deposits.d.mts.map +1 -1
  31. package/resources/deposits.d.ts +10 -0
  32. package/resources/deposits.d.ts.map +1 -1
  33. package/resources/events.d.mts +3 -3
  34. package/resources/events.d.mts.map +1 -1
  35. package/resources/events.d.ts +3 -3
  36. package/resources/events.d.ts.map +1 -1
  37. package/resources/index.d.mts +4 -4
  38. package/resources/index.d.mts.map +1 -1
  39. package/resources/index.d.ts +4 -4
  40. package/resources/index.d.ts.map +1 -1
  41. package/resources/index.js.map +1 -1
  42. package/resources/index.mjs.map +1 -1
  43. package/resources/payouts.d.mts +22 -406
  44. package/resources/payouts.d.mts.map +1 -1
  45. package/resources/payouts.d.ts +22 -406
  46. package/resources/payouts.d.ts.map +1 -1
  47. package/resources/payouts.js +2 -4
  48. package/resources/payouts.js.map +1 -1
  49. package/resources/payouts.mjs +2 -4
  50. package/resources/payouts.mjs.map +1 -1
  51. package/resources/quotes/index.d.mts +1 -1
  52. package/resources/quotes/index.d.mts.map +1 -1
  53. package/resources/quotes/index.d.ts +1 -1
  54. package/resources/quotes/index.d.ts.map +1 -1
  55. package/resources/quotes/index.js.map +1 -1
  56. package/resources/quotes/index.mjs.map +1 -1
  57. package/resources/quotes/quotes.d.mts +0 -57
  58. package/resources/quotes/quotes.d.mts.map +1 -1
  59. package/resources/quotes/quotes.d.ts +0 -57
  60. package/resources/quotes/quotes.d.ts.map +1 -1
  61. package/resources/quotes/quotes.js +0 -7
  62. package/resources/quotes/quotes.js.map +1 -1
  63. package/resources/quotes/quotes.mjs +0 -7
  64. package/resources/quotes/quotes.mjs.map +1 -1
  65. package/resources/simulations/account-programs.d.mts +11 -72
  66. package/resources/simulations/account-programs.d.mts.map +1 -1
  67. package/resources/simulations/account-programs.d.ts +11 -72
  68. package/resources/simulations/account-programs.d.ts.map +1 -1
  69. package/resources/simulations/account-programs.js +1 -2
  70. package/resources/simulations/account-programs.js.map +1 -1
  71. package/resources/simulations/account-programs.mjs +1 -2
  72. package/resources/simulations/account-programs.mjs.map +1 -1
  73. package/resources/simulations/accounts.d.mts +16 -72
  74. package/resources/simulations/accounts.d.mts.map +1 -1
  75. package/resources/simulations/accounts.d.ts +16 -72
  76. package/resources/simulations/accounts.d.ts.map +1 -1
  77. package/resources/simulations/accounts.js +3 -3
  78. package/resources/simulations/accounts.js.map +1 -1
  79. package/resources/simulations/accounts.mjs +3 -3
  80. package/resources/simulations/accounts.mjs.map +1 -1
  81. package/resources/simulations/conversions.d.mts +54 -0
  82. package/resources/simulations/conversions.d.mts.map +1 -0
  83. package/resources/simulations/conversions.d.ts +54 -0
  84. package/resources/simulations/conversions.d.ts.map +1 -0
  85. package/resources/simulations/conversions.js +39 -0
  86. package/resources/simulations/conversions.js.map +1 -0
  87. package/resources/simulations/conversions.mjs +35 -0
  88. package/resources/simulations/conversions.mjs.map +1 -0
  89. package/resources/simulations/deposits.d.mts +14 -30
  90. package/resources/simulations/deposits.d.mts.map +1 -1
  91. package/resources/simulations/deposits.d.ts +14 -30
  92. package/resources/simulations/deposits.d.ts.map +1 -1
  93. package/resources/simulations/index.d.mts +3 -1
  94. package/resources/simulations/index.d.mts.map +1 -1
  95. package/resources/simulations/index.d.ts +3 -1
  96. package/resources/simulations/index.d.ts.map +1 -1
  97. package/resources/simulations/index.js +5 -1
  98. package/resources/simulations/index.js.map +1 -1
  99. package/resources/simulations/index.mjs +2 -0
  100. package/resources/simulations/index.mjs.map +1 -1
  101. package/resources/simulations/payouts.d.mts +33 -17
  102. package/resources/simulations/payouts.d.mts.map +1 -1
  103. package/resources/simulations/payouts.d.ts +33 -17
  104. package/resources/simulations/payouts.d.ts.map +1 -1
  105. package/resources/simulations/payouts.js +16 -0
  106. package/resources/simulations/payouts.js.map +1 -1
  107. package/resources/simulations/payouts.mjs +16 -0
  108. package/resources/simulations/payouts.mjs.map +1 -1
  109. package/resources/simulations/returns.d.mts +92 -0
  110. package/resources/simulations/returns.d.mts.map +1 -0
  111. package/resources/simulations/returns.d.ts +92 -0
  112. package/resources/simulations/returns.d.ts.map +1 -0
  113. package/resources/simulations/returns.js +55 -0
  114. package/resources/simulations/returns.js.map +1 -0
  115. package/resources/simulations/returns.mjs +51 -0
  116. package/resources/simulations/returns.mjs.map +1 -0
  117. package/resources/simulations/simulations.d.mts +10 -2
  118. package/resources/simulations/simulations.d.mts.map +1 -1
  119. package/resources/simulations/simulations.d.ts +10 -2
  120. package/resources/simulations/simulations.d.ts.map +1 -1
  121. package/resources/simulations/simulations.js +8 -0
  122. package/resources/simulations/simulations.js.map +1 -1
  123. package/resources/simulations/simulations.mjs +9 -1
  124. package/resources/simulations/simulations.mjs.map +1 -1
  125. package/resources/transactions.d.mts +60 -0
  126. package/resources/transactions.d.mts.map +1 -1
  127. package/resources/transactions.d.ts +60 -0
  128. package/resources/transactions.d.ts.map +1 -1
  129. package/resources/webhook-subscriptions.d.mts +9 -9
  130. package/resources/webhook-subscriptions.d.mts.map +1 -1
  131. package/resources/webhook-subscriptions.d.ts +9 -9
  132. package/resources/webhook-subscriptions.d.ts.map +1 -1
  133. package/resources/webhook-subscriptions.js +1 -1
  134. package/resources/webhook-subscriptions.mjs +1 -1
  135. package/resources/webhooks.d.mts +245 -30
  136. package/resources/webhooks.d.mts.map +1 -1
  137. package/resources/webhooks.d.ts +245 -30
  138. package/resources/webhooks.d.ts.map +1 -1
  139. package/src/client.ts +18 -10
  140. package/src/resources/account-programs.ts +29 -18
  141. package/src/resources/accounts.ts +29 -6
  142. package/src/resources/counterparties.ts +16 -16
  143. package/src/resources/deposits.ts +12 -0
  144. package/src/resources/events.ts +18 -12
  145. package/src/resources/index.ts +9 -5
  146. package/src/resources/payouts.ts +36 -1993
  147. package/src/resources/quotes/index.ts +1 -1
  148. package/src/resources/quotes/quotes.ts +0 -84
  149. package/src/resources/simulations/account-programs.ts +12 -87
  150. package/src/resources/simulations/accounts.ts +18 -87
  151. package/src/resources/simulations/conversions.ts +70 -0
  152. package/src/resources/simulations/deposits.ts +27 -35
  153. package/src/resources/simulations/index.ts +11 -0
  154. package/src/resources/simulations/payouts.ts +43 -18
  155. package/src/resources/simulations/returns.ts +123 -0
  156. package/src/resources/simulations/simulations.ts +40 -1
  157. package/src/resources/transactions.ts +70 -0
  158. package/src/resources/webhook-subscriptions.ts +49 -33
  159. package/src/resources/webhooks.ts +360 -36
  160. package/src/version.ts +1 -1
  161. package/version.d.mts +1 -1
  162. package/version.d.ts +1 -1
  163. package/version.js +1 -1
  164. package/version.mjs +1 -1
@@ -22,31 +22,10 @@ export interface DepositCreateResponse {
22
22
  * Account receiving the simulated deposit.
23
23
  */
24
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
25
  /**
42
26
  * Resource type discriminator.
43
27
  */
44
28
  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
29
  }
51
30
  export interface DepositCreateParams {
52
31
  /**
@@ -62,13 +41,18 @@ export interface DepositCreateParams {
62
41
  */
63
42
  currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
64
43
  /**
65
- * Sender of the simulated deposit.
44
+ * Sender of the simulated deposit. Mutually exclusive with `counterparty_id`.
66
45
  */
67
46
  counterparty?: DepositCreateParams.Counterparty;
47
+ /**
48
+ * ID of an existing counterparty to use as the sender of the simulated deposit.
49
+ * Mutually exclusive with `counterparty`.
50
+ */
51
+ counterparty_id?: string;
68
52
  /**
69
53
  * Payment rail the simulated deposit arrives on.
70
54
  */
71
- rail?: 'sepa' | 'sepa_instant' | 'faster_payments' | 'ach' | 'fedwire' | 'swift';
55
+ rail?: 'sepa' | 'sepa_instant' | 'faster_payments' | 'swift' | 'ach' | 'fedwire' | 'ethereum' | 'ethereum_sepolia' | 'solana' | 'solana_devnet' | 'polygon' | 'polygon_amoy';
72
56
  /**
73
57
  * Unstructured remittance information attached to the transfer. Not all rails
74
58
  * support this field.
@@ -77,7 +61,7 @@ export interface DepositCreateParams {
77
61
  }
78
62
  export declare namespace DepositCreateParams {
79
63
  /**
80
- * Sender of the simulated deposit.
64
+ * Sender of the simulated deposit. Mutually exclusive with `counterparty_id`.
81
65
  */
82
66
  interface Counterparty {
83
67
  /**
@@ -197,18 +181,18 @@ export declare namespace DepositCreateParams {
197
181
  * Primary street address.
198
182
  */
199
183
  line_1: string;
200
- /**
201
- * Secondary street address, or null if not recorded.
202
- */
203
- line_2: string | null;
204
184
  /**
205
185
  * Postal or ZIP code.
206
186
  */
207
187
  postal_code: string;
208
188
  /**
209
- * State, province, or region, or null if not recorded.
189
+ * Secondary street address. Optional; omit or send null if not recorded.
190
+ */
191
+ line_2?: string | null;
192
+ /**
193
+ * State, province, or region. Optional; omit or send null if not recorded.
210
194
  */
211
- state: string | null;
195
+ state?: string | null;
212
196
  }
213
197
  }
214
198
  }
@@ -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,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,WAA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E,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"}
@@ -22,31 +22,10 @@ export interface DepositCreateResponse {
22
22
  * Account receiving the simulated deposit.
23
23
  */
24
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
25
  /**
42
26
  * Resource type discriminator.
43
27
  */
44
28
  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
29
  }
51
30
  export interface DepositCreateParams {
52
31
  /**
@@ -62,13 +41,18 @@ export interface DepositCreateParams {
62
41
  */
63
42
  currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
64
43
  /**
65
- * Sender of the simulated deposit.
44
+ * Sender of the simulated deposit. Mutually exclusive with `counterparty_id`.
66
45
  */
67
46
  counterparty?: DepositCreateParams.Counterparty;
47
+ /**
48
+ * ID of an existing counterparty to use as the sender of the simulated deposit.
49
+ * Mutually exclusive with `counterparty`.
50
+ */
51
+ counterparty_id?: string;
68
52
  /**
69
53
  * Payment rail the simulated deposit arrives on.
70
54
  */
71
- rail?: 'sepa' | 'sepa_instant' | 'faster_payments' | 'ach' | 'fedwire' | 'swift';
55
+ rail?: 'sepa' | 'sepa_instant' | 'faster_payments' | 'swift' | 'ach' | 'fedwire' | 'ethereum' | 'ethereum_sepolia' | 'solana' | 'solana_devnet' | 'polygon' | 'polygon_amoy';
72
56
  /**
73
57
  * Unstructured remittance information attached to the transfer. Not all rails
74
58
  * support this field.
@@ -77,7 +61,7 @@ export interface DepositCreateParams {
77
61
  }
78
62
  export declare namespace DepositCreateParams {
79
63
  /**
80
- * Sender of the simulated deposit.
64
+ * Sender of the simulated deposit. Mutually exclusive with `counterparty_id`.
81
65
  */
82
66
  interface Counterparty {
83
67
  /**
@@ -197,18 +181,18 @@ export declare namespace DepositCreateParams {
197
181
  * Primary street address.
198
182
  */
199
183
  line_1: string;
200
- /**
201
- * Secondary street address, or null if not recorded.
202
- */
203
- line_2: string | null;
204
184
  /**
205
185
  * Postal or ZIP code.
206
186
  */
207
187
  postal_code: string;
208
188
  /**
209
- * State, province, or region, or null if not recorded.
189
+ * Secondary street address. Optional; omit or send null if not recorded.
190
+ */
191
+ line_2?: string | null;
192
+ /**
193
+ * State, province, or region. Optional; omit or send null if not recorded.
210
194
  */
211
- state: string | null;
195
+ state?: string | null;
212
196
  }
213
197
  }
214
198
  }
@@ -1 +1 @@
1
- {"version":3,"file":"deposits.d.ts","sourceRoot":"","sources":["../../src/resources/simulations/deposits.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;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;;OAE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AAI,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"}
@@ -1,6 +1,8 @@
1
1
  export { AccountPrograms, type AccountProgramCreateResponse, type AccountProgramCloseResponse, type AccountProgramDrainResponse, type AccountProgramFreezeResponse, type AccountProgramUnfreezeResponse, type AccountProgramCreateParams, type AccountProgramCloseParams, type AccountProgramDrainParams, } from "./account-programs.mjs";
2
2
  export { Accounts, type AccountCreateResponse, type AccountCloseResponse, type AccountDrainResponse, type AccountFreezeResponse, type AccountUnfreezeResponse, type AccountCreateParams, type AccountCloseParams, type AccountDrainParams, } from "./accounts.mjs";
3
+ export { Conversions, type ConversionCompleteResponse, type ConversionFailResponse } from "./conversions.mjs";
3
4
  export { Deposits, type DepositCreateResponse, type DepositCreateParams } from "./deposits.mjs";
4
- export { Payouts, type PayoutRejectResponse, type PayoutSendResponse, type PayoutRejectParams, } from "./payouts.mjs";
5
+ export { Payouts, type PayoutRejectResponse, type PayoutReturnResponse, type PayoutSendResponse, type PayoutRejectParams, type PayoutReturnParams, } from "./payouts.mjs";
6
+ export { Returns, type ReturnRejectResponse, type ReturnReturnResponse, type ReturnSendResponse, type ReturnRejectParams, type ReturnReturnParams, } from "./returns.mjs";
5
7
  export { Simulations } from "./simulations.mjs";
6
8
  //# sourceMappingURL=index.d.mts.map
@@ -1 +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"}
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,WAAW,EAAE,KAAK,0BAA0B,EAAE,KAAK,sBAAsB,EAAE,0BAAsB;AAC1G,OAAO,EAAE,QAAQ,EAAE,KAAK,qBAAqB,EAAE,KAAK,mBAAmB,EAAE,uBAAmB;AAC5F,OAAO,EACL,OAAO,EACP,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,GACxB,sBAAkB;AACnB,OAAO,EACL,OAAO,EACP,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,GACxB,sBAAkB;AACnB,OAAO,EAAE,WAAW,EAAE,0BAAsB"}
@@ -1,6 +1,8 @@
1
1
  export { AccountPrograms, type AccountProgramCreateResponse, type AccountProgramCloseResponse, type AccountProgramDrainResponse, type AccountProgramFreezeResponse, type AccountProgramUnfreezeResponse, type AccountProgramCreateParams, type AccountProgramCloseParams, type AccountProgramDrainParams, } from "./account-programs.js";
2
2
  export { Accounts, type AccountCreateResponse, type AccountCloseResponse, type AccountDrainResponse, type AccountFreezeResponse, type AccountUnfreezeResponse, type AccountCreateParams, type AccountCloseParams, type AccountDrainParams, } from "./accounts.js";
3
+ export { Conversions, type ConversionCompleteResponse, type ConversionFailResponse } from "./conversions.js";
3
4
  export { Deposits, type DepositCreateResponse, type DepositCreateParams } from "./deposits.js";
4
- export { Payouts, type PayoutRejectResponse, type PayoutSendResponse, type PayoutRejectParams, } from "./payouts.js";
5
+ export { Payouts, type PayoutRejectResponse, type PayoutReturnResponse, type PayoutSendResponse, type PayoutRejectParams, type PayoutReturnParams, } from "./payouts.js";
6
+ export { Returns, type ReturnRejectResponse, type ReturnReturnResponse, type ReturnSendResponse, type ReturnRejectParams, type ReturnReturnParams, } from "./returns.js";
5
7
  export { Simulations } from "./simulations.js";
6
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +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"}
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,WAAW,EAAE,KAAK,0BAA0B,EAAE,KAAK,sBAAsB,EAAE,yBAAsB;AAC1G,OAAO,EAAE,QAAQ,EAAE,KAAK,qBAAqB,EAAE,KAAK,mBAAmB,EAAE,sBAAmB;AAC5F,OAAO,EACL,OAAO,EACP,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,GACxB,qBAAkB;AACnB,OAAO,EACL,OAAO,EACP,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,GACxB,qBAAkB;AACnB,OAAO,EAAE,WAAW,EAAE,yBAAsB"}
@@ -1,15 +1,19 @@
1
1
  "use strict";
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Simulations = exports.Payouts = exports.Deposits = exports.Accounts = exports.AccountPrograms = void 0;
4
+ exports.Simulations = exports.Returns = exports.Payouts = exports.Deposits = exports.Conversions = exports.Accounts = exports.AccountPrograms = void 0;
5
5
  var account_programs_1 = require("./account-programs.js");
6
6
  Object.defineProperty(exports, "AccountPrograms", { enumerable: true, get: function () { return account_programs_1.AccountPrograms; } });
7
7
  var accounts_1 = require("./accounts.js");
8
8
  Object.defineProperty(exports, "Accounts", { enumerable: true, get: function () { return accounts_1.Accounts; } });
9
+ var conversions_1 = require("./conversions.js");
10
+ Object.defineProperty(exports, "Conversions", { enumerable: true, get: function () { return conversions_1.Conversions; } });
9
11
  var deposits_1 = require("./deposits.js");
10
12
  Object.defineProperty(exports, "Deposits", { enumerable: true, get: function () { return deposits_1.Deposits; } });
11
13
  var payouts_1 = require("./payouts.js");
12
14
  Object.defineProperty(exports, "Payouts", { enumerable: true, get: function () { return payouts_1.Payouts; } });
15
+ var returns_1 = require("./returns.js");
16
+ Object.defineProperty(exports, "Returns", { enumerable: true, get: function () { return returns_1.Returns; } });
13
17
  var simulations_1 = require("./simulations.js");
14
18
  Object.defineProperty(exports, "Simulations", { enumerable: true, get: function () { return simulations_1.Simulations; } });
15
19
  //# sourceMappingURL=index.js.map
@@ -1 +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"}
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,gDAA0G;AAAjG,0GAAA,WAAW,OAAA;AACpB,0CAA4F;AAAnF,oGAAA,QAAQ,OAAA;AACjB,wCAOmB;AANjB,kGAAA,OAAO,OAAA;AAOT,wCAOmB;AANjB,kGAAA,OAAO,OAAA;AAOT,gDAA4C;AAAnC,0GAAA,WAAW,OAAA"}
@@ -1,7 +1,9 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
  export { AccountPrograms, } from "./account-programs.mjs";
3
3
  export { Accounts, } from "./accounts.mjs";
4
+ export { Conversions } from "./conversions.mjs";
4
5
  export { Deposits } from "./deposits.mjs";
5
6
  export { Payouts, } from "./payouts.mjs";
7
+ export { Returns, } from "./returns.mjs";
6
8
  export { Simulations } from "./simulations.mjs";
7
9
  //# sourceMappingURL=index.mjs.map
@@ -1 +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"}
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,WAAW,EAAgE,0BAAsB;AAC1G,OAAO,EAAE,QAAQ,EAAwD,uBAAmB;AAC5F,OAAO,EACL,OAAO,GAMR,sBAAkB;AACnB,OAAO,EACL,OAAO,GAMR,sBAAkB;AACnB,OAAO,EAAE,WAAW,EAAE,0BAAsB"}
@@ -15,6 +15,20 @@ export declare class Payouts extends APIResource {
15
15
  * ```
16
16
  */
17
17
  reject(id: string, body: PayoutRejectParams, options?: RequestOptions): APIPromise<PayoutRejectResponse>;
18
+ /**
19
+ * Submits an inbound return for a settled payout through the sandbox provider
20
+ * pipeline. The return is linked to the payout and the payout is exposed as
21
+ * returned. This endpoint is unavailable in live production.
22
+ *
23
+ * @example
24
+ * ```ts
25
+ * const response = await client.simulations.payouts.return(
26
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
27
+ * { reason: 'account_closed' },
28
+ * );
29
+ * ```
30
+ */
31
+ return(id: string, body: PayoutReturnParams, options?: RequestOptions): APIPromise<PayoutReturnResponse>;
18
32
  /**
19
33
  * Submits a successful send event for an existing payout through the sandbox
20
34
  * provider pipeline. This endpoint is unavailable in live production.
@@ -29,36 +43,30 @@ export declare class Payouts extends APIResource {
29
43
  send(id: string, options?: RequestOptions): APIPromise<PayoutSendResponse>;
30
44
  }
31
45
  export interface PayoutRejectResponse {
32
- /**
33
- * Payout lifecycle event submitted to the sandbox provider.
34
- */
35
- event: 'send' | 'reject' | 'return';
36
46
  /**
37
47
  * Payout whose lifecycle is being simulated.
38
48
  */
39
49
  payout_id: string;
40
50
  /**
41
- * Whether the simulation submission was successful.
51
+ * Resource type discriminator.
52
+ */
53
+ type: 'payout_simulation';
54
+ }
55
+ export interface PayoutReturnResponse {
56
+ /**
57
+ * Payout whose lifecycle is being simulated.
42
58
  */
43
- success: boolean;
59
+ payout_id: string;
44
60
  /**
45
61
  * Resource type discriminator.
46
62
  */
47
63
  type: 'payout_simulation';
48
64
  }
49
65
  export interface PayoutSendResponse {
50
- /**
51
- * Payout lifecycle event submitted to the sandbox provider.
52
- */
53
- event: 'send' | 'reject' | 'return';
54
66
  /**
55
67
  * Payout whose lifecycle is being simulated.
56
68
  */
57
69
  payout_id: string;
58
- /**
59
- * Whether the simulation submission was successful.
60
- */
61
- success: boolean;
62
70
  /**
63
71
  * Resource type discriminator.
64
72
  */
@@ -66,11 +74,19 @@ export interface PayoutSendResponse {
66
74
  }
67
75
  export interface PayoutRejectParams {
68
76
  /**
69
- * Reason the sandbox provider rejects the payout.
77
+ * Reason the sandbox provider rejects the payout. Use `invalid_routing_number` for
78
+ * domestic rails and `invalid_account_format` for a SWIFT correspondent rejecting
79
+ * on the beneficiary details.
80
+ */
81
+ reason: 'invalid_routing_number' | 'invalid_account_format';
82
+ }
83
+ export interface PayoutReturnParams {
84
+ /**
85
+ * Reason the receiving bank returns the settled payout.
70
86
  */
71
- reason: 'invalid_routing_number';
87
+ reason: 'account_closed' | 'invalid_account_format' | 'invalid_routing_number' | 'account_blocked' | 'unknown';
72
88
  }
73
89
  export declare namespace Payouts {
74
- export { type PayoutRejectResponse as PayoutRejectResponse, type PayoutSendResponse as PayoutSendResponse, type PayoutRejectParams as PayoutRejectParams, };
90
+ export { type PayoutRejectResponse as PayoutRejectResponse, type PayoutReturnResponse as PayoutReturnResponse, type PayoutSendResponse as PayoutSendResponse, type PayoutRejectParams as PayoutRejectParams, type PayoutReturnParams as PayoutReturnParams, };
75
91
  }
76
92
  //# sourceMappingURL=payouts.d.mts.map
@@ -1 +1 @@
1
- {"version":3,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AC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
@@ -15,6 +15,20 @@ export declare class Payouts extends APIResource {
15
15
  * ```
16
16
  */
17
17
  reject(id: string, body: PayoutRejectParams, options?: RequestOptions): APIPromise<PayoutRejectResponse>;
18
+ /**
19
+ * Submits an inbound return for a settled payout through the sandbox provider
20
+ * pipeline. The return is linked to the payout and the payout is exposed as
21
+ * returned. This endpoint is unavailable in live production.
22
+ *
23
+ * @example
24
+ * ```ts
25
+ * const response = await client.simulations.payouts.return(
26
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
27
+ * { reason: 'account_closed' },
28
+ * );
29
+ * ```
30
+ */
31
+ return(id: string, body: PayoutReturnParams, options?: RequestOptions): APIPromise<PayoutReturnResponse>;
18
32
  /**
19
33
  * Submits a successful send event for an existing payout through the sandbox
20
34
  * provider pipeline. This endpoint is unavailable in live production.
@@ -29,36 +43,30 @@ export declare class Payouts extends APIResource {
29
43
  send(id: string, options?: RequestOptions): APIPromise<PayoutSendResponse>;
30
44
  }
31
45
  export interface PayoutRejectResponse {
32
- /**
33
- * Payout lifecycle event submitted to the sandbox provider.
34
- */
35
- event: 'send' | 'reject' | 'return';
36
46
  /**
37
47
  * Payout whose lifecycle is being simulated.
38
48
  */
39
49
  payout_id: string;
40
50
  /**
41
- * Whether the simulation submission was successful.
51
+ * Resource type discriminator.
52
+ */
53
+ type: 'payout_simulation';
54
+ }
55
+ export interface PayoutReturnResponse {
56
+ /**
57
+ * Payout whose lifecycle is being simulated.
42
58
  */
43
- success: boolean;
59
+ payout_id: string;
44
60
  /**
45
61
  * Resource type discriminator.
46
62
  */
47
63
  type: 'payout_simulation';
48
64
  }
49
65
  export interface PayoutSendResponse {
50
- /**
51
- * Payout lifecycle event submitted to the sandbox provider.
52
- */
53
- event: 'send' | 'reject' | 'return';
54
66
  /**
55
67
  * Payout whose lifecycle is being simulated.
56
68
  */
57
69
  payout_id: string;
58
- /**
59
- * Whether the simulation submission was successful.
60
- */
61
- success: boolean;
62
70
  /**
63
71
  * Resource type discriminator.
64
72
  */
@@ -66,11 +74,19 @@ export interface PayoutSendResponse {
66
74
  }
67
75
  export interface PayoutRejectParams {
68
76
  /**
69
- * Reason the sandbox provider rejects the payout.
77
+ * Reason the sandbox provider rejects the payout. Use `invalid_routing_number` for
78
+ * domestic rails and `invalid_account_format` for a SWIFT correspondent rejecting
79
+ * on the beneficiary details.
80
+ */
81
+ reason: 'invalid_routing_number' | 'invalid_account_format';
82
+ }
83
+ export interface PayoutReturnParams {
84
+ /**
85
+ * Reason the receiving bank returns the settled payout.
70
86
  */
71
- reason: 'invalid_routing_number';
87
+ reason: 'account_closed' | 'invalid_account_format' | 'invalid_routing_number' | 'account_blocked' | 'unknown';
72
88
  }
73
89
  export declare namespace Payouts {
74
- export { type PayoutRejectResponse as PayoutRejectResponse, type PayoutSendResponse as PayoutSendResponse, type PayoutRejectParams as PayoutRejectParams, };
90
+ export { type PayoutRejectResponse as PayoutRejectResponse, type PayoutReturnResponse as PayoutReturnResponse, type PayoutSendResponse as PayoutSendResponse, type PayoutRejectParams as PayoutRejectParams, type PayoutReturnParams as PayoutReturnParams, };
75
91
  }
76
92
  //# sourceMappingURL=payouts.d.ts.map
@@ -1 +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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 @@ class Payouts extends resource_1.APIResource {
20
20
  reject(id, body, options) {
21
21
  return this._client.post((0, path_1.path) `/v1/simulations/payouts/${id}/reject`, { body, ...options });
22
22
  }
23
+ /**
24
+ * Submits an inbound return for a settled payout through the sandbox provider
25
+ * pipeline. The return is linked to the payout and the payout is exposed as
26
+ * returned. This endpoint is unavailable in live production.
27
+ *
28
+ * @example
29
+ * ```ts
30
+ * const response = await client.simulations.payouts.return(
31
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
32
+ * { reason: 'account_closed' },
33
+ * );
34
+ * ```
35
+ */
36
+ return(id, body, options) {
37
+ return this._client.post((0, path_1.path) `/v1/simulations/payouts/${id}/return`, { body, ...options });
38
+ }
23
39
  /**
24
40
  * Submits a successful send event for an existing payout through the sandbox
25
41
  * provider pipeline. This endpoint is unavailable in live production.
@@ -1 +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"}
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;;;;;;;;;;;;OAYG;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;AAhDD,0BAgDC"}
@@ -17,6 +17,22 @@ export class Payouts extends APIResource {
17
17
  reject(id, body, options) {
18
18
  return this._client.post(path `/v1/simulations/payouts/${id}/reject`, { body, ...options });
19
19
  }
20
+ /**
21
+ * Submits an inbound return for a settled payout through the sandbox provider
22
+ * pipeline. The return is linked to the payout and the payout is exposed as
23
+ * returned. This endpoint is unavailable in live production.
24
+ *
25
+ * @example
26
+ * ```ts
27
+ * const response = await client.simulations.payouts.return(
28
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
29
+ * { reason: 'account_closed' },
30
+ * );
31
+ * ```
32
+ */
33
+ return(id, body, options) {
34
+ return this._client.post(path `/v1/simulations/payouts/${id}/return`, { body, ...options });
35
+ }
20
36
  /**
21
37
  * Submits a successful send event for an existing payout through the sandbox
22
38
  * provider pipeline. This endpoint is unavailable in live production.
@@ -1 +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"}
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;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,EAAU,EAAE,IAAwB,EAAE,OAAwB;QACnE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,2BAA2B,EAAE,SAAS,EAAE,EAAE,IAAI,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