cashfree-pg 4.2.2 → 4.2.3
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/api.ts +311 -311
- package/dist/api.d.ts +179 -179
- package/dist/api.js +132 -132
- package/dist/esm/api.d.ts +179 -179
- package/dist/esm/api.js +132 -132
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -528,61 +528,6 @@ export interface BanktransferPaymentMethod {
|
|
|
528
528
|
*/
|
|
529
529
|
'banktransfer': Banktransfer;
|
|
530
530
|
}
|
|
531
|
-
/**
|
|
532
|
-
* payment method card.
|
|
533
|
-
* @export
|
|
534
|
-
* @interface CARD
|
|
535
|
-
*/
|
|
536
|
-
export interface CARD {
|
|
537
|
-
/**
|
|
538
|
-
* Channel. can be link
|
|
539
|
-
* @type {string}
|
|
540
|
-
* @memberof CARD
|
|
541
|
-
*/
|
|
542
|
-
'channel'?: string;
|
|
543
|
-
/**
|
|
544
|
-
* Card number
|
|
545
|
-
* @type {string}
|
|
546
|
-
* @memberof CARD
|
|
547
|
-
*/
|
|
548
|
-
'card_number'?: string;
|
|
549
|
-
/**
|
|
550
|
-
* Card holder name
|
|
551
|
-
* @type {string}
|
|
552
|
-
* @memberof CARD
|
|
553
|
-
*/
|
|
554
|
-
'card_holder_name'?: string;
|
|
555
|
-
/**
|
|
556
|
-
* Card expiry month
|
|
557
|
-
* @type {string}
|
|
558
|
-
* @memberof CARD
|
|
559
|
-
*/
|
|
560
|
-
'card_expiry_mm'?: string;
|
|
561
|
-
/**
|
|
562
|
-
* Card expiry year
|
|
563
|
-
* @type {string}
|
|
564
|
-
* @memberof CARD
|
|
565
|
-
*/
|
|
566
|
-
'card_expiry_yy'?: string;
|
|
567
|
-
/**
|
|
568
|
-
* Card CVV
|
|
569
|
-
* @type {string}
|
|
570
|
-
* @memberof CARD
|
|
571
|
-
*/
|
|
572
|
-
'card_cvv'?: string;
|
|
573
|
-
/**
|
|
574
|
-
* Card network
|
|
575
|
-
* @type {string}
|
|
576
|
-
* @memberof CARD
|
|
577
|
-
*/
|
|
578
|
-
'card_network'?: string;
|
|
579
|
-
/**
|
|
580
|
-
* Card type
|
|
581
|
-
* @type {string}
|
|
582
|
-
* @memberof CARD
|
|
583
|
-
*/
|
|
584
|
-
'card_type'?: string;
|
|
585
|
-
}
|
|
586
531
|
/**
|
|
587
532
|
* Card Payment method
|
|
588
533
|
* @export
|
|
@@ -1373,12 +1318,171 @@ export interface CreateSubscriptionPaymentRequest {
|
|
|
1373
1318
|
*/
|
|
1374
1319
|
'payment_method'?: CreateSubscriptionPaymentRequestPaymentMethod;
|
|
1375
1320
|
}
|
|
1321
|
+
/**
|
|
1322
|
+
* payment method card.
|
|
1323
|
+
* @export
|
|
1324
|
+
* @interface CreateSubscriptionPaymentRequestCard
|
|
1325
|
+
*/
|
|
1326
|
+
export interface CreateSubscriptionPaymentRequestCard {
|
|
1327
|
+
/**
|
|
1328
|
+
* Channel. can be link
|
|
1329
|
+
* @type {string}
|
|
1330
|
+
* @memberof CreateSubscriptionPaymentRequestCard
|
|
1331
|
+
*/
|
|
1332
|
+
'channel'?: string;
|
|
1333
|
+
/**
|
|
1334
|
+
* Card number
|
|
1335
|
+
* @type {string}
|
|
1336
|
+
* @memberof CreateSubscriptionPaymentRequestCard
|
|
1337
|
+
*/
|
|
1338
|
+
'card_number'?: string;
|
|
1339
|
+
/**
|
|
1340
|
+
* Card holder name
|
|
1341
|
+
* @type {string}
|
|
1342
|
+
* @memberof CreateSubscriptionPaymentRequestCard
|
|
1343
|
+
*/
|
|
1344
|
+
'card_holder_name'?: string;
|
|
1345
|
+
/**
|
|
1346
|
+
* Card expiry month
|
|
1347
|
+
* @type {string}
|
|
1348
|
+
* @memberof CreateSubscriptionPaymentRequestCard
|
|
1349
|
+
*/
|
|
1350
|
+
'card_expiry_mm'?: string;
|
|
1351
|
+
/**
|
|
1352
|
+
* Card expiry year
|
|
1353
|
+
* @type {string}
|
|
1354
|
+
* @memberof CreateSubscriptionPaymentRequestCard
|
|
1355
|
+
*/
|
|
1356
|
+
'card_expiry_yy'?: string;
|
|
1357
|
+
/**
|
|
1358
|
+
* Card CVV
|
|
1359
|
+
* @type {string}
|
|
1360
|
+
* @memberof CreateSubscriptionPaymentRequestCard
|
|
1361
|
+
*/
|
|
1362
|
+
'card_cvv'?: string;
|
|
1363
|
+
/**
|
|
1364
|
+
* Card network
|
|
1365
|
+
* @type {string}
|
|
1366
|
+
* @memberof CreateSubscriptionPaymentRequestCard
|
|
1367
|
+
*/
|
|
1368
|
+
'card_network'?: string;
|
|
1369
|
+
/**
|
|
1370
|
+
* Card type
|
|
1371
|
+
* @type {string}
|
|
1372
|
+
* @memberof CreateSubscriptionPaymentRequestCard
|
|
1373
|
+
*/
|
|
1374
|
+
'card_type'?: string;
|
|
1375
|
+
}
|
|
1376
|
+
/**
|
|
1377
|
+
* payment method enach.
|
|
1378
|
+
* @export
|
|
1379
|
+
* @interface CreateSubscriptionPaymentRequestEnack
|
|
1380
|
+
*/
|
|
1381
|
+
export interface CreateSubscriptionPaymentRequestEnack {
|
|
1382
|
+
/**
|
|
1383
|
+
* Channel. can be link
|
|
1384
|
+
* @type {string}
|
|
1385
|
+
* @memberof CreateSubscriptionPaymentRequestEnack
|
|
1386
|
+
*/
|
|
1387
|
+
'channel'?: string;
|
|
1388
|
+
/**
|
|
1389
|
+
* Authentication mode. can be debit_card, aadhaar, or net_banking
|
|
1390
|
+
* @type {string}
|
|
1391
|
+
* @memberof CreateSubscriptionPaymentRequestEnack
|
|
1392
|
+
*/
|
|
1393
|
+
'auth_mode'?: string;
|
|
1394
|
+
/**
|
|
1395
|
+
* Account holder name
|
|
1396
|
+
* @type {string}
|
|
1397
|
+
* @memberof CreateSubscriptionPaymentRequestEnack
|
|
1398
|
+
*/
|
|
1399
|
+
'account_holder_name'?: string;
|
|
1400
|
+
/**
|
|
1401
|
+
* Account number
|
|
1402
|
+
* @type {string}
|
|
1403
|
+
* @memberof CreateSubscriptionPaymentRequestEnack
|
|
1404
|
+
*/
|
|
1405
|
+
'account_number'?: string;
|
|
1406
|
+
/**
|
|
1407
|
+
* Account bank code (required without AccountIFSC)
|
|
1408
|
+
* @type {string}
|
|
1409
|
+
* @memberof CreateSubscriptionPaymentRequestEnack
|
|
1410
|
+
*/
|
|
1411
|
+
'account_bank_code'?: string;
|
|
1412
|
+
/**
|
|
1413
|
+
* Account type
|
|
1414
|
+
* @type {string}
|
|
1415
|
+
* @memberof CreateSubscriptionPaymentRequestEnack
|
|
1416
|
+
*/
|
|
1417
|
+
'account_type'?: string;
|
|
1418
|
+
/**
|
|
1419
|
+
* Account IFSC
|
|
1420
|
+
* @type {string}
|
|
1421
|
+
* @memberof CreateSubscriptionPaymentRequestEnack
|
|
1422
|
+
*/
|
|
1423
|
+
'account_ifsc'?: string;
|
|
1424
|
+
}
|
|
1376
1425
|
/**
|
|
1377
1426
|
* @type CreateSubscriptionPaymentRequestPaymentMethod
|
|
1378
1427
|
* Payment method. Can be one of [\"upi\", \"enach\", \"pnach\", \"card\"]
|
|
1379
1428
|
* @export
|
|
1380
1429
|
*/
|
|
1381
|
-
export type CreateSubscriptionPaymentRequestPaymentMethod =
|
|
1430
|
+
export type CreateSubscriptionPaymentRequestPaymentMethod = CreateSubscriptionPaymentRequestCard | CreateSubscriptionPaymentRequestEnack | CreateSubscriptionPaymentRequestPnach | CreateSubscriptonPaymentRequestUpi;
|
|
1431
|
+
/**
|
|
1432
|
+
* payment method pnach.
|
|
1433
|
+
* @export
|
|
1434
|
+
* @interface CreateSubscriptionPaymentRequestPnach
|
|
1435
|
+
*/
|
|
1436
|
+
export interface CreateSubscriptionPaymentRequestPnach {
|
|
1437
|
+
/**
|
|
1438
|
+
* Channel. can be post
|
|
1439
|
+
* @type {string}
|
|
1440
|
+
* @memberof CreateSubscriptionPaymentRequestPnach
|
|
1441
|
+
*/
|
|
1442
|
+
'channel'?: string;
|
|
1443
|
+
/**
|
|
1444
|
+
* Account holder name
|
|
1445
|
+
* @type {string}
|
|
1446
|
+
* @memberof CreateSubscriptionPaymentRequestPnach
|
|
1447
|
+
*/
|
|
1448
|
+
'account_holder_name'?: string;
|
|
1449
|
+
/**
|
|
1450
|
+
* Account number
|
|
1451
|
+
* @type {string}
|
|
1452
|
+
* @memberof CreateSubscriptionPaymentRequestPnach
|
|
1453
|
+
*/
|
|
1454
|
+
'account_number'?: string;
|
|
1455
|
+
/**
|
|
1456
|
+
* Account bank code
|
|
1457
|
+
* @type {string}
|
|
1458
|
+
* @memberof CreateSubscriptionPaymentRequestPnach
|
|
1459
|
+
*/
|
|
1460
|
+
'account_bank_code'?: string;
|
|
1461
|
+
/**
|
|
1462
|
+
* Account type
|
|
1463
|
+
* @type {string}
|
|
1464
|
+
* @memberof CreateSubscriptionPaymentRequestPnach
|
|
1465
|
+
*/
|
|
1466
|
+
'account_type'?: string;
|
|
1467
|
+
/**
|
|
1468
|
+
* Account IFSC
|
|
1469
|
+
* @type {string}
|
|
1470
|
+
* @memberof CreateSubscriptionPaymentRequestPnach
|
|
1471
|
+
*/
|
|
1472
|
+
'account_ifsc'?: string;
|
|
1473
|
+
/**
|
|
1474
|
+
* Mandate creation date
|
|
1475
|
+
* @type {string}
|
|
1476
|
+
* @memberof CreateSubscriptionPaymentRequestPnach
|
|
1477
|
+
*/
|
|
1478
|
+
'mandate_creation_date'?: string;
|
|
1479
|
+
/**
|
|
1480
|
+
* Mandate start date
|
|
1481
|
+
* @type {string}
|
|
1482
|
+
* @memberof CreateSubscriptionPaymentRequestPnach
|
|
1483
|
+
*/
|
|
1484
|
+
'mandate_start_date'?: string;
|
|
1485
|
+
}
|
|
1382
1486
|
/**
|
|
1383
1487
|
* The response returned is Create Subscription Auth or Charge APIs.
|
|
1384
1488
|
* @export
|
|
@@ -1667,6 +1771,25 @@ export interface CreateSubscriptionRequestSubscriptionMeta {
|
|
|
1667
1771
|
*/
|
|
1668
1772
|
'notification_channel'?: Array<string>;
|
|
1669
1773
|
}
|
|
1774
|
+
/**
|
|
1775
|
+
* payment method upi.
|
|
1776
|
+
* @export
|
|
1777
|
+
* @interface CreateSubscriptonPaymentRequestUpi
|
|
1778
|
+
*/
|
|
1779
|
+
export interface CreateSubscriptonPaymentRequestUpi {
|
|
1780
|
+
/**
|
|
1781
|
+
*
|
|
1782
|
+
* @type {string}
|
|
1783
|
+
* @memberof CreateSubscriptonPaymentRequestUpi
|
|
1784
|
+
*/
|
|
1785
|
+
'upi_id'?: string;
|
|
1786
|
+
/**
|
|
1787
|
+
* Channel. can be link, qrcode, or collect
|
|
1788
|
+
* @type {string}
|
|
1789
|
+
* @memberof CreateSubscriptonPaymentRequestUpi
|
|
1790
|
+
*/
|
|
1791
|
+
'channel'?: string;
|
|
1792
|
+
}
|
|
1670
1793
|
/**
|
|
1671
1794
|
* Request body to create a terminal
|
|
1672
1795
|
* @export
|
|
@@ -2220,55 +2343,6 @@ export interface EMIPlansArray {
|
|
|
2220
2343
|
*/
|
|
2221
2344
|
'total_amount'?: number;
|
|
2222
2345
|
}
|
|
2223
|
-
/**
|
|
2224
|
-
* payment method enach.
|
|
2225
|
-
* @export
|
|
2226
|
-
* @interface ENACH
|
|
2227
|
-
*/
|
|
2228
|
-
export interface ENACH {
|
|
2229
|
-
/**
|
|
2230
|
-
* Channel. can be link
|
|
2231
|
-
* @type {string}
|
|
2232
|
-
* @memberof ENACH
|
|
2233
|
-
*/
|
|
2234
|
-
'channel'?: string;
|
|
2235
|
-
/**
|
|
2236
|
-
* Authentication mode. can be debit_card, aadhaar, or net_banking
|
|
2237
|
-
* @type {string}
|
|
2238
|
-
* @memberof ENACH
|
|
2239
|
-
*/
|
|
2240
|
-
'auth_mode'?: string;
|
|
2241
|
-
/**
|
|
2242
|
-
* Account holder name
|
|
2243
|
-
* @type {string}
|
|
2244
|
-
* @memberof ENACH
|
|
2245
|
-
*/
|
|
2246
|
-
'account_holder_name'?: string;
|
|
2247
|
-
/**
|
|
2248
|
-
* Account number
|
|
2249
|
-
* @type {string}
|
|
2250
|
-
* @memberof ENACH
|
|
2251
|
-
*/
|
|
2252
|
-
'account_number'?: string;
|
|
2253
|
-
/**
|
|
2254
|
-
* Account bank code (required without AccountIFSC)
|
|
2255
|
-
* @type {string}
|
|
2256
|
-
* @memberof ENACH
|
|
2257
|
-
*/
|
|
2258
|
-
'account_bank_code'?: string;
|
|
2259
|
-
/**
|
|
2260
|
-
* Account type
|
|
2261
|
-
* @type {string}
|
|
2262
|
-
* @memberof ENACH
|
|
2263
|
-
*/
|
|
2264
|
-
'account_type'?: string;
|
|
2265
|
-
/**
|
|
2266
|
-
* Account IFSC
|
|
2267
|
-
* @type {string}
|
|
2268
|
-
* @memberof ENACH
|
|
2269
|
-
*/
|
|
2270
|
-
'account_ifsc'?: string;
|
|
2271
|
-
}
|
|
2272
2346
|
/**
|
|
2273
2347
|
* ES Order Recon Request
|
|
2274
2348
|
* @export
|
|
@@ -4280,61 +4354,6 @@ export interface OrderPayData {
|
|
|
4280
4354
|
*/
|
|
4281
4355
|
'method'?: string;
|
|
4282
4356
|
}
|
|
4283
|
-
/**
|
|
4284
|
-
* payment method pnach.
|
|
4285
|
-
* @export
|
|
4286
|
-
* @interface PNACH
|
|
4287
|
-
*/
|
|
4288
|
-
export interface PNACH {
|
|
4289
|
-
/**
|
|
4290
|
-
* Channel. can be post
|
|
4291
|
-
* @type {string}
|
|
4292
|
-
* @memberof PNACH
|
|
4293
|
-
*/
|
|
4294
|
-
'channel'?: string;
|
|
4295
|
-
/**
|
|
4296
|
-
* Account holder name
|
|
4297
|
-
* @type {string}
|
|
4298
|
-
* @memberof PNACH
|
|
4299
|
-
*/
|
|
4300
|
-
'account_holder_name'?: string;
|
|
4301
|
-
/**
|
|
4302
|
-
* Account number
|
|
4303
|
-
* @type {string}
|
|
4304
|
-
* @memberof PNACH
|
|
4305
|
-
*/
|
|
4306
|
-
'account_number'?: string;
|
|
4307
|
-
/**
|
|
4308
|
-
* Account bank code
|
|
4309
|
-
* @type {string}
|
|
4310
|
-
* @memberof PNACH
|
|
4311
|
-
*/
|
|
4312
|
-
'account_bank_code'?: string;
|
|
4313
|
-
/**
|
|
4314
|
-
* Account type
|
|
4315
|
-
* @type {string}
|
|
4316
|
-
* @memberof PNACH
|
|
4317
|
-
*/
|
|
4318
|
-
'account_type'?: string;
|
|
4319
|
-
/**
|
|
4320
|
-
* Account IFSC
|
|
4321
|
-
* @type {string}
|
|
4322
|
-
* @memberof PNACH
|
|
4323
|
-
*/
|
|
4324
|
-
'account_ifsc'?: string;
|
|
4325
|
-
/**
|
|
4326
|
-
* Mandate creation date
|
|
4327
|
-
* @type {string}
|
|
4328
|
-
* @memberof PNACH
|
|
4329
|
-
*/
|
|
4330
|
-
'mandate_creation_date'?: string;
|
|
4331
|
-
/**
|
|
4332
|
-
* Mandate start date
|
|
4333
|
-
* @type {string}
|
|
4334
|
-
* @memberof PNACH
|
|
4335
|
-
*/
|
|
4336
|
-
'mandate_start_date'?: string;
|
|
4337
|
-
}
|
|
4338
4357
|
/**
|
|
4339
4358
|
* Order Pay response once you create a transaction for that order
|
|
4340
4359
|
* @export
|
|
@@ -7554,25 +7573,6 @@ export interface TransferDetailsTagsInner {
|
|
|
7554
7573
|
*/
|
|
7555
7574
|
'size'?: number;
|
|
7556
7575
|
}
|
|
7557
|
-
/**
|
|
7558
|
-
* payment method upi.
|
|
7559
|
-
* @export
|
|
7560
|
-
* @interface UPI
|
|
7561
|
-
*/
|
|
7562
|
-
export interface UPI {
|
|
7563
|
-
/**
|
|
7564
|
-
*
|
|
7565
|
-
* @type {string}
|
|
7566
|
-
* @memberof UPI
|
|
7567
|
-
*/
|
|
7568
|
-
'upi_id'?: string;
|
|
7569
|
-
/**
|
|
7570
|
-
* Channel. can be link, qrcode, or collect
|
|
7571
|
-
* @type {string}
|
|
7572
|
-
* @memberof UPI
|
|
7573
|
-
*/
|
|
7574
|
-
'channel'?: string;
|
|
7575
|
-
}
|
|
7576
7576
|
/**
|
|
7577
7577
|
* object when you are using preauth in UPI in order pay
|
|
7578
7578
|
* @export
|