cashfree-pg 4.2.0 → 4.2.2

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/dist/api.d.ts CHANGED
@@ -528,6 +528,61 @@ 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
+ }
531
586
  /**
532
587
  * Card Payment method
533
588
  * @export
@@ -1264,206 +1319,132 @@ export interface CreatePlanRequest {
1264
1319
  'plan_note'?: string;
1265
1320
  }
1266
1321
  /**
1267
- * The response returned in Get, Create or Manage Subscription Payment APIs.
1322
+ * The request to be passed for the create subscription payment API.
1268
1323
  * @export
1269
- * @interface CreateSubscriptionPaymentAuthResponse
1324
+ * @interface CreateSubscriptionPaymentRequest
1270
1325
  */
1271
- export interface CreateSubscriptionPaymentAuthResponse {
1326
+ export interface CreateSubscriptionPaymentRequest {
1272
1327
  /**
1273
- * Cashfree subscription payment reference number
1328
+ * A unique ID passed by merchant for identifying the subscription.
1274
1329
  * @type {string}
1275
- * @memberof CreateSubscriptionPaymentAuthResponse
1330
+ * @memberof CreateSubscriptionPaymentRequest
1276
1331
  */
1277
- 'cf_payment_id'?: string;
1332
+ 'subscription_id': string;
1278
1333
  /**
1279
- * Cashfree subscription reference number
1334
+ * Session ID for the subscription. Required only for Auth.
1280
1335
  * @type {string}
1281
- * @memberof CreateSubscriptionPaymentAuthResponse
1336
+ * @memberof CreateSubscriptionPaymentRequest
1282
1337
  */
1283
- 'cf_subscription_id'?: string;
1338
+ 'subscription_session_id'?: string;
1284
1339
  /**
1285
- *
1286
- * @type {CreateSubscriptionPaymentAuthResponseFailureDetails}
1287
- * @memberof CreateSubscriptionPaymentAuthResponse
1340
+ * A unique ID passed by merchant for identifying the subscription payment.
1341
+ * @type {string}
1342
+ * @memberof CreateSubscriptionPaymentRequest
1288
1343
  */
1289
- 'failure_details'?: CreateSubscriptionPaymentAuthResponseFailureDetails;
1344
+ 'payment_id': string;
1290
1345
  /**
1291
- * The charge amount of the payment.
1346
+ * The charge amount of the payment. Required in case of charge.
1292
1347
  * @type {number}
1293
- * @memberof CreateSubscriptionPaymentAuthResponse
1348
+ * @memberof CreateSubscriptionPaymentRequest
1294
1349
  */
1295
1350
  'payment_amount'?: number;
1296
1351
  /**
1297
- * A unique ID passed by merchant for identifying the transaction.
1298
- * @type {string}
1299
- * @memberof CreateSubscriptionPaymentAuthResponse
1300
- */
1301
- 'payment_id'?: string;
1302
- /**
1303
- * The date on which the payment was initiated.
1352
+ * The date on which the payment is scheduled to be processed. Required for UPI and CARD payment modes.
1304
1353
  * @type {string}
1305
- * @memberof CreateSubscriptionPaymentAuthResponse
1354
+ * @memberof CreateSubscriptionPaymentRequest
1306
1355
  */
1307
- 'payment_initiated_date'?: string;
1356
+ 'payment_schedule_date'?: string;
1308
1357
  /**
1309
- * Status of the payment.
1358
+ * Payment remarks.
1310
1359
  * @type {string}
1311
- * @memberof CreateSubscriptionPaymentAuthResponse
1360
+ * @memberof CreateSubscriptionPaymentRequest
1312
1361
  */
1313
- 'payment_status'?: string;
1362
+ 'payment_remarks'?: string;
1314
1363
  /**
1315
1364
  * Payment type. Can be AUTH or CHARGE.
1316
1365
  * @type {string}
1317
- * @memberof CreateSubscriptionPaymentAuthResponse
1318
- */
1319
- 'payment_type'?: string;
1320
- /**
1321
- * A unique ID passed by merchant for identifying the subscription.
1322
- * @type {string}
1323
- * @memberof CreateSubscriptionPaymentAuthResponse
1366
+ * @memberof CreateSubscriptionPaymentRequest
1324
1367
  */
1325
- 'subscription_id'?: string;
1368
+ 'payment_type': string;
1326
1369
  /**
1327
- * Payment method used for the authorization.
1328
- * @type {string}
1329
- * @memberof CreateSubscriptionPaymentAuthResponse
1370
+ *
1371
+ * @type {CreateSubscriptionPaymentRequestPaymentMethod}
1372
+ * @memberof CreateSubscriptionPaymentRequest
1330
1373
  */
1331
- 'payment_method'?: string;
1374
+ 'payment_method'?: CreateSubscriptionPaymentRequestPaymentMethod;
1332
1375
  }
1333
1376
  /**
1334
- *
1377
+ * @type CreateSubscriptionPaymentRequestPaymentMethod
1378
+ * Payment method. Can be one of [\"upi\", \"enach\", \"pnach\", \"card\"]
1335
1379
  * @export
1336
- * @interface CreateSubscriptionPaymentAuthResponseFailureDetails
1337
1380
  */
1338
- export interface CreateSubscriptionPaymentAuthResponseFailureDetails {
1339
- /**
1340
- * Failure reason of the payment if the payment_status is failed.
1341
- * @type {string}
1342
- * @memberof CreateSubscriptionPaymentAuthResponseFailureDetails
1343
- */
1344
- 'failure_reason'?: string;
1345
- }
1381
+ export type CreateSubscriptionPaymentRequestPaymentMethod = CARD | ENACH | PNACH | UPI;
1346
1382
  /**
1347
- * The response returned in Get, Create or Manage Subscription Payment APIs.
1383
+ * The response returned is Create Subscription Auth or Charge APIs.
1348
1384
  * @export
1349
- * @interface CreateSubscriptionPaymentChargeResponse
1385
+ * @interface CreateSubscriptionPaymentResponse
1350
1386
  */
1351
- export interface CreateSubscriptionPaymentChargeResponse {
1387
+ export interface CreateSubscriptionPaymentResponse {
1352
1388
  /**
1353
1389
  * Cashfree subscription payment reference number
1354
1390
  * @type {string}
1355
- * @memberof CreateSubscriptionPaymentChargeResponse
1391
+ * @memberof CreateSubscriptionPaymentResponse
1356
1392
  */
1357
1393
  'cf_payment_id'?: string;
1358
- /**
1359
- * Cashfree subscription reference number
1360
- * @type {string}
1361
- * @memberof CreateSubscriptionPaymentChargeResponse
1362
- */
1363
- 'cf_subscription_id'?: string;
1364
1394
  /**
1365
1395
  *
1366
- * @type {CreateSubscriptionPaymentAuthResponseFailureDetails}
1367
- * @memberof CreateSubscriptionPaymentChargeResponse
1396
+ * @type {SubscriptionPaymentEntityFailureDetails}
1397
+ * @memberof CreateSubscriptionPaymentResponse
1368
1398
  */
1369
- 'failure_details'?: CreateSubscriptionPaymentAuthResponseFailureDetails;
1399
+ 'failure_details'?: SubscriptionPaymentEntityFailureDetails;
1370
1400
  /**
1371
1401
  * The charge amount of the payment.
1372
1402
  * @type {number}
1373
- * @memberof CreateSubscriptionPaymentChargeResponse
1403
+ * @memberof CreateSubscriptionPaymentResponse
1374
1404
  */
1375
1405
  'payment_amount'?: number;
1376
1406
  /**
1377
1407
  * A unique ID passed by merchant for identifying the transaction.
1378
1408
  * @type {string}
1379
- * @memberof CreateSubscriptionPaymentChargeResponse
1409
+ * @memberof CreateSubscriptionPaymentResponse
1380
1410
  */
1381
1411
  'payment_id'?: string;
1382
1412
  /**
1383
1413
  * The date on which the payment was initiated.
1384
1414
  * @type {string}
1385
- * @memberof CreateSubscriptionPaymentChargeResponse
1415
+ * @memberof CreateSubscriptionPaymentResponse
1386
1416
  */
1387
1417
  'payment_initiated_date'?: string;
1388
1418
  /**
1389
1419
  * Status of the payment.
1390
1420
  * @type {string}
1391
- * @memberof CreateSubscriptionPaymentChargeResponse
1421
+ * @memberof CreateSubscriptionPaymentResponse
1392
1422
  */
1393
1423
  'payment_status'?: string;
1394
1424
  /**
1395
1425
  * Payment type. Can be AUTH or CHARGE.
1396
1426
  * @type {string}
1397
- * @memberof CreateSubscriptionPaymentChargeResponse
1427
+ * @memberof CreateSubscriptionPaymentResponse
1398
1428
  */
1399
1429
  'payment_type'?: string;
1400
1430
  /**
1401
1431
  * A unique ID passed by merchant for identifying the subscription.
1402
1432
  * @type {string}
1403
- * @memberof CreateSubscriptionPaymentChargeResponse
1433
+ * @memberof CreateSubscriptionPaymentResponse
1404
1434
  */
1405
1435
  'subscription_id'?: string;
1406
1436
  /**
1407
- * Payment method used for the authorization.
1408
- * @type {string}
1409
- * @memberof CreateSubscriptionPaymentChargeResponse
1410
- */
1411
- 'payment_method'?: string;
1412
- }
1413
- /**
1414
- * The request to be passed for the create subscription payment API.
1415
- * @export
1416
- * @interface CreateSubscriptionPaymentRequest
1417
- */
1418
- export interface CreateSubscriptionPaymentRequest {
1419
- /**
1420
- * A unique ID passed by merchant for identifying the subscription.
1421
- * @type {string}
1422
- * @memberof CreateSubscriptionPaymentRequest
1423
- */
1424
- 'subscription_id': string;
1425
- /**
1426
- * Session ID for the subscription. Required only for Auth.
1427
- * @type {string}
1428
- * @memberof CreateSubscriptionPaymentRequest
1429
- */
1430
- 'subscription_session_id'?: string;
1431
- /**
1432
- * A unique ID passed by merchant for identifying the subscription payment.
1433
- * @type {string}
1434
- * @memberof CreateSubscriptionPaymentRequest
1435
- */
1436
- 'payment_id': string;
1437
- /**
1438
- * The charge amount of the payment. Required in case of charge.
1439
- * @type {number}
1440
- * @memberof CreateSubscriptionPaymentRequest
1441
- */
1442
- 'payment_amount'?: number;
1443
- /**
1444
- * The date on which the payment is scheduled to be processed. Required for UPI and CARD payment modes.
1445
- * @type {string}
1446
- * @memberof CreateSubscriptionPaymentRequest
1447
- */
1448
- 'payment_schedule_date'?: string;
1449
- /**
1450
- * Payment remarks.
1451
- * @type {string}
1452
- * @memberof CreateSubscriptionPaymentRequest
1437
+ * Contains a payload for auth app links in case of AUTH. For charge, the payload is empty.
1438
+ * @type {object}
1439
+ * @memberof CreateSubscriptionPaymentResponse
1453
1440
  */
1454
- 'payment_remarks'?: string;
1441
+ 'data'?: object;
1455
1442
  /**
1456
- * Payment type. Can be AUTH or CHARGE.
1443
+ * Payment method used for the authorization.
1457
1444
  * @type {string}
1458
- * @memberof CreateSubscriptionPaymentRequest
1445
+ * @memberof CreateSubscriptionPaymentResponse
1459
1446
  */
1460
- 'payment_type': string;
1461
- /**
1462
- * Payment method. Can be one of [\"upi\", \"enach\", \"pnach\", \"card\"]
1463
- * @type {object}
1464
- * @memberof CreateSubscriptionPaymentRequest
1465
- */
1466
- 'payment_method'?: object;
1447
+ 'payment_method'?: string;
1467
1448
  }
1468
1449
  /**
1469
1450
  * Request body to create a subscription refund.
@@ -1840,7 +1821,7 @@ export interface CreateVendorRequest {
1840
1821
  */
1841
1822
  'dashboard_access'?: boolean;
1842
1823
  /**
1843
- * Specify the settlement cycle to be updated. View the settlement cycle details from the \"Settlement Cycles Supported\" table. If no schedule option is configured, the settlement cycle ID \"1\" will be in effect. Select \"8\" or \"9\" if you want to schedule instant vendor settlements.
1824
+ * Specify the settlement cycle to be updated. View the settlement cycle details from the \"Settlement Cycles Supported\" table. If no schedule option is configured, the settlement cycle ID \"1\" will be in effect. Select \"8\" or \"9\" if you want to schedule instant vendor settlements.
1844
1825
  * @type {number}
1845
1826
  * @memberof CreateVendorRequest
1846
1827
  */
@@ -1987,7 +1968,7 @@ export interface CryptogramEntity {
1987
1968
  'card_display'?: string;
1988
1969
  }
1989
1970
  /**
1990
- * The customer details that are necessary.
1971
+ * The customer details that are necessary. Note that you can pass dummy details if your use case does not require the customer details.
1991
1972
  * @export
1992
1973
  * @interface CustomerDetails
1993
1974
  */
@@ -2239,6 +2220,55 @@ export interface EMIPlansArray {
2239
2220
  */
2240
2221
  'total_amount'?: number;
2241
2222
  }
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
+ }
2242
2272
  /**
2243
2273
  * ES Order Recon Request
2244
2274
  * @export
@@ -4250,6 +4280,61 @@ export interface OrderPayData {
4250
4280
  */
4251
4281
  'method'?: string;
4252
4282
  }
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
+ }
4253
4338
  /**
4254
4339
  * Order Pay response once you create a transaction for that order
4255
4340
  * @export
@@ -6665,11 +6750,6 @@ export interface StaticSplitResponseSchemeInner {
6665
6750
  */
