increase 0.27.0 → 0.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (246) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/README.md +2 -2
  3. package/core.d.ts.map +1 -1
  4. package/core.js +2 -1
  5. package/core.js.map +1 -1
  6. package/core.mjs +2 -1
  7. package/core.mjs.map +1 -1
  8. package/error.d.ts +5 -5
  9. package/error.d.ts.map +1 -1
  10. package/error.js +9 -9
  11. package/error.js.map +1 -1
  12. package/error.mjs +6 -6
  13. package/error.mjs.map +1 -1
  14. package/index.d.mts +21 -9
  15. package/index.d.ts +21 -9
  16. package/index.d.ts.map +1 -1
  17. package/index.js +10 -7
  18. package/index.js.map +1 -1
  19. package/index.mjs +9 -6
  20. package/index.mjs.map +1 -1
  21. package/package.json +4 -1
  22. package/resources/account-numbers.d.ts +13 -14
  23. package/resources/account-numbers.d.ts.map +1 -1
  24. package/resources/account-numbers.js.map +1 -1
  25. package/resources/account-numbers.mjs.map +1 -1
  26. package/resources/account-transfers.d.ts +11 -12
  27. package/resources/account-transfers.d.ts.map +1 -1
  28. package/resources/account-transfers.js.map +1 -1
  29. package/resources/account-transfers.mjs.map +1 -1
  30. package/resources/accounts.d.ts +13 -0
  31. package/resources/accounts.d.ts.map +1 -1
  32. package/resources/accounts.js.map +1 -1
  33. package/resources/accounts.mjs.map +1 -1
  34. package/resources/ach-prenotifications.d.ts +13 -0
  35. package/resources/ach-prenotifications.d.ts.map +1 -1
  36. package/resources/ach-prenotifications.js.map +1 -1
  37. package/resources/ach-prenotifications.mjs.map +1 -1
  38. package/resources/ach-transfers.d.ts +172 -12
  39. package/resources/ach-transfers.d.ts.map +1 -1
  40. package/resources/ach-transfers.js.map +1 -1
  41. package/resources/ach-transfers.mjs.map +1 -1
  42. package/resources/bookkeeping-accounts.d.ts +13 -0
  43. package/resources/bookkeeping-accounts.d.ts.map +1 -1
  44. package/resources/bookkeeping-accounts.js.map +1 -1
  45. package/resources/bookkeeping-accounts.mjs.map +1 -1
  46. package/resources/bookkeeping-entry-sets.d.ts +13 -0
  47. package/resources/bookkeeping-entry-sets.d.ts.map +1 -1
  48. package/resources/bookkeeping-entry-sets.js.map +1 -1
  49. package/resources/bookkeeping-entry-sets.mjs.map +1 -1
  50. package/resources/card-disputes.d.ts +13 -0
  51. package/resources/card-disputes.d.ts.map +1 -1
  52. package/resources/card-disputes.js.map +1 -1
  53. package/resources/card-disputes.mjs.map +1 -1
  54. package/resources/cards.d.ts +17 -4
  55. package/resources/cards.d.ts.map +1 -1
  56. package/resources/cards.js.map +1 -1
  57. package/resources/cards.mjs.map +1 -1
  58. package/resources/check-deposits.d.ts +16 -2
  59. package/resources/check-deposits.d.ts.map +1 -1
  60. package/resources/check-deposits.js.map +1 -1
  61. package/resources/check-deposits.mjs.map +1 -1
  62. package/resources/check-transfers.d.ts +11 -12
  63. package/resources/check-transfers.d.ts.map +1 -1
  64. package/resources/check-transfers.js.map +1 -1
  65. package/resources/check-transfers.mjs.map +1 -1
  66. package/resources/declined-transactions.d.ts +4 -1
  67. package/resources/declined-transactions.d.ts.map +1 -1
  68. package/resources/declined-transactions.js.map +1 -1
  69. package/resources/declined-transactions.mjs.map +1 -1
  70. package/resources/digital-card-profiles.d.ts +268 -0
  71. package/resources/digital-card-profiles.d.ts.map +1 -0
  72. package/resources/digital-card-profiles.js +71 -0
  73. package/resources/digital-card-profiles.js.map +1 -0
  74. package/resources/digital-card-profiles.mjs +43 -0
  75. package/resources/digital-card-profiles.mjs.map +1 -0
  76. package/resources/entities/entities.d.ts +19 -0
  77. package/resources/entities/entities.d.ts.map +1 -1
  78. package/resources/entities/entities.js.map +1 -1
  79. package/resources/entities/entities.mjs.map +1 -1
  80. package/resources/entities/supplemental-documents.d.ts +13 -0
  81. package/resources/entities/supplemental-documents.d.ts.map +1 -1
  82. package/resources/entities/supplemental-documents.js.map +1 -1
  83. package/resources/entities/supplemental-documents.mjs.map +1 -1
  84. package/resources/event-subscriptions.d.ts +13 -0
  85. package/resources/event-subscriptions.d.ts.map +1 -1
  86. package/resources/event-subscriptions.js.map +1 -1
  87. package/resources/event-subscriptions.mjs.map +1 -1
  88. package/resources/exports.d.ts +6 -0
  89. package/resources/exports.d.ts.map +1 -1
  90. package/resources/exports.js.map +1 -1
  91. package/resources/exports.mjs.map +1 -1
  92. package/resources/external-accounts.d.ts +36 -0
  93. package/resources/external-accounts.d.ts.map +1 -1
  94. package/resources/external-accounts.js.map +1 -1
  95. package/resources/external-accounts.mjs.map +1 -1
  96. package/resources/files.d.ts +13 -0
  97. package/resources/files.d.ts.map +1 -1
  98. package/resources/files.js.map +1 -1
  99. package/resources/files.mjs.map +1 -1
  100. package/resources/inbound-ach-transfers.d.ts +4 -0
  101. package/resources/inbound-ach-transfers.d.ts.map +1 -1
  102. package/resources/inbound-ach-transfers.js.map +1 -1
  103. package/resources/inbound-ach-transfers.mjs.map +1 -1
  104. package/resources/inbound-wire-transfers.d.ts +4 -0
  105. package/resources/inbound-wire-transfers.d.ts.map +1 -1
  106. package/resources/inbound-wire-transfers.js.map +1 -1
  107. package/resources/inbound-wire-transfers.mjs.map +1 -1
  108. package/resources/index.d.ts +3 -2
  109. package/resources/index.d.ts.map +1 -1
  110. package/resources/index.js +8 -5
  111. package/resources/index.js.map +1 -1
  112. package/resources/index.mjs +3 -2
  113. package/resources/index.mjs.map +1 -1
  114. package/resources/intrafi/account-enrollments.d.ts +13 -0
  115. package/resources/intrafi/account-enrollments.d.ts.map +1 -1
  116. package/resources/intrafi/account-enrollments.js.map +1 -1
  117. package/resources/intrafi/account-enrollments.mjs.map +1 -1
  118. package/resources/intrafi/exclusions.d.ts +13 -0
  119. package/resources/intrafi/exclusions.d.ts.map +1 -1
  120. package/resources/intrafi/exclusions.js.map +1 -1
  121. package/resources/intrafi/exclusions.mjs.map +1 -1
  122. package/resources/physical-card-profiles.d.ts +166 -0
  123. package/resources/physical-card-profiles.d.ts.map +1 -0
  124. package/resources/{card-profiles.js → physical-card-profiles.js} +27 -18
  125. package/resources/physical-card-profiles.js.map +1 -0
  126. package/resources/physical-card-profiles.mjs +46 -0
  127. package/resources/physical-card-profiles.mjs.map +1 -0
  128. package/resources/physical-cards.d.ts +17 -4
  129. package/resources/physical-cards.d.ts.map +1 -1
  130. package/resources/physical-cards.js.map +1 -1
  131. package/resources/physical-cards.mjs.map +1 -1
  132. package/resources/programs.d.ts +4 -0
  133. package/resources/programs.d.ts.map +1 -1
  134. package/resources/programs.js.map +1 -1
  135. package/resources/programs.mjs.map +1 -1
  136. package/resources/proof-of-authorization-request-submissions.d.ts +13 -0
  137. package/resources/proof-of-authorization-request-submissions.d.ts.map +1 -1
  138. package/resources/proof-of-authorization-request-submissions.js.map +1 -1
  139. package/resources/proof-of-authorization-request-submissions.mjs.map +1 -1
  140. package/resources/real-time-decisions.d.ts +6 -1
  141. package/resources/real-time-decisions.d.ts.map +1 -1
  142. package/resources/real-time-decisions.js.map +1 -1
  143. package/resources/real-time-decisions.mjs.map +1 -1
  144. package/resources/real-time-payments-request-for-payments.d.ts +13 -0
  145. package/resources/real-time-payments-request-for-payments.d.ts.map +1 -1
  146. package/resources/real-time-payments-request-for-payments.js.map +1 -1
  147. package/resources/real-time-payments-request-for-payments.mjs.map +1 -1
  148. package/resources/real-time-payments-transfers.d.ts +11 -12
  149. package/resources/real-time-payments-transfers.d.ts.map +1 -1
  150. package/resources/real-time-payments-transfers.js.map +1 -1
  151. package/resources/real-time-payments-transfers.mjs.map +1 -1
  152. package/resources/simulations/cards.d.ts +4 -1
  153. package/resources/simulations/cards.d.ts.map +1 -1
  154. package/resources/simulations/cards.js.map +1 -1
  155. package/resources/simulations/cards.mjs.map +1 -1
  156. package/resources/simulations/index.d.ts +2 -3
  157. package/resources/simulations/index.d.ts.map +1 -1
  158. package/resources/simulations/index.js +1 -3
  159. package/resources/simulations/index.js.map +1 -1
  160. package/resources/simulations/index.mjs +2 -3
  161. package/resources/simulations/index.mjs.map +1 -1
  162. package/resources/simulations/interest-payments.d.ts +2 -2745
  163. package/resources/simulations/interest-payments.d.ts.map +1 -1
  164. package/resources/simulations/interest-payments.js.map +1 -1
  165. package/resources/simulations/interest-payments.mjs.map +1 -1
  166. package/resources/simulations/real-time-payments-transfers.d.ts +6 -2
  167. package/resources/simulations/real-time-payments-transfers.d.ts.map +1 -1
  168. package/resources/simulations/real-time-payments-transfers.js.map +1 -1
  169. package/resources/simulations/real-time-payments-transfers.mjs.map +1 -1
  170. package/resources/simulations/simulations.d.ts +74 -4
  171. package/resources/simulations/simulations.d.ts.map +1 -1
  172. package/resources/simulations/simulations.js +30 -3
  173. package/resources/simulations/simulations.js.map +1 -1
  174. package/resources/simulations/simulations.mjs +30 -3
  175. package/resources/simulations/simulations.mjs.map +1 -1
  176. package/resources/transactions.d.ts +2 -1
  177. package/resources/transactions.d.ts.map +1 -1
  178. package/resources/transactions.js.map +1 -1
  179. package/resources/transactions.mjs.map +1 -1
  180. package/resources/wire-drawdown-requests.d.ts +6 -0
  181. package/resources/wire-drawdown-requests.d.ts.map +1 -1
  182. package/resources/wire-drawdown-requests.js.map +1 -1
  183. package/resources/wire-drawdown-requests.mjs.map +1 -1
  184. package/resources/wire-transfers.d.ts +11 -12
  185. package/resources/wire-transfers.d.ts.map +1 -1
  186. package/resources/wire-transfers.js.map +1 -1
  187. package/resources/wire-transfers.mjs.map +1 -1
  188. package/src/core.ts +3 -1
  189. package/src/error.ts +11 -11
  190. package/src/index.ts +23 -10
  191. package/src/resources/account-numbers.ts +15 -17
  192. package/src/resources/account-transfers.ts +12 -14
  193. package/src/resources/accounts.ts +15 -0
  194. package/src/resources/ach-prenotifications.ts +15 -0
  195. package/src/resources/ach-transfers.ts +190 -13
  196. package/src/resources/bookkeeping-accounts.ts +16 -1
  197. package/src/resources/bookkeeping-entry-sets.ts +15 -0
  198. package/src/resources/card-disputes.ts +15 -0
  199. package/src/resources/cards.ts +20 -5
  200. package/src/resources/check-deposits.ts +18 -1
  201. package/src/resources/check-transfers.ts +12 -14
  202. package/src/resources/declined-transactions.ts +6 -1
  203. package/src/resources/digital-card-profiles.ts +348 -0
  204. package/src/resources/entities/entities.ts +22 -0
  205. package/src/resources/entities/supplemental-documents.ts +15 -0
  206. package/src/resources/event-subscriptions.ts +16 -1
  207. package/src/resources/exports.ts +7 -0
  208. package/src/resources/external-accounts.ts +41 -0
  209. package/src/resources/files.ts +15 -0
  210. package/src/resources/inbound-ach-transfers.ts +5 -0
  211. package/src/resources/inbound-wire-transfers.ts +5 -0
  212. package/src/resources/index.ts +23 -8
  213. package/src/resources/intrafi/account-enrollments.ts +15 -0
  214. package/src/resources/intrafi/exclusions.ts +15 -0
  215. package/src/resources/physical-card-profiles.ts +241 -0
  216. package/src/resources/physical-cards.ts +20 -5
  217. package/src/resources/programs.ts +5 -0
  218. package/src/resources/proof-of-authorization-request-submissions.ts +15 -0
  219. package/src/resources/real-time-decisions.ts +7 -1
  220. package/src/resources/real-time-payments-request-for-payments.ts +15 -0
  221. package/src/resources/real-time-payments-transfers.ts +12 -14
  222. package/src/resources/simulations/cards.ts +6 -1
  223. package/src/resources/simulations/index.ts +8 -7
  224. package/src/resources/simulations/interest-payments.ts +2 -3453
  225. package/src/resources/simulations/real-time-payments-transfers.ts +8 -1
  226. package/src/resources/simulations/simulations.ts +106 -4
  227. package/src/resources/transactions.ts +2 -0
  228. package/src/resources/wire-drawdown-requests.ts +7 -0
  229. package/src/resources/wire-transfers.ts +12 -14
  230. package/src/version.ts +1 -1
  231. package/version.d.ts +1 -1
  232. package/version.js +1 -1
  233. package/version.mjs +1 -1
  234. package/resources/card-profiles.d.ts +0 -287
  235. package/resources/card-profiles.d.ts.map +0 -1
  236. package/resources/card-profiles.js.map +0 -1
  237. package/resources/card-profiles.mjs +0 -37
  238. package/resources/card-profiles.mjs.map +0 -1
  239. package/resources/simulations/card-profiles.d.ts +0 -14
  240. package/resources/simulations/card-profiles.d.ts.map +0 -1
  241. package/resources/simulations/card-profiles.js +0 -19
  242. package/resources/simulations/card-profiles.js.map +0 -1
  243. package/resources/simulations/card-profiles.mjs +0 -15
  244. package/resources/simulations/card-profiles.mjs.map +0 -1
  245. package/src/resources/card-profiles.ts +0 -365
  246. package/src/resources/simulations/card-profiles.ts +0 -21
@@ -1,2755 +1,13 @@
1
1
  import * as Core from 'increase/core';
2
2
  import { APIResource } from 'increase/resource';
3
3
  import * as InterestPaymentsAPI from 'increase/resources/simulations/interest-payments';
