increase 0.11.0 → 0.11.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (517) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/README.md +8 -4
  3. package/_shims/MultipartBody.d.ts +9 -0
  4. package/_shims/MultipartBody.d.ts.map +1 -0
  5. package/_shims/MultipartBody.js +16 -0
  6. package/_shims/MultipartBody.js.map +1 -0
  7. package/_shims/MultipartBody.mjs +12 -0
  8. package/_shims/MultipartBody.mjs.map +1 -0
  9. package/_shims/README.md +46 -0
  10. package/{src/_shims/ReadableStream-node.ts → _shims/auto/runtime-bun.d.ts} +2 -3
  11. package/_shims/auto/runtime-bun.d.ts.map +1 -0
  12. package/_shims/auto/runtime-bun.js +21 -0
  13. package/_shims/auto/runtime-bun.js.map +1 -0
  14. package/_shims/auto/runtime-bun.mjs +2 -0
  15. package/_shims/auto/runtime-bun.mjs.map +1 -0
  16. package/_shims/auto/runtime-node.d.ts +5 -0
  17. package/_shims/auto/runtime-node.d.ts.map +1 -0
  18. package/_shims/auto/runtime-node.js +21 -0
  19. package/_shims/auto/runtime-node.js.map +1 -0
  20. package/_shims/auto/runtime-node.mjs +2 -0
  21. package/_shims/auto/runtime-node.mjs.map +1 -0
  22. package/_shims/auto/runtime.d.ts +5 -0
  23. package/_shims/auto/runtime.d.ts.map +1 -0
  24. package/_shims/auto/runtime.js +21 -0
  25. package/_shims/auto/runtime.js.map +1 -0
  26. package/_shims/auto/runtime.mjs +2 -0
  27. package/_shims/auto/runtime.mjs.map +1 -0
  28. package/_shims/auto/types-node.d.ts +5 -0
  29. package/_shims/auto/types-node.d.ts.map +1 -0
  30. package/_shims/auto/types-node.js +21 -0
  31. package/_shims/auto/types-node.js.map +1 -0
  32. package/_shims/auto/types-node.mjs +2 -0
  33. package/_shims/auto/types-node.mjs.map +1 -0
  34. package/_shims/auto/types.d.ts +99 -0
  35. package/_shims/{ReadableStream.js → auto/types.js} +0 -2
  36. package/{src/_shims/ReadableStream.js → _shims/auto/types.mjs} +0 -2
  37. package/_shims/bun-runtime.d.ts +6 -0
  38. package/_shims/bun-runtime.d.ts.map +1 -0
  39. package/_shims/bun-runtime.js +14 -0
  40. package/_shims/bun-runtime.js.map +1 -0
  41. package/_shims/bun-runtime.mjs +10 -0
  42. package/_shims/bun-runtime.mjs.map +1 -0
  43. package/_shims/index.d.ts +79 -0
  44. package/_shims/index.js +13 -0
  45. package/_shims/index.mjs +7 -0
  46. package/_shims/manual-types.d.ts +12 -0
  47. package/_shims/manual-types.js +3 -0
  48. package/_shims/manual-types.mjs +3 -0
  49. package/_shims/node-runtime.d.ts +3 -0
  50. package/_shims/node-runtime.d.ts.map +1 -0
  51. package/_shims/node-runtime.js +87 -0
  52. package/_shims/node-runtime.js.map +1 -0
  53. package/_shims/node-runtime.mjs +54 -0
  54. package/_shims/node-runtime.mjs.map +1 -0
  55. package/_shims/node-types.d.ts +42 -0
  56. package/_shims/node-types.js +3 -0
  57. package/_shims/node-types.mjs +3 -0
  58. package/_shims/registry.d.ts +35 -0
  59. package/_shims/registry.d.ts.map +1 -0
  60. package/_shims/registry.js +39 -0
  61. package/_shims/registry.js.map +1 -0
  62. package/_shims/registry.mjs +35 -0
  63. package/_shims/registry.mjs.map +1 -0
  64. package/_shims/web-runtime.d.ts +5 -0
  65. package/_shims/web-runtime.d.ts.map +1 -0
  66. package/_shims/web-runtime.js +70 -0
  67. package/_shims/web-runtime.js.map +1 -0
  68. package/_shims/web-runtime.mjs +63 -0
  69. package/_shims/web-runtime.mjs.map +1 -0
  70. package/_shims/web-types.d.ts +82 -0
  71. package/_shims/web-types.js +3 -0
  72. package/_shims/web-types.mjs +3 -0
  73. package/core.d.ts +170 -218
  74. package/core.d.ts.map +1 -1
  75. package/core.js +673 -729
  76. package/core.js.map +1 -1
  77. package/core.mjs +667 -680
  78. package/core.mjs.map +1 -1
  79. package/error.d.ts +104 -177
  80. package/error.js +247 -280
  81. package/error.js.map +1 -1
  82. package/error.mjs +244 -252
  83. package/error.mjs.map +1 -1
  84. package/index.d.mts +332 -356
  85. package/index.d.ts +332 -356
  86. package/index.d.ts.map +1 -1
  87. package/index.js +193 -264
  88. package/index.mjs +170 -198
  89. package/package.json +31 -23
  90. package/pagination.d.ts +25 -25
  91. package/pagination.js +29 -25
  92. package/pagination.mjs +27 -23
  93. package/resource.d.ts +10 -10
  94. package/resource.js +12 -12
  95. package/resource.mjs +10 -10
  96. package/resources/account-numbers.d.ts +162 -168
  97. package/resources/account-numbers.js +33 -31
  98. package/resources/account-numbers.mjs +28 -26
  99. package/resources/account-statements.d.ts +79 -81
  100. package/resources/account-statements.js +21 -21
  101. package/resources/account-statements.mjs +16 -14
  102. package/resources/account-transfers.d.ts +192 -194
  103. package/resources/account-transfers.js +39 -39
  104. package/resources/account-transfers.mjs +34 -32
  105. package/resources/accounts.d.ts +148 -151
  106. package/resources/accounts.js +39 -37
  107. package/resources/accounts.mjs +34 -32
  108. package/resources/ach-prenotifications.d.ts +370 -438
  109. package/resources/ach-prenotifications.d.ts.map +1 -1
  110. package/resources/ach-prenotifications.js +27 -27
  111. package/resources/ach-prenotifications.js.map +1 -1
  112. package/resources/ach-prenotifications.mjs +22 -20
  113. package/resources/ach-prenotifications.mjs.map +1 -1
  114. package/resources/ach-transfers.d.ts +604 -679
  115. package/resources/ach-transfers.d.ts.map +1 -1
  116. package/resources/ach-transfers.js +39 -37
  117. package/resources/ach-transfers.js.map +1 -1
  118. package/resources/ach-transfers.mjs +34 -32
  119. package/resources/ach-transfers.mjs.map +1 -1
  120. package/resources/balance-lookups.d.ts +35 -38
  121. package/resources/balance-lookups.js +12 -11
  122. package/resources/balance-lookups.mjs +9 -8
  123. package/resources/bookkeeping-accounts.d.ts +66 -70
  124. package/resources/bookkeeping-accounts.js +21 -21
  125. package/resources/bookkeeping-accounts.mjs +16 -14
  126. package/resources/bookkeeping-entries.d.ts +36 -37
  127. package/resources/bookkeeping-entries.js +15 -15
  128. package/resources/bookkeeping-entries.mjs +10 -8
  129. package/resources/bookkeeping-entry-sets.d.ts +61 -64
  130. package/resources/bookkeeping-entry-sets.js +12 -13
  131. package/resources/bookkeeping-entry-sets.mjs +9 -8
  132. package/resources/card-disputes.d.ts +127 -129
  133. package/resources/card-disputes.js +27 -25
  134. package/resources/card-disputes.mjs +22 -20
  135. package/resources/card-profiles.d.ts +235 -245
  136. package/resources/card-profiles.js +33 -31
  137. package/resources/card-profiles.mjs +28 -26
  138. package/resources/card-purchase-supplements.d.ts +219 -238
  139. package/resources/card-purchase-supplements.js +21 -21
  140. package/resources/card-purchase-supplements.mjs +16 -14
  141. package/resources/cards.d.ts +288 -279
  142. package/resources/cards.d.ts.map +1 -1
  143. package/resources/cards.js +39 -37
  144. package/resources/cards.js.map +1 -1
  145. package/resources/cards.mjs +34 -32
  146. package/resources/cards.mjs.map +1 -1
  147. package/resources/check-deposits.d.ts +238 -260
  148. package/resources/check-deposits.js +27 -25
  149. package/resources/check-deposits.mjs +22 -20
  150. package/resources/check-transfers.d.ts +487 -503
  151. package/resources/check-transfers.js +45 -43
  152. package/resources/check-transfers.mjs +40 -38
  153. package/resources/declined-transactions.d.ts +806 -918
  154. package/resources/declined-transactions.d.ts.map +1 -1
  155. package/resources/declined-transactions.js +21 -21
  156. package/resources/declined-transactions.js.map +1 -1
  157. package/resources/declined-transactions.mjs +16 -14
  158. package/resources/declined-transactions.mjs.map +1 -1
  159. package/resources/digital-wallet-tokens.d.ts +75 -77
  160. package/resources/digital-wallet-tokens.js +21 -21
  161. package/resources/digital-wallet-tokens.mjs +16 -14
  162. package/resources/documents.d.ts +78 -77
  163. package/resources/documents.js +21 -19
  164. package/resources/documents.mjs +16 -14
  165. package/resources/entities/beneficial-owners.d.ts +233 -244
  166. package/resources/entities/beneficial-owners.js +24 -25
  167. package/resources/entities/beneficial-owners.mjs +21 -20
  168. package/resources/entities/entities.d.ts +1532 -1585
  169. package/resources/entities/entities.d.ts.map +1 -1
  170. package/resources/entities/entities.js +67 -83
  171. package/resources/entities/entities.mjs +43 -42
  172. package/resources/entities/index.d.ts +4 -22
  173. package/resources/entities/index.js +12 -42
  174. package/resources/entities/index.mjs +4 -4
  175. package/resources/entities/supplemental-documents.d.ts +38 -44
  176. package/resources/entities/supplemental-documents.js +24 -24
  177. package/resources/entities/supplemental-documents.mjs +20 -18
  178. package/resources/event-subscriptions.d.ts +242 -355
  179. package/resources/event-subscriptions.js +33 -33
  180. package/resources/event-subscriptions.mjs +28 -26
  181. package/resources/events.d.ts +150 -254
  182. package/resources/events.js +21 -19
  183. package/resources/events.mjs +16 -14
  184. package/resources/exports.d.ts +210 -158
  185. package/resources/exports.d.ts.map +1 -1
  186. package/resources/exports.js +27 -25
  187. package/resources/exports.js.map +1 -1
  188. package/resources/exports.mjs +22 -20
  189. package/resources/exports.mjs.map +1 -1
  190. package/resources/external-accounts.d.ts +122 -128
  191. package/resources/external-accounts.js +33 -33
  192. package/resources/external-accounts.mjs +28 -26
  193. package/resources/files.d.ts +149 -196
  194. package/resources/files.js +30 -28
  195. package/resources/files.mjs +24 -22
  196. package/resources/groups.d.ts +35 -35
  197. package/resources/groups.js +12 -11
  198. package/resources/groups.mjs +9 -8
  199. package/resources/inbound-ach-transfers.d.ts +265 -305
  200. package/resources/inbound-ach-transfers.js +42 -42
  201. package/resources/inbound-ach-transfers.mjs +37 -35
  202. package/resources/inbound-wire-drawdown-requests.d.ts +113 -119
  203. package/resources/inbound-wire-drawdown-requests.js +24 -25
  204. package/resources/inbound-wire-drawdown-requests.mjs +19 -19
  205. package/resources/index.d.ts +39 -205
  206. package/resources/index.js +114 -540
  207. package/resources/index.mjs +39 -42
  208. package/resources/oauth-connections.d.ts +43 -44
  209. package/resources/oauth-connections.js +21 -21
  210. package/resources/oauth-connections.mjs +16 -14
  211. package/resources/pending-transactions.d.ts +560 -597
  212. package/resources/pending-transactions.d.ts.map +1 -1
  213. package/resources/pending-transactions.js +21 -21
  214. package/resources/pending-transactions.js.map +1 -1
  215. package/resources/pending-transactions.mjs +16 -14
  216. package/resources/pending-transactions.mjs.map +1 -1
  217. package/resources/programs.d.ts +41 -39
  218. package/resources/programs.js +21 -19
  219. package/resources/programs.mjs +16 -14
  220. package/resources/real-time-decisions.d.ts +384 -411
  221. package/resources/real-time-decisions.js +18 -19
  222. package/resources/real-time-decisions.mjs +15 -14
  223. package/resources/real-time-payments-transfers.d.ts +304 -342
  224. package/resources/real-time-payments-transfers.js +30 -30
  225. package/resources/real-time-payments-transfers.mjs +25 -23
  226. package/resources/routing-numbers.d.ts +52 -54
  227. package/resources/routing-numbers.js +18 -16
  228. package/resources/routing-numbers.mjs +14 -12
  229. package/resources/simulations/account-statements.d.ts +12 -15
  230. package/resources/simulations/account-statements.js +13 -14
  231. package/resources/simulations/account-statements.mjs +10 -9
  232. package/resources/simulations/account-transfers.d.ts +8 -11
  233. package/resources/simulations/account-transfers.js +13 -13
  234. package/resources/simulations/account-transfers.mjs +10 -10
  235. package/resources/simulations/ach-transfers.d.ts +3612 -3835
  236. package/resources/simulations/ach-transfers.d.ts.map +1 -1
  237. package/resources/simulations/ach-transfers.js +40 -35
  238. package/resources/simulations/ach-transfers.js.map +1 -1
  239. package/resources/simulations/ach-transfers.mjs +37 -32
  240. package/resources/simulations/ach-transfers.mjs.map +1 -1
  241. package/resources/simulations/card-disputes.d.ts +22 -26
  242. package/resources/simulations/card-disputes.js +15 -14
  243. package/resources/simulations/card-disputes.mjs +12 -11
  244. package/resources/simulations/card-profiles.d.ts +9 -9
  245. package/resources/simulations/card-profiles.js +14 -14
  246. package/resources/simulations/card-profiles.mjs +11 -11
  247. package/resources/simulations/card-refunds.d.ts +13 -16
  248. package/resources/simulations/card-refunds.js +13 -12
  249. package/resources/simulations/card-refunds.mjs +10 -9
  250. package/resources/simulations/cards.d.ts +1307 -1437
  251. package/resources/simulations/cards.d.ts.map +1 -1
  252. package/resources/simulations/cards.js +28 -27
  253. package/resources/simulations/cards.js.map +1 -1
  254. package/resources/simulations/cards.mjs +25 -24
  255. package/resources/simulations/cards.mjs.map +1 -1
  256. package/resources/simulations/check-deposits.d.ts +17 -17
  257. package/resources/simulations/check-deposits.js +26 -26
  258. package/resources/simulations/check-deposits.mjs +23 -23
  259. package/resources/simulations/check-transfers.d.ts +12 -18
  260. package/resources/simulations/check-transfers.js +19 -19
  261. package/resources/simulations/check-transfers.mjs +16 -16
  262. package/resources/simulations/digital-wallet-token-requests.d.ts +35 -43
  263. package/resources/simulations/digital-wallet-token-requests.js +13 -15
  264. package/resources/simulations/digital-wallet-token-requests.mjs +10 -9
  265. package/resources/simulations/documents.d.ts +11 -11
  266. package/resources/simulations/documents.js +12 -11
  267. package/resources/simulations/documents.mjs +9 -8
  268. package/resources/simulations/inbound-funds-holds.d.ts +63 -66
  269. package/resources/simulations/inbound-funds-holds.js +13 -14
  270. package/resources/simulations/inbound-funds-holds.mjs +10 -9
  271. package/resources/simulations/inbound-wire-drawdown-requests.d.ts +94 -97
  272. package/resources/simulations/inbound-wire-drawdown-requests.js +13 -15
  273. package/resources/simulations/inbound-wire-drawdown-requests.mjs +10 -11
  274. package/resources/simulations/index.d.ts +19 -40
  275. package/resources/simulations/index.js +40 -148
  276. package/resources/simulations/index.mjs +19 -19
  277. package/resources/simulations/interest-payments.d.ts +2482 -2743
  278. package/resources/simulations/interest-payments.d.ts.map +1 -1
  279. package/resources/simulations/interest-payments.js +13 -14
  280. package/resources/simulations/interest-payments.js.map +1 -1
  281. package/resources/simulations/interest-payments.mjs +10 -9
  282. package/resources/simulations/interest-payments.mjs.map +1 -1
  283. package/resources/simulations/programs.d.ts +13 -13
  284. package/resources/simulations/programs.js +14 -13
  285. package/resources/simulations/programs.mjs +11 -10
  286. package/resources/simulations/real-time-payments-transfers.d.ts +3342 -3727
  287. package/resources/simulations/real-time-payments-transfers.d.ts.map +1 -1
  288. package/resources/simulations/real-time-payments-transfers.js +24 -25
  289. package/resources/simulations/real-time-payments-transfers.js.map +1 -1
  290. package/resources/simulations/real-time-payments-transfers.mjs +21 -20
  291. package/resources/simulations/real-time-payments-transfers.mjs.map +1 -1
  292. package/resources/simulations/simulations.d.ts +75 -75
  293. package/resources/simulations/simulations.js +78 -101
  294. package/resources/simulations/simulations.mjs +56 -56
  295. package/resources/simulations/wire-transfers.d.ts +2540 -2801
  296. package/resources/simulations/wire-transfers.d.ts.map +1 -1
  297. package/resources/simulations/wire-transfers.js +12 -11
  298. package/resources/simulations/wire-transfers.js.map +1 -1
  299. package/resources/simulations/wire-transfers.mjs +9 -8
  300. package/resources/simulations/wire-transfers.mjs.map +1 -1
  301. package/resources/transactions.d.ts +2539 -2830
  302. package/resources/transactions.d.ts.map +1 -1
  303. package/resources/transactions.js +21 -19
  304. package/resources/transactions.js.map +1 -1
  305. package/resources/transactions.mjs +16 -14
  306. package/resources/transactions.mjs.map +1 -1
  307. package/resources/wire-drawdown-requests.d.ts +140 -147
  308. package/resources/wire-drawdown-requests.js +27 -27
  309. package/resources/wire-drawdown-requests.mjs +22 -20
  310. package/resources/wire-transfers.d.ts +315 -324
  311. package/resources/wire-transfers.js +56 -54
  312. package/resources/wire-transfers.mjs +51 -49
  313. package/shims/node.d.ts +29 -0
  314. package/shims/node.d.ts.map +1 -0
  315. package/shims/node.js +31 -0
  316. package/shims/node.js.map +1 -0
  317. package/shims/node.mjs +5 -0
  318. package/shims/node.mjs.map +1 -0
  319. package/shims/web.d.ts +26 -0
  320. package/shims/web.d.ts.map +1 -0
  321. package/shims/web.js +31 -0
  322. package/shims/web.js.map +1 -0
  323. package/shims/web.mjs +5 -0
  324. package/shims/web.mjs.map +1 -0
  325. package/src/_shims/MultipartBody.ts +9 -0
  326. package/src/_shims/README.md +46 -0
  327. package/src/_shims/auto/runtime-bun.ts +4 -0
  328. package/src/_shims/auto/runtime-node.ts +4 -0
  329. package/src/_shims/auto/runtime.ts +4 -0
  330. package/src/_shims/auto/types-node.ts +4 -0
  331. package/src/_shims/auto/types.d.ts +99 -0
  332. package/src/_shims/auto/types.js +3 -0
  333. package/src/_shims/auto/types.mjs +3 -0
  334. package/src/_shims/bun-runtime.ts +14 -0
  335. package/src/_shims/index.d.ts +79 -0
  336. package/src/_shims/index.js +13 -0
  337. package/src/_shims/index.mjs +7 -0
  338. package/src/_shims/manual-types.d.ts +12 -0
  339. package/src/_shims/manual-types.js +3 -0
  340. package/src/_shims/manual-types.mjs +3 -0
  341. package/src/_shims/node-runtime.ts +79 -0
  342. package/src/_shims/node-types.d.ts +42 -0
  343. package/src/_shims/node-types.js +3 -0
  344. package/src/_shims/node-types.mjs +3 -0
  345. package/src/_shims/registry.ts +64 -0
  346. package/src/_shims/web-runtime.ts +91 -0
  347. package/src/_shims/web-types.d.ts +82 -0
  348. package/src/_shims/web-types.js +3 -0
  349. package/src/_shims/web-types.mjs +3 -0
  350. package/src/core.ts +37 -17
  351. package/src/error.ts +3 -3
  352. package/src/index.ts +6 -6
  353. package/src/pagination.ts +1 -1
  354. package/src/resource.ts +1 -1
  355. package/src/resources/account-numbers.ts +5 -5
  356. package/src/resources/account-statements.ts +5 -5
  357. package/src/resources/account-transfers.ts +5 -5
  358. package/src/resources/accounts.ts +5 -5
  359. package/src/resources/ach-prenotifications.ts +45 -16
  360. package/src/resources/ach-transfers.ts +47 -17
  361. package/src/resources/balance-lookups.ts +3 -3
  362. package/src/resources/bookkeeping-accounts.ts +5 -5
  363. package/src/resources/bookkeeping-entries.ts +5 -5
  364. package/src/resources/bookkeeping-entry-sets.ts +3 -3
  365. package/src/resources/card-disputes.ts +5 -5
  366. package/src/resources/card-profiles.ts +5 -5
  367. package/src/resources/card-purchase-supplements.ts +5 -5
  368. package/src/resources/cards.ts +15 -5
  369. package/src/resources/check-deposits.ts +5 -5
  370. package/src/resources/check-transfers.ts +5 -5
  371. package/src/resources/declined-transactions.ts +15 -5
  372. package/src/resources/digital-wallet-tokens.ts +5 -5
  373. package/src/resources/documents.ts +5 -5
  374. package/src/resources/entities/beneficial-owners.ts +5 -5
  375. package/src/resources/entities/entities.ts +18 -18
  376. package/src/resources/entities/index.ts +3 -3
  377. package/src/resources/entities/supplemental-documents.ts +5 -5
  378. package/src/resources/event-subscriptions.ts +5 -5
  379. package/src/resources/events.ts +5 -5
  380. package/src/resources/exports.ts +64 -7
  381. package/src/resources/external-accounts.ts +5 -5
  382. package/src/resources/files.ts +6 -6
  383. package/src/resources/groups.ts +3 -3
  384. package/src/resources/inbound-ach-transfers.ts +5 -5
  385. package/src/resources/inbound-wire-drawdown-requests.ts +5 -5
  386. package/src/resources/index.ts +38 -38
  387. package/src/resources/oauth-connections.ts +5 -5
  388. package/src/resources/pending-transactions.ts +10 -5
  389. package/src/resources/programs.ts +5 -5
  390. package/src/resources/real-time-decisions.ts +3 -3
  391. package/src/resources/real-time-payments-transfers.ts +5 -5
  392. package/src/resources/routing-numbers.ts +4 -4
  393. package/src/resources/simulations/account-statements.ts +4 -4
  394. package/src/resources/simulations/account-transfers.ts +3 -3
  395. package/src/resources/simulations/ach-transfers.ts +318 -30
  396. package/src/resources/simulations/card-disputes.ts +4 -4
  397. package/src/resources/simulations/card-profiles.ts +3 -3
  398. package/src/resources/simulations/card-refunds.ts +4 -4
  399. package/src/resources/simulations/cards.ts +19 -4
  400. package/src/resources/simulations/check-deposits.ts +3 -3
  401. package/src/resources/simulations/check-transfers.ts +3 -3
  402. package/src/resources/simulations/digital-wallet-token-requests.ts +3 -3
  403. package/src/resources/simulations/documents.ts +4 -4
  404. package/src/resources/simulations/inbound-funds-holds.ts +3 -3
  405. package/src/resources/simulations/inbound-wire-drawdown-requests.ts +4 -4
  406. package/src/resources/simulations/index.ts +18 -18
  407. package/src/resources/simulations/interest-payments.ts +29 -15
  408. package/src/resources/simulations/programs.ts +4 -4
  409. package/src/resources/simulations/real-time-payments-transfers.ts +40 -16
  410. package/src/resources/simulations/simulations.ts +19 -19
  411. package/src/resources/simulations/wire-transfers.ts +29 -15
  412. package/src/resources/transactions.ts +31 -17
  413. package/src/resources/wire-drawdown-requests.ts +5 -5
  414. package/src/resources/wire-transfers.ts +5 -5
  415. package/src/shims/node.ts +50 -0
  416. package/src/shims/web.ts +50 -0
  417. package/src/uploads.ts +12 -16
  418. package/src/version.ts +1 -1
  419. package/uploads.d.ts +23 -39
  420. package/uploads.d.ts.map +1 -1
  421. package/uploads.js +115 -157
  422. package/uploads.js.map +1 -1
  423. package/uploads.mjs +111 -133
  424. package/uploads.mjs.map +1 -1
  425. package/version.d.ts +2 -2
  426. package/version.js +4 -4
  427. package/version.mjs +2 -2
  428. package/_shims/ReadableStream-node.d.ts +0 -6
  429. package/_shims/ReadableStream-node.d.ts.map +0 -1
  430. package/_shims/ReadableStream-node.js +0 -14
  431. package/_shims/ReadableStream-node.js.map +0 -1
  432. package/_shims/ReadableStream-node.mjs +0 -3
  433. package/_shims/ReadableStream-node.mjs.map +0 -1
  434. package/_shims/ReadableStream.d.ts +0 -38
  435. package/_shims/ReadableStream.mjs +0 -7
  436. package/_shims/agent-node.d.ts +0 -7
  437. package/_shims/agent-node.d.ts.map +0 -1
  438. package/_shims/agent-node.js +0 -28
  439. package/_shims/agent-node.js.map +0 -1
  440. package/_shims/agent-node.mjs +0 -16
  441. package/_shims/agent-node.mjs.map +0 -1
  442. package/_shims/agent.d.ts +0 -9
  443. package/_shims/agent.d.ts.map +0 -1
  444. package/_shims/agent.js +0 -14
  445. package/_shims/agent.js.map +0 -1
  446. package/_shims/agent.mjs +0 -10
  447. package/_shims/agent.mjs.map +0 -1
  448. package/_shims/fetch-node.d.ts +0 -64
  449. package/_shims/fetch-node.js +0 -12
  450. package/_shims/fetch-node.mjs +0 -14
  451. package/_shims/fetch.d.ts +0 -60
  452. package/_shims/fetch.js +0 -13
  453. package/_shims/fetch.mjs +0 -15
  454. package/_shims/fileFromPath-node.d.ts +0 -17
  455. package/_shims/fileFromPath-node.d.ts.map +0 -1
  456. package/_shims/fileFromPath-node.js +0 -17
  457. package/_shims/fileFromPath-node.js.map +0 -1
  458. package/_shims/fileFromPath-node.mjs +0 -13
  459. package/_shims/fileFromPath-node.mjs.map +0 -1
  460. package/_shims/fileFromPath.d.ts +0 -22
  461. package/_shims/fileFromPath.d.ts.map +0 -1
  462. package/_shims/fileFromPath.js +0 -16
  463. package/_shims/fileFromPath.js.map +0 -1
  464. package/_shims/fileFromPath.mjs +0 -12
  465. package/_shims/fileFromPath.mjs.map +0 -1
  466. package/_shims/form-data-node.d.ts +0 -45
  467. package/_shims/form-data-node.js +0 -11
  468. package/_shims/form-data-node.mjs +0 -9
  469. package/_shims/form-data.d.ts +0 -43
  470. package/_shims/form-data.js +0 -17
  471. package/_shims/form-data.mjs +0 -20
  472. package/_shims/getMultipartRequestOptions-node.d.ts +0 -10
  473. package/_shims/getMultipartRequestOptions-node.d.ts.map +0 -1
  474. package/_shims/getMultipartRequestOptions-node.js +0 -22
  475. package/_shims/getMultipartRequestOptions-node.js.map +0 -1
  476. package/_shims/getMultipartRequestOptions-node.mjs +0 -18
  477. package/_shims/getMultipartRequestOptions-node.mjs.map +0 -1
  478. package/_shims/getMultipartRequestOptions.d.ts +0 -10
  479. package/_shims/getMultipartRequestOptions.d.ts.map +0 -1
  480. package/_shims/getMultipartRequestOptions.js +0 -12
  481. package/_shims/getMultipartRequestOptions.js.map +0 -1
  482. package/_shims/getMultipartRequestOptions.mjs +0 -8
  483. package/_shims/getMultipartRequestOptions.mjs.map +0 -1
  484. package/_shims/node-readable-node.d.ts +0 -8
  485. package/_shims/node-readable-node.d.ts.map +0 -1
  486. package/_shims/node-readable-node.js +0 -9
  487. package/_shims/node-readable-node.js.map +0 -1
  488. package/_shims/node-readable-node.mjs +0 -5
  489. package/_shims/node-readable-node.mjs.map +0 -1
  490. package/_shims/node-readable.d.ts +0 -23
  491. package/_shims/node-readable.d.ts.map +0 -1
  492. package/_shims/node-readable.js +0 -11
  493. package/_shims/node-readable.js.map +0 -1
  494. package/_shims/node-readable.mjs +0 -7
  495. package/_shims/node-readable.mjs.map +0 -1
  496. package/src/_shims/ReadableStream.d.ts +0 -38
  497. package/src/_shims/ReadableStream.mjs +0 -7
  498. package/src/_shims/agent-node.ts +0 -22
  499. package/src/_shims/agent.ts +0 -12
  500. package/src/_shims/fetch-node.d.ts +0 -64
  501. package/src/_shims/fetch-node.js +0 -12
  502. package/src/_shims/fetch-node.mjs +0 -14
  503. package/src/_shims/fetch.d.ts +0 -60
  504. package/src/_shims/fetch.js +0 -13
  505. package/src/_shims/fetch.mjs +0 -15
  506. package/src/_shims/fileFromPath-node.ts +0 -29
  507. package/src/_shims/fileFromPath.ts +0 -29
  508. package/src/_shims/form-data-node.d.ts +0 -45
  509. package/src/_shims/form-data-node.js +0 -11
  510. package/src/_shims/form-data-node.mjs +0 -9
  511. package/src/_shims/form-data.d.ts +0 -43
  512. package/src/_shims/form-data.js +0 -17
  513. package/src/_shims/form-data.mjs +0 -20
  514. package/src/_shims/getMultipartRequestOptions-node.ts +0 -25
  515. package/src/_shims/getMultipartRequestOptions.ts +0 -14
  516. package/src/_shims/node-readable-node.ts +0 -10
  517. package/src/_shims/node-readable.ts +0 -30
