cashfree-pg 3.2.0 → 4.0.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/api.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Cashfree Payment Gateway APIs
5
5
  * Cashfree\'s Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
6
6
  *
7
- * The version of the OpenAPI document: 2022-09-01
7
+ * The version of the OpenAPI document: 2023-08-01
8
8
  * Contact: developers@cashfree.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -756,6 +756,31 @@ export const CashbackDetailsCashbackTypeEnum = {
756
756
 
757
757
  export type CashbackDetailsCashbackTypeEnum = typeof CashbackDetailsCashbackTypeEnum[keyof typeof CashbackDetailsCashbackTypeEnum];
758
758
 
759
+ /**
760
+ * Request body to create a customer at cashfree
761
+ * @export
762
+ * @interface CreateCustomerRequest
763
+ */
764
+ export interface CreateCustomerRequest {
765
+ /**
766
+ * Customer Phone Number
767
+ * @type {string}
768
+ * @memberof CreateCustomerRequest
769
+ */
770
+ 'customer_phone': string;
771
+ /**
772
+ * Customer Email
773
+ * @type {string}
774
+ * @memberof CreateCustomerRequest
775
+ */
776
+ 'customer_email'?: string;
777
+ /**
778
+ * Customer Name
779
+ * @type {string}
780
+ * @memberof CreateCustomerRequest
781
+ */
782
+ 'customer_name'?: string;
783
+ }
759
784
  /**
760
785
  * Request paramenters for link creation
761
786
  * @export
@@ -830,10 +855,10 @@ export interface CreateLinkRequest {
830
855
  'link_notes'?: { [key: string]: string; };
831
856
  /**
832
857
  *
833
- * @type {LinkMetaEntity}
858
+ * @type {LinkMetaResponseEntity}
834
859
  * @memberof CreateLinkRequest
835
860
  */
836
- 'link_meta'?: LinkMetaEntity;
861
+ 'link_meta'?: LinkMetaResponseEntity;
837
862
  }
838
863
  /**
839
864
  * create offer backend request object
@@ -1009,16 +1034,16 @@ export interface CreateTerminalRequestTerminalMeta {
1009
1034
  export interface CreateTerminalTransactionRequest {
1010
1035
  /**
1011
1036
  * cashfree order ID that was returned while creating an order.
1012
- * @type {number}
1037
+ * @type {string}
1013
1038
  * @memberof CreateTerminalTransactionRequest
1014
1039
  */
1015
- 'cf_order_id': number;
1040
+ 'cf_order_id': string;
1016
1041
  /**
1017
1042
  * cashfree terminal id. this is a required parameter when you do not provide the terminal phone number.
1018
- * @type {number}
1043
+ * @type {string}
1019
1044
  * @memberof CreateTerminalTransactionRequest
1020
1045
  */
1021
- 'cf_terminal_id'?: number;
1046
+ 'cf_terminal_id'?: string;
1022
1047
  /**
1023
1048
  * mention the payment method used for the transaction. possible values - QR_CODE, LINK.
1024
1049
  * @type {string}
@@ -1129,6 +1154,12 @@ export interface CustomerDetails {
1129
1154
  * @memberof CustomerDetails
1130
1155
  */
1131
1156
  'customer_bank_code'?: number;
1157
+ /**
1158
+ * Customer identifier at Cashfree. You will get this when you create/get customer
1159
+ * @type {string}
1160
+ * @memberof CustomerDetails
1161
+ */
1162
+ 'customer_uid'?: string;
1132
1163
  }
1133
1164
  /**
1134
1165
  * Details of the customer for whom eligibility is being checked.
@@ -1143,6 +1174,37 @@ export interface CustomerDetailsCardlessEMI {
1143
1174
  */
1144
1175
  'customer_phone': string;
1145
1176
  }
1177
+ /**
1178
+ * The complete customer entity
1179
+ * @export
1180
+ * @interface CustomerEntity
1181
+ */
1182
+ export interface CustomerEntity {
1183
+ /**
1184
+ * unique id generated by cashfree for your customer
1185
+ * @type {string}
1186
+ * @memberof CustomerEntity
1187
+ */
1188
+ 'customer_uid'?: string;
1189
+ /**
1190
+ * Customer Phone Number
1191
+ * @type {string}
1192
+ * @memberof CustomerEntity
1193
+ */
1194
+ 'customer_phone'?: string;
1195
+ /**
1196
+ * Customer Email
1197
+ * @type {string}
1198
+ * @memberof CustomerEntity
1199
+ */
1200
+ 'customer_email'?: string;
1201
+ /**
1202
+ * Customer Name
1203
+ * @type {string}
1204
+ * @memberof CustomerEntity
1205
+ */
1206
+ 'customer_name'?: string;
1207
+ }
1146
1208
  /**
1147
1209
  * detils of the discount object of offer
1148
1210
  * @export
@@ -1579,10 +1641,10 @@ export interface FetchSettlementsRequest {
1579
1641
  export interface FetchSettlementsRequestFilters {
1580
1642
  /**
1581
1643
  * List of settlement IDs for which you want the settlement reconciliation details.
1582
- * @type {Array<number>}
1644
+ * @type {Array<string>}
1583
1645
  * @memberof FetchSettlementsRequestFilters
1584
1646
  */
1585
- 'cf_settlement_ids'?: Array<number>;
1647
+ 'cf_settlement_ids'?: Array<string>;
1586
1648
  /**
1587
1649
  * List of settlement UTRs for which you want the settlement reconciliation details.
1588
1650
  * @type {Array<string>}
@@ -1845,10 +1907,10 @@ export interface LinkCustomerDetailsEntity {
1845
1907
  export interface LinkEntity {
1846
1908
  /**
1847
1909
  *
1848
- * @type {number}
1910
+ * @type {string}
1849
1911
  * @memberof LinkEntity
1850
1912
  */
1851
- 'cf_link_id'?: number;
1913
+ 'cf_link_id'?: string;
1852
1914
  /**
1853
1915
  *
1854
1916
  * @type {string}
@@ -1910,11 +1972,11 @@ export interface LinkEntity {
1910
1972
  */
1911
1973
  'customer_details'?: LinkCustomerDetailsEntity;
1912
1974
  /**
1913
- * Payment link meta information object.
1914
- * @type {{ [key: string]: string; }}
1975
+ *
1976
+ * @type {LinkMetaResponseEntity}
1915
1977
  * @memberof LinkEntity
1916
1978
  */
1917
- 'link_meta'?: { [key: string]: string; };
1979
+ 'link_meta'?: LinkMetaResponseEntity;
1918
1980
  /**
1919
1981
  *
1920
1982
  * @type {string}
@@ -1949,31 +2011,31 @@ export interface LinkEntity {
1949
2011
  /**
1950
2012
  * Payment link meta information object
1951
2013
  * @export
1952
- * @interface LinkMetaEntity
2014
+ * @interface LinkMetaResponseEntity
1953
2015
  */