6666
6751
  'percentage'?: string;
6667
6752
  }
6668
- /**
6669
- * @type SubsCreatePayment200Response
6670
- * @export
6671
- */
6672
- export type SubsCreatePayment200Response = CreateSubscriptionPaymentAuthResponse | CreateSubscriptionPaymentChargeResponse;
6673
6753
  /**
6674
6754
  * Bank details object
6675
6755
  * @export
@@ -6938,10 +7018,10 @@ export interface SubscriptionPaymentEntity {
6938
7018
  'cf_order_id'?: string;
6939
7019
  /**
6940
7020
  *
6941
- * @type {CreateSubscriptionPaymentAuthResponseFailureDetails}
7021
+ * @type {SubscriptionPaymentEntityFailureDetails}
6942
7022
  * @memberof SubscriptionPaymentEntity
6943
7023
  */
6944
- 'failure_details'?: CreateSubscriptionPaymentAuthResponseFailureDetails;
7024
+ 'failure_details'?: SubscriptionPaymentEntityFailureDetails;
6945
7025
  /**
6946
7026
  * The charge amount of the payment.
6947
7027
  * @type {number}
@@ -6997,6 +7077,19 @@ export interface SubscriptionPaymentEntity {
6997
7077
  */
6998
7078
  'subscription_id'?: string;