@@ -1,25 +1,20 @@
1
1
  import * as Core from 'increase/core';
2
2
  import { APIResource } from 'increase/resource';
3
- import * as API from './index.js';
3
+ import * as API from "./index.js";
4
4
  import { Page, PageParams } from 'increase/pagination';
5
5
  export declare class DeclinedTransactions extends APIResource {
6
- /**
7
- * Retrieve a Declined Transaction
8
- */
9
- retrieve(
10
- declinedTransactionId: string,
11
- options?: Core.RequestOptions,
12
- ): Core.APIPromise<DeclinedTransaction>;
13
- /**
14
- * List Declined Transactions
15
- */
16
- list(
17
- query?: DeclinedTransactionListParams,
18
- options?: Core.RequestOptions,
19
- ): Core.PagePromise<DeclinedTransactionsPage, DeclinedTransaction>;
20
- list(options?: Core.RequestOptions): Core.PagePromise<DeclinedTransactionsPage, DeclinedTransaction>;
6
+ /**
7
+ * Retrieve a Declined Transaction
8
+ */
9
+ retrieve(declinedTransactionId: string, options?: Core.RequestOptions): Core.APIPromise<DeclinedTransaction>;
10
+ /**
11
+ * List Declined Transactions
12
+ */
13
+ list(query?: DeclinedTransactionListParams, options?: Core.RequestOptions): Core.PagePromise<DeclinedTransactionsPage, DeclinedTransaction>;
14
+ list(options?: Core.RequestOptions): Core.PagePromise<DeclinedTransactionsPage, DeclinedTransaction>;
15
+ }
16
+ export declare class DeclinedTransactionsPage extends Page<DeclinedTransaction> {
21
17
  }
