@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
@@ -0,0 +1,92 @@
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 Returns extends APIResource {
5
+ /**
6
+ * Submits a network rejection for an existing return through the sandbox provider
7
+ * pipeline. This endpoint is unavailable in live production.
8
+ *
9
+ * @example
10
+ * ```ts
11
+ * const response = await client.simulations.returns.reject(
12
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
13
+ * { reason: 'invalid_routing_number' },
14
+ * );
15
+ * ```
16
+ */
17
+ reject(id: string, body: ReturnRejectParams, options?: RequestOptions): APIPromise<ReturnRejectResponse>;
18
+ /**
19
+ * Submits an inbound return for a sent return through the sandbox provider
20
+ * pipeline. The funds are credited back to the original deposit and the return
21
+ * moves to `returned`. This endpoint is unavailable in live production.
22
+ *
23
+ * @example
24
+ * ```ts
25
+ * const response = await client.simulations.returns.return(
26
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
27
+ * { reason: 'account_closed' },
28
+ * );
29
+ * ```
30
+ */
31
+ return(id: string, body: ReturnReturnParams, options?: RequestOptions): APIPromise<ReturnReturnResponse>;
32
+ /**
33
+ * Submits a successful send event for an existing return through the sandbox
34
+ * provider pipeline. This endpoint is unavailable in live production.
35
+ *
36
+ * @example
37
+ * ```ts
38
+ * const response = await client.simulations.returns.send(
39
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
40
+ * );
41
+ * ```
42
+ */
43
+ send(id: string, options?: RequestOptions): APIPromise<ReturnSendResponse>;
44
+ }
45
+ export interface ReturnRejectResponse {
46
+ /**
47
+ * Return whose lifecycle is being simulated.
48
+ */
49
+ return_id: string;
50
+ /**
51
+ * Resource type discriminator.
52
+ */
53
+ type: 'return_simulation';
54
+ }
55
+ export interface ReturnReturnResponse {
56
+ /**
57
+ * Return whose lifecycle is being simulated.
58
+ */
59
+ return_id: string;
60
+ /**
61
+ * Resource type discriminator.
62
+ */
63
+ type: 'return_simulation';
64
+ }
65
+ export interface ReturnSendResponse {
66
+ /**
67
+ * Return whose lifecycle is being simulated.
68
+ */
69
+ return_id: string;
70
+ /**
71
+ * Resource type discriminator.
72
+ */
73
+ type: 'return_simulation';
74
+ }
75
+ export interface ReturnRejectParams {
76
+ /**
77
+ * Reason the sandbox provider rejects the return. 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 ReturnReturnParams {
84
+ /**
85
+ * Reason the receiving bank returns the sent return.
86
+ */
87
+ reason: 'account_closed' | 'invalid_account_format' | 'invalid_routing_number' | 'account_blocked' | 'unknown';
88
+ }
89
+ export declare namespace Returns {
90
+ export { type ReturnRejectResponse as ReturnRejectResponse, type ReturnReturnResponse as ReturnReturnResponse, type ReturnSendResponse as ReturnSendResponse, type ReturnRejectParams as ReturnRejectParams, type ReturnReturnParams as ReturnReturnParams, };
91
+ }
92
+ //# sourceMappingURL=returns.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"returns.d.mts","sourceRoot":"","sources":["../../src/resources/simulations/returns.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;;;;;;;;;;;;OAYG;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,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,IAAI,EAAE,mBAAmB,CAAC;CAC3B;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,IAAI,EAAE,mBAAmB,CAAC;CAC3B;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,IAAI,EAAE,mBAAmB,CAAC;CAC3B;AAED,MAAM,WAAW,kBAAkB;IACjC;;;;OAIG;IACH,MAAM,EAAE,wBAAwB,GAAG,wBAAwB,CAAC;CAC7D;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,MAAM,EACF,gBAAgB,GAChB,wBAAwB,GACxB,wBAAwB,GACxB,iBAAiB,GACjB,SAAS,CAAC;CACf;AAED,MAAM,CAAC,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"}
@@ -0,0 +1,92 @@
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 Returns extends APIResource {
5
+ /**
6
+ * Submits a network rejection for an existing return through the sandbox provider
7
+ * pipeline. This endpoint is unavailable in live production.
8
+ *
9
+ * @example
10
+ * ```ts
11
+ * const response = await client.simulations.returns.reject(
12
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
13
+ * { reason: 'invalid_routing_number' },
14
+ * );
15
+ * ```
16
+ */
17
+ reject(id: string, body: ReturnRejectParams, options?: RequestOptions): APIPromise<ReturnRejectResponse>;
18
+ /**
19
+ * Submits an inbound return for a sent return through the sandbox provider
20
+ * pipeline. The funds are credited back to the original deposit and the return
21
+ * moves to `returned`. This endpoint is unavailable in live production.
22
+ *
23
+ * @example
24
+ * ```ts
25
+ * const response = await client.simulations.returns.return(
26
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
27
+ * { reason: 'account_closed' },
28
+ * );
29
+ * ```
30
+ */
31
+ return(id: string, body: ReturnReturnParams, options?: RequestOptions): APIPromise<ReturnReturnResponse>;
32
+ /**
33
+ * Submits a successful send event for an existing return through the sandbox
34
+ * provider pipeline. This endpoint is unavailable in live production.
35
+ *
36
+ * @example
37
+ * ```ts
38
+ * const response = await client.simulations.returns.send(
39
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
40
+ * );
41
+ * ```
42
+ */
43
+ send(id: string, options?: RequestOptions): APIPromise<ReturnSendResponse>;
44
+ }
45
+ export interface ReturnRejectResponse {
46
+ /**
47
+ * Return whose lifecycle is being simulated.
48
+ */
49
+ return_id: string;
50
+ /**
51
+ * Resource type discriminator.
52
+ */
53
+ type: 'return_simulation';
54
+ }
55
+ export interface ReturnReturnResponse {
56
+ /**
57
+ * Return whose lifecycle is being simulated.
58
+ */
59
+ return_id: string;
60
+ /**
61
+ * Resource type discriminator.
62
+ */
63
+ type: 'return_simulation';
64
+ }
65
+ export interface ReturnSendResponse {
66
+ /**
67
+ * Return whose lifecycle is being simulated.
68
+ */
69
+ return_id: string;
70
+ /**
71
+ * Resource type discriminator.
72
+ */
73
+ type: 'return_simulation';
74
+ }
75
+ export interface ReturnRejectParams {
76
+ /**
77
+ * Reason the sandbox provider rejects the return. 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 ReturnReturnParams {
84
+ /**
85
+ * Reason the receiving bank returns the sent return.
86
+ */
87
+ reason: 'account_closed' | 'invalid_account_format' | 'invalid_routing_number' | 'account_blocked' | 'unknown';
88
+ }
89
+ export declare namespace Returns {
90
+ export { type ReturnRejectResponse as ReturnRejectResponse, type ReturnReturnResponse as ReturnReturnResponse, type ReturnSendResponse as ReturnSendResponse, type ReturnRejectParams as ReturnRejectParams, type ReturnReturnParams as ReturnReturnParams, };
91
+ }
92
+ //# sourceMappingURL=returns.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"returns.d.ts","sourceRoot":"","sources":["../../src/resources/simulations/returns.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;;;;;;;;;;;;OAYG;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,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,IAAI,EAAE,mBAAmB,CAAC;CAC3B;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,IAAI,EAAE,mBAAmB,CAAC;CAC3B;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,IAAI,EAAE,mBAAmB,CAAC;CAC3B;AAED,MAAM,WAAW,kBAAkB;IACjC;;;;OAIG;IACH,MAAM,EAAE,wBAAwB,GAAG,wBAAwB,CAAC;CAC7D;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,MAAM,EACF,gBAAgB,GAChB,wBAAwB,GACxB,wBAAwB,GACxB,iBAAiB,GACjB,SAAS,CAAC;CACf;AAED,MAAM,CAAC,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"}
@@ -0,0 +1,55 @@
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.Returns = void 0;
5
+ const resource_1 = require("../../core/resource.js");
6
+ const path_1 = require("../../internal/utils/path.js");
7
+ class Returns extends resource_1.APIResource {
8
+ /**
9
+ * Submits a network rejection for an existing return through the sandbox provider
10
+ * pipeline. This endpoint is unavailable in live production.
11
+ *
12
+ * @example
13
+ * ```ts
14
+ * const response = await client.simulations.returns.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/returns/${id}/reject`, { body, ...options });
22
+ }
23
+ /**
24
+ * Submits an inbound return for a sent return through the sandbox provider
25
+ * pipeline. The funds are credited back to the original deposit and the return
26
+ * moves to `returned`. This endpoint is unavailable in live production.
27
+ *
28
+ * @example
29
+ * ```ts
30
+ * const response = await client.simulations.returns.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/returns/${id}/return`, { body, ...options });
38
+ }
39
+ /**
40
+ * Submits a successful send event for an existing return through the sandbox
41
+ * provider pipeline. This endpoint is unavailable in live production.
42
+ *
43
+ * @example
44
+ * ```ts
45
+ * const response = await client.simulations.returns.send(
46
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
47
+ * );
48
+ * ```
49
+ */
50
+ send(id, options) {
51
+ return this._client.post((0, path_1.path) `/v1/simulations/returns/${id}/send`, options);
52
+ }
53
+ }
54
+ exports.Returns = Returns;
55
+ //# sourceMappingURL=returns.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"returns.js","sourceRoot":"","sources":["../../src/resources/simulations/returns.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"}
@@ -0,0 +1,51 @@
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 Returns extends APIResource {
5
+ /**
6
+ * Submits a network rejection for an existing return through the sandbox provider
7
+ * pipeline. This endpoint is unavailable in live production.
8
+ *
9
+ * @example
10
+ * ```ts
11
+ * const response = await client.simulations.returns.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/returns/${id}/reject`, { body, ...options });
19
+ }
20
+ /**
21
+ * Submits an inbound return for a sent return through the sandbox provider
22
+ * pipeline. The funds are credited back to the original deposit and the return
23
+ * moves to `returned`. This endpoint is unavailable in live production.
24
+ *
25
+ * @example
26
+ * ```ts
27
+ * const response = await client.simulations.returns.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/returns/${id}/return`, { body, ...options });
35
+ }
36
+ /**
37
+ * Submits a successful send event for an existing return through the sandbox
38
+ * provider pipeline. This endpoint is unavailable in live production.
39
+ *
40
+ * @example
41
+ * ```ts
42
+ * const response = await client.simulations.returns.send(
43
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
44
+ * );
45
+ * ```
46
+ */
47
+ send(id, options) {
48
+ return this._client.post(path `/v1/simulations/returns/${id}/send`, options);
49
+ }
50
+ }
51
+ //# sourceMappingURL=returns.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"returns.mjs","sourceRoot":"","sources":["../../src/resources/simulations/returns.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,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"}
@@ -3,19 +3,27 @@ import * as AccountProgramsAPI from "./account-programs.mjs";
3
3
  import { AccountProgramCloseParams, AccountProgramCloseResponse, AccountProgramCreateParams, AccountProgramCreateResponse, AccountProgramDrainParams, AccountProgramDrainResponse, AccountProgramFreezeResponse, AccountProgramUnfreezeResponse, AccountPrograms } from "./account-programs.mjs";