6999
7079
  }
7080
+ /**
7081
+ *
7082
+ * @export
7083
+ * @interface SubscriptionPaymentEntityFailureDetails
7084
+ */
7085
+ export interface SubscriptionPaymentEntityFailureDetails {
7086
+ /**
7087
+ * Failure reason of the payment if the payment_status is failed.
7088
+ * @type {string}
7089
+ * @memberof SubscriptionPaymentEntityFailureDetails
7090
+ */
7091
+ 'failure_reason'?: string;
7092
+ }
7000
7093
  /**
7001
7094
  * Get/Create Subscription Payment Refund Response
7002
7095
  * @export
@@ -7461,6 +7554,25 @@ export interface TransferDetailsTagsInner {
7461
7554
  */
7462
7555
  'size'?: number;
7463
7556
  }
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
+ }
7464
7576
  /**
7465
7577
  * object when you are using preauth in UPI in order pay
7466
7578
  * @export
@@ -7678,7 +7790,7 @@ export interface UpdateVendorRequest {
7678
7790
  */
7679
7791
  'dashboard_access'?: boolean;
7680
7792
  /**
7681
- * Specify the settlement cycle to be updated. View the settlement cycle details from the \"Settlement Cycles Supported\" table. If no schedule option is configured, the settlement cycle ID \"1\" will be in effect. Select \"8\" or \"9\" if you want to schedule instant vendor settlements.
7793
+ * Specify the settlement cycle to be updated. View the settlement cycle details from the \"Settlement Cycles Supported\" table. If no schedule option is configured, the settlement cycle ID \"1\" will be in effect. Select \"8\" or \"9\" if you want to schedule instant vendor settlements.
7682
7794
  * @type {number}
7683
7795
  * @memberof UpdateVendorRequest
7684
7796
  */