1954
- export interface LinkMetaEntity {
2016
+ export interface LinkMetaResponseEntity {
1955
2017
  /**
1956
2018
  * Notification URL for server-server communication. It should be an https URL.
1957
2019
  * @type {string}
1958
- * @memberof LinkMetaEntity
2020
+ * @memberof LinkMetaResponseEntity
1959
2021
  */
1960
2022
  'notify_url'?: string;
1961
2023
  /**
1962
2024
  * If \"true\", link will directly open UPI Intent flow on mobile, and normal link flow elsewhere
1963
2025
  * @type {boolean}
1964
- * @memberof LinkMetaEntity
2026
+ * @memberof LinkMetaResponseEntity
1965
2027
  */
1966
2028
  'upi_intent'?: boolean;
1967
2029
  /**
1968
2030
  * The URL to which user will be redirected to after the payment is done on the link. Maximum length: 250.
1969
2031
  * @type {string}
1970
- * @memberof LinkMetaEntity
2032
+ * @memberof LinkMetaResponseEntity
1971
2033
  */
1972
2034
  'return_url'?: string;
1973
2035
  /**
1974
2036
  * Allowed payment modes for this link. Pass comma-separated values among following options - \"cc\", \"dc\", \"ccc\", \"ppc\", \"nb\", \"upi\", \"paypal\", \"app\". Leave it blank to show all available payment methods
1975
2037
  * @type {string}
1976
- * @memberof LinkMetaEntity
2038
+ * @memberof LinkMetaResponseEntity
1977
2039
  */
1978
2040
  'payment_methods'?: string;
1979
2041
  }
@@ -2336,12 +2398,6 @@ export interface OfferValidations {
2336
2398
  * @memberof OfferValidations
2337
2399
  */
2338
2400
  'payment_method': OfferValidationsPaymentMethod;
2339
- /**
2340
- * Maximum amount of Offer that can be availed.
2341
- * @type {number}
2342
- * @memberof OfferValidations
2343
- */
2344
- 'max_allowed': number;
2345
2401
  }
2346
2402
  /**
2347
2403
  * @type OfferValidationsPaymentMethod
@@ -2370,10 +2426,10 @@ export interface OfferWallet {
2370
2426
  export interface OrderAuthenticateEntity {
2371
2427
  /**
2372
2428
  * The payment id for which this request was sent
2373
- * @type {number}
2429
+ * @type {string}
2374
2430
  * @memberof OrderAuthenticateEntity
2375
2431
  */
2376
- 'cf_payment_id'?: number;
2432
+ 'cf_payment_id'?: string;
2377
2433
  /**
2378
2434
  * The action that was invoked for this request.
2379
2435
  * @type {string}
@@ -2491,10 +2547,10 @@ export type OrderCreateRefundRequestRefundSpeedEnum = typeof OrderCreateRefundRe
2491
2547
  export interface OrderEntity {
2492
2548
  /**
2493
2549
  * unique id generated by cashfree for your order
2494
- * @type {number}
2550
+ * @type {string}
2495
2551
  * @memberof OrderEntity
2496
2552
  */
2497
- 'cf_order_id'?: number;
2553
+ 'cf_order_id'?: string;
2498
2554
  /**
2499
2555
  * order_id sent during the api request
2500
2556
  * @type {string}
@@ -2520,7 +2576,7 @@ export interface OrderEntity {
2520
2576
  */
2521
2577
  'order_amount'?: number;
2522
2578
  /**
2523
- * Possible values are - `ACTIVE`: Order does not have a sucessful transaction yet - `PAID`: Order is PAID with one successful transaction - `EXPIRED`: Order was not PAID and not it has expired. No transaction can be initiated for an EXPIRED order.
2579
+ * Possible values are - `ACTIVE`: Order does not have a sucessful transaction yet - `PAID`: Order is PAID with one successful transaction - `EXPIRED`: Order was not PAID and not it has expired. No transaction can be initiated for an EXPIRED order. `TERMINATED`: Order terminated `TERMINATION_REQUESTED`: Order termination requested
2524
2580
  * @type {string}
2525
2581
  * @memberof OrderEntity
2526
2582
  */
@@ -2567,24 +2623,6 @@ export interface OrderEntity {
2567
2623
  * @memberof OrderEntity
2568
2624
  */
2569
2625
  'order_meta'?: OrderMeta;
2570
- /**
2571
- *
2572
- * @type {PaymentURLObject}
2573
- * @memberof OrderEntity
2574
- */
2575
- 'payments'?: PaymentURLObject;
2576
- /**
2577
- *
2578
- * @type {SettlementURLObject}
2579
- * @memberof OrderEntity
2580
- */
2581
- 'settlements'?: SettlementURLObject;
2582
- /**
2583
- *
2584
- * @type {RefundURLObject}
2585
- * @memberof OrderEntity
2586
- */
2587
- 'refunds'?: RefundURLObject;
2588
2626
  /**
2589
2627
  * Custom Tags in thr form of {\"key\":\"value\"} which can be passed for an order. A maximum of 10 tags can be added
2590
2628
  * @type {{ [key: string]: string; }}
@@ -2599,7 +2637,7 @@ export interface OrderEntity {
2599
2637
  */
2600
2638
  export interface OrderMeta {
2601
2639
  /**
2602
- * The URL to which user will be redirected to after the payment on bank OTP page. Maximum length: 250. The return_url must contain placeholder {order_id}. When redirecting the customer back to the return url from the bank’s OTP page, Cashfree will replace this placeholder with the actual value for that order.
2640
+ * The URL to which user will be redirected to after the payment on bank OTP page. Maximum length: 250. We suggest to keep context of order_id in your return_url so that you can identify the order when customer lands on your page. Example of return_url format could be https://example.com/return?order_id=myOrderId
2603
2641
  * @type {string}
2604
2642
  * @memberof OrderMeta
2605
2643
  */
@@ -2662,10 +2700,10 @@ export interface PayOrderEntity {
2662
2700
  'payment_amount'?: number;
2663
2701
  /**
2664
2702
  * Payment identifier created by Cashfree
2665
- * @type {number}
2703
+ * @type {string}
2666
2704
  * @memberof PayOrderEntity
2667
2705
  */
2668
- 'cf_payment_id'?: number;
2706
+ 'cf_payment_id'?: string;
2669
2707
  /**
2670
2708
  * One of [\"upi\", \"netbanking\", \"card\", \"app\", \"cardless_emi\", \"paylater\", \"banktransfer\"]
2671
2709
  * @type {string}
@@ -2846,10 +2884,10 @@ export interface PaylaterPaymentMethod {
2846
2884
  export interface PaymentEntity {
2847
2885
  /**
2848
2886
  *
2849
- * @type {number}
2887
+ * @type {string}
2850
2888
  * @memberof PaymentEntity
2851
2889
  */
2852
- 'cf_payment_id'?: number;
2890
+ 'cf_payment_id'?: string;
2853
2891
  /**
2854
2892
  *
2855
2893
  * @type {string}
@@ -3018,10 +3056,10 @@ export interface PaymentLinkCustomerDetails {
3018
3056
  export interface PaymentLinkOrderEntity {
3019
3057
  /**
3020
3058
  * unique id generated by cashfree for your order
3021
- * @type {number}
3059
+ * @type {string}
3022
3060
  * @memberof PaymentLinkOrderEntity
3023
3061
  */
3024
- 'cf_order_id'?: number;
3062
+ 'cf_order_id'?: string;
3025
3063
  /**
3026
3064
  * link id of the order
3027
3065
  * @type {string}
@@ -3100,24 +3138,6 @@ export interface PaymentLinkOrderEntity {
3100
3138
  * @memberof PaymentLinkOrderEntity
3101
3139
  */
3102
3140
  'order_meta'?: OrderMeta;
3103
- /**
3104
- *
3105
- * @type {PaymentURLObject}
3106
- * @memberof PaymentLinkOrderEntity
3107
- */
3108
- 'payments'?: PaymentURLObject;
3109
- /**
3110
- *
3111
- * @type {SettlementURLObject}
3112
- * @memberof PaymentLinkOrderEntity
3113
- */
3114
- 'settlements'?: SettlementURLObject;
3115
- /**
3116
- *
3117
- * @type {RefundURLObject}
3118
- * @memberof PaymentLinkOrderEntity
3119
- */
3120
- 'refunds'?: RefundURLObject;
3121
3141
  /**
3122
3142
  * Custom Tags in thr form of {\"key\":\"value\"} which can be passed for an order. A maximum of 10 tags can be added
3123
3143
  * @type {{ [key: string]: string; }}
@@ -3313,7 +3333,7 @@ export interface PaymentMethodUPIInPaymentsEntity {
3313
3333
  'upi_id'?: string;
3314
3334
  }
3315
3335
  /**
3316
- * Filter for specific Payment Methods
3336
+ * Filter for Payment Methods
3317
3337
  * @export
3318
3338
  * @interface PaymentMethodsFilters
3319
3339
  */
@@ -3375,19 +3395,6 @@ export interface PaymentModeDetails {
3375
3395
  */
3376
3396
  'code'?: number;
3377
3397
  }
3378
- /**
3379
- * URL for payment retrieval for an order
3380
- * @export
3381
- * @interface PaymentURLObject
3382
- */
3383
- export interface PaymentURLObject {
3384
- /**
3385
- *
3386
- * @type {string}
3387
- * @memberof PaymentURLObject
3388
- */
3389
- 'url'?: string;
3390
- }
3391
3398
  /**
3392
3399
  * payment webhook object
3393
3400
  * @export
@@ -3778,16 +3785,16 @@ export interface ReconEntityDataInner {
3778
3785
  'payment_service_tax'?: number;
3779
3786
  /**
3780
3787
  * Cashfree Payments unique ID to identify a payment.
3781
- * @type {number}
3788
+ * @type {string}
3782
3789
  * @memberof ReconEntityDataInner
3783
3790
  */
3784
- 'cf_payment_id'?: number;
3791
+ 'cf_payment_id'?: string;
3785
3792
  /**
3786
3793
  * Unique ID to identify the settlement.
3787
- * @type {number}
3794
+ * @type {string}
3788
3795
  * @memberof ReconEntityDataInner
3789
3796
  */
3790
- 'cf_settlement_id'?: number;
3797
+ 'cf_settlement_id'?: string;
3791
3798
  /**
3792
3799
  * Date and time when the settlement was processed.
3793
3800
  * @type {string}
@@ -3953,10 +3960,10 @@ export interface ReconEntityDataInner {
3953
3960
  export interface RefundEntity {
3954
3961
  /**
3955
3962
  * Cashfree Payments ID of the payment for which refund is initiated
3956
- * @type {number}
3963
+ * @type {string}
3957
3964
  * @memberof RefundEntity
3958
3965
  */
3959
- 'cf_payment_id'?: number;
3966
+ 'cf_payment_id'?: string;
3960
3967
  /**
3961
3968
  * Cashfree Payments ID for a refund
3962
3969
  * @type {string}
@@ -4129,19 +4136,6 @@ export interface RefundSpeed {
4129
4136
  */
4130
4137
  'message'?: string;
4131
4138
  }
4132
- /**
4133
- * URL to get refunds for order
4134
- * @export
4135
- * @interface RefundURLObject
4136
- */
4137
- export interface RefundURLObject {
4138
- /**
4139
- *
4140
- * @type {string}
4141
- * @memberof RefundURLObject
4142
- */
4143
- 'url'?: string;
4144
- }
4145
4139
  /**
4146
4140
  * refund webhook object
4147
4141
  * @export
@@ -4225,16 +4219,16 @@ export interface SavedInstrumentMeta {
4225
4219
  export interface SettlementEntity {
4226
4220
  /**
4227
4221
  *
4228
- * @type {number}
4222
+ * @type {string}
4229
4223
  * @memberof SettlementEntity
4230
4224
  */
4231
- 'cf_payment_id'?: number;
4225
+ 'cf_payment_id'?: string;
4232
4226
  /**
4233
4227
  *
4234
- * @type {number}
4228
+ * @type {string}
4235
4229
  * @memberof SettlementEntity
4236
4230
  */
4237
- 'cf_settlement_id'?: number;
4231
+ 'cf_settlement_id'?: string;
4238
4232
  /**
4239
4233
  *
4240
4234
  * @type {string}
@@ -4322,41 +4316,10 @@ export interface SettlementFetchReconRequest {
4322
4316
  'pagination': FetchSettlementsRequestPagination;
4323
4317
  /**
4324
4318
  *
4325
- * @type {SettlementFetchReconRequestFilters}
4319
+ * @type {FetchSettlementsRequestFilters}
4326
4320
  * @memberof SettlementFetchReconRequest
4327
4321
  */
4328
- 'filters': SettlementFetchReconRequestFilters;
4329
- }
4330
- /**
4331
- * Specify either the Settlement ID, Settlement UTR, or start date and end date to fetch the settlement details.
4332
- * @export
4333
- * @interface SettlementFetchReconRequestFilters
4334
- */
4335
- export interface SettlementFetchReconRequestFilters {
4336
- /**
4337
- * List of settlement IDs for which you want the settlement reconciliation details.
4338
- * @type {Array<number>}
4339
- * @memberof SettlementFetchReconRequestFilters
4340
- */
4341
- 'cf_settlement_ids'?: Array<number>;
4342
- /**
4343
- * List of settlement UTRs for which you want the settlement reconciliation details.
4344
- * @type {Array<string>}
4345
- * @memberof SettlementFetchReconRequestFilters
4346
- */
4347
- 'settlement_utrs'?: Array<string>;
4348
- /**
4349
- * Specify the start date from when you want the settlement reconciliation details.
4350
- * @type {string}
4351
- * @memberof SettlementFetchReconRequestFilters
4352
- */
4353
- 'start_date'?: string;
4354
- /**
4355
- * Specify the end date till when you want the settlement reconciliation details.
4356
- * @type {string}
4357
- * @memberof SettlementFetchReconRequestFilters
4358
- */
4359
- 'end_date'?: string;
4322
+ 'filters': FetchSettlementsRequestFilters;
4360
4323
  }
4361
4324
  /**
4362
4325
  * Recon object for settlement
@@ -4505,16 +4468,16 @@ export interface SettlementReconEntityDataInner {
4505
4468
  'payment_service_tax'?: number;
4506
4469
  /**
4507
4470
  * Cashfree Payments unique ID to identify a payment.
4508
- * @type {number}
4471
+ * @type {string}
4509
4472
  * @memberof SettlementReconEntityDataInner
4510
4473
  */
4511
- 'cf_payment_id'?: number;
4474
+ 'cf_payment_id'?: string;
4512
4475
  /**
4513
4476
  * Unique ID to identify the settlement.
4514
- * @type {number}
4477
+ * @type {string}
4515
4478
  * @memberof SettlementReconEntityDataInner
4516
4479
  */
4517
- 'cf_settlement_id'?: number;
4480
+ 'cf_settlement_id'?: string;
4518
4481
  /**
4519
4482
  * Date and time when the settlement was processed.
4520
4483
  * @type {string}
@@ -4600,19 +4563,6 @@ export interface SettlementReconEntityDataInner {
4600
4563
  */
4601
4564
  'adjustment_remarks'?: string;
4602
4565
  }
4603
- /**
4604
- * Settlement URL object
4605
- * @export
4606
- * @interface SettlementURLObject
4607
- */
4608
- export interface SettlementURLObject {
4609
- /**
4610
- *
4611
- * @type {string}
4612
- * @memberof SettlementURLObject
4613
- */
4614
- 'url'?: string;
4615
- }
4616
4566
  /**
4617
4567
  * Settlement webhook object
4618
4568
  * @export
@@ -4665,10 +4615,10 @@ export interface TerminalDetails {
4665
4615
  'added_on'?: string;
4666
4616
  /**
4667
4617
  * cashfree terminal id
4668
- * @type {number}
4618
+ * @type {string}
4669
4619
  * @memberof TerminalDetails
4670
4620
  */
4671
- 'cf_terminal_id'?: number;
4621
+ 'cf_terminal_id'?: string;
4672
4622
  /**
4673
4623
  * last instant when this terminal was updated
4674
4624
  * @type {string}
@@ -4805,10 +4755,10 @@ export interface TerminalEntity {
4805
4755
  export interface TerminalTransactionEntity {
4806
4756
  /**
4807
4757
  *
4808
- * @type {number}
4758
+ * @type {string}
4809
4759
  * @memberof TerminalTransactionEntity
4810
4760
  */
4811
- 'cf_payment_id'?: number;
4761
+ 'cf_payment_id'?: string;
4812
4762
  /**
4813
4763
  *
4814
4764
  * @type {number}
@@ -4840,6 +4790,19 @@ export interface TerminalTransactionEntity {
4840
4790
  */
4841
4791
  'timeout'?: string;
4842
4792
  }