4
4
  import * as AccountsAPI from "./accounts.mjs";
5
5
  import { AccountCloseParams, AccountCloseResponse, AccountCreateParams, AccountCreateResponse, AccountDrainParams, AccountDrainResponse, AccountFreezeResponse, AccountUnfreezeResponse, Accounts } from "./accounts.mjs";
6
+ import * as ConversionsAPI from "./conversions.mjs";
7
+ import { ConversionCompleteResponse, ConversionFailResponse, Conversions } from "./conversions.mjs";
6
8
  import * as DepositsAPI from "./deposits.mjs";
7
9
  import { DepositCreateParams, DepositCreateResponse, Deposits } from "./deposits.mjs";
8
10
  import * as PayoutsAPI from "./payouts.mjs";
9
- import { PayoutRejectParams, PayoutRejectResponse, PayoutSendResponse, Payouts } from "./payouts.mjs";
11
+ import { PayoutRejectParams, PayoutRejectResponse, PayoutReturnParams, PayoutReturnResponse, PayoutSendResponse, Payouts } from "./payouts.mjs";
12
+ import * as ReturnsAPI from "./returns.mjs";
13
+ import { ReturnRejectParams, ReturnRejectResponse, ReturnReturnParams, ReturnReturnResponse, ReturnSendResponse, Returns } from "./returns.mjs";
10
14
  export declare class Simulations extends APIResource {
11
15
  deposits: DepositsAPI.Deposits;
16
+ conversions: ConversionsAPI.Conversions;
12
17
  payouts: PayoutsAPI.Payouts;
18
+ returns: ReturnsAPI.Returns;
13
19
  accountPrograms: AccountProgramsAPI.AccountPrograms;
14
20
  accounts: AccountsAPI.Accounts;
15
21
  }