@@ -7806,47 +7918,10 @@ export interface UpdateVendorResponse {
7806
7918
  'bank_details'?: string;
7807
7919
  /**
7808
7920
  *
7809
- * @type {Array<UpdateVendorResponseRelatedDocsInner>}
7921
+ * @type {Array<VendorEntityRelatedDocsInner>}
7810
7922
  * @memberof UpdateVendorResponse
7811
7923
  */
7812
- 'related_docs'?: Array<UpdateVendorResponseRelatedDocsInner>;
7813
- }
7814
- /**
7815
- *
7816
- * @export
7817
- * @interface UpdateVendorResponseRelatedDocsInner
7818
- */
7819
- export interface UpdateVendorResponseRelatedDocsInner {
7820
- /**
7821
- *
7822
- * @type {string}
7823
- * @memberof UpdateVendorResponseRelatedDocsInner
7824
- */
7825
- 'vendor_id'?: string;
7826
- /**
7827
- *
7828
- * @type {string}
7829
- * @memberof UpdateVendorResponseRelatedDocsInner
7830
- */
7831
- 'doc_type'?: string;
7832
- /**
7833
- *
7834
- * @type {string}
7835
- * @memberof UpdateVendorResponseRelatedDocsInner
7836
- */
7837
- 'doc_value'?: string;
7838
- /**
7839
- *
7840
- * @type {string}
7841
- * @memberof UpdateVendorResponseRelatedDocsInner
7842
- */
7843
- 'status'?: string;
7844
- /**
7845
- *
7846
- * @type {string}
7847
- * @memberof UpdateVendorResponseRelatedDocsInner
7848
- */
7849
- 'remarks'?: string;
7924
+ 'related_docs'?: Array<VendorEntityRelatedDocsInner>;
7850
7925
  }
