increase 0.8.1 → 0.9.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 (274) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/README.md +29 -9
  3. package/_shims/fetch.d.ts +8 -1
  4. package/_shims/fetch.node.d.ts +11 -1
  5. package/core.d.ts +75 -27
  6. package/core.d.ts.map +1 -1
  7. package/core.js +112 -49
  8. package/core.js.map +1 -1
  9. package/core.mjs +108 -49
  10. package/core.mjs.map +1 -1
  11. package/package.json +1 -1
  12. package/pagination.d.ts +2 -2
  13. package/pagination.d.ts.map +1 -1
  14. package/pagination.js +4 -4
  15. package/pagination.js.map +1 -1
  16. package/pagination.mjs +4 -4
  17. package/pagination.mjs.map +1 -1
  18. package/resources/account-numbers.d.ts +8 -8
  19. package/resources/account-numbers.d.ts.map +1 -1
  20. package/resources/account-numbers.js.map +1 -1
  21. package/resources/account-numbers.mjs.map +1 -1
  22. package/resources/account-statements.d.ts +3 -6
  23. package/resources/account-statements.d.ts.map +1 -1
  24. package/resources/account-statements.js.map +1 -1
  25. package/resources/account-statements.mjs.map +1 -1
  26. package/resources/account-transfers.d.ts +6 -18
  27. package/resources/account-transfers.d.ts.map +1 -1
  28. package/resources/account-transfers.js.map +1 -1
  29. package/resources/account-transfers.mjs.map +1 -1
  30. package/resources/accounts.d.ts +6 -6
  31. package/resources/accounts.d.ts.map +1 -1
  32. package/resources/ach-prenotifications.d.ts +51 -7
  33. package/resources/ach-prenotifications.d.ts.map +1 -1
  34. package/resources/ach-prenotifications.js.map +1 -1
  35. package/resources/ach-prenotifications.mjs.map +1 -1
  36. package/resources/ach-transfers.d.ts +16 -9
  37. package/resources/ach-transfers.d.ts.map +1 -1
  38. package/resources/ach-transfers.js.map +1 -1
  39. package/resources/ach-transfers.mjs.map +1 -1
  40. package/resources/balance-lookups.d.ts +1 -1
  41. package/resources/balance-lookups.d.ts.map +1 -1
  42. package/resources/bookkeeping-accounts.d.ts +3 -3
  43. package/resources/bookkeeping-accounts.d.ts.map +1 -1
  44. package/resources/bookkeeping-entries.d.ts +2 -2
  45. package/resources/bookkeeping-entries.d.ts.map +1 -1
  46. package/resources/bookkeeping-entry-sets.d.ts +1 -1
  47. package/resources/bookkeeping-entry-sets.d.ts.map +1 -1
  48. package/resources/card-disputes.d.ts +7 -7
  49. package/resources/card-disputes.d.ts.map +1 -1
  50. package/resources/card-disputes.js.map +1 -1
  51. package/resources/card-disputes.mjs.map +1 -1
  52. package/resources/card-profiles.d.ts +15 -7
  53. package/resources/card-profiles.d.ts.map +1 -1
  54. package/resources/card-profiles.js +6 -0
  55. package/resources/card-profiles.js.map +1 -1
  56. package/resources/card-profiles.mjs +6 -0
  57. package/resources/card-profiles.mjs.map +1 -1
  58. package/resources/card-purchase-supplements.d.ts +3 -3
  59. package/resources/card-purchase-supplements.d.ts.map +1 -1
  60. package/resources/cards.d.ts +6 -13
  61. package/resources/cards.d.ts.map +1 -1
  62. package/resources/cards.js.map +1 -1
  63. package/resources/cards.mjs.map +1 -1
  64. package/resources/check-deposits.d.ts +7 -7
  65. package/resources/check-deposits.d.ts.map +1 -1
  66. package/resources/check-deposits.js.map +1 -1
  67. package/resources/check-deposits.mjs.map +1 -1
  68. package/resources/check-transfers.d.ts +15 -10
  69. package/resources/check-transfers.d.ts.map +1 -1
  70. package/resources/check-transfers.js.map +1 -1
  71. package/resources/check-transfers.mjs.map +1 -1
  72. package/resources/declined-transactions.d.ts +25 -28
  73. package/resources/declined-transactions.d.ts.map +1 -1
  74. package/resources/declined-transactions.js.map +1 -1
  75. package/resources/declined-transactions.mjs.map +1 -1
  76. package/resources/digital-wallet-tokens.d.ts +3 -6
  77. package/resources/digital-wallet-tokens.d.ts.map +1 -1
  78. package/resources/digital-wallet-tokens.js.map +1 -1
  79. package/resources/digital-wallet-tokens.mjs.map +1 -1
  80. package/resources/documents.d.ts +3 -3
  81. package/resources/documents.d.ts.map +1 -1
  82. package/resources/entities/beneficial-owners.d.ts +4 -8
  83. package/resources/entities/beneficial-owners.d.ts.map +1 -1
  84. package/resources/entities/beneficial-owners.js.map +1 -1
  85. package/resources/entities/beneficial-owners.mjs.map +1 -1
  86. package/resources/entities/entities.d.ts +11 -11
  87. package/resources/entities/entities.d.ts.map +1 -1
  88. package/resources/entities/entities.js +6 -0
  89. package/resources/entities/entities.js.map +1 -1
  90. package/resources/entities/entities.mjs +6 -0
  91. package/resources/entities/entities.mjs.map +1 -1
  92. package/resources/entities/supplemental-documents.d.ts +2 -2
  93. package/resources/entities/supplemental-documents.d.ts.map +1 -1
  94. package/resources/event-subscriptions.d.ts +5 -8
  95. package/resources/event-subscriptions.d.ts.map +1 -1
  96. package/resources/event-subscriptions.js.map +1 -1
  97. package/resources/event-subscriptions.mjs.map +1 -1
  98. package/resources/events.d.ts +7 -5
  99. package/resources/events.d.ts.map +1 -1
  100. package/resources/events.js.map +1 -1
  101. package/resources/events.mjs.map +1 -1
  102. package/resources/exports.d.ts +4 -4
  103. package/resources/exports.d.ts.map +1 -1
  104. package/resources/external-accounts.d.ts +5 -11
  105. package/resources/external-accounts.d.ts.map +1 -1
  106. package/resources/external-accounts.js.map +1 -1
  107. package/resources/external-accounts.mjs.map +1 -1
  108. package/resources/files.d.ts +9 -4
  109. package/resources/files.d.ts.map +1 -1
  110. package/resources/files.js +2 -2
  111. package/resources/files.js.map +1 -1
  112. package/resources/files.mjs +2 -2
  113. package/resources/files.mjs.map +1 -1
  114. package/resources/groups.d.ts +1 -1
  115. package/resources/groups.d.ts.map +1 -1
  116. package/resources/inbound-ach-transfer-returns.d.ts +6 -4
  117. package/resources/inbound-ach-transfer-returns.d.ts.map +1 -1
  118. package/resources/inbound-ach-transfer-returns.js.map +1 -1
  119. package/resources/inbound-ach-transfer-returns.mjs.map +1 -1
  120. package/resources/inbound-wire-drawdown-requests.d.ts +5 -3
  121. package/resources/inbound-wire-drawdown-requests.d.ts.map +1 -1
  122. package/resources/inbound-wire-drawdown-requests.js.map +1 -1
  123. package/resources/inbound-wire-drawdown-requests.mjs.map +1 -1
  124. package/resources/limits.d.ts +5 -9
  125. package/resources/limits.d.ts.map +1 -1
  126. package/resources/limits.js.map +1 -1
  127. package/resources/limits.mjs.map +1 -1
  128. package/resources/oauth-connections.d.ts +3 -6
  129. package/resources/oauth-connections.d.ts.map +1 -1
  130. package/resources/oauth-connections.js.map +1 -1
  131. package/resources/oauth-connections.mjs.map +1 -1
  132. package/resources/pending-transactions.d.ts +28 -37
  133. package/resources/pending-transactions.d.ts.map +1 -1
  134. package/resources/pending-transactions.js.map +1 -1
  135. package/resources/pending-transactions.mjs.map +1 -1
  136. package/resources/programs.d.ts +3 -3
  137. package/resources/programs.d.ts.map +1 -1
  138. package/resources/real-time-decisions.d.ts +2 -5
  139. package/resources/real-time-decisions.d.ts.map +1 -1
  140. package/resources/real-time-decisions.js.map +1 -1
  141. package/resources/real-time-decisions.mjs.map +1 -1
  142. package/resources/real-time-payments-transfers.d.ts +6 -4
  143. package/resources/real-time-payments-transfers.d.ts.map +1 -1
  144. package/resources/real-time-payments-transfers.js.map +1 -1
  145. package/resources/real-time-payments-transfers.mjs.map +1 -1
  146. package/resources/routing-numbers.d.ts +4 -1
  147. package/resources/routing-numbers.d.ts.map +1 -1
  148. package/resources/routing-numbers.js.map +1 -1
  149. package/resources/routing-numbers.mjs.map +1 -1
  150. package/resources/simulations/account-statements.d.ts +1 -1
  151. package/resources/simulations/account-statements.d.ts.map +1 -1
  152. package/resources/simulations/account-transfers.d.ts +1 -1
  153. package/resources/simulations/account-transfers.d.ts.map +1 -1
  154. package/resources/simulations/ach-transfers.d.ts +124 -138
  155. package/resources/simulations/ach-transfers.d.ts.map +1 -1
  156. package/resources/simulations/ach-transfers.js.map +1 -1
  157. package/resources/simulations/ach-transfers.mjs.map +1 -1
  158. package/resources/simulations/card-disputes.d.ts +1 -1
  159. package/resources/simulations/card-disputes.d.ts.map +1 -1
  160. package/resources/simulations/card-profiles.d.ts +1 -4
  161. package/resources/simulations/card-profiles.d.ts.map +1 -1
  162. package/resources/simulations/card-profiles.js.map +1 -1
  163. package/resources/simulations/card-profiles.mjs.map +1 -1
  164. package/resources/simulations/card-refunds.d.ts +1 -1
  165. package/resources/simulations/card-refunds.d.ts.map +1 -1
  166. package/resources/simulations/cards.d.ts +49 -58
  167. package/resources/simulations/cards.d.ts.map +1 -1
  168. package/resources/simulations/cards.js.map +1 -1
  169. package/resources/simulations/cards.mjs.map +1 -1
  170. package/resources/simulations/check-deposits.d.ts +3 -12
  171. package/resources/simulations/check-deposits.d.ts.map +1 -1
  172. package/resources/simulations/check-transfers.d.ts +2 -2
  173. package/resources/simulations/check-transfers.d.ts.map +1 -1
  174. package/resources/simulations/digital-wallet-token-requests.d.ts +1 -1
  175. package/resources/simulations/digital-wallet-token-requests.d.ts.map +1 -1
  176. package/resources/simulations/documents.d.ts +1 -4
  177. package/resources/simulations/documents.d.ts.map +1 -1
  178. package/resources/simulations/documents.js.map +1 -1
  179. package/resources/simulations/documents.mjs.map +1 -1
  180. package/resources/simulations/inbound-funds-holds.d.ts +1 -1
  181. package/resources/simulations/inbound-funds-holds.d.ts.map +1 -1
  182. package/resources/simulations/inbound-wire-drawdown-requests.d.ts +1 -1
  183. package/resources/simulations/inbound-wire-drawdown-requests.d.ts.map +1 -1
  184. package/resources/simulations/interest-payments.d.ts +100 -108
  185. package/resources/simulations/interest-payments.d.ts.map +1 -1
  186. package/resources/simulations/interest-payments.js.map +1 -1
  187. package/resources/simulations/interest-payments.mjs.map +1 -1
  188. package/resources/simulations/programs.d.ts +1 -4
  189. package/resources/simulations/programs.d.ts.map +1 -1
  190. package/resources/simulations/programs.js.map +1 -1
  191. package/resources/simulations/programs.mjs.map +1 -1
  192. package/resources/simulations/real-time-payments-transfers.d.ts +123 -134
  193. package/resources/simulations/real-time-payments-transfers.d.ts.map +1 -1
  194. package/resources/simulations/real-time-payments-transfers.js.map +1 -1
  195. package/resources/simulations/real-time-payments-transfers.mjs.map +1 -1
  196. package/resources/simulations/wire-transfers.d.ts +100 -108
  197. package/resources/simulations/wire-transfers.d.ts.map +1 -1
  198. package/resources/simulations/wire-transfers.js.map +1 -1
  199. package/resources/simulations/wire-transfers.mjs.map +1 -1
  200. package/resources/transactions.d.ts +105 -110
  201. package/resources/transactions.d.ts.map +1 -1
  202. package/resources/transactions.js.map +1 -1
  203. package/resources/transactions.mjs.map +1 -1
  204. package/resources/wire-drawdown-requests.d.ts +4 -4
  205. package/resources/wire-drawdown-requests.d.ts.map +1 -1
  206. package/resources/wire-transfers.d.ts +11 -11
  207. package/resources/wire-transfers.d.ts.map +1 -1
  208. package/resources/wire-transfers.js.map +1 -1
  209. package/resources/wire-transfers.mjs.map +1 -1
  210. package/src/_shims/fetch.d.ts +8 -1
  211. package/src/_shims/fetch.node.d.ts +11 -1
  212. package/src/core.ts +167 -70
  213. package/src/pagination.ts +5 -5
  214. package/src/resources/account-numbers.ts +9 -9
  215. package/src/resources/account-statements.ts +4 -7
  216. package/src/resources/account-transfers.ts +7 -19
  217. package/src/resources/accounts.ts +7 -7
  218. package/src/resources/ach-prenotifications.ts +56 -8
  219. package/src/resources/ach-transfers.ts +18 -10
  220. package/src/resources/balance-lookups.ts +1 -1
  221. package/src/resources/bookkeeping-accounts.ts +4 -4
  222. package/src/resources/bookkeeping-entries.ts +3 -3
  223. package/src/resources/bookkeeping-entry-sets.ts +1 -1
  224. package/src/resources/card-disputes.ts +8 -8
  225. package/src/resources/card-profiles.ts +20 -8
  226. package/src/resources/card-purchase-supplements.ts +4 -4
  227. package/src/resources/cards.ts +7 -14
  228. package/src/resources/check-deposits.ts +8 -8
  229. package/src/resources/check-transfers.ts +17 -11
  230. package/src/resources/declined-transactions.ts +26 -29
  231. package/src/resources/digital-wallet-tokens.ts +4 -7
  232. package/src/resources/documents.ts +4 -4
  233. package/src/resources/entities/beneficial-owners.ts +4 -8
  234. package/src/resources/entities/entities.ts +15 -12
  235. package/src/resources/entities/supplemental-documents.ts +2 -2
  236. package/src/resources/event-subscriptions.ts +6 -9
  237. package/src/resources/events.ts +8 -6
  238. package/src/resources/exports.ts +5 -5
  239. package/src/resources/external-accounts.ts +6 -12
  240. package/src/resources/files.ts +11 -6
  241. package/src/resources/groups.ts +1 -1
  242. package/src/resources/inbound-ach-transfer-returns.ts +7 -5
  243. package/src/resources/inbound-wire-drawdown-requests.ts +6 -4
  244. package/src/resources/limits.ts +6 -10
  245. package/src/resources/oauth-connections.ts +4 -7
  246. package/src/resources/pending-transactions.ts +29 -38
  247. package/src/resources/programs.ts +4 -4
  248. package/src/resources/real-time-decisions.ts +2 -5
  249. package/src/resources/real-time-payments-transfers.ts +7 -5
  250. package/src/resources/routing-numbers.ts +4 -1
  251. package/src/resources/simulations/account-statements.ts +1 -1
  252. package/src/resources/simulations/account-transfers.ts +1 -1
  253. package/src/resources/simulations/ach-transfers.ts +124 -138
  254. package/src/resources/simulations/card-disputes.ts +1 -1
  255. package/src/resources/simulations/card-profiles.ts +1 -4
  256. package/src/resources/simulations/card-refunds.ts +1 -1
  257. package/src/resources/simulations/cards.ts +49 -58
  258. package/src/resources/simulations/check-deposits.ts +3 -3
  259. package/src/resources/simulations/check-transfers.ts +2 -2
  260. package/src/resources/simulations/digital-wallet-token-requests.ts +1 -1
  261. package/src/resources/simulations/documents.ts +1 -4
  262. package/src/resources/simulations/inbound-funds-holds.ts +1 -1
  263. package/src/resources/simulations/inbound-wire-drawdown-requests.ts +1 -1
  264. package/src/resources/simulations/interest-payments.ts +100 -108
  265. package/src/resources/simulations/programs.ts +1 -4
  266. package/src/resources/simulations/real-time-payments-transfers.ts +123 -134
  267. package/src/resources/simulations/wire-transfers.ts +100 -108
  268. package/src/resources/transactions.ts +106 -111
  269. package/src/resources/wire-drawdown-requests.ts +5 -5
  270. package/src/resources/wire-transfers.ts +12 -12
  271. package/src/version.ts +1 -1
  272. package/version.d.ts +1 -1
  273. package/version.js +1 -1
  274. package/version.mjs +1 -1