4793
+ /**
4794
+ * Request to terminate an active order at Cashfree
4795
+ * @export
4796
+ * @interface TerminateOrderRequest
4797
+ */
4798
+ export interface TerminateOrderRequest {
4799
+ /**
4800
+ * To terminate an order, pass order_status as \"TERMINATE\". Please note, order might not be terminated - confirm with the order_status in response. \"TERMINATION_REQUESTED\" states that the request is recieved and we are working on it. If the order terminates successfully, status will change to \"TERMINATED\". Incase there\'s any active transaction which moved to success - order might not get terminated.
4801
+ * @type {string}
4802
+ * @memberof TerminateOrderRequest
4803
+ */
4804
+ 'order_status': string;
4805
+ }
4843
4806
  /**
4844
4807
  * object when you are using preauth in UPI in order pay
4845
4808
  * @export
@@ -4970,6 +4933,126 @@ export interface WalletOffer {
4970
4933
  'provider'?: string;
4971
4934
  }
4972
4935
 
4936
+ /**
4937
+ * CustomersApi - axios parameter creator
4938
+ * @export
4939
+ */
4940
+ const CustomersApiAxiosParamCreator = function (configuration?: Configuration) {
4941
+ return {
4942
+ /**
4943
+ * Create Customer at Cashfree
4944
+ * @summary Create Customer at Cashfree
4945
+
4946
+ * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
4947
+ * @param {CreateCustomerRequest} CreateCustomerRequest Request to create a new customer at Cashfree
4948
+ * @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
4949
+ * @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.
4950
+ * @param {*} [options] Override http request option.
4951
+ * @throws {RequiredError}
4952
+ * x_idempotency_key?: string,
4953
+ */
4954
+ pGCreateCustomer: async (x_api_version: string, CreateCustomerRequest: CreateCustomerRequest, x_request_id?: string, x_idempotency_key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4955
+ // verify required parameter 'x_api_version' is not null or undefined
4956
+ assertParamExists('pGCreateCustomer', 'x_api_version', x_api_version)
4957
+ // verify required parameter 'CreateCustomerRequest' is not null or undefined
4958
+ assertParamExists('pGCreateCustomer', 'CreateCustomerRequest', CreateCustomerRequest)
4959
+ const localVarPath = `/customers`;
4960
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4961
+ var url = "https://sandbox.cashfree.com/pg";
4962
+ if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) {
4963
+ url = "https://api.cashfree.com/pg"
4964
+ }
4965
+ const localVarUrlObj = new URL(localVarPath, url);
4966
+ let baseOptions;
4967
+ if (configuration) {
4968
+ baseOptions = configuration.baseOptions;
4969
+ }
4970
+
4971
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
4972
+ const localVarHeaderParameter = {} as any;
4973
+ const localVarQueryParameter = {} as any;
4974
+
4975
+ // authentication XPartnerAPIKey required
4976
+ await setApiKeyToObject(localVarHeaderParameter, "x-partner-apikey")
4977
+
4978
+ // authentication XClientSecret required
4979
+ await setApiKeyToObject(localVarHeaderParameter, "x-client-secret")
4980
+
4981
+ // authentication XPartnerMerchantID required
4982
+ await setApiKeyToObject(localVarHeaderParameter, "x-partner-merchantid")
4983
+
4984
+ // authentication XClientID required
4985
+ await setApiKeyToObject(localVarHeaderParameter, "x-client-id")
4986
+
4987
+ // authentication XClientSignatureHeader required
4988
+ await setApiKeyToObject(localVarHeaderParameter, "x-client-signature")
4989
+
4990
+
4991
+
4992
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4993
+
4994
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.2';
4995
+ if (x_api_version != null && x_api_version != undefined) {
4996
+ localVarHeaderParameter['x-api-version'] = x_api_version;
4997
+ }
4998
+
4999
+ if (x_request_id != null && x_request_id != undefined) {
5000
+ localVarHeaderParameter['x-request-id'] = x_request_id;
5001
+ }
5002
+
5003
+ if (x_idempotency_key != null && x_idempotency_key != undefined) {
5004
+ localVarHeaderParameter['x-idempotency-key'] = x_idempotency_key;
5005
+ }
5006
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5007
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5008
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5009
+ localVarRequestOptions.data = serializeDataIfNeeded(CreateCustomerRequest, localVarRequestOptions, configuration)
5010
+
5011
+ return {
5012
+ url: toPathString(localVarUrlObj),
5013
+ options: localVarRequestOptions,
5014
+ };
5015
+ },
5016
+ }
5017
+ };
5018
+
5019
+ /**
5020
+ * CustomersApi - functional programming interface
5021
+ * @export
5022
+ */
5023
+ const CustomersApiFp = function(configuration?: Configuration) {
5024
+ const localVarAxiosParamCreator = CustomersApiAxiosParamCreator(configuration)
5025
+ return {
5026
+ /**
5027
+ * Create Customer at Cashfree
5028
+ * @summary Create Customer at Cashfree
5029
+ * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
5030
+ * @param {CreateCustomerRequest} CreateCustomerRequest Request to create a new customer at Cashfree
5031
+ * @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
5032
+ * @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.
5033
+ * @param {*} [options] Override http request option.
5034
+ * @throws {RequiredError}
5035
+ */
5036
+ async pGCreateCustomer(x_api_version: string, CreateCustomerRequest: CreateCustomerRequest, x_request_id?: string, x_idempotency_key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomerEntity>> {
5037
+ const localVarAxiosArgs = await localVarAxiosParamCreator.pGCreateCustomer(x_api_version, CreateCustomerRequest, x_request_id, x_idempotency_key, options);
5038
+ var url = "https://sandbox.cashfree.com/pg";
5039
+ if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) {
5040
+ url = "https://api.cashfree.com/pg"
5041
+ }
5042
+ return createRequestFunction(localVarAxiosArgs, globalAxios, url, configuration);
5043
+ },
5044
+ }
5045
+ };
5046
+
5047
+ /**
5048
+ * CustomersApi - object-oriented interface
5049
+ * @export
5050
+ * @class CustomersApi
5051
+ * @extends {BaseAPI}
5052
+ */
5053
+
5054
+
5055
+
4973
5056
  /**
4974
5057
  * EligibilityApi - axios parameter creator
4975
5058
  * @export
@@ -4978,12 +5061,12 @@ const EligibilityApiAxiosParamCreator = function (configuration?: Configuration)
4978
5061
  return {
4979
5062
  /**
4980
5063
  * Use this API to get eligible Cardless EMI Payment Methods available for a customer on an order basis their phone number.
4981
- * @summary Get Eligible Cardless EMI
5064
+ * @summary Get Eligible Cardless EMI Payment Methods for a customer on an order
4982
5065
 
4983
5066
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
4984
5067
  * @param {EligibilityFetchCardlessEMIRequest} EligibilityFetchCardlessEMIRequest Request Body to get eligible cardless emi options for a customer and order
4985
5068
  * @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
4986
- * @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.
5069
+ * @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.
4987
5070
  * @param {*} [options] Override http request option.
4988
5071
  * @throws {RequiredError}
4989
5072
  * x_idempotency_key?: string,
@@ -5028,7 +5111,7 @@ const EligibilityApiAxiosParamCreator = function (configuration?: Configuration)
5028
5111
 
5029
5112
  localVarHeaderParameter['Content-Type'] = 'application/json';
5030
5113
 
5031
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.2.0';
5114
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.2';
5032
5115
  if (x_api_version != null && x_api_version != undefined) {
5033
5116
  localVarHeaderParameter['x-api-version'] = x_api_version;
5034
5117
  }
@@ -5052,12 +5135,12 @@ const EligibilityApiAxiosParamCreator = function (configuration?: Configuration)
5052
5135
  },
5053
5136
  /**
5054
5137
  * Use this API to get eligible offers for an order_id or order amount.
5055
- * @summary Get Eligible Offers
5138
+ * @summary Get Eligible Offers for an Order
5056
5139
 
5057
5140
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
5058
5141
  * @param {EligibilityFetchOffersRequest} EligibilityFetchOffersRequest Request Body to get eligible offers for a customer and order
5059
5142
  * @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
5060
- * @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.
5143
+ * @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.
5061
5144
  * @param {*} [options] Override http request option.
5062
5145
  * @throws {RequiredError}
5063
5146
  * x_idempotency_key?: string,
@@ -5102,7 +5185,7 @@ const EligibilityApiAxiosParamCreator = function (configuration?: Configuration)
5102
5185
 
5103
5186
  localVarHeaderParameter['Content-Type'] = 'application/json';
5104
5187
 
5105
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.2.0';
5188
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.2';
5106
5189
  if (x_api_version != null && x_api_version != undefined) {
5107
5190
  localVarHeaderParameter['x-api-version'] = x_api_version;
5108
5191
  }
@@ -5126,12 +5209,12 @@ const EligibilityApiAxiosParamCreator = function (configuration?: Configuration)
5126
5209
  },
5127
5210
  /**
5128
5211
  * Use this API to get eligible Paylater Payment Methods for a customer on an order.
5129
- * @summary Get Eligible Paylater
5212
+ * @summary Get Eligible Paylater for a customer on an order
5130
5213
 
5131
5214
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
5132
5215
  * @param {EligibilityFetchPaylaterRequest} EligibilityFetchPaylaterRequest Request Body to get eligible paylater options for a customer and order
5133
5216
  * @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
5134
- * @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.
5217
+ * @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.
5135
5218
  * @param {*} [options] Override http request option.
5136
5219
  * @throws {RequiredError}
5137
5220
  * x_idempotency_key?: string,
@@ -5176,7 +5259,7 @@ const EligibilityApiAxiosParamCreator = function (configuration?: Configuration)
5176
5259
 
5177
5260
  localVarHeaderParameter['Content-Type'] = 'application/json';
5178
5261
 
5179
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.2.0';
5262
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.2';
5180
5263
  if (x_api_version != null && x_api_version != undefined) {
5181
5264
  localVarHeaderParameter['x-api-version'] = x_api_version;
5182
5265
  }
@@ -5200,12 +5283,12 @@ const EligibilityApiAxiosParamCreator = function (configuration?: Configuration)
5200
5283
  },
5201
5284
  /**
5202
5285
  * Use this API to get eligible Payment Methods
5203
- * @summary Get Eligible Payment Methods
5286
+ * @summary Get eligible Payment Methods
5204
5287
 
5205
5288
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
5206
5289
  * @param {EligibilityFetchPaymentMethodsRequest} EligibilityFetchPaymentMethodsRequest Request Body to get eligible payment methods for an account and order
5207
5290
  * @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
5208
- * @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.
5291
+ * @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.
5209
5292
  * @param {*} [options] Override http request option.
5210
5293
  * @throws {RequiredError}
5211
5294
  * x_idempotency_key?: string,
@@ -5250,7 +5333,7 @@ const EligibilityApiAxiosParamCreator = function (configuration?: Configuration)
5250
5333
 
5251
5334
  localVarHeaderParameter['Content-Type'] = 'application/json';
5252
5335
 
5253
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.2.0';
5336
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.2';
5254
5337
  if (x_api_version != null && x_api_version != undefined) {
5255
5338
  localVarHeaderParameter['x-api-version'] = x_api_version;
5256
5339
  }
@@ -5284,11 +5367,11 @@ const EligibilityApiFp = function(configuration?: Configuration) {
5284
5367
  return {
5285
5368
  /**
5286
5369
  * Use this API to get eligible Cardless EMI Payment Methods available for a customer on an order basis their phone number.
5287
- * @summary Get Eligible Cardless EMI
5370
+ * @summary Get Eligible Cardless EMI Payment Methods for a customer on an order
5288
5371
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
5289
5372
  * @param {EligibilityFetchCardlessEMIRequest} EligibilityFetchCardlessEMIRequest Request Body to get eligible cardless emi options for a customer and order
5290
5373
  * @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
5291
- * @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.
5374
+ * @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.
5292
5375
  * @param {*} [options] Override http request option.
5293
5376
  * @throws {RequiredError}
5294
5377
  */
@@ -5302,11 +5385,11 @@ const EligibilityApiFp = function(configuration?: Configuration) {
5302
5385
  },
5303
5386
  /**
5304
5387
  * Use this API to get eligible offers for an order_id or order amount.
5305
- * @summary Get Eligible Offers
5388
+ * @summary Get Eligible Offers for an Order
5306
5389
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
5307
5390
  * @param {EligibilityFetchOffersRequest} EligibilityFetchOffersRequest Request Body to get eligible offers for a customer and order
5308
5391
  * @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
5309
- * @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.
5392
+ * @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.
5310
5393
  * @param {*} [options] Override http request option.
5311
5394
  * @throws {RequiredError}
5312
5395
  */
@@ -5320,11 +5403,11 @@ const EligibilityApiFp = function(configuration?: Configuration) {
5320
5403
  },
5321
5404
  /**
5322
5405
  * Use this API to get eligible Paylater Payment Methods for a customer on an order.
5323
- * @summary Get Eligible Paylater
5406
+ * @summary Get Eligible Paylater for a customer on an order
5324
5407
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
5325
5408
  * @param {EligibilityFetchPaylaterRequest} EligibilityFetchPaylaterRequest Request Body to get eligible paylater options for a customer and order
5326
5409
  * @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
5327
- * @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.
5410
+ * @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.
5328
5411
  * @param {*} [options] Override http request option.
5329
5412
  * @throws {RequiredError}
5330
5413
  */
@@ -5338,11 +5421,11 @@ const EligibilityApiFp = function(configuration?: Configuration) {
5338
5421
  },
5339
5422
  /**
5340
5423
  * Use this API to get eligible Payment Methods
5341
- * @summary Get Eligible Payment Methods
5424
+ * @summary Get eligible Payment Methods
5342
5425
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
5343
5426
  * @param {EligibilityFetchPaymentMethodsRequest} EligibilityFetchPaymentMethodsRequest Request Body to get eligible payment methods for an account and order
5344
5427
  * @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
5345
- * @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.
5428
+ * @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.
5346
5429
  * @param {*} [options] Override http request option.
5347
5430
  * @throws {RequiredError}
5348
5431
  */