7851
7926
  /**
7852
7927
  * UPI collect payment method object
@@ -8130,10 +8205,10 @@ export interface VendorDocumentDownloadResponse {
8130
8205
  export interface VendorDocumentsResponse {
8131
8206
  /**
8132
8207
  *
8133
- * @type {Array<UpdateVendorResponseRelatedDocsInner>}
8208
+ * @type {Array<VendorEntityRelatedDocsInner>}
8134
8209
  * @memberof VendorDocumentsResponse
8135
8210
  */
8136
- 'documents'?: Array<UpdateVendorResponseRelatedDocsInner>;
8211
+ 'documents'?: Array<VendorEntityRelatedDocsInner>;
8137
8212
  }
8138
8213
  /**
8139
8214
  * Vendor entity object
@@ -8227,10 +8302,47 @@ export interface VendorEntity {
8227
8302
  'remarks'?: string;
8228
8303
  /**
8229
8304
  *
8230
- * @type {Array<UpdateVendorResponseRelatedDocsInner>}
8305
+ * @type {Array<VendorEntityRelatedDocsInner>}
8231
8306
  * @memberof VendorEntity
8232
8307
  */
8233
- 'related_docs'?: Array<UpdateVendorResponseRelatedDocsInner>;
8308
+ 'related_docs'?: Array<VendorEntityRelatedDocsInner>;
8309
+ }
8310
+ /**
8311
+ *
8312
+ * @export
8313
+ * @interface VendorEntityRelatedDocsInner
8314
+ */
8315
+ export interface VendorEntityRelatedDocsInner {
8316
+ /**
8317
+ *
8318
+ * @type {string}
8319
+ * @memberof VendorEntityRelatedDocsInner
8320
+ */
8321
+ 'vendor_id'?: string;
8322
+ /**
8323
+ *
8324
+ * @type {string}
8325
+ * @memberof VendorEntityRelatedDocsInner
8326
+ */
8327
+ 'doc_type'?: string;
8328
+ /**
8329
+ *
8330
+ * @type {string}
8331
+ * @memberof VendorEntityRelatedDocsInner
8332
+ */
8333
+ 'doc_value'?: string;
8334
+ /**
8335
+ *
8336
+ * @type {string}
8337
+ * @memberof VendorEntityRelatedDocsInner
8338
+ */
8339
+ 'status'?: string;
8340
+ /**
8341
+ *
8342
+ * @type {string}
8343
+ * @memberof VendorEntityRelatedDocsInner
8344
+ */
8345
+ 'remarks'?: string;
8234
8346
  }