16
22
  export declare namespace Simulations {
17
23
  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, };
24
+ export { Conversions as Conversions, type ConversionCompleteResponse as ConversionCompleteResponse, type ConversionFailResponse as ConversionFailResponse, };
25
+ export { Payouts as Payouts, type PayoutRejectResponse as PayoutRejectResponse, type PayoutReturnResponse as PayoutReturnResponse, type PayoutSendResponse as PayoutSendResponse, type PayoutRejectParams as PayoutRejectParams, type PayoutReturnParams as PayoutReturnParams, };
26
+ export { Returns as Returns, type ReturnRejectResponse as ReturnRejectResponse, type ReturnReturnResponse as ReturnReturnResponse, type ReturnSendResponse as ReturnSendResponse, type ReturnRejectParams as ReturnRejectParams, type ReturnReturnParams as ReturnReturnParams, };
19
27
  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
28
  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
29
  }
@@ -1 +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,oBAAoB,EACpB,mBAAmB,EACnB,qBAAqB,EACrB,kBAAkB,EAClB,oBAAoB,EACpB,qBAAqB,EACrB,uBAAuB,EACvB,QAAQ,EACT,uBAAmB;AACpB,OAAO,KAAK,WAAW,uBAAmB;AAC1C,OAAO,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,QAAQ,EAAE,uBAAmB;AAClF,OAAO,KAAK,UAAU,sBAAkB;AACxC,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,OAAO,EAAE,sBA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AAI,oBAAoB,EACjD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
@@ -3,19 +3,27 @@ import * as AccountProgramsAPI from "./account-programs.js";
3
3
  import { AccountProgramCloseParams, AccountProgramCloseResponse, AccountProgramCreateParams, AccountProgramCreateResponse, AccountProgramDrainParams, AccountProgramDrainResponse, AccountProgramFreezeResponse, AccountProgramUnfreezeResponse, AccountPrograms } from "./account-programs.js";