@@ -5379,7 +5462,7 @@ const OffersApiAxiosParamCreator = function (configuration?: Configuration) {
5379
5462
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
5380
5463
  * @param {CreateOfferRequest} CreateOfferRequest Request body to create an offer at Cashfree
5381
5464
  * @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
5382
- * @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.
5465
+ * @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.
5383
5466
  * @param {*} [options] Override http request option.
5384
5467
  * @throws {RequiredError}
5385
5468
  * x_idempotency_key?: string,
@@ -5424,7 +5507,7 @@ const OffersApiAxiosParamCreator = function (configuration?: Configuration) {
5424
5507
 
5425
5508
  localVarHeaderParameter['Content-Type'] = 'application/json';
5426
5509
 
5427
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.2.0';
5510
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.2';
5428
5511
  if (x_api_version != null && x_api_version != undefined) {
5429
5512
  localVarHeaderParameter['x-api-version'] = x_api_version;
5430
5513
  }
@@ -5453,7 +5536,7 @@ const OffersApiAxiosParamCreator = function (configuration?: Configuration) {
5453
5536
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
5454
5537
  * @param {string} offer_id The offer ID for which you want to view the offer details.
5455
5538
  * @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
5456
- * @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.
5539
+ * @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.
5457
5540
  * @param {*} [options] Override http request option.
5458
5541
  * @throws {RequiredError}
5459
5542
  * x_idempotency_key?: string,
@@ -5497,7 +5580,7 @@ const OffersApiAxiosParamCreator = function (configuration?: Configuration) {
5497
5580
 
5498
5581
 
5499
5582
 
5500
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.2.0';
5583
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.2';
5501
5584
  if (x_api_version != null && x_api_version != undefined) {
5502
5585
  localVarHeaderParameter['x-api-version'] = x_api_version;
5503
5586
  }
@@ -5534,7 +5617,7 @@ const OffersApiFp = function(configuration?: Configuration) {
5534
5617
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
5535
5618
  * @param {CreateOfferRequest} CreateOfferRequest Request body to create an offer at Cashfree
5536
5619
  * @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
5537
- * @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.
5620
+ * @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.
5538
5621
  * @param {*} [options] Override http request option.
5539
5622
  * @throws {RequiredError}
5540
5623
  */
@@ -5552,7 +5635,7 @@ const OffersApiFp = function(configuration?: Configuration) {
5552
5635
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
5553
5636
  * @param {string} offer_id The offer ID for which you want to view the offer details.
5554
5637
  * @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
5555
- * @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.
5638
+ * @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.
5556
5639
  * @param {*} [options] Override http request option.
5557
5640
  * @throws {RequiredError}
5558
5641
  */
@@ -5589,7 +5672,7 @@ const OrdersApiAxiosParamCreator = function (configuration?: Configuration) {
5589
5672
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
5590
5673
  * @param {CreateOrderRequest} CreateOrderRequest Request body to create an order at cashfree
5591
5674
  * @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
5592
- * @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.
5675
+ * @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.
5593
5676
  * @param {*} [options] Override http request option.
5594
5677
  * @throws {RequiredError}
5595
5678
  * x_idempotency_key?: string,
@@ -5634,7 +5717,7 @@ const OrdersApiAxiosParamCreator = function (configuration?: Configuration) {
5634
5717
 
5635
5718
  localVarHeaderParameter['Content-Type'] = 'application/json';
5636
5719
 
5637
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.2.0';
5720
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.2';
5638
5721
  if (x_api_version != null && x_api_version != undefined) {
5639
5722
  localVarHeaderParameter['x-api-version'] = x_api_version;
5640
5723
  }
@@ -5663,7 +5746,7 @@ const OrdersApiAxiosParamCreator = function (configuration?: Configuration) {
5663
5746
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
5664
5747
  * @param {string} order_id The id which uniquely identifies your order
5665
5748
  * @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
5666
- * @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.
5749
+ * @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.
5667
5750
  * @param {*} [options] Override http request option.
5668
5751
  * @throws {RequiredError}
5669
5752
  * x_idempotency_key?: string,
@@ -5707,7 +5790,7 @@ const OrdersApiAxiosParamCreator = function (configuration?: Configuration) {
5707
5790
 
5708
5791
 
5709
5792
 
5710
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.2.0';
5793
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.2';
5711
5794
  if (x_api_version != null && x_api_version != undefined) {
5712
5795
  localVarHeaderParameter['x-api-version'] = x_api_version;
5713
5796
  }
@@ -5723,6 +5806,84 @@ const OrdersApiAxiosParamCreator = function (configuration?: Configuration) {
5723
5806
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5724
5807
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5725
5808
 
5809
+ return {
5810
+ url: toPathString(localVarUrlObj),
5811
+ options: localVarRequestOptions,
5812
+ };
5813
+ },
5814
+ /**
5815
+ * Use this API to terminate the order that was created at Cashfree\'s using the `order_id`.
5816
+ * @summary Terminate Order
5817
+
5818
+ * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
5819
+ * @param {string} order_id The id which uniquely identifies your order
5820
+ * @param {TerminateOrderRequest} TerminateOrderRequest Request body to terminate an order at cashfree
5821
+ * @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
5822
+ * @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.
5823
+ * @param {*} [options] Override http request option.
5824
+ * @throws {RequiredError}
5825
+ * x_request_id?: string,
5826
+ */
5827
+ pGTerminateOrder: async (x_api_version: string, order_id: string, TerminateOrderRequest: TerminateOrderRequest, x_request_id?: string, x_idempotency_key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
5828
+ // verify required parameter 'x_api_version' is not null or undefined
5829
+ assertParamExists('pGTerminateOrder', 'x_api_version', x_api_version)
5830
+ // verify required parameter 'order_id' is not null or undefined
5831
+ assertParamExists('pGTerminateOrder', 'order_id', order_id)
5832
+ // verify required parameter 'TerminateOrderRequest' is not null or undefined
5833
+ assertParamExists('pGTerminateOrder', 'TerminateOrderRequest', TerminateOrderRequest)
5834
+ const localVarPath = `/orders/{order_id}`
5835
+ .replace(`{${"order_id"}}`, encodeURIComponent(String(order_id)));
5836
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5837
+ var url = "https://sandbox.cashfree.com/pg";
5838
+ if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) {
5839
+ url = "https://api.cashfree.com/pg"
5840
+ }
5841
+ const localVarUrlObj = new URL(localVarPath, url);
5842
+ let baseOptions;
5843
+ if (configuration) {
5844
+ baseOptions = configuration.baseOptions;
5845
+ }
5846
+
5847
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
5848
+ const localVarHeaderParameter = {} as any;
5849
+ const localVarQueryParameter = {} as any;
5850
+
5851
+ // authentication XPartnerAPIKey required
5852
+ await setApiKeyToObject(localVarHeaderParameter, "x-partner-apikey")
5853
+
5854
+ // authentication XClientSecret required
5855
+ await setApiKeyToObject(localVarHeaderParameter, "x-client-secret")
5856
+
5857
+ // authentication XPartnerMerchantID required
5858
+ await setApiKeyToObject(localVarHeaderParameter, "x-partner-merchantid")
5859
+
5860
+ // authentication XClientID required
5861
+ await setApiKeyToObject(localVarHeaderParameter, "x-client-id")
5862
+
5863
+ // authentication XClientSignatureHeader required
5864
+ await setApiKeyToObject(localVarHeaderParameter, "x-client-signature")
5865
+
5866
+
5867
+
5868
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5869
+
5870
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.2';
5871
+ if (x_api_version != null && x_api_version != undefined) {
5872
+ localVarHeaderParameter['x-api-version'] = x_api_version;
5873
+ }
5874
+
5875
+ if (x_request_id != null && x_request_id != undefined) {
5876
+ localVarHeaderParameter['x-request-id'] = x_request_id;
5877
+ }
5878
+
5879
+ if (x_idempotency_key != null && x_idempotency_key != undefined) {
5880
+ localVarHeaderParameter['x-idempotency-key'] = x_idempotency_key;
5881
+ }
5882
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5883
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5884
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5885
+ localVarRequestOptions.data = serializeDataIfNeeded(TerminateOrderRequest, localVarRequestOptions, configuration)
5886
+
5726
5887
  return {
5727
5888
  url: toPathString(localVarUrlObj),
5728
5889
  options: localVarRequestOptions,
@@ -5744,7 +5905,7 @@ const OrdersApiFp = function(configuration?: Configuration) {
5744
5905
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
5745
5906
  * @param {CreateOrderRequest} CreateOrderRequest Request body to create an order at cashfree
5746
5907
  * @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
5747
- * @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.
5908
+ * @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.
5748
5909
  * @param {*} [options] Override http request option.
5749
5910
  * @throws {RequiredError}
5750
5911
  */
@@ -5762,7 +5923,7 @@ const OrdersApiFp = function(configuration?: Configuration) {
5762
5923
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
5763
5924
  * @param {string} order_id The id which uniquely identifies your order
5764
5925
  * @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
5765
- * @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.
5926
+ * @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.
5766
5927
  * @param {*} [options] Override http request option.
5767
5928
  * @throws {RequiredError}
5768
5929
  */
@@ -5774,6 +5935,25 @@ const OrdersApiFp = function(configuration?: Configuration) {
5774
5935
  }
5775
5936
  return createRequestFunction(localVarAxiosArgs, globalAxios, url, configuration);
5776
5937
  },
5938
+ /**
5939
+ * Use this API to terminate the order that was created at Cashfree\'s using the `order_id`.
5940
+ * @summary Terminate Order
5941
+ * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
5942
+ * @param {string} order_id The id which uniquely identifies your order
5943
+ * @param {TerminateOrderRequest} TerminateOrderRequest Request body to terminate an order at cashfree
5944
+ * @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
5945
+ * @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.
5946
+ * @param {*} [options] Override http request option.
5947
+ * @throws {RequiredError}
5948
+ */
5949
+ async pGTerminateOrder(x_api_version: string, order_id: string, TerminateOrderRequest: TerminateOrderRequest, x_request_id?: string, x_idempotency_key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderEntity>> {
5950
+ const localVarAxiosArgs = await localVarAxiosParamCreator.pGTerminateOrder(x_api_version, order_id, TerminateOrderRequest, x_request_id, x_idempotency_key, options);
5951
+ var url = "https://sandbox.cashfree.com/pg";
5952
+ if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) {
5953
+ url = "https://api.cashfree.com/pg"
5954
+ }
5955
+ return createRequestFunction(localVarAxiosArgs, globalAxios, url, configuration);
5956
+ },
5777
5957
  }
5778
5958
  };
5779
5959
 
@@ -5800,7 +5980,7 @@ const PGReconciliationApiAxiosParamCreator = function (configuration?: Configura
5800
5980
  * @param {FetchReconRequest} FetchReconRequest Request Body for the reconciliation
5801
5981
  * @param {string} [Content_Type] application/json
5802
5982
  * @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
5803
- * @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.
5983
+ * @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.
5804
5984
  * @param {string} [Accept] application/json
5805
5985
  * @param {*} [options] Override http request option.
5806
5986
  * @throws {RequiredError}
@@ -5846,7 +6026,7 @@ const PGReconciliationApiAxiosParamCreator = function (configuration?: Configura
5846
6026
 
5847
6027
  localVarHeaderParameter['Content-Type'] = 'application/json';
5848
6028
 
5849
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.2.0';
6029
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.2';
5850
6030
  if (x_api_version != null && x_api_version != undefined) {
5851
6031
  localVarHeaderParameter['x-api-version'] = x_api_version;
5852
6032
  }
@@ -5885,7 +6065,7 @@ const PGReconciliationApiFp = function(configuration?: Configuration) {
5885
6065
  * @param {FetchReconRequest} FetchReconRequest Request Body for the reconciliation
5886
6066
  * @param {string} [Content_Type] application/json
5887
6067
  * @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
5888
- * @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.
6068
+ * @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.
5889
6069
  * @param {string} [Accept] application/json
5890
6070
  * @param {*} [options] Override http request option.
5891
6071
  * @throws {RequiredError}
@@ -5923,7 +6103,7 @@ const PaymentLinksApiAxiosParamCreator = function (configuration?: Configuration
5923
6103
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
5924
6104
  * @param {string} link_id The payment link ID for which you want to view the details.
5925
6105
  * @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
5926
- * @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.
6106
+ * @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.
5927
6107
  * @param {*} [options] Override http request option.
5928
6108
  * @throws {RequiredError}
5929
6109
  * x_idempotency_key?: string,
@@ -5967,7 +6147,7 @@ const PaymentLinksApiAxiosParamCreator = function (configuration?: Configuration
5967
6147
 
5968
6148
 
5969
6149
 
5970
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.2.0';
6150
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.2';
5971
6151
  if (x_api_version != null && x_api_version != undefined) {
5972
6152
  localVarHeaderParameter['x-api-version'] = x_api_version;
5973
6153
  }
@@ -5995,7 +6175,7 @@ const PaymentLinksApiAxiosParamCreator = function (configuration?: Configuration
5995
6175
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
5996
6176
  * @param {CreateLinkRequest} CreateLinkRequest Request Body to Create Payment Links
5997
6177
  * @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
5998
- * @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.
6178
+ * @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.
5999
6179
  * @param {*} [options] Override http request option.
6000
6180
  * @throws {RequiredError}
6001
6181
  * x_idempotency_key?: string,
@@ -6040,7 +6220,7 @@ const PaymentLinksApiAxiosParamCreator = function (configuration?: Configuration
6040
6220
 
6041
6221
  localVarHeaderParameter['Content-Type'] = 'application/json';
6042
6222
 
6043
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.2.0';
6223
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.2';
6044
6224
  if (x_api_version != null && x_api_version != undefined) {
6045
6225
  localVarHeaderParameter['x-api-version'] = x_api_version;
6046
6226
  }
@@ -6069,7 +6249,7 @@ const PaymentLinksApiAxiosParamCreator = function (configuration?: Configuration
6069
6249
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
6070
6250
  * @param {string} link_id The payment link ID for which you want to view the details.
6071
6251
  * @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
6072
- * @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.
6252
+ * @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.
6073
6253
  * @param {*} [options] Override http request option.
6074
6254
  * @throws {RequiredError}
6075
6255
  * x_idempotency_key?: string,
@@ -6113,7 +6293,7 @@ const PaymentLinksApiAxiosParamCreator = function (configuration?: Configuration
6113
6293
 
6114
6294
 
6115
6295
 
6116
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.2.0';
6296
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.2';
6117
6297
  if (x_api_version != null && x_api_version != undefined) {
6118
6298
  localVarHeaderParameter['x-api-version'] = x_api_version;
6119
6299
  }
@@ -6141,7 +6321,7 @@ const PaymentLinksApiAxiosParamCreator = function (configuration?: Configuration
6141
6321
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
6142
6322
  * @param {string} link_id The payment link ID for which you want to view the details.
6143
6323
  * @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
6144
- * @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.
6324
+ * @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.
6145
6325
  * @param {*} [options] Override http request option.
6146
6326
  * @throws {RequiredError}
6147
6327
  * x_idempotency_key?: string,
@@ -6185,7 +6365,7 @@ const PaymentLinksApiAxiosParamCreator = function (configuration?: Configuration
6185
6365
 
6186
6366
 
6187
6367
 
6188
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.2.0';
6368
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.2';
6189
6369
  if (x_api_version != null && x_api_version != undefined) {
6190
6370
  localVarHeaderParameter['x-api-version'] = x_api_version;
6191
6371
  }
@@ -6222,7 +6402,7 @@ const PaymentLinksApiFp = function(configuration?: Configuration) {
6222
6402
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
6223
6403
  * @param {string} link_id The payment link ID for which you want to view the details.
6224
6404
  * @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
6225
- * @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.
6405
+ * @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.
6226
6406
  * @param {*} [options] Override http request option.
6227
6407
  * @throws {RequiredError}
6228
6408
  */
@@ -6240,7 +6420,7 @@ const PaymentLinksApiFp = function(configuration?: Configuration) {
6240
6420
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
6241
6421
  * @param {CreateLinkRequest} CreateLinkRequest Request Body to Create Payment Links
6242
6422
  * @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
6243
- * @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.
6423
+ * @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.
6244
6424
  * @param {*} [options] Override http request option.
6245
6425
  * @throws {RequiredError}
6246
6426
  */
@@ -6258,7 +6438,7 @@ const PaymentLinksApiFp = function(configuration?: Configuration) {
6258
6438
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
6259
6439
  * @param {string} link_id The payment link ID for which you want to view the details.
6260
6440
  * @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
6261
- * @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.
6441
+ * @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.
6262
6442
  * @param {*} [options] Override http request option.
6263
6443
  * @throws {RequiredError}
6264
6444
  */
@@ -6276,7 +6456,7 @@ const PaymentLinksApiFp = function(configuration?: Configuration) {
6276
6456
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
6277
6457
  * @param {string} link_id The payment link ID for which you want to view the details.
6278
6458
  * @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
6279
- * @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.
6459
+ * @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.
6280
6460
  * @param {*} [options] Override http request option.
6281
6461
  * @throws {RequiredError}
6282
6462
  */
@@ -6314,7 +6494,7 @@ const PaymentsApiAxiosParamCreator = function (configuration?: Configuration) {
6314
6494
  * @param {string} order_id The id which uniquely identifies your order
6315
6495
  * @param {AuthorizeOrderRequest} AuthorizeOrderRequest Request to Capture or Void Transactions
6316
6496
  * @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
6317
- * @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.
6497
+ * @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.
6318
6498
  * @param {*} [options] Override http request option.
6319
6499
  * @throws {RequiredError}
6320
6500
  * x_request_id?: string,
@@ -6362,7 +6542,7 @@ const PaymentsApiAxiosParamCreator = function (configuration?: Configuration) {
6362
6542
 
6363
6543
  localVarHeaderParameter['Content-Type'] = 'application/json';
6364
6544
 
6365
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.2.0';
6545
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.2';
6366
6546
  if (x_api_version != null && x_api_version != undefined) {
6367
6547
  localVarHeaderParameter['x-api-version'] = x_api_version;
6368
6548
  }
@@ -6392,7 +6572,7 @@ const PaymentsApiAxiosParamCreator = function (configuration?: Configuration) {
6392
6572
  * @param {string} cf_payment_id The Cashfree payment or transaction ID.
6393
6573
  * @param {OrderAuthenticatePaymentRequest} OrderAuthenticatePaymentRequest Request body to submit/resend headless OTP. To use this API make sure you have headless OTP enabled for your account
6394
6574
  * @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
6395
- * @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.
6575
+ * @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.
6396
6576
  * @param {*} [options] Override http request option.
6397
6577
  * @throws {RequiredError}
6398
6578
  * x_request_id?: string,
@@ -6425,7 +6605,7 @@ const PaymentsApiAxiosParamCreator = function (configuration?: Configuration) {
6425
6605
 
6426
6606
  localVarHeaderParameter['Content-Type'] = 'application/json';
6427
6607
 
6428
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.2.0';
6608
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.2';
6429
6609
  if (x_api_version != null && x_api_version != undefined) {
6430
6610
  localVarHeaderParameter['x-api-version'] = x_api_version;
6431
6611
  }
@@ -6455,7 +6635,7 @@ const PaymentsApiAxiosParamCreator = function (configuration?: Configuration) {
6455
6635
  * @param {string} order_id The id which uniquely identifies your order
6456
6636
  * @param {string} cf_payment_id The Cashfree payment or transaction ID.
6457
6637
  * @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
6458
- * @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.
6638
+ * @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.
6459
6639
  * @param {*} [options] Override http request option.
6460
6640
  * @throws {RequiredError}
6461
6641
  * x_request_id?: string,
@@ -6502,7 +6682,7 @@ const PaymentsApiAxiosParamCreator = function (configuration?: Configuration) {
6502
6682
 
6503
6683
 
6504
6684
 
6505
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.2.0';
6685
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.2';
6506
6686
  if (x_api_version != null && x_api_version != undefined) {
6507
6687
  localVarHeaderParameter['x-api-version'] = x_api_version;
6508
6688
  }
@@ -6530,7 +6710,7 @@ const PaymentsApiAxiosParamCreator = function (configuration?: Configuration) {
6530
6710
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
6531
6711
  * @param {string} order_id The id which uniquely identifies your order
6532
6712
  * @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
6533
- * @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.
6713
+ * @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.
6534
6714
  * @param {*} [options] Override http request option.
6535
6715
  * @throws {RequiredError}
6536
6716
  * x_idempotency_key?: string,
@@ -6574,7 +6754,7 @@ const PaymentsApiAxiosParamCreator = function (configuration?: Configuration) {
6574
6754
 
6575
6755
 
6576
6756
 
6577
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.2.0';
6757
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.2';
6578
6758
  if (x_api_version != null && x_api_version != undefined) {
6579
6759
  localVarHeaderParameter['x-api-version'] = x_api_version;
6580
6760
  }
@@ -6602,7 +6782,7 @@ const PaymentsApiAxiosParamCreator = function (configuration?: Configuration) {
6602
6782
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
6603
6783
  * @param {PayOrderRequest} PayOrderRequest Request body to create a transaction at cashfree using &#x60;payment_session_id&#x60;
6604
6784
  * @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
6605
- * @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.
6785
+ * @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.
6606
6786
  * @param {*} [options] Override http request option.
6607
6787
  * @throws {RequiredError}
6608
6788
  * x_idempotency_key?: string,
@@ -6632,7 +6812,7 @@ const PaymentsApiAxiosParamCreator = function (configuration?: Configuration) {
6632
6812
 
6633
6813
  localVarHeaderParameter['Content-Type'] = 'application/json';
6634
6814
 
6635
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.2.0';
6815
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.2';
6636
6816
  if (x_api_version != null && x_api_version != undefined) {
6637
6817
  localVarHeaderParameter['x-api-version'] = x_api_version;
6638
6818
  }
@@ -6671,7 +6851,7 @@ const PaymentsApiFp = function(configuration?: Configuration) {
6671
6851
  * @param {string} order_id The id which uniquely identifies your order
6672
6852
  * @param {AuthorizeOrderRequest} AuthorizeOrderRequest Request to Capture or Void Transactions
6673
6853
  * @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
6674
- * @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.
6854
+ * @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.
6675
6855
  * @param {*} [options] Override http request option.
6676
6856
  * @throws {RequiredError}
6677
6857
  */
@@ -6690,7 +6870,7 @@ const PaymentsApiFp = function(configuration?: Configuration) {
6690
6870
  * @param {string} cf_payment_id The Cashfree payment or transaction ID.
6691
6871
  * @param {OrderAuthenticatePaymentRequest} OrderAuthenticatePaymentRequest Request body to submit/resend headless OTP. To use this API make sure you have headless OTP enabled for your account
6692
6872
  * @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
6693
- * @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.
6873
+ * @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.
6694
6874
  * @param {*} [options] Override http request option.
6695
6875
  * @throws {RequiredError}
6696
6876
  */
@@ -6709,7 +6889,7 @@ const PaymentsApiFp = function(configuration?: Configuration) {
6709
6889
  * @param {string} order_id The id which uniquely identifies your order
6710
6890
  * @param {string} cf_payment_id The Cashfree payment or transaction ID.
6711
6891
  * @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
6712
- * @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.
6892
+ * @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.
6713
6893
  * @param {*} [options] Override http request option.
6714
6894
  * @throws {RequiredError}
6715
6895
  */
@@ -6727,7 +6907,7 @@ const PaymentsApiFp = function(configuration?: Configuration) {
6727
6907
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
6728
6908
  * @param {string} order_id The id which uniquely identifies your order
6729
6909
  * @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
6730
- * @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.
6910
+ * @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.
6731
6911
  * @param {*} [options] Override http request option.
6732
6912
  * @throws {RequiredError}
6733
6913
  */
@@ -6745,7 +6925,7 @@ const PaymentsApiFp = function(configuration?: Configuration) {
6745
6925
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
6746
6926
  * @param {PayOrderRequest} PayOrderRequest Request body to create a transaction at cashfree using &#x60;payment_session_id&#x60;
6747
6927
  * @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
6748
- * @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.
6928
+ * @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.
6749
6929
  * @param {*} [options] Override http request option.
6750
6930
  * @throws {RequiredError}
6751
6931
  */
@@ -6783,7 +6963,7 @@ const RefundsApiAxiosParamCreator = function (configuration?: Configuration) {
6783
6963
  * @param {string} order_id The id which uniquely identifies your order
6784
6964
  * @param {OrderCreateRefundRequest} OrderCreateRefundRequest Request Body to Create Refunds
6785
6965
  * @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
6786
- * @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.
6966
+ * @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.
6787
6967
  * @param {*} [options] Override http request option.
6788
6968
  * @throws {RequiredError}
6789
6969
  * x_request_id?: string,
@@ -6831,7 +7011,7 @@ const RefundsApiAxiosParamCreator = function (configuration?: Configuration) {
6831
7011
 
6832
7012
  localVarHeaderParameter['Content-Type'] = 'application/json';
6833
7013
 
6834
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.2.0';
7014
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.2';
6835
7015
  if (x_api_version != null && x_api_version != undefined) {
6836
7016
  localVarHeaderParameter['x-api-version'] = x_api_version;
6837
7017
  }
@@ -6861,7 +7041,7 @@ const RefundsApiAxiosParamCreator = function (configuration?: Configuration) {
6861
7041
  * @param {string} order_id The id which uniquely identifies your order
6862
7042
  * @param {string} refund_id Refund Id of the refund you want to fetch.
6863
7043
  * @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
6864
- * @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.
7044
+ * @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.
6865
7045
  * @param {*} [options] Override http request option.
6866
7046
  * @throws {RequiredError}
6867
7047
  * x_request_id?: string,
@@ -6908,7 +7088,7 @@ const RefundsApiAxiosParamCreator = function (configuration?: Configuration) {
6908
7088
 
6909
7089
 
6910
7090
 
6911
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.2.0';
7091
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.2';
6912
7092
  if (x_api_version != null && x_api_version != undefined) {
6913
7093
  localVarHeaderParameter['x-api-version'] = x_api_version;
6914
7094
  }
@@ -6936,7 +7116,7 @@ const RefundsApiAxiosParamCreator = function (configuration?: Configuration) {
6936
7116
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
6937
7117
  * @param {string} order_id The id which uniquely identifies your order
6938
7118
  * @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
6939
- * @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.
7119
+ * @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.
6940
7120
  * @param {*} [options] Override http request option.
6941
7121
  * @throws {RequiredError}
6942
7122
  * x_idempotency_key?: string,
@@ -6980,7 +7160,7 @@ const RefundsApiAxiosParamCreator = function (configuration?: Configuration) {
6980
7160
 
6981
7161
 
6982
7162
 
6983
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.2.0';
7163
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.2';
6984
7164
  if (x_api_version != null && x_api_version != undefined) {
6985
7165
  localVarHeaderParameter['x-api-version'] = x_api_version;
6986
7166
  }
@@ -7018,7 +7198,7 @@ const RefundsApiFp = function(configuration?: Configuration) {
7018
7198
  * @param {string} order_id The id which uniquely identifies your order
7019
7199
  * @param {OrderCreateRefundRequest} OrderCreateRefundRequest Request Body to Create Refunds
7020
7200
  * @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
7021
- * @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.
7201
+ * @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.
7022
7202
  * @param {*} [options] Override http request option.
7023
7203
  * @throws {RequiredError}
7024
7204
  */
@@ -7037,7 +7217,7 @@ const RefundsApiFp = function(configuration?: Configuration) {
7037
7217
  * @param {string} order_id The id which uniquely identifies your order
7038
7218
  * @param {string} refund_id Refund Id of the refund you want to fetch.
7039
7219
  * @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
7040
- * @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.
7220
+ * @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.
7041
7221
  * @param {*} [options] Override http request option.
7042
7222
  * @throws {RequiredError}
7043
7223
  */
@@ -7055,7 +7235,7 @@ const RefundsApiFp = function(configuration?: Configuration) {
7055
7235
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
7056
7236
  * @param {string} order_id The id which uniquely identifies your order
7057
7237
  * @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
7058
- * @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.
7238
+ * @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.
7059
7239
  * @param {*} [options] Override http request option.
7060
7240
  * @throws {RequiredError}
7061
7241
  */
@@ -7093,7 +7273,7 @@ const SettlementReconciliationApiAxiosParamCreator = function (configuration?: C
7093
7273
  * @param {FetchSettlementsRequest} FetchSettlementsRequest Request Body to get the settlements
7094
7274
  * @param {string} [Content_Type] application/json
7095
7275
  * @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
7096
- * @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.
7276
+ * @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.
7097
7277
  * @param {string} [Accept] application/json
7098
7278
  * @param {*} [options] Override http request option.
7099
7279
  * @throws {RequiredError}
@@ -7139,7 +7319,7 @@ const SettlementReconciliationApiAxiosParamCreator = function (configuration?: C
7139
7319
 
7140
7320
  localVarHeaderParameter['Content-Type'] = 'application/json';
7141
7321
 
7142
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.2.0';
7322
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.2';
7143
7323
  if (x_api_version != null && x_api_version != undefined) {
7144
7324
  localVarHeaderParameter['x-api-version'] = x_api_version;
7145
7325
  }
@@ -7169,7 +7349,7 @@ const SettlementReconciliationApiAxiosParamCreator = function (configuration?: C
7169
7349
  * @param {SettlementFetchReconRequest} SettlementFetchReconRequest Request Body for the settlement reconciliation
7170
7350
  * @param {string} [Content_Type] application/json
7171
7351
  * @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
7172
- * @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.
7352
+ * @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.
7173
7353
  * @param {string} [Accept] application/json
7174
7354
  * @param {*} [options] Override http request option.
7175
7355
  * @throws {RequiredError}
@@ -7215,7 +7395,7 @@ const SettlementReconciliationApiAxiosParamCreator = function (configuration?: C
7215
7395
 
7216
7396
  localVarHeaderParameter['Content-Type'] = 'application/json';
7217
7397
 
7218
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.2.0';
7398
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.2';
7219
7399
  if (x_api_version != null && x_api_version != undefined) {
7220
7400
  localVarHeaderParameter['x-api-version'] = x_api_version;
7221
7401
  }
@@ -7254,7 +7434,7 @@ const SettlementReconciliationApiFp = function(configuration?: Configuration) {
7254
7434
  * @param {FetchSettlementsRequest} FetchSettlementsRequest Request Body to get the settlements
7255
7435
  * @param {string} [Content_Type] application/json
7256
7436
  * @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
7257
- * @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.
7437
+ * @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.
7258
7438
  * @param {string} [Accept] application/json
7259
7439
  * @param {*} [options] Override http request option.
7260
7440
  * @throws {RequiredError}
@@ -7274,7 +7454,7 @@ const SettlementReconciliationApiFp = function(configuration?: Configuration) {
7274
7454
  * @param {SettlementFetchReconRequest} SettlementFetchReconRequest Request Body for the settlement reconciliation
7275
7455
  * @param {string} [Content_Type] application/json
7276
7456
  * @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
7277
- * @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.
7457
+ * @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.
7278
7458
  * @param {string} [Accept] application/json
7279
7459
  * @param {*} [options] Override http request option.
7280
7460
  * @throws {RequiredError}
@@ -7312,7 +7492,7 @@ const SettlementsApiAxiosParamCreator = function (configuration?: Configuration)
7312
7492
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
7313
7493
  * @param {string} order_id The id which uniquely identifies your order
7314
7494
  * @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
7315
- * @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.
7495
+ * @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.
7316
7496
  * @param {*} [options] Override http request option.
7317
7497
  * @throws {RequiredError}
7318
7498
  * x_idempotency_key?: string,
@@ -7356,7 +7536,7 @@ const SettlementsApiAxiosParamCreator = function (configuration?: Configuration)
7356
7536
 
7357
7537
 
7358
7538
 
7359
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.2.0';
7539
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.2';
7360
7540
  if (x_api_version != null && x_api_version != undefined) {
7361
7541
  localVarHeaderParameter['x-api-version'] = x_api_version;
7362
7542
  }
@@ -7393,7 +7573,7 @@ const SettlementsApiFp = function(configuration?: Configuration) {
7393
7573
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
7394
7574
  * @param {string} order_id The id which uniquely identifies your order
7395
7575
  * @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
7396
- * @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.
7576
+ * @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.
7397
7577
  * @param {*} [options] Override http request option.
7398
7578
  * @throws {RequiredError}
7399
7579
  */
@@ -7430,7 +7610,7 @@ const SoftPOSApiAxiosParamCreator = function (configuration?: Configuration) {
7430
7610
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
7431
7611
  * @param {CreateTerminalRequest} CreateTerminalRequest Request Body to Create Terminal for SPOS
7432
7612
  * @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
7433
- * @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.
7613
+ * @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.
7434
7614
  * @param {*} [options] Override http request option.
7435
7615
  * @throws {RequiredError}
7436
7616
  * x_idempotency_key?: string,
@@ -7475,7 +7655,7 @@ const SoftPOSApiAxiosParamCreator = function (configuration?: Configuration) {
7475
7655
 
7476
7656
  localVarHeaderParameter['Content-Type'] = 'application/json';
7477
7657
 
7478
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.2.0';
7658
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.2';
7479
7659
  if (x_api_version != null && x_api_version != undefined) {
7480
7660
  localVarHeaderParameter['x-api-version'] = x_api_version;
7481
7661
  }
@@ -7499,12 +7679,12 @@ const SoftPOSApiAxiosParamCreator = function (configuration?: Configuration) {
7499
7679
  },
7500
7680
  /**
7501
7681
  * Use this API to create a new terminal transaction. To use this API you should first create an order using the Create Order API. Also, you need to enter the terminal details while creating the order and pass the same terminal information while creating a transaction using the below mentioned API.
7502
- * @summary Create Terminal
7682
+ * @summary Create Terminal Transaction
7503
7683
 
7504
7684
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
7505
7685
  * @param {CreateTerminalTransactionRequest} CreateTerminalTransactionRequest Request body to create a terminal transaction
7506
7686
  * @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
7507
- * @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.
7687
+ * @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.
7508
7688
  * @param {*} [options] Override http request option.
7509
7689
  * @throws {RequiredError}
7510
7690
  * x_idempotency_key?: string,
@@ -7549,7 +7729,7 @@ const SoftPOSApiAxiosParamCreator = function (configuration?: Configuration) {
7549
7729
 
7550
7730
  localVarHeaderParameter['Content-Type'] = 'application/json';
7551
7731
 
7552
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.2.0';
7732
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.2';
7553
7733
  if (x_api_version != null && x_api_version != undefined) {
7554
7734
  localVarHeaderParameter['x-api-version'] = x_api_version;
7555
7735
  }
@@ -7578,7 +7758,7 @@ const SoftPOSApiAxiosParamCreator = function (configuration?: Configuration) {
7578
7758
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
7579
7759
  * @param {string} terminal_phone_no The terminal for which you want to view the order details.
7580
7760
  * @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
7581
- * @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.
7761
+ * @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.
7582
7762
  * @param {*} [options] Override http request option.
7583
7763
  * @throws {RequiredError}
7584
7764
  * x_idempotency_key?: string,
@@ -7622,7 +7802,7 @@ const SoftPOSApiAxiosParamCreator = function (configuration?: Configuration) {
7622
7802
 
7623
7803
 
7624
7804
 
7625
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.2.0';
7805
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.2';
7626
7806
  if (x_api_version != null && x_api_version != undefined) {
7627
7807
  localVarHeaderParameter['x-api-version'] = x_api_version;
7628
7808
  }
@@ -7651,7 +7831,7 @@ const SoftPOSApiAxiosParamCreator = function (configuration?: Configuration) {
7651
7831
  * @param {string} terminal_phone_no Phone number assigned to the terminal. Required if you are not providing the cf_terminal_id in the request.
7652
7832
  * @param {string} cf_terminal_id Cashfree terminal id for which you want to get staticQRs. Required if you are not providing the terminal_phone_number in the request.
7653
7833
  * @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
7654
- * @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.
7834
+ * @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.
7655
7835
  * @param {*} [options] Override http request option.
7656
7836
  * @throws {RequiredError}
7657
7837
  * x_request_id?: string,
@@ -7704,7 +7884,7 @@ const SoftPOSApiAxiosParamCreator = function (configuration?: Configuration) {
7704
7884
 
7705
7885
 
7706
7886
 
7707
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.2.0';
7887
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.2';
7708
7888
  if (x_api_version != null && x_api_version != undefined) {
7709
7889
  localVarHeaderParameter['x-api-version'] = x_api_version;
7710
7890
  }
@@ -7741,7 +7921,7 @@ const SoftPOSApiFp = function(configuration?: Configuration) {
7741
7921
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
7742
7922
  * @param {CreateTerminalRequest} CreateTerminalRequest Request Body to Create Terminal for SPOS
7743
7923
  * @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
7744
- * @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.
7924
+ * @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.
7745
7925
  * @param {*} [options] Override http request option.
7746
7926
  * @throws {RequiredError}
7747
7927
  */
@@ -7755,11 +7935,11 @@ const SoftPOSApiFp = function(configuration?: Configuration) {
7755
7935
  },
7756
7936
  /**
7757
7937
  * Use this API to create a new terminal transaction. To use this API you should first create an order using the Create Order API. Also, you need to enter the terminal details while creating the order and pass the same terminal information while creating a transaction using the below mentioned API.
7758
- * @summary Create Terminal
7938
+ * @summary Create Terminal Transaction
7759
7939
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
7760
7940
  * @param {CreateTerminalTransactionRequest} CreateTerminalTransactionRequest Request body to create a terminal transaction
7761
7941
  * @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
7762
- * @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.
7942
+ * @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.
7763
7943
  * @param {*} [options] Override http request option.
7764
7944
  * @throws {RequiredError}
7765
7945
  */
@@ -7777,7 +7957,7 @@ const SoftPOSApiFp = function(configuration?: Configuration) {
7777
7957
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
7778
7958
  * @param {string} terminal_phone_no The terminal for which you want to view the order details.
7779
7959
  * @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
7780
- * @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.
7960
+ * @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.
7781
7961
  * @param {*} [options] Override http request option.
7782
7962
  * @throws {RequiredError}
7783
7963
  */
@@ -7796,7 +7976,7 @@ const SoftPOSApiFp = function(configuration?: Configuration) {
7796
7976
  * @param {string} terminal_phone_no Phone number assigned to the terminal. Required if you are not providing the cf_terminal_id in the request.
7797
7977
  * @param {string} cf_terminal_id Cashfree terminal id for which you want to get staticQRs. Required if you are not providing the terminal_phone_number in the request.
7798
7978
  * @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
7799
- * @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.
7979
+ * @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.
7800
7980
  * @param {*} [options] Override http request option.
7801
7981
  * @throws {RequiredError}
7802
7982
  */
@@ -7834,7 +8014,7 @@ const TokenVaultApiAxiosParamCreator = function (configuration?: Configuration)
7834
8014
  * @param {string} customer_id Your Customer ID that you had sent during create order API &#x60;POST/orders&#x60;
7835
8015
  * @param {string} instrument_id The instrument_id which needs to be deleted
7836
8016
  * @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
7837
- * @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.
8017
+ * @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.
7838
8018
  * @param {*} [options] Override http request option.
7839
8019
  * @throws {RequiredError}
7840
8020
  * x_request_id?: string,
@@ -7881,7 +8061,7 @@ const TokenVaultApiAxiosParamCreator = function (configuration?: Configuration)
7881
8061
 
7882
8062
 
7883
8063
 
7884
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.2.0';
8064
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.2';
7885
8065
  if (x_api_version != null && x_api_version != undefined) {
7886
8066
  localVarHeaderParameter['x-api-version'] = x_api_version;
7887
8067
  }
@@ -7910,7 +8090,7 @@ const TokenVaultApiAxiosParamCreator = function (configuration?: Configuration)
7910
8090
  * @param {string} customer_id Your Customer ID that you had sent during create order API &#x60;POST/orders&#x60;
7911
8091
  * @param {string} instrument_id The instrument_id of the saved instrument which needs to be queried
7912
8092
  * @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
7913
- * @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.
8093
+ * @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.
7914
8094
  * @param {*} [options] Override http request option.
7915
8095
  * @throws {RequiredError}
7916
8096
  * x_request_id?: string,
@@ -7957,7 +8137,7 @@ const TokenVaultApiAxiosParamCreator = function (configuration?: Configuration)
7957
8137
 
7958
8138
 
7959
8139
 
7960
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.2.0';
8140
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.2';
7961
8141
  if (x_api_version != null && x_api_version != undefined) {
7962
8142
  localVarHeaderParameter['x-api-version'] = x_api_version;
7963
8143
  }
@@ -7986,7 +8166,7 @@ const TokenVaultApiAxiosParamCreator = function (configuration?: Configuration)
7986
8166
  * @param {string} customer_id Your Customer ID that you had sent during create order API &#x60;POST/orders&#x60;
7987
8167
  * @param {PGCustomerFetchInstrumentsInstrumentTypeEnum} instrument_type Payment mode or type of saved instrument
7988
8168
  * @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
7989
- * @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.
8169
+ * @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.
7990
8170
  * @param {*} [options] Override http request option.
7991
8171
  * @throws {RequiredError}
7992
8172
  * x_request_id?: string,
@@ -8036,7 +8216,7 @@ const TokenVaultApiAxiosParamCreator = function (configuration?: Configuration)
8036
8216
 
8037
8217
 
8038
8218
 
8039
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.2.0';
8219
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.2';
8040
8220
  if (x_api_version != null && x_api_version != undefined) {
8041
8221
  localVarHeaderParameter['x-api-version'] = x_api_version;
8042
8222
  }
@@ -8065,7 +8245,7 @@ const TokenVaultApiAxiosParamCreator = function (configuration?: Configuration)
8065
8245
  * @param {string} customer_id Your Customer ID that you had sent during create order API &#x60;POST/orders&#x60;
8066
8246
  * @param {string} instrument_id The instrument_id of the saved card instrument which needs to be queried
8067
8247
  * @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
8068
- * @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.
8248
+ * @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.
8069
8249
  * @param {*} [options] Override http request option.
8070
8250
  * @throws {RequiredError}
8071
8251
  * x_request_id?: string,
@@ -8112,7 +8292,7 @@ const TokenVaultApiAxiosParamCreator = function (configuration?: Configuration)
8112
8292
 
8113
8293
 
8114
8294
 
8115
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.2.0';
8295
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.2';
8116
8296
  if (x_api_version != null && x_api_version != undefined) {
8117
8297
  localVarHeaderParameter['x-api-version'] = x_api_version;
8118
8298
  }
@@ -8150,7 +8330,7 @@ const TokenVaultApiFp = function(configuration?: Configuration) {
8150
8330
  * @param {string} customer_id Your Customer ID that you had sent during create order API &#x60;POST/orders&#x60;
8151
8331
  * @param {string} instrument_id The instrument_id which needs to be deleted
8152
8332
  * @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
8153
- * @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.
8333
+ * @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.
8154
8334
  * @param {*} [options] Override http request option.
8155
8335
  * @throws {RequiredError}
8156
8336
  */
@@ -8169,7 +8349,7 @@ const TokenVaultApiFp = function(configuration?: Configuration) {
8169
8349
  * @param {string} customer_id Your Customer ID that you had sent during create order API &#x60;POST/orders&#x60;
8170
8350
  * @param {string} instrument_id The instrument_id of the saved instrument which needs to be queried
8171
8351
  * @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
8172
- * @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.
8352
+ * @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.
8173
8353
  * @param {*} [options] Override http request option.
8174
8354
  * @throws {RequiredError}
8175
8355
  */
@@ -8188,7 +8368,7 @@ const TokenVaultApiFp = function(configuration?: Configuration) {
8188
8368
  * @param {string} customer_id Your Customer ID that you had sent during create order API &#x60;POST/orders&#x60;
8189
8369
  * @param {PGCustomerFetchInstrumentsInstrumentTypeEnum} instrument_type Payment mode or type of saved instrument
8190
8370
  * @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
8191
- * @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.
8371
+ * @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.
8192
8372
  * @param {*} [options] Override http request option.
8193
8373
  * @throws {RequiredError}
8194
8374
  */
@@ -8207,7 +8387,7 @@ const TokenVaultApiFp = function(configuration?: Configuration) {
8207
8387
  * @param {string} customer_id Your Customer ID that you had sent during create order API &#x60;POST/orders&#x60;
8208
8388
  * @param {string} instrument_id The instrument_id of the saved card instrument which needs to be queried
8209
8389
  * @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
8210
- * @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.
8390
+ * @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.
8211
8391
  * @param {*} [options] Override http request option.
8212
8392
  * @throws {RequiredError}
8213
8393
  */
@@ -8269,7 +8449,7 @@ export class Cashfree {
8269
8449
  static XPartnerMerchantId?: string;
8270
8450
  static XEnvironment: CFEnvironment;
8271
8451
  static XEnableErrorAnalytics: boolean = true;
8272
- static XApiVersion: string = "2022-09-01";
8452
+ static XApiVersion: string = "2023-08-01";
8273
8453
 
8274
8454
  static Environment = new Environment();
8275
8455
 
@@ -8293,13 +8473,73 @@ export class Cashfree {
8293
8473
  }
8294
8474
 
8295
8475
 
8476
+ /**
8477
+ * Create Customer at Cashfree
8478
+ * @summary Create Customer at Cashfree
8479
+ * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
8480
+ * @param {CreateCustomerRequest} CreateCustomerRequest Request to create a new customer at Cashfree
8481
+ * @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
8482
+ * @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.
8483
+ * @param {*} [options] Override http request option.
8484
+ * @throws {RequiredError}
8485
+ * @memberof CustomersApi
8486
+ */
8487
+ public static PGCreateCustomer(x_api_version: string, CreateCustomerRequest: CreateCustomerRequest, x_request_id?: string, x_idempotency_key?: string, options?: AxiosRequestConfig) {
8488
+ if(Cashfree.XEnableErrorAnalytics) {
8489
+ Sentry.init({
8490
+ dsn: 'https://ad7936cb4d7f4f2b99c6571a8e7a4df7@o330525.ingest.sentry.io/4505085005725696',
8491
+ // Performance Monitoring
8492
+ tracesSampleRate: 1.0, // Capture 100% of the transactions, reduce in production!
8493
+ // Set sampling rate for profiling - this is relative to tracesSampleRate
8494
+ profilesSampleRate: 1.0, // Capture 100% of the transactions, reduce in production!,
8495
+ attachStacktrace: true,
8496
+ enableTracing: true,
8497
+ beforeSend: (event) => {
8498
+ delete event.contexts.os;
8499
+ delete event.contexts.device;
8500
+ delete event.server_name;
8501
+ if (event.exception && event.exception.values && event.exception.values[0].stacktrace) {
8502
+ const stackTrace = event.exception.values[0].stacktrace;
8503
+ if (stackTrace && stackTrace.frames) {
8504
+
8505
+ const filteredDomains = stackTrace.frames.filter((x) => x.filename.includes("cashfree-pg")).map((x) => x.filename);
8506
+ if (filteredDomains[0].includes("cashfree-pg")) {
8507
+ if(Cashfree.XEnableErrorAnalytics) {
8508
+ return event;
8509
+ }
8510
+ return null;
8511
+ }
8512
+ }
8513
+ }
8514
+ return null;
8515
+ },
8516
+ });
8517
+ Sentry.configureScope((scope) => {
8518
+ if(Cashfree.XEnvironment == CFEnvironment.SANDBOX) {
8519
+ scope.setExtra('environment', 'sandbox');
8520
+ } else {
8521
+ scope.setExtra('environment', 'production');
8522
+ }
8523
+ scope.setExtra('release', "4.0.2");
8524
+ });
8525
+ }
8526
+ try {
8527
+ return CustomersApiFp().pGCreateCustomer(x_api_version, CreateCustomerRequest, x_request_id, x_idempotency_key, options).then((request) => request(Cashfree.axios, Cashfree.basePath));
8528
+ } catch (error) {
8529
+ if(Cashfree.XEnableErrorAnalytics) {
8530
+ Sentry.captureException(error);
8531
+ }
8532
+ throw error;
8533
+ }
8534
+ }
8535
+
8296
8536
  /**
8297
8537
  * Use this API to get eligible Cardless EMI Payment Methods available for a customer on an order basis their phone number.
8298
- * @summary Get Eligible Cardless EMI
8538
+ * @summary Get Eligible Cardless EMI Payment Methods for a customer on an order
8299
8539
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
8300
8540
  * @param {EligibilityFetchCardlessEMIRequest} EligibilityFetchCardlessEMIRequest Request Body to get eligible cardless emi options for a customer and order
8301
8541
  * @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
8302
- * @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.
8542
+ * @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.
8303
8543
  * @param {*} [options] Override http request option.
8304
8544
  * @throws {RequiredError}
8305
8545
  * @memberof EligibilityApi
@@ -8340,7 +8580,7 @@ export class Cashfree {
8340
8580
  } else {
8341
8581
  scope.setExtra('environment', 'production');
8342
8582
  }
8343
- scope.setExtra('release', "3.2.0");
8583
+ scope.setExtra('release', "4.0.2");
8344
8584
  });
8345
8585
  }
8346
8586
  try {
@@ -8355,11 +8595,11 @@ export class Cashfree {
8355
8595
 
8356
8596
  /**
8357
8597
  * Use this API to get eligible offers for an order_id or order amount.
8358
- * @summary Get Eligible Offers
8598
+ * @summary Get Eligible Offers for an Order
8359
8599
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
8360
8600
  * @param {EligibilityFetchOffersRequest} EligibilityFetchOffersRequest Request Body to get eligible offers for a customer and order
8361
8601
  * @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
8362
- * @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.
8602
+ * @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.
8363
8603
  * @param {*} [options] Override http request option.
8364
8604
  * @throws {RequiredError}
8365
8605
  * @memberof EligibilityApi
@@ -8400,7 +8640,7 @@ export class Cashfree {
8400
8640
  } else {
8401
8641
  scope.setExtra('environment', 'production');
8402
8642
  }
8403
- scope.setExtra('release', "3.2.0");
8643
+ scope.setExtra('release', "4.0.2");
8404
8644
  });
8405
8645
  }
8406
8646
  try {
@@ -8415,11 +8655,11 @@ export class Cashfree {
8415
8655
 
8416
8656
  /**
8417
8657
  * Use this API to get eligible Paylater Payment Methods for a customer on an order.
8418
- * @summary Get Eligible Paylater
8658
+ * @summary Get Eligible Paylater for a customer on an order
8419
8659
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
8420
8660
  * @param {EligibilityFetchPaylaterRequest} EligibilityFetchPaylaterRequest Request Body to get eligible paylater options for a customer and order
8421
8661
  * @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
8422
- * @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.
8662
+ * @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.
8423
8663
  * @param {*} [options] Override http request option.
8424
8664
  * @throws {RequiredError}
8425
8665
  * @memberof EligibilityApi
@@ -8460,7 +8700,7 @@ export class Cashfree {
8460
8700
  } else {
8461
8701
  scope.setExtra('environment', 'production');
8462
8702
  }
8463
- scope.setExtra('release', "3.2.0");
8703
+ scope.setExtra('release', "4.0.2");
8464
8704
  });
8465
8705
  }
8466
8706
  try {
@@ -8475,11 +8715,11 @@ export class Cashfree {
8475
8715
 
8476
8716
  /**
8477
8717
  * Use this API to get eligible Payment Methods
8478
- * @summary Get Eligible Payment Methods
8718
+ * @summary Get eligible Payment Methods
8479
8719
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
8480
8720
  * @param {EligibilityFetchPaymentMethodsRequest} EligibilityFetchPaymentMethodsRequest Request Body to get eligible payment methods for an account and order
8481
8721
  * @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
8482
- * @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.
8722
+ * @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.
8483
8723
  * @param {*} [options] Override http request option.
8484
8724
  * @throws {RequiredError}
8485
8725
  * @memberof EligibilityApi
@@ -8520,7 +8760,7 @@ export class Cashfree {
8520
8760
  } else {
8521
8761
  scope.setExtra('environment', 'production');
8522
8762
  }
8523
- scope.setExtra('release', "3.2.0");
8763
+ scope.setExtra('release', "4.0.2");
8524
8764
  });
8525
8765
  }
8526
8766
  try {
@@ -8539,7 +8779,7 @@ export class Cashfree {
8539
8779
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
8540
8780
  * @param {CreateOfferRequest} CreateOfferRequest Request body to create an offer at Cashfree
8541
8781
  * @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
8542
- * @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.
8782
+ * @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.
8543
8783
  * @param {*} [options] Override http request option.
8544
8784
  * @throws {RequiredError}
8545
8785
  * @memberof OffersApi
@@ -8580,7 +8820,7 @@ export class Cashfree {
8580
8820
  } else {
8581
8821
  scope.setExtra('environment', 'production');
8582
8822
  }
8583
- scope.setExtra('release', "3.2.0");
8823
+ scope.setExtra('release', "4.0.2");
8584
8824
  });
8585
8825
  }
8586
8826
  try {
@@ -8599,7 +8839,7 @@ export class Cashfree {
8599
8839
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
8600
8840
  * @param {string} offer_id The offer ID for which you want to view the offer details.
8601
8841
  * @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
8602
- * @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.
8842
+ * @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.
8603
8843
  * @param {*} [options] Override http request option.
8604
8844
  * @throws {RequiredError}
8605
8845
  * @memberof OffersApi
@@ -8640,7 +8880,7 @@ export class Cashfree {
8640
8880
  } else {
8641
8881
  scope.setExtra('environment', 'production');
8642
8882
  }
8643
- scope.setExtra('release', "3.2.0");
8883
+ scope.setExtra('release', "4.0.2");
8644
8884
  });
8645
8885
  }
8646
8886
  try {
@@ -8659,7 +8899,7 @@ export class Cashfree {
8659
8899
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
8660
8900
  * @param {CreateOrderRequest} CreateOrderRequest Request body to create an order at cashfree
8661
8901
  * @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
8662
- * @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.
8902
+ * @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.
8663
8903
  * @param {*} [options] Override http request option.
8664
8904
  * @throws {RequiredError}
8665
8905
  * @memberof OrdersApi
@@ -8700,7 +8940,7 @@ export class Cashfree {
8700
8940
  } else {
8701
8941
  scope.setExtra('environment', 'production');
8702
8942
  }
8703
- scope.setExtra('release', "3.2.0");
8943
+ scope.setExtra('release', "4.0.2");
8704
8944
  });
8705
8945
  }
8706
8946
  try {
@@ -8719,7 +8959,7 @@ export class Cashfree {
8719
8959
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
8720
8960
  * @param {string} order_id The id which uniquely identifies your order
8721
8961
  * @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
8722
- * @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.
8962
+ * @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.
8723
8963
  * @param {*} [options] Override http request option.
8724
8964
  * @throws {RequiredError}
8725
8965
  * @memberof OrdersApi
@@ -8760,7 +9000,7 @@ export class Cashfree {
8760
9000
  } else {
8761
9001
  scope.setExtra('environment', 'production');
8762
9002
  }
8763
- scope.setExtra('release', "3.2.0");
9003
+ scope.setExtra('release', "4.0.2");
8764
9004
  });
8765
9005
  }
8766
9006
  try {
@@ -8772,6 +9012,67 @@ export class Cashfree {
8772
9012
  throw error;
8773
9013
  }
8774
9014
  }
9015
+
9016
+ /**
9017
+ * Use this API to terminate the order that was created at Cashfree\'s using the `order_id`.
9018
+ * @summary Terminate Order
9019
+ * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
9020
+ * @param {string} order_id The id which uniquely identifies your order
9021
+ * @param {TerminateOrderRequest} TerminateOrderRequest Request body to terminate an order at cashfree
9022
+ * @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
9023
+ * @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.
9024
+ * @param {*} [options] Override http request option.
9025
+ * @throws {RequiredError}
9026
+ * @memberof OrdersApi
9027
+ */
9028
+ public static PGTerminateOrder(x_api_version: string, order_id: string, TerminateOrderRequest: TerminateOrderRequest, x_request_id?: string, x_idempotency_key?: string, options?: AxiosRequestConfig) {
9029
+ if(Cashfree.XEnableErrorAnalytics) {
9030
+ Sentry.init({
9031
+ dsn: 'https://ad7936cb4d7f4f2b99c6571a8e7a4df7@o330525.ingest.sentry.io/4505085005725696',
9032
+ // Performance Monitoring
9033
+ tracesSampleRate: 1.0, // Capture 100% of the transactions, reduce in production!
9034
+ // Set sampling rate for profiling - this is relative to tracesSampleRate
9035
+ profilesSampleRate: 1.0, // Capture 100% of the transactions, reduce in production!,
9036
+ attachStacktrace: true,
9037
+ enableTracing: true,
9038
+ beforeSend: (event) => {
9039
+ delete event.contexts.os;
9040
+ delete event.contexts.device;
9041
+ delete event.server_name;
9042
+ if (event.exception && event.exception.values && event.exception.values[0].stacktrace) {
9043
+ const stackTrace = event.exception.values[0].stacktrace;
9044
+ if (stackTrace && stackTrace.frames) {
9045
+
9046
+ const filteredDomains = stackTrace.frames.filter((x) => x.filename.includes("cashfree-pg")).map((x) => x.filename);
9047
+ if (filteredDomains[0].includes("cashfree-pg")) {
9048
+ if(Cashfree.XEnableErrorAnalytics) {
9049
+ return event;
9050
+ }
9051
+ return null;
9052
+ }
9053
+ }
9054
+ }
9055
+ return null;
9056
+ },
9057
+ });
9058
+ Sentry.configureScope((scope) => {
9059
+ if(Cashfree.XEnvironment == CFEnvironment.SANDBOX) {
9060
+ scope.setExtra('environment', 'sandbox');
9061
+ } else {
9062
+ scope.setExtra('environment', 'production');
9063
+ }
9064
+ scope.setExtra('release', "4.0.2");
9065
+ });
9066
+ }
9067
+ try {
9068
+ return OrdersApiFp().pGTerminateOrder(x_api_version, order_id, TerminateOrderRequest, x_request_id, x_idempotency_key, options).then((request) => request(Cashfree.axios, Cashfree.basePath));
9069
+ } catch (error) {
9070
+ if(Cashfree.XEnableErrorAnalytics) {
9071
+ Sentry.captureException(error);
9072
+ }
9073
+ throw error;
9074
+ }
9075
+ }
8775
9076
 
8776
9077
  /**
8777
9078
  * - Use this API to get the payment gateway reconciliation details with date range. - It will have events for your payment account
@@ -8780,7 +9081,7 @@ export class Cashfree {
8780
9081
  * @param {FetchReconRequest} FetchReconRequest Request Body for the reconciliation
8781
9082
  * @param {string} [Content_Type] application/json
8782
9083
  * @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
8783
- * @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.
9084
+ * @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.
8784
9085
  * @param {string} [Accept] application/json
8785
9086
  * @param {*} [options] Override http request option.
8786
9087
  * @throws {RequiredError}
@@ -8822,7 +9123,7 @@ export class Cashfree {
8822
9123
  } else {
8823
9124
  scope.setExtra('environment', 'production');
8824
9125
  }
8825
- scope.setExtra('release', "3.2.0");
9126
+ scope.setExtra('release', "4.0.2");
8826
9127
  });
8827
9128
  }
8828
9129
  try {
@@ -8841,7 +9142,7 @@ export class Cashfree {
8841
9142
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
8842
9143
  * @param {string} link_id The payment link ID for which you want to view the details.
8843
9144
  * @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
8844
- * @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.
9145
+ * @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.
8845
9146
  * @param {*} [options] Override http request option.
8846
9147
  * @throws {RequiredError}
8847
9148
  * @memberof PaymentLinksApi
@@ -8882,7 +9183,7 @@ export class Cashfree {
8882
9183
  } else {
8883
9184
  scope.setExtra('environment', 'production');
8884
9185
  }
8885
- scope.setExtra('release', "3.2.0");
9186
+ scope.setExtra('release', "4.0.2");
8886
9187
  });
8887
9188
  }
8888
9189
  try {
@@ -8901,7 +9202,7 @@ export class Cashfree {
8901
9202
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
8902
9203
  * @param {CreateLinkRequest} CreateLinkRequest Request Body to Create Payment Links
8903
9204
  * @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
8904
- * @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.
9205
+ * @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.
8905
9206
  * @param {*} [options] Override http request option.
8906
9207
  * @throws {RequiredError}
8907
9208
  * @memberof PaymentLinksApi
@@ -8942,7 +9243,7 @@ export class Cashfree {
8942
9243
  } else {
8943
9244
  scope.setExtra('environment', 'production');
8944
9245
  }
8945
- scope.setExtra('release', "3.2.0");
9246
+ scope.setExtra('release', "4.0.2");
8946
9247
  });
8947
9248
  }
8948
9249
  try {
@@ -8961,7 +9262,7 @@ export class Cashfree {
8961
9262
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
8962
9263
  * @param {string} link_id The payment link ID for which you want to view the details.
8963
9264
  * @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
8964
- * @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.
9265
+ * @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.
8965
9266
  * @param {*} [options] Override http request option.
8966
9267
  * @throws {RequiredError}
8967
9268
  * @memberof PaymentLinksApi
@@ -9002,7 +9303,7 @@ export class Cashfree {
9002
9303
  } else {
9003
9304
  scope.setExtra('environment', 'production');
9004
9305
  }
9005
- scope.setExtra('release', "3.2.0");
9306
+ scope.setExtra('release', "4.0.2");
9006
9307
  });
9007
9308
  }
9008
9309
  try {
@@ -9021,7 +9322,7 @@ export class Cashfree {
9021
9322
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
9022
9323
  * @param {string} link_id The payment link ID for which you want to view the details.
9023
9324
  * @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
9024
- * @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.
9325
+ * @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.
9025
9326
  * @param {*} [options] Override http request option.
9026
9327
  * @throws {RequiredError}
9027
9328
  * @memberof PaymentLinksApi
@@ -9062,7 +9363,7 @@ export class Cashfree {
9062
9363
  } else {
9063
9364
  scope.setExtra('environment', 'production');
9064
9365
  }
9065
- scope.setExtra('release', "3.2.0");
9366
+ scope.setExtra('release', "4.0.2");
9066
9367
  });
9067
9368
  }
9068
9369
  try {
@@ -9082,7 +9383,7 @@ export class Cashfree {
9082
9383
  * @param {string} order_id The id which uniquely identifies your order
9083
9384
  * @param {AuthorizeOrderRequest} AuthorizeOrderRequest Request to Capture or Void Transactions
9084
9385
  * @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
9085
- * @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.
9386
+ * @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.
9086
9387
  * @param {*} [options] Override http request option.
9087
9388
  * @throws {RequiredError}
9088
9389
  * @memberof PaymentsApi
@@ -9123,7 +9424,7 @@ export class Cashfree {
9123
9424
  } else {
9124
9425
  scope.setExtra('environment', 'production');
9125
9426
  }
9126
- scope.setExtra('release', "3.2.0");
9427
+ scope.setExtra('release', "4.0.2");
9127
9428
  });
9128
9429
  }
9129
9430
  try {
@@ -9143,7 +9444,7 @@ export class Cashfree {
9143
9444
  * @param {string} cf_payment_id The Cashfree payment or transaction ID.
9144
9445
  * @param {OrderAuthenticatePaymentRequest} OrderAuthenticatePaymentRequest Request body to submit/resend headless OTP. To use this API make sure you have headless OTP enabled for your account
9145
9446
  * @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
9146
- * @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.
9447
+ * @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.
9147
9448
  * @param {*} [options] Override http request option.
9148
9449
  * @throws {RequiredError}
9149
9450
  * @memberof PaymentsApi
@@ -9184,7 +9485,7 @@ export class Cashfree {
9184
9485
  } else {
9185
9486
  scope.setExtra('environment', 'production');
9186
9487
  }
9187
- scope.setExtra('release', "3.2.0");
9488
+ scope.setExtra('release', "4.0.2");
9188
9489
  });
9189
9490
  }
9190
9491
  try {
@@ -9204,7 +9505,7 @@ export class Cashfree {
9204
9505
  * @param {string} order_id The id which uniquely identifies your order
9205
9506
  * @param {string} cf_payment_id The Cashfree payment or transaction ID.
9206
9507
  * @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
9207
- * @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.
9508
+ * @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.
9208
9509
  * @param {*} [options] Override http request option.
9209
9510
  * @throws {RequiredError}
9210
9511
  * @memberof PaymentsApi
@@ -9245,7 +9546,7 @@ export class Cashfree {
9245
9546
  } else {
9246
9547
  scope.setExtra('environment', 'production');
9247
9548
  }
9248
- scope.setExtra('release', "3.2.0");
9549
+ scope.setExtra('release', "4.0.2");
9249
9550
  });
9250
9551
  }
9251
9552
  try {
@@ -9264,7 +9565,7 @@ export class Cashfree {
9264
9565
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
9265
9566
  * @param {string} order_id The id which uniquely identifies your order
9266
9567
  * @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
9267
- * @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.
9568
+ * @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.
9268
9569
  * @param {*} [options] Override http request option.
9269
9570
  * @throws {RequiredError}
9270
9571
  * @memberof PaymentsApi
@@ -9305,7 +9606,7 @@ export class Cashfree {
9305
9606
  } else {
9306
9607
  scope.setExtra('environment', 'production');
9307
9608
  }
9308
- scope.setExtra('release', "3.2.0");
9609
+ scope.setExtra('release', "4.0.2");
9309
9610
  });
9310
9611
  }
9311
9612
  try {
@@ -9324,7 +9625,7 @@ export class Cashfree {
9324
9625
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
9325
9626
  * @param {PayOrderRequest} PayOrderRequest Request body to create a transaction at cashfree using &#x60;payment_session_id&#x60;
9326
9627
  * @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
9327
- * @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.
9628
+ * @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.
9328
9629
  * @param {*} [options] Override http request option.
9329
9630
  * @throws {RequiredError}
9330
9631
  * @memberof PaymentsApi
@@ -9365,7 +9666,7 @@ export class Cashfree {
9365
9666
  } else {
9366
9667
  scope.setExtra('environment', 'production');
9367
9668
  }
9368
- scope.setExtra('release', "3.2.0");
9669
+ scope.setExtra('release', "4.0.2");
9369
9670
  });
9370
9671
  }
9371
9672
  try {
@@ -9385,7 +9686,7 @@ export class Cashfree {
9385
9686
  * @param {string} order_id The id which uniquely identifies your order
9386
9687
  * @param {OrderCreateRefundRequest} OrderCreateRefundRequest Request Body to Create Refunds
9387
9688
  * @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
9388
- * @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.
9689
+ * @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.
9389
9690
  * @param {*} [options] Override http request option.
9390
9691
  * @throws {RequiredError}
9391
9692
  * @memberof RefundsApi
@@ -9426,7 +9727,7 @@ export class Cashfree {
9426
9727
  } else {
9427
9728
  scope.setExtra('environment', 'production');
9428
9729
  }
9429
- scope.setExtra('release', "3.2.0");
9730
+ scope.setExtra('release', "4.0.2");
9430
9731
  });
9431
9732
  }
9432
9733
  try {
@@ -9446,7 +9747,7 @@ export class Cashfree {
9446
9747
  * @param {string} order_id The id which uniquely identifies your order
9447
9748
  * @param {string} refund_id Refund Id of the refund you want to fetch.
9448
9749
  * @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
9449
- * @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.
9750
+ * @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.
9450
9751
  * @param {*} [options] Override http request option.
9451
9752
  * @throws {RequiredError}
9452
9753
  * @memberof RefundsApi
@@ -9487,7 +9788,7 @@ export class Cashfree {
9487
9788
  } else {
9488
9789
  scope.setExtra('environment', 'production');
9489
9790
  }
9490
- scope.setExtra('release', "3.2.0");
9791
+ scope.setExtra('release', "4.0.2");
9491
9792
  });
9492
9793
  }
9493
9794
  try {
@@ -9506,7 +9807,7 @@ export class Cashfree {
9506
9807
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
9507
9808
  * @param {string} order_id The id which uniquely identifies your order
9508
9809
  * @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
9509
- * @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.
9810
+ * @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.
9510
9811
  * @param {*} [options] Override http request option.
9511
9812
  * @throws {RequiredError}
9512
9813
  * @memberof RefundsApi
@@ -9547,7 +9848,7 @@ export class Cashfree {
9547
9848
  } else {
9548
9849
  scope.setExtra('environment', 'production');
9549
9850
  }
9550
- scope.setExtra('release', "3.2.0");
9851
+ scope.setExtra('release', "4.0.2");
9551
9852
  });
9552
9853
  }
9553
9854
  try {
@@ -9567,7 +9868,7 @@ export class Cashfree {
9567
9868
  * @param {FetchSettlementsRequest} FetchSettlementsRequest Request Body to get the settlements
9568
9869
  * @param {string} [Content_Type] application/json
9569
9870
  * @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
9570
- * @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.
9871
+ * @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.
9571
9872
  * @param {string} [Accept] application/json
9572
9873
  * @param {*} [options] Override http request option.
9573
9874
  * @throws {RequiredError}
@@ -9609,7 +9910,7 @@ export class Cashfree {
9609
9910
  } else {
9610
9911
  scope.setExtra('environment', 'production');
9611
9912
  }
9612
- scope.setExtra('release', "3.2.0");
9913
+ scope.setExtra('release', "4.0.2");
9613
9914
  });
9614
9915
  }
9615
9916
  try {
@@ -9629,7 +9930,7 @@ export class Cashfree {
9629
9930
  * @param {SettlementFetchReconRequest} SettlementFetchReconRequest Request Body for the settlement reconciliation
9630
9931
  * @param {string} [Content_Type] application/json
9631
9932
  * @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
9632
- * @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.
9933
+ * @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.
9633
9934
  * @param {string} [Accept] application/json
9634
9935
  * @param {*} [options] Override http request option.
9635
9936
  * @throws {RequiredError}
@@ -9671,7 +9972,7 @@ export class Cashfree {
9671
9972
  } else {
9672
9973
  scope.setExtra('environment', 'production');
9673
9974
  }
9674
- scope.setExtra('release', "3.2.0");
9975
+ scope.setExtra('release', "4.0.2");
9675
9976
  });
9676
9977
  }
9677
9978
  try {
@@ -9690,7 +9991,7 @@ export class Cashfree {
9690
9991
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
9691
9992
  * @param {string} order_id The id which uniquely identifies your order
9692
9993
  * @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
9693
- * @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.
9994
+ * @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.
9694
9995
  * @param {*} [options] Override http request option.
9695
9996
  * @throws {RequiredError}
9696
9997
  * @memberof SettlementsApi
@@ -9731,7 +10032,7 @@ export class Cashfree {
9731
10032
  } else {
9732
10033
  scope.setExtra('environment', 'production');
9733
10034
  }
9734
- scope.setExtra('release', "3.2.0");
10035
+ scope.setExtra('release', "4.0.2");
9735
10036
  });
9736
10037
  }
9737
10038
  try {
@@ -9750,7 +10051,7 @@ export class Cashfree {
9750
10051
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
9751
10052
  * @param {CreateTerminalRequest} CreateTerminalRequest Request Body to Create Terminal for SPOS
9752
10053
  * @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
9753
- * @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.
10054
+ * @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.
9754
10055
  * @param {*} [options] Override http request option.
9755
10056
  * @throws {RequiredError}
9756
10057
  * @memberof SoftPOSApi
@@ -9791,7 +10092,7 @@ export class Cashfree {
9791
10092
  } else {
9792
10093
  scope.setExtra('environment', 'production');
9793
10094
  }
9794
- scope.setExtra('release', "3.2.0");
10095
+ scope.setExtra('release', "4.0.2");
9795
10096
  });
9796
10097
  }
9797
10098
  try {
@@ -9806,11 +10107,11 @@ export class Cashfree {
9806
10107
 
9807
10108
  /**
9808
10109
  * Use this API to create a new terminal transaction. To use this API you should first create an order using the Create Order API. Also, you need to enter the terminal details while creating the order and pass the same terminal information while creating a transaction using the below mentioned API.
9809
- * @summary Create Terminal
10110
+ * @summary Create Terminal Transaction
9810
10111
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
9811
10112
  * @param {CreateTerminalTransactionRequest} CreateTerminalTransactionRequest Request body to create a terminal transaction
9812
10113
  * @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
9813
- * @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.
10114
+ * @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.
9814
10115
  * @param {*} [options] Override http request option.
9815
10116
  * @throws {RequiredError}
9816
10117
  * @memberof SoftPOSApi
@@ -9851,7 +10152,7 @@ export class Cashfree {
9851
10152
  } else {
9852
10153
  scope.setExtra('environment', 'production');
9853
10154
  }
9854
- scope.setExtra('release', "3.2.0");
10155
+ scope.setExtra('release', "4.0.2");
9855
10156
  });
9856
10157
  }
9857
10158
  try {
@@ -9870,7 +10171,7 @@ export class Cashfree {
9870
10171
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
9871
10172
  * @param {string} terminal_phone_no The terminal for which you want to view the order details.
9872
10173
  * @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
9873
- * @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.
10174
+ * @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.
9874
10175
  * @param {*} [options] Override http request option.
9875
10176
  * @throws {RequiredError}
9876
10177
  * @memberof SoftPOSApi
@@ -9911,7 +10212,7 @@ export class Cashfree {
9911
10212
  } else {
9912
10213
  scope.setExtra('environment', 'production');
9913
10214
  }
9914
- scope.setExtra('release', "3.2.0");
10215
+ scope.setExtra('release', "4.0.2");
9915
10216
  });
9916
10217
  }
9917
10218
  try {
@@ -9931,7 +10232,7 @@ export class Cashfree {
9931
10232
  * @param {string} terminal_phone_no Phone number assigned to the terminal. Required if you are not providing the cf_terminal_id in the request.
9932
10233
  * @param {string} cf_terminal_id Cashfree terminal id for which you want to get staticQRs. Required if you are not providing the terminal_phone_number in the request.
9933
10234
  * @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
9934
- * @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.
10235
+ * @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.
9935
10236
  * @param {*} [options] Override http request option.
9936
10237
  * @throws {RequiredError}
9937
10238
  * @memberof SoftPOSApi
@@ -9972,7 +10273,7 @@ export class Cashfree {
9972
10273
  } else {
9973
10274
  scope.setExtra('environment', 'production');
9974
10275
  }
9975
- scope.setExtra('release', "3.2.0");
10276
+ scope.setExtra('release', "4.0.2");
9976
10277
  });
9977
10278
  }
9978
10279
  try {
@@ -9992,7 +10293,7 @@ export class Cashfree {
9992
10293
  * @param {string} customer_id Your Customer ID that you had sent during create order API &#x60;POST/orders&#x60;
9993
10294
  * @param {string} instrument_id The instrument_id which needs to be deleted
9994
10295
  * @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
9995
- * @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.
10296
+ * @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.
9996
10297
  * @param {*} [options] Override http request option.
9997
10298
  * @throws {RequiredError}
9998
10299
  * @memberof TokenVaultApi
@@ -10033,7 +10334,7 @@ export class Cashfree {
10033
10334
  } else {
10034
10335
  scope.setExtra('environment', 'production');
10035
10336
  }
10036
- scope.setExtra('release', "3.2.0");
10337
+ scope.setExtra('release', "4.0.2");
10037
10338
  });
10038
10339
  }
10039
10340
  try {
@@ -10053,7 +10354,7 @@ export class Cashfree {
10053
10354
  * @param {string} customer_id Your Customer ID that you had sent during create order API &#x60;POST/orders&#x60;
10054
10355
  * @param {string} instrument_id The instrument_id of the saved instrument which needs to be queried
10055
10356
  * @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
10056
- * @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.
10357
+ * @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.
10057
10358
  * @param {*} [options] Override http request option.
10058
10359
  * @throws {RequiredError}
10059
10360
  * @memberof TokenVaultApi
@@ -10094,7 +10395,7 @@ export class Cashfree {
10094
10395
  } else {
10095
10396
  scope.setExtra('environment', 'production');
10096
10397
  }
10097
- scope.setExtra('release', "3.2.0");
10398
+ scope.setExtra('release', "4.0.2");
10098
10399
  });
10099
10400
  }
10100
10401
  try {
@@ -10114,7 +10415,7 @@ export class Cashfree {
10114
10415
  * @param {string} customer_id Your Customer ID that you had sent during create order API &#x60;POST/orders&#x60;
10115
10416
  * @param {PGCustomerFetchInstrumentsInstrumentTypeEnum} instrument_type Payment mode or type of saved instrument
10116
10417
  * @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
10117
- * @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.
10418
+ * @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.
10118
10419
  * @param {*} [options] Override http request option.
10119
10420
  * @throws {RequiredError}
10120
10421
  * @memberof TokenVaultApi
@@ -10155,7 +10456,7 @@ export class Cashfree {
10155
10456
  } else {
10156
10457
  scope.setExtra('environment', 'production');
10157
10458
  }
10158
- scope.setExtra('release', "3.2.0");
10459
+ scope.setExtra('release', "4.0.2");
10159
10460
  });
10160
10461
  }
10161
10462
  try {
@@ -10175,7 +10476,7 @@ export class Cashfree {
10175
10476
  * @param {string} customer_id Your Customer ID that you had sent during create order API &#x60;POST/orders&#x60;
10176
10477
  * @param {string} instrument_id The instrument_id of the saved card instrument which needs to be queried
10177
10478
  * @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
10178
- * @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.
10479
+ * @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.
10179
10480
  * @param {*} [options] Override http request option.
10180
10481
  * @throws {RequiredError}
10181
10482
  * @memberof TokenVaultApi
@@ -10216,7 +10517,7 @@ export class Cashfree {
10216
10517
  } else {
10217
10518
  scope.setExtra('environment', 'production');
10218
10519
  }
10219
- scope.setExtra('release', "3.2.0");
10520
+ scope.setExtra('release', "4.0.2");
10220
10521
  });
10221
10522
  }
10222
10523
  try {