8235
8347
  /**
8236
8348
  * Use to split order when cashfree\'s Easy Split is enabled for your account.
@@ -8653,11 +8765,12 @@ export declare class Cashfree {
8653
8765
  * @param {string} link_id The payment link ID for which you want to view the details.
8654
8766
  * @param {string} [x_request_id] Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree
8655
8767
  * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions.
8768
+ * @param {string} [status] Mention What is status of orders you want to fetch, default is PAID. Possible value: ALL, PAID
8656
8769
  * @param {*} [options] Override http request option.
8657
8770
  * @throws {RequiredError}
8658
8771
  * @memberof PaymentLinksApi
8659
8772
  */
8660
- static PGLinkFetchOrders(x_api_version: string, link_id: string, x_request_id?: string, x_idempotency_key?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentLinkOrderEntity[], any>>;
8773
+ static PGLinkFetchOrders(x_api_version: string, link_id: string, x_request_id?: string, x_idempotency_key?: string, status?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentLinkOrderEntity[], any>>;
8661
8774
  /**
8662
8775
  * Use this API to capture or void a preauthorized payment
8663
8776
  * @summary Preauthorization
@@ -8947,7 +9060,7 @@ export declare class Cashfree {
8947
9060
  * @throws {RequiredError}
8948
9061
  * @memberof SubscriptionApi
8949
9062
  */
8950
- static SubsCreatePayment(x_api_version: string, CreateSubscriptionPaymentRequest: CreateSubscriptionPaymentRequest, x_request_id?: string, x_idempotency_key?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SubsCreatePayment200Response, any>>;
9063
+ static SubsCreatePayment(x_api_version: string, CreateSubscriptionPaymentRequest: CreateSubscriptionPaymentRequest, x_request_id?: string, x_idempotency_key?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateSubscriptionPaymentResponse, any>>;
8951
9064
  /**
8952
9065
  * A plan allows your customer to identify the features you offer along with your pricing. You can create plans as per the pricing you support for your services. For each plan, you can set a pre-decided frequency and amount with which they’ll be charged. Example: Netflix Plans - Premium, Basic, Standard, Mobile. Each plan differs and caters for a particular set of audiences.
8953
9066
  * @summary Create a plan.
@@ -9076,7 +9189,7 @@ export declare class Cashfree {
9076
9189
  static SubsManageSubscriptionPayment(x_api_version: string, subscription_id: string, payment_id: string, ManageSubscriptionPaymentRequest: ManageSubscriptionPaymentRequest, x_request_id?: string, x_idempotency_key?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SubscriptionPaymentEntity, any>>;
9077
9190
  /**
9078
9191
  * Use this API to upload Physical Nach for Physical Nach Authorization.
9079
- * @summary Upload Physical Nach for Physical Nach Authorization.
9192
+ * @summary API to upload Physical Nach for Physical Nach Authorization.
9080
9193
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
9081
9194
  * @param {string} payment_id Provide the PaymentId using which the payment was created.
9082
9195
  * @param {File} file Select the .jpg file that should be uploaded or provide the path of that file. You cannot upload a file that is more than 1MB in size.
@@ -9091,7 +9204,7 @@ export declare class Cashfree {
9091
9204
  static SubscriptionDocumentUpload(x_api_version: string, payment_id: string, file: File, payment_id2: string, action: string, x_request_id?: string, x_idempotency_key?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UploadPnachImageResponse, any>>;
9092
9205
  /**
9093
9206
  * Use this API to check if a payment method is enabled for your account.
9094
- * @summary Get Eligible payment methods available for a subscription
9207
+ * @summary API to get all the payment method details available for subscription payments.
9095
9208
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
9096
9209
  * @param {SubscriptionEligibilityRequest} SubscriptionEligibilityRequest Request body to fetch subscription eligibile payment method details.
9097
9210
  * @param {string} [x_request_id] Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree