modern-treasury 2.3.0 → 2.4.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 (329) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/README.md +2 -0
  3. package/_shims/{ReadableStream.node.d.ts → ReadableStream-node.d.ts} +1 -1
  4. package/_shims/ReadableStream-node.d.ts.map +1 -0
  5. package/_shims/{ReadableStream.node.js → ReadableStream-node.js} +1 -1
  6. package/_shims/ReadableStream-node.js.map +1 -0
  7. package/_shims/{ReadableStream.node.mjs → ReadableStream-node.mjs} +1 -1
  8. package/_shims/ReadableStream-node.mjs.map +1 -0
  9. package/_shims/{agent.node.d.ts → agent-node.d.ts} +1 -1
  10. package/_shims/agent-node.d.ts.map +1 -0
  11. package/_shims/{agent.node.js → agent-node.js} +1 -1
  12. package/_shims/{agent.node.js.map → agent-node.js.map} +1 -1
  13. package/_shims/{agent.node.mjs → agent-node.mjs} +1 -1
  14. package/_shims/{agent.node.mjs.map → agent-node.mjs.map} +1 -1
  15. package/_shims/agent.d.ts +1 -1
  16. package/_shims/agent.js +1 -1
  17. package/_shims/agent.mjs +1 -1
  18. package/{src/_shims/fetch.node.d.ts → _shims/fetch-node.d.ts} +1 -0
  19. package/_shims/fetch.d.ts +1 -0
  20. package/_shims/{fileFromPath.node.d.ts → fileFromPath-node.d.ts} +2 -2
  21. package/_shims/{fileFromPath.node.d.ts.map → fileFromPath-node.d.ts.map} +1 -1
  22. package/_shims/{fileFromPath.node.js → fileFromPath-node.js} +1 -1
  23. package/_shims/{fileFromPath.node.js.map → fileFromPath-node.js.map} +1 -1
  24. package/_shims/{fileFromPath.node.mjs → fileFromPath-node.mjs} +1 -1
  25. package/_shims/{fileFromPath.node.mjs.map → fileFromPath-node.mjs.map} +1 -1
  26. package/_shims/fileFromPath.d.ts +2 -2
  27. package/_shims/fileFromPath.d.ts.map +1 -1
  28. package/_shims/fileFromPath.js +1 -1
  29. package/_shims/fileFromPath.mjs +1 -1
  30. package/_shims/form-data.js +17 -0
  31. package/_shims/form-data.mjs +20 -0
  32. package/_shims/{getMultipartRequestOptions.node.d.ts → getMultipartRequestOptions-node.d.ts} +2 -2
  33. package/_shims/getMultipartRequestOptions-node.d.ts.map +1 -0
  34. package/_shims/{getMultipartRequestOptions.node.js → getMultipartRequestOptions-node.js} +1 -1
  35. package/_shims/{getMultipartRequestOptions.node.js.map → getMultipartRequestOptions-node.js.map} +1 -1
  36. package/_shims/{getMultipartRequestOptions.node.mjs → getMultipartRequestOptions-node.mjs} +1 -1
  37. package/_shims/{getMultipartRequestOptions.node.mjs.map → getMultipartRequestOptions-node.mjs.map} +1 -1
  38. package/_shims/getMultipartRequestOptions.d.ts +1 -1
  39. package/_shims/getMultipartRequestOptions.d.ts.map +1 -1
  40. package/_shims/{node-readable.node.d.ts → node-readable-node.d.ts} +1 -1
  41. package/_shims/{node-readable.node.d.ts.map → node-readable-node.d.ts.map} +1 -1
  42. package/_shims/{node-readable.node.js → node-readable-node.js} +1 -1
  43. package/_shims/node-readable-node.js.map +1 -0
  44. package/_shims/{node-readable.node.mjs → node-readable-node.mjs} +1 -1
  45. package/_shims/node-readable-node.mjs.map +1 -0
  46. package/core.d.ts +13 -5
  47. package/core.d.ts.map +1 -1
  48. package/core.js +17 -10
  49. package/core.js.map +1 -1
  50. package/core.mjs +17 -10
  51. package/core.mjs.map +1 -1
  52. package/index.d.mts +18 -5
  53. package/index.d.ts +18 -5
  54. package/index.d.ts.map +1 -1
  55. package/index.js +21 -7
  56. package/index.js.map +1 -1
  57. package/index.mjs +21 -7
  58. package/index.mjs.map +1 -1
  59. package/package.json +32 -9
  60. package/resources/account-collection-flows.d.ts +3 -28
  61. package/resources/account-collection-flows.d.ts.map +1 -1
  62. package/resources/account-collection-flows.js +22 -17
  63. package/resources/account-collection-flows.js.map +1 -1
  64. package/resources/account-collection-flows.mjs +22 -17
  65. package/resources/account-collection-flows.mjs.map +1 -1
  66. package/resources/account-details.d.ts +3 -8
  67. package/resources/account-details.d.ts.map +1 -1
  68. package/resources/account-details.js +10 -4
  69. package/resources/account-details.js.map +1 -1
  70. package/resources/account-details.mjs +10 -4
  71. package/resources/account-details.mjs.map +1 -1
  72. package/resources/connections.js +3 -3
  73. package/resources/connections.mjs +3 -3
  74. package/resources/counterparties.d.ts +26 -40
  75. package/resources/counterparties.d.ts.map +1 -1
  76. package/resources/counterparties.js +17 -5
  77. package/resources/counterparties.js.map +1 -1
  78. package/resources/counterparties.mjs +17 -5
  79. package/resources/counterparties.mjs.map +1 -1
  80. package/resources/documents.d.ts +2 -13
  81. package/resources/documents.d.ts.map +1 -1
  82. package/resources/documents.js +11 -5
  83. package/resources/documents.js.map +1 -1
  84. package/resources/documents.mjs +11 -5
  85. package/resources/documents.mjs.map +1 -1
  86. package/resources/events.js +3 -3
  87. package/resources/events.mjs +3 -3
  88. package/resources/expected-payments.d.ts +23 -32
  89. package/resources/expected-payments.d.ts.map +1 -1
  90. package/resources/expected-payments.js +10 -4
  91. package/resources/expected-payments.js.map +1 -1
  92. package/resources/expected-payments.mjs +10 -4
  93. package/resources/expected-payments.mjs.map +1 -1
  94. package/resources/external-accounts.d.ts +17 -51
  95. package/resources/external-accounts.d.ts.map +1 -1
  96. package/resources/external-accounts.js +24 -6
  97. package/resources/external-accounts.js.map +1 -1
  98. package/resources/external-accounts.mjs +24 -6
  99. package/resources/external-accounts.mjs.map +1 -1
  100. package/resources/incoming-payment-details.d.ts +10 -15
  101. package/resources/incoming-payment-details.d.ts.map +1 -1
  102. package/resources/incoming-payment-details.js +10 -4
  103. package/resources/incoming-payment-details.js.map +1 -1
  104. package/resources/incoming-payment-details.mjs +10 -4
  105. package/resources/incoming-payment-details.mjs.map +1 -1
  106. package/resources/index.d.ts +0 -2
  107. package/resources/index.d.ts.map +1 -1
  108. package/resources/index.js.map +1 -1
  109. package/resources/index.mjs.map +1 -1
  110. package/resources/internal-accounts/balance-reports.js +3 -3
  111. package/resources/internal-accounts/balance-reports.mjs +3 -3
  112. package/resources/internal-accounts/internal-accounts.d.ts +10 -15
  113. package/resources/internal-accounts/internal-accounts.d.ts.map +1 -1
  114. package/resources/internal-accounts/internal-accounts.js +10 -4
  115. package/resources/internal-accounts/internal-accounts.js.map +1 -1
  116. package/resources/internal-accounts/internal-accounts.mjs +10 -4
  117. package/resources/internal-accounts/internal-accounts.mjs.map +1 -1
  118. package/resources/invoices/invoices.d.ts +24 -32
  119. package/resources/invoices/invoices.d.ts.map +1 -1
  120. package/resources/invoices/invoices.js +10 -4
  121. package/resources/invoices/invoices.js.map +1 -1
  122. package/resources/invoices/invoices.mjs +10 -4
  123. package/resources/invoices/invoices.mjs.map +1 -1
  124. package/resources/invoices/line-items.d.ts +9 -14
  125. package/resources/invoices/line-items.d.ts.map +1 -1
  126. package/resources/invoices/line-items.js +10 -4
  127. package/resources/invoices/line-items.js.map +1 -1
  128. package/resources/invoices/line-items.mjs +10 -4
  129. package/resources/invoices/line-items.mjs.map +1 -1
  130. package/resources/ledger-account-categories.d.ts +8 -13
  131. package/resources/ledger-account-categories.d.ts.map +1 -1
  132. package/resources/ledger-account-categories.js +10 -4
  133. package/resources/ledger-account-categories.js.map +1 -1
  134. package/resources/ledger-account-categories.mjs +10 -4
  135. package/resources/ledger-account-categories.mjs.map +1 -1
  136. package/resources/ledger-account-payouts.d.ts +14 -19
  137. package/resources/ledger-account-payouts.d.ts.map +1 -1
  138. package/resources/ledger-account-payouts.js +10 -4
  139. package/resources/ledger-account-payouts.js.map +1 -1
  140. package/resources/ledger-account-payouts.mjs +10 -4
  141. package/resources/ledger-account-payouts.mjs.map +1 -1
  142. package/resources/ledger-account-statements.d.ts +9 -14
  143. package/resources/ledger-account-statements.d.ts.map +1 -1
  144. package/resources/ledger-account-statements.js +8 -2
  145. package/resources/ledger-account-statements.js.map +1 -1
  146. package/resources/ledger-account-statements.mjs +8 -2
  147. package/resources/ledger-account-statements.mjs.map +1 -1
  148. package/resources/ledger-accounts.d.ts +13 -18
  149. package/resources/ledger-accounts.d.ts.map +1 -1
  150. package/resources/ledger-accounts.js +10 -4
  151. package/resources/ledger-accounts.js.map +1 -1
  152. package/resources/ledger-accounts.mjs +10 -4
  153. package/resources/ledger-accounts.mjs.map +1 -1
  154. package/resources/ledger-entries.js +3 -3
  155. package/resources/ledger-entries.mjs +3 -3
  156. package/resources/ledger-event-handlers.d.ts +5 -16
  157. package/resources/ledger-event-handlers.d.ts.map +1 -1
  158. package/resources/ledger-event-handlers.js +10 -4
  159. package/resources/ledger-event-handlers.js.map +1 -1
  160. package/resources/ledger-event-handlers.mjs +10 -4
  161. package/resources/ledger-event-handlers.mjs.map +1 -1
  162. package/resources/ledger-transactions/ledger-transactions.d.ts +16 -22
  163. package/resources/ledger-transactions/ledger-transactions.d.ts.map +1 -1
  164. package/resources/ledger-transactions/ledger-transactions.js +10 -4
  165. package/resources/ledger-transactions/ledger-transactions.js.map +1 -1
  166. package/resources/ledger-transactions/ledger-transactions.mjs +10 -4
  167. package/resources/ledger-transactions/ledger-transactions.mjs.map +1 -1
  168. package/resources/ledger-transactions/versions.js +3 -3
  169. package/resources/ledger-transactions/versions.mjs +3 -3
  170. package/resources/ledgerable-events.d.ts +11 -16
  171. package/resources/ledgerable-events.d.ts.map +1 -1
  172. package/resources/ledgerable-events.js +8 -2
  173. package/resources/ledgerable-events.js.map +1 -1
  174. package/resources/ledgerable-events.mjs +8 -2
  175. package/resources/ledgerable-events.mjs.map +1 -1
  176. package/resources/ledgers.d.ts +4 -9
  177. package/resources/ledgers.d.ts.map +1 -1
  178. package/resources/ledgers.js +10 -4
  179. package/resources/ledgers.js.map +1 -1
  180. package/resources/ledgers.mjs +10 -4
  181. package/resources/ledgers.mjs.map +1 -1
  182. package/resources/line-items.js +3 -3
  183. package/resources/line-items.mjs +3 -3
  184. package/resources/paper-items.js +3 -3
  185. package/resources/paper-items.mjs +3 -3
  186. package/resources/payment-flows.d.ts +10 -34
  187. package/resources/payment-flows.d.ts.map +1 -1
  188. package/resources/payment-flows.js +22 -17
  189. package/resources/payment-flows.js.map +1 -1
  190. package/resources/payment-flows.mjs +22 -17
  191. package/resources/payment-flows.mjs.map +1 -1
  192. package/resources/payment-orders/payment-orders.d.ts +142 -167
  193. package/resources/payment-orders/payment-orders.d.ts.map +1 -1
  194. package/resources/payment-orders/payment-orders.js +18 -6
  195. package/resources/payment-orders/payment-orders.js.map +1 -1
  196. package/resources/payment-orders/payment-orders.mjs +18 -6
  197. package/resources/payment-orders/payment-orders.mjs.map +1 -1
  198. package/resources/payment-orders/reversals.d.ts +7 -13
  199. package/resources/payment-orders/reversals.d.ts.map +1 -1
  200. package/resources/payment-orders/reversals.js +10 -4
  201. package/resources/payment-orders/reversals.js.map +1 -1
  202. package/resources/payment-orders/reversals.mjs +10 -4
  203. package/resources/payment-orders/reversals.mjs.map +1 -1
  204. package/resources/payment-references.js +3 -3
  205. package/resources/payment-references.mjs +3 -3
  206. package/resources/returns.d.ts +9 -15
  207. package/resources/returns.d.ts.map +1 -1
  208. package/resources/returns.js +10 -4
  209. package/resources/returns.js.map +1 -1
  210. package/resources/returns.mjs +10 -4
  211. package/resources/returns.mjs.map +1 -1
  212. package/resources/routing-details.d.ts +4 -10
  213. package/resources/routing-details.d.ts.map +1 -1
  214. package/resources/routing-details.js +10 -4
  215. package/resources/routing-details.js.map +1 -1
  216. package/resources/routing-details.mjs +10 -4
  217. package/resources/routing-details.mjs.map +1 -1
  218. package/resources/transactions/line-items.js +3 -3
  219. package/resources/transactions/line-items.mjs +3 -3
  220. package/resources/transactions/transactions.js +3 -3
  221. package/resources/transactions/transactions.mjs +3 -3
  222. package/resources/validations.js +1 -1
  223. package/resources/validations.mjs +1 -1
  224. package/resources/virtual-accounts.d.ts +12 -18
  225. package/resources/virtual-accounts.d.ts.map +1 -1
  226. package/resources/virtual-accounts.js +10 -4
  227. package/resources/virtual-accounts.js.map +1 -1
  228. package/resources/virtual-accounts.mjs +10 -4
  229. package/resources/virtual-accounts.mjs.map +1 -1
  230. package/resources/webhooks.js +2 -2
  231. package/resources/webhooks.mjs +2 -2
  232. package/src/_shims/ReadableStream.d.ts +5 -5
  233. package/src/_shims/agent.ts +1 -1
  234. package/{_shims/fetch.node.d.ts → src/_shims/fetch-node.d.ts} +9 -8
  235. package/src/_shims/fetch.d.ts +11 -10
  236. package/src/_shims/{fileFromPath.node.ts → fileFromPath-node.ts} +1 -1
  237. package/src/_shims/fileFromPath.ts +2 -2
  238. package/src/_shims/{formdata.node.d.ts → form-data-node.d.ts} +4 -4
  239. package/src/_shims/{formdata.d.ts → form-data.d.ts} +4 -4
  240. package/src/_shims/form-data.js +17 -0
  241. package/src/_shims/form-data.mjs +20 -0
  242. package/src/_shims/{getMultipartRequestOptions.node.ts → getMultipartRequestOptions-node.ts} +3 -3
  243. package/src/_shims/getMultipartRequestOptions.ts +3 -3
  244. package/src/core.ts +35 -22
  245. package/src/error.ts +1 -1
  246. package/src/index.ts +27 -13
  247. package/src/pagination.ts +1 -1
  248. package/src/resource.ts +1 -1
  249. package/src/resources/account-collection-flows.ts +24 -52
  250. package/src/resources/account-details.ts +16 -16
  251. package/src/resources/connections.ts +5 -5
  252. package/src/resources/counterparties.ts +48 -52
  253. package/src/resources/documents.ts +15 -21
  254. package/src/resources/events.ts +5 -5
  255. package/src/resources/expected-payments.ts +36 -40
  256. package/src/resources/external-accounts.ts +46 -65
  257. package/src/resources/incoming-payment-details.ts +24 -24
  258. package/src/resources/index.ts +39 -35
  259. package/src/resources/internal-accounts/balance-reports.ts +6 -6
  260. package/src/resources/internal-accounts/index.ts +2 -2
  261. package/src/resources/internal-accounts/internal-accounts.ts +27 -27
  262. package/src/resources/invoices/index.ts +2 -2
  263. package/src/resources/invoices/invoices.ts +39 -42
  264. package/src/resources/invoices/line-items.ts +21 -21
  265. package/src/resources/ledger-account-categories.ts +20 -20
  266. package/src/resources/ledger-account-payouts.ts +26 -26
  267. package/src/resources/ledger-account-statements.ts +19 -19
  268. package/src/resources/ledger-accounts.ts +25 -25
  269. package/src/resources/ledger-entries.ts +5 -5
  270. package/src/resources/ledger-event-handlers.ts +17 -23
  271. package/src/resources/ledger-transactions/index.ts +2 -2
  272. package/src/resources/ledger-transactions/ledger-transactions.ts +30 -31
  273. package/src/resources/ledger-transactions/versions.ts +5 -5
  274. package/src/resources/ledgerable-events.ts +21 -21
  275. package/src/resources/ledgers.ts +16 -16
  276. package/src/resources/line-items.ts +5 -5
  277. package/src/resources/paper-items.ts +6 -6
  278. package/src/resources/payment-flows.ts +31 -58
  279. package/src/resources/payment-orders/index.ts +2 -2
  280. package/src/resources/payment-orders/payment-orders.ts +166 -181
  281. package/src/resources/payment-orders/reversals.ts +19 -20
  282. package/src/resources/payment-references.ts +5 -5
  283. package/src/resources/returns.ts +22 -23
  284. package/src/resources/routing-details.ts +17 -18
  285. package/src/resources/top-level.ts +1 -1
  286. package/src/resources/transactions/index.ts +7 -2
  287. package/src/resources/transactions/line-items.ts +5 -5
  288. package/src/resources/transactions/transactions.ts +7 -7
  289. package/src/resources/validations.ts +3 -3
  290. package/src/resources/virtual-accounts.ts +26 -27
  291. package/src/resources/webhooks.ts +3 -3
  292. package/src/tsconfig.json +11 -0
  293. package/src/uploads.ts +6 -6
  294. package/src/version.ts +1 -1
  295. package/uploads.d.ts +1 -1
  296. package/uploads.d.ts.map +1 -1
  297. package/uploads.js +7 -7
  298. package/uploads.js.map +1 -1
  299. package/uploads.mjs +4 -4
  300. package/uploads.mjs.map +1 -1
  301. package/version.d.ts +1 -1
  302. package/version.js +1 -1
  303. package/version.mjs +1 -1
  304. package/_shims/ReadableStream.node.d.ts.map +0 -1
  305. package/_shims/ReadableStream.node.js.map +0 -1
  306. package/_shims/ReadableStream.node.mjs.map +0 -1
  307. package/_shims/agent.node.d.ts.map +0 -1
  308. package/_shims/formdata.js +0 -9
  309. package/_shims/formdata.mjs +0 -11
  310. package/_shims/getMultipartRequestOptions.node.d.ts.map +0 -1
  311. package/_shims/node-readable.node.js.map +0 -1
  312. package/_shims/node-readable.node.mjs.map +0 -1
  313. package/src/_shims/fetch.deno.ts +0 -23
  314. package/src/_shims/formdata.deno.ts +0 -16
  315. package/src/_shims/formdata.js +0 -9
  316. package/src/_shims/formdata.mjs +0 -11
  317. /package/_shims/{fetch.node.js → fetch-node.js} +0 -0
  318. /package/_shims/{fetch.node.mjs → fetch-node.mjs} +0 -0
  319. /package/_shims/{formdata.node.d.ts → form-data-node.d.ts} +0 -0
  320. /package/_shims/{formdata.node.js → form-data-node.js} +0 -0
  321. /package/_shims/{formdata.node.mjs → form-data-node.mjs} +0 -0
  322. /package/_shims/{formdata.d.ts → form-data.d.ts} +0 -0
  323. /package/src/_shims/{ReadableStream.node.ts → ReadableStream-node.ts} +0 -0
  324. /package/src/_shims/{agent.node.ts → agent-node.ts} +0 -0
  325. /package/src/_shims/{fetch.node.js → fetch-node.js} +0 -0
  326. /package/src/_shims/{fetch.node.mjs → fetch-node.mjs} +0 -0
  327. /package/src/_shims/{formdata.node.js → form-data-node.js} +0 -0
  328. /package/src/_shims/{formdata.node.mjs → form-data-node.mjs} +0 -0
  329. /package/src/_shims/{node-readable.node.ts → node-readable-node.ts} +0 -0
@@ -1,15 +1,15 @@
1
1
  // File generated from our OpenAPI spec by Stainless.
2
2
 
3
- import * as Core from '../../core';
4
- import { APIResource } from '../../resource';
5
- import { isRequestOptions } from '../../core';
6
- import * as Returns from '../returns';
7
- import * as ExternalAccounts from '../external-accounts';
8
- import * as Shared from '../shared';
9
- import { Reversals } from './reversals';
10
- import * as API from './index';
11
- import { type Uploadable, maybeMultipartFormRequestOptions } from '../../core';
12
- import { Page, PageParams } from '../../pagination';
3
+ import * as Core from '../../core.js';
4
+ import { APIResource } from '../../resource.js';
5
+ import { isRequestOptions } from '../../core.js';
6
+ import * as Returns from '../returns.js';
7
+ import * as ExternalAccounts from '../external-accounts.js';
8
+ import * as Shared from '../shared.js';
9
+ import { Reversals } from './reversals.js';
10
+ import * as API from './index.js';
11
+ import { type Uploadable, maybeMultipartFormRequestOptions } from '../../core.js';
12
+ import { Page, PageParams } from '../../pagination.js';
13
13
 
14
14
  export class PaymentOrders extends APIResource {
15
15
  reversals: Reversals = new Reversals(this.client);
@@ -18,13 +18,19 @@ export class PaymentOrders extends APIResource {
18
18
  * Create a new Payment Order
19
19
  */
20
20
  create(params: PaymentOrderCreateParams, options?: Core.RequestOptions): Core.APIPromise<PaymentOrder> {
21
+ // @ts-expect-error idempotency key header isn't defined anymore but is included here for back-compat
21
22
  const { 'Idempotency-Key': idempotencyKey, ...body } = params;
23
+ if (idempotencyKey) {
24
+ console.warn(
25
+ "The Idempotency-Key request param is deprecated, the 'idempotencyToken' option should be set instead",
26
+ );
27
+ }
22
28
  return this.post(
23
29
  '/api/payment_orders',
24
30
  maybeMultipartFormRequestOptions({
25
31
  body,
26
32
  ...options,
27
- headers: { 'Idempotency-Key': idempotencyKey || '', ...options?.headers },
33
+ headers: { 'Idempotency-Key': idempotencyKey, ...options?.headers },
28
34
  }),
29
35
  );
30
36
  }
@@ -81,11 +87,17 @@ export class PaymentOrders extends APIResource {
81
87
  params: PaymentOrderCreateAsyncParams,
82
88
  options?: Core.RequestOptions,
83
89
  ): Core.APIPromise<Shared.AsyncResponse> {
90
+ // @ts-expect-error idempotency key header isn't defined anymore but is included here for back-compat
84
91
  const { 'Idempotency-Key': idempotencyKey, ...body } = params;
92
+ if (idempotencyKey) {
93
+ console.warn(
94
+ "The Idempotency-Key request param is deprecated, the 'idempotencyToken' option should be set instead",
95
+ );
96
+ }
85
97
  return this.post('/api/payment_orders/create_async', {
86
98
  body,
87
99
  ...options,
88
- headers: { 'Idempotency-Key': idempotencyKey || '', ...options?.headers },
100
+ headers: { 'Idempotency-Key': idempotencyKey, ...options?.headers },
89
101
  });
90
102
  }
91
103
  }
@@ -487,149 +499,141 @@ export type PaymentOrderType =
487
499
 
488
500
  export interface PaymentOrderCreateParams {
489
501
  /**
490
- * Body param: Value in specified currency's smallest unit. e.g. $10 would be
491
- * represented as 1000 (cents). For RTP, the maximum amount allowed by the network
492
- * is $100,000.
502
+ * Value in specified currency's smallest unit. e.g. $10 would be represented as
503
+ * 1000 (cents). For RTP, the maximum amount allowed by the network is $100,000.
493
504
  */
494
505
  amount: number;
495
506
 
496
507
  /**
497
- * Body param: One of `credit`, `debit`. Describes the direction money is flowing
498
- * in the transaction. A `credit` moves money from your account to someone else's.
499
- * A `debit` pulls money from someone else's account to your own. Note that wire,
508
+ * One of `credit`, `debit`. Describes the direction money is flowing in the
509
+ * transaction. A `credit` moves money from your account to someone else's. A
510
+ * `debit` pulls money from someone else's account to your own. Note that wire,
500
511
  * rtp, and check payments will always be `credit`.
501
512
  */
502
513
  direction: 'credit' | 'debit';
503
514
 
504
515
  /**
505
- * Body param: The ID of one of your organization's internal accounts.
516
+ * The ID of one of your organization's internal accounts.
506
517
  */
507
518
  originating_account_id: string;
508
519
 
509
520
  /**
510
- * Body param: One of `ach`, `eft`, `wire`, `check`, `sen`, `book`, `rtp`, `sepa`,
511
- * `bacs`, `au_becs`, `interac`, `signet`, `provexchange`.
521
+ * One of `ach`, `eft`, `wire`, `check`, `sen`, `book`, `rtp`, `sepa`, `bacs`,
522
+ * `au_becs`, `interac`, `signet`, `provexchange`.
512
523
  */
513
524
  type: PaymentOrderType;
514
525
 
515
- /**
516
- * Body param:
517
- */
518
526
  accounting?: PaymentOrderCreateParams.Accounting;
519
527
 
520
528
  /**
521
- * Body param: The ID of one of your accounting categories. Note that these will
522
- * only be accessible if your accounting system has been connected.
529
+ * The ID of one of your accounting categories. Note that these will only be
530
+ * accessible if your accounting system has been connected.
523
531
  */
524
532
  accounting_category_id?: string | null;
525
533
 
526
534
  /**
527
- * Body param: The ID of one of your accounting ledger classes. Note that these
528
- * will only be accessible if your accounting system has been connected.
535
+ * The ID of one of your accounting ledger classes. Note that these will only be
536
+ * accessible if your accounting system has been connected.
529
537
  */
530
538
  accounting_ledger_class_id?: string | null;
531
539
 
532
540
  /**
533
- * Body param: The party that will pay the fees for the payment order. Only applies
534
- * to wire payment orders. Can be one of shared, sender, or receiver, which
535
- * correspond respectively with the SWIFT 71A values `SHA`, `OUR`, `BEN`.
541
+ * The party that will pay the fees for the payment order. Only applies to wire
542
+ * payment orders. Can be one of shared, sender, or receiver, which correspond
543
+ * respectively with the SWIFT 71A values `SHA`, `OUR`, `BEN`.
536
544
  */
537
545
  charge_bearer?: 'shared' | 'sender' | 'receiver' | null;
538
546
 
539
547
  /**
540
- * Body param: Defaults to the currency of the originating account.
548
+ * Defaults to the currency of the originating account.
541
549
  */
542
550
  currency?: Shared.Currency | null;
543
551
 
544
552
  /**
545
- * Body param: An optional description for internal use.
553
+ * An optional description for internal use.
546
554
  */
547
555
  description?: string | null;
548
556
 
549
557
  /**
550
- * Body param: An array of documents to be attached to the payment order. Note that
551
- * if you attach documents, the request's content type must be
552
- * `multipart/form-data`.
558
+ * An array of documents to be attached to the payment order. Note that if you
559
+ * attach documents, the request's content type must be `multipart/form-data`.
553
560
  */
554
561
  documents?: Array<PaymentOrderCreateParams.Document>;
555
562
 
556
563
  /**
557
- * Body param: Date transactions are to be posted to the participants' account.
558
- * Defaults to the current business day or the next business day if the current day
559
- * is a bank holiday or weekend. Format: yyyy-mm-dd.
564
+ * Date transactions are to be posted to the participants' account. Defaults to the
565
+ * current business day or the next business day if the current day is a bank
566
+ * holiday or weekend. Format: yyyy-mm-dd.
560
567
  */
561
568
  effective_date?: string;
562
569
 
563
570
  /**
564
- * Body param: RFP payments require an expires_at. This value must be past the
565
- * effective_date.
571
+ * RFP payments require an expires_at. This value must be past the effective_date.
566
572
  */
567
573
  expires_at?: string | null;
568
574
 
569
575
  /**
570
- * Body param: A payment type to fallback to if the original type is not valid for
571
- * the receiving account. Currently, this only supports falling back from RTP to
572
- * ACH (type=rtp and fallback_type=ach)
576
+ * A payment type to fallback to if the original type is not valid for the
577
+ * receiving account. Currently, this only supports falling back from RTP to ACH
578
+ * (type=rtp and fallback_type=ach)
573
579
  */
574
580
  fallback_type?: 'ach';
575
581
 
576
582
  /**
577
- * Body param: If present, indicates a specific foreign exchange contract number
578
- * that has been generated by your financial institution.
583
+ * If present, indicates a specific foreign exchange contract number that has been
584
+ * generated by your financial institution.
579
585
  */
580
586
  foreign_exchange_contract?: string | null;
581
587
 
582
588
  /**
583
- * Body param: Indicates the type of FX transfer to initiate, can be either
589
+ * Indicates the type of FX transfer to initiate, can be either
584
590
  * `variable_to_fixed`, `fixed_to_variable`, or `null` if the payment order
585
591
  * currency matches the originating account currency.
586
592
  */
587
593
  foreign_exchange_indicator?: 'fixed_to_variable' | 'variable_to_fixed' | null;
588
594
 
589
595
  /**
590
- * Body param: Specifies a ledger transaction object that will be created with the
591
- * payment order. If the ledger transaction cannot be created, then the payment
592
- * order creation will fail. The resulting ledger transaction will mirror the
593
- * status of the payment order.
596
+ * Specifies a ledger transaction object that will be created with the payment
597
+ * order. If the ledger transaction cannot be created, then the payment order
598
+ * creation will fail. The resulting ledger transaction will mirror the status of
599
+ * the payment order.
594
600
  */
595
601
  ledger_transaction?: PaymentOrderCreateParams.LedgerTransaction;
596
602
 
597
603
  /**
598
- * Body param: An array of line items that must sum up to the amount of the payment
599
- * order.
604
+ * An array of line items that must sum up to the amount of the payment order.
600
605
  */
601
606
  line_items?: Array<PaymentOrderCreateParams.LineItem>;
602
607
 
603
608
  /**
604
- * Body param: Additional data represented as key-value pairs. Both the key and
605
- * value must be strings.
609
+ * Additional data represented as key-value pairs. Both the key and value must be
610
+ * strings.
606
611
  */
607
612
  metadata?: Record<string, string>;
608
613
 
609
614
  /**
610
- * Body param: A boolean to determine if NSF Protection is enabled for this payment
611
- * order. Note that this setting must also be turned on in your organization
612
- * settings page.
615
+ * A boolean to determine if NSF Protection is enabled for this payment order. Note
616
+ * that this setting must also be turned on in your organization settings page.
613
617
  */
614
618
  nsf_protected?: boolean;
615
619
 
616
620
  /**
617
- * Body param: If present, this will replace your default company name on
618
- * receiver's bank statement. This field can only be used for ACH payments
619
- * currently. For ACH, only the first 16 characters of this string will be used.
620
- * Any additional characters will be truncated.
621
+ * If present, this will replace your default company name on receiver's bank
622
+ * statement. This field can only be used for ACH payments currently. For ACH, only
623
+ * the first 16 characters of this string will be used. Any additional characters
624
+ * will be truncated.
621
625
  */
622
626
  originating_party_name?: string | null;
623
627
 
624
628
  /**
625
- * Body param: Either `normal` or `high`. For ACH and EFT payments, `high`
626
- * represents a same-day ACH or EFT transfer, respectively. For check payments,
627
- * `high` can mean an overnight check rather than standard mail.
629
+ * Either `normal` or `high`. For ACH and EFT payments, `high` represents a
630
+ * same-day ACH or EFT transfer, respectively. For check payments, `high` can mean
631
+ * an overnight check rather than standard mail.
628
632
  */
629
633
  priority?: 'high' | 'normal';
630
634
 
631
635
  /**
632
- * Body param: For `wire`, this is usually the purpose which is transmitted via the
636
+ * For `wire`, this is usually the purpose which is transmitted via the
633
637
  * "InstrForDbtrAgt" field in the ISO20022 file. If you are using Currencycloud,
634
638
  * this is the `payment.purpose_code` field. For `eft`, this field is the 3 digit
635
639
  * CPA Code that will be attached to the payment.
@@ -637,81 +641,75 @@ export interface PaymentOrderCreateParams {
637
641
  purpose?: string | null;
638
642
 
639
643
  /**
640
- * Body param: Either `receiving_account` or `receiving_account_id` must be
641
- * present. When using `receiving_account_id`, you may pass the id of an external
642
- * account or an internal account.
644
+ * Either `receiving_account` or `receiving_account_id` must be present. When using
645
+ * `receiving_account_id`, you may pass the id of an external account or an
646
+ * internal account.
643
647
  */
644
648
  receiving_account?: PaymentOrderCreateParams.ReceivingAccount;
645
649
 
646
650
  /**
647
- * Body param: Either `receiving_account` or `receiving_account_id` must be
648
- * present. When using `receiving_account_id`, you may pass the id of an external
649
- * account or an internal account.
651
+ * Either `receiving_account` or `receiving_account_id` must be present. When using
652
+ * `receiving_account_id`, you may pass the id of an external account or an
653
+ * internal account.
650
654
  */
651
655
  receiving_account_id?: string;
652
656
 
653
657
  /**
654
- * Body param: For `ach`, this field will be passed through on an addenda record.
655
- * For `wire` payments the field will be passed through as the "Originator to
656
- * Beneficiary Information", also known as OBI or Fedwire tag 6000.
658
+ * For `ach`, this field will be passed through on an addenda record. For `wire`
659
+ * payments the field will be passed through as the "Originator to Beneficiary
660
+ * Information", also known as OBI or Fedwire tag 6000.
657
661
  */
658
662
  remittance_information?: string | null;
659
663
 
660
664
  /**
661
- * Body param: Send an email to the counterparty when the payment order is sent to
662
- * the bank. If `null`, `send_remittance_advice` on the Counterparty is used.
665
+ * Send an email to the counterparty when the payment order is sent to the bank. If
666
+ * `null`, `send_remittance_advice` on the Counterparty is used.
663
667
  */
664
668
  send_remittance_advice?: boolean | null;
665
669
 
666
670
  /**
667
- * Body param: An optional descriptor which will appear in the receiver's
668
- * statement. For `check` payments this field will be used as the memo line. For
669
- * `ach` the maximum length is 10 characters. Note that for ACH payments, the name
670
- * on your bank account will be included automatically by the bank, so you can use
671
- * the characters for other useful information. For `eft` the maximum length is 15
671
+ * An optional descriptor which will appear in the receiver's statement. For
672
+ * `check` payments this field will be used as the memo line. For `ach` the maximum
673
+ * length is 10 characters. Note that for ACH payments, the name on your bank
674
+ * account will be included automatically by the bank, so you can use the
675
+ * characters for other useful information. For `eft` the maximum length is 15
672
676
  * characters.
673
677
  */
674
678
  statement_descriptor?: string | null;
675
679
 
676
680
  /**
677
- * Body param: An additional layer of classification for the type of payment order
678
- * you are doing. This field is only used for `ach` payment orders currently. For
679
- * `ach` payment orders, the `subtype` represents the SEC code. We currently
680
- * support `CCD`, `PPD`, `IAT`, `CTX`, `WEB`, `CIE`, and `TEL`.
681
+ * An additional layer of classification for the type of payment order you are
682
+ * doing. This field is only used for `ach` payment orders currently. For `ach`
683
+ * payment orders, the `subtype` represents the SEC code. We currently support
684
+ * `CCD`, `PPD`, `IAT`, `CTX`, `WEB`, `CIE`, and `TEL`.
681
685
  */
682
686
  subtype?: PaymentOrderSubtype | null;
683
687
 
684
688
  /**
685
- * Body param: A flag that determines whether a payment order should go through
686
- * transaction monitoring.
689
+ * A flag that determines whether a payment order should go through transaction
690
+ * monitoring.
687
691
  */
688
692
  transaction_monitoring_enabled?: boolean;
689
693
 
690
694
  /**
691
- * Body param: Identifier of the ultimate originator of the payment order.
695
+ * Identifier of the ultimate originator of the payment order.
692
696
  */
693
697
  ultimate_originating_party_identifier?: string | null;
694
698
 
695
699
  /**
696
- * Body param: Name of the ultimate originator of the payment order.
700
+ * Name of the ultimate originator of the payment order.
697
701
  */
698
702
  ultimate_originating_party_name?: string | null;
699
703
 
700
704
  /**
701
- * Body param: Identifier of the ultimate funds recipient.
705
+ * Identifier of the ultimate funds recipient.
702
706
  */
703
707
  ultimate_receiving_party_identifier?: string | null;
704
708
 
705
709
  /**
706
- * Body param: Name of the ultimate funds recipient.
710
+ * Name of the ultimate funds recipient.
707
711
  */
708
712
  ultimate_receiving_party_name?: string | null;
709
-
710
- /**
711
- * Header param: This key should be something unique, preferably something like an
712
- * UUID.
713
- */
714
- 'Idempotency-Key'?: string;
715
713
  }
716
714
 
717
715
  export namespace PaymentOrderCreateParams {
@@ -1657,142 +1655,135 @@ export interface PaymentOrderListParams extends PageParams {
1657
1655
 
1658
1656
  export interface PaymentOrderCreateAsyncParams {
1659
1657
  /**
1660
- * Body param: Value in specified currency's smallest unit. e.g. $10 would be
1661
- * represented as 1000 (cents). For RTP, the maximum amount allowed by the network
1662
- * is $100,000.
1658
+ * Value in specified currency's smallest unit. e.g. $10 would be represented as
1659
+ * 1000 (cents). For RTP, the maximum amount allowed by the network is $100,000.
1663
1660
  */
1664
1661
  amount: number;
1665
1662
 
1666
1663
  /**
1667
- * Body param: One of `credit`, `debit`. Describes the direction money is flowing
1668
- * in the transaction. A `credit` moves money from your account to someone else's.
1669
- * A `debit` pulls money from someone else's account to your own. Note that wire,
1664
+ * One of `credit`, `debit`. Describes the direction money is flowing in the
1665
+ * transaction. A `credit` moves money from your account to someone else's. A
1666
+ * `debit` pulls money from someone else's account to your own. Note that wire,
1670
1667
  * rtp, and check payments will always be `credit`.
1671
1668
  */
1672
1669
  direction: 'credit' | 'debit';
1673
1670
 
1674
1671
  /**
1675
- * Body param: The ID of one of your organization's internal accounts.
1672
+ * The ID of one of your organization's internal accounts.
1676
1673
  */
1677
1674
  originating_account_id: string;
1678
1675
 
1679
1676
  /**
1680
- * Body param: One of `ach`, `eft`, `wire`, `check`, `sen`, `book`, `rtp`, `sepa`,
1681
- * `bacs`, `au_becs`, `interac`, `signet`, `provexchange`.
1677
+ * One of `ach`, `eft`, `wire`, `check`, `sen`, `book`, `rtp`, `sepa`, `bacs`,
1678
+ * `au_becs`, `interac`, `signet`, `provexchange`.
1682
1679
  */
1683
1680
  type: PaymentOrderType;
1684
1681
 
1685
- /**
1686
- * Body param:
1687
- */
1688
1682
  accounting?: PaymentOrderCreateAsyncParams.Accounting;
1689
1683
 
1690
1684
  /**
1691
- * Body param: The ID of one of your accounting categories. Note that these will
1692
- * only be accessible if your accounting system has been connected.
1685
+ * The ID of one of your accounting categories. Note that these will only be
1686
+ * accessible if your accounting system has been connected.
1693
1687
  */
1694
1688
  accounting_category_id?: string | null;
1695
1689
 
1696
1690
  /**
1697
- * Body param: The ID of one of your accounting ledger classes. Note that these
1698
- * will only be accessible if your accounting system has been connected.
1691
+ * The ID of one of your accounting ledger classes. Note that these will only be
1692
+ * accessible if your accounting system has been connected.
1699
1693
  */
1700
1694
  accounting_ledger_class_id?: string | null;
1701
1695
 
1702
1696
  /**
1703
- * Body param: The party that will pay the fees for the payment order. Only applies
1704
- * to wire payment orders. Can be one of shared, sender, or receiver, which
1705
- * correspond respectively with the SWIFT 71A values `SHA`, `OUR`, `BEN`.
1697
+ * The party that will pay the fees for the payment order. Only applies to wire
1698
+ * payment orders. Can be one of shared, sender, or receiver, which correspond
1699
+ * respectively with the SWIFT 71A values `SHA`, `OUR`, `BEN`.
1706
1700
  */
1707
1701
  charge_bearer?: 'shared' | 'sender' | 'receiver' | null;
1708
1702
 
1709
1703
  /**
1710
- * Body param: Defaults to the currency of the originating account.
1704
+ * Defaults to the currency of the originating account.
1711
1705
  */
1712
1706
  currency?: Shared.Currency | null;
1713
1707
 
1714
1708
  /**
1715
- * Body param: An optional description for internal use.
1709
+ * An optional description for internal use.
1716
1710
  */
1717
1711
  description?: string | null;
1718
1712
 
1719
1713
  /**
1720
- * Body param: Date transactions are to be posted to the participants' account.
1721
- * Defaults to the current business day or the next business day if the current day
1722
- * is a bank holiday or weekend. Format: yyyy-mm-dd.
1714
+ * Date transactions are to be posted to the participants' account. Defaults to the
1715
+ * current business day or the next business day if the current day is a bank
1716
+ * holiday or weekend. Format: yyyy-mm-dd.
1723
1717
  */
1724
1718
  effective_date?: string;
1725
1719
 
1726
1720
  /**
1727
- * Body param: RFP payments require an expires_at. This value must be past the
1728
- * effective_date.
1721
+ * RFP payments require an expires_at. This value must be past the effective_date.
1729
1722
  */
1730
1723
  expires_at?: string | null;
1731
1724
 
1732
1725
  /**
1733
- * Body param: A payment type to fallback to if the original type is not valid for
1734
- * the receiving account. Currently, this only supports falling back from RTP to
1735
- * ACH (type=rtp and fallback_type=ach)
1726
+ * A payment type to fallback to if the original type is not valid for the
1727
+ * receiving account. Currently, this only supports falling back from RTP to ACH
1728
+ * (type=rtp and fallback_type=ach)
1736
1729
  */
1737
1730
  fallback_type?: 'ach';
1738
1731
 
1739
1732
  /**
1740
- * Body param: If present, indicates a specific foreign exchange contract number
1741
- * that has been generated by your financial institution.
1733
+ * If present, indicates a specific foreign exchange contract number that has been
1734
+ * generated by your financial institution.
1742
1735
  */
1743
1736
  foreign_exchange_contract?: string | null;
1744
1737
 
1745
1738
  /**
1746
- * Body param: Indicates the type of FX transfer to initiate, can be either
1739
+ * Indicates the type of FX transfer to initiate, can be either
1747
1740
  * `variable_to_fixed`, `fixed_to_variable`, or `null` if the payment order
1748
1741
  * currency matches the originating account currency.
1749
1742
  */
1750
1743
  foreign_exchange_indicator?: 'fixed_to_variable' | 'variable_to_fixed' | null;
1751
1744
 
1752
1745
  /**
1753
- * Body param: Specifies a ledger transaction object that will be created with the
1754
- * payment order. If the ledger transaction cannot be created, then the payment
1755
- * order creation will fail. The resulting ledger transaction will mirror the
1756
- * status of the payment order.
1746
+ * Specifies a ledger transaction object that will be created with the payment
1747
+ * order. If the ledger transaction cannot be created, then the payment order
1748
+ * creation will fail. The resulting ledger transaction will mirror the status of
1749
+ * the payment order.
1757
1750
  */
1758
1751
  ledger_transaction?: PaymentOrderCreateAsyncParams.LedgerTransaction;
1759
1752
 
1760
1753
  /**
1761
- * Body param: An array of line items that must sum up to the amount of the payment
1762
- * order.
1754
+ * An array of line items that must sum up to the amount of the payment order.
1763
1755
  */
1764
1756
  line_items?: Array<PaymentOrderCreateAsyncParams.LineItem>;
1765
1757
 
1766
1758
  /**
1767
- * Body param: Additional data represented as key-value pairs. Both the key and
1768
- * value must be strings.
1759
+ * Additional data represented as key-value pairs. Both the key and value must be
1760
+ * strings.
1769
1761
  */
1770
1762
  metadata?: Record<string, string>;
1771
1763
 
1772
1764
  /**
1773
- * Body param: A boolean to determine if NSF Protection is enabled for this payment
1774
- * order. Note that this setting must also be turned on in your organization
1775
- * settings page.
1765
+ * A boolean to determine if NSF Protection is enabled for this payment order. Note
1766
+ * that this setting must also be turned on in your organization settings page.
1776
1767
  */
1777
1768
  nsf_protected?: boolean;
1778
1769
 
1779
1770
  /**
1780
- * Body param: If present, this will replace your default company name on
1781
- * receiver's bank statement. This field can only be used for ACH payments
1782
- * currently. For ACH, only the first 16 characters of this string will be used.
1783
- * Any additional characters will be truncated.
1771
+ * If present, this will replace your default company name on receiver's bank
1772
+ * statement. This field can only be used for ACH payments currently. For ACH, only
1773
+ * the first 16 characters of this string will be used. Any additional characters
1774
+ * will be truncated.
1784
1775
  */
1785
1776
  originating_party_name?: string | null;
1786
1777
 
1787
1778
  /**
1788
- * Body param: Either `normal` or `high`. For ACH and EFT payments, `high`
1789
- * represents a same-day ACH or EFT transfer, respectively. For check payments,
1790
- * `high` can mean an overnight check rather than standard mail.
1779
+ * Either `normal` or `high`. For ACH and EFT payments, `high` represents a
1780
+ * same-day ACH or EFT transfer, respectively. For check payments, `high` can mean
1781
+ * an overnight check rather than standard mail.
1791
1782
  */
1792
1783
  priority?: 'high' | 'normal';
1793
1784
 
1794
1785
  /**
1795
- * Body param: For `wire`, this is usually the purpose which is transmitted via the
1786
+ * For `wire`, this is usually the purpose which is transmitted via the
1796
1787
  * "InstrForDbtrAgt" field in the ISO20022 file. If you are using Currencycloud,
1797
1788
  * this is the `payment.purpose_code` field. For `eft`, this field is the 3 digit
1798
1789
  * CPA Code that will be attached to the payment.
@@ -1800,81 +1791,75 @@ export interface PaymentOrderCreateAsyncParams {
1800
1791
  purpose?: string | null;
1801
1792
 
1802
1793
  /**
1803
- * Body param: Either `receiving_account` or `receiving_account_id` must be
1804
- * present. When using `receiving_account_id`, you may pass the id of an external
1805
- * account or an internal account.
1794
+ * Either `receiving_account` or `receiving_account_id` must be present. When using
1795
+ * `receiving_account_id`, you may pass the id of an external account or an
1796
+ * internal account.
1806
1797
  */
1807
1798
  receiving_account?: PaymentOrderCreateAsyncParams.ReceivingAccount;
1808
1799
 
1809
1800
  /**
1810
- * Body param: Either `receiving_account` or `receiving_account_id` must be
1811
- * present. When using `receiving_account_id`, you may pass the id of an external
1812
- * account or an internal account.
1801
+ * Either `receiving_account` or `receiving_account_id` must be present. When using
1802
+ * `receiving_account_id`, you may pass the id of an external account or an
1803
+ * internal account.
1813
1804
  */
1814
1805
  receiving_account_id?: string;
1815
1806
 
1816
1807
  /**
1817
- * Body param: For `ach`, this field will be passed through on an addenda record.
1818
- * For `wire` payments the field will be passed through as the "Originator to
1819
- * Beneficiary Information", also known as OBI or Fedwire tag 6000.
1808
+ * For `ach`, this field will be passed through on an addenda record. For `wire`
1809
+ * payments the field will be passed through as the "Originator to Beneficiary
1810
+ * Information", also known as OBI or Fedwire tag 6000.
1820
1811
  */
1821
1812
  remittance_information?: string | null;
1822
1813
 
1823
1814
  /**
1824
- * Body param: Send an email to the counterparty when the payment order is sent to
1825
- * the bank. If `null`, `send_remittance_advice` on the Counterparty is used.
1815
+ * Send an email to the counterparty when the payment order is sent to the bank. If
1816
+ * `null`, `send_remittance_advice` on the Counterparty is used.
1826
1817
  */
1827
1818
  send_remittance_advice?: boolean | null;
1828
1819
 
1829
1820
  /**
1830
- * Body param: An optional descriptor which will appear in the receiver's
1831
- * statement. For `check` payments this field will be used as the memo line. For
1832
- * `ach` the maximum length is 10 characters. Note that for ACH payments, the name
1833
- * on your bank account will be included automatically by the bank, so you can use
1834
- * the characters for other useful information. For `eft` the maximum length is 15
1821
+ * An optional descriptor which will appear in the receiver's statement. For
1822
+ * `check` payments this field will be used as the memo line. For `ach` the maximum
1823
+ * length is 10 characters. Note that for ACH payments, the name on your bank
1824
+ * account will be included automatically by the bank, so you can use the
1825
+ * characters for other useful information. For `eft` the maximum length is 15
1835
1826
  * characters.
1836
1827
  */
1837
1828
  statement_descriptor?: string | null;
1838
1829
 
1839
1830
  /**
1840
- * Body param: An additional layer of classification for the type of payment order
1841
- * you are doing. This field is only used for `ach` payment orders currently. For
1842
- * `ach` payment orders, the `subtype` represents the SEC code. We currently
1843
- * support `CCD`, `PPD`, `IAT`, `CTX`, `WEB`, `CIE`, and `TEL`.
1831
+ * An additional layer of classification for the type of payment order you are
1832
+ * doing. This field is only used for `ach` payment orders currently. For `ach`
1833
+ * payment orders, the `subtype` represents the SEC code. We currently support
1834
+ * `CCD`, `PPD`, `IAT`, `CTX`, `WEB`, `CIE`, and `TEL`.
1844
1835
  */
1845
1836
  subtype?: PaymentOrderSubtype | null;
1846
1837
 
1847
1838
  /**
1848
- * Body param: A flag that determines whether a payment order should go through
1849
- * transaction monitoring.
1839
+ * A flag that determines whether a payment order should go through transaction
1840
+ * monitoring.
1850
1841
  */
1851
1842
  transaction_monitoring_enabled?: boolean;
1852
1843
 
1853
1844
  /**
1854
- * Body param: Identifier of the ultimate originator of the payment order.
1845
+ * Identifier of the ultimate originator of the payment order.
1855
1846
  */
1856
1847
  ultimate_originating_party_identifier?: string | null;
1857
1848
 
1858
1849
  /**
1859
- * Body param: Name of the ultimate originator of the payment order.
1850
+ * Name of the ultimate originator of the payment order.
1860
1851
  */
1861
1852
  ultimate_originating_party_name?: string | null;
1862
1853
 
1863
1854
  /**
1864
- * Body param: Identifier of the ultimate funds recipient.
1855
+ * Identifier of the ultimate funds recipient.
1865
1856
  */
1866
1857
  ultimate_receiving_party_identifier?: string | null;
1867
1858
 
1868
1859
  /**
1869
- * Body param: Name of the ultimate funds recipient.
1860
+ * Name of the ultimate funds recipient.
1870
1861
  */
1871
1862
  ultimate_receiving_party_name?: string | null;
1872
-
1873
- /**
1874
- * Header param: This key should be something unique, preferably something like an
1875
- * UUID.
1876
- */
1877
- 'Idempotency-Key'?: string;
1878
1863
  }
1879
1864
 
1880
1865
  export namespace PaymentOrderCreateAsyncParams {