increase 0.343.0 → 0.344.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.
@@ -133,6 +133,13 @@ export namespace CardPayment {
133
133
  */
134
134
  card_decline: Element.CardDecline | null;
135
135
 
136
+ /**
137
+ * A Card Financial object. This field will be present in the JSON response if and
138
+ * only if `category` is equal to `card_financial`. Card Financials are temporary
139
+ * holds placed on a customers funds with the intent to later clear a transaction.
140
+ */
141
+ card_financial: Element.CardFinancial | null;
142
+
136
143
  /**
137
144
  * A Card Fuel Confirmation object. This field will be present in the JSON response
138
145
  * if and only if `category` is equal to `card_fuel_confirmation`. Card Fuel
@@ -204,6 +211,8 @@ export namespace CardPayment {
204
211
  * - `card_refund` - Card Refund: details will be under the `card_refund` object.
205
212
  * - `card_fuel_confirmation` - Card Fuel Confirmation: details will be under the
206
213
  * `card_fuel_confirmation` object.
214
+ * - `card_financial` - Card Financial: details will be under the `card_financial`
215
+ * object.
207
216
  * - `other` - Unknown card payment element.
208
217
  */
209
218
  category:
@@ -217,6 +226,7 @@ export namespace CardPayment {
217
226
  | 'card_settlement'
218
227
  | 'card_refund'
219
228
  | 'card_fuel_confirmation'
229
+ | 'card_financial'
220
230
  | 'other';
221
231
 
222
232
  /**
@@ -1967,6 +1977,704 @@ export namespace CardPayment {
1967
1977
  }
1968
1978
  }
1969
1979
 
1980
+ /**
1981
+ * A Card Financial object. This field will be present in the JSON response if and
1982
+ * only if `category` is equal to `card_financial`. Card Financials are temporary
1983
+ * holds placed on a customers funds with the intent to later clear a transaction.
1984
+ */
1985
+ export interface CardFinancial {
1986
+ /**
1987
+ * The Card Financial identifier.
1988
+ */
1989
+ id: string;
1990
+
1991
+ /**
1992
+ * Whether this financial was approved by Increase, the card network through
1993
+ * stand-in processing, or the user through a real-time decision.
1994
+ *
1995
+ * - `user` - This object was actioned by the user through a real-time decision.
1996
+ * - `increase` - This object was actioned by Increase without user intervention.
1997
+ * - `network` - This object was actioned by the network, through stand-in
1998
+ * processing.
1999
+ */
2000
+ actioner: 'user' | 'increase' | 'network';
2001
+
2002
+ /**
2003
+ * Additional amounts associated with the card authorization, such as ATM
2004
+ * surcharges fees. These are usually a subset of the `amount` field and are used
2005
+ * to provide more detailed information about the transaction.
2006
+ */
2007
+ additional_amounts: CardFinancial.AdditionalAmounts;
2008
+
2009
+ /**
2010
+ * The pending amount in the minor unit of the transaction's currency. For dollars,
2011
+ * for example, this is cents.
2012
+ */
2013
+ amount: number;
2014
+
2015
+ /**
2016
+ * The ID of the Card Payment this transaction belongs to.
2017
+ */
2018
+ card_payment_id: string;
2019
+
2020
+ /**
2021
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
2022
+ * transaction's currency.
2023
+ *
2024
+ * - `CAD` - Canadian Dollar (CAD)
2025
+ * - `CHF` - Swiss Franc (CHF)
2026
+ * - `EUR` - Euro (EUR)
2027
+ * - `GBP` - British Pound (GBP)
2028
+ * - `JPY` - Japanese Yen (JPY)
2029
+ * - `USD` - US Dollar (USD)
2030
+ */
2031
+ currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
2032
+
2033
+ /**
2034
+ * If the authorization was made via a Digital Wallet Token (such as an Apple Pay
2035
+ * purchase), the identifier of the token that was used.
2036
+ */
2037
+ digital_wallet_token_id: string | null;
2038
+
2039
+ /**
2040
+ * The direction describes the direction the funds will move, either from the
2041
+ * cardholder to the merchant or from the merchant to the cardholder.
2042
+ *
2043
+ * - `settlement` - A regular card authorization where funds are debited from the
2044
+ * cardholder.
2045
+ * - `refund` - A refund card authorization, sometimes referred to as a credit
2046
+ * voucher authorization, where funds are credited to the cardholder.
2047
+ */
2048
+ direction: 'settlement' | 'refund';
2049
+
2050
+ /**
2051
+ * The merchant identifier (commonly abbreviated as MID) of the merchant the card
2052
+ * is transacting with.
2053
+ */
2054
+ merchant_acceptor_id: string;
2055
+
2056
+ /**
2057
+ * The Merchant Category Code (commonly abbreviated as MCC) of the merchant the
2058
+ * card is transacting with.
2059
+ */
2060
+ merchant_category_code: string;
2061
+
2062
+ /**
2063
+ * The city the merchant resides in.
2064
+ */
2065
+ merchant_city: string | null;
2066
+
2067
+ /**
2068
+ * The country the merchant resides in.
2069
+ */
2070
+ merchant_country: string;
2071
+
2072
+ /**
2073
+ * The merchant descriptor of the merchant the card is transacting with.
2074
+ */
2075
+ merchant_descriptor: string;
2076
+
2077
+ /**
2078
+ * The merchant's postal code. For US merchants this is either a 5-digit or 9-digit
2079
+ * ZIP code, where the first 5 and last 4 are separated by a dash.
2080
+ */
2081
+ merchant_postal_code: string | null;
2082
+
2083
+ /**
2084
+ * The state the merchant resides in.
2085
+ */
2086
+ merchant_state: string | null;
2087
+
2088
+ /**
2089
+ * Fields specific to the `network`.
2090
+ */
2091
+ network_details: CardFinancial.NetworkDetails;
2092
+
2093
+ /**
2094
+ * Network-specific identifiers for a specific request or transaction.
2095
+ */
2096
+ network_identifiers: CardFinancial.NetworkIdentifiers;
2097
+
2098
+ /**
2099
+ * The risk score generated by the card network. For Visa this is the Visa Advanced
2100
+ * Authorization risk score, from 0 to 99, where 99 is the riskiest. For Pulse the
2101
+ * score is from 0 to 999, where 999 is the riskiest.
2102
+ */
2103
+ network_risk_score: number | null;
2104
+
2105
+ /**
2106
+ * If the authorization was made in-person with a physical card, the Physical Card
2107
+ * that was used.
2108
+ */
2109
+ physical_card_id: string | null;
2110
+
2111
+ /**
2112
+ * The pending amount in the minor unit of the transaction's presentment currency.
2113
+ */
2114
+ presentment_amount: number;
2115
+
2116
+ /**
2117
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
2118
+ * transaction's presentment currency.
2119
+ */
2120
+ presentment_currency: string;
2121
+
2122
+ /**
2123
+ * The processing category describes the intent behind the financial, such as
2124
+ * whether it was used for bill payments or an automatic fuel dispenser.
2125
+ *
2126
+ * - `account_funding` - Account funding transactions are transactions used to
2127
+ * e.g., fund an account or transfer funds between accounts.
2128
+ * - `automatic_fuel_dispenser` - Automatic fuel dispenser authorizations occur
2129
+ * when a card is used at a gas pump, prior to the actual transaction amount
2130
+ * being known. They are followed by an advice message that updates the amount of
2131
+ * the pending transaction.
2132
+ * - `bill_payment` - A transaction used to pay a bill.
2133
+ * - `original_credit` - Original credit transactions are used to send money to a
2134
+ * cardholder.
2135
+ * - `purchase` - A regular purchase.
2136
+ * - `quasi_cash` - Quasi-cash transactions represent purchases of items which may
2137
+ * be convertible to cash.
2138
+ * - `refund` - A refund card authorization, sometimes referred to as a credit
2139
+ * voucher authorization, where funds are credited to the cardholder.
2140
+ * - `cash_disbursement` - Cash disbursement transactions are used to withdraw cash
2141
+ * from an ATM or a point of sale.
2142
+ * - `unknown` - The processing category is unknown.
2143
+ */
2144
+ processing_category:
2145
+ | 'account_funding'
2146
+ | 'automatic_fuel_dispenser'
2147
+ | 'bill_payment'
2148
+ | 'original_credit'
2149
+ | 'purchase'
2150
+ | 'quasi_cash'
2151
+ | 'refund'
2152
+ | 'cash_disbursement'
2153
+ | 'unknown';
2154
+
2155
+ /**
2156
+ * The identifier of the Real-Time Decision sent to approve or decline this
2157
+ * transaction.
2158
+ */
2159
+ real_time_decision_id: string | null;
2160
+
2161
+ /**
2162
+ * The terminal identifier (commonly abbreviated as TID) of the terminal the card
2163
+ * is transacting with.
2164
+ */
2165
+ terminal_id: string | null;
2166
+
2167
+ /**
2168
+ * The identifier of the Transaction associated with this Transaction.
2169
+ */
2170
+ transaction_id: string;
2171
+
2172
+ /**
2173
+ * A constant representing the object's type. For this resource it will always be
2174
+ * `card_financial`.
2175
+ */
2176
+ type: 'card_financial';
2177
+
2178
+ /**
2179
+ * Fields related to verification of cardholder-provided values.
2180
+ */
2181
+ verification: CardFinancial.Verification;
2182
+ }
2183
+
2184
+ export namespace CardFinancial {
2185
+ /**
2186
+ * Additional amounts associated with the card authorization, such as ATM
2187
+ * surcharges fees. These are usually a subset of the `amount` field and are used
2188
+ * to provide more detailed information about the transaction.
2189
+ */
2190
+ export interface AdditionalAmounts {
2191
+ /**
2192
+ * The part of this transaction amount that was for clinic-related services.
2193
+ */
2194
+ clinic: AdditionalAmounts.Clinic | null;
2195
+
2196
+ /**
2197
+ * The part of this transaction amount that was for dental-related services.
2198
+ */
2199
+ dental: AdditionalAmounts.Dental | null;
2200
+
2201
+ /**
2202
+ * The original pre-authorized amount.
2203
+ */
2204
+ original: AdditionalAmounts.Original | null;
2205
+
2206
+ /**
2207
+ * The part of this transaction amount that was for healthcare prescriptions.
2208
+ */
2209
+ prescription: AdditionalAmounts.Prescription | null;
2210
+
2211
+ /**
2212
+ * The surcharge amount charged for this transaction by the merchant.
2213
+ */
2214
+ surcharge: AdditionalAmounts.Surcharge | null;
2215
+
2216
+ /**
2217
+ * The total amount of a series of incremental authorizations, optionally provided.
2218
+ */
2219
+ total_cumulative: AdditionalAmounts.TotalCumulative | null;
2220
+
2221
+ /**
2222
+ * The total amount of healthcare-related additional amounts.
2223
+ */
2224
+ total_healthcare: AdditionalAmounts.TotalHealthcare | null;
2225
+
2226
+ /**
2227
+ * The part of this transaction amount that was for transit-related services.
2228
+ */
2229
+ transit: AdditionalAmounts.Transit | null;
2230
+
2231
+ /**
2232
+ * An unknown additional amount.
2233
+ */
2234
+ unknown: AdditionalAmounts.Unknown | null;
2235
+
2236
+ /**
2237
+ * The part of this transaction amount that was for vision-related services.
2238
+ */
2239
+ vision: AdditionalAmounts.Vision | null;
2240
+ }
2241
+
2242
+ export namespace AdditionalAmounts {
2243
+ /**
2244
+ * The part of this transaction amount that was for clinic-related services.
2245
+ */
2246
+ export interface Clinic {
2247
+ /**
2248
+ * The amount in minor units of the `currency` field. The amount is positive if it
2249
+ * is added to the amount (such as an ATM surcharge fee) and negative if it is
2250
+ * subtracted from the amount (such as a discount).
2251
+ */
2252
+ amount: number;
2253
+
2254
+ /**
2255
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
2256
+ * amount's currency.
2257
+ */
2258
+ currency: string;
2259
+ }
2260
+
2261
+ /**
2262
+ * The part of this transaction amount that was for dental-related services.
2263
+ */
2264
+ export interface Dental {
2265
+ /**
2266
+ * The amount in minor units of the `currency` field. The amount is positive if it
2267
+ * is added to the amount (such as an ATM surcharge fee) and negative if it is
2268
+ * subtracted from the amount (such as a discount).
2269
+ */
2270
+ amount: number;
2271
+
2272
+ /**
2273
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
2274
+ * amount's currency.
2275
+ */
2276
+ currency: string;
2277
+ }
2278
+
2279
+ /**
2280
+ * The original pre-authorized amount.
2281
+ */
2282
+ export interface Original {
2283
+ /**
2284
+ * The amount in minor units of the `currency` field. The amount is positive if it
2285
+ * is added to the amount (such as an ATM surcharge fee) and negative if it is
2286
+ * subtracted from the amount (such as a discount).
2287
+ */
2288
+ amount: number;
2289
+
2290
+ /**
2291
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
2292
+ * amount's currency.
2293
+ */
2294
+ currency: string;
2295
+ }
2296
+
2297
+ /**
2298
+ * The part of this transaction amount that was for healthcare prescriptions.
2299
+ */
2300
+ export interface Prescription {
2301
+ /**
2302
+ * The amount in minor units of the `currency` field. The amount is positive if it
2303
+ * is added to the amount (such as an ATM surcharge fee) and negative if it is
2304
+ * subtracted from the amount (such as a discount).
2305
+ */
2306
+ amount: number;
2307
+
2308
+ /**
2309
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
2310
+ * amount's currency.
2311
+ */
2312
+ currency: string;
2313
+ }
2314
+
2315
+ /**
2316
+ * The surcharge amount charged for this transaction by the merchant.
2317
+ */
2318
+ export interface Surcharge {
2319
+ /**
2320
+ * The amount in minor units of the `currency` field. The amount is positive if it
2321
+ * is added to the amount (such as an ATM surcharge fee) and negative if it is
2322
+ * subtracted from the amount (such as a discount).
2323
+ */
2324
+ amount: number;
2325
+
2326
+ /**
2327
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
2328
+ * amount's currency.
2329
+ */
2330
+ currency: string;
2331
+ }
2332
+
2333
+ /**
2334
+ * The total amount of a series of incremental authorizations, optionally provided.
2335
+ */
2336
+ export interface TotalCumulative {
2337
+ /**
2338
+ * The amount in minor units of the `currency` field. The amount is positive if it
2339
+ * is added to the amount (such as an ATM surcharge fee) and negative if it is
2340
+ * subtracted from the amount (such as a discount).
2341
+ */
2342
+ amount: number;
2343
+
2344
+ /**
2345
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
2346
+ * amount's currency.
2347
+ */
2348
+ currency: string;
2349
+ }
2350
+
2351
+ /**
2352
+ * The total amount of healthcare-related additional amounts.
2353
+ */
2354
+ export interface TotalHealthcare {
2355
+ /**
2356
+ * The amount in minor units of the `currency` field. The amount is positive if it
2357
+ * is added to the amount (such as an ATM surcharge fee) and negative if it is
2358
+ * subtracted from the amount (such as a discount).
2359
+ */
2360
+ amount: number;
2361
+
2362
+ /**
2363
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
2364
+ * amount's currency.
2365
+ */
2366
+ currency: string;
2367
+ }
2368
+
2369
+ /**
2370
+ * The part of this transaction amount that was for transit-related services.
2371
+ */
2372
+ export interface Transit {
2373
+ /**
2374
+ * The amount in minor units of the `currency` field. The amount is positive if it
2375
+ * is added to the amount (such as an ATM surcharge fee) and negative if it is
2376
+ * subtracted from the amount (such as a discount).
2377
+ */
2378
+ amount: number;
2379
+
2380
+ /**
2381
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
2382
+ * amount's currency.
2383
+ */
2384
+ currency: string;
2385
+ }
2386
+
2387
+ /**
2388
+ * An unknown additional amount.
2389
+ */
2390
+ export interface Unknown {
2391
+ /**
2392
+ * The amount in minor units of the `currency` field. The amount is positive if it
2393
+ * is added to the amount (such as an ATM surcharge fee) and negative if it is
2394
+ * subtracted from the amount (such as a discount).
2395
+ */
2396
+ amount: number;
2397
+
2398
+ /**
2399
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
2400
+ * amount's currency.
2401
+ */
2402
+ currency: string;
2403
+ }
2404
+
2405
+ /**
2406
+ * The part of this transaction amount that was for vision-related services.
2407
+ */
2408
+ export interface Vision {
2409
+ /**
2410
+ * The amount in minor units of the `currency` field. The amount is positive if it
2411
+ * is added to the amount (such as an ATM surcharge fee) and negative if it is
2412
+ * subtracted from the amount (such as a discount).
2413
+ */
2414
+ amount: number;
2415
+
2416
+ /**
2417
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
2418
+ * amount's currency.
2419
+ */
2420
+ currency: string;
2421
+ }
2422
+ }
2423
+
2424
+ /**
2425
+ * Fields specific to the `network`.
2426
+ */
2427
+ export interface NetworkDetails {
2428
+ /**
2429
+ * The payment network used to process this card authorization.
2430
+ *
2431
+ * - `visa` - Visa
2432
+ * - `pulse` - Pulse
2433
+ */
2434
+ category: 'visa' | 'pulse';
2435
+
2436
+ /**
2437
+ * Fields specific to the `pulse` network.
2438
+ */
2439
+ pulse: unknown | null;
2440
+
2441
+ /**
2442
+ * Fields specific to the `visa` network.
2443
+ */
2444
+ visa: NetworkDetails.Visa | null;
2445
+ }
2446
+
2447
+ export namespace NetworkDetails {
2448
+ /**
2449
+ * Fields specific to the `visa` network.
2450
+ */
2451
+ export interface Visa {
2452
+ /**
2453
+ * For electronic commerce transactions, this identifies the level of security used
2454
+ * in obtaining the customer's payment credential. For mail or telephone order
2455
+ * transactions, identifies the type of mail or telephone order.
2456
+ *
2457
+ * - `mail_phone_order` - Single transaction of a mail/phone order: Use to indicate
2458
+ * that the transaction is a mail/phone order purchase, not a recurring
2459
+ * transaction or installment payment. For domestic transactions in the US
2460
+ * region, this value may also indicate one bill payment transaction in the
2461
+ * card-present or card-absent environments.
2462
+ * - `recurring` - Recurring transaction: Payment indicator used to indicate a
2463
+ * recurring transaction that originates from an acquirer in the US region.
2464
+ * - `installment` - Installment payment: Payment indicator used to indicate one
2465
+ * purchase of goods or services that is billed to the account in multiple
2466
+ * charges over a period of time agreed upon by the cardholder and merchant from
2467
+ * transactions that originate from an acquirer in the US region.
2468
+ * - `unknown_mail_phone_order` - Unknown classification: other mail order: Use to
2469
+ * indicate that the type of mail/telephone order is unknown.
2470
+ * - `secure_electronic_commerce` - Secure electronic commerce transaction: Use to
2471
+ * indicate that the electronic commerce transaction has been authenticated using
2472
+ * e.g., 3-D Secure
2473
+ * - `non_authenticated_security_transaction_at_3ds_capable_merchant` -
2474
+ * Non-authenticated security transaction at a 3-D Secure-capable merchant, and
2475
+ * merchant attempted to authenticate the cardholder using 3-D Secure: Use to
2476
+ * identify an electronic commerce transaction where the merchant attempted to
2477
+ * authenticate the cardholder using 3-D Secure, but was unable to complete the
2478
+ * authentication because the issuer or cardholder does not participate in the
2479
+ * 3-D Secure program.
2480
+ * - `non_authenticated_security_transaction` - Non-authenticated security
2481
+ * transaction: Use to identify an electronic commerce transaction that uses data
2482
+ * encryption for security however, cardholder authentication is not performed
2483
+ * using 3-D Secure.
2484
+ * - `non_secure_transaction` - Non-secure transaction: Use to identify an
2485
+ * electronic commerce transaction that has no data protection.
2486
+ */
2487
+ electronic_commerce_indicator:
2488
+ | 'mail_phone_order'
2489
+ | 'recurring'
2490
+ | 'installment'
2491
+ | 'unknown_mail_phone_order'
2492
+ | 'secure_electronic_commerce'
2493
+ | 'non_authenticated_security_transaction_at_3ds_capable_merchant'
2494
+ | 'non_authenticated_security_transaction'
2495
+ | 'non_secure_transaction'
2496
+ | null;
2497
+
2498
+ /**
2499
+ * The method used to enter the cardholder's primary account number and card
2500
+ * expiration date.
2501
+ *
2502
+ * - `unknown` - Unknown
2503
+ * - `manual` - Manual key entry
2504
+ * - `magnetic_stripe_no_cvv` - Magnetic stripe read, without card verification
2505
+ * value
2506
+ * - `optical_code` - Optical code
2507
+ * - `integrated_circuit_card` - Contact chip card
2508
+ * - `contactless` - Contactless read of chip card
2509
+ * - `credential_on_file` - Transaction initiated using a credential that has
2510
+ * previously been stored on file
2511
+ * - `magnetic_stripe` - Magnetic stripe read
2512
+ * - `contactless_magnetic_stripe` - Contactless read of magnetic stripe data
2513
+ * - `integrated_circuit_card_no_cvv` - Contact chip card, without card
2514
+ * verification value
2515
+ */
2516
+ point_of_service_entry_mode:
2517
+ | 'unknown'
2518
+ | 'manual'
2519
+ | 'magnetic_stripe_no_cvv'
2520
+ | 'optical_code'
2521
+ | 'integrated_circuit_card'
2522
+ | 'contactless'
2523
+ | 'credential_on_file'
2524
+ | 'magnetic_stripe'
2525
+ | 'contactless_magnetic_stripe'
2526
+ | 'integrated_circuit_card_no_cvv'
2527
+ | null;
2528
+
2529
+ /**
2530
+ * Only present when `actioner: network`. Describes why a card authorization was
2531
+ * approved or declined by Visa through stand-in processing.
2532
+ *
2533
+ * - `issuer_error` - Increase failed to process the authorization in a timely
2534
+ * manner.
2535
+ * - `invalid_physical_card` - The physical card read had an invalid CVV, dCVV, or
2536
+ * authorization request cryptogram.
2537
+ * - `invalid_cardholder_authentication_verification_value` - The 3DS cardholder
2538
+ * authentication verification value was invalid.
2539
+ * - `internal_visa_error` - An internal Visa error occurred. Visa uses this reason
2540
+ * code for certain expected occurrences as well, such as Application Transaction
2541
+ * Counter (ATC) replays.
2542
+ * - `merchant_transaction_advisory_service_authentication_required` - The merchant
2543
+ * has enabled Visa's Transaction Advisory Service and requires further
2544
+ * authentication to perform the transaction. In practice this is often utilized
2545
+ * at fuel pumps to tell the cardholder to see the cashier.
2546
+ * - `payment_fraud_disruption_acquirer_block` - The transaction was blocked by
2547
+ * Visa's Payment Fraud Disruption service due to fraudulent Acquirer behavior,
2548
+ * such as card testing.
2549
+ * - `other` - An unspecific reason for stand-in processing.
2550
+ */
2551
+ stand_in_processing_reason:
2552
+ | 'issuer_error'
2553
+ | 'invalid_physical_card'
2554
+ | 'invalid_cardholder_authentication_verification_value'
2555
+ | 'internal_visa_error'
2556
+ | 'merchant_transaction_advisory_service_authentication_required'
2557
+ | 'payment_fraud_disruption_acquirer_block'
2558
+ | 'other'
2559
+ | null;
2560
+ }
2561
+ }
2562
+
2563
+ /**
2564
+ * Network-specific identifiers for a specific request or transaction.
2565
+ */
2566
+ export interface NetworkIdentifiers {
2567
+ /**
2568
+ * The randomly generated 6-character Authorization Identification Response code
2569
+ * sent back to the acquirer in an approved response.
2570
+ */
2571
+ authorization_identification_response: string | null;
2572
+
2573
+ /**
2574
+ * A life-cycle identifier used across e.g., an authorization and a reversal.
2575
+ * Expected to be unique per acquirer within a window of time. For some card
2576
+ * networks the retrieval reference number includes the trace counter.
2577
+ */
2578
+ retrieval_reference_number: string | null;
2579
+
2580
+ /**
2581
+ * A counter used to verify an individual authorization. Expected to be unique per
2582
+ * acquirer within a window of time.
2583
+ */
2584
+ trace_number: string | null;
2585
+
2586
+ /**
2587
+ * A globally unique transaction identifier provided by the card network, used
2588
+ * across multiple life-cycle requests.
2589
+ */
2590
+ transaction_id: string | null;
2591
+ }
2592
+
2593
+ /**
2594
+ * Fields related to verification of cardholder-provided values.
2595
+ */
2596
+ export interface Verification {
2597
+ /**
2598
+ * Fields related to verification of the Card Verification Code, a 3-digit code on
2599
+ * the back of the card.
2600
+ */
2601
+ card_verification_code: Verification.CardVerificationCode;
2602
+
2603
+ /**
2604
+ * Cardholder address provided in the authorization request and the address on file
2605
+ * we verified it against.
2606
+ */
2607
+ cardholder_address: Verification.CardholderAddress;
2608
+ }
2609
+
2610
+ export namespace Verification {
2611
+ /**
2612
+ * Fields related to verification of the Card Verification Code, a 3-digit code on
2613
+ * the back of the card.
2614
+ */
2615
+ export interface CardVerificationCode {
2616
+ /**
2617
+ * The result of verifying the Card Verification Code.
2618
+ *
2619
+ * - `not_checked` - No card verification code was provided in the authorization
2620
+ * request.
2621
+ * - `match` - The card verification code matched the one on file.
2622
+ * - `no_match` - The card verification code did not match the one on file.
2623
+ */
2624
+ result: 'not_checked' | 'match' | 'no_match';
2625
+ }
2626
+
2627
+ /**
2628
+ * Cardholder address provided in the authorization request and the address on file
2629
+ * we verified it against.
2630
+ */
2631
+ export interface CardholderAddress {
2632
+ /**
2633
+ * Line 1 of the address on file for the cardholder.
2634
+ */
2635
+ actual_line1: string | null;
2636
+
2637
+ /**
2638
+ * The postal code of the address on file for the cardholder.
2639
+ */
2640
+ actual_postal_code: string | null;
2641
+
2642
+ /**
2643
+ * The cardholder address line 1 provided for verification in the authorization
2644
+ * request.
2645
+ */
2646
+ provided_line1: string | null;
2647
+
2648
+ /**
2649
+ * The postal code provided for verification in the authorization request.
2650
+ */
2651
+ provided_postal_code: string | null;
2652
+
2653
+ /**
2654
+ * The address verification result returned to the card network.
2655
+ *
2656
+ * - `not_checked` - No address information was provided in the authorization
2657
+ * request.
2658
+ * - `postal_code_match_address_no_match` - Postal code matches, but the street
2659
+ * address does not match or was not provided.
2660
+ * - `postal_code_no_match_address_match` - Postal code does not match, but the
2661
+ * street address matches or was not provided.
2662
+ * - `match` - Postal code and street address match.
2663
+ * - `no_match` - Postal code and street address do not match.
2664
+ * - `postal_code_match_address_not_checked` - Postal code matches, but the street
2665
+ * address was not verified. (deprecated)
2666
+ */
2667
+ result:
2668
+ | 'not_checked'
2669
+ | 'postal_code_match_address_no_match'
2670
+ | 'postal_code_no_match_address_match'
2671
+ | 'match'
2672
+ | 'no_match'
2673
+ | 'postal_code_match_address_not_checked';
2674
+ }
2675
+ }
2676
+ }
2677
+
1970
2678
  /**
1971
2679
  * A Card Fuel Confirmation object. This field will be present in the JSON response
1972
2680
  * if and only if `category` is equal to `card_fuel_confirmation`. Card Fuel