4
4
  import * as AccountsAPI from "./accounts.js";
5
5
  import { AccountCloseParams, AccountCloseResponse, AccountCreateParams, AccountCreateResponse, AccountDrainParams, AccountDrainResponse, AccountFreezeResponse, AccountUnfreezeResponse, Accounts } from "./accounts.js";
6
+ import * as ConversionsAPI from "./conversions.js";
7
+ import { ConversionCompleteResponse, ConversionFailResponse, Conversions } from "./conversions.js";
6
8
  import * as DepositsAPI from "./deposits.js";
7
9
  import { DepositCreateParams, DepositCreateResponse, Deposits } from "./deposits.js";
8
10
  import * as PayoutsAPI from "./payouts.js";
9
- import { PayoutRejectParams, PayoutRejectResponse, PayoutSendResponse, Payouts } from "./payouts.js";
11
+ import { PayoutRejectParams, PayoutRejectResponse, PayoutReturnParams, PayoutReturnResponse, PayoutSendResponse, Payouts } from "./payouts.js";
12
+ import * as ReturnsAPI from "./returns.js";
13
+ import { ReturnRejectParams, ReturnRejectResponse, ReturnReturnParams, ReturnReturnResponse, ReturnSendResponse, Returns } from "./returns.js";
10
14
  export declare class Simulations extends APIResource {
11
15
  deposits: DepositsAPI.Deposits;
16
+ conversions: ConversionsAPI.Conversions;
12
17
  payouts: PayoutsAPI.Payouts;
18
+ returns: ReturnsAPI.Returns;
13
19
  accountPrograms: AccountProgramsAPI.AccountPrograms;
14
20
  accounts: AccountsAPI.Accounts;
15
21
  }
