increase 0.11.2 → 0.11.4

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 (141) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/README.md +2 -2
  3. package/core.d.ts +1 -1
  4. package/core.d.ts.map +1 -1
  5. package/core.js +31 -22
  6. package/core.js.map +1 -1
  7. package/core.mjs +32 -23
  8. package/core.mjs.map +1 -1
  9. package/error.d.ts +3 -1
  10. package/error.d.ts.map +1 -1
  11. package/error.js +5 -2
  12. package/error.js.map +1 -1
  13. package/error.mjs +3 -1
  14. package/error.mjs.map +1 -1
  15. package/index.d.mts +14 -1
  16. package/index.d.ts +14 -1
  17. package/index.d.ts.map +1 -1
  18. package/index.js +10 -3
  19. package/index.js.map +1 -1
  20. package/index.mjs +9 -2
  21. package/index.mjs.map +1 -1
  22. package/package.json +1 -1
  23. package/resources/account-numbers.d.ts +40 -0
  24. package/resources/account-numbers.d.ts.map +1 -1
  25. package/resources/account-numbers.js.map +1 -1
  26. package/resources/account-numbers.mjs.map +1 -1
  27. package/resources/card-payments.d.ts +1797 -0
  28. package/resources/card-payments.d.ts.map +1 -0
  29. package/resources/card-payments.js +28 -0
  30. package/resources/card-payments.js.map +1 -0
  31. package/resources/card-payments.mjs +23 -0
  32. package/resources/card-payments.mjs.map +1 -0
  33. package/resources/cards.d.ts +7 -1
  34. package/resources/cards.d.ts.map +1 -1
  35. package/resources/cards.js.map +1 -1
  36. package/resources/cards.mjs.map +1 -1
  37. package/resources/declined-transactions.d.ts +5 -0
  38. package/resources/declined-transactions.d.ts.map +1 -1
  39. package/resources/declined-transactions.js.map +1 -1
  40. package/resources/declined-transactions.mjs.map +1 -1
  41. package/resources/event-subscriptions.d.ts +26 -2
  42. package/resources/event-subscriptions.d.ts.map +1 -1
  43. package/resources/event-subscriptions.js.map +1 -1
  44. package/resources/event-subscriptions.mjs.map +1 -1
  45. package/resources/events.d.ts +14 -2
  46. package/resources/events.d.ts.map +1 -1
  47. package/resources/events.js.map +1 -1
  48. package/resources/events.mjs.map +1 -1
  49. package/resources/files.d.ts +4 -0
  50. package/resources/files.d.ts.map +1 -1
  51. package/resources/files.js.map +1 -1
  52. package/resources/files.mjs.map +1 -1
  53. package/resources/inbound-ach-transfers.d.ts +5 -0
  54. package/resources/inbound-ach-transfers.d.ts.map +1 -1
  55. package/resources/inbound-ach-transfers.js.map +1 -1
  56. package/resources/inbound-ach-transfers.mjs.map +1 -1
  57. package/resources/index.d.ts +2 -0
  58. package/resources/index.d.ts.map +1 -1
  59. package/resources/index.js +8 -2
  60. package/resources/index.js.map +1 -1
  61. package/resources/index.mjs +2 -0
  62. package/resources/index.mjs.map +1 -1
  63. package/resources/physical-cards.d.ts +318 -0
  64. package/resources/physical-cards.d.ts.map +1 -0
  65. package/resources/physical-cards.js +40 -0
  66. package/resources/physical-cards.js.map +1 -0
  67. package/resources/physical-cards.mjs +35 -0
  68. package/resources/physical-cards.mjs.map +1 -0
  69. package/resources/simulations/ach-transfers.d.ts +35 -5
  70. package/resources/simulations/ach-transfers.d.ts.map +1 -1
  71. package/resources/simulations/ach-transfers.js.map +1 -1
  72. package/resources/simulations/ach-transfers.mjs.map +1 -1
  73. package/resources/simulations/cards.d.ts +5 -0
  74. package/resources/simulations/cards.d.ts.map +1 -1
  75. package/resources/simulations/cards.js.map +1 -1
  76. package/resources/simulations/cards.mjs.map +1 -1
  77. package/resources/simulations/index.d.ts +1 -0
  78. package/resources/simulations/index.d.ts.map +1 -1
  79. package/resources/simulations/index.js +3 -1
  80. package/resources/simulations/index.js.map +1 -1
  81. package/resources/simulations/index.mjs +1 -0
  82. package/resources/simulations/index.mjs.map +1 -1
  83. package/resources/simulations/interest-payments.d.ts +25 -5
  84. package/resources/simulations/interest-payments.d.ts.map +1 -1
  85. package/resources/simulations/interest-payments.js.map +1 -1
  86. package/resources/simulations/interest-payments.mjs.map +1 -1
  87. package/resources/simulations/physical-cards.d.ts +34 -0
  88. package/resources/simulations/physical-cards.d.ts.map +1 -0
  89. package/resources/simulations/physical-cards.js +19 -0
  90. package/resources/simulations/physical-cards.js.map +1 -0
  91. package/resources/simulations/physical-cards.mjs +15 -0
  92. package/resources/simulations/physical-cards.mjs.map +1 -0
  93. package/resources/simulations/real-time-payments-transfers.d.ts +30 -5
  94. package/resources/simulations/real-time-payments-transfers.d.ts.map +1 -1
  95. package/resources/simulations/real-time-payments-transfers.js.map +1 -1
  96. package/resources/simulations/real-time-payments-transfers.mjs.map +1 -1
  97. package/resources/simulations/simulations.d.ts +4 -0
  98. package/resources/simulations/simulations.d.ts.map +1 -1
  99. package/resources/simulations/simulations.js +3 -0
  100. package/resources/simulations/simulations.js.map +1 -1
  101. package/resources/simulations/simulations.mjs +3 -0
  102. package/resources/simulations/simulations.mjs.map +1 -1
  103. package/resources/simulations/wire-transfers.d.ts +30 -5
  104. package/resources/simulations/wire-transfers.d.ts.map +1 -1
  105. package/resources/simulations/wire-transfers.js.map +1 -1
  106. package/resources/simulations/wire-transfers.mjs.map +1 -1
  107. package/resources/transactions.d.ts +26 -6
  108. package/resources/transactions.d.ts.map +1 -1
  109. package/resources/transactions.js.map +1 -1
  110. package/resources/transactions.mjs.map +1 -1
  111. package/resources/wire-transfers.d.ts +5 -0
  112. package/resources/wire-transfers.d.ts.map +1 -1
  113. package/resources/wire-transfers.js.map +1 -1
  114. package/resources/wire-transfers.mjs.map +1 -1
  115. package/src/core.ts +39 -28
  116. package/src/error.ts +3 -1
  117. package/src/index.ts +17 -1
  118. package/src/resources/account-numbers.ts +44 -0
  119. package/src/resources/card-payments.ts +2284 -0
  120. package/src/resources/cards.ts +8 -1
  121. package/src/resources/declined-transactions.ts +6 -0
  122. package/src/resources/event-subscriptions.ts +44 -0
  123. package/src/resources/events.ts +32 -0
  124. package/src/resources/files.ts +5 -0
  125. package/src/resources/inbound-ach-transfers.ts +6 -0
  126. package/src/resources/index.ts +9 -0
  127. package/src/resources/physical-cards.ts +394 -0
  128. package/src/resources/simulations/ach-transfers.ts +42 -6
  129. package/src/resources/simulations/cards.ts +6 -0
  130. package/src/resources/simulations/index.ts +1 -0
  131. package/src/resources/simulations/interest-payments.ts +30 -6
  132. package/src/resources/simulations/physical-cards.ts +51 -0
  133. package/src/resources/simulations/real-time-payments-transfers.ts +36 -6
  134. package/src/resources/simulations/simulations.ts +5 -0
  135. package/src/resources/simulations/wire-transfers.ts +36 -6
  136. package/src/resources/transactions.ts +32 -8
  137. package/src/resources/wire-transfers.ts +6 -0
  138. package/src/version.ts +1 -1
  139. package/version.d.ts +1 -1
  140. package/version.js +1 -1
  141. package/version.mjs +1 -1