22
- export declare class DeclinedTransactionsPage extends Page<DeclinedTransaction> {}
23
18
  type _DeclinedTransactionsPage = DeclinedTransactionsPage;
24
19
  /**
25
20
  * Declined Transactions are refused additions and removals of money from your bank
@@ -27,942 +22,835 @@ type _DeclinedTransactionsPage = DeclinedTransactionsPage;
27
22
  * insufficient balance or your Limits are triggered.
28
23
  */
29
24
  export interface DeclinedTransaction {
30
- /**
31
- * The Declined Transaction identifier.
32
- */
33
- id: string;
34
- /**
35
- * The identifier for the Account the Declined Transaction belongs to.
36
- */
37
- account_id: string;
38
- /**
39
- * The Declined Transaction amount in the minor unit of its currency. For dollars,
40
- * for example, this is cents.
41
- */
42
- amount: number;
43
- /**
44
- * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date on which the
45
- * Transaction occurred.
46
- */
47
- created_at: string;
48
- /**
49
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the Declined
50
- * Transaction's currency. This will match the currency on the Declined
51
- * Transaction's Account.
52
- *
53
- * - `CAD` - Canadian Dollar (CAD)
54
- * - `CHF` - Swiss Franc (CHF)
55
- * - `EUR` - Euro (EUR)
56
- * - `GBP` - British Pound (GBP)
57
- * - `JPY` - Japanese Yen (JPY)
58
- * - `USD` - US Dollar (USD)
59
- */
60
- currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
61
- /**
62
- * This is the description the vendor provides.
63
- */
64
- description: string;
65
- /**
66
- * The identifier for the route this Declined Transaction came through. Routes are
67
- * things like cards and ACH details.
68
- */
69
- route_id: string | null;
70
- /**
71
- * The type of the route this Declined Transaction came through.
72
- *
73
- * - `account_number` - An Account Number.
74
- * - `card` - A Card.
75
- */
76
- route_type: 'account_number' | 'card' | null;
77
- /**
78
- * This is an object giving more details on the network-level event that caused the
79
- * Declined Transaction. For example, for a card transaction this lists the
80
- * merchant's industry and location. Note that for backwards compatibility reasons,
81
- * additional undocumented keys may appear in this object. These should be treated
82
- * as deprecated and will be removed in the future.
83
- */
84
- source: DeclinedTransaction.Source;
85
- /**
86
- * A constant representing the object's type. For this resource it will always be
87
- * `declined_transaction`.
88
- */
89
- type: 'declined_transaction';
90
- }
91
- export declare namespace DeclinedTransaction {
92
- /**
93
- * This is an object giving more details on the network-level event that caused the
94
- * Declined Transaction. For example, for a card transaction this lists the
95
- * merchant's industry and location. Note that for backwards compatibility reasons,
96
- * additional undocumented keys may appear in this object. These should be treated
97
- * as deprecated and will be removed in the future.
98
- */
99
- interface Source {
100
25
  /**
101
- * An ACH Decline object. This field will be present in the JSON response if and
102
- * only if `category` is equal to `ach_decline`.
26
+ * The Declined Transaction identifier.
27
+ */
28
+ id: string;
29
+ /**
30
+ * The identifier for the Account the Declined Transaction belongs to.
31
+ */
32
+ account_id: string;
33
+ /**
34
+ * The Declined Transaction amount in the minor unit of its currency. For dollars,
35
+ * for example, this is cents.
103
36
  */
104
- ach_decline: Source.ACHDecline | null;
37
+ amount: number;
105
38
  /**
106
- * A Card Decline object. This field will be present in the JSON response if and
107
- * only if `category` is equal to `card_decline`.
39
+ * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date on which the
40
+ * Transaction occurred.
108
41
  */
109
- card_decline: Source.CardDecline | null;
42
+ created_at: string;
110
43
  /**
111
- * The type of the resource. We may add additional possible values for this enum
112
- * over time; your application should be able to handle such additions gracefully.
44
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the Declined
45
+ * Transaction's currency. This will match the currency on the Declined
46
+ * Transaction's Account.
113
47
  *
114
- * - `ach_decline` - ACH Decline: details will be under the `ach_decline` object.
115
- * - `card_decline` - Card Decline: details will be under the `card_decline`
116
- * object.
117
- * - `check_decline` - Check Decline: details will be under the `check_decline`
118
- * object.
119
- * - `inbound_real_time_payments_transfer_decline` - Inbound Real-Time Payments
120
- * Transfer Decline: details will be under the
121
- * `inbound_real_time_payments_transfer_decline` object.
122
- * - `international_ach_decline` - International ACH Decline: details will be under
123
- * the `international_ach_decline` object.
124
- * - `wire_decline` - Wire Decline: details will be under the `wire_decline`
125
- * object.
126
- * - `other` - The Declined Transaction was made for an undocumented or deprecated
127
- * reason.
48
+ * - `CAD` - Canadian Dollar (CAD)
49
+ * - `CHF` - Swiss Franc (CHF)
50
+ * - `EUR` - Euro (EUR)
51
+ * - `GBP` - British Pound (GBP)
52
+ * - `JPY` - Japanese Yen (JPY)
53
+ * - `USD` - US Dollar (USD)
128
54
  */
129
- category:
130
- | 'ach_decline'
131
- | 'card_decline'
132
- | 'check_decline'
133
- | 'inbound_real_time_payments_transfer_decline'
134
- | 'international_ach_decline'
135
- | 'wire_decline'
136
- | 'other';
55
+ currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
137
56
  /**
138
- * A Check Decline object. This field will be present in the JSON response if and
139
- * only if `category` is equal to `check_decline`.
57
+ * This is the description the vendor provides.
140
58
  */
141
- check_decline: Source.CheckDecline | null;
59
+ description: string;
142
60
  /**
143
- * An Inbound Real-Time Payments Transfer Decline object. This field will be
144
- * present in the JSON response if and only if `category` is equal to
145
- * `inbound_real_time_payments_transfer_decline`.
61
+ * The identifier for the route this Declined Transaction came through. Routes are
62
+ * things like cards and ACH details.
146
63
  */
147
- inbound_real_time_payments_transfer_decline: Source.InboundRealTimePaymentsTransferDecline | null;
64
+ route_id: string | null;
148
65
  /**
149
- * An International ACH Decline object. This field will be present in the JSON
150
- * response if and only if `category` is equal to `international_ach_decline`.
66
+ * The type of the route this Declined Transaction came through.
67
+ *
68
+ * - `account_number` - An Account Number.
69
+ * - `card` - A Card.
151
70
  */
152
- international_ach_decline: Source.InternationalACHDecline | null;
71
+ route_type: 'account_number' | 'card' | null;
153
72
  /**
154
- * A Wire Decline object. This field will be present in the JSON response if and
155
- * only if `category` is equal to `wire_decline`.
73
+ * This is an object giving more details on the network-level event that caused the
74
+ * Declined Transaction. For example, for a card transaction this lists the
75
+ * merchant's industry and location. Note that for backwards compatibility reasons,
76
+ * additional undocumented keys may appear in this object. These should be treated
77
+ * as deprecated and will be removed in the future.
156
78
  */
157
- wire_decline: Source.WireDecline | null;
158
- }
159
- namespace Source {
79
+ source: DeclinedTransaction.Source;
160
80
  /**
161
- * An ACH Decline object. This field will be present in the JSON response if and
162
- * only if `category` is equal to `ach_decline`.
81
+ * A constant representing the object's type. For this resource it will always be
82
+ * `declined_transaction`.
163
83
  */
164
- interface ACHDecline {
165
- /**
166
- * The ACH Decline's identifier.
167
- */
168
- id: string;
169
- /**
170
- * The declined amount in the minor unit of the destination account currency. For
171
- * dollars, for example, this is cents.
172
- */
173
- amount: number;
174
- /**
175
- * The descriptive date of the transfer.
176
- */
177
- originator_company_descriptive_date: string | null;
178
- /**
179
- * The additional information included with the transfer.
180
- */
181
- originator_company_discretionary_data: string | null;
182
- /**
183
- * The identifier of the company that initiated the transfer.
184
- */
185
- originator_company_id: string;
186
- /**
187
- * The name of the company that initiated the transfer.
188
- */
189
- originator_company_name: string;
190
- /**
191
- * Why the ACH transfer was declined.
192
- *
193
- * - `ach_route_canceled` - The account number is canceled.
194
- * - `ach_route_disabled` - The account number is disabled.
195
- * - `breaches_limit` - The transaction would cause an Increase limit to be
196
- * exceeded.
197
- * - `credit_entry_refused_by_receiver` - A credit was refused. This is a
198
- * reasonable default reason for decline of credits.
199
- * - `duplicate_return` - A rare return reason. The return this message refers to
200
- * was a duplicate.
201
- * - `entity_not_active` - The account's entity is not active.
202
- * - `group_locked` - Your account is inactive.
203
- * - `insufficient_funds` - Your account contains insufficient funds.
204
- * - `misrouted_return` - A rare return reason. The return this message refers to
205
- * was misrouted.
206
- * - `return_of_erroneous_or_reversing_debit` - The originating financial
207
- * institution made a mistake and this return corrects it.
208
- * - `no_ach_route` - The account number that was debited does not exist.
209
- * - `originator_request` - The originating financial institution asked for this
210
- * transfer to be returned.
211
- * - `transaction_not_allowed` - The transaction is not allowed per Increase's
212
- * terms.
213
- * - `user_initiated` - The user initiated the decline.
214
- */
215
- reason:
216
- | 'ach_route_canceled'
217
- | 'ach_route_disabled'
218
- | 'breaches_limit'
219
- | 'credit_entry_refused_by_receiver'
220
- | 'duplicate_return'
221
- | 'entity_not_active'
222
- | 'group_locked'
223
- | 'insufficient_funds'
224
- | 'misrouted_return'
225
- | 'return_of_erroneous_or_reversing_debit'
226
- | 'no_ach_route'
227
- | 'originator_request'
228
- | 'transaction_not_allowed'
229
- | 'user_initiated';
230
- /**
231
- * The id of the receiver of the transfer.
232
- */
233
- receiver_id_number: string | null;
234
- /**
235
- * The name of the receiver of the transfer.
236
- */
237
- receiver_name: string | null;
238
- /**
239
- * The trace number of the transfer.
240
- */
241
- trace_number: string;
242
- /**
243
- * A constant representing the object's type. For this resource it will always be
244
- * `ach_decline`.
245
- */
246
- type: 'ach_decline';
247
- }
84
+ type: 'declined_transaction';
85
+ }
86
+ export declare namespace DeclinedTransaction {
248
87
  /**
249
- * A Card Decline object. This field will be present in the JSON response if and
250
- * only if `category` is equal to `card_decline`.
88
+ * This is an object giving more details on the network-level event that caused the
89
+ * Declined Transaction. For example, for a card transaction this lists the
90
+ * merchant's industry and location. Note that for backwards compatibility reasons,
91
+ * additional undocumented keys may appear in this object. These should be treated
92
+ * as deprecated and will be removed in the future.
251
93
  */
252
- interface CardDecline {
253
- /**
254
- * The declined amount in the minor unit of the destination account currency. For
255
- * dollars, for example, this is cents.
256
- */
257
- amount: number;
258
- /**
259
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the destination
260
- * account currency.
261
- *
262
- * - `CAD` - Canadian Dollar (CAD)
263
- * - `CHF` - Swiss Franc (CHF)
264
- * - `EUR` - Euro (EUR)
265
- * - `GBP` - British Pound (GBP)
266
- * - `JPY` - Japanese Yen (JPY)
267
- * - `USD` - US Dollar (USD)
268
- */
269
- currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
270
- /**
271
- * If the authorization was made via a Digital Wallet Token (such as an Apple Pay
272
- * purchase), the identifier of the token that was used.
273
- */
274
- digital_wallet_token_id: string | null;
275
- /**
276
- * The merchant identifier (commonly abbreviated as MID) of the merchant the card
277
- * is transacting with.
278
- */
279
- merchant_acceptor_id: string;
280
- /**
281
- * The Merchant Category Code (commonly abbreviated as MCC) of the merchant the
282
- * card is transacting with.
283
- */
284
- merchant_category_code: string | null;
285
- /**
286
- * The city the merchant resides in.
287
- */
288
- merchant_city: string | null;
289
- /**
290
- * The country the merchant resides in.
291
- */
292
- merchant_country: string | null;
293
- /**
294
- * The merchant descriptor of the merchant the card is transacting with.
295
- */
296
- merchant_descriptor: string;
297
- /**
298
- * The state the merchant resides in.
299
- */
300
- merchant_state: string | null;
301
- /**
302
- * Fields specific to the `network`.
303
- */
304
- network_details: CardDecline.NetworkDetails;
305
- /**
306
- * If the authorization was made in-person with a physical card, the Physical Card
307
- * that was used.
308
- */
309
- physical_card_id: string | null;
310
- /**
311
- * The identifier of the Real-Time Decision sent to approve or decline this
312
- * transaction.
313
- */
314
- real_time_decision_id: string | null;
315
- /**
316
- * Why the transaction was declined.
317
- *
318
- * - `card_not_active` - The Card was not active.
319
- * - `physical_card_not_active` - The Physical Card was not active.
320
- * - `entity_not_active` - The account's entity was not active.
321
- * - `group_locked` - The account was inactive.
322
- * - `insufficient_funds` - The Card's Account did not have a sufficient available
323
- * balance.
324
- * - `cvv2_mismatch` - The given CVV2 did not match the card's value.
325
- * - `transaction_not_allowed` - The attempted card transaction is not allowed per
326
- * Increase's terms.
327
- * - `breaches_limit` - The transaction was blocked by a Limit.
328
- * - `webhook_declined` - Your application declined the transaction via webhook.
329
- * - `webhook_timed_out` - Your application webhook did not respond without the
330
- * required timeout.
331
- * - `declined_by_stand_in_processing` - Declined by stand-in processing.
332
- * - `invalid_physical_card` - The card read had an invalid CVV, dCVV, or
333
- * authorization request cryptogram.
334
- * - `missing_original_authorization` - The original card authorization for this
335
- * incremental authorization does not exist.
336
- * - `suspected_fraud` - The transaction was suspected to be fraudulent. Please
337
- * reach out to support@increase.com for more information.
338
- */
339
- reason:
340
- | 'card_not_active'
341
- | 'physical_card_not_active'
342
- | 'entity_not_active'
343
- | 'group_locked'
344
- | 'insufficient_funds'
345
- | 'cvv2_mismatch'
346
- | 'transaction_not_allowed'
347
- | 'breaches_limit'
348
- | 'webhook_declined'
349
- | 'webhook_timed_out'
350
- | 'declined_by_stand_in_processing'
351
- | 'invalid_physical_card'
352
- | 'missing_original_authorization'
353
- | 'suspected_fraud';
354
- }
355
- namespace CardDecline {
356
- /**
357
- * Fields specific to the `network`.
358
- */
359
- interface NetworkDetails {
94
+ interface Source {
95
+ /**
96
+ * An ACH Decline object. This field will be present in the JSON response if and
97
+ * only if `category` is equal to `ach_decline`.
98
+ */
99
+ ach_decline: Source.ACHDecline | null;
100
+ /**
101
+ * A Card Decline object. This field will be present in the JSON response if and
102
+ * only if `category` is equal to `card_decline`.
103
+ */
104
+ card_decline: Source.CardDecline | null;
360
105
  /**
361
- * The payment network used to process this card authorization.
106
+ * The type of the resource. We may add additional possible values for this enum
107
+ * over time; your application should be able to handle such additions gracefully.
362
108
  *
363
- * - `visa` - Visa
109
+ * - `ach_decline` - ACH Decline: details will be under the `ach_decline` object.
110
+ * - `card_decline` - Card Decline: details will be under the `card_decline`
111
+ * object.
112
+ * - `check_decline` - Check Decline: details will be under the `check_decline`
113
+ * object.
114
+ * - `inbound_real_time_payments_transfer_decline` - Inbound Real-Time Payments
115
+ * Transfer Decline: details will be under the
116
+ * `inbound_real_time_payments_transfer_decline` object.
117
+ * - `international_ach_decline` - International ACH Decline: details will be under
118
+ * the `international_ach_decline` object.
119
+ * - `wire_decline` - Wire Decline: details will be under the `wire_decline`
120
+ * object.
121
+ * - `other` - The Declined Transaction was made for an undocumented or deprecated
122
+ * reason.
364
123
  */
365
- category: 'visa';
124
+ category: 'ach_decline' | 'card_decline' | 'check_decline' | 'inbound_real_time_payments_transfer_decline' | 'international_ach_decline' | 'wire_decline' | 'other';
366
125
  /**
367
- * Fields specific to the `visa` network.
126
+ * A Check Decline object. This field will be present in the JSON response if and
127
+ * only if `category` is equal to `check_decline`.
368
128
  */
369
- visa: NetworkDetails.Visa | null;
370
- }
371
- namespace NetworkDetails {
129
+ check_decline: Source.CheckDecline | null;
372
130
  /**
373
- * Fields specific to the `visa` network.
131
+ * An Inbound Real-Time Payments Transfer Decline object. This field will be
132
+ * present in the JSON response if and only if `category` is equal to
133
+ * `inbound_real_time_payments_transfer_decline`.
374
134
  */
375
- interface Visa {
376
- /**
377
- * For electronic commerce transactions, this identifies the level of security used
378
- * in obtaining the customer's payment credential. For mail or telephone order
379
- * transactions, identifies the type of mail or telephone order.
380
- *
381
- * - `mail_phone_order` - Single transaction of a mail/phone order: Use to indicate
382
- * that the transaction is a mail/phone order purchase, not a recurring
383
- * transaction or installment payment. For domestic transactions in the US
384
- * region, this value may also indicate one bill payment transaction in the
385
- * card-present or card-absent environments.
386
- * - `recurring` - Recurring transaction: Payment indicator used to indicate a
387
- * recurring transaction that originates from an acquirer in the US region.
388
- * - `installment` - Installment payment: Payment indicator used to indicate one
389
- * purchase of goods or services that is billed to the account in multiple
390
- * charges over a period of time agreed upon by the cardholder and merchant from
391
- * transactions that originate from an acquirer in the US region.
392
- * - `unknown_mail_phone_order` - Unknown classification: other mail order: Use to
393
- * indicate that the type of mail/telephone order is unknown.
394
- * - `secure_electronic_commerce` - Secure electronic commerce transaction: Use to
395
- * indicate that the electronic commerce transaction has been authenticated using
396
- * e.g., 3-D Secure
397
- * - `non_authenticated_security_transaction_at_3ds_capable_merchant` -
398
- * Non-authenticated security transaction at a 3-D Secure-capable merchant, and
399
- * merchant attempted to authenticate the cardholder using 3-D Secure: Use to
400
- * identify an electronic commerce transaction where the merchant attempted to
401
- * authenticate the cardholder using 3-D Secure, but was unable to complete the
402
- * authentication because the issuer or cardholder does not participate in the
403
- * 3-D Secure program.
404
- * - `non_authenticated_security_transaction` - Non-authenticated security
405
- * transaction: Use to identify an electronic commerce transaction that uses data
406
- * encryption for security however , cardholder authentication is not performed
407
- * using 3-D Secure.
408
- * - `non_secure_transaction` - Non-secure transaction: Use to identify an
409
- * electronic commerce transaction that has no data protection.
410
- */
411
- electronic_commerce_indicator:
412
- | 'mail_phone_order'
413
- | 'recurring'
414
- | 'installment'
415
- | 'unknown_mail_phone_order'
416
- | 'secure_electronic_commerce'
417
- | 'non_authenticated_security_transaction_at_3ds_capable_merchant'
418
- | 'non_authenticated_security_transaction'
419
- | 'non_secure_transaction'
420
- | null;
421
- /**
422
- * The method used to enter the cardholder's primary account number and card
423
- * expiration date.
424
- *
425
- * - `unknown` - Unknown
426
- * - `manual` - Manual key entry
427
- * - `magnetic_stripe_no_cvv` - Magnetic stripe read, without card verification
428
- * value
429
- * - `optical_code` - Optical code
430
- * - `integrated_circuit_card` - Contact chip card
431
- * - `contactless` - Contactless read of chip card
432
- * - `credential_on_file` - Transaction initiated using a credential that has
433
- * previously been stored on file
434
- * - `magnetic_stripe` - Magnetic stripe read
435
- * - `contactless_magnetic_stripe` - Contactless read of magnetic stripe data
436
- * - `integrated_circuit_card_no_cvv` - Contact chip card, without card
437
- * verification value
438
- */
439
- point_of_service_entry_mode:
440
- | 'unknown'
441
- | 'manual'
442
- | 'magnetic_stripe_no_cvv'
443
- | 'optical_code'
444
- | 'integrated_circuit_card'
445
- | 'contactless'
446
- | 'credential_on_file'
447
- | 'magnetic_stripe'
448
- | 'contactless_magnetic_stripe'
449
- | 'integrated_circuit_card_no_cvv'
450
- | null;
451
- }
452
- }
453
- }
454
- /**
455
- * A Check Decline object. This field will be present in the JSON response if and
456
- * only if `category` is equal to `check_decline`.
457
- */
458
- interface CheckDecline {
459
- /**
460
- * The declined amount in the minor unit of the destination account currency. For
461
- * dollars, for example, this is cents.
462
- */
463
- amount: number;
464
- /**
465
- * A computer-readable number printed on the MICR line of business checks, usually
466
- * the check number. This is useful for positive pay checks, but can be unreliably
467
- * transmitted by the bank of first deposit.
468
- */
469
- auxiliary_on_us: string | null;
470
- /**
471
- * Why the check was declined.
472
- *
473
- * - `ach_route_disabled` - The account number is disabled.
474
- * - `ach_route_canceled` - The account number is canceled.
475
- * - `breaches_limit` - The transaction would cause a limit to be exceeded.
476
- * - `entity_not_active` - The account's entity is not active.
477
- * - `group_locked` - Your account is inactive.
478
- * - `insufficient_funds` - Your account contains insufficient funds.
479
- * - `stop_payment_requested` - Stop payment requested for this check.
480
- * - `duplicate_presentment` - The check was a duplicate deposit.
481
- * - `not_authorized` - The check was not authorized.
482
- * - `amount_mismatch` - The amount the receiving bank is attempting to deposit
483
- * does not match the amount on the check.
484
- * - `not_our_item` - The check attempting to be deposited does not belong to
485
- * Increase.
486
- */
487
- reason:
488
- | 'ach_route_disabled'
489
- | 'ach_route_canceled'
490
- | 'breaches_limit'
491
- | 'entity_not_active'
492
- | 'group_locked'
493
- | 'insufficient_funds'
494
- | 'stop_payment_requested'
495
- | 'duplicate_presentment'
496
- | 'not_authorized'
497
- | 'amount_mismatch'
498
- | 'not_our_item';
499
- }
500
- /**
501
- * An Inbound Real-Time Payments Transfer Decline object. This field will be
502
- * present in the JSON response if and only if `category` is equal to
503
- * `inbound_real_time_payments_transfer_decline`.
504
- */
505
- interface InboundRealTimePaymentsTransferDecline {
506
- /**
507
- * The declined amount in the minor unit of the destination account currency. For
508
- * dollars, for example, this is cents.
509
- */
510
- amount: number;
511
- /**
512
- * The name the sender of the transfer specified as the recipient of the transfer.
513
- */
514
- creditor_name: string;
515
- /**
516
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code of the declined
517
- * transfer's currency. This will always be "USD" for a Real-Time Payments
518
- * transfer.
519
- *
520
- * - `CAD` - Canadian Dollar (CAD)
521
- * - `CHF` - Swiss Franc (CHF)
522
- * - `EUR` - Euro (EUR)
523
- * - `GBP` - British Pound (GBP)
524
- * - `JPY` - Japanese Yen (JPY)
525
- * - `USD` - US Dollar (USD)
526
- */
527
- currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
528
- /**
529
- * The account number of the account that sent the transfer.
530
- */
531
- debtor_account_number: string;
532
- /**
533
- * The name provided by the sender of the transfer.
534
- */
535
- debtor_name: string;
536
- /**
537
- * The routing number of the account that sent the transfer.
538
- */
539
- debtor_routing_number: string;
540
- /**
541
- * Why the transfer was declined.
542
- *
543
- * - `account_number_canceled` - The account number is canceled.
544
- * - `account_number_disabled` - The account number is disabled.
545
- * - `account_restricted` - Your account is restricted.
546
- * - `group_locked` - Your account is inactive.
547
- * - `entity_not_active` - The account's entity is not active.
548
- * - `real_time_payments_not_enabled` - Your account is not enabled to receive
549
- * Real-Time Payments transfers.
550
- */
551
- reason:
552
- | 'account_number_canceled'
553
- | 'account_number_disabled'
554
- | 'account_restricted'
555
- | 'group_locked'
556
- | 'entity_not_active'
557
- | 'real_time_payments_not_enabled';
558
- /**
559
- * Additional information included with the transfer.
560
- */
561
- remittance_information: string | null;
562
- /**
563
- * The Real-Time Payments network identification of the declined transfer.
564
- */
565
- transaction_identification: string;
566
- }
567
- /**
568
- * An International ACH Decline object. This field will be present in the JSON
569
- * response if and only if `category` is equal to `international_ach_decline`.
570
- */
571
- interface InternationalACHDecline {
572
- /**
573
- * The declined amount in the minor unit of the destination account currency. For
574
- * dollars, for example, this is cents.
575
- */
576
- amount: number;
577
- /**
578
- * The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2
579
- * country code of the destination country.
580
- */
581
- destination_country_code: string;
582
- /**
583
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code for the
584
- * destination bank account.
585
- */
586
- destination_currency_code: string;
587
- /**
588
- * A description of how the foreign exchange rate was calculated.
589
- *
590
- * - `fixed_to_variable` - The originator chose an amount in their own currency.
591
- * The settled amount in USD was converted using the exchange rate.
592
- * - `variable_to_fixed` - The originator chose an amount to settle in USD. The
593
- * originator's amount was variable; known only after the foreign exchange
594
- * conversion.
595
- * - `fixed_to_fixed` - The amount was originated and settled as a fixed amount in
596
- * USD. There is no foreign exchange conversion.
597
- */
598
- foreign_exchange_indicator: 'fixed_to_variable' | 'variable_to_fixed' | 'fixed_to_fixed';
599
- /**
600
- * Depending on the `foreign_exchange_reference_indicator`, an exchange rate or a
601
- * reference to a well-known rate.
602
- */
603
- foreign_exchange_reference: string | null;
604
- /**
605
- * An instruction of how to interpret the `foreign_exchange_reference` field for
606
- * this Transaction.
607
- *
608
- * - `foreign_exchange_rate` - The ACH file contains a foreign exchange rate.
609
- * - `foreign_exchange_reference_number` - The ACH file contains a reference to a
610
- * well-known foreign exchange rate.
611
- * - `blank` - There is no foreign exchange for this transfer, so the
612
- * `foreign_exchange_reference` field is blank.
613
- */
614
- foreign_exchange_reference_indicator:
615
- | 'foreign_exchange_rate'
616
- | 'foreign_exchange_reference_number'
617
- | 'blank';
618
- /**
619
- * The amount in the minor unit of the foreign payment currency. For dollars, for
620
- * example, this is cents.
621
- */
622
- foreign_payment_amount: number;
623
- /**
624
- * A reference number in the foreign banking infrastructure.
625
- */
626
- foreign_trace_number: string | null;
627
- /**
628
- * The type of transfer. Set by the originator.
629
- *
630
- * - `annuity` - Sent as `ANN` in the Nacha file.
631
- * - `business_or_commercial` - Sent as `BUS` in the Nacha file.
632
- * - `deposit` - Sent as `DEP` in the Nacha file.
633
- * - `loan` - Sent as `LOA` in the Nacha file.
634
- * - `miscellaneous` - Sent as `MIS` in the Nacha file.
635
- * - `mortgage` - Sent as `MOR` in the Nacha file.
636
- * - `pension` - Sent as `PEN` in the Nacha file.
637
- * - `remittance` - Sent as `REM` in the Nacha file.
638
- * - `rent_or_lease` - Sent as `RLS` in the Nacha file.
639
- * - `salary_or_payroll` - Sent as `SAL` in the Nacha file.
640
- * - `tax` - Sent as `TAX` in the Nacha file.
641
- * - `accounts_receivable` - Sent as `ARC` in the Nacha file.
642
- * - `back_office_conversion` - Sent as `BOC` in the Nacha file.
643
- * - `machine_transfer` - Sent as `MTE` in the Nacha file.
644
- * - `point_of_purchase` - Sent as `POP` in the Nacha file.
645
- * - `point_of_sale` - Sent as `POS` in the Nacha file.
646
- * - `represented_check` - Sent as `RCK` in the Nacha file.
647
- * - `shared_network_transaction` - Sent as `SHR` in the Nacha file.
648
- * - `telphone_initiated` - Sent as `TEL` in the Nacha file.
649
- * - `internet_initiated` - Sent as `WEB` in the Nacha file.
650
- */
651
- international_transaction_type_code:
652
- | 'annuity'
653
- | 'business_or_commercial'
654
- | 'deposit'
655
- | 'loan'
656
- | 'miscellaneous'
657
- | 'mortgage'
658
- | 'pension'
659
- | 'remittance'
660
- | 'rent_or_lease'
661
- | 'salary_or_payroll'
662
- | 'tax'
663
- | 'accounts_receivable'
664
- | 'back_office_conversion'
665
- | 'machine_transfer'
666
- | 'point_of_purchase'
667
- | 'point_of_sale'
668
- | 'represented_check'
669
- | 'shared_network_transaction'
670
- | 'telphone_initiated'
671
- | 'internet_initiated';
672
- /**
673
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code for the
674
- * originating bank account.
675
- */
676
- originating_currency_code: string;
677
- /**
678
- * The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2
679
- * country code of the originating branch country.
680
- */
681
- originating_depository_financial_institution_branch_country: string;
682
- /**
683
- * An identifier for the originating bank. One of an International Bank Account
684
- * Number (IBAN) bank identifier, SWIFT Bank Identification Code (BIC), or a
685
- * domestic identifier like a US Routing Number.
686
- */
687
- originating_depository_financial_institution_id: string;
688
- /**
689
- * An instruction of how to interpret the
690
- * `originating_depository_financial_institution_id` field for this Transaction.
691
- *
692
- * - `national_clearing_system_number` - A domestic clearing system number. In the
693
- * US, for example, this is the American Banking Association (ABA) routing
694
- * number.
695
- * - `bic_code` - The SWIFT Bank Identifier Code (BIC) of the bank.
696
- * - `iban` - An International Bank Account Number.
697
- */
698
- originating_depository_financial_institution_id_qualifier:
699
- | 'national_clearing_system_number'
700
- | 'bic_code'
701
- | 'iban';
702
- /**
703
- * The name of the originating bank. Sometimes this will refer to an American bank
704
- * and obscure the correspondent foreign bank.
705
- */
706
- originating_depository_financial_institution_name: string;
707
- /**
708
- * A portion of the originator address. This may be incomplete.
709
- */
710
- originator_city: string;
711
- /**
712
- * A description field set by the originator.
713
- */
714
- originator_company_entry_description: string;
715
- /**
716
- * A portion of the originator address. The
717
- * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2 country
718
- * code of the originator country.
719
- */
720
- originator_country: string;
721
- /**
722
- * An identifier for the originating company. This is generally stable across
723
- * multiple ACH transfers.
724
- */
725
- originator_identification: string;
726
- /**
727
- * Either the name of the originator or an intermediary money transmitter.
728
- */
729
- originator_name: string;
730
- /**
731
- * A portion of the originator address. This may be incomplete.
732
- */
733
- originator_postal_code: string | null;
734
- /**
735
- * A portion of the originator address. This may be incomplete.
736
- */
737
- originator_state_or_province: string | null;
738
- /**
739
- * A portion of the originator address. This may be incomplete.
740
- */
741
- originator_street_address: string;
742
- /**
743
- * A description field set by the originator.
744
- */
745
- payment_related_information: string | null;
746
- /**
747
- * A description field set by the originator.
748
- */
749
- payment_related_information2: string | null;
750
- /**
751
- * A portion of the receiver address. This may be incomplete.
752
- */
753
- receiver_city: string;
754
- /**
755
- * A portion of the receiver address. The
756
- * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2 country
757
- * code of the receiver country.
758
- */
759
- receiver_country: string;
760
- /**
761
- * An identification number the originator uses for the receiver.
762
- */
763
- receiver_identification_number: string | null;
764
- /**
765
- * A portion of the receiver address. This may be incomplete.
766
- */
767
- receiver_postal_code: string | null;
768
- /**
769
- * A portion of the receiver address. This may be incomplete.
770
- */
771
- receiver_state_or_province: string | null;
772
- /**
773
- * A portion of the receiver address. This may be incomplete.
774
- */
775
- receiver_street_address: string;
776
- /**
777
- * The name of the receiver of the transfer. This is not verified by Increase.
778
- */
779
- receiving_company_or_individual_name: string;
780
- /**
781
- * The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2
782
- * country code of the receiving bank country.
783
- */
784
- receiving_depository_financial_institution_country: string;
785
- /**
786
- * An identifier for the receiving bank. One of an International Bank Account
787
- * Number (IBAN) bank identifier, SWIFT Bank Identification Code (BIC), or a
788
- * domestic identifier like a US Routing Number.
789
- */
790
- receiving_depository_financial_institution_id: string;
791
- /**
792
- * An instruction of how to interpret the
793
- * `receiving_depository_financial_institution_id` field for this Transaction.
794
- *
795
- * - `national_clearing_system_number` - A domestic clearing system number. In the
796
- * US, for example, this is the American Banking Association (ABA) routing
797
- * number.
798
- * - `bic_code` - The SWIFT Bank Identifier Code (BIC) of the bank.
799
- * - `iban` - An International Bank Account Number.
800
- */
801
- receiving_depository_financial_institution_id_qualifier:
802
- | 'national_clearing_system_number'
803
- | 'bic_code'
804
- | 'iban';
805
- /**
806
- * The name of the receiving bank, as set by the sending financial institution.
807
- */
808
- receiving_depository_financial_institution_name: string;
809
- /**
810
- * A 15 digit number recorded in the Nacha file and available to both the
811
- * originating and receiving bank. Along with the amount, date, and originating
812
- * routing number, this can be used to identify the ACH transfer at either bank.
813
- * ACH trace numbers are not unique, but are
814
- * [used to correlate returns](https://increase.com/documentation/ach#returns).
815
- */
816
- trace_number: string;
135
+ inbound_real_time_payments_transfer_decline: Source.InboundRealTimePaymentsTransferDecline | null;
136
+ /**
137
+ * An International ACH Decline object. This field will be present in the JSON
138
+ * response if and only if `category` is equal to `international_ach_decline`.
139
+ */
140
+ international_ach_decline: Source.InternationalACHDecline | null;
141
+ /**
142
+ * A Wire Decline object. This field will be present in the JSON response if and
143
+ * only if `category` is equal to `wire_decline`.
144
+ */
145
+ wire_decline: Source.WireDecline | null;
817
146
  }
818
- /**
819
- * A Wire Decline object. This field will be present in the JSON response if and
820
- * only if `category` is equal to `wire_decline`.
821
- */
822
- interface WireDecline {
823
- /**
824
- * The declined amount in the minor unit of the destination account currency. For
825
- * dollars, for example, this is cents.
826
- */
827
- amount: number;
828
- /**
829
- * A free-form address field set by the sender.
830
- */
831
- beneficiary_address_line1: string | null;
832
- /**
833
- * A free-form address field set by the sender.
834
- */
835
- beneficiary_address_line2: string | null;
836
- /**
837
- * A free-form address field set by the sender.
838
- */
839
- beneficiary_address_line3: string | null;
840
- /**
841
- * A name set by the sender.
842
- */
843
- beneficiary_name: string | null;
844
- /**
845
- * A free-form reference string set by the sender, to help identify the transfer.
846
- */
847
- beneficiary_reference: string | null;
848
- /**
849
- * An Increase-constructed description of the declined transaction.
850
- */
851
- description: string;
852
- /**
853
- * A unique identifier available to the originating and receiving banks, commonly
854
- * abbreviated as IMAD. It is created when the wire is submitted to the Fedwire
855
- * service and is helpful when debugging wires with the originating bank.
856
- */
857
- input_message_accountability_data: string | null;
858
- /**
859
- * The address of the wire originator, set by the sending bank.
860
- */
861
- originator_address_line1: string | null;
862
- /**
863
- * The address of the wire originator, set by the sending bank.
864
- */
865
- originator_address_line2: string | null;
866
- /**
867
- * The address of the wire originator, set by the sending bank.
868
- */
869
- originator_address_line3: string | null;
870
- /**
871
- * The originator of the wire, set by the sending bank.
872
- */
873
- originator_name: string | null;
874
- /**
875
- * A free-form message set by the wire originator.
876
- */
877
- originator_to_beneficiary_information_line1: string | null;
878
- /**
879
- * A free-form message set by the wire originator.
880
- */
881
- originator_to_beneficiary_information_line2: string | null;
882
- /**
883
- * A free-form message set by the wire originator.
884
- */
885
- originator_to_beneficiary_information_line3: string | null;
886
- /**
887
- * A free-form message set by the wire originator.
888
- */
889
- originator_to_beneficiary_information_line4: string | null;
890
- /**
891
- * Why the wire transfer was declined.
892
- *
893
- * - `account_number_canceled` - The account number is canceled.
894
- * - `account_number_disabled` - The account number is disabled.
895
- * - `entity_not_active` - The account's entity is not active.
896
- * - `group_locked` - Your account is inactive.
897
- * - `no_account_number` - The beneficiary account number does not exist.
898
- * - `transaction_not_allowed` - The transaction is not allowed per Increase's
899
- * terms.
900
- */
901
- reason:
902
- | 'account_number_canceled'
903
- | 'account_number_disabled'
904
- | 'entity_not_active'
905
- | 'group_locked'
906
- | 'no_account_number'
907
- | 'transaction_not_allowed';
147
+ namespace Source {
148
+ /**
149
+ * An ACH Decline object. This field will be present in the JSON response if and
150
+ * only if `category` is equal to `ach_decline`.
151
+ */
152
+ interface ACHDecline {
153
+ /**
154
+ * The ACH Decline's identifier.
155
+ */
156
+ id: string;
157
+ /**
158
+ * The declined amount in the minor unit of the destination account currency. For
159
+ * dollars, for example, this is cents.
160
+ */
161
+ amount: number;
162
+ /**
163
+ * The descriptive date of the transfer.
164
+ */
165
+ originator_company_descriptive_date: string | null;
166
+ /**
167
+ * The additional information included with the transfer.
168
+ */
169
+ originator_company_discretionary_data: string | null;
170
+ /**
171
+ * The identifier of the company that initiated the transfer.
172
+ */
173
+ originator_company_id: string;
174
+ /**
175
+ * The name of the company that initiated the transfer.
176
+ */
177
+ originator_company_name: string;
178
+ /**
179
+ * Why the ACH transfer was declined.
180
+ *
181
+ * - `ach_route_canceled` - The account number is canceled.
182
+ * - `ach_route_disabled` - The account number is disabled.
183
+ * - `breaches_limit` - The transaction would cause an Increase limit to be
184
+ * exceeded.
185
+ * - `credit_entry_refused_by_receiver` - A credit was refused. This is a
186
+ * reasonable default reason for decline of credits.
187
+ * - `duplicate_return` - A rare return reason. The return this message refers to
188
+ * was a duplicate.
189
+ * - `entity_not_active` - The account's entity is not active.
190
+ * - `group_locked` - Your account is inactive.
191
+ * - `insufficient_funds` - Your account contains insufficient funds.
192
+ * - `misrouted_return` - A rare return reason. The return this message refers to
193
+ * was misrouted.
194
+ * - `return_of_erroneous_or_reversing_debit` - The originating financial
195
+ * institution made a mistake and this return corrects it.
196
+ * - `no_ach_route` - The account number that was debited does not exist.
197
+ * - `originator_request` - The originating financial institution asked for this
198
+ * transfer to be returned.
199
+ * - `transaction_not_allowed` - The transaction is not allowed per Increase's
200
+ * terms.
201
+ * - `user_initiated` - The user initiated the decline.
202
+ */
203
+ reason: 'ach_route_canceled' | 'ach_route_disabled' | 'breaches_limit' | 'credit_entry_refused_by_receiver' | 'duplicate_return' | 'entity_not_active' | 'group_locked' | 'insufficient_funds' | 'misrouted_return' | 'return_of_erroneous_or_reversing_debit' | 'no_ach_route' | 'originator_request' | 'transaction_not_allowed' | 'user_initiated';
204
+ /**
205
+ * The id of the receiver of the transfer.
206
+ */
207
+ receiver_id_number: string | null;
208
+ /**
209
+ * The name of the receiver of the transfer.
210
+ */
211
+ receiver_name: string | null;
212
+ /**
213
+ * The trace number of the transfer.
214
+ */
215
+ trace_number: string;
216
+ /**
217
+ * A constant representing the object's type. For this resource it will always be
218
+ * `ach_decline`.
219
+ */
220
+ type: 'ach_decline';
221
+ }
222
+ /**
223
+ * A Card Decline object. This field will be present in the JSON response if and
224
+ * only if `category` is equal to `card_decline`.
225
+ */
226
+ interface CardDecline {
227
+ /**
228
+ * The Card Decline identifier.
229
+ */
230
+ id: string;
231
+ /**
232
+ * The declined amount in the minor unit of the destination account currency. For
233
+ * dollars, for example, this is cents.
234
+ */
235
+ amount: number;
236
+ /**
237
+ * The ID of the Card Payment this transaction belongs to.
238
+ */
239
+ card_payment_id: string | null;
240
+ /**
241
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the destination
242
+ * account currency.
243
+ *
244
+ * - `CAD` - Canadian Dollar (CAD)
245
+ * - `CHF` - Swiss Franc (CHF)
246
+ * - `EUR` - Euro (EUR)
247
+ * - `GBP` - British Pound (GBP)
248
+ * - `JPY` - Japanese Yen (JPY)
249
+ * - `USD` - US Dollar (USD)
250
+ */
251
+ currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
252
+ /**
253
+ * If the authorization was made via a Digital Wallet Token (such as an Apple Pay
254
+ * purchase), the identifier of the token that was used.
255
+ */
256
+ digital_wallet_token_id: string | null;
257
+ /**
258
+ * The merchant identifier (commonly abbreviated as MID) of the merchant the card
259
+ * is transacting with.
260
+ */
261
+ merchant_acceptor_id: string;
262
+ /**
263
+ * The Merchant Category Code (commonly abbreviated as MCC) of the merchant the
264
+ * card is transacting with.
265
+ */
266
+ merchant_category_code: string | null;
267
+ /**
268
+ * The city the merchant resides in.
269
+ */
270
+ merchant_city: string | null;
271
+ /**
272
+ * The country the merchant resides in.
273
+ */
274
+ merchant_country: string | null;
275
+ /**
276
+ * The merchant descriptor of the merchant the card is transacting with.
277
+ */
278
+ merchant_descriptor: string;
279
+ /**
280
+ * The state the merchant resides in.
281
+ */
282
+ merchant_state: string | null;
283
+ /**
284
+ * Fields specific to the `network`.
285
+ */
286
+ network_details: CardDecline.NetworkDetails;
287
+ /**
288
+ * If the authorization was made in-person with a physical card, the Physical Card
289
+ * that was used.
290
+ */
291
+ physical_card_id: string | null;
292
+ /**
293
+ * The identifier of the Real-Time Decision sent to approve or decline this
294
+ * transaction.
295
+ */
296
+ real_time_decision_id: string | null;
297
+ /**
298
+ * Why the transaction was declined.
299
+ *
300
+ * - `card_not_active` - The Card was not active.
301
+ * - `physical_card_not_active` - The Physical Card was not active.
302
+ * - `entity_not_active` - The account's entity was not active.
303
+ * - `group_locked` - The account was inactive.
304
+ * - `insufficient_funds` - The Card's Account did not have a sufficient available
305
+ * balance.
306
+ * - `cvv2_mismatch` - The given CVV2 did not match the card's value.
307
+ * - `transaction_not_allowed` - The attempted card transaction is not allowed per
308
+ * Increase's terms.
309
+ * - `breaches_limit` - The transaction was blocked by a Limit.
310
+ * - `webhook_declined` - Your application declined the transaction via webhook.
311
+ * - `webhook_timed_out` - Your application webhook did not respond without the
312
+ * required timeout.
313
+ * - `declined_by_stand_in_processing` - Declined by stand-in processing.
314
+ * - `invalid_physical_card` - The card read had an invalid CVV, dCVV, or
315
+ * authorization request cryptogram.
316
+ * - `missing_original_authorization` - The original card authorization for this
317
+ * incremental authorization does not exist.
318
+ * - `suspected_fraud` - The transaction was suspected to be fraudulent. Please
319
+ * reach out to support@increase.com for more information.
320
+ */
321
+ reason: 'card_not_active' | 'physical_card_not_active' | 'entity_not_active' | 'group_locked' | 'insufficient_funds' | 'cvv2_mismatch' | 'transaction_not_allowed' | 'breaches_limit' | 'webhook_declined' | 'webhook_timed_out' | 'declined_by_stand_in_processing' | 'invalid_physical_card' | 'missing_original_authorization' | 'suspected_fraud';
322
+ }
323
+ namespace CardDecline {
324
+ /**
325
+ * Fields specific to the `network`.
326
+ */
327
+ interface NetworkDetails {
328
+ /**
329
+ * The payment network used to process this card authorization.
330
+ *
331
+ * - `visa` - Visa
332
+ */
333
+ category: 'visa';
334
+ /**
335
+ * Fields specific to the `visa` network.
336
+ */
337
+ visa: NetworkDetails.Visa | null;
338
+ }
339
+ namespace NetworkDetails {
340
+ /**
341
+ * Fields specific to the `visa` network.
342
+ */
343
+ interface Visa {
344
+ /**
345
+ * For electronic commerce transactions, this identifies the level of security used
346
+ * in obtaining the customer's payment credential. For mail or telephone order
347
+ * transactions, identifies the type of mail or telephone order.
348
+ *
349
+ * - `mail_phone_order` - Single transaction of a mail/phone order: Use to indicate
350
+ * that the transaction is a mail/phone order purchase, not a recurring
351
+ * transaction or installment payment. For domestic transactions in the US
352
+ * region, this value may also indicate one bill payment transaction in the
353
+ * card-present or card-absent environments.
354
+ * - `recurring` - Recurring transaction: Payment indicator used to indicate a
355
+ * recurring transaction that originates from an acquirer in the US region.
356
+ * - `installment` - Installment payment: Payment indicator used to indicate one
357
+ * purchase of goods or services that is billed to the account in multiple
358
+ * charges over a period of time agreed upon by the cardholder and merchant from
359
+ * transactions that originate from an acquirer in the US region.
360
+ * - `unknown_mail_phone_order` - Unknown classification: other mail order: Use to
361
+ * indicate that the type of mail/telephone order is unknown.
362
+ * - `secure_electronic_commerce` - Secure electronic commerce transaction: Use to
363
+ * indicate that the electronic commerce transaction has been authenticated using
364
+ * e.g., 3-D Secure
365
+ * - `non_authenticated_security_transaction_at_3ds_capable_merchant` -
366
+ * Non-authenticated security transaction at a 3-D Secure-capable merchant, and
367
+ * merchant attempted to authenticate the cardholder using 3-D Secure: Use to
368
+ * identify an electronic commerce transaction where the merchant attempted to
369
+ * authenticate the cardholder using 3-D Secure, but was unable to complete the
370
+ * authentication because the issuer or cardholder does not participate in the
371
+ * 3-D Secure program.
372
+ * - `non_authenticated_security_transaction` - Non-authenticated security
373
+ * transaction: Use to identify an electronic commerce transaction that uses data
374
+ * encryption for security however , cardholder authentication is not performed
375
+ * using 3-D Secure.
376
+ * - `non_secure_transaction` - Non-secure transaction: Use to identify an
377
+ * electronic commerce transaction that has no data protection.
378
+ */
379
+ electronic_commerce_indicator: 'mail_phone_order' | 'recurring' | 'installment' | 'unknown_mail_phone_order' | 'secure_electronic_commerce' | 'non_authenticated_security_transaction_at_3ds_capable_merchant' | 'non_authenticated_security_transaction' | 'non_secure_transaction' | null;
380
+ /**
381
+ * The method used to enter the cardholder's primary account number and card
382
+ * expiration date.
383
+ *
384
+ * - `unknown` - Unknown
385
+ * - `manual` - Manual key entry
386
+ * - `magnetic_stripe_no_cvv` - Magnetic stripe read, without card verification
387
+ * value
388
+ * - `optical_code` - Optical code
389
+ * - `integrated_circuit_card` - Contact chip card
390
+ * - `contactless` - Contactless read of chip card
391
+ * - `credential_on_file` - Transaction initiated using a credential that has
392
+ * previously been stored on file
393
+ * - `magnetic_stripe` - Magnetic stripe read
394
+ * - `contactless_magnetic_stripe` - Contactless read of magnetic stripe data
395
+ * - `integrated_circuit_card_no_cvv` - Contact chip card, without card
396
+ * verification value
397
+ */
398
+ point_of_service_entry_mode: 'unknown' | 'manual' | 'magnetic_stripe_no_cvv' | 'optical_code' | 'integrated_circuit_card' | 'contactless' | 'credential_on_file' | 'magnetic_stripe' | 'contactless_magnetic_stripe' | 'integrated_circuit_card_no_cvv' | null;
399
+ }
400
+ }
401
+ }
402
+ /**
403
+ * A Check Decline object. This field will be present in the JSON response if and
404
+ * only if `category` is equal to `check_decline`.
405
+ */
406
+ interface CheckDecline {
407
+ /**
408
+ * The declined amount in the minor unit of the destination account currency. For
409
+ * dollars, for example, this is cents.
410
+ */
411
+ amount: number;
412
+ /**
413
+ * A computer-readable number printed on the MICR line of business checks, usually
414
+ * the check number. This is useful for positive pay checks, but can be unreliably
415
+ * transmitted by the bank of first deposit.
416
+ */
417
+ auxiliary_on_us: string | null;
418
+ /**
419
+ * Why the check was declined.
420
+ *
421
+ * - `ach_route_disabled` - The account number is disabled.
422
+ * - `ach_route_canceled` - The account number is canceled.
423
+ * - `breaches_limit` - The transaction would cause a limit to be exceeded.
424
+ * - `entity_not_active` - The account's entity is not active.
425
+ * - `group_locked` - Your account is inactive.
426
+ * - `insufficient_funds` - Your account contains insufficient funds.
427
+ * - `stop_payment_requested` - Stop payment requested for this check.
428
+ * - `duplicate_presentment` - The check was a duplicate deposit.
429
+ * - `not_authorized` - The check was not authorized.
430
+ * - `amount_mismatch` - The amount the receiving bank is attempting to deposit
431
+ * does not match the amount on the check.
432
+ * - `not_our_item` - The check attempting to be deposited does not belong to
433
+ * Increase.
434
+ */
435
+ reason: 'ach_route_disabled' | 'ach_route_canceled' | 'breaches_limit' | 'entity_not_active' | 'group_locked' | 'insufficient_funds' | 'stop_payment_requested' | 'duplicate_presentment' | 'not_authorized' | 'amount_mismatch' | 'not_our_item';
436
+ }
437
+ /**
438
+ * An Inbound Real-Time Payments Transfer Decline object. This field will be
439
+ * present in the JSON response if and only if `category` is equal to
440
+ * `inbound_real_time_payments_transfer_decline`.
441
+ */
442
+ interface InboundRealTimePaymentsTransferDecline {
443
+ /**
444
+ * The declined amount in the minor unit of the destination account currency. For
445
+ * dollars, for example, this is cents.
446
+ */
447
+ amount: number;
448
+ /**
449
+ * The name the sender of the transfer specified as the recipient of the transfer.
450
+ */
451
+ creditor_name: string;
452
+ /**
453
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code of the declined
454
+ * transfer's currency. This will always be "USD" for a Real-Time Payments
455
+ * transfer.
456
+ *
457
+ * - `CAD` - Canadian Dollar (CAD)
458
+ * - `CHF` - Swiss Franc (CHF)
459
+ * - `EUR` - Euro (EUR)
460
+ * - `GBP` - British Pound (GBP)
461
+ * - `JPY` - Japanese Yen (JPY)
462
+ * - `USD` - US Dollar (USD)
463
+ */
464
+ currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
465
+ /**
466
+ * The account number of the account that sent the transfer.
467
+ */
468
+ debtor_account_number: string;
469
+ /**
470
+ * The name provided by the sender of the transfer.
471
+ */
472
+ debtor_name: string;
473
+ /**
474
+ * The routing number of the account that sent the transfer.
475
+ */
476
+ debtor_routing_number: string;
477
+ /**
478
+ * Why the transfer was declined.
479
+ *
480
+ * - `account_number_canceled` - The account number is canceled.
481
+ * - `account_number_disabled` - The account number is disabled.
482
+ * - `account_restricted` - Your account is restricted.
483
+ * - `group_locked` - Your account is inactive.
484
+ * - `entity_not_active` - The account's entity is not active.
485
+ * - `real_time_payments_not_enabled` - Your account is not enabled to receive
486
+ * Real-Time Payments transfers.
487
+ */
488
+ reason: 'account_number_canceled' | 'account_number_disabled' | 'account_restricted' | 'group_locked' | 'entity_not_active' | 'real_time_payments_not_enabled';
489
+ /**
490
+ * Additional information included with the transfer.
491
+ */
492
+ remittance_information: string | null;
493
+ /**
494
+ * The Real-Time Payments network identification of the declined transfer.
495
+ */
496
+ transaction_identification: string;
497
+ }
498
+ /**
499
+ * An International ACH Decline object. This field will be present in the JSON
500
+ * response if and only if `category` is equal to `international_ach_decline`.
501
+ */
502
+ interface InternationalACHDecline {
503
+ /**
504
+ * The declined amount in the minor unit of the destination account currency. For
505
+ * dollars, for example, this is cents.
506
+ */
507
+ amount: number;
508
+ /**
509
+ * The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2
510
+ * country code of the destination country.
511
+ */
512
+ destination_country_code: string;
513
+ /**
514
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code for the
515
+ * destination bank account.
516
+ */
517
+ destination_currency_code: string;
518
+ /**
519
+ * A description of how the foreign exchange rate was calculated.
520
+ *
521
+ * - `fixed_to_variable` - The originator chose an amount in their own currency.
522
+ * The settled amount in USD was converted using the exchange rate.
523
+ * - `variable_to_fixed` - The originator chose an amount to settle in USD. The
524
+ * originator's amount was variable; known only after the foreign exchange
525
+ * conversion.
526
+ * - `fixed_to_fixed` - The amount was originated and settled as a fixed amount in
527
+ * USD. There is no foreign exchange conversion.
528
+ */
529
+ foreign_exchange_indicator: 'fixed_to_variable' | 'variable_to_fixed' | 'fixed_to_fixed';
530
+ /**
531
+ * Depending on the `foreign_exchange_reference_indicator`, an exchange rate or a
532
+ * reference to a well-known rate.
533
+ */
534
+ foreign_exchange_reference: string | null;
535
+ /**
536
+ * An instruction of how to interpret the `foreign_exchange_reference` field for
537
+ * this Transaction.
538
+ *
539
+ * - `foreign_exchange_rate` - The ACH file contains a foreign exchange rate.
540
+ * - `foreign_exchange_reference_number` - The ACH file contains a reference to a
541
+ * well-known foreign exchange rate.
542
+ * - `blank` - There is no foreign exchange for this transfer, so the
543
+ * `foreign_exchange_reference` field is blank.
544
+ */
545
+ foreign_exchange_reference_indicator: 'foreign_exchange_rate' | 'foreign_exchange_reference_number' | 'blank';
546
+ /**
547
+ * The amount in the minor unit of the foreign payment currency. For dollars, for
548
+ * example, this is cents.
549
+ */
550
+ foreign_payment_amount: number;
551
+ /**
552
+ * A reference number in the foreign banking infrastructure.
553
+ */
554
+ foreign_trace_number: string | null;
555
+ /**
556
+ * The type of transfer. Set by the originator.
557
+ *
558
+ * - `annuity` - Sent as `ANN` in the Nacha file.
559
+ * - `business_or_commercial` - Sent as `BUS` in the Nacha file.
560
+ * - `deposit` - Sent as `DEP` in the Nacha file.
561
+ * - `loan` - Sent as `LOA` in the Nacha file.
562
+ * - `miscellaneous` - Sent as `MIS` in the Nacha file.
563
+ * - `mortgage` - Sent as `MOR` in the Nacha file.
564
+ * - `pension` - Sent as `PEN` in the Nacha file.
565
+ * - `remittance` - Sent as `REM` in the Nacha file.
566
+ * - `rent_or_lease` - Sent as `RLS` in the Nacha file.
567
+ * - `salary_or_payroll` - Sent as `SAL` in the Nacha file.
568
+ * - `tax` - Sent as `TAX` in the Nacha file.
569
+ * - `accounts_receivable` - Sent as `ARC` in the Nacha file.
570
+ * - `back_office_conversion` - Sent as `BOC` in the Nacha file.
571
+ * - `machine_transfer` - Sent as `MTE` in the Nacha file.
572
+ * - `point_of_purchase` - Sent as `POP` in the Nacha file.
573
+ * - `point_of_sale` - Sent as `POS` in the Nacha file.
574
+ * - `represented_check` - Sent as `RCK` in the Nacha file.
575
+ * - `shared_network_transaction` - Sent as `SHR` in the Nacha file.
576
+ * - `telphone_initiated` - Sent as `TEL` in the Nacha file.
577
+ * - `internet_initiated` - Sent as `WEB` in the Nacha file.
578
+ */
579
+ international_transaction_type_code: 'annuity' | 'business_or_commercial' | 'deposit' | 'loan' | 'miscellaneous' | 'mortgage' | 'pension' | 'remittance' | 'rent_or_lease' | 'salary_or_payroll' | 'tax' | 'accounts_receivable' | 'back_office_conversion' | 'machine_transfer' | 'point_of_purchase' | 'point_of_sale' | 'represented_check' | 'shared_network_transaction' | 'telphone_initiated' | 'internet_initiated';
580
+ /**
581
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code for the
582
+ * originating bank account.
583
+ */
584
+ originating_currency_code: string;
585
+ /**
586
+ * The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2
587
+ * country code of the originating branch country.
588
+ */
589
+ originating_depository_financial_institution_branch_country: string;
590
+ /**
591
+ * An identifier for the originating bank. One of an International Bank Account
592
+ * Number (IBAN) bank identifier, SWIFT Bank Identification Code (BIC), or a
593
+ * domestic identifier like a US Routing Number.
594
+ */
595
+ originating_depository_financial_institution_id: string;
596
+ /**
597
+ * An instruction of how to interpret the
598
+ * `originating_depository_financial_institution_id` field for this Transaction.
599
+ *
600
+ * - `national_clearing_system_number` - A domestic clearing system number. In the
601
+ * US, for example, this is the American Banking Association (ABA) routing
602
+ * number.
603
+ * - `bic_code` - The SWIFT Bank Identifier Code (BIC) of the bank.
604
+ * - `iban` - An International Bank Account Number.
605
+ */
606
+ originating_depository_financial_institution_id_qualifier: 'national_clearing_system_number' | 'bic_code' | 'iban';
607
+ /**
608
+ * The name of the originating bank. Sometimes this will refer to an American bank
609
+ * and obscure the correspondent foreign bank.
610
+ */
611
+ originating_depository_financial_institution_name: string;
612
+ /**
613
+ * A portion of the originator address. This may be incomplete.
614
+ */
615
+ originator_city: string;
616
+ /**
617
+ * A description field set by the originator.
618
+ */
619
+ originator_company_entry_description: string;
620
+ /**
621
+ * A portion of the originator address. The
622
+ * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2 country
623
+ * code of the originator country.
624
+ */
625
+ originator_country: string;
626
+ /**
627
+ * An identifier for the originating company. This is generally stable across
628
+ * multiple ACH transfers.
629
+ */
630
+ originator_identification: string;
631
+ /**
632
+ * Either the name of the originator or an intermediary money transmitter.
633
+ */
634
+ originator_name: string;
635
+ /**
636
+ * A portion of the originator address. This may be incomplete.
637
+ */
638
+ originator_postal_code: string | null;
639
+ /**
640
+ * A portion of the originator address. This may be incomplete.
641
+ */
642
+ originator_state_or_province: string | null;
643
+ /**
644
+ * A portion of the originator address. This may be incomplete.
645
+ */
646
+ originator_street_address: string;
647
+ /**
648
+ * A description field set by the originator.
649
+ */
650
+ payment_related_information: string | null;
651
+ /**
652
+ * A description field set by the originator.
653
+ */
654
+ payment_related_information2: string | null;
655
+ /**
656
+ * A portion of the receiver address. This may be incomplete.
657
+ */
658
+ receiver_city: string;
659
+ /**
660
+ * A portion of the receiver address. The
661
+ * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2 country
662
+ * code of the receiver country.
663
+ */
664
+ receiver_country: string;
665
+ /**
666
+ * An identification number the originator uses for the receiver.
667
+ */
668
+ receiver_identification_number: string | null;
669
+ /**
670
+ * A portion of the receiver address. This may be incomplete.
671
+ */
672
+ receiver_postal_code: string | null;
673
+ /**
674
+ * A portion of the receiver address. This may be incomplete.
675
+ */
676
+ receiver_state_or_province: string | null;
677
+ /**
678
+ * A portion of the receiver address. This may be incomplete.
679
+ */
680
+ receiver_street_address: string;
681
+ /**
682
+ * The name of the receiver of the transfer. This is not verified by Increase.
683
+ */
684
+ receiving_company_or_individual_name: string;
685
+ /**
686
+ * The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2
687
+ * country code of the receiving bank country.
688
+ */
689
+ receiving_depository_financial_institution_country: string;
690
+ /**
691
+ * An identifier for the receiving bank. One of an International Bank Account
692
+ * Number (IBAN) bank identifier, SWIFT Bank Identification Code (BIC), or a
693
+ * domestic identifier like a US Routing Number.
694
+ */
695
+ receiving_depository_financial_institution_id: string;
696
+ /**
697
+ * An instruction of how to interpret the
698
+ * `receiving_depository_financial_institution_id` field for this Transaction.
699
+ *
700
+ * - `national_clearing_system_number` - A domestic clearing system number. In the
701
+ * US, for example, this is the American Banking Association (ABA) routing
702
+ * number.
703
+ * - `bic_code` - The SWIFT Bank Identifier Code (BIC) of the bank.
704
+ * - `iban` - An International Bank Account Number.
705
+ */
706
+ receiving_depository_financial_institution_id_qualifier: 'national_clearing_system_number' | 'bic_code' | 'iban';
707
+ /**
708
+ * The name of the receiving bank, as set by the sending financial institution.
709
+ */
710
+ receiving_depository_financial_institution_name: string;
711
+ /**
712
+ * A 15 digit number recorded in the Nacha file and available to both the
713
+ * originating and receiving bank. Along with the amount, date, and originating
714
+ * routing number, this can be used to identify the ACH transfer at either bank.
715
+ * ACH trace numbers are not unique, but are
716
+ * [used to correlate returns](https://increase.com/documentation/ach#returns).
717
+ */
718
+ trace_number: string;
719
+ }
720
+ /**
721
+ * A Wire Decline object. This field will be present in the JSON response if and
722
+ * only if `category` is equal to `wire_decline`.
723
+ */
724
+ interface WireDecline {
725
+ /**
726
+ * The declined amount in the minor unit of the destination account currency. For
727
+ * dollars, for example, this is cents.
728
+ */
729
+ amount: number;
730
+ /**
731
+ * A free-form address field set by the sender.
732
+ */
733
+ beneficiary_address_line1: string | null;
734
+ /**
735
+ * A free-form address field set by the sender.
736
+ */
737
+ beneficiary_address_line2: string | null;
738
+ /**
739
+ * A free-form address field set by the sender.
740
+ */
741
+ beneficiary_address_line3: string | null;
742
+ /**
743
+ * A name set by the sender.
744
+ */
745
+ beneficiary_name: string | null;
746
+ /**
747
+ * A free-form reference string set by the sender, to help identify the transfer.
748
+ */
749
+ beneficiary_reference: string | null;
750
+ /**
751
+ * An Increase-constructed description of the declined transaction.
752
+ */
753
+ description: string;
754
+ /**
755
+ * A unique identifier available to the originating and receiving banks, commonly
756
+ * abbreviated as IMAD. It is created when the wire is submitted to the Fedwire
757
+ * service and is helpful when debugging wires with the originating bank.
758
+ */
759
+ input_message_accountability_data: string | null;
760
+ /**
761
+ * The address of the wire originator, set by the sending bank.
762
+ */
763
+ originator_address_line1: string | null;
764
+ /**
765
+ * The address of the wire originator, set by the sending bank.
766
+ */
767
+ originator_address_line2: string | null;
768
+ /**
769
+ * The address of the wire originator, set by the sending bank.
770
+ */
771
+ originator_address_line3: string | null;
772
+ /**
773
+ * The originator of the wire, set by the sending bank.
774
+ */
775
+ originator_name: string | null;
776
+ /**
777
+ * A free-form message set by the wire originator.
778
+ */
779
+ originator_to_beneficiary_information_line1: string | null;
780
+ /**
781
+ * A free-form message set by the wire originator.
782
+ */
783
+ originator_to_beneficiary_information_line2: string | null;
784
+ /**
785
+ * A free-form message set by the wire originator.
786
+ */
787
+ originator_to_beneficiary_information_line3: string | null;
788
+ /**
789
+ * A free-form message set by the wire originator.
790
+ */
791
+ originator_to_beneficiary_information_line4: string | null;
792
+ /**
793
+ * Why the wire transfer was declined.
794
+ *
795
+ * - `account_number_canceled` - The account number is canceled.
796
+ * - `account_number_disabled` - The account number is disabled.
797
+ * - `entity_not_active` - The account's entity is not active.
798
+ * - `group_locked` - Your account is inactive.
799
+ * - `no_account_number` - The beneficiary account number does not exist.
800
+ * - `transaction_not_allowed` - The transaction is not allowed per Increase's
801
+ * terms.
802
+ */
803
+ reason: 'account_number_canceled' | 'account_number_disabled' | 'entity_not_active' | 'group_locked' | 'no_account_number' | 'transaction_not_allowed';
804
+ }
908
805
  }
909
- }
910
806
  }
911
807
  export interface DeclinedTransactionListParams extends PageParams {
912
- /**
913
- * Filter Declined Transactions to ones belonging to the specified Account.
914
- */
915
- account_id?: string;
916
- category?: DeclinedTransactionListParams.Category;
917
- created_at?: DeclinedTransactionListParams.CreatedAt;
918
- /**
919
- * Filter Declined Transactions to those belonging to the specified route.
920
- */
921
- route_id?: string;
922
- }
923
- export declare namespace DeclinedTransactionListParams {
924
- interface Category {
925
- /**
926
- * Return results whose value is in the provided list. For GET requests, this
927
- * should be encoded as a comma-delimited string, such as `?in=one,two,three`.
928
- */
929
- in?: Array<
930
- | 'ach_decline'
931
- | 'card_decline'
932
- | 'check_decline'
933
- | 'inbound_real_time_payments_transfer_decline'
934
- | 'international_ach_decline'
935
- | 'wire_decline'
936
- | 'other'
937
- >;
938
- }
939
- interface CreatedAt {
940
- /**
941
- * Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
942
- * timestamp.
943
- */
944
- after?: string;
945
- /**
946
- * Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
947
- * timestamp.
948
- */
949
- before?: string;
950
808
  /**
951
- * Return results on or after this
952
- * [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
809
+ * Filter Declined Transactions to ones belonging to the specified Account.
953
810
  */
954
- on_or_after?: string;
811
+ account_id?: string;
812
+ category?: DeclinedTransactionListParams.Category;
813
+ created_at?: DeclinedTransactionListParams.CreatedAt;
955
814
  /**
956
- * Return results on or before this
957
- * [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
815
+ * Filter Declined Transactions to those belonging to the specified route.
958
816
  */
959
- on_or_before?: string;
960
- }
817
+ route_id?: string;
818
+ }
819
+ export declare namespace DeclinedTransactionListParams {
820
+ interface Category {
821
+ /**
822
+ * Return results whose value is in the provided list. For GET requests, this
823
+ * should be encoded as a comma-delimited string, such as `?in=one,two,three`.
824
+ */
825
+ in?: Array<'ach_decline' | 'card_decline' | 'check_decline' | 'inbound_real_time_payments_transfer_decline' | 'international_ach_decline' | 'wire_decline' | 'other'>;
826
+ }
827
+ interface CreatedAt {
828
+ /**
829
+ * Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
830
+ * timestamp.
831
+ */
832
+ after?: string;
833
+ /**
834
+ * Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
835
+ * timestamp.
836
+ */
837
+ before?: string;
838
+ /**
839
+ * Return results on or after this
840
+ * [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
841
+ */
842
+ on_or_after?: string;
843
+ /**
844
+ * Return results on or before this
845
+ * [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
846
+ */
847
+ on_or_before?: string;
848
+ }
961
849
  }
962
850
  export declare namespace DeclinedTransactions {
963
- export import DeclinedTransaction = API.DeclinedTransaction;
964
- type DeclinedTransactionsPage = _DeclinedTransactionsPage;
965
- export import DeclinedTransactionListParams = API.DeclinedTransactionListParams;
851
+ export import DeclinedTransaction = API.DeclinedTransaction;
852
+ type DeclinedTransactionsPage = _DeclinedTransactionsPage;
853
+ export import DeclinedTransactionListParams = API.DeclinedTransactionListParams;
966
854
  }
967
855
  export {};
968
- //# sourceMappingURL=declined-transactions.d.ts.map
856
+ //# sourceMappingURL=declined-transactions.d.ts.map