@@ -10,19 +10,22 @@ export class Transactions extends APIResource {
10
10
  /**
11
11
  * Retrieve a Transaction
12
12
  */
13
- retrieve(transactionId: string, options?: Core.RequestOptions): Promise<Core.APIResponse<Transaction>> {
13
+ retrieve(transactionId: string, options?: Core.RequestOptions): Core.APIPromise<Transaction> {
14
14
  return this.get(`/transactions/${transactionId}`, options);
15
15
  }
16
16
 
17
17
  /**
18
18
  * List Transactions
19
19
  */
20
- list(query?: TransactionListParams, options?: Core.RequestOptions): Core.PagePromise<TransactionsPage>;
21
- list(options?: Core.RequestOptions): Core.PagePromise<TransactionsPage>;
20
+ list(
21
+ query?: TransactionListParams,
22
+ options?: Core.RequestOptions,
23
+ ): Core.PagePromise<TransactionsPage, Transaction>;
24
+ list(options?: Core.RequestOptions): Core.PagePromise<TransactionsPage, Transaction>;
22
25
  list(
23
26
  query: TransactionListParams | Core.RequestOptions = {},
24
27
  options?: Core.RequestOptions,
25
- ): Core.PagePromise<TransactionsPage> {
28
+ ): Core.PagePromise<TransactionsPage, Transaction> {
26
29
  if (isRequestOptions(query)) {
27
30
  return this.list({}, query);
28
31
  }
@@ -120,26 +123,26 @@ export namespace Transaction {
120
123
  */
121
124
  export interface Source {
122
125
  /**
123
- * A Account Transfer Intention object. This field will be present in the JSON
126
+ * An Account Transfer Intention object. This field will be present in the JSON
124
127
  * response if and only if `category` is equal to `account_transfer_intention`.
125
128
  */
126
129
  account_transfer_intention: Source.AccountTransferIntention | null;
127
130
 
128
131
  /**
129
- * A ACH Transfer Intention object. This field will be present in the JSON response
130
- * if and only if `category` is equal to `ach_transfer_intention`.
132
+ * An ACH Transfer Intention object. This field will be present in the JSON
133
+ * response if and only if `category` is equal to `ach_transfer_intention`.
131
134
  */
132
135
  ach_transfer_intention: Source.ACHTransferIntention | null;
133
136
 
134
137
  /**
135
- * A ACH Transfer Rejection object. This field will be present in the JSON response
136
- * if and only if `category` is equal to `ach_transfer_rejection`.
138
+ * An ACH Transfer Rejection object. This field will be present in the JSON
139
+ * response if and only if `category` is equal to `ach_transfer_rejection`.
137
140
  */
138
141
  ach_transfer_rejection: Source.ACHTransferRejection | null;
139
142
 
140
143
  /**
141
- * A ACH Transfer Return object. This field will be present in the JSON response if
142
- * and only if `category` is equal to `ach_transfer_return`.
144
+ * An ACH Transfer Return object. This field will be present in the JSON response
145
+ * if and only if `category` is equal to `ach_transfer_return`.
143
146
  */
144
147
  ach_transfer_return: Source.ACHTransferReturn | null;
145
148
 
@@ -168,77 +171,69 @@ export namespace Transaction {
168
171
  card_settlement: Source.CardSettlement | null;
169
172
 
170
173
  /**
171
- * The type of transaction that took place. We may add additional possible values
172
- * for this enum over time; your application should be able to handle such
173
- * additions gracefully.
174
+ * The type of the resource. We may add additional possible values for this enum
175
+ * over time; your application should be able to handle such additions gracefully.
174
176
  *
175
- * - `account_transfer_intention` - The Transaction was created by a Account
176
- * Transfer Intention object. Details will be under the
177
- * `account_transfer_intention` object.
178
- * - `ach_transfer_intention` - The Transaction was created by a ACH Transfer
179
- * Intention object. Details will be under the `ach_transfer_intention` object.
180
- * - `ach_transfer_rejection` - The Transaction was created by a ACH Transfer
181
- * Rejection object. Details will be under the `ach_transfer_rejection` object.
182
- * - `ach_transfer_return` - The Transaction was created by a ACH Transfer Return
183
- * object. Details will be under the `ach_transfer_return` object.
184
- * - `card_dispute_acceptance` - The Transaction was created by a Card Dispute
185
- * Acceptance object. Details will be under the `card_dispute_acceptance` object.
186
- * - `card_refund` - The Transaction was created by a Card Refund object. Details
187
- * will be under the `card_refund` object.
188
- * - `card_revenue_payment` - The Transaction was created by a Card Revenue Payment
189
- * object. Details will be under the `card_revenue_payment` object.
190
- * - `card_settlement` - The Transaction was created by a Card Settlement object.
191
- * Details will be under the `card_settlement` object.
192
- * - `check_deposit_acceptance` - The Transaction was created by a Check Deposit
193
- * Acceptance object. Details will be under the `check_deposit_acceptance`
177
+ * - `account_transfer_intention` - Account Transfer Intention: details will be
178
+ * under the `account_transfer_intention` object.
179
+ * - `ach_transfer_intention` - ACH Transfer Intention: details will be under the
180
+ * `ach_transfer_intention` object.
181
+ * - `ach_transfer_rejection` - ACH Transfer Rejection: details will be under the
182
+ * `ach_transfer_rejection` object.
183
+ * - `ach_transfer_return` - ACH Transfer Return: details will be under the
184
+ * `ach_transfer_return` object.
185
+ * - `card_dispute_acceptance` - Card Dispute Acceptance: details will be under the
186
+ * `card_dispute_acceptance` object.
187
+ * - `card_refund` - Card Refund: details will be under the `card_refund` object.
188
+ * - `card_revenue_payment` - Card Revenue Payment: details will be under the
189
+ * `card_revenue_payment` object.
190
+ * - `card_settlement` - Card Settlement: details will be under the
191
+ * `card_settlement` object.
192
+ * - `check_deposit_acceptance` - Check Deposit Acceptance: details will be under
193
+ * the `check_deposit_acceptance` object.
194
+ * - `check_deposit_return` - Check Deposit Return: details will be under the
195
+ * `check_deposit_return` object.
196
+ * - `check_transfer_deposit` - Check Transfer Deposit: details will be under the
197
+ * `check_transfer_deposit` object.
198
+ * - `check_transfer_intention` - Check Transfer Intention: details will be under
199
+ * the `check_transfer_intention` object.
200
+ * - `check_transfer_stop_payment_request` - Check Transfer Stop Payment Request:
201
+ * details will be under the `check_transfer_stop_payment_request` object.
202
+ * - `fee_payment` - Fee Payment: details will be under the `fee_payment` object.
203
+ * - `inbound_ach_transfer` - Inbound ACH Transfer Intention: details will be under
204
+ * the `inbound_ach_transfer` object.
205
+ * - `inbound_ach_transfer_return_intention` - Inbound ACH Transfer Return
206
+ * Intention: details will be under the `inbound_ach_transfer_return_intention`
207
+ * object.
208
+ * - `inbound_check` - Inbound Check: details will be under the `inbound_check`
209
+ * object.
210
+ * - `inbound_international_ach_transfer` - Inbound International ACH Transfer:
211
+ * details will be under the `inbound_international_ach_transfer` object.
212
+ * - `inbound_real_time_payments_transfer_confirmation` - Inbound Real Time
213
+ * Payments Transfer Confirmation: details will be under the
214
+ * `inbound_real_time_payments_transfer_confirmation` object.
215
+ * - `inbound_wire_drawdown_payment` - Inbound Wire Drawdown Payment: details will
216
+ * be under the `inbound_wire_drawdown_payment` object.
217
+ * - `inbound_wire_drawdown_payment_reversal` - Inbound Wire Drawdown Payment
218
+ * Reversal: details will be under the `inbound_wire_drawdown_payment_reversal`
219
+ * object.
220
+ * - `inbound_wire_reversal` - Inbound Wire Reversal: details will be under the
221
+ * `inbound_wire_reversal` object.
222
+ * - `inbound_wire_transfer` - Inbound Wire Transfer: details will be under the
223
+ * `inbound_wire_transfer` object.
224
+ * - `interest_payment` - Interest Payment: details will be under the
225
+ * `interest_payment` object.
226
+ * - `internal_source` - Internal Source: details will be under the
227
+ * `internal_source` object.
228
+ * - `real_time_payments_transfer_acknowledgement` - Real Time Payments Transfer
229
+ * Acknowledgement: details will be under the
230
+ * `real_time_payments_transfer_acknowledgement` object.
231
+ * - `sample_funds` - Sample Funds: details will be under the `sample_funds`
194
232
  * object.
195
- * - `check_deposit_return` - The Transaction was created by a Check Deposit Return
196
- * object. Details will be under the `check_deposit_return` object.
197
- * - `check_transfer_deposit` - The Transaction was created by a Check Transfer
198
- * Deposit object. Details will be under the `check_transfer_deposit` object.
199
- * - `check_transfer_intention` - The Transaction was created by a Check Transfer
200
- * Intention object. Details will be under the `check_transfer_intention` object.
201
- * - `check_transfer_stop_payment_request` - The Transaction was created by a Check
202
- * Transfer Stop Payment Request object. Details will be under the
203
- * `check_transfer_stop_payment_request` object.
204
- * - `fee_payment` - The Transaction was created by a Fee Payment object. Details
205
- * will be under the `fee_payment` object.
206
- * - `inbound_ach_transfer` - The Transaction was created by a Inbound ACH Transfer
207
- * object. Details will be under the `inbound_ach_transfer` object.
208
- * - `inbound_ach_transfer_return_intention` - The Transaction was created by a
209
- * Inbound ACH Transfer Return Intention object. Details will be under the
210
- * `inbound_ach_transfer_return_intention` object.
211
- * - `inbound_check` - The Transaction was created by a Inbound Check object.
212
- * Details will be under the `inbound_check` object.
213
- * - `inbound_international_ach_transfer` - The Transaction was created by a
214
- * Inbound International ACH Transfer object. Details will be under the
215
- * `inbound_international_ach_transfer` object.
216
- * - `inbound_real_time_payments_transfer_confirmation` - The Transaction was
217
- * created by a Inbound Real Time Payments Transfer Confirmation object. Details
218
- * will be under the `inbound_real_time_payments_transfer_confirmation` object.
219
- * - `inbound_wire_drawdown_payment` - The Transaction was created by a Inbound
220
- * Wire Drawdown Payment object. Details will be under the
221
- * `inbound_wire_drawdown_payment` object.
222
- * - `inbound_wire_drawdown_payment_reversal` - The Transaction was created by a
223
- * Inbound Wire Drawdown Payment Reversal object. Details will be under the
224
- * `inbound_wire_drawdown_payment_reversal` object.
225
- * - `inbound_wire_reversal` - The Transaction was created by a Inbound Wire
226
- * Reversal object. Details will be under the `inbound_wire_reversal` object.
227
- * - `inbound_wire_transfer` - The Transaction was created by a Inbound Wire
228
- * Transfer object. Details will be under the `inbound_wire_transfer` object.
229
- * - `interest_payment` - The Transaction was created by a Interest Payment object.
230
- * Details will be under the `interest_payment` object.
231
- * - `internal_source` - The Transaction was created by a Internal Source object.
232
- * Details will be under the `internal_source` object.
233
- * - `real_time_payments_transfer_acknowledgement` - The Transaction was created by
234
- * a Real Time Payments Transfer Acknowledgement object. Details will be under
235
- * the `real_time_payments_transfer_acknowledgement` object.
236
- * - `sample_funds` - The Transaction was created by a Sample Funds object. Details
237
- * will be under the `sample_funds` object.
238
- * - `wire_transfer_intention` - The Transaction was created by a Wire Transfer
239
- * Intention object. Details will be under the `wire_transfer_intention` object.
240
- * - `wire_transfer_rejection` - The Transaction was created by a Wire Transfer
241
- * Rejection object. Details will be under the `wire_transfer_rejection` object.
233
+ * - `wire_transfer_intention` - Wire Transfer Intention: details will be under the
234
+ * `wire_transfer_intention` object.
235
+ * - `wire_transfer_rejection` - Wire Transfer Rejection: details will be under the
236
+ * `wire_transfer_rejection` object.
242
237
  * - `other` - The Transaction was made for an undocumented or deprecated reason.
243
238
  */
244
239
  category:
@@ -311,65 +306,65 @@ export namespace Transaction {
311
306
  fee_payment: Source.FeePayment | null;
312
307
 
313
308
  /**
314
- * A Inbound ACH Transfer object. This field will be present in the JSON response
315
- * if and only if `category` is equal to `inbound_ach_transfer`.
309
+ * An Inbound ACH Transfer Intention object. This field will be present in the JSON
310
+ * response if and only if `category` is equal to `inbound_ach_transfer`.
316
311
  */
317
312
  inbound_ach_transfer: Source.InboundACHTransfer | null;
318
313
 
319
314
  /**
320
- * A Inbound Check object. This field will be present in the JSON response if and
315
+ * An Inbound Check object. This field will be present in the JSON response if and
321
316
  * only if `category` is equal to `inbound_check`.
322
317
  */
323
318
  inbound_check: Source.InboundCheck | null;
324
319
 
325
320
  /**
326
- * A Inbound International ACH Transfer object. This field will be present in the
321
+ * An Inbound International ACH Transfer object. This field will be present in the
327
322
  * JSON response if and only if `category` is equal to
328
323
  * `inbound_international_ach_transfer`.
329
324
  */
330
325
  inbound_international_ach_transfer: Source.InboundInternationalACHTransfer | null;
331
326
 
332
327
  /**
333
- * A Inbound Real Time Payments Transfer Confirmation object. This field will be
328
+ * An Inbound Real Time Payments Transfer Confirmation object. This field will be
334
329
  * present in the JSON response if and only if `category` is equal to
335
330
  * `inbound_real_time_payments_transfer_confirmation`.
336
331
  */
337
332
  inbound_real_time_payments_transfer_confirmation: Source.InboundRealTimePaymentsTransferConfirmation | null;
338
333
 
339
334
  /**
340
- * A Inbound Wire Drawdown Payment object. This field will be present in the JSON
335
+ * An Inbound Wire Drawdown Payment object. This field will be present in the JSON
341
336
  * response if and only if `category` is equal to `inbound_wire_drawdown_payment`.
342
337
  */
343
338
  inbound_wire_drawdown_payment: Source.InboundWireDrawdownPayment | null;
344
339
 
345
340
  /**
346
- * A Inbound Wire Drawdown Payment Reversal object. This field will be present in
341
+ * An Inbound Wire Drawdown Payment Reversal object. This field will be present in
347
342
  * the JSON response if and only if `category` is equal to
348
343
  * `inbound_wire_drawdown_payment_reversal`.
349
344
  */
350
345
  inbound_wire_drawdown_payment_reversal: Source.InboundWireDrawdownPaymentReversal | null;
351
346
 
352
347
  /**
353
- * A Inbound Wire Reversal object. This field will be present in the JSON response
348
+ * An Inbound Wire Reversal object. This field will be present in the JSON response
354
349
  * if and only if `category` is equal to `inbound_wire_reversal`.
355
350
  */
356
351
  inbound_wire_reversal: Source.InboundWireReversal | null;
357
352
 
358
353
  /**
359
- * A Inbound Wire Transfer object. This field will be present in the JSON response
354
+ * An Inbound Wire Transfer object. This field will be present in the JSON response
360
355
  * if and only if `category` is equal to `inbound_wire_transfer`.
361
356
  */
362
357
  inbound_wire_transfer: Source.InboundWireTransfer | null;
363
358
 
364
359
  /**
365
- * A Interest Payment object. This field will be present in the JSON response if
360
+ * An Interest Payment object. This field will be present in the JSON response if
366
361
  * and only if `category` is equal to `interest_payment`.
367
362
  */
368
363
  interest_payment: Source.InterestPayment | null;
369
364
 
370
365
  /**
371
- * A Internal Source object. This field will be present in the JSON response if and
372
- * only if `category` is equal to `internal_source`.
366
+ * An Internal Source object. This field will be present in the JSON response if
367
+ * and only if `category` is equal to `internal_source`.
373
368
  */
374
369
  internal_source: Source.InternalSource | null;
375
370
 
@@ -401,7 +396,7 @@ export namespace Transaction {
401
396
 
402
397
  export namespace Source {
403
398
  /**
404
- * A Account Transfer Intention object. This field will be present in the JSON
399
+ * An Account Transfer Intention object. This field will be present in the JSON
405
400
  * response if and only if `category` is equal to `account_transfer_intention`.
406
401
  */
407
402
  export interface AccountTransferIntention {
@@ -446,8 +441,8 @@ export namespace Transaction {
446
441
  }
447
442
 
448
443
  /**
449
- * A ACH Transfer Intention object. This field will be present in the JSON response
450
- * if and only if `category` is equal to `ach_transfer_intention`.
444
+ * An ACH Transfer Intention object. This field will be present in the JSON
445
+ * response if and only if `category` is equal to `ach_transfer_intention`.
451
446
  */
452
447
  export interface ACHTransferIntention {
453
448
  account_number: string;
@@ -469,8 +464,8 @@ export namespace Transaction {
469
464
  }
470
465
 
471
466
  /**
472
- * A ACH Transfer Rejection object. This field will be present in the JSON response
473
- * if and only if `category` is equal to `ach_transfer_rejection`.
467
+ * An ACH Transfer Rejection object. This field will be present in the JSON
468
+ * response if and only if `category` is equal to `ach_transfer_rejection`.
474
469
  */
475
470
  export interface ACHTransferRejection {
476
471
  /**
@@ -480,8 +475,8 @@ export namespace Transaction {
480
475
  }
481
476
 
482
477
  /**
483
- * A ACH Transfer Return object. This field will be present in the JSON response if
484
- * and only if `category` is equal to `ach_transfer_return`.
478
+ * An ACH Transfer Return object. This field will be present in the JSON response
479
+ * if and only if `category` is equal to `ach_transfer_return`.
485
480
  */
486
481
  export interface ACHTransferReturn {
487
482
  /**
@@ -2304,8 +2299,8 @@ export namespace Transaction {
2304
2299
  }
2305
2300
 
2306
2301
  /**
2307
- * A Inbound ACH Transfer object. This field will be present in the JSON response
2308
- * if and only if `category` is equal to `inbound_ach_transfer`.
2302
+ * An Inbound ACH Transfer Intention object. This field will be present in the JSON
2303
+ * response if and only if `category` is equal to `inbound_ach_transfer`.
2309
2304
  */
2310
2305
  export interface InboundACHTransfer {
2311
2306
  /**
@@ -2332,7 +2327,7 @@ export namespace Transaction {
2332
2327
  }
2333
2328
 
2334
2329
  /**
2335
- * A Inbound Check object. This field will be present in the JSON response if and
2330
+ * An Inbound Check object. This field will be present in the JSON response if and
2336
2331
  * only if `category` is equal to `inbound_check`.
2337
2332
  */
2338
2333
  export interface InboundCheck {
@@ -2363,7 +2358,7 @@ export namespace Transaction {
2363
2358
  }
2364
2359
 
2365
2360
  /**
2366
- * A Inbound International ACH Transfer object. This field will be present in the
2361
+ * An Inbound International ACH Transfer object. This field will be present in the
2367
2362
  * JSON response if and only if `category` is equal to
2368
2363
  * `inbound_international_ach_transfer`.
2369
2364
  */
@@ -2446,7 +2441,7 @@ export namespace Transaction {
2446
2441
  }
2447
2442
 
2448
2443
  /**
2449
- * A Inbound Real Time Payments Transfer Confirmation object. This field will be
2444
+ * An Inbound Real Time Payments Transfer Confirmation object. This field will be
2450
2445
  * present in the JSON response if and only if `category` is equal to
2451
2446
  * `inbound_real_time_payments_transfer_confirmation`.
2452
2447
  */
@@ -2502,7 +2497,7 @@ export namespace Transaction {
2502
2497
  }
2503
2498
 
2504
2499
  /**
2505
- * A Inbound Wire Drawdown Payment object. This field will be present in the JSON
2500
+ * An Inbound Wire Drawdown Payment object. This field will be present in the JSON
2506
2501
  * response if and only if `category` is equal to `inbound_wire_drawdown_payment`.
2507
2502
  */
2508
2503
  export interface InboundWireDrawdownPayment {
@@ -2538,7 +2533,7 @@ export namespace Transaction {
2538
2533
  }
2539
2534
 
2540
2535
  /**
2541
- * A Inbound Wire Drawdown Payment Reversal object. This field will be present in
2536
+ * An Inbound Wire Drawdown Payment Reversal object. This field will be present in
2542
2537
  * the JSON response if and only if `category` is equal to
2543
2538
  * `inbound_wire_drawdown_payment_reversal`.
2544
2539
  */
@@ -2595,7 +2590,7 @@ export namespace Transaction {
2595
2590
  }
2596
2591
 
2597
2592
  /**
2598
- * A Inbound Wire Reversal object. This field will be present in the JSON response
2593
+ * An Inbound Wire Reversal object. This field will be present in the JSON response
2599
2594
  * if and only if `category` is equal to `inbound_wire_reversal`.
2600
2595
  */
2601
2596
  export interface InboundWireReversal {
@@ -2678,7 +2673,7 @@ export namespace Transaction {
2678
2673
  }
2679
2674
 
2680
2675
  /**
2681
- * A Inbound Wire Transfer object. This field will be present in the JSON response
2676
+ * An Inbound Wire Transfer object. This field will be present in the JSON response
2682
2677
  * if and only if `category` is equal to `inbound_wire_transfer`.
2683
2678
  */
2684
2679
  export interface InboundWireTransfer {
@@ -2722,7 +2717,7 @@ export namespace Transaction {
2722
2717
  }
2723
2718
 
2724
2719
  /**
2725
- * A Interest Payment object. This field will be present in the JSON response if
2720
+ * An Interest Payment object. This field will be present in the JSON response if
2726
2721
  * and only if `category` is equal to `interest_payment`.
2727
2722
  */
2728
2723
  export interface InterestPayment {
@@ -2762,8 +2757,8 @@ export namespace Transaction {
2762
2757
  }
2763
2758
 
2764
2759
  /**
2765
- * A Internal Source object. This field will be present in the JSON response if and
2766
- * only if `category` is equal to `internal_source`.
2760
+ * An Internal Source object. This field will be present in the JSON response if
2761
+ * and only if `category` is equal to `internal_source`.
2767
2762
  */
2768
2763
  export interface InternalSource {
2769
2764
  /**
@@ -13,7 +13,7 @@ export class WireDrawdownRequests extends APIResource {
13
13
  create(
14
14
  body: WireDrawdownRequestCreateParams,
15
15
  options?: Core.RequestOptions,
16
- ): Promise<Core.APIResponse<WireDrawdownRequest>> {
16
+ ): Core.APIPromise<WireDrawdownRequest> {
17
17
  return this.post('/wire_drawdown_requests', { body, ...options });
18
18
  }
19
19
 
@@ -23,7 +23,7 @@ export class WireDrawdownRequests extends APIResource {
23
23
  retrieve(
24
24
  wireDrawdownRequestId: string,
25
25
  options?: Core.RequestOptions,
26
- ): Promise<Core.APIResponse<WireDrawdownRequest>> {
26
+ ): Core.APIPromise<WireDrawdownRequest> {
27
27
  return this.get(`/wire_drawdown_requests/${wireDrawdownRequestId}`, options);
28
28
  }
29
29
 
@@ -33,12 +33,12 @@ export class WireDrawdownRequests extends APIResource {
33
33
  list(
34
34
  query?: WireDrawdownRequestListParams,
35
35
  options?: Core.RequestOptions,
36
- ): Core.PagePromise<WireDrawdownRequestsPage>;
37
- list(options?: Core.RequestOptions): Core.PagePromise<WireDrawdownRequestsPage>;
36
+ ): Core.PagePromise<WireDrawdownRequestsPage, WireDrawdownRequest>;
37
+ list(options?: Core.RequestOptions): Core.PagePromise<WireDrawdownRequestsPage, WireDrawdownRequest>;
38
38
  list(
39
39
  query: WireDrawdownRequestListParams | Core.RequestOptions = {},
40
40
  options?: Core.RequestOptions,
41
- ): Core.PagePromise<WireDrawdownRequestsPage> {
41
+ ): Core.PagePromise<WireDrawdownRequestsPage, WireDrawdownRequest> {
42
42
  if (isRequestOptions(query)) {
43
43
  return this.list({}, query);
44
44
  }
@@ -10,29 +10,29 @@ export class WireTransfers extends APIResource {
10
10
  /**
11
11
  * Create a Wire Transfer
12
12
  */
13
- create(
14
- body: WireTransferCreateParams,
15
- options?: Core.RequestOptions,
16
- ): Promise<Core.APIResponse<WireTransfer>> {
13
+ create(body: WireTransferCreateParams, options?: Core.RequestOptions): Core.APIPromise<WireTransfer> {
17
14
  return this.post('/wire_transfers', { body, ...options });
18
15
  }
19
16
 
20
17
  /**
21
18
  * Retrieve a Wire Transfer
22
19
  */
23
- retrieve(wireTransferId: string, options?: Core.RequestOptions): Promise<Core.APIResponse<WireTransfer>> {
20
+ retrieve(wireTransferId: string, options?: Core.RequestOptions): Core.APIPromise<WireTransfer> {
24
21
  return this.get(`/wire_transfers/${wireTransferId}`, options);
25
22
  }
26
23
 
27
24
  /**
28
25
  * List Wire Transfers
29
26
  */
30
- list(query?: WireTransferListParams, options?: Core.RequestOptions): Core.PagePromise<WireTransfersPage>;
31
- list(options?: Core.RequestOptions): Core.PagePromise<WireTransfersPage>;
27
+ list(
28
+ query?: WireTransferListParams,
29
+ options?: Core.RequestOptions,
30
+ ): Core.PagePromise<WireTransfersPage, WireTransfer>;
31
+ list(options?: Core.RequestOptions): Core.PagePromise<WireTransfersPage, WireTransfer>;
32
32
  list(
33
33
  query: WireTransferListParams | Core.RequestOptions = {},
34
34
  options?: Core.RequestOptions,
35
- ): Core.PagePromise<WireTransfersPage> {
35
+ ): Core.PagePromise<WireTransfersPage, WireTransfer> {
36
36
  if (isRequestOptions(query)) {
37
37
  return this.list({}, query);
38
38
  }
@@ -42,14 +42,14 @@ export class WireTransfers extends APIResource {
42
42
  /**
43
43
  * Approve a Wire Transfer
44
44
  */
45
- approve(wireTransferId: string, options?: Core.RequestOptions): Promise<Core.APIResponse<WireTransfer>> {
45
+ approve(wireTransferId: string, options?: Core.RequestOptions): Core.APIPromise<WireTransfer> {
46
46
  return this.post(`/wire_transfers/${wireTransferId}/approve`, options);
47
47
  }
48
48
 
49
49
  /**
50
50
  * Cancel a pending Wire Transfer
51
51
  */
52
- cancel(wireTransferId: string, options?: Core.RequestOptions): Promise<Core.APIResponse<WireTransfer>> {
52
+ cancel(wireTransferId: string, options?: Core.RequestOptions): Core.APIPromise<WireTransfer> {
53
53
  return this.post(`/wire_transfers/${wireTransferId}/cancel`, options);
54
54
  }
55
55
 
@@ -59,7 +59,7 @@ export class WireTransfers extends APIResource {
59
59
  * [Transaction](#transaction) to account for the returned funds. This Wire
60
60
  * Transfer must first have a `status` of `complete`.'
61
61
  */
62
- reverse(wireTransferId: string, options?: Core.RequestOptions): Promise<Core.APIResponse<WireTransfer>> {
62
+ reverse(wireTransferId: string, options?: Core.RequestOptions): Core.APIPromise<WireTransfer> {
63
63
  return this.post(`/simulations/wire_transfers/${wireTransferId}/reverse`, options);
64
64
  }
65
65
 
@@ -68,7 +68,7 @@ export class WireTransfers extends APIResource {
68
68
  * Reserve. This transfer must first have a `status` of `pending_approval` or
69
69
  * `pending_creating`.
70
70
  */
71
- submit(wireTransferId: string, options?: Core.RequestOptions): Promise<Core.APIResponse<WireTransfer>> {
71
+ submit(wireTransferId: string, options?: Core.RequestOptions): Core.APIPromise<WireTransfer> {
72
72
  return this.post(`/simulations/wire_transfers/${wireTransferId}/submit`, options);
73
73
  }
74
74
  }
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.8.1'; // x-release-please-version
1
+ export const VERSION = '0.9.0'; // x-release-please-version
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = '0.8.1';
1
+ export declare const VERSION = '0.9.0';
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  'use strict';
2
2
  Object.defineProperty(exports, '__esModule', { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.8.1'; // x-release-please-version
4
+ exports.VERSION = '0.9.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.8.1'; // x-release-please-version
1
+ export const VERSION = '0.9.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map