@@ -0,0 +1,1797 @@
1
+ import * as Core from 'increase/core';
2
+ import { APIResource } from 'increase/resource';
3
+ import * as API from "./index.js";
4
+ import { Page, PageParams } from 'increase/pagination';
5
+ export declare class CardPayments extends APIResource {
6
+ /**
7
+ * Retrieve a Card Payment
8
+ */
9
+ retrieve(cardPaymentId: string, options?: Core.RequestOptions): Core.APIPromise<CardPayment>;
10
+ /**
11
+ * List Card Payments
12
+ */
13
+ list(query?: CardPaymentListParams, options?: Core.RequestOptions): Core.PagePromise<CardPaymentsPage, CardPayment>;
14
+ list(options?: Core.RequestOptions): Core.PagePromise<CardPaymentsPage, CardPayment>;
15
+ }
16
+ export declare class CardPaymentsPage extends Page<CardPayment> {
17
+ }
18
+ type _CardPaymentsPage = CardPaymentsPage;
19
+ /**
20
+ * Card Payments group together interactions related to a single card payment, such
21
+ * as an authorization and its corresponding settlement.
22
+ */
23
+ export interface CardPayment {
24
+ /**
25
+ * The Card Payment identifier.
26
+ */
27
+ id: string;
28
+ /**
29
+ * The identifier for the Account the Transaction belongs to.
30
+ */
31
+ account_id: string;
32
+ /**
33
+ * The Card identifier for this payment.
34
+ */
35
+ card_id: string;
36
+ /**
37
+ * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the Card
38
+ * Payment was created.
39
+ */
40
+ created_at: string;
41
+ /**
42
+ * The interactions related to this card payment.
43
+ */
44
+ elements: Array<CardPayment.Element>;
45
+ /**
46
+ * The summarized state of this card payment.
47
+ */
48
+ state: CardPayment.State;
49
+ /**
50
+ * A constant representing the object's type. For this resource it will always be
51
+ * `card_payment`.
52
+ */
53
+ type: 'card_payment';
54
+ }
55
+ export declare namespace CardPayment {
56
+ interface Element {
57
+ /**
58
+ * A Card Authorization object. This field will be present in the JSON response if
59
+ * and only if `category` is equal to `card_authorization`.
60
+ */
61
+ card_authorization: Element.CardAuthorization | null;
62
+ /**
63
+ * A Card Authorization Expiration object. This field will be present in the JSON
64
+ * response if and only if `category` is equal to `card_authorization_expiration`.
65
+ */
66
+ card_authorization_expiration: Element.CardAuthorizationExpiration | null;
67
+ /**
68
+ * A Card Decline object. This field will be present in the JSON response if and
69
+ * only if `category` is equal to `card_decline`.
70
+ */
71
+ card_decline: Element.CardDecline | null;
72
+ /**
73
+ * A Card Increment object. This field will be present in the JSON response if and
74
+ * only if `category` is equal to `card_increment`.
75
+ */
76
+ card_increment: Element.CardIncrement | null;
77
+ /**
78
+ * A Card Refund object. This field will be present in the JSON response if and
79
+ * only if `category` is equal to `card_refund`.
80
+ */
81
+ card_refund: Element.CardRefund | null;
82
+ /**
83
+ * A Card Reversal object. This field will be present in the JSON response if and
84
+ * only if `category` is equal to `card_reversal`.
85
+ */
86
+ card_reversal: Element.CardReversal | null;
87
+ /**
88
+ * A Card Settlement object. This field will be present in the JSON response if and
89
+ * only if `category` is equal to `card_settlement`.
90
+ */
91
+ card_settlement: Element.CardSettlement | null;
92
+ /**
93
+ * A Card Validation object. This field will be present in the JSON response if and
94
+ * only if `category` is equal to `card_validation`.
95
+ */
96
+ card_validation: Element.CardValidation | null;
97
+ /**
98
+ * The type of the resource. We may add additional possible values for this enum
99
+ * over time; your application should be able to handle such additions gracefully.
100
+ *
101
+ * - `card_authorization` - Card Authorization: details will be under the
102
+ * `card_authorization` object.
103
+ * - `card_validation` - Card Validation: details will be under the
104
+ * `card_validation` object.
105
+ * - `card_decline` - Card Decline: details will be under the `card_decline`
106
+ * object.
107
+ * - `card_reversal` - Card Reversal: details will be under the `card_reversal`
108
+ * object.
109
+ * - `card_authorization_expiration` - Card Authorization Expiration: details will
110
+ * be under the `card_authorization_expiration` object.
111
+ * - `card_increment` - Card Increment: details will be under the `card_increment`
112
+ * object.
113
+ * - `card_settlement` - Card Settlement: details will be under the
114
+ * `card_settlement` object.
115
+ * - `card_refund` - Card Refund: details will be under the `card_refund` object.
116
+ * - `other` - Unknown card payment element.
117
+ */
118
+ category: 'card_authorization' | 'card_validation' | 'card_decline' | 'card_reversal' | 'card_authorization_expiration' | 'card_increment' | 'card_settlement' | 'card_refund' | 'other';
119
+ /**
120
+ * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
121
+ * the card payment element was created.
122
+ */
123
+ created_at: string;
124
+ }
125
+ namespace Element {
126
+ /**
127
+ * A Card Authorization object. This field will be present in the JSON response if
128
+ * and only if `category` is equal to `card_authorization`.
129
+ */
130
+ interface CardAuthorization {
131
+ /**
132
+ * The Card Authorization identifier.
133
+ */
134
+ id: string;
135
+ /**
136
+ * The pending amount in the minor unit of the transaction's currency. For dollars,
137
+ * for example, this is cents.
138
+ */
139
+ amount: number;
140
+ /**
141
+ * The ID of the Card Payment this transaction belongs to.
142
+ */
143
+ card_payment_id: string | null;
144
+ /**
145
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
146
+ * transaction's currency.
147
+ *
148
+ * - `CAD` - Canadian Dollar (CAD)
149
+ * - `CHF` - Swiss Franc (CHF)
150
+ * - `EUR` - Euro (EUR)
151
+ * - `GBP` - British Pound (GBP)
152
+ * - `JPY` - Japanese Yen (JPY)
153
+ * - `USD` - US Dollar (USD)
154
+ */
155
+ currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
156
+ /**
157
+ * If the authorization was made via a Digital Wallet Token (such as an Apple Pay
158
+ * purchase), the identifier of the token that was used.
159
+ */
160
+ digital_wallet_token_id: string | null;
161
+ /**
162
+ * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) when this authorization
163
+ * will expire and the pending transaction will be released.
164
+ */
165
+ expires_at: string;
166
+ /**
167
+ * The merchant identifier (commonly abbreviated as MID) of the merchant the card
168
+ * is transacting with.
169
+ */
170
+ merchant_acceptor_id: string;
171
+ /**
172
+ * The Merchant Category Code (commonly abbreviated as MCC) of the merchant the
173
+ * card is transacting with.
174
+ */
175
+ merchant_category_code: string | null;
176
+ /**
177
+ * The city the merchant resides in.
178
+ */
179
+ merchant_city: string | null;
180
+ /**
181
+ * The country the merchant resides in.
182
+ */
183
+ merchant_country: string | null;
184
+ /**
185
+ * The merchant descriptor of the merchant the card is transacting with.
186
+ */
187
+ merchant_descriptor: string;
188
+ /**
189
+ * Fields specific to the `network`.
190
+ */
191
+ network_details: CardAuthorization.NetworkDetails;
192
+ /**
193
+ * The identifier of the Pending Transaction associated with this Transaction.
194
+ */
195
+ pending_transaction_id: string | null;
196
+ /**
197
+ * If the authorization was made in-person with a physical card, the Physical Card
198
+ * that was used.
199
+ */
200
+ physical_card_id: string | null;
201
+ /**
202
+ * The identifier of the Real-Time Decision sent to approve or decline this
203
+ * transaction.
204
+ */
205
+ real_time_decision_id: string | null;
206
+ /**
207
+ * A constant representing the object's type. For this resource it will always be
208
+ * `card_authorization`.
209
+ */
210
+ type: 'card_authorization';
211
+ }
212
+ namespace CardAuthorization {
213
+ /**
214
+ * Fields specific to the `network`.
215
+ */
216
+ interface NetworkDetails {
217
+ /**
218
+ * The payment network used to process this card authorization.
219
+ *
220
+ * - `visa` - Visa
221
+ */
222
+ category: 'visa';
223
+ /**
224
+ * Fields specific to the `visa` network.
225
+ */
226
+ visa: NetworkDetails.Visa | null;
227
+ }
228
+ namespace NetworkDetails {
229
+ /**
230
+ * Fields specific to the `visa` network.
231
+ */
232
+ interface Visa {
233
+ /**
234
+ * For electronic commerce transactions, this identifies the level of security used
235
+ * in obtaining the customer's payment credential. For mail or telephone order
236
+ * transactions, identifies the type of mail or telephone order.
237
+ *
238
+ * - `mail_phone_order` - Single transaction of a mail/phone order: Use to indicate
239
+ * that the transaction is a mail/phone order purchase, not a recurring
240
+ * transaction or installment payment. For domestic transactions in the US
241
+ * region, this value may also indicate one bill payment transaction in the
242
+ * card-present or card-absent environments.
243
+ * - `recurring` - Recurring transaction: Payment indicator used to indicate a
244
+ * recurring transaction that originates from an acquirer in the US region.
245
+ * - `installment` - Installment payment: Payment indicator used to indicate one
246
+ * purchase of goods or services that is billed to the account in multiple
247
+ * charges over a period of time agreed upon by the cardholder and merchant from
248
+ * transactions that originate from an acquirer in the US region.
249
+ * - `unknown_mail_phone_order` - Unknown classification: other mail order: Use to
250
+ * indicate that the type of mail/telephone order is unknown.
251
+ * - `secure_electronic_commerce` - Secure electronic commerce transaction: Use to
252
+ * indicate that the electronic commerce transaction has been authenticated using
253
+ * e.g., 3-D Secure
254
+ * - `non_authenticated_security_transaction_at_3ds_capable_merchant` -
255
+ * Non-authenticated security transaction at a 3-D Secure-capable merchant, and
256
+ * merchant attempted to authenticate the cardholder using 3-D Secure: Use to
257
+ * identify an electronic commerce transaction where the merchant attempted to
258
+ * authenticate the cardholder using 3-D Secure, but was unable to complete the
259
+ * authentication because the issuer or cardholder does not participate in the
260
+ * 3-D Secure program.
261
+ * - `non_authenticated_security_transaction` - Non-authenticated security
262
+ * transaction: Use to identify an electronic commerce transaction that uses data
263
+ * encryption for security however , cardholder authentication is not performed
264
+ * using 3-D Secure.
265
+ * - `non_secure_transaction` - Non-secure transaction: Use to identify an
266
+ * electronic commerce transaction that has no data protection.
267
+ */
268
+ electronic_commerce_indicator: 'mail_phone_order' | 'recurring' | 'installment' | 'unknown_mail_phone_order' | 'secure_electronic_commerce' | 'non_authenticated_security_transaction_at_3ds_capable_merchant' | 'non_authenticated_security_transaction' | 'non_secure_transaction' | null;
269
+ /**
270
+ * The method used to enter the cardholder's primary account number and card
271
+ * expiration date.
272
+ *
273
+ * - `unknown` - Unknown
274
+ * - `manual` - Manual key entry
275
+ * - `magnetic_stripe_no_cvv` - Magnetic stripe read, without card verification
276
+ * value
277
+ * - `optical_code` - Optical code
278
+ * - `integrated_circuit_card` - Contact chip card
279
+ * - `contactless` - Contactless read of chip card
280
+ * - `credential_on_file` - Transaction initiated using a credential that has
281
+ * previously been stored on file
282
+ * - `magnetic_stripe` - Magnetic stripe read
283
+ * - `contactless_magnetic_stripe` - Contactless read of magnetic stripe data
284
+ * - `integrated_circuit_card_no_cvv` - Contact chip card, without card
285
+ * verification value
286
+ */
287
+ point_of_service_entry_mode: 'unknown' | 'manual' | 'magnetic_stripe_no_cvv' | 'optical_code' | 'integrated_circuit_card' | 'contactless' | 'credential_on_file' | 'magnetic_stripe' | 'contactless_magnetic_stripe' | 'integrated_circuit_card_no_cvv' | null;
288
+ }
289
+ }
290
+ }
291
+ /**
292
+ * A Card Authorization Expiration object. This field will be present in the JSON
293
+ * response if and only if `category` is equal to `card_authorization_expiration`.
294
+ */
295
+ interface CardAuthorizationExpiration {
296
+ /**
297
+ * The Card Authorization Expiration identifier.
298
+ */
299
+ id: string;
300
+ /**
301
+ * The identifier for the Card Authorization this reverses.
302
+ */
303
+ card_authorization_id: string;
304
+ /**
305
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the reversal's
306
+ * currency.
307
+ *
308
+ * - `CAD` - Canadian Dollar (CAD)
309
+ * - `CHF` - Swiss Franc (CHF)
310
+ * - `EUR` - Euro (EUR)
311
+ * - `GBP` - British Pound (GBP)
312
+ * - `JPY` - Japanese Yen (JPY)
313
+ * - `USD` - US Dollar (USD)
314
+ */
315
+ currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
316
+ /**
317
+ * The amount of this authorization expiration in the minor unit of the
318
+ * transaction's currency. For dollars, for example, this is cents.
319
+ */
320
+ expired_amount: number;
321
+ /**
322
+ * The card network used to process this card authorization.
323
+ *
324
+ * - `visa` - Visa
325
+ */
326
+ network: 'visa';
327
+ /**
328
+ * A constant representing the object's type. For this resource it will always be
329
+ * `card_authorization_expiration`.
330
+ */
331
+ type: 'card_authorization_expiration';
332
+ }
333
+ /**
334
+ * A Card Decline object. This field will be present in the JSON response if and
335
+ * only if `category` is equal to `card_decline`.
336
+ */
337
+ interface CardDecline {
338
+ /**
339
+ * The Card Decline identifier.
340
+ */
341
+ id: string;
342
+ /**
343
+ * The declined amount in the minor unit of the destination account currency. For
344
+ * dollars, for example, this is cents.
345
+ */
346
+ amount: number;
347
+ /**
348
+ * The ID of the Card Payment this transaction belongs to.
349
+ */
350
+ card_payment_id: string | null;
351
+ /**
352
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the destination
353
+ * account currency.
354
+ *
355
+ * - `CAD` - Canadian Dollar (CAD)
356
+ * - `CHF` - Swiss Franc (CHF)
357
+ * - `EUR` - Euro (EUR)
358
+ * - `GBP` - British Pound (GBP)
359
+ * - `JPY` - Japanese Yen (JPY)
360
+ * - `USD` - US Dollar (USD)
361
+ */
362
+ currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
363
+ /**
364
+ * If the authorization was made via a Digital Wallet Token (such as an Apple Pay
365
+ * purchase), the identifier of the token that was used.
366
+ */
367
+ digital_wallet_token_id: string | null;
368
+ /**
369
+ * The merchant identifier (commonly abbreviated as MID) of the merchant the card
370
+ * is transacting with.
371
+ */
372
+ merchant_acceptor_id: string;
373
+ /**
374
+ * The Merchant Category Code (commonly abbreviated as MCC) of the merchant the
375
+ * card is transacting with.
376
+ */
377
+ merchant_category_code: string | null;
378
+ /**
379
+ * The city the merchant resides in.
380
+ */
381
+ merchant_city: string | null;
382
+ /**
383
+ * The country the merchant resides in.
384
+ */
385
+ merchant_country: string | null;
386
+ /**
387
+ * The merchant descriptor of the merchant the card is transacting with.
388
+ */
389
+ merchant_descriptor: string;
390
+ /**
391
+ * The state the merchant resides in.
392
+ */
393
+ merchant_state: string | null;
394
+ /**
395
+ * Fields specific to the `network`.
396
+ */
397
+ network_details: CardDecline.NetworkDetails;
398
+ /**
399
+ * If the authorization was made in-person with a physical card, the Physical Card
400
+ * that was used.
401
+ */
402
+ physical_card_id: string | null;
403
+ /**
404
+ * The identifier of the Real-Time Decision sent to approve or decline this
405
+ * transaction.
406
+ */
407
+ real_time_decision_id: string | null;
408
+ /**
409
+ * Why the transaction was declined.
410
+ *
411
+ * - `card_not_active` - The Card was not active.
412
+ * - `physical_card_not_active` - The Physical Card was not active.
413
+ * - `entity_not_active` - The account's entity was not active.
414
+ * - `group_locked` - The account was inactive.
415
+ * - `insufficient_funds` - The Card's Account did not have a sufficient available
416
+ * balance.
417
+ * - `cvv2_mismatch` - The given CVV2 did not match the card's value.
418
+ * - `transaction_not_allowed` - The attempted card transaction is not allowed per
419
+ * Increase's terms.
420
+ * - `breaches_limit` - The transaction was blocked by a Limit.
421
+ * - `webhook_declined` - Your application declined the transaction via webhook.
422
+ * - `webhook_timed_out` - Your application webhook did not respond without the
423
+ * required timeout.
424
+ * - `declined_by_stand_in_processing` - Declined by stand-in processing.
425
+ * - `invalid_physical_card` - The card read had an invalid CVV, dCVV, or
426
+ * authorization request cryptogram.
427
+ * - `missing_original_authorization` - The original card authorization for this
428
+ * incremental authorization does not exist.
429
+ * - `suspected_fraud` - The transaction was suspected to be fraudulent. Please
430
+ * reach out to support@increase.com for more information.
431
+ */
432
+ reason: 'card_not_active' | 'physical_card_not_active' | 'entity_not_active' | 'group_locked' | 'insufficient_funds' | 'cvv2_mismatch' | 'transaction_not_allowed' | 'breaches_limit' | 'webhook_declined' | 'webhook_timed_out' | 'declined_by_stand_in_processing' | 'invalid_physical_card' | 'missing_original_authorization' | 'suspected_fraud';
433
+ }
434
+ namespace CardDecline {
435
+ /**
436
+ * Fields specific to the `network`.
437
+ */
438
+ interface NetworkDetails {
439
+ /**
440
+ * The payment network used to process this card authorization.
441
+ *
442
+ * - `visa` - Visa
443
+ */
444
+ category: 'visa';
445
+ /**
446
+ * Fields specific to the `visa` network.
447
+ */
448
+ visa: NetworkDetails.Visa | null;
449
+ }
450
+ namespace NetworkDetails {
451
+ /**
452
+ * Fields specific to the `visa` network.
453
+ */
454
+ interface Visa {
455
+ /**
456
+ * For electronic commerce transactions, this identifies the level of security used
457
+ * in obtaining the customer's payment credential. For mail or telephone order
458
+ * transactions, identifies the type of mail or telephone order.
459
+ *
460
+ * - `mail_phone_order` - Single transaction of a mail/phone order: Use to indicate
461
+ * that the transaction is a mail/phone order purchase, not a recurring
462
+ * transaction or installment payment. For domestic transactions in the US
463
+ * region, this value may also indicate one bill payment transaction in the
464
+ * card-present or card-absent environments.
465
+ * - `recurring` - Recurring transaction: Payment indicator used to indicate a
466
+ * recurring transaction that originates from an acquirer in the US region.
467
+ * - `installment` - Installment payment: Payment indicator used to indicate one
468
+ * purchase of goods or services that is billed to the account in multiple
469
+ * charges over a period of time agreed upon by the cardholder and merchant from
470
+ * transactions that originate from an acquirer in the US region.
471
+ * - `unknown_mail_phone_order` - Unknown classification: other mail order: Use to
472
+ * indicate that the type of mail/telephone order is unknown.
473
+ * - `secure_electronic_commerce` - Secure electronic commerce transaction: Use to
474
+ * indicate that the electronic commerce transaction has been authenticated using
475
+ * e.g., 3-D Secure
476
+ * - `non_authenticated_security_transaction_at_3ds_capable_merchant` -
477
+ * Non-authenticated security transaction at a 3-D Secure-capable merchant, and
478
+ * merchant attempted to authenticate the cardholder using 3-D Secure: Use to
479
+ * identify an electronic commerce transaction where the merchant attempted to
480
+ * authenticate the cardholder using 3-D Secure, but was unable to complete the
481
+ * authentication because the issuer or cardholder does not participate in the
482
+ * 3-D Secure program.
483
+ * - `non_authenticated_security_transaction` - Non-authenticated security
484
+ * transaction: Use to identify an electronic commerce transaction that uses data
485
+ * encryption for security however , cardholder authentication is not performed
486
+ * using 3-D Secure.
487
+ * - `non_secure_transaction` - Non-secure transaction: Use to identify an
488
+ * electronic commerce transaction that has no data protection.
489
+ */
490
+ electronic_commerce_indicator: 'mail_phone_order' | 'recurring' | 'installment' | 'unknown_mail_phone_order' | 'secure_electronic_commerce' | 'non_authenticated_security_transaction_at_3ds_capable_merchant' | 'non_authenticated_security_transaction' | 'non_secure_transaction' | null;
491
+ /**
492
+ * The method used to enter the cardholder's primary account number and card
493
+ * expiration date.
494
+ *
495
+ * - `unknown` - Unknown
496
+ * - `manual` - Manual key entry
497
+ * - `magnetic_stripe_no_cvv` - Magnetic stripe read, without card verification
498
+ * value
499
+ * - `optical_code` - Optical code
500
+ * - `integrated_circuit_card` - Contact chip card
501
+ * - `contactless` - Contactless read of chip card
502
+ * - `credential_on_file` - Transaction initiated using a credential that has
503
+ * previously been stored on file
504
+ * - `magnetic_stripe` - Magnetic stripe read
505
+ * - `contactless_magnetic_stripe` - Contactless read of magnetic stripe data
506
+ * - `integrated_circuit_card_no_cvv` - Contact chip card, without card
507
+ * verification value
508
+ */
509
+ point_of_service_entry_mode: 'unknown' | 'manual' | 'magnetic_stripe_no_cvv' | 'optical_code' | 'integrated_circuit_card' | 'contactless' | 'credential_on_file' | 'magnetic_stripe' | 'contactless_magnetic_stripe' | 'integrated_circuit_card_no_cvv' | null;
510
+ }
511
+ }
512
+ }
513
+ /**
514
+ * A Card Increment object. This field will be present in the JSON response if and
515
+ * only if `category` is equal to `card_increment`.
516
+ */
517
+ interface CardIncrement {
518
+ /**
519
+ * The Card Increment identifier.
520
+ */
521
+ id: string;
522
+ /**
523
+ * The amount of this increment in the minor unit of the transaction's currency.
524
+ * For dollars, for example, this is cents.
525
+ */
526
+ amount: number;
527
+ /**
528
+ * The identifier for the Card Authorization this reverses.
529
+ */
530
+ card_authorization_id: string;
531
+ /**
532
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the increment's
533
+ * currency.
534
+ *
535
+ * - `CAD` - Canadian Dollar (CAD)
536
+ * - `CHF` - Swiss Franc (CHF)
537
+ * - `EUR` - Euro (EUR)
538
+ * - `GBP` - British Pound (GBP)
539
+ * - `JPY` - Japanese Yen (JPY)
540
+ * - `USD` - US Dollar (USD)
541
+ */
542
+ currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
543
+ /**
544
+ * The card network used to process this card authorization.
545
+ *
546
+ * - `visa` - Visa
547
+ */
548
+ network: 'visa';
549
+ /**
550
+ * The identifier of the Real-Time Decision sent to approve or decline this
551
+ * incremental authorization.
552
+ */
553
+ real_time_decision_id: string | null;
554
+ /**
555
+ * A constant representing the object's type. For this resource it will always be
556
+ * `card_increment`.
557
+ */
558
+ type: 'card_increment';
559
+ /**
560
+ * The updated authorization amount after this increment, in the minor unit of the
561
+ * transaction's currency. For dollars, for example, this is cents.
562
+ */
563
+ updated_authorization_amount: number;
564
+ }
565
+ /**
566
+ * A Card Refund object. This field will be present in the JSON response if and
567
+ * only if `category` is equal to `card_refund`.
568
+ */
569
+ interface CardRefund {
570
+ /**
571
+ * The Card Refund identifier.
572
+ */
573
+ id: string;
574
+ /**
575
+ * The pending amount in the minor unit of the transaction's currency. For dollars,
576
+ * for example, this is cents.
577
+ */
578
+ amount: number;
579
+ /**
580
+ * The ID of the Card Payment this transaction belongs to.
581
+ */
582
+ card_payment_id: string | null;
583
+ /**
584
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
585
+ * transaction's currency.
586
+ *
587
+ * - `CAD` - Canadian Dollar (CAD)
588
+ * - `CHF` - Swiss Franc (CHF)
589
+ * - `EUR` - Euro (EUR)
590
+ * - `GBP` - British Pound (GBP)
591
+ * - `JPY` - Japanese Yen (JPY)
592
+ * - `USD` - US Dollar (USD)
593
+ */
594
+ currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
595
+ /**
596
+ * The merchant identifier (commonly abbreviated as MID) of the merchant the card
597
+ * is transacting with.
598
+ */
599
+ merchant_acceptor_id: string | null;
600
+ /**
601
+ * The 4-digit MCC describing the merchant's business.
602
+ */
603
+ merchant_category_code: string;
604
+ /**
605
+ * The city the merchant resides in.
606
+ */
607
+ merchant_city: string | null;
608
+ /**
609
+ * The country the merchant resides in.
610
+ */
611
+ merchant_country: string;
612
+ /**
613
+ * The name of the merchant.
614
+ */
615
+ merchant_name: string | null;
616
+ /**
617
+ * The state the merchant resides in.
618
+ */
619
+ merchant_state: string | null;
620
+ /**
621
+ * Additional details about the card purchase, such as tax and industry-specific
622
+ * fields.
623
+ */
624
+ purchase_details: CardRefund.PurchaseDetails | null;
625
+ /**
626
+ * The identifier of the Transaction associated with this Transaction.
627
+ */
628
+ transaction_id: string;
629
+ /**
630
+ * A constant representing the object's type. For this resource it will always be
631
+ * `card_refund`.
632
+ */
633
+ type: 'card_refund';
634
+ }
635
+ namespace CardRefund {
636
+ /**
637
+ * Additional details about the card purchase, such as tax and industry-specific
638
+ * fields.
639
+ */
640
+ interface PurchaseDetails {
641
+ /**
642
+ * Fields specific to car rentals.
643
+ */
644
+ car_rental: PurchaseDetails.CarRental | null;
645
+ /**
646
+ * An identifier from the merchant for the customer or consumer.
647
+ */
648
+ customer_reference_identifier: string | null;
649
+ /**
650
+ * The state or provincial tax amount in minor units.
651
+ */
652
+ local_tax_amount: number | null;
653
+ /**
654
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the local tax
655
+ * assessed.
656
+ */
657
+ local_tax_currency: string | null;
658
+ /**
659
+ * Fields specific to lodging.
660
+ */
661
+ lodging: PurchaseDetails.Lodging | null;
662
+ /**
663
+ * The national tax amount in minor units.
664
+ */
665
+ national_tax_amount: number | null;
666
+ /**
667
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the local tax
668
+ * assessed.
669
+ */
670
+ national_tax_currency: string | null;
671
+ /**
672
+ * An identifier from the merchant for the purchase to the issuer and cardholder.
673
+ */
674
+ purchase_identifier: string | null;
675
+ /**
676
+ * The format of the purchase identifier.
677
+ *
678
+ * - `free_text` - Free text
679
+ * - `order_number` - Order number
680
+ * - `rental_agreement_number` - Rental agreement number
681
+ * - `hotel_folio_number` - Hotel folio number
682
+ * - `invoice_number` - Invoice number
683
+ */
684
+ purchase_identifier_format: 'free_text' | 'order_number' | 'rental_agreement_number' | 'hotel_folio_number' | 'invoice_number' | null;
685
+ /**
686
+ * Fields specific to travel.
687
+ */
688
+ travel: PurchaseDetails.Travel | null;
689
+ }
690
+ namespace PurchaseDetails {
691
+ /**
692
+ * Fields specific to car rentals.
693
+ */
694
+ interface CarRental {
695
+ /**
696
+ * Code indicating the vehicle's class.
697
+ */
698
+ car_class_code: string | null;
699
+ /**
700
+ * Date the customer picked up the car or, in the case of a no-show or pre-pay
701
+ * transaction, the scheduled pick up date.
702
+ */
703
+ checkout_date: string | null;
704
+ /**
705
+ * Daily rate being charged for the vehicle.
706
+ */
707
+ daily_rental_rate_amount: number | null;
708
+ /**
709
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the daily rental
710
+ * rate.
711
+ */
712
+ daily_rental_rate_currency: string | null;
713
+ /**
714
+ * Number of days the vehicle was rented.
715
+ */
716
+ days_rented: number | null;
717
+ /**
718
+ * Additional charges (gas, late fee, etc.) being billed.
719
+ *
720
+ * - `no_extra_charge` - No extra charge
721
+ * - `gas` - Gas
722
+ * - `extra_mileage` - Extra mileage
723
+ * - `late_return` - Late return
724
+ * - `one_way_service_fee` - One way service fee
725
+ * - `parking_violation` - Parking violation
726
+ */
727
+ extra_charges: 'no_extra_charge' | 'gas' | 'extra_mileage' | 'late_return' | 'one_way_service_fee' | 'parking_violation' | null;
728
+ /**
729
+ * Fuel charges for the vehicle.
730
+ */
731
+ fuel_charges_amount: number | null;
732
+ /**
733
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the fuel charges
734
+ * assessed.
735
+ */
736
+ fuel_charges_currency: string | null;
737
+ /**
738
+ * Any insurance being charged for the vehicle.
739
+ */
740
+ insurance_charges_amount: number | null;
741
+ /**
742
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the insurance
743
+ * charges assessed.
744
+ */
745
+ insurance_charges_currency: string | null;
746
+ /**
747
+ * An indicator that the cardholder is being billed for a reserved vehicle that was
748
+ * not actually rented (that is, a "no-show" charge).
749
+ *
750
+ * - `not_applicable` - Not applicable
751
+ * - `no_show_for_specialized_vehicle` - No show for specialized vehicle
752
+ */
753
+ no_show_indicator: 'not_applicable' | 'no_show_for_specialized_vehicle' | null;
754
+ /**
755
+ * Charges for returning the vehicle at a different location than where it was
756
+ * picked up.
757
+ */
758
+ one_way_drop_off_charges_amount: number | null;
759
+ /**
760
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the one-way
761
+ * drop-off charges assessed.
762
+ */
763
+ one_way_drop_off_charges_currency: string | null;
764
+ /**
765
+ * Name of the person renting the vehicle.
766
+ */
767
+ renter_name: string | null;
768
+ /**
769
+ * Weekly rate being charged for the vehicle.
770
+ */
771
+ weekly_rental_rate_amount: number | null;
772
+ /**
773
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the weekly
774
+ * rental rate.
775
+ */
776
+ weekly_rental_rate_currency: string | null;
777
+ }
778
+ /**
779
+ * Fields specific to lodging.
780
+ */
781
+ interface Lodging {
782
+ /**
783
+ * Date the customer checked in.
784
+ */
785
+ check_in_date: string | null;
786
+ /**
787
+ * Daily rate being charged for the room.
788
+ */
789
+ daily_room_rate_amount: number | null;
790
+ /**
791
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the daily room
792
+ * rate.
793
+ */
794
+ daily_room_rate_currency: string | null;
795
+ /**
796
+ * Additional charges (phone, late check-out, etc.) being billed.
797
+ *
798
+ * - `no_extra_charge` - No extra charge
799
+ * - `restaurant` - Restaurant
800
+ * - `gift_shop` - Gift shop
801
+ * - `mini_bar` - Mini bar
802
+ * - `telephone` - Telephone
803
+ * - `other` - Other
804
+ * - `laundry` - Laundry
805
+ */
806
+ extra_charges: 'no_extra_charge' | 'restaurant' | 'gift_shop' | 'mini_bar' | 'telephone' | 'other' | 'laundry' | null;
807
+ /**
808
+ * Folio cash advances for the room.
809
+ */
810
+ folio_cash_advances_amount: number | null;
811
+ /**
812
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the folio cash
813
+ * advances.
814
+ */
815
+ folio_cash_advances_currency: string | null;
816
+ /**
817
+ * Food and beverage charges for the room.
818
+ */
819
+ food_beverage_charges_amount: number | null;
820
+ /**
821
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the food and
822
+ * beverage charges.
823
+ */
824
+ food_beverage_charges_currency: string | null;
825
+ /**
826
+ * Indicator that the cardholder is being billed for a reserved room that was not
827
+ * actually used.
828
+ *
829
+ * - `not_applicable` - Not applicable
830
+ * - `no_show` - No show
831
+ */
832
+ no_show_indicator: 'not_applicable' | 'no_show' | null;
833
+ /**
834
+ * Prepaid expenses being charged for the room.
835
+ */
836
+ prepaid_expenses_amount: number | null;
837
+ /**
838
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the prepaid
839
+ * expenses.
840
+ */
841
+ prepaid_expenses_currency: string | null;
842
+ /**
843
+ * Number of nights the room was rented.
844
+ */
845
+ room_nights: number | null;
846
+ /**
847
+ * Total room tax being charged.
848
+ */
849
+ total_room_tax_amount: number | null;
850
+ /**
851
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the total room
852
+ * tax.
853
+ */
854
+ total_room_tax_currency: string | null;
855
+ /**
856
+ * Total tax being charged for the room.
857
+ */
858
+ total_tax_amount: number | null;
859
+ /**
860
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the total tax
861
+ * assessed.
862
+ */
863
+ total_tax_currency: string | null;
864
+ }
865
+ /**
866
+ * Fields specific to travel.
867
+ */
868
+ interface Travel {
869
+ /**
870
+ * Ancillary purchases in addition to the airfare.
871
+ */
872
+ ancillary: Travel.Ancillary | null;
873
+ /**
874
+ * Indicates the computerized reservation system used to book the ticket.
875
+ */
876
+ computerized_reservation_system: string | null;
877
+ /**
878
+ * Indicates the reason for a credit to the cardholder.
879
+ *
880
+ * - `no_credit` - No credit
881
+ * - `passenger_transport_ancillary_purchase_cancellation` - Passenger transport
882
+ * ancillary purchase cancellation
883
+ * - `airline_ticket_and_passenger_transport_ancillary_purchase_cancellation` -
884
+ * Airline ticket and passenger transport ancillary purchase cancellation
885
+ * - `airline_ticket_cancellation` - Airline ticket cancellation
886
+ * - `other` - Other
887
+ * - `partial_refund_of_airline_ticket` - Partial refund of airline ticket
888
+ */
889
+ 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;
890
+ /**
891
+ * Date of departure.
892
+ */
893
+ departure_date: string | null;
894
+ /**
895
+ * Code for the originating city or airport.
896
+ */
897
+ origination_city_airport_code: string | null;
898
+ /**
899
+ * Name of the passenger.
900
+ */
901
+ passenger_name: string | null;
902
+ /**
903
+ * Indicates whether this ticket is non-refundable.
904
+ *
905
+ * - `no_restrictions` - No restrictions
906
+ * - `restricted_non_refundable_ticket` - Restricted non-refundable ticket
907
+ */
908
+ restricted_ticket_indicator: 'no_restrictions' | 'restricted_non_refundable_ticket' | null;
909
+ /**
910
+ * Indicates why a ticket was changed.
911
+ *
912
+ * - `none` - None
913
+ * - `change_to_existing_ticket` - Change to existing ticket
914
+ * - `new_ticket` - New ticket
915
+ */
916
+ ticket_change_indicator: 'none' | 'change_to_existing_ticket' | 'new_ticket' | null;
917
+ /**
918
+ * Ticket number.
919
+ */
920
+ ticket_number: string | null;
921
+ /**
922
+ * Code for the travel agency if the ticket was issued by a travel agency.
923
+ */
924
+ travel_agency_code: string | null;
925
+ /**
926
+ * Name of the travel agency if the ticket was issued by a travel agency.
927
+ */
928
+ travel_agency_name: string | null;
929
+ /**
930
+ * Fields specific to each leg of the journey.
931
+ */
932
+ trip_legs: Array<Travel.TripLeg> | null;
933
+ }
934
+ namespace Travel {
935
+ /**
936
+ * Ancillary purchases in addition to the airfare.
937
+ */
938
+ interface Ancillary {
939
+ /**
940
+ * If this purchase has a connection or relationship to another purchase, such as a
941
+ * baggage fee for a passenger transport ticket, this field should contain the
942
+ * ticket document number for the other purchase.
943
+ */
944
+ connected_ticket_document_number: string | null;
945
+ /**
946
+ * Indicates the reason for a credit to the cardholder.
947
+ *
948
+ * - `no_credit` - No credit
949
+ * - `passenger_transport_ancillary_purchase_cancellation` - Passenger transport
950
+ * ancillary purchase cancellation
951
+ * - `airline_ticket_and_passenger_transport_ancillary_purchase_cancellation` -
952
+ * Airline ticket and passenger transport ancillary purchase cancellation
953
+ * - `other` - Other
954
+ */
955
+ credit_reason_indicator: 'no_credit' | 'passenger_transport_ancillary_purchase_cancellation' | 'airline_ticket_and_passenger_transport_ancillary_purchase_cancellation' | 'other' | null;
956
+ /**
957
+ * Name of the passenger or description of the ancillary purchase.
958
+ */
959
+ passenger_name_or_description: string | null;
960
+ /**
961
+ * Additional travel charges, such as baggage fees.
962
+ */
963
+ services: Array<Ancillary.Service>;
964
+ /**
965
+ * Ticket document number.
966
+ */
967
+ ticket_document_number: string | null;
968
+ }
969
+ namespace Ancillary {
970
+ interface Service {
971
+ /**
972
+ * Category of the ancillary service.
973
+ *
974
+ * - `none` - None
975
+ * - `bundled_service` - Bundled service
976
+ * - `baggage_fee` - Baggage fee
977
+ * - `change_fee` - Change fee
978
+ * - `cargo` - Cargo
979
+ * - `carbon_offset` - Carbon offset
980
+ * - `frequent_flyer` - Frequent flyer
981
+ * - `gift_card` - Gift card
982
+ * - `ground_transport` - Ground transport
983
+ * - `in_flight_entertainment` - In-flight entertainment
984
+ * - `lounge` - Lounge
985
+ * - `medical` - Medical
986
+ * - `meal_beverage` - Meal beverage
987
+ * - `other` - Other
988
+ * - `passenger_assist_fee` - Passenger assist fee
989
+ * - `pets` - Pets
990
+ * - `seat_fees` - Seat fees
991
+ * - `standby` - Standby
992
+ * - `service_fee` - Service fee
993
+ * - `store` - Store
994
+ * - `travel_service` - Travel service
995
+ * - `unaccompanied_travel` - Unaccompanied travel
996
+ * - `upgrades` - Upgrades
997
+ * - `wifi` - Wi-fi
998
+ */
999
+ 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;
1000
+ /**
1001
+ * Sub-category of the ancillary service, free-form.
1002
+ */
1003
+ sub_category: string | null;
1004
+ }
1005
+ }
1006
+ interface TripLeg {
1007
+ /**
1008
+ * Carrier code (e.g., United Airlines, Jet Blue, etc.).
1009
+ */
1010
+ carrier_code: string | null;
1011
+ /**
1012
+ * Code for the destination city or airport.
1013
+ */
1014
+ destination_city_airport_code: string | null;
1015
+ /**
1016
+ * Fare basis code.
1017
+ */
1018
+ fare_basis_code: string | null;
1019
+ /**
1020
+ * Flight number.
1021
+ */
1022
+ flight_number: string | null;
1023
+ /**
1024
+ * Service class (e.g., first class, business class, etc.).
1025
+ */
1026
+ service_class: string | null;
1027
+ /**
1028
+ * Indicates whether a stopover is allowed on this ticket.
1029
+ *
1030
+ * - `none` - None
1031
+ * - `stop_over_allowed` - Stop over allowed
1032
+ * - `stop_over_not_allowed` - Stop over not allowed
1033
+ */
1034
+ stop_over_code: 'none' | 'stop_over_allowed' | 'stop_over_not_allowed' | null;
1035
+ }
1036
+ }
1037
+ }
1038
+ }
1039
+ /**
1040
+ * A Card Reversal object. This field will be present in the JSON response if and
1041
+ * only if `category` is equal to `card_reversal`.
1042
+ */
1043
+ interface CardReversal {
1044
+ /**
1045
+ * The Card Reversal identifier.
1046
+ */
1047
+ id: string;
1048
+ /**
1049
+ * The identifier for the Card Authorization this reverses.
1050
+ */
1051
+ card_authorization_id: string;
1052
+ /**
1053
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the reversal's
1054
+ * currency.
1055
+ *
1056
+ * - `CAD` - Canadian Dollar (CAD)
1057
+ * - `CHF` - Swiss Franc (CHF)
1058
+ * - `EUR` - Euro (EUR)
1059
+ * - `GBP` - British Pound (GBP)
1060
+ * - `JPY` - Japanese Yen (JPY)
1061
+ * - `USD` - US Dollar (USD)
1062
+ */
1063
+ currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
1064
+ /**
1065
+ * The card network used to process this card authorization.
1066
+ *
1067
+ * - `visa` - Visa
1068
+ */
1069
+ network: 'visa';
1070
+ /**
1071
+ * The amount of this reversal in the minor unit of the transaction's currency. For
1072
+ * dollars, for example, this is cents.
1073
+ */
1074
+ reversal_amount: number;
1075
+ /**
1076
+ * A constant representing the object's type. For this resource it will always be
1077
+ * `card_reversal`.
1078
+ */
1079
+ type: 'card_reversal';
1080
+ /**
1081
+ * The amount left pending on the Card Authorization in the minor unit of the
1082
+ * transaction's currency. For dollars, for example, this is cents.
1083
+ */
1084
+ updated_authorization_amount: number;
1085
+ }
1086
+ /**
1087
+ * A Card Settlement object. This field will be present in the JSON response if and
1088
+ * only if `category` is equal to `card_settlement`.
1089
+ */
1090
+ interface CardSettlement {
1091
+ /**
1092
+ * The Card Settlement identifier.
1093
+ */
1094
+ id: string;
1095
+ /**
1096
+ * The amount in the minor unit of the transaction's settlement currency. For
1097
+ * dollars, for example, this is cents.
1098
+ */
1099
+ amount: number;
1100
+ /**
1101
+ * The Card Authorization that was created prior to this Card Settlement, if one
1102
+ * exists.
1103
+ */
1104
+ card_authorization: string | null;
1105
+ /**
1106
+ * The ID of the Card Payment this transaction belongs to.
1107
+ */
1108
+ card_payment_id: string | null;
1109
+ /**
1110
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
1111
+ * transaction's settlement currency.
1112
+ *
1113
+ * - `CAD` - Canadian Dollar (CAD)
1114
+ * - `CHF` - Swiss Franc (CHF)
1115
+ * - `EUR` - Euro (EUR)
1116
+ * - `GBP` - British Pound (GBP)
1117
+ * - `JPY` - Japanese Yen (JPY)
1118
+ * - `USD` - US Dollar (USD)
1119
+ */
1120
+ currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
1121
+ /**
1122
+ * The merchant identifier (commonly abbreviated as MID) of the merchant the card
1123
+ * is transacting with.
1124
+ */
1125
+ merchant_acceptor_id: string | null;
1126
+ /**
1127
+ * The 4-digit MCC describing the merchant's business.
1128
+ */
1129
+ merchant_category_code: string;
1130
+ /**
1131
+ * The city the merchant resides in.
1132
+ */
1133
+ merchant_city: string | null;
1134
+ /**
1135
+ * The country the merchant resides in.
1136
+ */
1137
+ merchant_country: string;
1138
+ /**
1139
+ * The name of the merchant.
1140
+ */
1141
+ merchant_name: string | null;
1142
+ /**
1143
+ * The state the merchant resides in.
1144
+ */
1145
+ merchant_state: string | null;
1146
+ /**
1147
+ * The identifier of the Pending Transaction associated with this Transaction.
1148
+ */
1149
+ pending_transaction_id: string | null;
1150
+ /**
1151
+ * The amount in the minor unit of the transaction's presentment currency.
1152
+ */
1153
+ presentment_amount: number;
1154
+ /**
1155
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
1156
+ * transaction's presentment currency.
1157
+ */
1158
+ presentment_currency: string;
1159
+ /**
1160
+ * Additional details about the card purchase, such as tax and industry-specific
1161
+ * fields.
1162
+ */
1163
+ purchase_details: CardSettlement.PurchaseDetails | null;
1164
+ /**
1165
+ * The identifier of the Transaction associated with this Transaction.
1166
+ */
1167
+ transaction_id: string;
1168
+ /**
1169
+ * A constant representing the object's type. For this resource it will always be
1170
+ * `card_settlement`.
1171
+ */
1172
+ type: 'card_settlement';
1173
+ }
1174
+ namespace CardSettlement {
1175
+ /**
1176
+ * Additional details about the card purchase, such as tax and industry-specific
1177
+ * fields.
1178
+ */
1179
+ interface PurchaseDetails {
1180
+ /**
1181
+ * Fields specific to car rentals.
1182
+ */
1183
+ car_rental: PurchaseDetails.CarRental | null;
1184
+ /**
1185
+ * An identifier from the merchant for the customer or consumer.
1186
+ */
1187
+ customer_reference_identifier: string | null;
1188
+ /**
1189
+ * The state or provincial tax amount in minor units.
1190
+ */
1191
+ local_tax_amount: number | null;
1192
+ /**
1193
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the local tax
1194
+ * assessed.
1195
+ */
1196
+ local_tax_currency: string | null;
1197
+ /**
1198
+ * Fields specific to lodging.
1199
+ */
1200
+ lodging: PurchaseDetails.Lodging | null;
1201
+ /**
1202
+ * The national tax amount in minor units.
1203
+ */
1204
+ national_tax_amount: number | null;
1205
+ /**
1206
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the local tax
1207
+ * assessed.
1208
+ */
1209
+ national_tax_currency: string | null;
1210
+ /**
1211
+ * An identifier from the merchant for the purchase to the issuer and cardholder.
1212
+ */
1213
+ purchase_identifier: string | null;
1214
+ /**
1215
+ * The format of the purchase identifier.
1216
+ *
1217
+ * - `free_text` - Free text
1218
+ * - `order_number` - Order number
1219
+ * - `rental_agreement_number` - Rental agreement number
1220
+ * - `hotel_folio_number` - Hotel folio number
1221
+ * - `invoice_number` - Invoice number
1222
+ */
1223
+ purchase_identifier_format: 'free_text' | 'order_number' | 'rental_agreement_number' | 'hotel_folio_number' | 'invoice_number' | null;
1224
+ /**
1225
+ * Fields specific to travel.
1226
+ */
1227
+ travel: PurchaseDetails.Travel | null;
1228
+ }
1229
+ namespace PurchaseDetails {
1230
+ /**
1231
+ * Fields specific to car rentals.
1232
+ */
1233
+ interface CarRental {
1234
+ /**
1235
+ * Code indicating the vehicle's class.
1236
+ */
1237
+ car_class_code: string | null;
1238
+ /**
1239
+ * Date the customer picked up the car or, in the case of a no-show or pre-pay
1240
+ * transaction, the scheduled pick up date.
1241
+ */
1242
+ checkout_date: string | null;
1243
+ /**
1244
+ * Daily rate being charged for the vehicle.
1245
+ */
1246
+ daily_rental_rate_amount: number | null;
1247
+ /**
1248
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the daily rental
1249
+ * rate.
1250
+ */
1251
+ daily_rental_rate_currency: string | null;
1252
+ /**
1253
+ * Number of days the vehicle was rented.
1254
+ */
1255
+ days_rented: number | null;
1256
+ /**
1257
+ * Additional charges (gas, late fee, etc.) being billed.
1258
+ *
1259
+ * - `no_extra_charge` - No extra charge
1260
+ * - `gas` - Gas
1261
+ * - `extra_mileage` - Extra mileage
1262
+ * - `late_return` - Late return
1263
+ * - `one_way_service_fee` - One way service fee
1264
+ * - `parking_violation` - Parking violation
1265
+ */
1266
+ extra_charges: 'no_extra_charge' | 'gas' | 'extra_mileage' | 'late_return' | 'one_way_service_fee' | 'parking_violation' | null;
1267
+ /**
1268
+ * Fuel charges for the vehicle.
1269
+ */
1270
+ fuel_charges_amount: number | null;
1271
+ /**
1272
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the fuel charges
1273
+ * assessed.
1274
+ */
1275
+ fuel_charges_currency: string | null;
1276
+ /**
1277
+ * Any insurance being charged for the vehicle.
1278
+ */
1279
+ insurance_charges_amount: number | null;
1280
+ /**
1281
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the insurance
1282
+ * charges assessed.
1283
+ */
1284
+ insurance_charges_currency: string | null;
1285
+ /**
1286
+ * An indicator that the cardholder is being billed for a reserved vehicle that was
1287
+ * not actually rented (that is, a "no-show" charge).
1288
+ *
1289
+ * - `not_applicable` - Not applicable
1290
+ * - `no_show_for_specialized_vehicle` - No show for specialized vehicle
1291
+ */
1292
+ no_show_indicator: 'not_applicable' | 'no_show_for_specialized_vehicle' | null;
1293
+ /**
1294
+ * Charges for returning the vehicle at a different location than where it was
1295
+ * picked up.
1296
+ */
1297
+ one_way_drop_off_charges_amount: number | null;
1298
+ /**
1299
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the one-way
1300
+ * drop-off charges assessed.
1301
+ */
1302
+ one_way_drop_off_charges_currency: string | null;
1303
+ /**
1304
+ * Name of the person renting the vehicle.
1305
+ */
1306
+ renter_name: string | null;
1307
+ /**
1308
+ * Weekly rate being charged for the vehicle.
1309
+ */
1310
+ weekly_rental_rate_amount: number | null;
1311
+ /**
1312
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the weekly
1313
+ * rental rate.
1314
+ */
1315
+ weekly_rental_rate_currency: string | null;
1316
+ }
1317
+ /**
1318
+ * Fields specific to lodging.
1319
+ */
1320
+ interface Lodging {
1321
+ /**
1322
+ * Date the customer checked in.
1323
+ */
1324
+ check_in_date: string | null;
1325
+ /**
1326
+ * Daily rate being charged for the room.
1327
+ */
1328
+ daily_room_rate_amount: number | null;
1329
+ /**
1330
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the daily room
1331
+ * rate.
1332
+ */
1333
+ daily_room_rate_currency: string | null;
1334
+ /**
1335
+ * Additional charges (phone, late check-out, etc.) being billed.
1336
+ *
1337
+ * - `no_extra_charge` - No extra charge
1338
+ * - `restaurant` - Restaurant
1339
+ * - `gift_shop` - Gift shop
1340
+ * - `mini_bar` - Mini bar
1341
+ * - `telephone` - Telephone
1342
+ * - `other` - Other
1343
+ * - `laundry` - Laundry
1344
+ */
1345
+ extra_charges: 'no_extra_charge' | 'restaurant' | 'gift_shop' | 'mini_bar' | 'telephone' | 'other' | 'laundry' | null;
1346
+ /**
1347
+ * Folio cash advances for the room.
1348
+ */
1349
+ folio_cash_advances_amount: number | null;
1350
+ /**
1351
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the folio cash
1352
+ * advances.
1353
+ */
1354
+ folio_cash_advances_currency: string | null;
1355
+ /**
1356
+ * Food and beverage charges for the room.
1357
+ */
1358
+ food_beverage_charges_amount: number | null;
1359
+ /**
1360
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the food and
1361
+ * beverage charges.
1362
+ */
1363
+ food_beverage_charges_currency: string | null;
1364
+ /**
1365
+ * Indicator that the cardholder is being billed for a reserved room that was not
1366
+ * actually used.
1367
+ *
1368
+ * - `not_applicable` - Not applicable
1369
+ * - `no_show` - No show
1370
+ */
1371
+ no_show_indicator: 'not_applicable' | 'no_show' | null;
1372
+ /**
1373
+ * Prepaid expenses being charged for the room.
1374
+ */
1375
+ prepaid_expenses_amount: number | null;
1376
+ /**
1377
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the prepaid
1378
+ * expenses.
1379
+ */
1380
+ prepaid_expenses_currency: string | null;
1381
+ /**
1382
+ * Number of nights the room was rented.
1383
+ */
1384
+ room_nights: number | null;
1385
+ /**
1386
+ * Total room tax being charged.
1387
+ */
1388
+ total_room_tax_amount: number | null;
1389
+ /**
1390
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the total room
1391
+ * tax.
1392
+ */
1393
+ total_room_tax_currency: string | null;
1394
+ /**
1395
+ * Total tax being charged for the room.
1396
+ */
1397
+ total_tax_amount: number | null;
1398
+ /**
1399
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the total tax
1400
+ * assessed.
1401
+ */
1402
+ total_tax_currency: string | null;
1403
+ }
1404
+ /**
1405
+ * Fields specific to travel.
1406
+ */
1407
+ interface Travel {
1408
+ /**
1409
+ * Ancillary purchases in addition to the airfare.
1410
+ */
1411
+ ancillary: Travel.Ancillary | null;
1412
+ /**
1413
+ * Indicates the computerized reservation system used to book the ticket.
1414
+ */
1415
+ computerized_reservation_system: string | null;
1416
+ /**
1417
+ * Indicates the reason for a credit to the cardholder.
1418
+ *
1419
+ * - `no_credit` - No credit
1420
+ * - `passenger_transport_ancillary_purchase_cancellation` - Passenger transport
1421
+ * ancillary purchase cancellation
1422
+ * - `airline_ticket_and_passenger_transport_ancillary_purchase_cancellation` -
1423
+ * Airline ticket and passenger transport ancillary purchase cancellation
1424
+ * - `airline_ticket_cancellation` - Airline ticket cancellation
1425
+ * - `other` - Other
1426
+ * - `partial_refund_of_airline_ticket` - Partial refund of airline ticket
1427
+ */
1428
+ 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;
1429
+ /**
1430
+ * Date of departure.
1431
+ */
1432
+ departure_date: string | null;
1433
+ /**
1434
+ * Code for the originating city or airport.
1435
+ */
1436
+ origination_city_airport_code: string | null;
1437
+ /**
1438
+ * Name of the passenger.
1439
+ */
1440
+ passenger_name: string | null;
1441
+ /**
1442
+ * Indicates whether this ticket is non-refundable.
1443
+ *
1444
+ * - `no_restrictions` - No restrictions
1445
+ * - `restricted_non_refundable_ticket` - Restricted non-refundable ticket
1446
+ */
1447
+ restricted_ticket_indicator: 'no_restrictions' | 'restricted_non_refundable_ticket' | null;
1448
+ /**
1449
+ * Indicates why a ticket was changed.
1450
+ *
1451
+ * - `none` - None
1452
+ * - `change_to_existing_ticket` - Change to existing ticket
1453
+ * - `new_ticket` - New ticket
1454
+ */
1455
+ ticket_change_indicator: 'none' | 'change_to_existing_ticket' | 'new_ticket' | null;
1456
+ /**
1457
+ * Ticket number.
1458
+ */
1459
+ ticket_number: string | null;
1460
+ /**
1461
+ * Code for the travel agency if the ticket was issued by a travel agency.
1462
+ */
1463
+ travel_agency_code: string | null;
1464
+ /**
1465
+ * Name of the travel agency if the ticket was issued by a travel agency.
1466
+ */
1467
+ travel_agency_name: string | null;
1468
+ /**
1469
+ * Fields specific to each leg of the journey.
1470
+ */
1471
+ trip_legs: Array<Travel.TripLeg> | null;
1472
+ }
1473
+ namespace Travel {
1474
+ /**
1475
+ * Ancillary purchases in addition to the airfare.
1476
+ */
1477
+ interface Ancillary {
1478
+ /**
1479
+ * If this purchase has a connection or relationship to another purchase, such as a
1480
+ * baggage fee for a passenger transport ticket, this field should contain the
1481
+ * ticket document number for the other purchase.
1482
+ */
1483
+ connected_ticket_document_number: string | null;
1484
+ /**
1485
+ * Indicates the reason for a credit to the cardholder.
1486
+ *
1487
+ * - `no_credit` - No credit
1488
+ * - `passenger_transport_ancillary_purchase_cancellation` - Passenger transport
1489
+ * ancillary purchase cancellation
1490
+ * - `airline_ticket_and_passenger_transport_ancillary_purchase_cancellation` -
1491
+ * Airline ticket and passenger transport ancillary purchase cancellation
1492
+ * - `other` - Other
1493
+ */
1494
+ credit_reason_indicator: 'no_credit' | 'passenger_transport_ancillary_purchase_cancellation' | 'airline_ticket_and_passenger_transport_ancillary_purchase_cancellation' | 'other' | null;
1495
+ /**
1496
+ * Name of the passenger or description of the ancillary purchase.
1497
+ */
1498
+ passenger_name_or_description: string | null;
1499
+ /**
1500
+ * Additional travel charges, such as baggage fees.
1501
+ */
1502
+ services: Array<Ancillary.Service>;
1503
+ /**
1504
+ * Ticket document number.
1505
+ */
1506
+ ticket_document_number: string | null;
1507
+ }
1508
+ namespace Ancillary {
1509
+ interface Service {
1510
+ /**
1511
+ * Category of the ancillary service.
1512
+ *
1513
+ * - `none` - None
1514
+ * - `bundled_service` - Bundled service
1515
+ * - `baggage_fee` - Baggage fee
1516
+ * - `change_fee` - Change fee
1517
+ * - `cargo` - Cargo
1518
+ * - `carbon_offset` - Carbon offset
1519
+ * - `frequent_flyer` - Frequent flyer
1520
+ * - `gift_card` - Gift card
1521
+ * - `ground_transport` - Ground transport
1522
+ * - `in_flight_entertainment` - In-flight entertainment
1523
+ * - `lounge` - Lounge
1524
+ * - `medical` - Medical
1525
+ * - `meal_beverage` - Meal beverage
1526
+ * - `other` - Other
1527
+ * - `passenger_assist_fee` - Passenger assist fee
1528
+ * - `pets` - Pets
1529
+ * - `seat_fees` - Seat fees
1530
+ * - `standby` - Standby
1531
+ * - `service_fee` - Service fee
1532
+ * - `store` - Store
1533
+ * - `travel_service` - Travel service
1534
+ * - `unaccompanied_travel` - Unaccompanied travel
1535
+ * - `upgrades` - Upgrades
1536
+ * - `wifi` - Wi-fi
1537
+ */
1538
+ 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;
1539
+ /**
1540
+ * Sub-category of the ancillary service, free-form.
1541
+ */
1542
+ sub_category: string | null;
1543
+ }
1544
+ }
1545
+ interface TripLeg {
1546
+ /**
1547
+ * Carrier code (e.g., United Airlines, Jet Blue, etc.).
1548
+ */
1549
+ carrier_code: string | null;
1550
+ /**
1551
+ * Code for the destination city or airport.
1552
+ */
1553
+ destination_city_airport_code: string | null;
1554
+ /**
1555
+ * Fare basis code.
1556
+ */
1557
+ fare_basis_code: string | null;
1558
+ /**
1559
+ * Flight number.
1560
+ */
1561
+ flight_number: string | null;
1562
+ /**
1563
+ * Service class (e.g., first class, business class, etc.).
1564
+ */
1565
+ service_class: string | null;
1566
+ /**
1567
+ * Indicates whether a stopover is allowed on this ticket.
1568
+ *
1569
+ * - `none` - None
1570
+ * - `stop_over_allowed` - Stop over allowed
1571
+ * - `stop_over_not_allowed` - Stop over not allowed
1572
+ */
1573
+ stop_over_code: 'none' | 'stop_over_allowed' | 'stop_over_not_allowed' | null;
1574
+ }
1575
+ }
1576
+ }
1577
+ }
1578
+ /**
1579
+ * A Card Validation object. This field will be present in the JSON response if and
1580
+ * only if `category` is equal to `card_validation`.
1581
+ */
1582
+ interface CardValidation {
1583
+ /**
1584
+ * The Card Validation identifier.
1585
+ */
1586
+ id: string;
1587
+ /**
1588
+ * The ID of the Card Payment this transaction belongs to.
1589
+ */
1590
+ card_payment_id: string | null;
1591
+ /**
1592
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
1593
+ * transaction's currency.
1594
+ *
1595
+ * - `CAD` - Canadian Dollar (CAD)
1596
+ * - `CHF` - Swiss Franc (CHF)
1597
+ * - `EUR` - Euro (EUR)
1598
+ * - `GBP` - British Pound (GBP)
1599
+ * - `JPY` - Japanese Yen (JPY)
1600
+ * - `USD` - US Dollar (USD)
1601
+ */
1602
+ currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
1603
+ /**
1604
+ * If the authorization was made via a Digital Wallet Token (such as an Apple Pay
1605
+ * purchase), the identifier of the token that was used.
1606
+ */
1607
+ digital_wallet_token_id: string | null;
1608
+ /**
1609
+ * The merchant identifier (commonly abbreviated as MID) of the merchant the card
1610
+ * is transacting with.
1611
+ */
1612
+ merchant_acceptor_id: string;
1613
+ /**
1614
+ * The Merchant Category Code (commonly abbreviated as MCC) of the merchant the
1615
+ * card is transacting with.
1616
+ */
1617
+ merchant_category_code: string | null;
1618
+ /**
1619
+ * The city the merchant resides in.
1620
+ */
1621
+ merchant_city: string | null;
1622
+ /**
1623
+ * The country the merchant resides in.
1624
+ */
1625
+ merchant_country: string | null;
1626
+ /**
1627
+ * The merchant descriptor of the merchant the card is transacting with.
1628
+ */
1629
+ merchant_descriptor: string;
1630
+ /**
1631
+ * Fields specific to the `network`.
1632
+ */
1633
+ network_details: CardValidation.NetworkDetails;
1634
+ /**
1635
+ * If the authorization was made in-person with a physical card, the Physical Card
1636
+ * that was used.
1637
+ */
1638
+ physical_card_id: string | null;
1639
+ /**
1640
+ * The identifier of the Real-Time Decision sent to approve or decline this
1641
+ * transaction.
1642
+ */
1643
+ real_time_decision_id: string | null;
1644
+ /**
1645
+ * A constant representing the object's type. For this resource it will always be
1646
+ * `card_validation`.
1647
+ */
1648
+ type: 'card_validation';
1649
+ }
1650
+ namespace CardValidation {
1651
+ /**
1652
+ * Fields specific to the `network`.
1653
+ */
1654
+ interface NetworkDetails {
1655
+ /**
1656
+ * The payment network used to process this card authorization.
1657
+ *
1658
+ * - `visa` - Visa
1659
+ */
1660
+ category: 'visa';
1661
+ /**
1662
+ * Fields specific to the `visa` network.
1663
+ */
1664
+ visa: NetworkDetails.Visa | null;
1665
+ }
1666
+ namespace NetworkDetails {
1667
+ /**
1668
+ * Fields specific to the `visa` network.
1669
+ */
1670
+ interface Visa {
1671
+ /**
1672
+ * For electronic commerce transactions, this identifies the level of security used
1673
+ * in obtaining the customer's payment credential. For mail or telephone order
1674
+ * transactions, identifies the type of mail or telephone order.
1675
+ *
1676
+ * - `mail_phone_order` - Single transaction of a mail/phone order: Use to indicate
1677
+ * that the transaction is a mail/phone order purchase, not a recurring
1678
+ * transaction or installment payment. For domestic transactions in the US
1679
+ * region, this value may also indicate one bill payment transaction in the
1680
+ * card-present or card-absent environments.
1681
+ * - `recurring` - Recurring transaction: Payment indicator used to indicate a
1682
+ * recurring transaction that originates from an acquirer in the US region.
1683
+ * - `installment` - Installment payment: Payment indicator used to indicate one
1684
+ * purchase of goods or services that is billed to the account in multiple
1685
+ * charges over a period of time agreed upon by the cardholder and merchant from
1686
+ * transactions that originate from an acquirer in the US region.
1687
+ * - `unknown_mail_phone_order` - Unknown classification: other mail order: Use to
1688
+ * indicate that the type of mail/telephone order is unknown.
1689
+ * - `secure_electronic_commerce` - Secure electronic commerce transaction: Use to
1690
+ * indicate that the electronic commerce transaction has been authenticated using
1691
+ * e.g., 3-D Secure
1692
+ * - `non_authenticated_security_transaction_at_3ds_capable_merchant` -
1693
+ * Non-authenticated security transaction at a 3-D Secure-capable merchant, and
1694
+ * merchant attempted to authenticate the cardholder using 3-D Secure: Use to
1695
+ * identify an electronic commerce transaction where the merchant attempted to
1696
+ * authenticate the cardholder using 3-D Secure, but was unable to complete the
1697
+ * authentication because the issuer or cardholder does not participate in the
1698
+ * 3-D Secure program.
1699
+ * - `non_authenticated_security_transaction` - Non-authenticated security
1700
+ * transaction: Use to identify an electronic commerce transaction that uses data
1701
+ * encryption for security however , cardholder authentication is not performed
1702
+ * using 3-D Secure.
1703
+ * - `non_secure_transaction` - Non-secure transaction: Use to identify an
1704
+ * electronic commerce transaction that has no data protection.
1705
+ */
1706
+ electronic_commerce_indicator: 'mail_phone_order' | 'recurring' | 'installment' | 'unknown_mail_phone_order' | 'secure_electronic_commerce' | 'non_authenticated_security_transaction_at_3ds_capable_merchant' | 'non_authenticated_security_transaction' | 'non_secure_transaction' | null;
1707
+ /**
1708
+ * The method used to enter the cardholder's primary account number and card
1709
+ * expiration date.
1710
+ *
1711
+ * - `unknown` - Unknown
1712
+ * - `manual` - Manual key entry
1713
+ * - `magnetic_stripe_no_cvv` - Magnetic stripe read, without card verification
1714
+ * value
1715
+ * - `optical_code` - Optical code
1716
+ * - `integrated_circuit_card` - Contact chip card
1717
+ * - `contactless` - Contactless read of chip card
1718
+ * - `credential_on_file` - Transaction initiated using a credential that has
1719
+ * previously been stored on file
1720
+ * - `magnetic_stripe` - Magnetic stripe read
1721
+ * - `contactless_magnetic_stripe` - Contactless read of magnetic stripe data
1722
+ * - `integrated_circuit_card_no_cvv` - Contact chip card, without card
1723
+ * verification value
1724
+ */
1725
+ point_of_service_entry_mode: 'unknown' | 'manual' | 'magnetic_stripe_no_cvv' | 'optical_code' | 'integrated_circuit_card' | 'contactless' | 'credential_on_file' | 'magnetic_stripe' | 'contactless_magnetic_stripe' | 'integrated_circuit_card_no_cvv' | null;
1726
+ }
1727
+ }
1728
+ }
1729
+ }
1730
+ /**
1731
+ * The summarized state of this card payment.
1732
+ */
1733
+ interface State {
1734
+ /**
1735
+ * The total authorized amount in the minor unit of the transaction's currency. For
1736
+ * dollars, for example, this is cents.
1737
+ */
1738
+ authorized_amount: number;
1739
+ /**
1740
+ * The total incrementally updated authorized amount in the minor unit of the
1741
+ * transaction's currency. For dollars, for example, this is cents.
1742
+ */
1743
+ incremented_amount: number;
1744
+ /**
1745
+ * The total reversed amount in the minor unit of the transaction's currency. For
1746
+ * dollars, for example, this is cents.
1747
+ */
1748
+ reversed_amount: number;
1749
+ /**
1750
+ * The total settled or refunded amount in the minor unit of the transaction's
1751
+ * currency. For dollars, for example, this is cents.
1752
+ */
1753
+ settled_amount: number;
1754
+ }
1755
+ }
1756
+ export interface CardPaymentListParams extends PageParams {
1757
+ /**
1758
+ * Filter Card Payments to ones belonging to the specified Account.
1759
+ */
1760
+ account_id?: string;
1761
+ /**
1762
+ * Filter Card Payments to ones belonging to the specified Card.
1763
+ */
1764
+ card_id?: string;
1765
+ created_at?: CardPaymentListParams.CreatedAt;
1766
+ }
1767
+ export declare namespace CardPaymentListParams {
1768
+ interface CreatedAt {
1769
+ /**
1770
+ * Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
1771
+ * timestamp.
1772
+ */
1773
+ after?: string;
1774
+ /**
1775
+ * Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
1776
+ * timestamp.
1777
+ */
1778
+ before?: string;
1779
+ /**
1780
+ * Return results on or after this
1781
+ * [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
1782
+ */
1783
+ on_or_after?: string;
1784
+ /**
1785
+ * Return results on or before this
1786
+ * [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
1787
+ */
1788
+ on_or_before?: string;
1789
+ }
1790
+ }
1791
+ export declare namespace CardPayments {
1792
+ export import CardPayment = API.CardPayment;
1793
+ type CardPaymentsPage = _CardPaymentsPage;
1794
+ export import CardPaymentListParams = API.CardPaymentListParams;
1795
+ }
1796
+ export {};
1797
+ //# sourceMappingURL=card-payments.d.ts.map