16
22
  export declare namespace Simulations {
17
23
  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, };
24
+ export { Conversions as Conversions, type ConversionCompleteResponse as ConversionCompleteResponse, type ConversionFailResponse as ConversionFailResponse, };
25
+ export { Payouts as Payouts, type PayoutRejectResponse as PayoutRejectResponse, type PayoutReturnResponse as PayoutReturnResponse, type PayoutSendResponse as PayoutSendResponse, type PayoutRejectParams as PayoutRejectParams, type PayoutReturnParams as PayoutReturnParams, };
26
+ export { Returns as Returns, type ReturnRejectResponse as ReturnRejectResponse, type ReturnReturnResponse as ReturnReturnResponse, type ReturnSendResponse as ReturnSendResponse, type ReturnRejectParams as ReturnRejectParams, type ReturnReturnParams as ReturnReturnParams, };
19
27
  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
28
  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
29
  }
@@ -1 +1 @@
1
- {"version":3,"file":"simulations.d.ts","sourceRoot":"","sources":["../../src/resources/simulations/simulations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B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,2BAA2B,EAC/D,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;IAEF,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
1
+ {"version":3,"file":"simulations.d.ts","sourceRoot":"","sources":["../../src/resources/simulations/simulations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,kBAAkB,8BAA2B;AACzD,OAAO,EACL,yBAAyB,EACzB,2BAA2B,EAC3B,0BAA0B,EAC1B,4BAA4B,EAC5B,yBAAyB,EACzB,2BAA2B,EAC3B,4BAA4B,EAC5B,8BAA8B,EAC9B,eAAe,EAChB,8BAA2B;AAC5B,OAAO,KAAK,WAAW,sBAAmB;AAC1C,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACpB,mBAAmB,EACnB,qBAAqB,EACrB,kBAAkB,EAClB,oBAAoB,EACpB,qBAAqB,EACrB,uBAAuB,EACvB,QAAQ,EACT,sBAAmB;AACpB,OAAO,KAAK,cAAc,yBAAsB;AAChD,OAAO,EAAE,0BAA0B,EAAE,sBAAsB,EAAE,WAAW,EAAE,yBAAsB;AAChG,OAAO,KAAK,WAAW,sBAAmB;AAC1C,OAAO,EAAE,mBA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IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;IAEF,OAAO,EACL,eAAe,IAAI,eAAe,EAClC,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;IAEF,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
@@ -8,22 +8,30 @@ const AccountProgramsAPI = tslib_1.__importStar(require("./account-programs.js")
8
8
  const account_programs_1 = require("./account-programs.js");
9
9
  const AccountsAPI = tslib_1.__importStar(require("./accounts.js"));
10
10
  const accounts_1 = require("./accounts.js");
11
+ const ConversionsAPI = tslib_1.__importStar(require("./conversions.js"));
12
+ const conversions_1 = require("./conversions.js");
11
13
  const DepositsAPI = tslib_1.__importStar(require("./deposits.js"));
12
14
  const deposits_1 = require("./deposits.js");
13
15
  const PayoutsAPI = tslib_1.__importStar(require("./payouts.js"));
14
16
  const payouts_1 = require("./payouts.js");
17
+ const ReturnsAPI = tslib_1.__importStar(require("./returns.js"));
18
+ const returns_1 = require("./returns.js");
15
19
  class Simulations extends resource_1.APIResource {
16
20
  constructor() {
17
21
  super(...arguments);
18
22
  this.deposits = new DepositsAPI.Deposits(this._client);
23
+ this.conversions = new ConversionsAPI.Conversions(this._client);
19
24
  this.payouts = new PayoutsAPI.Payouts(this._client);
25
+ this.returns = new ReturnsAPI.Returns(this._client);
20
26
  this.accountPrograms = new AccountProgramsAPI.AccountPrograms(this._client);
21
27
  this.accounts = new AccountsAPI.Accounts(this._client);
22
28
  }
23
29
  }
24
30
  exports.Simulations = Simulations;
25
31
  Simulations.Deposits = deposits_1.Deposits;
32
+ Simulations.Conversions = conversions_1.Conversions;
26
33
  Simulations.Payouts = payouts_1.Payouts;
34
+ Simulations.Returns = returns_1.Returns;
27
35
  Simulations.AccountPrograms = account_programs_1.AccountPrograms;
28
36
  Simulations.Accounts = accounts_1.Accounts;
29
37
  //# sourceMappingURL=simulations.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"simulations.js","sourceRoot":"","sources":["../../src/resources/simulations/simulations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,kFAAyD;AACzD,4DAU4B;AAC5B,mEAA0C;AAC1C,4CAUoB;AACpB,mEAA0C;AAC1C,4CAAkF;AAClF,iEAAwC;AACxC,0CAAkG;AAElG,MAAa,WAAY,SAAQ,sBAAW;IAA5C;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,oBAAe,GAAuC,IAAI,kBAAkB,CAAC,eAAe,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC3G,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC1E,CAAC;CAAA;AALD,kCAKC;AAED,WAAW,CAAC,QAAQ,GAAG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,CAAC,QAAQ,GAAG,mBAAQ,CAAC"}
@@ -4,21 +4,29 @@ import * as AccountProgramsAPI from "./account-programs.mjs";
4
4
  import { AccountPrograms, } from "./account-programs.mjs";
5
5
  import * as AccountsAPI from "./accounts.mjs";
6
6
  import { Accounts, } from "./accounts.mjs";
7
+ import * as ConversionsAPI from "./conversions.mjs";
8
+ import { Conversions } from "./conversions.mjs";
7
9
  import * as DepositsAPI from "./deposits.mjs";
8
10
  import { Deposits } from "./deposits.mjs";
9
11
  import * as PayoutsAPI from "./payouts.mjs";
10
- import { Payouts } from "./payouts.mjs";
12
+ import { Payouts, } from "./payouts.mjs";
13
+ import * as ReturnsAPI from "./returns.mjs";
14
+ import { Returns, } from "./returns.mjs";
11
15
  export class Simulations extends APIResource {
12
16
  constructor() {
13
17
  super(...arguments);
14
18
  this.deposits = new DepositsAPI.Deposits(this._client);
19
+ this.conversions = new ConversionsAPI.Conversions(this._client);
15
20
  this.payouts = new PayoutsAPI.Payouts(this._client);
21
+ this.returns = new ReturnsAPI.Returns(this._client);
16
22
  this.accountPrograms = new AccountProgramsAPI.AccountPrograms(this._client);
17
23
  this.accounts = new AccountsAPI.Accounts(this._client);
18
24
  }
19
25
  }
20
26
  Simulations.Deposits = Deposits;
27
+ Simulations.Conversions = Conversions;
21
28
  Simulations.Payouts = Payouts;
29
+ Simulations.Returns = Returns;
22
30
  Simulations.AccountPrograms = AccountPrograms;
23
31
  Simulations.Accounts = Accounts;
24
32
  //# sourceMappingURL=simulations.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"simulations.mjs","sourceRoot":"","sources":["../../src/resources/simulations/simulations.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,kBAAkB,+BAA2B;AACzD,OAAO,EASL,eAAe,GAChB,+BAA2B;AAC5B,OAAO,KAAK,WAAW,uBAAmB;AAC1C,OAAO,EASL,QAAQ,GACT,uBAAmB;AACpB,OA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ACxC,OAAO,EAML,OAAO,GACR,sBAAkB;AAEnB,MAAM,OAAO,WAAY,SAAQ,WAAW;IAA5C;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACvF,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,oBAAe,GAAuC,IAAI,kBAAkB,CAAC,eAAe,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC3G,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC1E,CAAC;CAAA;AAED,WAAW,CAAC,QAAQ,GAAG,QAAQ,CAAC;AAChC,WAAW,CAAC,WAAW,GAAG,WAAW,CAAC;AACtC,WAAW,CAAC,OAAO,GAAG,OAAO,CAAC;AAC9B,WAAW,CAAC,OAAO,GAAG,OAAO,CAAC;AAC9B,WAAW,CAAC,eAAe,GAAG,eAAe,CAAC;AAC9C,WAAW,CAAC,QAAQ,GAAG,QAAQ,CAAC"}
@@ -34,6 +34,12 @@ export interface TransactionRetrieveResponse {
34
34
  * Counterparty of the transaction.
35
35
  */
36
36
  counterparty: TransactionRetrieveResponse.Counterparty | null;
37
+ /**
38
+ * ID of the counterparty this transaction is associated with, or null when none
39
+ * was resolved. Correlates with the counterparties API and a payout's
40
+ * counterparty_id.
41
+ */
42
+ counterparty_id: string | null;
37
43
  /**
38
44
  * Currency code (ISO 4217 or crypto).
39
45
  */
@@ -46,10 +52,20 @@ export interface TransactionRetrieveResponse {
46
52
  * Direction of the movement relative to the merchant account.
47
53
  */
48
54
  side: 'credit' | 'debit';
55
+ /**
56
+ * The resource that originated this transaction, or null when it does not map to a
57
+ * retrievable resource.
58
+ */
59
+ source: TransactionRetrieveResponse.Source | null;
49
60
  /**
50
61
  * State of the transaction. Transactions are by definition booked.
51
62
  */
52
63
  status: 'booked';
64
+ /**
65
+ * Reference used to track the payment across the payment network, such as the UETR
66
+ * for SWIFT payments.
67
+ */
68
+ tracking_reference: string | null;
53
69
  /**
54
70
  * Transaction hash for crypto transactions, or null when not known. Only
55
71
  * blockchain rails support this field.
@@ -201,6 +217,20 @@ export declare namespace TransactionRetrieveResponse {
201
217
  state: string | null;
202
218
  }
203
219
  }
220
+ /**
221
+ * The resource that originated this transaction, or null when it does not map to a
222
+ * retrievable resource.
223
+ */
224
+ interface Source {
225
+ /**
226
+ * Identifier of the originating resource, retrievable on its own endpoint.
227
+ */
228
+ id: string;
229
+ /**
230
+ * Type of the resource that originated this transaction.
231
+ */
232
+ type: 'deposit' | 'payout' | 'return';
233
+ }
204
234
  }
205
235
  export interface TransactionListResponse {
206
236
  /**
@@ -223,6 +253,12 @@ export interface TransactionListResponse {
223
253
  * Counterparty of the transaction.
224
254
  */
225
255
  counterparty: TransactionListResponse.Counterparty | null;
256
+ /**
257
+ * ID of the counterparty this transaction is associated with, or null when none
258
+ * was resolved. Correlates with the counterparties API and a payout's
259
+ * counterparty_id.
260
+ */
261
+ counterparty_id: string | null;
226
262
  /**
227
263
  * Currency code (ISO 4217 or crypto).
228
264
  */
@@ -235,10 +271,20 @@ export interface TransactionListResponse {
235
271
  * Direction of the movement relative to the merchant account.
236
272
  */
237
273
  side: 'credit' | 'debit';
274
+ /**
275
+ * The resource that originated this transaction, or null when it does not map to a
276
+ * retrievable resource.
277
+ */
278
+ source: TransactionListResponse.Source | null;
238
279
  /**
239
280
  * State of the transaction. Transactions are by definition booked.
240
281
  */
241
282
  status: 'booked';
283
+ /**
284
+ * Reference used to track the payment across the payment network, such as the UETR
285
+ * for SWIFT payments.
286
+ */
287
+ tracking_reference: string | null;
242
288
  /**
243
289
  * Transaction hash for crypto transactions, or null when not known. Only
244
290
  * blockchain rails support this field.
@@ -390,6 +436,20 @@ export declare namespace TransactionListResponse {
390
436
  state: string | null;
391
437
  }
392
438
  }
439
+ /**
440
+ * The resource that originated this transaction, or null when it does not map to a
441
+ * retrievable resource.
442
+ */
443
+ interface Source {
444
+ /**
445
+ * Identifier of the originating resource, retrievable on its own endpoint.
446
+ */
447
+ id: string;
448
+ /**
449
+ * Type of the resource that originated this transaction.
450
+ */
451
+ type: 'deposit' | 'payout' | 'return';
452
+ }
393
453
  }
394
454
  export interface TransactionListParams extends CursorPageParams {
395
455
  /**