increase 0.378.0 → 0.379.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.
- package/CHANGELOG.md +27 -0
- package/package.json +1 -1
- package/resources/card-payments.d.mts +547 -4
- package/resources/card-payments.d.mts.map +1 -1
- package/resources/card-payments.d.ts +547 -4
- package/resources/card-payments.d.ts.map +1 -1
- package/resources/declined-transactions.d.mts +3 -1
- package/resources/declined-transactions.d.mts.map +1 -1
- package/resources/declined-transactions.d.ts +3 -1
- package/resources/declined-transactions.d.ts.map +1 -1
- package/resources/entities.d.mts +20 -3
- package/resources/entities.d.mts.map +1 -1
- package/resources/entities.d.ts +20 -3
- package/resources/entities.d.ts.map +1 -1
- package/resources/event-subscriptions.d.mts +6 -2
- package/resources/event-subscriptions.d.mts.map +1 -1
- package/resources/event-subscriptions.d.ts +6 -2
- package/resources/event-subscriptions.d.ts.map +1 -1
- package/resources/events.d.mts +4 -2
- package/resources/events.d.mts.map +1 -1
- package/resources/events.d.ts +4 -2
- package/resources/events.d.ts.map +1 -1
- package/resources/pending-transactions.d.mts +7 -4
- package/resources/pending-transactions.d.mts.map +1 -1
- package/resources/pending-transactions.d.ts +7 -4
- package/resources/pending-transactions.d.ts.map +1 -1
- package/resources/pending-transactions.js +4 -3
- package/resources/pending-transactions.js.map +1 -1
- package/resources/pending-transactions.mjs +4 -3
- package/resources/pending-transactions.mjs.map +1 -1
- package/resources/real-time-decisions.d.mts +786 -185
- package/resources/real-time-decisions.d.mts.map +1 -1
- package/resources/real-time-decisions.d.ts +786 -185
- package/resources/real-time-decisions.d.ts.map +1 -1
- package/resources/simulations/card-authorizations.d.mts +3 -1
- package/resources/simulations/card-authorizations.d.mts.map +1 -1
- package/resources/simulations/card-authorizations.d.ts +3 -1
- package/resources/simulations/card-authorizations.d.ts.map +1 -1
- package/resources/simulations/card-balance-inquiries.d.mts +160 -0
- package/resources/simulations/card-balance-inquiries.d.mts.map +1 -0
- package/resources/simulations/card-balance-inquiries.d.ts +160 -0
- package/resources/simulations/card-balance-inquiries.d.ts.map +1 -0
- package/resources/simulations/card-balance-inquiries.js +21 -0
- package/resources/simulations/card-balance-inquiries.js.map +1 -0
- package/resources/simulations/card-balance-inquiries.mjs +17 -0
- package/resources/simulations/card-balance-inquiries.mjs.map +1 -0
- package/resources/simulations/index.d.mts +1 -0
- package/resources/simulations/index.d.mts.map +1 -1
- package/resources/simulations/index.d.ts +1 -0
- package/resources/simulations/index.d.ts.map +1 -1
- package/resources/simulations/index.js +3 -1
- package/resources/simulations/index.js.map +1 -1
- package/resources/simulations/index.mjs +1 -0
- package/resources/simulations/index.mjs.map +1 -1
- package/resources/simulations/simulations.d.mts +4 -0
- package/resources/simulations/simulations.d.mts.map +1 -1
- package/resources/simulations/simulations.d.ts +4 -0
- package/resources/simulations/simulations.d.ts.map +1 -1
- package/resources/simulations/simulations.js +4 -0
- package/resources/simulations/simulations.js.map +1 -1
- package/resources/simulations/simulations.mjs +4 -0
- package/resources/simulations/simulations.mjs.map +1 -1
- package/resources/transactions.d.mts +3 -1
- package/resources/transactions.d.mts.map +1 -1
- package/resources/transactions.d.ts +3 -1
- package/resources/transactions.d.ts.map +1 -1
- package/src/resources/card-payments.ts +652 -0
- package/src/resources/declined-transactions.ts +3 -0
- package/src/resources/entities.ts +23 -3
- package/src/resources/event-subscriptions.ts +6 -0
- package/src/resources/events.ts +4 -0
- package/src/resources/pending-transactions.ts +7 -3
- package/src/resources/real-time-decisions.ts +893 -177
- package/src/resources/simulations/card-authorizations.ts +4 -1
- package/src/resources/simulations/card-balance-inquiries.ts +212 -0
- package/src/resources/simulations/index.ts +1 -0
- package/src/resources/simulations/simulations.ts +10 -0
- package/src/resources/transactions.ts +3 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -120,6 +120,15 @@ export namespace CardPayment {
|
|
|
120
120
|
*/
|
|
121
121
|
card_authorization_expiration: Element.CardAuthorizationExpiration | null;
|
|
122
122
|
|
|
123
|
+
/**
|
|
124
|
+
* A Card Balance Inquiry object. This field will be present in the JSON response
|
|
125
|
+
* if and only if `category` is equal to `card_balance_inquiry`. Card Balance
|
|
126
|
+
* Inquiries are transactions that allow merchants to check the available balance
|
|
127
|
+
* on a card without placing a hold on funds, commonly used when a customer
|
|
128
|
+
* requests their balance at an ATM.
|
|
129
|
+
*/
|
|
130
|
+
card_balance_inquiry: Element.CardBalanceInquiry | null;
|
|
131
|
+
|
|
123
132
|
/**
|
|
124
133
|
* A Card Decline object. This field will be present in the JSON response if and
|
|
125
134
|
* only if `category` is equal to `card_decline`.
|
|
@@ -189,6 +198,8 @@ export namespace CardPayment {
|
|
|
189
198
|
* `card_authorization` object.
|
|
190
199
|
* - `card_authentication` - Card Authentication: details will be under the
|
|
191
200
|
* `card_authentication` object.
|
|
201
|
+
* - `card_balance_inquiry` - Card Balance Inquiry: details will be under the
|
|
202
|
+
* `card_balance_inquiry` object.
|
|
192
203
|
* - `card_validation` - Inbound Card Validation: details will be under the
|
|
193
204
|
* `card_validation` object.
|
|
194
205
|
* - `card_decline` - Card Decline: details will be under the `card_decline`
|
|
@@ -211,6 +222,7 @@ export namespace CardPayment {
|
|
|
211
222
|
category:
|
|
212
223
|
| 'card_authorization'
|
|
213
224
|
| 'card_authentication'
|
|
225
|
+
| 'card_balance_inquiry'
|
|
214
226
|
| 'card_validation'
|
|
215
227
|
| 'card_decline'
|
|
216
228
|
| 'card_reversal'
|
|
@@ -607,6 +619,8 @@ export namespace CardPayment {
|
|
|
607
619
|
* voucher authorization, where funds are credited to the cardholder.
|
|
608
620
|
* - `cash_disbursement` - Cash disbursement transactions are used to withdraw cash
|
|
609
621
|
* from an ATM or a point of sale.
|
|
622
|
+
* - `balance_inquiry` - A balance inquiry transaction is used to check the balance
|
|
623
|
+
* of an account associated with a card.
|
|
610
624
|
* - `unknown` - The processing category is unknown.
|
|
611
625
|
*/
|
|
612
626
|
processing_category:
|
|
@@ -618,6 +632,7 @@ export namespace CardPayment {
|
|
|
618
632
|
| 'quasi_cash'
|
|
619
633
|
| 'refund'
|
|
620
634
|
| 'cash_disbursement'
|
|
635
|
+
| 'balance_inquiry'
|
|
621
636
|
| 'unknown';
|
|
622
637
|
|
|
623
638
|
/**
|
|
@@ -1193,6 +1208,637 @@ export namespace CardPayment {
|
|
|
1193
1208
|
[k: string]: unknown;
|
|
1194
1209
|
}
|
|
1195
1210
|
|
|
1211
|
+
/**
|
|
1212
|
+
* A Card Balance Inquiry object. This field will be present in the JSON response
|
|
1213
|
+
* if and only if `category` is equal to `card_balance_inquiry`. Card Balance
|
|
1214
|
+
* Inquiries are transactions that allow merchants to check the available balance
|
|
1215
|
+
* on a card without placing a hold on funds, commonly used when a customer
|
|
1216
|
+
* requests their balance at an ATM.
|
|
1217
|
+
*/
|
|
1218
|
+
export interface CardBalanceInquiry {
|
|
1219
|
+
/**
|
|
1220
|
+
* The Card Balance Inquiry identifier.
|
|
1221
|
+
*/
|
|
1222
|
+
id: string;
|
|
1223
|
+
|
|
1224
|
+
/**
|
|
1225
|
+
* Additional amounts associated with the card authorization, such as ATM
|
|
1226
|
+
* surcharges fees. These are usually a subset of the `amount` field and are used
|
|
1227
|
+
* to provide more detailed information about the transaction.
|
|
1228
|
+
*/
|
|
1229
|
+
additional_amounts: CardBalanceInquiry.AdditionalAmounts;
|
|
1230
|
+
|
|
1231
|
+
/**
|
|
1232
|
+
* The balance amount in the minor unit of the account's currency. For dollars, for
|
|
1233
|
+
* example, this is cents.
|
|
1234
|
+
*/
|
|
1235
|
+
balance: number;
|
|
1236
|
+
|
|
1237
|
+
/**
|
|
1238
|
+
* The ID of the Card Payment this transaction belongs to.
|
|
1239
|
+
*/
|
|
1240
|
+
card_payment_id: string;
|
|
1241
|
+
|
|
1242
|
+
/**
|
|
1243
|
+
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the account's
|
|
1244
|
+
* currency.
|
|
1245
|
+
*
|
|
1246
|
+
* - `USD` - US Dollar (USD)
|
|
1247
|
+
*/
|
|
1248
|
+
currency: 'USD';
|
|
1249
|
+
|
|
1250
|
+
/**
|
|
1251
|
+
* If the authorization was made via a Digital Wallet Token (such as an Apple Pay
|
|
1252
|
+
* purchase), the identifier of the token that was used.
|
|
1253
|
+
*/
|
|
1254
|
+
digital_wallet_token_id: string | null;
|
|
1255
|
+
|
|
1256
|
+
/**
|
|
1257
|
+
* The merchant identifier (commonly abbreviated as MID) of the merchant the card
|
|
1258
|
+
* is transacting with.
|
|
1259
|
+
*/
|
|
1260
|
+
merchant_acceptor_id: string;
|
|
1261
|
+
|
|
1262
|
+
/**
|
|
1263
|
+
* The Merchant Category Code (commonly abbreviated as MCC) of the merchant the
|
|
1264
|
+
* card is transacting with.
|
|
1265
|
+
*/
|
|
1266
|
+
merchant_category_code: string;
|
|
1267
|
+
|
|
1268
|
+
/**
|
|
1269
|
+
* The city the merchant resides in.
|
|
1270
|
+
*/
|
|
1271
|
+
merchant_city: string | null;
|
|
1272
|
+
|
|
1273
|
+
/**
|
|
1274
|
+
* The country the merchant resides in.
|
|
1275
|
+
*/
|
|
1276
|
+
merchant_country: string;
|
|
1277
|
+
|
|
1278
|
+
/**
|
|
1279
|
+
* The merchant descriptor of the merchant the card is transacting with.
|
|
1280
|
+
*/
|
|
1281
|
+
merchant_descriptor: string;
|
|
1282
|
+
|
|
1283
|
+
/**
|
|
1284
|
+
* The merchant's postal code. For US merchants this is either a 5-digit or 9-digit
|
|
1285
|
+
* ZIP code, where the first 5 and last 4 are separated by a dash.
|
|
1286
|
+
*/
|
|
1287
|
+
merchant_postal_code: string | null;
|
|
1288
|
+
|
|
1289
|
+
/**
|
|
1290
|
+
* The state the merchant resides in.
|
|
1291
|
+
*/
|
|
1292
|
+
merchant_state: string | null;
|
|
1293
|
+
|
|
1294
|
+
/**
|
|
1295
|
+
* Fields specific to the `network`.
|
|
1296
|
+
*/
|
|
1297
|
+
network_details: CardBalanceInquiry.NetworkDetails;
|
|
1298
|
+
|
|
1299
|
+
/**
|
|
1300
|
+
* Network-specific identifiers for a specific request or transaction.
|
|
1301
|
+
*/
|
|
1302
|
+
network_identifiers: CardBalanceInquiry.NetworkIdentifiers;
|
|
1303
|
+
|
|
1304
|
+
/**
|
|
1305
|
+
* The risk score generated by the card network. For Visa this is the Visa Advanced
|
|
1306
|
+
* Authorization risk score, from 0 to 99, where 99 is the riskiest. For Pulse the
|
|
1307
|
+
* score is from 0 to 999, where 999 is the riskiest.
|
|
1308
|
+
*/
|
|
1309
|
+
network_risk_score: number | null;
|
|
1310
|
+
|
|
1311
|
+
/**
|
|
1312
|
+
* If the authorization was made in-person with a physical card, the Physical Card
|
|
1313
|
+
* that was used.
|
|
1314
|
+
*/
|
|
1315
|
+
physical_card_id: string | null;
|
|
1316
|
+
|
|
1317
|
+
/**
|
|
1318
|
+
* The identifier of the Real-Time Decision sent to approve or decline this
|
|
1319
|
+
* transaction.
|
|
1320
|
+
*/
|
|
1321
|
+
real_time_decision_id: string | null;
|
|
1322
|
+
|
|
1323
|
+
/**
|
|
1324
|
+
* The terminal identifier (commonly abbreviated as TID) of the terminal the card
|
|
1325
|
+
* is transacting with.
|
|
1326
|
+
*/
|
|
1327
|
+
terminal_id: string | null;
|
|
1328
|
+
|
|
1329
|
+
/**
|
|
1330
|
+
* A constant representing the object's type. For this resource it will always be
|
|
1331
|
+
* `card_balance_inquiry`.
|
|
1332
|
+
*/
|
|
1333
|
+
type: 'card_balance_inquiry';
|
|
1334
|
+
|
|
1335
|
+
/**
|
|
1336
|
+
* Fields related to verification of cardholder-provided values.
|
|
1337
|
+
*/
|
|
1338
|
+
verification: CardBalanceInquiry.Verification;
|
|
1339
|
+
|
|
1340
|
+
[k: string]: unknown;
|
|
1341
|
+
}
|
|
1342
|
+
|
|
1343
|
+
export namespace CardBalanceInquiry {
|
|
1344
|
+
/**
|
|
1345
|
+
* Additional amounts associated with the card authorization, such as ATM
|
|
1346
|
+
* surcharges fees. These are usually a subset of the `amount` field and are used
|
|
1347
|
+
* to provide more detailed information about the transaction.
|
|
1348
|
+
*/
|
|
1349
|
+
export interface AdditionalAmounts {
|
|
1350
|
+
/**
|
|
1351
|
+
* The part of this transaction amount that was for clinic-related services.
|
|
1352
|
+
*/
|
|
1353
|
+
clinic: AdditionalAmounts.Clinic | null;
|
|
1354
|
+
|
|
1355
|
+
/**
|
|
1356
|
+
* The part of this transaction amount that was for dental-related services.
|
|
1357
|
+
*/
|
|
1358
|
+
dental: AdditionalAmounts.Dental | null;
|
|
1359
|
+
|
|
1360
|
+
/**
|
|
1361
|
+
* The original pre-authorized amount.
|
|
1362
|
+
*/
|
|
1363
|
+
original: AdditionalAmounts.Original | null;
|
|
1364
|
+
|
|
1365
|
+
/**
|
|
1366
|
+
* The part of this transaction amount that was for healthcare prescriptions.
|
|
1367
|
+
*/
|
|
1368
|
+
prescription: AdditionalAmounts.Prescription | null;
|
|
1369
|
+
|
|
1370
|
+
/**
|
|
1371
|
+
* The surcharge amount charged for this transaction by the merchant.
|
|
1372
|
+
*/
|
|
1373
|
+
surcharge: AdditionalAmounts.Surcharge | null;
|
|
1374
|
+
|
|
1375
|
+
/**
|
|
1376
|
+
* The total amount of a series of incremental authorizations, optionally provided.
|
|
1377
|
+
*/
|
|
1378
|
+
total_cumulative: AdditionalAmounts.TotalCumulative | null;
|
|
1379
|
+
|
|
1380
|
+
/**
|
|
1381
|
+
* The total amount of healthcare-related additional amounts.
|
|
1382
|
+
*/
|
|
1383
|
+
total_healthcare: AdditionalAmounts.TotalHealthcare | null;
|
|
1384
|
+
|
|
1385
|
+
/**
|
|
1386
|
+
* The part of this transaction amount that was for transit-related services.
|
|
1387
|
+
*/
|
|
1388
|
+
transit: AdditionalAmounts.Transit | null;
|
|
1389
|
+
|
|
1390
|
+
/**
|
|
1391
|
+
* An unknown additional amount.
|
|
1392
|
+
*/
|
|
1393
|
+
unknown: AdditionalAmounts.Unknown | null;
|
|
1394
|
+
|
|
1395
|
+
/**
|
|
1396
|
+
* The part of this transaction amount that was for vision-related services.
|
|
1397
|
+
*/
|
|
1398
|
+
vision: AdditionalAmounts.Vision | null;
|
|
1399
|
+
}
|
|
1400
|
+
|
|
1401
|
+
export namespace AdditionalAmounts {
|
|
1402
|
+
/**
|
|
1403
|
+
* The part of this transaction amount that was for clinic-related services.
|
|
1404
|
+
*/
|
|
1405
|
+
export interface Clinic {
|
|
1406
|
+
/**
|
|
1407
|
+
* The amount in minor units of the `currency` field. The amount is positive if it
|
|
1408
|
+
* is added to the amount (such as an ATM surcharge fee) and negative if it is
|
|
1409
|
+
* subtracted from the amount (such as a discount).
|
|
1410
|
+
*/
|
|
1411
|
+
amount: number;
|
|
1412
|
+
|
|
1413
|
+
/**
|
|
1414
|
+
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
|
|
1415
|
+
* amount's currency.
|
|
1416
|
+
*/
|
|
1417
|
+
currency: string;
|
|
1418
|
+
}
|
|
1419
|
+
|
|
1420
|
+
/**
|
|
1421
|
+
* The part of this transaction amount that was for dental-related services.
|
|
1422
|
+
*/
|
|
1423
|
+
export interface Dental {
|
|
1424
|
+
/**
|
|
1425
|
+
* The amount in minor units of the `currency` field. The amount is positive if it
|
|
1426
|
+
* is added to the amount (such as an ATM surcharge fee) and negative if it is
|
|
1427
|
+
* subtracted from the amount (such as a discount).
|
|
1428
|
+
*/
|
|
1429
|
+
amount: number;
|
|
1430
|
+
|
|
1431
|
+
/**
|
|
1432
|
+
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
|
|
1433
|
+
* amount's currency.
|
|
1434
|
+
*/
|
|
1435
|
+
currency: string;
|
|
1436
|
+
}
|
|
1437
|
+
|
|
1438
|
+
/**
|
|
1439
|
+
* The original pre-authorized amount.
|
|
1440
|
+
*/
|
|
1441
|
+
export interface Original {
|
|
1442
|
+
/**
|
|
1443
|
+
* The amount in minor units of the `currency` field. The amount is positive if it
|
|
1444
|
+
* is added to the amount (such as an ATM surcharge fee) and negative if it is
|
|
1445
|
+
* subtracted from the amount (such as a discount).
|
|
1446
|
+
*/
|
|
1447
|
+
amount: number;
|
|
1448
|
+
|
|
1449
|
+
/**
|
|
1450
|
+
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
|
|
1451
|
+
* amount's currency.
|
|
1452
|
+
*/
|
|
1453
|
+
currency: string;
|
|
1454
|
+
}
|
|
1455
|
+
|
|
1456
|
+
/**
|
|
1457
|
+
* The part of this transaction amount that was for healthcare prescriptions.
|
|
1458
|
+
*/
|
|
1459
|
+
export interface Prescription {
|
|
1460
|
+
/**
|
|
1461
|
+
* The amount in minor units of the `currency` field. The amount is positive if it
|
|
1462
|
+
* is added to the amount (such as an ATM surcharge fee) and negative if it is
|
|
1463
|
+
* subtracted from the amount (such as a discount).
|
|
1464
|
+
*/
|
|
1465
|
+
amount: number;
|
|
1466
|
+
|
|
1467
|
+
/**
|
|
1468
|
+
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
|
|
1469
|
+
* amount's currency.
|
|
1470
|
+
*/
|
|
1471
|
+
currency: string;
|
|
1472
|
+
}
|
|
1473
|
+
|
|
1474
|
+
/**
|
|
1475
|
+
* The surcharge amount charged for this transaction by the merchant.
|
|
1476
|
+
*/
|
|
1477
|
+
export interface Surcharge {
|
|
1478
|
+
/**
|
|
1479
|
+
* The amount in minor units of the `currency` field. The amount is positive if it
|
|
1480
|
+
* is added to the amount (such as an ATM surcharge fee) and negative if it is
|
|
1481
|
+
* subtracted from the amount (such as a discount).
|
|
1482
|
+
*/
|
|
1483
|
+
amount: number;
|
|
1484
|
+
|
|
1485
|
+
/**
|
|
1486
|
+
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
|
|
1487
|
+
* amount's currency.
|
|
1488
|
+
*/
|
|
1489
|
+
currency: string;
|
|
1490
|
+
}
|
|
1491
|
+
|
|
1492
|
+
/**
|
|
1493
|
+
* The total amount of a series of incremental authorizations, optionally provided.
|
|
1494
|
+
*/
|
|
1495
|
+
export interface TotalCumulative {
|
|
1496
|
+
/**
|
|
1497
|
+
* The amount in minor units of the `currency` field. The amount is positive if it
|
|
1498
|
+
* is added to the amount (such as an ATM surcharge fee) and negative if it is
|
|
1499
|
+
* subtracted from the amount (such as a discount).
|
|
1500
|
+
*/
|
|
1501
|
+
amount: number;
|
|
1502
|
+
|
|
1503
|
+
/**
|
|
1504
|
+
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
|
|
1505
|
+
* amount's currency.
|
|
1506
|
+
*/
|
|
1507
|
+
currency: string;
|
|
1508
|
+
}
|
|
1509
|
+
|
|
1510
|
+
/**
|
|
1511
|
+
* The total amount of healthcare-related additional amounts.
|
|
1512
|
+
*/
|
|
1513
|
+
export interface TotalHealthcare {
|
|
1514
|
+
/**
|
|
1515
|
+
* The amount in minor units of the `currency` field. The amount is positive if it
|
|
1516
|
+
* is added to the amount (such as an ATM surcharge fee) and negative if it is
|
|
1517
|
+
* subtracted from the amount (such as a discount).
|
|
1518
|
+
*/
|
|
1519
|
+
amount: number;
|
|
1520
|
+
|
|
1521
|
+
/**
|
|
1522
|
+
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
|
|
1523
|
+
* amount's currency.
|
|
1524
|
+
*/
|
|
1525
|
+
currency: string;
|
|
1526
|
+
}
|
|
1527
|
+
|
|
1528
|
+
/**
|
|
1529
|
+
* The part of this transaction amount that was for transit-related services.
|
|
1530
|
+
*/
|
|
1531
|
+
export interface Transit {
|
|
1532
|
+
/**
|
|
1533
|
+
* The amount in minor units of the `currency` field. The amount is positive if it
|
|
1534
|
+
* is added to the amount (such as an ATM surcharge fee) and negative if it is
|
|
1535
|
+
* subtracted from the amount (such as a discount).
|
|
1536
|
+
*/
|
|
1537
|
+
amount: number;
|
|
1538
|
+
|
|
1539
|
+
/**
|
|
1540
|
+
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
|
|
1541
|
+
* amount's currency.
|
|
1542
|
+
*/
|
|
1543
|
+
currency: string;
|
|
1544
|
+
}
|
|
1545
|
+
|
|
1546
|
+
/**
|
|
1547
|
+
* An unknown additional amount.
|
|
1548
|
+
*/
|
|
1549
|
+
export interface Unknown {
|
|
1550
|
+
/**
|
|
1551
|
+
* The amount in minor units of the `currency` field. The amount is positive if it
|
|
1552
|
+
* is added to the amount (such as an ATM surcharge fee) and negative if it is
|
|
1553
|
+
* subtracted from the amount (such as a discount).
|
|
1554
|
+
*/
|
|
1555
|
+
amount: number;
|
|
1556
|
+
|
|
1557
|
+
/**
|
|
1558
|
+
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
|
|
1559
|
+
* amount's currency.
|
|
1560
|
+
*/
|
|
1561
|
+
currency: string;
|
|
1562
|
+
}
|
|
1563
|
+
|
|
1564
|
+
/**
|
|
1565
|
+
* The part of this transaction amount that was for vision-related services.
|
|
1566
|
+
*/
|
|
1567
|
+
export interface Vision {
|
|
1568
|
+
/**
|
|
1569
|
+
* The amount in minor units of the `currency` field. The amount is positive if it
|
|
1570
|
+
* is added to the amount (such as an ATM surcharge fee) and negative if it is
|
|
1571
|
+
* subtracted from the amount (such as a discount).
|
|
1572
|
+
*/
|
|
1573
|
+
amount: number;
|
|
1574
|
+
|
|
1575
|
+
/**
|
|
1576
|
+
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
|
|
1577
|
+
* amount's currency.
|
|
1578
|
+
*/
|
|
1579
|
+
currency: string;
|
|
1580
|
+
}
|
|
1581
|
+
}
|
|
1582
|
+
|
|
1583
|
+
/**
|
|
1584
|
+
* Fields specific to the `network`.
|
|
1585
|
+
*/
|
|
1586
|
+
export interface NetworkDetails {
|
|
1587
|
+
/**
|
|
1588
|
+
* The payment network used to process this card authorization.
|
|
1589
|
+
*
|
|
1590
|
+
* - `visa` - Visa
|
|
1591
|
+
* - `pulse` - Pulse
|
|
1592
|
+
*/
|
|
1593
|
+
category: 'visa' | 'pulse';
|
|
1594
|
+
|
|
1595
|
+
/**
|
|
1596
|
+
* Fields specific to the `pulse` network.
|
|
1597
|
+
*/
|
|
1598
|
+
pulse: NetworkDetails.Pulse | null;
|
|
1599
|
+
|
|
1600
|
+
/**
|
|
1601
|
+
* Fields specific to the `visa` network.
|
|
1602
|
+
*/
|
|
1603
|
+
visa: NetworkDetails.Visa | null;
|
|
1604
|
+
}
|
|
1605
|
+
|
|
1606
|
+
export namespace NetworkDetails {
|
|
1607
|
+
/**
|
|
1608
|
+
* Fields specific to the `pulse` network.
|
|
1609
|
+
*/
|
|
1610
|
+
export interface Pulse {}
|
|
1611
|
+
|
|
1612
|
+
/**
|
|
1613
|
+
* Fields specific to the `visa` network.
|
|
1614
|
+
*/
|
|
1615
|
+
export interface Visa {
|
|
1616
|
+
/**
|
|
1617
|
+
* For electronic commerce transactions, this identifies the level of security used
|
|
1618
|
+
* in obtaining the customer's payment credential. For mail or telephone order
|
|
1619
|
+
* transactions, identifies the type of mail or telephone order.
|
|
1620
|
+
*
|
|
1621
|
+
* - `mail_phone_order` - Single transaction of a mail/phone order: Use to indicate
|
|
1622
|
+
* that the transaction is a mail/phone order purchase, not a recurring
|
|
1623
|
+
* transaction or installment payment. For domestic transactions in the US
|
|
1624
|
+
* region, this value may also indicate one bill payment transaction in the
|
|
1625
|
+
* card-present or card-absent environments.
|
|
1626
|
+
* - `recurring` - Recurring transaction: Payment indicator used to indicate a
|
|
1627
|
+
* recurring transaction that originates from an acquirer in the US region.
|
|
1628
|
+
* - `installment` - Installment payment: Payment indicator used to indicate one
|
|
1629
|
+
* purchase of goods or services that is billed to the account in multiple
|
|
1630
|
+
* charges over a period of time agreed upon by the cardholder and merchant from
|
|
1631
|
+
* transactions that originate from an acquirer in the US region.
|
|
1632
|
+
* - `unknown_mail_phone_order` - Unknown classification: other mail order: Use to
|
|
1633
|
+
* indicate that the type of mail/telephone order is unknown.
|
|
1634
|
+
* - `secure_electronic_commerce` - Secure electronic commerce transaction: Use to
|
|
1635
|
+
* indicate that the electronic commerce transaction has been authenticated using
|
|
1636
|
+
* e.g., 3-D Secure
|
|
1637
|
+
* - `non_authenticated_security_transaction_at_3ds_capable_merchant` -
|
|
1638
|
+
* Non-authenticated security transaction at a 3-D Secure-capable merchant, and
|
|
1639
|
+
* merchant attempted to authenticate the cardholder using 3-D Secure: Use to
|
|
1640
|
+
* identify an electronic commerce transaction where the merchant attempted to
|
|
1641
|
+
* authenticate the cardholder using 3-D Secure, but was unable to complete the
|
|
1642
|
+
* authentication because the issuer or cardholder does not participate in the
|
|
1643
|
+
* 3-D Secure program.
|
|
1644
|
+
* - `non_authenticated_security_transaction` - Non-authenticated security
|
|
1645
|
+
* transaction: Use to identify an electronic commerce transaction that uses data
|
|
1646
|
+
* encryption for security however, cardholder authentication is not performed
|
|
1647
|
+
* using 3-D Secure.
|
|
1648
|
+
* - `non_secure_transaction` - Non-secure transaction: Use to identify an
|
|
1649
|
+
* electronic commerce transaction that has no data protection.
|
|
1650
|
+
*/
|
|
1651
|
+
electronic_commerce_indicator:
|
|
1652
|
+
| 'mail_phone_order'
|
|
1653
|
+
| 'recurring'
|
|
1654
|
+
| 'installment'
|
|
1655
|
+
| 'unknown_mail_phone_order'
|
|
1656
|
+
| 'secure_electronic_commerce'
|
|
1657
|
+
| 'non_authenticated_security_transaction_at_3ds_capable_merchant'
|
|
1658
|
+
| 'non_authenticated_security_transaction'
|
|
1659
|
+
| 'non_secure_transaction'
|
|
1660
|
+
| null;
|
|
1661
|
+
|
|
1662
|
+
/**
|
|
1663
|
+
* The method used to enter the cardholder's primary account number and card
|
|
1664
|
+
* expiration date.
|
|
1665
|
+
*
|
|
1666
|
+
* - `unknown` - Unknown
|
|
1667
|
+
* - `manual` - Manual key entry
|
|
1668
|
+
* - `magnetic_stripe_no_cvv` - Magnetic stripe read, without card verification
|
|
1669
|
+
* value
|
|
1670
|
+
* - `optical_code` - Optical code
|
|
1671
|
+
* - `integrated_circuit_card` - Contact chip card
|
|
1672
|
+
* - `contactless` - Contactless read of chip card
|
|
1673
|
+
* - `credential_on_file` - Transaction initiated using a credential that has
|
|
1674
|
+
* previously been stored on file
|
|
1675
|
+
* - `magnetic_stripe` - Magnetic stripe read
|
|
1676
|
+
* - `contactless_magnetic_stripe` - Contactless read of magnetic stripe data
|
|
1677
|
+
* - `integrated_circuit_card_no_cvv` - Contact chip card, without card
|
|
1678
|
+
* verification value
|
|
1679
|
+
*/
|
|
1680
|
+
point_of_service_entry_mode:
|
|
1681
|
+
| 'unknown'
|
|
1682
|
+
| 'manual'
|
|
1683
|
+
| 'magnetic_stripe_no_cvv'
|
|
1684
|
+
| 'optical_code'
|
|
1685
|
+
| 'integrated_circuit_card'
|
|
1686
|
+
| 'contactless'
|
|
1687
|
+
| 'credential_on_file'
|
|
1688
|
+
| 'magnetic_stripe'
|
|
1689
|
+
| 'contactless_magnetic_stripe'
|
|
1690
|
+
| 'integrated_circuit_card_no_cvv'
|
|
1691
|
+
| null;
|
|
1692
|
+
|
|
1693
|
+
/**
|
|
1694
|
+
* Only present when `actioner: network`. Describes why a card authorization was
|
|
1695
|
+
* approved or declined by Visa through stand-in processing.
|
|
1696
|
+
*
|
|
1697
|
+
* - `issuer_error` - Increase failed to process the authorization in a timely
|
|
1698
|
+
* manner.
|
|
1699
|
+
* - `invalid_physical_card` - The physical card read had an invalid CVV, dCVV, or
|
|
1700
|
+
* authorization request cryptogram.
|
|
1701
|
+
* - `invalid_cardholder_authentication_verification_value` - The 3DS cardholder
|
|
1702
|
+
* authentication verification value was invalid.
|
|
1703
|
+
* - `internal_visa_error` - An internal Visa error occurred. Visa uses this reason
|
|
1704
|
+
* code for certain expected occurrences as well, such as Application Transaction
|
|
1705
|
+
* Counter (ATC) replays.
|
|
1706
|
+
* - `merchant_transaction_advisory_service_authentication_required` - The merchant
|
|
1707
|
+
* has enabled Visa's Transaction Advisory Service and requires further
|
|
1708
|
+
* authentication to perform the transaction. In practice this is often utilized
|
|
1709
|
+
* at fuel pumps to tell the cardholder to see the cashier.
|
|
1710
|
+
* - `payment_fraud_disruption_acquirer_block` - The transaction was blocked by
|
|
1711
|
+
* Visa's Payment Fraud Disruption service due to fraudulent Acquirer behavior,
|
|
1712
|
+
* such as card testing.
|
|
1713
|
+
* - `other` - An unspecific reason for stand-in processing.
|
|
1714
|
+
*/
|
|
1715
|
+
stand_in_processing_reason:
|
|
1716
|
+
| 'issuer_error'
|
|
1717
|
+
| 'invalid_physical_card'
|
|
1718
|
+
| 'invalid_cardholder_authentication_verification_value'
|
|
1719
|
+
| 'internal_visa_error'
|
|
1720
|
+
| 'merchant_transaction_advisory_service_authentication_required'
|
|
1721
|
+
| 'payment_fraud_disruption_acquirer_block'
|
|
1722
|
+
| 'other'
|
|
1723
|
+
| null;
|
|
1724
|
+
}
|
|
1725
|
+
}
|
|
1726
|
+
|
|
1727
|
+
/**
|
|
1728
|
+
* Network-specific identifiers for a specific request or transaction.
|
|
1729
|
+
*/
|
|
1730
|
+
export interface NetworkIdentifiers {
|
|
1731
|
+
/**
|
|
1732
|
+
* The randomly generated 6-character Authorization Identification Response code
|
|
1733
|
+
* sent back to the acquirer in an approved response.
|
|
1734
|
+
*/
|
|
1735
|
+
authorization_identification_response: string | null;
|
|
1736
|
+
|
|
1737
|
+
/**
|
|
1738
|
+
* A life-cycle identifier used across e.g., an authorization and a reversal.
|
|
1739
|
+
* Expected to be unique per acquirer within a window of time. For some card
|
|
1740
|
+
* networks the retrieval reference number includes the trace counter.
|
|
1741
|
+
*/
|
|
1742
|
+
retrieval_reference_number: string | null;
|
|
1743
|
+
|
|
1744
|
+
/**
|
|
1745
|
+
* A counter used to verify an individual authorization. Expected to be unique per
|
|
1746
|
+
* acquirer within a window of time.
|
|
1747
|
+
*/
|
|
1748
|
+
trace_number: string | null;
|
|
1749
|
+
|
|
1750
|
+
/**
|
|
1751
|
+
* A globally unique transaction identifier provided by the card network, used
|
|
1752
|
+
* across multiple life-cycle requests.
|
|
1753
|
+
*/
|
|
1754
|
+
transaction_id: string | null;
|
|
1755
|
+
}
|
|
1756
|
+
|
|
1757
|
+
/**
|
|
1758
|
+
* Fields related to verification of cardholder-provided values.
|
|
1759
|
+
*/
|
|
1760
|
+
export interface Verification {
|
|
1761
|
+
/**
|
|
1762
|
+
* Fields related to verification of the Card Verification Code, a 3-digit code on
|
|
1763
|
+
* the back of the card.
|
|
1764
|
+
*/
|
|
1765
|
+
card_verification_code: Verification.CardVerificationCode;
|
|
1766
|
+
|
|
1767
|
+
/**
|
|
1768
|
+
* Cardholder address provided in the authorization request and the address on file
|
|
1769
|
+
* we verified it against.
|
|
1770
|
+
*/
|
|
1771
|
+
cardholder_address: Verification.CardholderAddress;
|
|
1772
|
+
}
|
|
1773
|
+
|
|
1774
|
+
export namespace Verification {
|
|
1775
|
+
/**
|
|
1776
|
+
* Fields related to verification of the Card Verification Code, a 3-digit code on
|
|
1777
|
+
* the back of the card.
|
|
1778
|
+
*/
|
|
1779
|
+
export interface CardVerificationCode {
|
|
1780
|
+
/**
|
|
1781
|
+
* The result of verifying the Card Verification Code.
|
|
1782
|
+
*
|
|
1783
|
+
* - `not_checked` - No card verification code was provided in the authorization
|
|
1784
|
+
* request.
|
|
1785
|
+
* - `match` - The card verification code matched the one on file.
|
|
1786
|
+
* - `no_match` - The card verification code did not match the one on file.
|
|
1787
|
+
*/
|
|
1788
|
+
result: 'not_checked' | 'match' | 'no_match';
|
|
1789
|
+
}
|
|
1790
|
+
|
|
1791
|
+
/**
|
|
1792
|
+
* Cardholder address provided in the authorization request and the address on file
|
|
1793
|
+
* we verified it against.
|
|
1794
|
+
*/
|
|
1795
|
+
export interface CardholderAddress {
|
|
1796
|
+
/**
|
|
1797
|
+
* Line 1 of the address on file for the cardholder.
|
|
1798
|
+
*/
|
|
1799
|
+
actual_line1: string | null;
|
|
1800
|
+
|
|
1801
|
+
/**
|
|
1802
|
+
* The postal code of the address on file for the cardholder.
|
|
1803
|
+
*/
|
|
1804
|
+
actual_postal_code: string | null;
|
|
1805
|
+
|
|
1806
|
+
/**
|
|
1807
|
+
* The cardholder address line 1 provided for verification in the authorization
|
|
1808
|
+
* request.
|
|
1809
|
+
*/
|
|
1810
|
+
provided_line1: string | null;
|
|
1811
|
+
|
|
1812
|
+
/**
|
|
1813
|
+
* The postal code provided for verification in the authorization request.
|
|
1814
|
+
*/
|
|
1815
|
+
provided_postal_code: string | null;
|
|
1816
|
+
|
|
1817
|
+
/**
|
|
1818
|
+
* The address verification result returned to the card network.
|
|
1819
|
+
*
|
|
1820
|
+
* - `not_checked` - No address information was provided in the authorization
|
|
1821
|
+
* request.
|
|
1822
|
+
* - `postal_code_match_address_no_match` - Postal code matches, but the street
|
|
1823
|
+
* address does not match or was not provided.
|
|
1824
|
+
* - `postal_code_no_match_address_match` - Postal code does not match, but the
|
|
1825
|
+
* street address matches or was not provided.
|
|
1826
|
+
* - `match` - Postal code and street address match.
|
|
1827
|
+
* - `no_match` - Postal code and street address do not match.
|
|
1828
|
+
* - `postal_code_match_address_not_checked` - Postal code matches, but the street
|
|
1829
|
+
* address was not verified. (deprecated)
|
|
1830
|
+
*/
|
|
1831
|
+
result:
|
|
1832
|
+
| 'not_checked'
|
|
1833
|
+
| 'postal_code_match_address_no_match'
|
|
1834
|
+
| 'postal_code_no_match_address_match'
|
|
1835
|
+
| 'match'
|
|
1836
|
+
| 'no_match'
|
|
1837
|
+
| 'postal_code_match_address_not_checked';
|
|
1838
|
+
}
|
|
1839
|
+
}
|
|
1840
|
+
}
|
|
1841
|
+
|
|
1196
1842
|
/**
|
|
1197
1843
|
* A Card Decline object. This field will be present in the JSON response if and
|
|
1198
1844
|
* only if `category` is equal to `card_decline`.
|
|
@@ -1360,6 +2006,8 @@ export namespace CardPayment {
|
|
|
1360
2006
|
* voucher authorization, where funds are credited to the cardholder.
|
|
1361
2007
|
* - `cash_disbursement` - Cash disbursement transactions are used to withdraw cash
|
|
1362
2008
|
* from an ATM or a point of sale.
|
|
2009
|
+
* - `balance_inquiry` - A balance inquiry transaction is used to check the balance
|
|
2010
|
+
* of an account associated with a card.
|
|
1363
2011
|
* - `unknown` - The processing category is unknown.
|
|
1364
2012
|
*/
|
|
1365
2013
|
processing_category:
|
|
@@ -1371,6 +2019,7 @@ export namespace CardPayment {
|
|
|
1371
2019
|
| 'quasi_cash'
|
|
1372
2020
|
| 'refund'
|
|
1373
2021
|
| 'cash_disbursement'
|
|
2022
|
+
| 'balance_inquiry'
|
|
1374
2023
|
| 'unknown';
|
|
1375
2024
|
|
|
1376
2025
|
/**
|
|
@@ -2130,6 +2779,8 @@ export namespace CardPayment {
|
|
|
2130
2779
|
* voucher authorization, where funds are credited to the cardholder.
|
|
2131
2780
|
* - `cash_disbursement` - Cash disbursement transactions are used to withdraw cash
|
|
2132
2781
|
* from an ATM or a point of sale.
|
|
2782
|
+
* - `balance_inquiry` - A balance inquiry transaction is used to check the balance
|
|
2783
|
+
* of an account associated with a card.
|
|
2133
2784
|
* - `unknown` - The processing category is unknown.
|
|
2134
2785
|
*/
|
|
2135
2786
|
processing_category:
|
|
@@ -2141,6 +2792,7 @@ export namespace CardPayment {
|
|
|
2141
2792
|
| 'quasi_cash'
|
|
2142
2793
|
| 'refund'
|
|
2143
2794
|
| 'cash_disbursement'
|
|
2795
|
+
| 'balance_inquiry'
|
|
2144
2796
|
| 'unknown';
|
|
2145
2797
|
|
|
2146
2798
|
/**
|