4
+ import * as TransactionsAPI from 'increase/resources/transactions';
4
5
  export declare class InterestPayments extends APIResource {
5
6
  /**
6
7
  * Simulates an interest payment to your account. In production, this happens
7
8
  * automatically on the first of each month.
8
9
  */
9
- create(body: InterestPaymentCreateParams, options?: Core.RequestOptions): Core.APIPromise<InterestPaymentSimulationResult>;
10
- }
11
- /**
12
- * The results of an Interest Payment simulation.
13
- */
14
- export interface InterestPaymentSimulationResult {
15
- /**
16
- * This will contain the resulting [Transaction](#transactions) object. The
17
- * Transaction's `source` will be of `category: interest_payment`.
18
- */
19
- transaction: InterestPaymentSimulationResult.Transaction;
20
- /**
21
- * A constant representing the object's type. For this resource it will always be
22
- * `interest_payment_simulation_result`.
23
- */
24
- type: 'interest_payment_simulation_result';
25
- }
26
- export declare namespace InterestPaymentSimulationResult {
27
- /**
28
- * This will contain the resulting [Transaction](#transactions) object. The
29
- * Transaction's `source` will be of `category: interest_payment`.
30
- */
31
- interface Transaction {
32
- /**
33
- * The Transaction identifier.
34
- */
35
- id: string;
36
- /**
37
- * The identifier for the Account the Transaction belongs to.
38
- */
39
- account_id: string;
40
- /**
41
- * The Transaction amount in the minor unit of its currency. For dollars, for
42
- * example, this is cents.
43
- */
44
- amount: number;
45
- /**
46
- * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date on which the
47
- * Transaction occurred.
48
- */
49
- created_at: string;
50
- /**
51
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
52
- * Transaction's currency. This will match the currency on the Transaction's
53
- * Account.
54
- *
55
- * - `CAD` - Canadian Dollar (CAD)
56
- * - `CHF` - Swiss Franc (CHF)
57
- * - `EUR` - Euro (EUR)
58
- * - `GBP` - British Pound (GBP)
59
- * - `JPY` - Japanese Yen (JPY)
60
- * - `USD` - US Dollar (USD)
61
- */
62
- currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
63
- /**
64
- * An informational message describing this transaction. Use the fields in `source`
65
- * to get more detailed information. This field appears as the line-item on the
66
- * statement.
67
- */
68
- description: string;
69
- /**
70
- * The identifier for the route this Transaction came through. Routes are things
71
- * like cards and ACH details.
72
- */
73
- route_id: string | null;
74
- /**
75
- * The type of the route this Transaction came through.
76
- *
77
- * - `account_number` - An Account Number.
78
- * - `card` - A Card.
79
- */
80
- route_type: 'account_number' | 'card' | null;
81
- /**
82
- * This is an object giving more details on the network-level event that caused the
83
- * Transaction. Note that for backwards compatibility reasons, additional
84
- * undocumented keys may appear in this object. These should be treated as
85
- * deprecated and will be removed in the future.
86
- */
87
- source: Transaction.Source;
88
- /**
89
- * A constant representing the object's type. For this resource it will always be
90
- * `transaction`.
91
- */
92
- type: 'transaction';
93
- }
94
- namespace Transaction {
95
- /**
96
- * This is an object giving more details on the network-level event that caused the
97
- * Transaction. Note that for backwards compatibility reasons, additional
98
- * undocumented keys may appear in this object. These should be treated as
99
- * deprecated and will be removed in the future.
100
- */
101
- interface Source {
102
- /**
103
- * An Account Transfer Intention object. This field will be present in the JSON
104
- * response if and only if `category` is equal to `account_transfer_intention`.
105
- */
106
- account_transfer_intention: Source.AccountTransferIntention | null;
107
- /**
108
- * An ACH Transfer Intention object. This field will be present in the JSON
109
- * response if and only if `category` is equal to `ach_transfer_intention`.
110
- */
111
- ach_transfer_intention: Source.ACHTransferIntention | null;
112
- /**
113
- * An ACH Transfer Rejection object. This field will be present in the JSON
114
- * response if and only if `category` is equal to `ach_transfer_rejection`.
115
- */
116
- ach_transfer_rejection: Source.ACHTransferRejection | null;
117
- /**
118
- * An ACH Transfer Return object. This field will be present in the JSON response
119
- * if and only if `category` is equal to `ach_transfer_return`.
120
- */
121
- ach_transfer_return: Source.ACHTransferReturn | null;
122
- /**
123
- * A Card Dispute Acceptance object. This field will be present in the JSON
124
- * response if and only if `category` is equal to `card_dispute_acceptance`.
125
- */
126
- card_dispute_acceptance: Source.CardDisputeAcceptance | null;
127
- /**
128
- * A Card Refund object. This field will be present in the JSON response if and
129
- * only if `category` is equal to `card_refund`.
130
- */
131
- card_refund: Source.CardRefund | null;
132
- /**
133
- * A Card Revenue Payment object. This field will be present in the JSON response
134
- * if and only if `category` is equal to `card_revenue_payment`.
135
- */
136
- card_revenue_payment: Source.CardRevenuePayment | null;
137
- /**
138
- * A Card Settlement object. This field will be present in the JSON response if and
139
- * only if `category` is equal to `card_settlement`.
140
- */
141
- card_settlement: Source.CardSettlement | null;
142
- /**
143
- * The type of the resource. We may add additional possible values for this enum
144
- * over time; your application should be able to handle such additions gracefully.
145
- *
146
- * - `account_transfer_intention` - Account Transfer Intention: details will be
147
- * under the `account_transfer_intention` object.
148
- * - `ach_transfer_intention` - ACH Transfer Intention: details will be under the
149
- * `ach_transfer_intention` object.
150
- * - `ach_transfer_rejection` - ACH Transfer Rejection: details will be under the
151
- * `ach_transfer_rejection` object.
152
- * - `ach_transfer_return` - ACH Transfer Return: details will be under the
153
- * `ach_transfer_return` object.
154
- * - `card_dispute_acceptance` - Card Dispute Acceptance: details will be under the
155
- * `card_dispute_acceptance` object.
156
- * - `card_refund` - Card Refund: details will be under the `card_refund` object.
157
- * - `card_settlement` - Card Settlement: details will be under the
158
- * `card_settlement` object.
159
- * - `card_revenue_payment` - Card Revenue Payment: details will be under the
160
- * `card_revenue_payment` object.
161
- * - `check_deposit_acceptance` - Check Deposit Acceptance: details will be under
162
- * the `check_deposit_acceptance` object.
163
- * - `check_deposit_return` - Check Deposit Return: details will be under the
164
- * `check_deposit_return` object.
165
- * - `check_transfer_deposit` - Check Transfer Deposit: details will be under the
166
- * `check_transfer_deposit` object.
167
- * - `check_transfer_intention` - Check Transfer Intention: details will be under
168
- * the `check_transfer_intention` object.
169
- * - `check_transfer_stop_payment_request` - Check Transfer Stop Payment Request:
170
- * details will be under the `check_transfer_stop_payment_request` object.
171
- * - `fee_payment` - Fee Payment: details will be under the `fee_payment` object.
172
- * - `inbound_ach_transfer` - Inbound ACH Transfer Intention: details will be under
173
- * the `inbound_ach_transfer` object.
174
- * - `inbound_ach_transfer_return_intention` - Inbound ACH Transfer Return
175
- * Intention: details will be under the `inbound_ach_transfer_return_intention`
176
- * object.
177
- * - `inbound_check` - Inbound Check: details will be under the `inbound_check`
178
- * object.
179
- * - `inbound_international_ach_transfer` - Inbound International ACH Transfer:
180
- * details will be under the `inbound_international_ach_transfer` object.
181
- * - `inbound_real_time_payments_transfer_confirmation` - Inbound Real-Time
182
- * Payments Transfer Confirmation: details will be under the
183
- * `inbound_real_time_payments_transfer_confirmation` object.
184
- * - `inbound_wire_drawdown_payment_reversal` - Inbound Wire Drawdown Payment
185
- * Reversal: details will be under the `inbound_wire_drawdown_payment_reversal`
186
- * object.
187
- * - `inbound_wire_drawdown_payment` - Inbound Wire Drawdown Payment: details will
188
- * be under the `inbound_wire_drawdown_payment` object.
189
- * - `inbound_wire_reversal` - Inbound Wire Reversal: details will be under the
190
- * `inbound_wire_reversal` object.
191
- * - `inbound_wire_transfer` - Inbound Wire Transfer Intention: details will be
192
- * under the `inbound_wire_transfer` object.
193
- * - `inbound_wire_transfer_reversal` - Inbound Wire Transfer Reversal Intention:
194
- * details will be under the `inbound_wire_transfer_reversal` object.
195
- * - `interest_payment` - Interest Payment: details will be under the
196
- * `interest_payment` object.
197
- * - `internal_source` - Internal Source: details will be under the
198
- * `internal_source` object.
199
- * - `real_time_payments_transfer_acknowledgement` - Real-Time Payments Transfer
200
- * Acknowledgement: details will be under the
201
- * `real_time_payments_transfer_acknowledgement` object.
202
- * - `sample_funds` - Sample Funds: details will be under the `sample_funds`
203
- * object.
204
- * - `wire_transfer_intention` - Wire Transfer Intention: details will be under the
205
- * `wire_transfer_intention` object.
206
- * - `wire_transfer_rejection` - Wire Transfer Rejection: details will be under the
207
- * `wire_transfer_rejection` object.
208
- * - `other` - The Transaction was made for an undocumented or deprecated reason.
209
- */
210
- category: 'account_transfer_intention' | 'ach_transfer_intention' | 'ach_transfer_rejection' | 'ach_transfer_return' | 'card_dispute_acceptance' | 'card_refund' | 'card_settlement' | 'card_revenue_payment' | 'check_deposit_acceptance' | 'check_deposit_return' | 'check_transfer_deposit' | 'check_transfer_intention' | 'check_transfer_stop_payment_request' | 'fee_payment' | 'inbound_ach_transfer' | 'inbound_ach_transfer_return_intention' | 'inbound_check' | 'inbound_international_ach_transfer' | 'inbound_real_time_payments_transfer_confirmation' | 'inbound_wire_drawdown_payment_reversal' | 'inbound_wire_drawdown_payment' | 'inbound_wire_reversal' | 'inbound_wire_transfer' | 'inbound_wire_transfer_reversal' | 'interest_payment' | 'internal_source' | 'real_time_payments_transfer_acknowledgement' | 'sample_funds' | 'wire_transfer_intention' | 'wire_transfer_rejection' | 'other';
211
- /**
212
- * A Check Deposit Acceptance object. This field will be present in the JSON
213
- * response if and only if `category` is equal to `check_deposit_acceptance`.
214
- */
215
- check_deposit_acceptance: Source.CheckDepositAcceptance | null;
216
- /**
217
- * A Check Deposit Return object. This field will be present in the JSON response
218
- * if and only if `category` is equal to `check_deposit_return`.
219
- */
220
- check_deposit_return: Source.CheckDepositReturn | null;
221
- /**
222
- * A Check Transfer Deposit object. This field will be present in the JSON response
223
- * if and only if `category` is equal to `check_transfer_deposit`.
224
- */
225
- check_transfer_deposit: Source.CheckTransferDeposit | null;
226
- /**
227
- * A Check Transfer Intention object. This field will be present in the JSON
228
- * response if and only if `category` is equal to `check_transfer_intention`.
229
- */
230
- check_transfer_intention: Source.CheckTransferIntention | null;
231
- /**
232
- * A Check Transfer Stop Payment Request object. This field will be present in the
233
- * JSON response if and only if `category` is equal to
234
- * `check_transfer_stop_payment_request`.
235
- */
236
- check_transfer_stop_payment_request: Source.CheckTransferStopPaymentRequest | null;
237
- /**
238
- * A Fee Payment object. This field will be present in the JSON response if and
239
- * only if `category` is equal to `fee_payment`.
240
- */
241
- fee_payment: Source.FeePayment | null;
242
- /**
243
- * An Inbound ACH Transfer Intention object. This field will be present in the JSON
244
- * response if and only if `category` is equal to `inbound_ach_transfer`.
245
- */
246
- inbound_ach_transfer: Source.InboundACHTransfer | null;
247
- /**
248
- * An Inbound Check object. This field will be present in the JSON response if and
249
- * only if `category` is equal to `inbound_check`.
250
- */
251
- inbound_check: Source.InboundCheck | null;
252
- /**
253
- * An Inbound International ACH Transfer object. This field will be present in the
254
- * JSON response if and only if `category` is equal to
255
- * `inbound_international_ach_transfer`.
256
- */
257
- inbound_international_ach_transfer: Source.InboundInternationalACHTransfer | null;
258
- /**
259
- * An Inbound Real-Time Payments Transfer Confirmation object. This field will be
260
- * present in the JSON response if and only if `category` is equal to
261
- * `inbound_real_time_payments_transfer_confirmation`.
262
- */
263
- inbound_real_time_payments_transfer_confirmation: Source.InboundRealTimePaymentsTransferConfirmation | null;
264
- /**
265
- * An Inbound Wire Drawdown Payment object. This field will be present in the JSON
266
- * response if and only if `category` is equal to `inbound_wire_drawdown_payment`.
267
- */
268
- inbound_wire_drawdown_payment: Source.InboundWireDrawdownPayment | null;
269
- /**
270
- * An Inbound Wire Drawdown Payment Reversal object. This field will be present in
271
- * the JSON response if and only if `category` is equal to
272
- * `inbound_wire_drawdown_payment_reversal`.
273
- */
274
- inbound_wire_drawdown_payment_reversal: Source.InboundWireDrawdownPaymentReversal | null;
275
- /**
276
- * An Inbound Wire Reversal object. This field will be present in the JSON response
277
- * if and only if `category` is equal to `inbound_wire_reversal`.
278
- */
279
- inbound_wire_reversal: Source.InboundWireReversal | null;
280
- /**
281
- * An Inbound Wire Transfer Intention object. This field will be present in the
282
- * JSON response if and only if `category` is equal to `inbound_wire_transfer`.
283
- */
284
- inbound_wire_transfer: Source.InboundWireTransfer | null;
285
- /**
286
- * An Interest Payment object. This field will be present in the JSON response if
287
- * and only if `category` is equal to `interest_payment`.
288
- */
289
- interest_payment: Source.InterestPayment | null;
290
- /**
291
- * An Internal Source object. This field will be present in the JSON response if
292
- * and only if `category` is equal to `internal_source`.
293
- */
294
- internal_source: Source.InternalSource | null;
295
- /**
296
- * A Real-Time Payments Transfer Acknowledgement object. This field will be present
297
- * in the JSON response if and only if `category` is equal to
298
- * `real_time_payments_transfer_acknowledgement`.
299
- */
300
- real_time_payments_transfer_acknowledgement: Source.RealTimePaymentsTransferAcknowledgement | null;
301
- /**
302
- * A Sample Funds object. This field will be present in the JSON response if and
303
- * only if `category` is equal to `sample_funds`.
304
- */
305
- sample_funds: Source.SampleFunds | null;
306
- /**
307
- * A Wire Transfer Intention object. This field will be present in the JSON
308
- * response if and only if `category` is equal to `wire_transfer_intention`.
309
- */
310
- wire_transfer_intention: Source.WireTransferIntention | null;
311
- /**
312
- * A Wire Transfer Rejection object. This field will be present in the JSON
313
- * response if and only if `category` is equal to `wire_transfer_rejection`.
314
- */
315
- wire_transfer_rejection: Source.WireTransferRejection | null;
316
- }
317
- namespace Source {
318
- /**
319
- * An Account Transfer Intention object. This field will be present in the JSON
320
- * response if and only if `category` is equal to `account_transfer_intention`.
321
- */
322
- interface AccountTransferIntention {
323
- /**
324
- * The pending amount in the minor unit of the transaction's currency. For dollars,
325
- * for example, this is cents.
326
- */
327
- amount: number;
328
- /**
329
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the destination
330
- * account currency.
331
- *
332
- * - `CAD` - Canadian Dollar (CAD)
333
- * - `CHF` - Swiss Franc (CHF)
334
- * - `EUR` - Euro (EUR)
335
- * - `GBP` - British Pound (GBP)
336
- * - `JPY` - Japanese Yen (JPY)
337
- * - `USD` - US Dollar (USD)
338
- */
339
- currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
340
- /**
341
- * The description you chose to give the transfer.
342
- */
343
- description: string;
344
- /**
345
- * The identifier of the Account to where the Account Transfer was sent.
346
- */
347
- destination_account_id: string;
348
- /**
349
- * The identifier of the Account from where the Account Transfer was sent.
350
- */
351
- source_account_id: string;
352
- /**
353
- * The identifier of the Account Transfer that led to this Pending Transaction.
354
- */
355
- transfer_id: string;
356
- }
357
- /**
358
- * An ACH Transfer Intention object. This field will be present in the JSON
359
- * response if and only if `category` is equal to `ach_transfer_intention`.
360
- */
361
- interface ACHTransferIntention {
362
- /**
363
- * The account number for the destination account.
364
- */
365
- account_number: string;
366
- /**
367
- * The amount in the minor unit of the transaction's currency. For dollars, for
368
- * example, this is cents.
369
- */
370
- amount: number;
371
- /**
372
- * The American Bankers' Association (ABA) Routing Transit Number (RTN) for the
373
- * destination account.
374
- */
375
- routing_number: string;
376
- /**
377
- * A description set when the ACH Transfer was created.
378
- */
379
- statement_descriptor: string;
380
- /**
381
- * The identifier of the ACH Transfer that led to this Transaction.
382
- */
383
- transfer_id: string;
384
- }
385
- /**
386
- * An ACH Transfer Rejection object. This field will be present in the JSON
387
- * response if and only if `category` is equal to `ach_transfer_rejection`.
388
- */
389
- interface ACHTransferRejection {
390
- /**
391
- * The identifier of the ACH Transfer that led to this Transaction.
392
- */
393
- transfer_id: string;
394
- }
395
- /**
396
- * An ACH Transfer Return object. This field will be present in the JSON response
397
- * if and only if `category` is equal to `ach_transfer_return`.
398
- */
399
- interface ACHTransferReturn {
400
- /**
401
- * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
402
- * the transfer was created.
403
- */
404
- created_at: string;
405
- /**
406
- * The three character ACH return code, in the range R01 to R85.
407
- */
408
- raw_return_reason_code: string;
409
- /**
410
- * Why the ACH Transfer was returned. This reason code is sent by the receiving
411
- * bank back to Increase.
412
- *
413
- * - `insufficient_fund` - Code R01. Insufficient funds in the receiving account.
414
- * Sometimes abbreviated to NSF.
415
- * - `no_account` - Code R03. The account does not exist or the receiving bank was
416
- * unable to locate it.
417
- * - `account_closed` - Code R02. The account is closed at the receiving bank.
418
- * - `invalid_account_number_structure` - Code R04. The account number is invalid
419
- * at the receiving bank.
420
- * - `account_frozen_entry_returned_per_ofac_instruction` - Code R16. The account
421
- * at the receiving bank was frozen per the Office of Foreign Assets Control.
422
- * - `credit_entry_refused_by_receiver` - Code R23. The receiving bank account
423
- * refused a credit transfer.
424
- * - `unauthorized_debit_to_consumer_account_using_corporate_sec_code` - Code R05.
425
- * The receiving bank rejected because of an incorrect Standard Entry Class code.
426
- * - `corporate_customer_advised_not_authorized` - Code R29. The corporate customer
427
- * at the receiving bank reversed the transfer.
428
- * - `payment_stopped` - Code R08. The receiving bank stopped payment on this
429
- * transfer.
430
- * - `non_transaction_account` - Code R20. The receiving bank account does not
431
- * perform transfers.
432
- * - `uncollected_funds` - Code R09. The receiving bank account does not have
433
- * enough available balance for the transfer.
434
- * - `routing_number_check_digit_error` - Code R28. The routing number is
435
- * incorrect.
436
- * - `customer_advised_unauthorized_improper_ineligible_or_incomplete` - Code R10.
437
- * The customer at the receiving bank reversed the transfer.
438
- * - `amount_field_error` - Code R19. The amount field is incorrect or too large.
439
- * - `authorization_revoked_by_customer` - Code R07. The customer at the receiving
440
- * institution informed their bank that they have revoked authorization for a
441
- * previously authorized transfer.
442
- * - `invalid_ach_routing_number` - Code R13. The routing number is invalid.
443
- * - `file_record_edit_criteria` - Code R17. The receiving bank is unable to
444
- * process a field in the transfer.
445
- * - `enr_invalid_individual_name` - Code R45. The individual name field was
446
- * invalid.
447
- * - `returned_per_odfi_request` - Code R06. The originating financial institution
448
- * asked for this transfer to be returned. The receiving bank is complying with
449
- * the request.
450
- * - `limited_participation_dfi` - Code R34. The receiving bank's regulatory
451
- * supervisor has limited their participation in the ACH network.
452
- * - `incorrectly_coded_outbound_international_payment` - Code R85. The outbound
453
- * international ACH transfer was incorrect.
454
- * - `account_sold_to_another_dfi` - Code R12. A rare return reason. The account
455
- * was sold to another bank.
456
- * - `addenda_error` - Code R25. The addenda record is incorrect or missing.
457
- * - `beneficiary_or_account_holder_deceased` - Code R15. A rare return reason. The
458
- * account holder is deceased.
459
- * - `customer_advised_not_within_authorization_terms` - Code R11. A rare return
460
- * reason. The customer authorized some payment to the sender, but this payment
461
- * was not in error.
462
- * - `corrected_return` - Code R74. A rare return reason. Sent in response to a
463
- * return that was returned with code `field_error`. The latest return should
464
- * include the corrected field(s).
465
- * - `duplicate_entry` - Code R24. A rare return reason. The receiving bank
466
- * received an exact duplicate entry with the same trace number and amount.
467
- * - `duplicate_return` - Code R67. A rare return reason. The return this message
468
- * refers to was a duplicate.
469
- * - `enr_duplicate_enrollment` - Code R47. A rare return reason. Only used for US
470
- * Government agency non-monetary automatic enrollment messages.
471
- * - `enr_invalid_dfi_account_number` - Code R43. A rare return reason. Only used
472
- * for US Government agency non-monetary automatic enrollment messages.
473
- * - `enr_invalid_individual_id_number` - Code R44. A rare return reason. Only used
474
- * for US Government agency non-monetary automatic enrollment messages.
475
- * - `enr_invalid_representative_payee_indicator` - Code R46. A rare return reason.
476
- * Only used for US Government agency non-monetary automatic enrollment messages.
477
- * - `enr_invalid_transaction_code` - Code R41. A rare return reason. Only used for
478
- * US Government agency non-monetary automatic enrollment messages.
479
- * - `enr_return_of_enr_entry` - Code R40. A rare return reason. Only used for US
480
- * Government agency non-monetary automatic enrollment messages.
481
- * - `enr_routing_number_check_digit_error` - Code R42. A rare return reason. Only
482
- * used for US Government agency non-monetary automatic enrollment messages.
483
- * - `entry_not_processed_by_gateway` - Code R84. A rare return reason. The
484
- * International ACH Transfer cannot be processed by the gateway.
485
- * - `field_error` - Code R69. A rare return reason. One or more of the fields in
486
- * the ACH were malformed.
487
- * - `foreign_receiving_dfi_unable_to_settle` - Code R83. A rare return reason. The
488
- * Foreign receiving bank was unable to settle this ACH transfer.
489
- * - `iat_entry_coding_error` - Code R80. A rare return reason. The International
490
- * ACH Transfer is malformed.
491
- * - `improper_effective_entry_date` - Code R18. A rare return reason. The ACH has
492
- * an improper effective entry date field.
493
- * - `improper_source_document_source_document_presented` - Code R39. A rare return
494
- * reason. The source document related to this ACH, usually an ACH check
495
- * conversion, was presented to the bank.
496
- * - `invalid_company_id` - Code R21. A rare return reason. The Company ID field of
497
- * the ACH was invalid.
498
- * - `invalid_foreign_receiving_dfi_identification` - Code R82. A rare return
499
- * reason. The foreign receiving bank identifier for an International ACH
500
- * Transfer was invalid.
501
- * - `invalid_individual_id_number` - Code R22. A rare return reason. The
502
- * Individual ID number field of the ACH was invalid.
503
- * - `item_and_rck_entry_presented_for_payment` - Code R53. A rare return reason.
504
- * Both the Represented Check ("RCK") entry and the original check were presented
505
- * to the bank.
506
- * - `item_related_to_rck_entry_is_ineligible` - Code R51. A rare return reason.
507
- * The Represented Check ("RCK") entry is ineligible.
508
- * - `mandatory_field_error` - Code R26. A rare return reason. The ACH is missing a
509
- * required field.
510
- * - `misrouted_dishonored_return` - Code R71. A rare return reason. The receiving
511
- * bank does not recognize the routing number in a dishonored return entry.
512
- * - `misrouted_return` - Code R61. A rare return reason. The receiving bank does
513
- * not recognize the routing number in a return entry.
514
- * - `no_errors_found` - Code R76. A rare return reason. Sent in response to a
515
- * return, the bank does not find the errors alleged by the returning bank.
516
- * - `non_acceptance_of_r62_dishonored_return` - Code R77. A rare return reason.
517
- * The receiving bank does not accept the return of the erroneous debit. The
518
- * funds are not available at the receiving bank.
519
- * - `non_participant_in_iat_program` - Code R81. A rare return reason. The
520
- * receiving bank does not accept International ACH Transfers.
521
- * - `permissible_return_entry` - Code R31. A rare return reason. A return that has
522
- * been agreed to be accepted by the receiving bank, despite falling outside of
523
- * the usual return timeframe.
524
- * - `permissible_return_entry_not_accepted` - Code R70. A rare return reason. The
525
- * receiving bank had not approved this return.
526
- * - `rdfi_non_settlement` - Code R32. A rare return reason. The receiving bank
527
- * could not settle this transaction.
528
- * - `rdfi_participant_in_check_truncation_program` - Code R30. A rare return
529
- * reason. The receiving bank does not accept Check Truncation ACH transfers.
530
- * - `representative_payee_deceased_or_unable_to_continue_in_that_capacity` - Code
531
- * R14. A rare return reason. The payee is deceased.
532
- * - `return_not_a_duplicate` - Code R75. A rare return reason. The originating
533
- * bank disputes that an earlier `duplicate_entry` return was actually a
534
- * duplicate.
535
- * - `return_of_erroneous_or_reversing_debit` - Code R62. A rare return reason. The
536
- * originating financial institution made a mistake and this return corrects it.
537
- * - `return_of_improper_credit_entry` - Code R36. A rare return reason. Return of
538
- * a malformed credit entry.
539
- * - `return_of_improper_debit_entry` - Code R35. A rare return reason. Return of a
540
- * malformed debit entry.
541
- * - `return_of_xck_entry` - Code R33. A rare return reason. Return of a Destroyed
542
- * Check ("XKC") entry.
543
- * - `source_document_presented_for_payment` - Code R37. A rare return reason. The
544
- * source document related to this ACH, usually an ACH check conversion, was
545
- * presented to the bank.
546
- * - `state_law_affecting_rck_acceptance` - Code R50. A rare return reason. State
547
- * law prevents the bank from accepting the Represented Check ("RCK") entry.
548
- * - `stop_payment_on_item_related_to_rck_entry` - Code R52. A rare return reason.
549
- * A stop payment was issued on a Represented Check ("RCK") entry.
550
- * - `stop_payment_on_source_document` - Code R38. A rare return reason. The source
551
- * attached to the ACH, usually an ACH check conversion, includes a stop payment.
552
- * - `timely_original_return` - Code R73. A rare return reason. The bank receiving
553
- * an `untimely_return` believes it was on time.
554
- * - `trace_number_error` - Code R27. A rare return reason. An ACH return's trace
555
- * number does not match an originated ACH.
556
- * - `untimely_dishonored_return` - Code R72. A rare return reason. The dishonored
557
- * return was sent too late.
558
- * - `untimely_return` - Code R68. A rare return reason. The return was sent too
559
- * late.
560
- */
561
- return_reason_code: 'insufficient_fund' | 'no_account' | 'account_closed' | 'invalid_account_number_structure' | 'account_frozen_entry_returned_per_ofac_instruction' | 'credit_entry_refused_by_receiver' | 'unauthorized_debit_to_consumer_account_using_corporate_sec_code' | 'corporate_customer_advised_not_authorized' | 'payment_stopped' | 'non_transaction_account' | 'uncollected_funds' | 'routing_number_check_digit_error' | 'customer_advised_unauthorized_improper_ineligible_or_incomplete' | 'amount_field_error' | 'authorization_revoked_by_customer' | 'invalid_ach_routing_number' | 'file_record_edit_criteria' | 'enr_invalid_individual_name' | 'returned_per_odfi_request' | 'limited_participation_dfi' | 'incorrectly_coded_outbound_international_payment' | 'account_sold_to_another_dfi' | 'addenda_error' | 'beneficiary_or_account_holder_deceased' | 'customer_advised_not_within_authorization_terms' | 'corrected_return' | 'duplicate_entry' | 'duplicate_return' | 'enr_duplicate_enrollment' | 'enr_invalid_dfi_account_number' | 'enr_invalid_individual_id_number' | 'enr_invalid_representative_payee_indicator' | 'enr_invalid_transaction_code' | 'enr_return_of_enr_entry' | 'enr_routing_number_check_digit_error' | 'entry_not_processed_by_gateway' | 'field_error' | 'foreign_receiving_dfi_unable_to_settle' | 'iat_entry_coding_error' | 'improper_effective_entry_date' | 'improper_source_document_source_document_presented' | 'invalid_company_id' | 'invalid_foreign_receiving_dfi_identification' | 'invalid_individual_id_number' | 'item_and_rck_entry_presented_for_payment' | 'item_related_to_rck_entry_is_ineligible' | 'mandatory_field_error' | 'misrouted_dishonored_return' | 'misrouted_return' | 'no_errors_found' | 'non_acceptance_of_r62_dishonored_return' | 'non_participant_in_iat_program' | 'permissible_return_entry' | 'permissible_return_entry_not_accepted' | 'rdfi_non_settlement' | 'rdfi_participant_in_check_truncation_program' | 'representative_payee_deceased_or_unable_to_continue_in_that_capacity' | 'return_not_a_duplicate' | 'return_of_erroneous_or_reversing_debit' | 'return_of_improper_credit_entry' | 'return_of_improper_debit_entry' | 'return_of_xck_entry' | 'source_document_presented_for_payment' | 'state_law_affecting_rck_acceptance' | 'stop_payment_on_item_related_to_rck_entry' | 'stop_payment_on_source_document' | 'timely_original_return' | 'trace_number_error' | 'untimely_dishonored_return' | 'untimely_return';
562
- /**
563
- * The identifier of the Transaction associated with this return.
564
- */
565
- transaction_id: string;
566
- /**
567
- * The identifier of the ACH Transfer associated with this return.
568
- */
569
- transfer_id: string;
570
- }
571
- /**
572
- * A Card Dispute Acceptance object. This field will be present in the JSON
573
- * response if and only if `category` is equal to `card_dispute_acceptance`.
574
- */
575
- interface CardDisputeAcceptance {
576
- /**
577
- * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
578
- * the Card Dispute was accepted.
579
- */
580
- accepted_at: string;
581
- /**
582
- * The identifier of the Card Dispute that was accepted.
583
- */
584
- card_dispute_id: string;
585
- /**
586
- * The identifier of the Transaction that was created to return the disputed funds
587
- * to your account.
588
- */
589
- transaction_id: string;
590
- }
591
- /**
592
- * A Card Refund object. This field will be present in the JSON response if and
593
- * only if `category` is equal to `card_refund`.
594
- */
595
- interface CardRefund {
596
- /**
597
- * The Card Refund identifier.
598
- */
599
- id: string;
600
- /**
601
- * The pending amount in the minor unit of the transaction's currency. For dollars,
602
- * for example, this is cents.
603
- */
604
- amount: number;
605
- /**
606
- * The ID of the Card Payment this transaction belongs to.
607
- */
608
- card_payment_id: string | null;
609
- /**
610
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
611
- * transaction's currency.
612
- *
613
- * - `CAD` - Canadian Dollar (CAD)
614
- * - `CHF` - Swiss Franc (CHF)
615
- * - `EUR` - Euro (EUR)
616
- * - `GBP` - British Pound (GBP)
617
- * - `JPY` - Japanese Yen (JPY)
618
- * - `USD` - US Dollar (USD)
619
- */
620
- currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
621
- /**
622
- * The merchant identifier (commonly abbreviated as MID) of the merchant the card
623
- * is transacting with.
624
- */
625
- merchant_acceptor_id: string | null;
626
- /**
627
- * The 4-digit MCC describing the merchant's business.
628
- */
629
- merchant_category_code: string;
630
- /**
631
- * The city the merchant resides in.
632
- */
633
- merchant_city: string | null;
634
- /**
635
- * The country the merchant resides in.
636
- */
637
- merchant_country: string;
638
- /**
639
- * The name of the merchant.
640
- */
641
- merchant_name: string | null;
642
- /**
643
- * The state the merchant resides in.
644
- */
645
- merchant_state: string | null;
646
- /**
647
- * Network-specific identifiers for this refund.
648
- */
649
- network_identifiers: CardRefund.NetworkIdentifiers;
650
- /**
651
- * Additional details about the card purchase, such as tax and industry-specific
652
- * fields.
653
- */
654
- purchase_details: CardRefund.PurchaseDetails | null;
655
- /**
656
- * The identifier of the Transaction associated with this Transaction.
657
- */
658
- transaction_id: string;
659
- /**
660
- * A constant representing the object's type. For this resource it will always be
661
- * `card_refund`.
662
- */
663
- type: 'card_refund';
664
- }
665
- namespace CardRefund {
666
- /**
667
- * Network-specific identifiers for this refund.
668
- */
669
- interface NetworkIdentifiers {
670
- /**
671
- * A network assigned business ID that identifies the acquirer that processed this
672
- * transaction.
673
- */
674
- acquirer_business_id: string;
675
- /**
676
- * A globally unique identifier for this settlement.
677
- */
678
- acquirer_reference_number: string;
679
- /**
680
- * A globally unique transaction identifier provided by the card network, used
681
- * across multiple life-cycle requests.
682
- */
683
- transaction_id: string | null;
684
- }
685
- /**
686
- * Additional details about the card purchase, such as tax and industry-specific
687
- * fields.
688
- */
689
- interface PurchaseDetails {
690
- /**
691
- * Fields specific to car rentals.
692
- */
693
- car_rental: PurchaseDetails.CarRental | null;
694
- /**
695
- * An identifier from the merchant for the customer or consumer.
696
- */
697
- customer_reference_identifier: string | null;
698
- /**
699
- * The state or provincial tax amount in minor units.
700
- */
701
- local_tax_amount: number | null;
702
- /**
703
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the local tax
704
- * assessed.
705
- */
706
- local_tax_currency: string | null;
707
- /**
708
- * Fields specific to lodging.
709
- */
710
- lodging: PurchaseDetails.Lodging | null;
711
- /**
712
- * The national tax amount in minor units.
713
- */
714
- national_tax_amount: number | null;
715
- /**
716
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the local tax
717
- * assessed.
718
- */
719
- national_tax_currency: string | null;
720
- /**
721
- * An identifier from the merchant for the purchase to the issuer and cardholder.
722
- */
723
- purchase_identifier: string | null;
724
- /**
725
- * The format of the purchase identifier.
726
- *
727
- * - `free_text` - Free text
728
- * - `order_number` - Order number
729
- * - `rental_agreement_number` - Rental agreement number
730
- * - `hotel_folio_number` - Hotel folio number
731
- * - `invoice_number` - Invoice number
732
- */
733
- purchase_identifier_format: 'free_text' | 'order_number' | 'rental_agreement_number' | 'hotel_folio_number' | 'invoice_number' | null;
734
- /**
735
- * Fields specific to travel.
736
- */
737
- travel: PurchaseDetails.Travel | null;
738
- }
739
- namespace PurchaseDetails {
740
- /**
741
- * Fields specific to car rentals.
742
- */
743
- interface CarRental {
744
- /**
745
- * Code indicating the vehicle's class.
746
- */
747
- car_class_code: string | null;
748
- /**
749
- * Date the customer picked up the car or, in the case of a no-show or pre-pay
750
- * transaction, the scheduled pick up date.
751
- */
752
- checkout_date: string | null;
753
- /**
754
- * Daily rate being charged for the vehicle.
755
- */
756
- daily_rental_rate_amount: number | null;
757
- /**
758
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the daily rental
759
- * rate.
760
- */
761
- daily_rental_rate_currency: string | null;
762
- /**
763
- * Number of days the vehicle was rented.
764
- */
765
- days_rented: number | null;
766
- /**
767
- * Additional charges (gas, late fee, etc.) being billed.
768
- *
769
- * - `no_extra_charge` - No extra charge
770
- * - `gas` - Gas
771
- * - `extra_mileage` - Extra mileage
772
- * - `late_return` - Late return
773
- * - `one_way_service_fee` - One way service fee
774
- * - `parking_violation` - Parking violation
775
- */
776
- extra_charges: 'no_extra_charge' | 'gas' | 'extra_mileage' | 'late_return' | 'one_way_service_fee' | 'parking_violation' | null;
777
- /**
778
- * Fuel charges for the vehicle.
779
- */
780
- fuel_charges_amount: number | null;
781
- /**
782
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the fuel charges
783
- * assessed.
784
- */
785
- fuel_charges_currency: string | null;
786
- /**
787
- * Any insurance being charged for the vehicle.
788
- */
789
- insurance_charges_amount: number | null;
790
- /**
791
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the insurance
792
- * charges assessed.
793
- */
794
- insurance_charges_currency: string | null;
795
- /**
796
- * An indicator that the cardholder is being billed for a reserved vehicle that was
797
- * not actually rented (that is, a "no-show" charge).
798
- *
799
- * - `not_applicable` - Not applicable
800
- * - `no_show_for_specialized_vehicle` - No show for specialized vehicle
801
- */
802
- no_show_indicator: 'not_applicable' | 'no_show_for_specialized_vehicle' | null;
803
- /**
804
- * Charges for returning the vehicle at a different location than where it was
805
- * picked up.
806
- */
807
- one_way_drop_off_charges_amount: number | null;
808
- /**
809
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the one-way
810
- * drop-off charges assessed.
811
- */
812
- one_way_drop_off_charges_currency: string | null;
813
- /**
814
- * Name of the person renting the vehicle.
815
- */
816
- renter_name: string | null;
817
- /**
818
- * Weekly rate being charged for the vehicle.
819
- */
820
- weekly_rental_rate_amount: number | null;
821
- /**
822
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the weekly
823
- * rental rate.
824
- */
825
- weekly_rental_rate_currency: string | null;
826
- }
827
- /**
828
- * Fields specific to lodging.
829
- */
830
- interface Lodging {
831
- /**
832
- * Date the customer checked in.
833
- */
834
- check_in_date: string | null;
835
- /**
836
- * Daily rate being charged for the room.
837
- */
838
- daily_room_rate_amount: number | null;
839
- /**
840
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the daily room
841
- * rate.
842
- */
843
- daily_room_rate_currency: string | null;
844
- /**
845
- * Additional charges (phone, late check-out, etc.) being billed.
846
- *
847
- * - `no_extra_charge` - No extra charge
848
- * - `restaurant` - Restaurant
849
- * - `gift_shop` - Gift shop
850
- * - `mini_bar` - Mini bar
851
- * - `telephone` - Telephone
852
- * - `other` - Other
853
- * - `laundry` - Laundry
854
- */
855
- extra_charges: 'no_extra_charge' | 'restaurant' | 'gift_shop' | 'mini_bar' | 'telephone' | 'other' | 'laundry' | null;
856
- /**
857
- * Folio cash advances for the room.
858
- */
859
- folio_cash_advances_amount: number | null;
860
- /**
861
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the folio cash
862
- * advances.
863
- */
864
- folio_cash_advances_currency: string | null;
865
- /**
866
- * Food and beverage charges for the room.
867
- */
868
- food_beverage_charges_amount: number | null;
869
- /**
870
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the food and
871
- * beverage charges.
872
- */
873
- food_beverage_charges_currency: string | null;
874
- /**
875
- * Indicator that the cardholder is being billed for a reserved room that was not
876
- * actually used.
877
- *
878
- * - `not_applicable` - Not applicable
879
- * - `no_show` - No show
880
- */
881
- no_show_indicator: 'not_applicable' | 'no_show' | null;
882
- /**
883
- * Prepaid expenses being charged for the room.
884
- */
885
- prepaid_expenses_amount: number | null;
886
- /**
887
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the prepaid
888
- * expenses.
889
- */
890
- prepaid_expenses_currency: string | null;
891
- /**
892
- * Number of nights the room was rented.
893
- */
894
- room_nights: number | null;
895
- /**
896
- * Total room tax being charged.
897
- */
898
- total_room_tax_amount: number | null;
899
- /**
900
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the total room
901
- * tax.
902
- */
903
- total_room_tax_currency: string | null;
904
- /**
905
- * Total tax being charged for the room.
906
- */
907
- total_tax_amount: number | null;
908
- /**
909
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the total tax
910
- * assessed.
911
- */
912
- total_tax_currency: string | null;
913
- }
914
- /**
915
- * Fields specific to travel.
916
- */
917
- interface Travel {
918
- /**
919
- * Ancillary purchases in addition to the airfare.
920
- */
921
- ancillary: Travel.Ancillary | null;
922
- /**
923
- * Indicates the computerized reservation system used to book the ticket.
924
- */
925
- computerized_reservation_system: string | null;
926
- /**
927
- * Indicates the reason for a credit to the cardholder.
928
- *
929
- * - `no_credit` - No credit
930
- * - `passenger_transport_ancillary_purchase_cancellation` - Passenger transport
931
- * ancillary purchase cancellation
932
- * - `airline_ticket_and_passenger_transport_ancillary_purchase_cancellation` -
933
- * Airline ticket and passenger transport ancillary purchase cancellation
934
- * - `airline_ticket_cancellation` - Airline ticket cancellation
935
- * - `other` - Other
936
- * - `partial_refund_of_airline_ticket` - Partial refund of airline ticket
937
- */
938
- credit_reason_indicator: 'no_credit' | 'passenger_transport_ancillary_purchase_cancellation' | 'airline_ticket_and_passenger_transport_ancillary_purchase_cancellation' | 'airline_ticket_cancellation' | 'other' | 'partial_refund_of_airline_ticket' | null;
939
- /**
940
- * Date of departure.
941
- */
942
- departure_date: string | null;
943
- /**
944
- * Code for the originating city or airport.
945
- */
946
- origination_city_airport_code: string | null;
947
- /**
948
- * Name of the passenger.
949
- */
950
- passenger_name: string | null;
951
- /**
952
- * Indicates whether this ticket is non-refundable.
953
- *
954
- * - `no_restrictions` - No restrictions
955
- * - `restricted_non_refundable_ticket` - Restricted non-refundable ticket
956
- */
957
- restricted_ticket_indicator: 'no_restrictions' | 'restricted_non_refundable_ticket' | null;
958
- /**
959
- * Indicates why a ticket was changed.
960
- *
961
- * - `none` - None
962
- * - `change_to_existing_ticket` - Change to existing ticket
963
- * - `new_ticket` - New ticket
964
- */
965
- ticket_change_indicator: 'none' | 'change_to_existing_ticket' | 'new_ticket' | null;
966
- /**
967
- * Ticket number.
968
- */
969
- ticket_number: string | null;
970
- /**
971
- * Code for the travel agency if the ticket was issued by a travel agency.
972
- */
973
- travel_agency_code: string | null;
974
- /**
975
- * Name of the travel agency if the ticket was issued by a travel agency.
976
- */
977
- travel_agency_name: string | null;
978
- /**
979
- * Fields specific to each leg of the journey.
980
- */
981
- trip_legs: Array<Travel.TripLeg> | null;
982
- }
983
- namespace Travel {
984
- /**
985
- * Ancillary purchases in addition to the airfare.
986
- */
987
- interface Ancillary {
988
- /**
989
- * If this purchase has a connection or relationship to another purchase, such as a
990
- * baggage fee for a passenger transport ticket, this field should contain the
991
- * ticket document number for the other purchase.
992
- */
993
- connected_ticket_document_number: string | null;
994
- /**
995
- * Indicates the reason for a credit to the cardholder.
996
- *
997
- * - `no_credit` - No credit
998
- * - `passenger_transport_ancillary_purchase_cancellation` - Passenger transport
999
- * ancillary purchase cancellation
1000
- * - `airline_ticket_and_passenger_transport_ancillary_purchase_cancellation` -
1001
- * Airline ticket and passenger transport ancillary purchase cancellation
1002
- * - `other` - Other
1003
- */
1004
- credit_reason_indicator: 'no_credit' | 'passenger_transport_ancillary_purchase_cancellation' | 'airline_ticket_and_passenger_transport_ancillary_purchase_cancellation' | 'other' | null;
1005
- /**
1006
- * Name of the passenger or description of the ancillary purchase.
1007
- */
1008
- passenger_name_or_description: string | null;
1009
- /**
1010
- * Additional travel charges, such as baggage fees.
1011
- */
1012
- services: Array<Ancillary.Service>;
1013
- /**
1014
- * Ticket document number.
1015
- */
1016
- ticket_document_number: string | null;
1017
- }
1018
- namespace Ancillary {
1019
- interface Service {
1020
- /**
1021
- * Category of the ancillary service.
1022
- *
1023
- * - `none` - None
1024
- * - `bundled_service` - Bundled service
1025
- * - `baggage_fee` - Baggage fee
1026
- * - `change_fee` - Change fee
1027
- * - `cargo` - Cargo
1028
- * - `carbon_offset` - Carbon offset
1029
- * - `frequent_flyer` - Frequent flyer
1030
- * - `gift_card` - Gift card
1031
- * - `ground_transport` - Ground transport
1032
- * - `in_flight_entertainment` - In-flight entertainment
1033
- * - `lounge` - Lounge
1034
- * - `medical` - Medical
1035
- * - `meal_beverage` - Meal beverage
1036
- * - `other` - Other
1037
- * - `passenger_assist_fee` - Passenger assist fee
1038
- * - `pets` - Pets
1039
- * - `seat_fees` - Seat fees
1040
- * - `standby` - Standby
1041
- * - `service_fee` - Service fee
1042
- * - `store` - Store
1043
- * - `travel_service` - Travel service
1044
- * - `unaccompanied_travel` - Unaccompanied travel
1045
- * - `upgrades` - Upgrades
1046
- * - `wifi` - Wi-fi
1047
- */
1048
- category: 'none' | 'bundled_service' | 'baggage_fee' | 'change_fee' | 'cargo' | 'carbon_offset' | 'frequent_flyer' | 'gift_card' | 'ground_transport' | 'in_flight_entertainment' | 'lounge' | 'medical' | 'meal_beverage' | 'other' | 'passenger_assist_fee' | 'pets' | 'seat_fees' | 'standby' | 'service_fee' | 'store' | 'travel_service' | 'unaccompanied_travel' | 'upgrades' | 'wifi' | null;
1049
- /**
1050
- * Sub-category of the ancillary service, free-form.
1051
- */
1052
- sub_category: string | null;
1053
- }
1054
- }
1055
- interface TripLeg {
1056
- /**
1057
- * Carrier code (e.g., United Airlines, Jet Blue, etc.).
1058
- */
1059
- carrier_code: string | null;
1060
- /**
1061
- * Code for the destination city or airport.
1062
- */
1063
- destination_city_airport_code: string | null;
1064
- /**
1065
- * Fare basis code.
1066
- */
1067
- fare_basis_code: string | null;
1068
- /**
1069
- * Flight number.
1070
- */
1071
- flight_number: string | null;
1072
- /**
1073
- * Service class (e.g., first class, business class, etc.).
1074
- */
1075
- service_class: string | null;
1076
- /**
1077
- * Indicates whether a stopover is allowed on this ticket.
1078
- *
1079
- * - `none` - None
1080
- * - `stop_over_allowed` - Stop over allowed
1081
- * - `stop_over_not_allowed` - Stop over not allowed
1082
- */
1083
- stop_over_code: 'none' | 'stop_over_allowed' | 'stop_over_not_allowed' | null;
1084
- }
1085
- }
1086
- }
1087
- }
1088
- /**
1089
- * A Card Revenue Payment object. This field will be present in the JSON response
1090
- * if and only if `category` is equal to `card_revenue_payment`.
1091
- */
1092
- interface CardRevenuePayment {
1093
- /**
1094
- * The amount in the minor unit of the transaction's currency. For dollars, for
1095
- * example, this is cents.
1096
- */
1097
- amount: number;
1098
- /**
1099
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transaction
1100
- * currency.
1101
- *
1102
- * - `CAD` - Canadian Dollar (CAD)
1103
- * - `CHF` - Swiss Franc (CHF)
1104
- * - `EUR` - Euro (EUR)
1105
- * - `GBP` - British Pound (GBP)
1106
- * - `JPY` - Japanese Yen (JPY)
1107
- * - `USD` - US Dollar (USD)
1108
- */
1109
- currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
1110
- /**
1111
- * The end of the period for which this transaction paid interest.
1112
- */
1113
- period_end: string;
1114
- /**
1115
- * The start of the period for which this transaction paid interest.
1116
- */
1117
- period_start: string;
1118
- /**
1119
- * The account the card belonged to.
1120
- */
1121
- transacted_on_account_id: string | null;
1122
- }
1123
- /**
1124
- * A Card Settlement object. This field will be present in the JSON response if and
1125
- * only if `category` is equal to `card_settlement`.
1126
- */
1127
- interface CardSettlement {
1128
- /**
1129
- * The Card Settlement identifier.
1130
- */
1131
- id: string;
1132
- /**
1133
- * The amount in the minor unit of the transaction's settlement currency. For
1134
- * dollars, for example, this is cents.
1135
- */
1136
- amount: number;
1137
- /**
1138
- * The Card Authorization that was created prior to this Card Settlement, if one
1139
- * exists.
1140
- */
1141
- card_authorization: string | null;
1142
- /**
1143
- * The ID of the Card Payment this transaction belongs to.
1144
- */
1145
- card_payment_id: string | null;
1146
- /**
1147
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
1148
- * transaction's settlement currency.
1149
- *
1150
- * - `CAD` - Canadian Dollar (CAD)
1151
- * - `CHF` - Swiss Franc (CHF)
1152
- * - `EUR` - Euro (EUR)
1153
- * - `GBP` - British Pound (GBP)
1154
- * - `JPY` - Japanese Yen (JPY)
1155
- * - `USD` - US Dollar (USD)
1156
- */
1157
- currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
1158
- /**
1159
- * The merchant identifier (commonly abbreviated as MID) of the merchant the card
1160
- * is transacting with.
1161
- */
1162
- merchant_acceptor_id: string | null;
1163
- /**
1164
- * The 4-digit MCC describing the merchant's business.
1165
- */
1166
- merchant_category_code: string;
1167
- /**
1168
- * The city the merchant resides in.
1169
- */
1170
- merchant_city: string | null;
1171
- /**
1172
- * The country the merchant resides in.
1173
- */
1174
- merchant_country: string;
1175
- /**
1176
- * The name of the merchant.
1177
- */
1178
- merchant_name: string | null;
1179
- /**
1180
- * The state the merchant resides in.
1181
- */
1182
- merchant_state: string | null;
1183
- /**
1184
- * Network-specific identifiers for this refund.
1185
- */
1186
- network_identifiers: CardSettlement.NetworkIdentifiers;
1187
- /**
1188
- * The identifier of the Pending Transaction associated with this Transaction.
1189
- */
1190
- pending_transaction_id: string | null;
1191
- /**
1192
- * The amount in the minor unit of the transaction's presentment currency.
1193
- */
1194
- presentment_amount: number;
1195
- /**
1196
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
1197
- * transaction's presentment currency.
1198
- */
1199
- presentment_currency: string;
1200
- /**
1201
- * Additional details about the card purchase, such as tax and industry-specific
1202
- * fields.
1203
- */
1204
- purchase_details: CardSettlement.PurchaseDetails | null;
1205
- /**
1206
- * The identifier of the Transaction associated with this Transaction.
1207
- */
1208
- transaction_id: string;
1209
- /**
1210
- * A constant representing the object's type. For this resource it will always be
1211
- * `card_settlement`.
1212
- */
1213
- type: 'card_settlement';
1214
- }
1215
- namespace CardSettlement {
1216
- /**
1217
- * Network-specific identifiers for this refund.
1218
- */
1219
- interface NetworkIdentifiers {
1220
- /**
1221
- * A network assigned business ID that identifies the acquirer that processed this
1222
- * transaction.
1223
- */
1224
- acquirer_business_id: string;
1225
- /**
1226
- * A globally unique identifier for this settlement.
1227
- */
1228
- acquirer_reference_number: string;
1229
- /**
1230
- * A globally unique transaction identifier provided by the card network, used
1231
- * across multiple life-cycle requests.
1232
- */
1233
- transaction_id: string | null;
1234
- }
1235
- /**
1236
- * Additional details about the card purchase, such as tax and industry-specific
1237
- * fields.
1238
- */
1239
- interface PurchaseDetails {
1240
- /**
1241
- * Fields specific to car rentals.
1242
- */
1243
- car_rental: PurchaseDetails.CarRental | null;
1244
- /**
1245
- * An identifier from the merchant for the customer or consumer.
1246
- */
1247
- customer_reference_identifier: string | null;
1248
- /**
1249
- * The state or provincial tax amount in minor units.
1250
- */
1251
- local_tax_amount: number | null;
1252
- /**
1253
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the local tax
1254
- * assessed.
1255
- */
1256
- local_tax_currency: string | null;
1257
- /**
1258
- * Fields specific to lodging.
1259
- */
1260
- lodging: PurchaseDetails.Lodging | null;
1261
- /**
1262
- * The national tax amount in minor units.
1263
- */
1264
- national_tax_amount: number | null;
1265
- /**
1266
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the local tax
1267
- * assessed.
1268
- */
1269
- national_tax_currency: string | null;
1270
- /**
1271
- * An identifier from the merchant for the purchase to the issuer and cardholder.
1272
- */
1273
- purchase_identifier: string | null;
1274
- /**
1275
- * The format of the purchase identifier.
1276
- *
1277
- * - `free_text` - Free text
1278
- * - `order_number` - Order number
1279
- * - `rental_agreement_number` - Rental agreement number
1280
- * - `hotel_folio_number` - Hotel folio number
1281
- * - `invoice_number` - Invoice number
1282
- */
1283
- purchase_identifier_format: 'free_text' | 'order_number' | 'rental_agreement_number' | 'hotel_folio_number' | 'invoice_number' | null;
1284
- /**
1285
- * Fields specific to travel.
1286
- */
1287
- travel: PurchaseDetails.Travel | null;
1288
- }
1289
- namespace PurchaseDetails {
1290
- /**
1291
- * Fields specific to car rentals.
1292
- */
1293
- interface CarRental {
1294
- /**
1295
- * Code indicating the vehicle's class.
1296
- */
1297
- car_class_code: string | null;
1298
- /**
1299
- * Date the customer picked up the car or, in the case of a no-show or pre-pay
1300
- * transaction, the scheduled pick up date.
1301
- */
1302
- checkout_date: string | null;
1303
- /**
1304
- * Daily rate being charged for the vehicle.
1305
- */
1306
- daily_rental_rate_amount: number | null;
1307
- /**
1308
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the daily rental
1309
- * rate.
1310
- */
1311
- daily_rental_rate_currency: string | null;
1312
- /**
1313
- * Number of days the vehicle was rented.
1314
- */
1315
- days_rented: number | null;
1316
- /**
1317
- * Additional charges (gas, late fee, etc.) being billed.
1318
- *
1319
- * - `no_extra_charge` - No extra charge
1320
- * - `gas` - Gas
1321
- * - `extra_mileage` - Extra mileage
1322
- * - `late_return` - Late return
1323
- * - `one_way_service_fee` - One way service fee
1324
- * - `parking_violation` - Parking violation
1325
- */
1326
- extra_charges: 'no_extra_charge' | 'gas' | 'extra_mileage' | 'late_return' | 'one_way_service_fee' | 'parking_violation' | null;
1327
- /**
1328
- * Fuel charges for the vehicle.
1329
- */
1330
- fuel_charges_amount: number | null;
1331
- /**
1332
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the fuel charges
1333
- * assessed.
1334
- */
1335
- fuel_charges_currency: string | null;
1336
- /**
1337
- * Any insurance being charged for the vehicle.
1338
- */
1339
- insurance_charges_amount: number | null;
1340
- /**
1341
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the insurance
1342
- * charges assessed.
1343
- */
1344
- insurance_charges_currency: string | null;
1345
- /**
1346
- * An indicator that the cardholder is being billed for a reserved vehicle that was
1347
- * not actually rented (that is, a "no-show" charge).
1348
- *
1349
- * - `not_applicable` - Not applicable
1350
- * - `no_show_for_specialized_vehicle` - No show for specialized vehicle
1351
- */
1352
- no_show_indicator: 'not_applicable' | 'no_show_for_specialized_vehicle' | null;
1353
- /**
1354
- * Charges for returning the vehicle at a different location than where it was
1355
- * picked up.
1356
- */
1357
- one_way_drop_off_charges_amount: number | null;
1358
- /**
1359
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the one-way
1360
- * drop-off charges assessed.
1361
- */
1362
- one_way_drop_off_charges_currency: string | null;
1363
- /**
1364
- * Name of the person renting the vehicle.
1365
- */
1366
- renter_name: string | null;
1367
- /**
1368
- * Weekly rate being charged for the vehicle.
1369
- */
1370
- weekly_rental_rate_amount: number | null;
1371
- /**
1372
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the weekly
1373
- * rental rate.
1374
- */
1375
- weekly_rental_rate_currency: string | null;
1376
- }
1377
- /**
1378
- * Fields specific to lodging.
1379
- */
1380
- interface Lodging {
1381
- /**
1382
- * Date the customer checked in.
1383
- */
1384
- check_in_date: string | null;
1385
- /**
1386
- * Daily rate being charged for the room.
1387
- */
1388
- daily_room_rate_amount: number | null;
1389
- /**
1390
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the daily room
1391
- * rate.
1392
- */
1393
- daily_room_rate_currency: string | null;
1394
- /**
1395
- * Additional charges (phone, late check-out, etc.) being billed.
1396
- *
1397
- * - `no_extra_charge` - No extra charge
1398
- * - `restaurant` - Restaurant
1399
- * - `gift_shop` - Gift shop
1400
- * - `mini_bar` - Mini bar
1401
- * - `telephone` - Telephone
1402
- * - `other` - Other
1403
- * - `laundry` - Laundry
1404
- */
1405
- extra_charges: 'no_extra_charge' | 'restaurant' | 'gift_shop' | 'mini_bar' | 'telephone' | 'other' | 'laundry' | null;
1406
- /**
1407
- * Folio cash advances for the room.
1408
- */
1409
- folio_cash_advances_amount: number | null;
1410
- /**
1411
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the folio cash
1412
- * advances.
1413
- */
1414
- folio_cash_advances_currency: string | null;
1415
- /**
1416
- * Food and beverage charges for the room.
1417
- */
1418
- food_beverage_charges_amount: number | null;
1419
- /**
1420
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the food and
1421
- * beverage charges.
1422
- */
1423
- food_beverage_charges_currency: string | null;
1424
- /**
1425
- * Indicator that the cardholder is being billed for a reserved room that was not
1426
- * actually used.
1427
- *
1428
- * - `not_applicable` - Not applicable
1429
- * - `no_show` - No show
1430
- */
1431
- no_show_indicator: 'not_applicable' | 'no_show' | null;
1432
- /**
1433
- * Prepaid expenses being charged for the room.
1434
- */
1435
- prepaid_expenses_amount: number | null;
1436
- /**
1437
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the prepaid
1438
- * expenses.
1439
- */
1440
- prepaid_expenses_currency: string | null;
1441
- /**
1442
- * Number of nights the room was rented.
1443
- */
1444
- room_nights: number | null;
1445
- /**
1446
- * Total room tax being charged.
1447
- */
1448
- total_room_tax_amount: number | null;
1449
- /**
1450
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the total room
1451
- * tax.
1452
- */
1453
- total_room_tax_currency: string | null;
1454
- /**
1455
- * Total tax being charged for the room.
1456
- */
1457
- total_tax_amount: number | null;
1458
- /**
1459
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the total tax
1460
- * assessed.
1461
- */
1462
- total_tax_currency: string | null;
1463
- }
1464
- /**
1465
- * Fields specific to travel.
1466
- */
1467
- interface Travel {
1468
- /**
1469
- * Ancillary purchases in addition to the airfare.
1470
- */
1471
- ancillary: Travel.Ancillary | null;
1472
- /**
1473
- * Indicates the computerized reservation system used to book the ticket.
1474
- */
1475
- computerized_reservation_system: string | null;
1476
- /**
1477
- * Indicates the reason for a credit to the cardholder.
1478
- *
1479
- * - `no_credit` - No credit
1480
- * - `passenger_transport_ancillary_purchase_cancellation` - Passenger transport
1481
- * ancillary purchase cancellation
1482
- * - `airline_ticket_and_passenger_transport_ancillary_purchase_cancellation` -
1483
- * Airline ticket and passenger transport ancillary purchase cancellation
1484
- * - `airline_ticket_cancellation` - Airline ticket cancellation
1485
- * - `other` - Other
1486
- * - `partial_refund_of_airline_ticket` - Partial refund of airline ticket
1487
- */
1488
- credit_reason_indicator: 'no_credit' | 'passenger_transport_ancillary_purchase_cancellation' | 'airline_ticket_and_passenger_transport_ancillary_purchase_cancellation' | 'airline_ticket_cancellation' | 'other' | 'partial_refund_of_airline_ticket' | null;
1489
- /**
1490
- * Date of departure.
1491
- */
1492
- departure_date: string | null;
1493
- /**
1494
- * Code for the originating city or airport.
1495
- */
1496
- origination_city_airport_code: string | null;
1497
- /**
1498
- * Name of the passenger.
1499
- */
1500
- passenger_name: string | null;
1501
- /**
1502
- * Indicates whether this ticket is non-refundable.
1503
- *
1504
- * - `no_restrictions` - No restrictions
1505
- * - `restricted_non_refundable_ticket` - Restricted non-refundable ticket
1506
- */
1507
- restricted_ticket_indicator: 'no_restrictions' | 'restricted_non_refundable_ticket' | null;
1508
- /**
1509
- * Indicates why a ticket was changed.
1510
- *
1511
- * - `none` - None
1512
- * - `change_to_existing_ticket` - Change to existing ticket
1513
- * - `new_ticket` - New ticket
1514
- */
1515
- ticket_change_indicator: 'none' | 'change_to_existing_ticket' | 'new_ticket' | null;
1516
- /**
1517
- * Ticket number.
1518
- */
1519
- ticket_number: string | null;
1520
- /**
1521
- * Code for the travel agency if the ticket was issued by a travel agency.
1522
- */
1523
- travel_agency_code: string | null;
1524
- /**
1525
- * Name of the travel agency if the ticket was issued by a travel agency.
1526
- */
1527
- travel_agency_name: string | null;
1528
- /**
1529
- * Fields specific to each leg of the journey.
1530
- */
1531
- trip_legs: Array<Travel.TripLeg> | null;
1532
- }
1533
- namespace Travel {
1534
- /**
1535
- * Ancillary purchases in addition to the airfare.
1536
- */
1537
- interface Ancillary {
1538
- /**
1539
- * If this purchase has a connection or relationship to another purchase, such as a
1540
- * baggage fee for a passenger transport ticket, this field should contain the
1541
- * ticket document number for the other purchase.
1542
- */
1543
- connected_ticket_document_number: string | null;
1544
- /**
1545
- * Indicates the reason for a credit to the cardholder.
1546
- *
1547
- * - `no_credit` - No credit
1548
- * - `passenger_transport_ancillary_purchase_cancellation` - Passenger transport
1549
- * ancillary purchase cancellation
1550
- * - `airline_ticket_and_passenger_transport_ancillary_purchase_cancellation` -
1551
- * Airline ticket and passenger transport ancillary purchase cancellation
1552
- * - `other` - Other
1553
- */
1554
- credit_reason_indicator: 'no_credit' | 'passenger_transport_ancillary_purchase_cancellation' | 'airline_ticket_and_passenger_transport_ancillary_purchase_cancellation' | 'other' | null;
1555
- /**
1556
- * Name of the passenger or description of the ancillary purchase.
1557
- */
1558
- passenger_name_or_description: string | null;
1559
- /**
1560
- * Additional travel charges, such as baggage fees.
1561
- */
1562
- services: Array<Ancillary.Service>;
1563
- /**
1564
- * Ticket document number.
1565
- */
1566
- ticket_document_number: string | null;
1567
- }
1568
- namespace Ancillary {
1569
- interface Service {
1570
- /**
1571
- * Category of the ancillary service.
1572
- *
1573
- * - `none` - None
1574
- * - `bundled_service` - Bundled service
1575
- * - `baggage_fee` - Baggage fee
1576
- * - `change_fee` - Change fee
1577
- * - `cargo` - Cargo
1578
- * - `carbon_offset` - Carbon offset
1579
- * - `frequent_flyer` - Frequent flyer
1580
- * - `gift_card` - Gift card
1581
- * - `ground_transport` - Ground transport
1582
- * - `in_flight_entertainment` - In-flight entertainment
1583
- * - `lounge` - Lounge
1584
- * - `medical` - Medical
1585
- * - `meal_beverage` - Meal beverage
1586
- * - `other` - Other
1587
- * - `passenger_assist_fee` - Passenger assist fee
1588
- * - `pets` - Pets
1589
- * - `seat_fees` - Seat fees
1590
- * - `standby` - Standby
1591
- * - `service_fee` - Service fee
1592
- * - `store` - Store
1593
- * - `travel_service` - Travel service
1594
- * - `unaccompanied_travel` - Unaccompanied travel
1595
- * - `upgrades` - Upgrades
1596
- * - `wifi` - Wi-fi
1597
- */
1598
- category: 'none' | 'bundled_service' | 'baggage_fee' | 'change_fee' | 'cargo' | 'carbon_offset' | 'frequent_flyer' | 'gift_card' | 'ground_transport' | 'in_flight_entertainment' | 'lounge' | 'medical' | 'meal_beverage' | 'other' | 'passenger_assist_fee' | 'pets' | 'seat_fees' | 'standby' | 'service_fee' | 'store' | 'travel_service' | 'unaccompanied_travel' | 'upgrades' | 'wifi' | null;
1599
- /**
1600
- * Sub-category of the ancillary service, free-form.
1601
- */
1602
- sub_category: string | null;
1603
- }
1604
- }
1605
- interface TripLeg {
1606
- /**
1607
- * Carrier code (e.g., United Airlines, Jet Blue, etc.).
1608
- */
1609
- carrier_code: string | null;
1610
- /**
1611
- * Code for the destination city or airport.
1612
- */
1613
- destination_city_airport_code: string | null;
1614
- /**
1615
- * Fare basis code.
1616
- */
1617
- fare_basis_code: string | null;
1618
- /**
1619
- * Flight number.
1620
- */
1621
- flight_number: string | null;
1622
- /**
1623
- * Service class (e.g., first class, business class, etc.).
1624
- */
1625
- service_class: string | null;
1626
- /**
1627
- * Indicates whether a stopover is allowed on this ticket.
1628
- *
1629
- * - `none` - None
1630
- * - `stop_over_allowed` - Stop over allowed
1631
- * - `stop_over_not_allowed` - Stop over not allowed
1632
- */
1633
- stop_over_code: 'none' | 'stop_over_allowed' | 'stop_over_not_allowed' | null;
1634
- }
1635
- }
1636
- }
1637
- }
1638
- /**
1639
- * A Check Deposit Acceptance object. This field will be present in the JSON
1640
- * response if and only if `category` is equal to `check_deposit_acceptance`.
1641
- */
1642
- interface CheckDepositAcceptance {
1643
- /**
1644
- * The account number printed on the check.
1645
- */
1646
- account_number: string;
1647
- /**
1648
- * The amount to be deposited in the minor unit of the transaction's currency. For
1649
- * dollars, for example, this is cents.
1650
- */
1651
- amount: number;
1652
- /**
1653
- * An additional line of metadata printed on the check. This typically includes the
1654
- * check number for business checks.
1655
- */
1656
- auxiliary_on_us: string | null;
1657
- /**
1658
- * The ID of the Check Deposit that was accepted.
1659
- */
1660
- check_deposit_id: string;
1661
- /**
1662
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
1663
- * transaction's currency.
1664
- *
1665
- * - `CAD` - Canadian Dollar (CAD)
1666
- * - `CHF` - Swiss Franc (CHF)
1667
- * - `EUR` - Euro (EUR)
1668
- * - `GBP` - British Pound (GBP)
1669
- * - `JPY` - Japanese Yen (JPY)
1670
- * - `USD` - US Dollar (USD)
1671
- */
1672
- currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
1673
- /**
1674
- * The routing number printed on the check.
1675
- */
1676
- routing_number: string;
1677
- /**
1678
- * The check serial number, if present, for consumer checks. For business checks,
1679
- * the serial number is usually in the `auxiliary_on_us` field.
1680
- */
1681
- serial_number: string | null;
1682
- }
1683
- /**
1684
- * A Check Deposit Return object. This field will be present in the JSON response
1685
- * if and only if `category` is equal to `check_deposit_return`.
1686
- */
1687
- interface CheckDepositReturn {
1688
- /**
1689
- * The amount in the minor unit of the transaction's currency. For dollars, for
1690
- * example, this is cents.
1691
- */
1692
- amount: number;
1693
- /**
1694
- * The identifier of the Check Deposit that was returned.
1695
- */
1696
- check_deposit_id: string;
1697
- /**
1698
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
1699
- * transaction's currency.
1700
- *
1701
- * - `CAD` - Canadian Dollar (CAD)
1702
- * - `CHF` - Swiss Franc (CHF)
1703
- * - `EUR` - Euro (EUR)
1704
- * - `GBP` - British Pound (GBP)
1705
- * - `JPY` - Japanese Yen (JPY)
1706
- * - `USD` - US Dollar (USD)
1707
- */
1708
- currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
1709
- /**
1710
- * Why this check was returned by the bank holding the account it was drawn
1711
- * against.
1712
- *
1713
- * - `ach_conversion_not_supported` - The check doesn't allow ACH conversion.
1714
- * - `closed_account` - The account is closed.
1715
- * - `duplicate_submission` - The check has already been deposited.
1716
- * - `insufficient_funds` - Insufficient funds
1717
- * - `no_account` - No account was found matching the check details.
1718
- * - `not_authorized` - The check was not authorized.
1719
- * - `stale_dated` - The check is too old.
1720
- * - `stop_payment` - The payment has been stopped by the account holder.
1721
- * - `unknown_reason` - The reason for the return is unknown.
1722
- * - `unmatched_details` - The image doesn't match the details submitted.
1723
- * - `unreadable_image` - The image could not be read.
1724
- * - `endorsement_irregular` - The check endorsement was irregular.
1725
- * - `altered_or_fictitious_item` - The check present was either altered or fake.
1726
- * - `frozen_or_blocked_account` - The account this check is drawn on is frozen.
1727
- * - `post_dated` - The check is post dated.
1728
- * - `endorsement_missing` - The endorsement was missing.
1729
- * - `signature_missing` - The check signature was missing.
1730
- * - `stop_payment_suspect` - The bank suspects a stop payment will be placed.
1731
- * - `unusable_image` - The bank cannot read the image.
1732
- * - `image_fails_security_check` - The check image fails the bank's security
1733
- * check.
1734
- * - `cannot_determine_amount` - The bank cannot determine the amount.
1735
- * - `signature_irregular` - The signature is inconsistent with prior signatures.
1736
- * - `non_cash_item` - The check is a non-cash item and cannot be drawn against the
1737
- * account.
1738
- * - `unable_to_process` - The bank is unable to process this check.
1739
- * - `item_exceeds_dollar_limit` - The check exceeds the bank or customer's limit.
1740
- * - `branch_or_account_sold` - The bank sold this account and no longer services
1741
- * this customer.
1742
- */
1743
- return_reason: 'ach_conversion_not_supported' | 'closed_account' | 'duplicate_submission' | 'insufficient_funds' | 'no_account' | 'not_authorized' | 'stale_dated' | 'stop_payment' | 'unknown_reason' | 'unmatched_details' | 'unreadable_image' | 'endorsement_irregular' | 'altered_or_fictitious_item' | 'frozen_or_blocked_account' | 'post_dated' | 'endorsement_missing' | 'signature_missing' | 'stop_payment_suspect' | 'unusable_image' | 'image_fails_security_check' | 'cannot_determine_amount' | 'signature_irregular' | 'non_cash_item' | 'unable_to_process' | 'item_exceeds_dollar_limit' | 'branch_or_account_sold';
1744
- /**
1745
- * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
1746
- * the check deposit was returned.
1747
- */
1748
- returned_at: string;
1749
- /**
1750
- * The identifier of the transaction that reversed the original check deposit
1751
- * transaction.
1752
- */
1753
- transaction_id: string;
1754
- }
1755
- /**
1756
- * A Check Transfer Deposit object. This field will be present in the JSON response
1757
- * if and only if `category` is equal to `check_transfer_deposit`.
1758
- */
1759
- interface CheckTransferDeposit {
1760
- /**
1761
- * The identifier of the API File object containing an image of the back of the
1762
- * deposited check.
1763
- */
1764
- back_image_file_id: string | null;
1765
- /**
1766
- * The American Bankers' Association (ABA) Routing Transit Number (RTN) for the
1767
- * bank depositing this check. In some rare cases, this is not transmitted via
1768
- * Check21 and the value will be null.
1769
- */
1770
- bank_of_first_deposit_routing_number: string | null;
1771
- /**
1772
- * When the check was deposited.
1773
- */
1774
- deposited_at: string;
1775
- /**
1776
- * The identifier of the API File object containing an image of the front of the
1777
- * deposited check.
1778
- */
1779
- front_image_file_id: string | null;
1780
- /**
1781
- * The identifier of the Transaction object created when the check was deposited.
1782
- */
1783
- transaction_id: string | null;
1784
- /**
1785
- * The identifier of the Check Transfer object that was deposited.
1786
- */
1787
- transfer_id: string;
1788
- /**
1789
- * A constant representing the object's type. For this resource it will always be
1790
- * `check_transfer_deposit`.
1791
- */
1792
- type: 'check_transfer_deposit';
1793
- }
1794
- /**
1795
- * A Check Transfer Intention object. This field will be present in the JSON
1796
- * response if and only if `category` is equal to `check_transfer_intention`.
1797
- */
1798
- interface CheckTransferIntention {
1799
- /**
1800
- * The city of the check's destination.
1801
- */
1802
- address_city: string | null;
1803
- /**
1804
- * The street address of the check's destination.
1805
- */
1806
- address_line1: string | null;
1807
- /**
1808
- * The second line of the address of the check's destination.
1809
- */
1810
- address_line2: string | null;
1811
- /**
1812
- * The state of the check's destination.
1813
- */
1814
- address_state: string | null;
1815
- /**
1816
- * The postal code of the check's destination.
1817
- */
1818
- address_zip: string | null;
1819
- /**
1820
- * The transfer amount in USD cents.
1821
- */
1822
- amount: number;
1823
- /**
1824
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the check's
1825
- * currency.
1826
- *
1827
- * - `CAD` - Canadian Dollar (CAD)
1828
- * - `CHF` - Swiss Franc (CHF)
1829
- * - `EUR` - Euro (EUR)
1830
- * - `GBP` - British Pound (GBP)
1831
- * - `JPY` - Japanese Yen (JPY)
1832
- * - `USD` - US Dollar (USD)
1833
- */
1834
- currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
1835
- /**
1836
- * The name that will be printed on the check.
1837
- */
1838
- recipient_name: string | null;
1839
- /**
1840
- * The identifier of the Check Transfer with which this is associated.
1841
- */
1842
- transfer_id: string;
1843
- }
1844
- /**
1845
- * A Check Transfer Stop Payment Request object. This field will be present in the
1846
- * JSON response if and only if `category` is equal to
1847
- * `check_transfer_stop_payment_request`.
1848
- */
1849
- interface CheckTransferStopPaymentRequest {
1850
- /**
1851
- * The reason why this transfer was stopped.
1852
- *
1853
- * - `mail_delivery_failed` - The check could not be delivered.
1854
- * - `rejected_by_increase` - The check was canceled by an Increase operator who
1855
- * will provide details out-of-band.
1856
- * - `not_authorized` - The check was not authorized.
1857
- * - `unknown` - The check was stopped for another reason.
1858
- */
1859
- reason: 'mail_delivery_failed' | 'rejected_by_increase' | 'not_authorized' | 'unknown';
1860
- /**
1861
- * The time the stop-payment was requested.
1862
- */
1863
- requested_at: string;
1864
- /**
1865
- * The ID of the check transfer that was stopped.
1866
- */
1867
- transfer_id: string;
1868
- /**
1869
- * A constant representing the object's type. For this resource it will always be
1870
- * `check_transfer_stop_payment_request`.
1871
- */
1872
- type: 'check_transfer_stop_payment_request';
1873
- }
1874
- /**
1875
- * A Fee Payment object. This field will be present in the JSON response if and
1876
- * only if `category` is equal to `fee_payment`.
1877
- */
1878
- interface FeePayment {
1879
- /**
1880
- * The amount in the minor unit of the transaction's currency. For dollars, for
1881
- * example, this is cents.
1882
- */
1883
- amount: number;
1884
- /**
1885
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transaction
1886
- * currency.
1887
- *
1888
- * - `CAD` - Canadian Dollar (CAD)
1889
- * - `CHF` - Swiss Franc (CHF)
1890
- * - `EUR` - Euro (EUR)
1891
- * - `GBP` - British Pound (GBP)
1892
- * - `JPY` - Japanese Yen (JPY)
1893
- * - `USD` - US Dollar (USD)
1894
- */
1895
- currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
1896
- /**
1897
- * The start of this payment's fee period, usually the first day of a month.
1898
- */
1899
- fee_period_start: string;
1900
- }
1901
- /**
1902
- * An Inbound ACH Transfer Intention object. This field will be present in the JSON
1903
- * response if and only if `category` is equal to `inbound_ach_transfer`.
1904
- */
1905
- interface InboundACHTransfer {
1906
- /**
1907
- * Additional information sent from the originator.
1908
- */
1909
- addenda: InboundACHTransfer.Addenda | null;
1910
- /**
1911
- * The amount in the minor unit of the destination account currency. For dollars,
1912
- * for example, this is cents.
1913
- */
1914
- amount: number;
1915
- /**
1916
- * The description of the date of the transfer, usually in the format `YYMMDD`.
1917
- */
1918
- originator_company_descriptive_date: string | null;
1919
- /**
1920
- * Data set by the originator.
1921
- */
1922
- originator_company_discretionary_data: string | null;
1923
- /**
1924
- * An informational description of the transfer.
1925
- */
1926
- originator_company_entry_description: string;
1927
- /**
1928
- * An identifier for the originating company. This is generally, but not always, a
1929
- * stable identifier across multiple transfers.
1930
- */
1931
- originator_company_id: string;
1932
- /**
1933
- * A name set by the originator to identify themselves.
1934
- */
1935
- originator_company_name: string;
1936
- /**
1937
- * The originator's identifier for the transfer receipient.
1938
- */
1939
- receiver_id_number: string | null;
1940
- /**
1941
- * The name of the transfer recipient. This value is informational and not verified
1942
- * by Increase.
1943
- */
1944
- receiver_name: string | null;
1945
- /**
1946
- * A 15 digit number recorded in the Nacha file and available to both the
1947
- * originating and receiving bank. Along with the amount, date, and originating
1948
- * routing number, this can be used to identify the ACH transfer at either bank.
1949
- * ACH trace numbers are not unique, but are
1950
- * [used to correlate returns](https://increase.com/documentation/ach#returns).
1951
- */
1952
- trace_number: string;
1953
- /**
1954
- * The inbound ach transfer's identifier.
1955
- */
1956
- transfer_id: string;
1957
- }
1958
- namespace InboundACHTransfer {
1959
- /**
1960
- * Additional information sent from the originator.
1961
- */
1962
- interface Addenda {
1963
- /**
1964
- * The type of addendum.
1965
- *
1966
- * - `freeform` - Unstructured addendum.
1967
- */
1968
- category: 'freeform';
1969
- /**
1970
- * Unstructured `payment_related_information` passed through by the originator.
1971
- */
1972
- freeform: Addenda.Freeform | null;
1973
- }
1974
- namespace Addenda {
1975
- /**
1976
- * Unstructured `payment_related_information` passed through by the originator.
1977
- */
1978
- interface Freeform {
1979
- /**
1980
- * Each entry represents an addendum received from the originator.
1981
- */
1982
- entries: Array<Freeform.Entry>;
1983
- }
1984
- namespace Freeform {
1985
- interface Entry {
1986
- /**
1987
- * The payment related information passed in the addendum.
1988
- */
1989
- payment_related_information: string;
1990
- }
1991
- }
1992
- }
1993
- }
1994
- /**
1995
- * An Inbound Check object. This field will be present in the JSON response if and
1996
- * only if `category` is equal to `inbound_check`.
1997
- */
1998
- interface InboundCheck {
1999
- /**
2000
- * The amount in the minor unit of the destination account currency. For dollars,
2001
- * for example, this is cents.
2002
- */
2003
- amount: number;
2004
- /**
2005
- * The American Bankers' Association (ABA) Routing Transit Number (RTN) for the
2006
- * bank depositing this check. In some rare cases, this is not transmitted via
2007
- * Check21 and the value will be null.
2008
- */
2009
- bank_of_first_deposit_routing_number: string | null;
2010
- /**
2011
- * The front image of the check. This is a black and white TIFF image file.
2012
- */
2013
- check_front_image_file_id: string | null;
2014
- /**
2015
- * The number of the check. This field is set by the depositing bank and can be
2016
- * unreliable.
2017
- */
2018
- check_number: string | null;
2019
- /**
2020
- * The rear image of the check. This is a black and white TIFF image file.
2021
- */
2022
- check_rear_image_file_id: string | null;
2023
- /**
2024
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
2025
- * transaction's currency.
2026
- *
2027
- * - `CAD` - Canadian Dollar (CAD)
2028
- * - `CHF` - Swiss Franc (CHF)
2029
- * - `EUR` - Euro (EUR)
2030
- * - `GBP` - British Pound (GBP)
2031
- * - `JPY` - Japanese Yen (JPY)
2032
- * - `USD` - US Dollar (USD)
2033
- */
2034
- currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
2035
- }
2036
- /**
2037
- * An Inbound International ACH Transfer object. This field will be present in the
2038
- * JSON response if and only if `category` is equal to
2039
- * `inbound_international_ach_transfer`.
2040
- */
2041
- interface InboundInternationalACHTransfer {
2042
- /**
2043
- * The amount in the minor unit of the destination account currency. For dollars,
2044
- * for example, this is cents.
2045
- */
2046
- amount: number;
2047
- /**
2048
- * The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2
2049
- * country code of the destination country.
2050
- */
2051
- destination_country_code: string;
2052
- /**
2053
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code for the
2054
- * destination bank account.
2055
- */
2056
- destination_currency_code: string;
2057
- /**
2058
- * A description of how the foreign exchange rate was calculated.
2059
- *
2060
- * - `fixed_to_variable` - The originator chose an amount in their own currency.
2061
- * The settled amount in USD was converted using the exchange rate.
2062
- * - `variable_to_fixed` - The originator chose an amount to settle in USD. The
2063
- * originator's amount was variable; known only after the foreign exchange
2064
- * conversion.
2065
- * - `fixed_to_fixed` - The amount was originated and settled as a fixed amount in
2066
- * USD. There is no foreign exchange conversion.
2067
- */
2068
- foreign_exchange_indicator: 'fixed_to_variable' | 'variable_to_fixed' | 'fixed_to_fixed';
2069
- /**
2070
- * Depending on the `foreign_exchange_reference_indicator`, an exchange rate or a
2071
- * reference to a well-known rate.
2072
- */
2073
- foreign_exchange_reference: string | null;
2074
- /**
2075
- * An instruction of how to interpret the `foreign_exchange_reference` field for
2076
- * this Transaction.
2077
- *
2078
- * - `foreign_exchange_rate` - The ACH file contains a foreign exchange rate.
2079
- * - `foreign_exchange_reference_number` - The ACH file contains a reference to a
2080
- * well-known foreign exchange rate.
2081
- * - `blank` - There is no foreign exchange for this transfer, so the
2082
- * `foreign_exchange_reference` field is blank.
2083
- */
2084
- foreign_exchange_reference_indicator: 'foreign_exchange_rate' | 'foreign_exchange_reference_number' | 'blank';
2085
- /**
2086
- * The amount in the minor unit of the foreign payment currency. For dollars, for
2087
- * example, this is cents.
2088
- */
2089
- foreign_payment_amount: number;
2090
- /**
2091
- * A reference number in the foreign banking infrastructure.
2092
- */
2093
- foreign_trace_number: string | null;
2094
- /**
2095
- * The type of transfer. Set by the originator.
2096
- *
2097
- * - `annuity` - Sent as `ANN` in the Nacha file.
2098
- * - `business_or_commercial` - Sent as `BUS` in the Nacha file.
2099
- * - `deposit` - Sent as `DEP` in the Nacha file.
2100
- * - `loan` - Sent as `LOA` in the Nacha file.
2101
- * - `miscellaneous` - Sent as `MIS` in the Nacha file.
2102
- * - `mortgage` - Sent as `MOR` in the Nacha file.
2103
- * - `pension` - Sent as `PEN` in the Nacha file.
2104
- * - `remittance` - Sent as `REM` in the Nacha file.
2105
- * - `rent_or_lease` - Sent as `RLS` in the Nacha file.
2106
- * - `salary_or_payroll` - Sent as `SAL` in the Nacha file.
2107
- * - `tax` - Sent as `TAX` in the Nacha file.
2108
- * - `accounts_receivable` - Sent as `ARC` in the Nacha file.
2109
- * - `back_office_conversion` - Sent as `BOC` in the Nacha file.
2110
- * - `machine_transfer` - Sent as `MTE` in the Nacha file.
2111
- * - `point_of_purchase` - Sent as `POP` in the Nacha file.
2112
- * - `point_of_sale` - Sent as `POS` in the Nacha file.
2113
- * - `represented_check` - Sent as `RCK` in the Nacha file.
2114
- * - `shared_network_transaction` - Sent as `SHR` in the Nacha file.
2115
- * - `telphone_initiated` - Sent as `TEL` in the Nacha file.
2116
- * - `internet_initiated` - Sent as `WEB` in the Nacha file.
2117
- */
2118
- 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';
2119
- /**
2120
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code for the
2121
- * originating bank account.
2122
- */
2123
- originating_currency_code: string;
2124
- /**
2125
- * The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2
2126
- * country code of the originating branch country.
2127
- */
2128
- originating_depository_financial_institution_branch_country: string;
2129
- /**
2130
- * An identifier for the originating bank. One of an International Bank Account
2131
- * Number (IBAN) bank identifier, SWIFT Bank Identification Code (BIC), or a
2132
- * domestic identifier like a US Routing Number.
2133
- */
2134
- originating_depository_financial_institution_id: string;
2135
- /**
2136
- * An instruction of how to interpret the
2137
- * `originating_depository_financial_institution_id` field for this Transaction.
2138
- *
2139
- * - `national_clearing_system_number` - A domestic clearing system number. In the
2140
- * US, for example, this is the American Banking Association (ABA) routing
2141
- * number.
2142
- * - `bic_code` - The SWIFT Bank Identifier Code (BIC) of the bank.
2143
- * - `iban` - An International Bank Account Number.
2144
- */
2145
- originating_depository_financial_institution_id_qualifier: 'national_clearing_system_number' | 'bic_code' | 'iban';
2146
- /**
2147
- * The name of the originating bank. Sometimes this will refer to an American bank
2148
- * and obscure the correspondent foreign bank.
2149
- */
2150
- originating_depository_financial_institution_name: string;
2151
- /**
2152
- * A portion of the originator address. This may be incomplete.
2153
- */
2154
- originator_city: string;
2155
- /**
2156
- * A description field set by the originator.
2157
- */
2158
- originator_company_entry_description: string;
2159
- /**
2160
- * A portion of the originator address. The
2161
- * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2 country
2162
- * code of the originator country.
2163
- */
2164
- originator_country: string;
2165
- /**
2166
- * An identifier for the originating company. This is generally stable across
2167
- * multiple ACH transfers.
2168
- */
2169
- originator_identification: string;
2170
- /**
2171
- * Either the name of the originator or an intermediary money transmitter.
2172
- */
2173
- originator_name: string;
2174
- /**
2175
- * A portion of the originator address. This may be incomplete.
2176
- */
2177
- originator_postal_code: string | null;
2178
- /**
2179
- * A portion of the originator address. This may be incomplete.
2180
- */
2181
- originator_state_or_province: string | null;
2182
- /**
2183
- * A portion of the originator address. This may be incomplete.
2184
- */
2185
- originator_street_address: string;
2186
- /**
2187
- * A description field set by the originator.
2188
- */
2189
- payment_related_information: string | null;
2190
- /**
2191
- * A description field set by the originator.
2192
- */
2193
- payment_related_information2: string | null;
2194
- /**
2195
- * A portion of the receiver address. This may be incomplete.
2196
- */
2197
- receiver_city: string;
2198
- /**
2199
- * A portion of the receiver address. The
2200
- * [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2 country
2201
- * code of the receiver country.
2202
- */
2203
- receiver_country: string;
2204
- /**
2205
- * An identification number the originator uses for the receiver.
2206
- */
2207
- receiver_identification_number: string | null;
2208
- /**
2209
- * A portion of the receiver address. This may be incomplete.
2210
- */
2211
- receiver_postal_code: string | null;
2212
- /**
2213
- * A portion of the receiver address. This may be incomplete.
2214
- */
2215
- receiver_state_or_province: string | null;
2216
- /**
2217
- * A portion of the receiver address. This may be incomplete.
2218
- */
2219
- receiver_street_address: string;
2220
- /**
2221
- * The name of the receiver of the transfer. This is not verified by Increase.
2222
- */
2223
- receiving_company_or_individual_name: string;
2224
- /**
2225
- * The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2
2226
- * country code of the receiving bank country.
2227
- */
2228
- receiving_depository_financial_institution_country: string;
2229
- /**
2230
- * An identifier for the receiving bank. One of an International Bank Account
2231
- * Number (IBAN) bank identifier, SWIFT Bank Identification Code (BIC), or a
2232
- * domestic identifier like a US Routing Number.
2233
- */
2234
- receiving_depository_financial_institution_id: string;
2235
- /**
2236
- * An instruction of how to interpret the
2237
- * `receiving_depository_financial_institution_id` field for this Transaction.
2238
- *
2239
- * - `national_clearing_system_number` - A domestic clearing system number. In the
2240
- * US, for example, this is the American Banking Association (ABA) routing
2241
- * number.
2242
- * - `bic_code` - The SWIFT Bank Identifier Code (BIC) of the bank.
2243
- * - `iban` - An International Bank Account Number.
2244
- */
2245
- receiving_depository_financial_institution_id_qualifier: 'national_clearing_system_number' | 'bic_code' | 'iban';
2246
- /**
2247
- * The name of the receiving bank, as set by the sending financial institution.
2248
- */
2249
- receiving_depository_financial_institution_name: string;
2250
- /**
2251
- * A 15 digit number recorded in the Nacha file and available to both the
2252
- * originating and receiving bank. Along with the amount, date, and originating
2253
- * routing number, this can be used to identify the ACH transfer at either bank.
2254
- * ACH trace numbers are not unique, but are
2255
- * [used to correlate returns](https://increase.com/documentation/ach#returns).
2256
- */
2257
- trace_number: string;
2258
- }
2259
- /**
2260
- * An Inbound Real-Time Payments Transfer Confirmation object. This field will be
2261
- * present in the JSON response if and only if `category` is equal to
2262
- * `inbound_real_time_payments_transfer_confirmation`.
2263
- */
2264
- interface InboundRealTimePaymentsTransferConfirmation {
2265
- /**
2266
- * The amount in the minor unit of the transfer's currency. For dollars, for
2267
- * example, this is cents.
2268
- */
2269
- amount: number;
2270
- /**
2271
- * The name the sender of the transfer specified as the recipient of the transfer.
2272
- */
2273
- creditor_name: string;
2274
- /**
2275
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code of the transfer's
2276
- * currency. This will always be "USD" for a Real-Time Payments transfer.
2277
- *
2278
- * - `CAD` - Canadian Dollar (CAD)
2279
- * - `CHF` - Swiss Franc (CHF)
2280
- * - `EUR` - Euro (EUR)
2281
- * - `GBP` - British Pound (GBP)
2282
- * - `JPY` - Japanese Yen (JPY)
2283
- * - `USD` - US Dollar (USD)
2284
- */
2285
- currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
2286
- /**
2287
- * The account number of the account that sent the transfer.
2288
- */
2289
- debtor_account_number: string;
2290
- /**
2291
- * The name provided by the sender of the transfer.
2292
- */
2293
- debtor_name: string;
2294
- /**
2295
- * The routing number of the account that sent the transfer.
2296
- */
2297
- debtor_routing_number: string;
2298
- /**
2299
- * Additional information included with the transfer.
2300
- */
2301
- remittance_information: string | null;
2302
- /**
2303
- * The Real-Time Payments network identification of the transfer.
2304
- */
2305
- transaction_identification: string;
2306
- }
2307
- /**
2308
- * An Inbound Wire Drawdown Payment object. This field will be present in the JSON
2309
- * response if and only if `category` is equal to `inbound_wire_drawdown_payment`.
2310
- */
2311
- interface InboundWireDrawdownPayment {
2312
- /**
2313
- * The amount in the minor unit of the transaction's currency. For dollars, for
2314
- * example, this is cents.
2315
- */
2316
- amount: number;
2317
- /**
2318
- * A free-form address field set by the sender.
2319
- */
2320
- beneficiary_address_line1: string | null;
2321
- /**
2322
- * A free-form address field set by the sender.
2323
- */
2324
- beneficiary_address_line2: string | null;
2325
- /**
2326
- * A free-form address field set by the sender.
2327
- */
2328
- beneficiary_address_line3: string | null;
2329
- /**
2330
- * A name set by the sender.
2331
- */
2332
- beneficiary_name: string | null;
2333
- /**
2334
- * A free-form reference string set by the sender, to help identify the transfer.
2335
- */
2336
- beneficiary_reference: string | null;
2337
- /**
2338
- * An Increase-constructed description of the transfer.
2339
- */
2340
- description: string;
2341
- /**
2342
- * A unique identifier available to the originating and receiving banks, commonly
2343
- * abbreviated as IMAD. It is created when the wire is submitted to the Fedwire
2344
- * service and is helpful when debugging wires with the receiving bank.
2345
- */
2346
- input_message_accountability_data: string | null;
2347
- /**
2348
- * The address of the wire originator, set by the sending bank.
2349
- */
2350
- originator_address_line1: string | null;
2351
- /**
2352
- * The address of the wire originator, set by the sending bank.
2353
- */
2354
- originator_address_line2: string | null;
2355
- /**
2356
- * The address of the wire originator, set by the sending bank.
2357
- */
2358
- originator_address_line3: string | null;
2359
- /**
2360
- * The originator of the wire, set by the sending bank.
2361
- */
2362
- originator_name: string | null;
2363
- /**
2364
- * The American Banking Association (ABA) routing number of the bank originating
2365
- * the transfer.
2366
- */
2367
- originator_routing_number: string | null;
2368
- /**
2369
- * An Increase-created concatenation of the Originator-to-Beneficiary lines.
2370
- */
2371
- originator_to_beneficiary_information: string | null;
2372
- /**
2373
- * A free-form message set by the wire originator.
2374
- */
2375
- originator_to_beneficiary_information_line1: string | null;
2376
- /**
2377
- * A free-form message set by the wire originator.
2378
- */
2379
- originator_to_beneficiary_information_line2: string | null;
2380
- /**
2381
- * A free-form message set by the wire originator.
2382
- */
2383
- originator_to_beneficiary_information_line3: string | null;
2384
- /**
2385
- * A free-form message set by the wire originator.
2386
- */
2387
- originator_to_beneficiary_information_line4: string | null;
2388
- }
2389
- /**
2390
- * An Inbound Wire Drawdown Payment Reversal object. This field will be present in
2391
- * the JSON response if and only if `category` is equal to
2392
- * `inbound_wire_drawdown_payment_reversal`.
2393
- */
2394
- interface InboundWireDrawdownPaymentReversal {
2395
- /**
2396
- * The amount that was reversed.
2397
- */
2398
- amount: number;
2399
- /**
2400
- * The description on the reversal message from Fedwire.
2401
- */
2402
- description: string;
2403
- /**
2404
- * The Fedwire cycle date for the wire reversal.
2405
- */
2406
- input_cycle_date: string;
2407
- /**
2408
- * The Fedwire transaction identifier.
2409
- */
2410
- input_message_accountability_data: string;
2411
- /**
2412
- * The Fedwire sequence number.
2413
- */
2414
- input_sequence_number: string;
2415
- /**
2416
- * The Fedwire input source identifier.
2417
- */
2418
- input_source: string;
2419
- /**
2420
- * The American Banking Association (ABA) routing number of the bank originating
2421
- * the transfer.
2422
- */
2423
- originator_routing_number: string | null;
2424
- /**
2425
- * The Fedwire cycle date for the wire transfer that was reversed.
2426
- */
2427
- previous_message_input_cycle_date: string;
2428
- /**
2429
- * The Fedwire transaction identifier for the wire transfer that was reversed.
2430
- */
2431
- previous_message_input_message_accountability_data: string;
2432
- /**
2433
- * The Fedwire sequence number for the wire transfer that was reversed.
2434
- */
2435
- previous_message_input_sequence_number: string;
2436
- /**
2437
- * The Fedwire input source identifier for the wire transfer that was reversed.
2438
- */
2439
- previous_message_input_source: string;
2440
- }
2441
- /**
2442
- * An Inbound Wire Reversal object. This field will be present in the JSON response
2443
- * if and only if `category` is equal to `inbound_wire_reversal`.
2444
- */
2445
- interface InboundWireReversal {
2446
- /**
2447
- * The amount that was reversed in USD cents.
2448
- */
2449
- amount: number;
2450
- /**
2451
- * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
2452
- * the reversal was created.
2453
- */
2454
- created_at: string;
2455
- /**
2456
- * The description on the reversal message from Fedwire, set by the reversing bank.
2457
- */
2458
- description: string;
2459
- /**
2460
- * Additional financial institution information included in the wire reversal.
2461
- */
2462
- financial_institution_to_financial_institution_information: string | null;
2463
- /**
2464
- * The Fedwire cycle date for the wire reversal. The "Fedwire day" begins at 9:00
2465
- * PM Eastern Time on the evening before the `cycle date`.
2466
- */
2467
- input_cycle_date: string;
2468
- /**
2469
- * The Fedwire transaction identifier.
2470
- */
2471
- input_message_accountability_data: string;
2472
- /**
2473
- * The Fedwire sequence number.
2474
- */
2475
- input_sequence_number: string;
2476
- /**
2477
- * The Fedwire input source identifier.
2478
- */
2479
- input_source: string;
2480
- /**
2481
- * The American Banking Association (ABA) routing number of the bank originating
2482
- * the transfer.
2483
- */
2484
- originator_routing_number: string | null;
2485
- /**
2486
- * The Fedwire cycle date for the wire transfer that is being reversed by this
2487
- * message.
2488
- */
2489
- previous_message_input_cycle_date: string;
2490
- /**
2491
- * The Fedwire transaction identifier for the wire transfer that was reversed.
2492
- */
2493
- previous_message_input_message_accountability_data: string;
2494
- /**
2495
- * The Fedwire sequence number for the wire transfer that was reversed.
2496
- */
2497
- previous_message_input_sequence_number: string;
2498
- /**
2499
- * The Fedwire input source identifier for the wire transfer that was reversed.
2500
- */
2501
- previous_message_input_source: string;
2502
- /**
2503
- * Information included in the wire reversal for the receiving financial
2504
- * institution.
2505
- */
2506
- receiver_financial_institution_information: string | null;
2507
- /**
2508
- * The ID for the Transaction associated with the transfer reversal.
2509
- */
2510
- transaction_id: string;
2511
- /**
2512
- * The ID for the Wire Transfer that is being reversed.
2513
- */
2514
- wire_transfer_id: string;
2515
- }
2516
- /**
2517
- * An Inbound Wire Transfer Intention object. This field will be present in the
2518
- * JSON response if and only if `category` is equal to `inbound_wire_transfer`.
2519
- */
2520
- interface InboundWireTransfer {
2521
- /**
2522
- * The amount in USD cents.
2523
- */
2524
- amount: number;
2525
- /**
2526
- * A free-form address field set by the sender.
2527
- */
2528
- beneficiary_address_line1: string | null;
2529
- /**
2530
- * A free-form address field set by the sender.
2531
- */
2532
- beneficiary_address_line2: string | null;
2533
- /**
2534
- * A free-form address field set by the sender.
2535
- */
2536
- beneficiary_address_line3: string | null;
2537
- /**
2538
- * A name set by the sender.
2539
- */
2540
- beneficiary_name: string | null;
2541
- /**
2542
- * A free-form reference string set by the sender, to help identify the transfer.
2543
- */
2544
- beneficiary_reference: string | null;
2545
- /**
2546
- * An Increase-constructed description of the transfer.
2547
- */
2548
- description: string;
2549
- /**
2550
- * A unique identifier available to the originating and receiving banks, commonly
2551
- * abbreviated as IMAD. It is created when the wire is submitted to the Fedwire
2552
- * service and is helpful when debugging wires with the originating bank.
2553
- */
2554
- input_message_accountability_data: string | null;
2555
- /**
2556
- * The address of the wire originator, set by the sending bank.
2557
- */
2558
- originator_address_line1: string | null;
2559
- /**
2560
- * The address of the wire originator, set by the sending bank.
2561
- */
2562
- originator_address_line2: string | null;
2563
- /**
2564
- * The address of the wire originator, set by the sending bank.
2565
- */
2566
- originator_address_line3: string | null;
2567
- /**
2568
- * The originator of the wire, set by the sending bank.
2569
- */
2570
- originator_name: string | null;
2571
- /**
2572
- * The American Banking Association (ABA) routing number of the bank originating
2573
- * the transfer.
2574
- */
2575
- originator_routing_number: string | null;
2576
- /**
2577
- * An Increase-created concatenation of the Originator-to-Beneficiary lines.
2578
- */
2579
- originator_to_beneficiary_information: string | null;
2580
- /**
2581
- * A free-form message set by the wire originator.
2582
- */
2583
- originator_to_beneficiary_information_line1: string | null;
2584
- /**
2585
- * A free-form message set by the wire originator.
2586
- */
2587
- originator_to_beneficiary_information_line2: string | null;
2588
- /**
2589
- * A free-form message set by the wire originator.
2590
- */
2591
- originator_to_beneficiary_information_line3: string | null;
2592
- /**
2593
- * A free-form message set by the wire originator.
2594
- */
2595
- originator_to_beneficiary_information_line4: string | null;
2596
- /**
2597
- * The ID of the Inbound Wire Transfer object that resulted in this Transaction.
2598
- */
2599
- transfer_id: string;
2600
- }
2601
- /**
2602
- * An Interest Payment object. This field will be present in the JSON response if
2603
- * and only if `category` is equal to `interest_payment`.
2604
- */
2605
- interface InterestPayment {
2606
- /**
2607
- * The account on which the interest was accrued.
2608
- */
2609
- accrued_on_account_id: string | null;
2610
- /**
2611
- * The amount in the minor unit of the transaction's currency. For dollars, for
2612
- * example, this is cents.
2613
- */
2614
- amount: number;
2615
- /**
2616
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transaction
2617
- * currency.
2618
- *
2619
- * - `CAD` - Canadian Dollar (CAD)
2620
- * - `CHF` - Swiss Franc (CHF)
2621
- * - `EUR` - Euro (EUR)
2622
- * - `GBP` - British Pound (GBP)
2623
- * - `JPY` - Japanese Yen (JPY)
2624
- * - `USD` - US Dollar (USD)
2625
- */
2626
- currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
2627
- /**
2628
- * The end of the period for which this transaction paid interest.
2629
- */
2630
- period_end: string;
2631
- /**
2632
- * The start of the period for which this transaction paid interest.
2633
- */
2634
- period_start: string;
2635
- }
2636
- /**
2637
- * An Internal Source object. This field will be present in the JSON response if
2638
- * and only if `category` is equal to `internal_source`.
2639
- */
2640
- interface InternalSource {
2641
- /**
2642
- * The amount in the minor unit of the transaction's currency. For dollars, for
2643
- * example, this is cents.
2644
- */
2645
- amount: number;
2646
- /**
2647
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transaction
2648
- * currency.
2649
- *
2650
- * - `CAD` - Canadian Dollar (CAD)
2651
- * - `CHF` - Swiss Franc (CHF)
2652
- * - `EUR` - Euro (EUR)
2653
- * - `GBP` - British Pound (GBP)
2654
- * - `JPY` - Japanese Yen (JPY)
2655
- * - `USD` - US Dollar (USD)
2656
- */
2657
- currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
2658
- /**
2659
- * An Internal Source is a transaction between you and Increase. This describes the
2660
- * reason for the transaction.
2661
- *
2662
- * - `account_closure` - Account closure
2663
- * - `bank_migration` - Bank migration
2664
- * - `cashback` - Cashback
2665
- * - `check_adjustment` - Check adjustment
2666
- * - `collection_receivable` - Collection receivable
2667
- * - `empyreal_adjustment` - Empyreal adjustment
2668
- * - `error` - Error
2669
- * - `error_correction` - Error correction
2670
- * - `fees` - Fees
2671
- * - `interest` - Interest
2672
- * - `negative_balance_forgiveness` - Negative balance forgiveness
2673
- * - `sample_funds` - Sample funds
2674
- * - `sample_funds_return` - Sample funds return
2675
- */
2676
- reason: 'account_closure' | 'bank_migration' | 'cashback' | 'check_adjustment' | 'collection_receivable' | 'empyreal_adjustment' | 'error' | 'error_correction' | 'fees' | 'interest' | 'negative_balance_forgiveness' | 'sample_funds' | 'sample_funds_return';
2677
- }
2678
- /**
2679
- * A Real-Time Payments Transfer Acknowledgement object. This field will be present
2680
- * in the JSON response if and only if `category` is equal to
2681
- * `real_time_payments_transfer_acknowledgement`.
2682
- */
2683
- interface RealTimePaymentsTransferAcknowledgement {
2684
- /**
2685
- * The transfer amount in USD cents.
2686
- */
2687
- amount: number;
2688
- /**
2689
- * The destination account number.
2690
- */
2691
- destination_account_number: string;
2692
- /**
2693
- * The American Bankers' Association (ABA) Routing Transit Number (RTN).
2694
- */
2695
- destination_routing_number: string;
2696
- /**
2697
- * Unstructured information that will show on the recipient's bank statement.
2698
- */
2699
- remittance_information: string;
2700
- /**
2701
- * The identifier of the Real-Time Payments Transfer that led to this Transaction.
2702
- */
2703
- transfer_id: string;
2704
- }
2705
- /**
2706
- * A Sample Funds object. This field will be present in the JSON response if and
2707
- * only if `category` is equal to `sample_funds`.
2708
- */
2709
- interface SampleFunds {
2710
- /**
2711
- * Where the sample funds came from.
2712
- */
2713
- originator: string;
2714
- }
2715
- /**
2716
- * A Wire Transfer Intention object. This field will be present in the JSON
2717
- * response if and only if `category` is equal to `wire_transfer_intention`.
2718
- */
2719
- interface WireTransferIntention {
2720
- /**
2721
- * The destination account number.
2722
- */
2723
- account_number: string;
2724
- /**
2725
- * The transfer amount in USD cents.
2726
- */
2727
- amount: number;
2728
- /**
2729
- * The message that will show on the recipient's bank statement.
2730
- */
2731
- message_to_recipient: string;
2732
- /**
2733
- * The American Bankers' Association (ABA) Routing Transit Number (RTN).
2734
- */
2735
- routing_number: string;
2736
- /**
2737
- * The identifier of the Wire Transfer that led to this Transaction.
2738
- */
2739
- transfer_id: string;
2740
- }
2741
- /**
2742
- * A Wire Transfer Rejection object. This field will be present in the JSON
2743
- * response if and only if `category` is equal to `wire_transfer_rejection`.
2744
- */
2745
- interface WireTransferRejection {
2746
- /**
2747
- * The identifier of the Wire Transfer that led to this Transaction.
2748
- */
2749
- transfer_id: string;
2750
- }
2751
- }
2752
- }
10
+ create(body: InterestPaymentCreateParams, options?: Core.RequestOptions): Core.APIPromise<TransactionsAPI.Transaction>;
2753
11
  }
2754
12
  export interface InterestPaymentCreateParams {
2755
13
  /**
@@ -2770,7 +28,6 @@ export interface InterestPaymentCreateParams {
2770
28
  period_start?: string;
2771
29
  }
2772
30
  export declare namespace InterestPayments {
2773
- export import InterestPaymentSimulationResult = InterestPaymentsAPI.InterestPaymentSimulationResult;
2774
31
  export import InterestPaymentCreateParams = InterestPaymentsAPI.InterestPaymentCreateParams;
2775
32
  }
2776
33
  //# sourceMappingURL=interest-payments.d.ts.map