cashfree-pg 3.1.4 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/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}
@@ -3149,7 +3187,7 @@ export interface PaymentMethodUPIInPaymentsEntity {
3149
3187
  'upi_id'?: string;
3150
3188
  }
3151
3189
  /**
3152
- * Filter for specific Payment Methods
3190
+ * Filter for Payment Methods
3153
3191
  * @export
3154
3192
  * @interface PaymentMethodsFilters
3155
3193
  */
@@ -3211,19 +3249,6 @@ export interface PaymentModeDetails {
3211
3249
  */
3212
3250
  'code'?: number;
3213
3251
  }
3214
- /**
3215
- * URL for payment retrieval for an order
3216
- * @export
3217
- * @interface PaymentURLObject
3218
- */
3219
- export interface PaymentURLObject {
3220
- /**
3221
- *
3222
- * @type {string}
3223
- * @memberof PaymentURLObject
3224
- */
3225
- 'url'?: string;
3226
- }
3227
3252
  /**
3228
3253
  * payment webhook object
3229
3254
  * @export
@@ -3614,16 +3639,16 @@ export interface ReconEntityDataInner {
3614
3639
  'payment_service_tax'?: number;
3615
3640
  /**
3616
3641
  * Cashfree Payments unique ID to identify a payment.
3617
- * @type {number}
3642
+ * @type {string}
3618
3643
  * @memberof ReconEntityDataInner
3619
3644
  */
3620
- 'cf_payment_id'?: number;
3645
+ 'cf_payment_id'?: string;
3621
3646
  /**
3622
3647
  * Unique ID to identify the settlement.
3623
- * @type {number}
3648
+ * @type {string}
3624
3649
  * @memberof ReconEntityDataInner
3625
3650
  */
3626
- 'cf_settlement_id'?: number;
3651
+ 'cf_settlement_id'?: string;
3627
3652
  /**
3628
3653
  * Date and time when the settlement was processed.
3629
3654
  * @type {string}
@@ -3789,10 +3814,10 @@ export interface ReconEntityDataInner {
3789
3814
  export interface RefundEntity {
3790
3815
  /**
3791
3816
  * Cashfree Payments ID of the payment for which refund is initiated
3792
- * @type {number}
3817
+ * @type {string}
3793
3818
  * @memberof RefundEntity
3794
3819
  */
3795
- 'cf_payment_id'?: number;
3820
+ 'cf_payment_id'?: string;
3796
3821
  /**
3797
3822
  * Cashfree Payments ID for a refund
3798
3823
  * @type {string}
@@ -3965,19 +3990,6 @@ export interface RefundSpeed {
3965
3990
  */
3966
3991
  'message'?: string;
3967
3992
  }
3968
- /**
3969
- * URL to get refunds for order
3970
- * @export
3971
- * @interface RefundURLObject
3972
- */
3973
- export interface RefundURLObject {
3974
- /**
3975
- *
3976
- * @type {string}
3977
- * @memberof RefundURLObject
3978
- */
3979
- 'url'?: string;
3980
- }
3981
3993
  /**
3982
3994
  * refund webhook object
3983
3995
  * @export
@@ -4061,16 +4073,16 @@ export interface SavedInstrumentMeta {
4061
4073
  export interface SettlementEntity {
4062
4074
  /**
4063
4075
  *
4064
- * @type {number}
4076
+ * @type {string}
4065
4077
  * @memberof SettlementEntity
4066
4078
  */
4067
- 'cf_payment_id'?: number;
4079
+ 'cf_payment_id'?: string;
4068
4080
  /**
4069
4081
  *
4070
- * @type {number}
4082
+ * @type {string}
4071
4083
  * @memberof SettlementEntity
4072
4084
  */
4073
- 'cf_settlement_id'?: number;
4085
+ 'cf_settlement_id'?: string;
4074
4086
  /**
4075
4087
  *
4076
4088
  * @type {string}
@@ -4158,41 +4170,10 @@ export interface SettlementFetchReconRequest {
4158
4170
  'pagination': FetchSettlementsRequestPagination;
4159
4171
  /**
4160
4172
  *
4161
- * @type {SettlementFetchReconRequestFilters}
4173
+ * @type {FetchSettlementsRequestFilters}
4162
4174
  * @memberof SettlementFetchReconRequest
4163
4175
  */
4164
- 'filters': SettlementFetchReconRequestFilters;
4165
- }
4166
- /**
4167
- * Specify either the Settlement ID, Settlement UTR, or start date and end date to fetch the settlement details.
4168
- * @export
4169
- * @interface SettlementFetchReconRequestFilters
4170
- */
4171
- export interface SettlementFetchReconRequestFilters {
4172
- /**
4173
- * List of settlement IDs for which you want the settlement reconciliation details.
4174
- * @type {Array<number>}
4175
- * @memberof SettlementFetchReconRequestFilters
4176
- */
4177
- 'cf_settlement_ids'?: Array<number>;
4178
- /**
4179
- * List of settlement UTRs for which you want the settlement reconciliation details.
4180
- * @type {Array<string>}
4181
- * @memberof SettlementFetchReconRequestFilters
4182
- */
4183
- 'settlement_utrs'?: Array<string>;
4184
- /**
4185
- * Specify the start date from when you want the settlement reconciliation details.
4186
- * @type {string}
4187
- * @memberof SettlementFetchReconRequestFilters
4188
- */
4189
- 'start_date'?: string;
4190
- /**
4191
- * Specify the end date till when you want the settlement reconciliation details.
4192
- * @type {string}
4193
- * @memberof SettlementFetchReconRequestFilters
4194
- */
4195
- 'end_date'?: string;
4176
+ 'filters': FetchSettlementsRequestFilters;
4196
4177
  }
4197
4178
  /**
4198
4179
  * Recon object for settlement
@@ -4341,16 +4322,16 @@ export interface SettlementReconEntityDataInner {
4341
4322
  'payment_service_tax'?: number;
4342
4323
  /**
4343
4324
  * Cashfree Payments unique ID to identify a payment.
4344
- * @type {number}
4325
+ * @type {string}
4345
4326
  * @memberof SettlementReconEntityDataInner
4346
4327
  */
4347
- 'cf_payment_id'?: number;
4328
+ 'cf_payment_id'?: string;
4348
4329
  /**
4349
4330
  * Unique ID to identify the settlement.
4350
- * @type {number}
4331
+ * @type {string}
4351
4332
  * @memberof SettlementReconEntityDataInner
4352
4333
  */
4353
- 'cf_settlement_id'?: number;
4334
+ 'cf_settlement_id'?: string;
4354
4335
  /**
4355
4336
  * Date and time when the settlement was processed.
4356
4337
  * @type {string}
@@ -4436,19 +4417,6 @@ export interface SettlementReconEntityDataInner {
4436
4417
  */
4437
4418
  'adjustment_remarks'?: string;
4438
4419
  }
4439
- /**
4440
- * Settlement URL object
4441
- * @export
4442
- * @interface SettlementURLObject
4443
- */
4444
- export interface SettlementURLObject {
4445
- /**
4446
- *
4447
- * @type {string}
4448
- * @memberof SettlementURLObject
4449
- */
4450
- 'url'?: string;
4451
- }
4452
4420
  /**
4453
4421
  * Settlement webhook object
4454
4422
  * @export
@@ -4501,10 +4469,10 @@ export interface TerminalDetails {
4501
4469
  'added_on'?: string;
4502
4470
  /**
4503
4471
  * cashfree terminal id
4504
- * @type {number}
4472
+ * @type {string}
4505
4473
  * @memberof TerminalDetails
4506
4474
  */
4507
- 'cf_terminal_id'?: number;
4475
+ 'cf_terminal_id'?: string;
4508
4476
  /**
4509
4477
  * last instant when this terminal was updated
4510
4478
  * @type {string}
@@ -4641,10 +4609,10 @@ export interface TerminalEntity {
4641
4609
  export interface TerminalTransactionEntity {
4642
4610
  /**
4643
4611
  *
4644
- * @type {number}
4612
+ * @type {string}
4645
4613
  * @memberof TerminalTransactionEntity
4646
4614
  */
4647
- 'cf_payment_id'?: number;
4615
+ 'cf_payment_id'?: string;
4648
4616
  /**
4649
4617
  *
4650
4618
  * @type {number}
@@ -4676,6 +4644,19 @@ export interface TerminalTransactionEntity {
4676
4644
  */
4677
4645
  'timeout'?: string;
4678
4646
  }
4647
+ /**
4648
+ * Request to terminate an active order at Cashfree
4649
+ * @export
4650
+ * @interface TerminateOrderRequest
4651
+ */
4652
+ export interface TerminateOrderRequest {
4653
+ /**
4654
+ * 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.
4655
+ * @type {string}
4656
+ * @memberof TerminateOrderRequest
4657
+ */
4658
+ 'order_status': string;
4659
+ }
4679
4660
  /**
4680
4661
  * object when you are using preauth in UPI in order pay
4681
4662
  * @export
@@ -4806,6 +4787,126 @@ export interface WalletOffer {
4806
4787
  'provider'?: string;
4807
4788
  }
4808
4789
 
4790
+ /**
4791
+ * CustomersApi - axios parameter creator
4792
+ * @export
4793
+ */
4794
+ const CustomersApiAxiosParamCreator = function (configuration?: Configuration) {
4795
+ return {
4796
+ /**
4797
+ * Create Customer at Cashfree
4798
+ * @summary Create Customer at Cashfree
4799
+
4800
+ * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
4801
+ * @param {CreateCustomerRequest} CreateCustomerRequest Request to create a new customer at Cashfree
4802
+ * @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
4803
+ * @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.
4804
+ * @param {*} [options] Override http request option.
4805
+ * @throws {RequiredError}
4806
+ * x_idempotency_key?: string,
4807
+ */
4808
+ pGCreateCustomer: async (x_api_version: string, CreateCustomerRequest: CreateCustomerRequest, x_request_id?: string, x_idempotency_key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4809
+ // verify required parameter 'x_api_version' is not null or undefined
4810
+ assertParamExists('pGCreateCustomer', 'x_api_version', x_api_version)
4811
+ // verify required parameter 'CreateCustomerRequest' is not null or undefined
4812
+ assertParamExists('pGCreateCustomer', 'CreateCustomerRequest', CreateCustomerRequest)
4813
+ const localVarPath = `/customers`;
4814
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4815
+ var url = "https://sandbox.cashfree.com/pg";
4816
+ if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) {
4817
+ url = "https://api.cashfree.com/pg"
4818
+ }
4819
+ const localVarUrlObj = new URL(localVarPath, url);
4820
+ let baseOptions;
4821
+ if (configuration) {
4822
+ baseOptions = configuration.baseOptions;
4823
+ }
4824
+
4825
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
4826
+ const localVarHeaderParameter = {} as any;
4827
+ const localVarQueryParameter = {} as any;
4828
+
4829
+ // authentication XPartnerAPIKey required
4830
+ await setApiKeyToObject(localVarHeaderParameter, "x-partner-apikey")
4831
+
4832
+ // authentication XClientSecret required
4833
+ await setApiKeyToObject(localVarHeaderParameter, "x-client-secret")
4834
+
4835
+ // authentication XPartnerMerchantID required
4836
+ await setApiKeyToObject(localVarHeaderParameter, "x-partner-merchantid")
4837
+
4838
+ // authentication XClientID required
4839
+ await setApiKeyToObject(localVarHeaderParameter, "x-client-id")
4840
+
4841
+ // authentication XClientSignatureHeader required
4842
+ await setApiKeyToObject(localVarHeaderParameter, "x-client-signature")
4843
+
4844
+
4845
+
4846
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4847
+
4848
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.0';
4849
+ if (x_api_version != null && x_api_version != undefined) {
4850
+ localVarHeaderParameter['x-api-version'] = x_api_version;
4851
+ }
4852
+
4853
+ if (x_request_id != null && x_request_id != undefined) {
4854
+ localVarHeaderParameter['x-request-id'] = x_request_id;
4855
+ }
4856
+
4857
+ if (x_idempotency_key != null && x_idempotency_key != undefined) {
4858
+ localVarHeaderParameter['x-idempotency-key'] = x_idempotency_key;
4859
+ }
4860
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4861
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4862
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4863
+ localVarRequestOptions.data = serializeDataIfNeeded(CreateCustomerRequest, localVarRequestOptions, configuration)
4864
+
4865
+ return {
4866
+ url: toPathString(localVarUrlObj),
4867
+ options: localVarRequestOptions,
4868
+ };
4869
+ },
4870
+ }
4871
+ };
4872
+
4873
+ /**
4874
+ * CustomersApi - functional programming interface
4875
+ * @export
4876
+ */
4877
+ const CustomersApiFp = function(configuration?: Configuration) {
4878
+ const localVarAxiosParamCreator = CustomersApiAxiosParamCreator(configuration)
4879
+ return {
4880
+ /**
4881
+ * Create Customer at Cashfree
4882
+ * @summary Create Customer at Cashfree
4883
+ * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
4884
+ * @param {CreateCustomerRequest} CreateCustomerRequest Request to create a new customer at Cashfree
4885
+ * @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
4886
+ * @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.
4887
+ * @param {*} [options] Override http request option.
4888
+ * @throws {RequiredError}
4889
+ */
4890
+ 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>> {
4891
+ const localVarAxiosArgs = await localVarAxiosParamCreator.pGCreateCustomer(x_api_version, CreateCustomerRequest, x_request_id, x_idempotency_key, options);
4892
+ var url = "https://sandbox.cashfree.com/pg";
4893
+ if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) {
4894
+ url = "https://api.cashfree.com/pg"
4895
+ }
4896
+ return createRequestFunction(localVarAxiosArgs, globalAxios, url, configuration);
4897
+ },
4898
+ }
4899
+ };
4900
+
4901
+ /**
4902
+ * CustomersApi - object-oriented interface
4903
+ * @export
4904
+ * @class CustomersApi
4905
+ * @extends {BaseAPI}
4906
+ */
4907
+
4908
+
4909
+
4809
4910
  /**
4810
4911
  * EligibilityApi - axios parameter creator
4811
4912
  * @export
@@ -4814,12 +4915,12 @@ const EligibilityApiAxiosParamCreator = function (configuration?: Configuration)
4814
4915
  return {
4815
4916
  /**
4816
4917
  * Use this API to get eligible Cardless EMI Payment Methods available for a customer on an order basis their phone number.
4817
- * @summary Get Eligible Cardless EMI
4918
+ * @summary Get Eligible Cardless EMI Payment Methods for a customer on an order
4818
4919
 
4819
4920
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
4820
4921
  * @param {EligibilityFetchCardlessEMIRequest} EligibilityFetchCardlessEMIRequest Request Body to get eligible cardless emi options for a customer and order
4821
4922
  * @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
4822
- * @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.
4923
+ * @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.
4823
4924
  * @param {*} [options] Override http request option.
4824
4925
  * @throws {RequiredError}
4825
4926
  * x_idempotency_key?: string,
@@ -4864,7 +4965,7 @@ const EligibilityApiAxiosParamCreator = function (configuration?: Configuration)
4864
4965
 
4865
4966
  localVarHeaderParameter['Content-Type'] = 'application/json';
4866
4967
 
4867
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.1.4';
4968
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.0';
4868
4969
  if (x_api_version != null && x_api_version != undefined) {
4869
4970
  localVarHeaderParameter['x-api-version'] = x_api_version;
4870
4971
  }
@@ -4888,12 +4989,12 @@ const EligibilityApiAxiosParamCreator = function (configuration?: Configuration)
4888
4989
  },
4889
4990
  /**
4890
4991
  * Use this API to get eligible offers for an order_id or order amount.
4891
- * @summary Get Eligible Offers
4992
+ * @summary Get Eligible Offers for an Order
4892
4993
 
4893
4994
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
4894
4995
  * @param {EligibilityFetchOffersRequest} EligibilityFetchOffersRequest Request Body to get eligible offers for a customer and order
4895
4996
  * @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
4896
- * @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.
4997
+ * @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.
4897
4998
  * @param {*} [options] Override http request option.
4898
4999
  * @throws {RequiredError}
4899
5000
  * x_idempotency_key?: string,
@@ -4938,7 +5039,7 @@ const EligibilityApiAxiosParamCreator = function (configuration?: Configuration)
4938
5039
 
4939
5040
  localVarHeaderParameter['Content-Type'] = 'application/json';
4940
5041
 
4941
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.1.4';
5042
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.0';
4942
5043
  if (x_api_version != null && x_api_version != undefined) {
4943
5044
  localVarHeaderParameter['x-api-version'] = x_api_version;
4944
5045
  }
@@ -4962,12 +5063,12 @@ const EligibilityApiAxiosParamCreator = function (configuration?: Configuration)
4962
5063
  },
4963
5064
  /**
4964
5065
  * Use this API to get eligible Paylater Payment Methods for a customer on an order.
4965
- * @summary Get Eligible Paylater
5066
+ * @summary Get Eligible Paylater for a customer on an order
4966
5067
 
4967
5068
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
4968
5069
  * @param {EligibilityFetchPaylaterRequest} EligibilityFetchPaylaterRequest Request Body to get eligible paylater options for a customer and order
4969
5070
  * @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
4970
- * @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.
5071
+ * @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.
4971
5072
  * @param {*} [options] Override http request option.
4972
5073
  * @throws {RequiredError}
4973
5074
  * x_idempotency_key?: string,
@@ -5012,7 +5113,7 @@ const EligibilityApiAxiosParamCreator = function (configuration?: Configuration)
5012
5113
 
5013
5114
  localVarHeaderParameter['Content-Type'] = 'application/json';
5014
5115
 
5015
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.1.4';
5116
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.0';
5016
5117
  if (x_api_version != null && x_api_version != undefined) {
5017
5118
  localVarHeaderParameter['x-api-version'] = x_api_version;
5018
5119
  }
@@ -5036,12 +5137,12 @@ const EligibilityApiAxiosParamCreator = function (configuration?: Configuration)
5036
5137
  },
5037
5138
  /**
5038
5139
  * Use this API to get eligible Payment Methods
5039
- * @summary Get Eligible Payment Methods
5140
+ * @summary Get eligible Payment Methods
5040
5141
 
5041
5142
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
5042
5143
  * @param {EligibilityFetchPaymentMethodsRequest} EligibilityFetchPaymentMethodsRequest Request Body to get eligible payment methods for an account and order
5043
5144
  * @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
5044
- * @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.
5145
+ * @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.
5045
5146
  * @param {*} [options] Override http request option.
5046
5147
  * @throws {RequiredError}
5047
5148
  * x_idempotency_key?: string,
@@ -5086,7 +5187,7 @@ const EligibilityApiAxiosParamCreator = function (configuration?: Configuration)
5086
5187
 
5087
5188
  localVarHeaderParameter['Content-Type'] = 'application/json';
5088
5189
 
5089
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.1.4';
5190
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.0';
5090
5191
  if (x_api_version != null && x_api_version != undefined) {
5091
5192
  localVarHeaderParameter['x-api-version'] = x_api_version;
5092
5193
  }
@@ -5120,11 +5221,11 @@ const EligibilityApiFp = function(configuration?: Configuration) {
5120
5221
  return {
5121
5222
  /**
5122
5223
  * Use this API to get eligible Cardless EMI Payment Methods available for a customer on an order basis their phone number.
5123
- * @summary Get Eligible Cardless EMI
5224
+ * @summary Get Eligible Cardless EMI Payment Methods for a customer on an order
5124
5225
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
5125
5226
  * @param {EligibilityFetchCardlessEMIRequest} EligibilityFetchCardlessEMIRequest Request Body to get eligible cardless emi options for a customer and order
5126
5227
  * @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
5127
- * @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.
5228
+ * @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.
5128
5229
  * @param {*} [options] Override http request option.
5129
5230
  * @throws {RequiredError}
5130
5231
  */
@@ -5138,11 +5239,11 @@ const EligibilityApiFp = function(configuration?: Configuration) {
5138
5239
  },
5139
5240
  /**
5140
5241
  * Use this API to get eligible offers for an order_id or order amount.
5141
- * @summary Get Eligible Offers
5242
+ * @summary Get Eligible Offers for an Order
5142
5243
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
5143
5244
  * @param {EligibilityFetchOffersRequest} EligibilityFetchOffersRequest Request Body to get eligible offers for a customer and order
5144
5245
  * @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
5145
- * @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.
5246
+ * @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.
5146
5247
  * @param {*} [options] Override http request option.
5147
5248
  * @throws {RequiredError}
5148
5249
  */
@@ -5156,11 +5257,11 @@ const EligibilityApiFp = function(configuration?: Configuration) {
5156
5257
  },
5157
5258
  /**
5158
5259
  * Use this API to get eligible Paylater Payment Methods for a customer on an order.
5159
- * @summary Get Eligible Paylater
5260
+ * @summary Get Eligible Paylater for a customer on an order
5160
5261
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
5161
5262
  * @param {EligibilityFetchPaylaterRequest} EligibilityFetchPaylaterRequest Request Body to get eligible paylater options for a customer and order
5162
5263
  * @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
5163
- * @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.
5264
+ * @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.
5164
5265
  * @param {*} [options] Override http request option.
5165
5266
  * @throws {RequiredError}
5166
5267
  */
@@ -5174,11 +5275,11 @@ const EligibilityApiFp = function(configuration?: Configuration) {
5174
5275
  },
5175
5276
  /**
5176
5277
  * Use this API to get eligible Payment Methods
5177
- * @summary Get Eligible Payment Methods
5278
+ * @summary Get eligible Payment Methods
5178
5279
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
5179
5280
  * @param {EligibilityFetchPaymentMethodsRequest} EligibilityFetchPaymentMethodsRequest Request Body to get eligible payment methods for an account and order
5180
5281
  * @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
5181
- * @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.
5282
+ * @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.
5182
5283
  * @param {*} [options] Override http request option.
5183
5284
  * @throws {RequiredError}
5184
5285
  */
@@ -5215,7 +5316,7 @@ const OffersApiAxiosParamCreator = function (configuration?: Configuration) {
5215
5316
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
5216
5317
  * @param {CreateOfferRequest} CreateOfferRequest Request body to create an offer at Cashfree
5217
5318
  * @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
5218
- * @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.
5319
+ * @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.
5219
5320
  * @param {*} [options] Override http request option.
5220
5321
  * @throws {RequiredError}
5221
5322
  * x_idempotency_key?: string,
@@ -5260,7 +5361,7 @@ const OffersApiAxiosParamCreator = function (configuration?: Configuration) {
5260
5361
 
5261
5362
  localVarHeaderParameter['Content-Type'] = 'application/json';
5262
5363
 
5263
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.1.4';
5364
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.0';
5264
5365
  if (x_api_version != null && x_api_version != undefined) {
5265
5366
  localVarHeaderParameter['x-api-version'] = x_api_version;
5266
5367
  }
@@ -5289,7 +5390,7 @@ const OffersApiAxiosParamCreator = function (configuration?: Configuration) {
5289
5390
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
5290
5391
  * @param {string} offer_id The offer ID for which you want to view the offer details.
5291
5392
  * @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
5292
- * @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.
5393
+ * @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.
5293
5394
  * @param {*} [options] Override http request option.
5294
5395
  * @throws {RequiredError}
5295
5396
  * x_idempotency_key?: string,
@@ -5333,7 +5434,7 @@ const OffersApiAxiosParamCreator = function (configuration?: Configuration) {
5333
5434
 
5334
5435
 
5335
5436
 
5336
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.1.4';
5437
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.0';
5337
5438
  if (x_api_version != null && x_api_version != undefined) {
5338
5439
  localVarHeaderParameter['x-api-version'] = x_api_version;
5339
5440
  }
@@ -5370,7 +5471,7 @@ const OffersApiFp = function(configuration?: Configuration) {
5370
5471
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
5371
5472
  * @param {CreateOfferRequest} CreateOfferRequest Request body to create an offer at Cashfree
5372
5473
  * @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
5373
- * @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.
5474
+ * @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
5475
  * @param {*} [options] Override http request option.
5375
5476
  * @throws {RequiredError}
5376
5477
  */
@@ -5388,7 +5489,7 @@ const OffersApiFp = function(configuration?: Configuration) {
5388
5489
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
5389
5490
  * @param {string} offer_id The offer ID for which you want to view the offer details.
5390
5491
  * @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
5391
- * @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.
5492
+ * @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
5493
  * @param {*} [options] Override http request option.
5393
5494
  * @throws {RequiredError}
5394
5495
  */
@@ -5425,7 +5526,7 @@ const OrdersApiAxiosParamCreator = function (configuration?: Configuration) {
5425
5526
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
5426
5527
  * @param {CreateOrderRequest} CreateOrderRequest Request body to create an order at cashfree
5427
5528
  * @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
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.
5529
+ * @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.
5429
5530
  * @param {*} [options] Override http request option.
5430
5531
  * @throws {RequiredError}
5431
5532
  * x_idempotency_key?: string,
@@ -5470,7 +5571,7 @@ const OrdersApiAxiosParamCreator = function (configuration?: Configuration) {
5470
5571
 
5471
5572
  localVarHeaderParameter['Content-Type'] = 'application/json';
5472
5573
 
5473
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.1.4';
5574
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.0';
5474
5575
  if (x_api_version != null && x_api_version != undefined) {
5475
5576
  localVarHeaderParameter['x-api-version'] = x_api_version;
5476
5577
  }
@@ -5499,7 +5600,7 @@ const OrdersApiAxiosParamCreator = function (configuration?: Configuration) {
5499
5600
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
5500
5601
  * @param {string} order_id The id which uniquely identifies your order
5501
5602
  * @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
5502
- * @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.
5603
+ * @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.
5503
5604
  * @param {*} [options] Override http request option.
5504
5605
  * @throws {RequiredError}
5505
5606
  * x_idempotency_key?: string,
@@ -5543,7 +5644,7 @@ const OrdersApiAxiosParamCreator = function (configuration?: Configuration) {
5543
5644
 
5544
5645
 
5545
5646
 
5546
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.1.4';
5647
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.0';
5547
5648
  if (x_api_version != null && x_api_version != undefined) {
5548
5649
  localVarHeaderParameter['x-api-version'] = x_api_version;
5549
5650
  }
@@ -5559,6 +5660,84 @@ const OrdersApiAxiosParamCreator = function (configuration?: Configuration) {
5559
5660
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5560
5661
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5561
5662
 
5663
+ return {
5664
+ url: toPathString(localVarUrlObj),
5665
+ options: localVarRequestOptions,
5666
+ };
5667
+ },
5668
+ /**
5669
+ * Use this API to terminate the order that was created at Cashfree\'s using the `order_id`.
5670
+ * @summary Terminate Order
5671
+
5672
+ * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
5673
+ * @param {string} order_id The id which uniquely identifies your order
5674
+ * @param {TerminateOrderRequest} TerminateOrderRequest Request body to terminate an order at cashfree
5675
+ * @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
5676
+ * @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.
5677
+ * @param {*} [options] Override http request option.
5678
+ * @throws {RequiredError}
5679
+ * x_request_id?: string,
5680
+ */
5681
+ pGTerminateOrder: async (x_api_version: string, order_id: string, TerminateOrderRequest: TerminateOrderRequest, x_request_id?: string, x_idempotency_key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
5682
+ // verify required parameter 'x_api_version' is not null or undefined
5683
+ assertParamExists('pGTerminateOrder', 'x_api_version', x_api_version)
5684
+ // verify required parameter 'order_id' is not null or undefined
5685
+ assertParamExists('pGTerminateOrder', 'order_id', order_id)
5686
+ // verify required parameter 'TerminateOrderRequest' is not null or undefined
5687
+ assertParamExists('pGTerminateOrder', 'TerminateOrderRequest', TerminateOrderRequest)
5688
+ const localVarPath = `/orders/{order_id}`
5689
+ .replace(`{${"order_id"}}`, encodeURIComponent(String(order_id)));
5690
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5691
+ var url = "https://sandbox.cashfree.com/pg";
5692
+ if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) {
5693
+ url = "https://api.cashfree.com/pg"
5694
+ }
5695
+ const localVarUrlObj = new URL(localVarPath, url);
5696
+ let baseOptions;
5697
+ if (configuration) {
5698
+ baseOptions = configuration.baseOptions;
5699
+ }
5700
+
5701
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
5702
+ const localVarHeaderParameter = {} as any;
5703
+ const localVarQueryParameter = {} as any;
5704
+
5705
+ // authentication XPartnerAPIKey required
5706
+ await setApiKeyToObject(localVarHeaderParameter, "x-partner-apikey")
5707
+
5708
+ // authentication XClientSecret required
5709
+ await setApiKeyToObject(localVarHeaderParameter, "x-client-secret")
5710
+
5711
+ // authentication XPartnerMerchantID required
5712
+ await setApiKeyToObject(localVarHeaderParameter, "x-partner-merchantid")
5713
+
5714
+ // authentication XClientID required
5715
+ await setApiKeyToObject(localVarHeaderParameter, "x-client-id")
5716
+
5717
+ // authentication XClientSignatureHeader required
5718
+ await setApiKeyToObject(localVarHeaderParameter, "x-client-signature")
5719
+
5720
+
5721
+
5722
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5723
+
5724
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.0';
5725
+ if (x_api_version != null && x_api_version != undefined) {
5726
+ localVarHeaderParameter['x-api-version'] = x_api_version;
5727
+ }
5728
+
5729
+ if (x_request_id != null && x_request_id != undefined) {
5730
+ localVarHeaderParameter['x-request-id'] = x_request_id;
5731
+ }
5732
+
5733
+ if (x_idempotency_key != null && x_idempotency_key != undefined) {
5734
+ localVarHeaderParameter['x-idempotency-key'] = x_idempotency_key;
5735
+ }
5736
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5737
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5738
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5739
+ localVarRequestOptions.data = serializeDataIfNeeded(TerminateOrderRequest, localVarRequestOptions, configuration)
5740
+
5562
5741
  return {
5563
5742
  url: toPathString(localVarUrlObj),
5564
5743
  options: localVarRequestOptions,
@@ -5580,7 +5759,7 @@ const OrdersApiFp = function(configuration?: Configuration) {
5580
5759
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
5581
5760
  * @param {CreateOrderRequest} CreateOrderRequest Request body to create an order at cashfree
5582
5761
  * @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
5583
- * @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.
5762
+ * @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.
5584
5763
  * @param {*} [options] Override http request option.
5585
5764
  * @throws {RequiredError}
5586
5765
  */
@@ -5598,7 +5777,7 @@ const OrdersApiFp = function(configuration?: Configuration) {
5598
5777
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
5599
5778
  * @param {string} order_id The id which uniquely identifies your order
5600
5779
  * @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
5601
- * @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.
5780
+ * @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.
5602
5781
  * @param {*} [options] Override http request option.
5603
5782
  * @throws {RequiredError}
5604
5783
  */
@@ -5610,6 +5789,25 @@ const OrdersApiFp = function(configuration?: Configuration) {
5610
5789
  }
5611
5790
  return createRequestFunction(localVarAxiosArgs, globalAxios, url, configuration);
5612
5791
  },
5792
+ /**
5793
+ * Use this API to terminate the order that was created at Cashfree\'s using the `order_id`.
5794
+ * @summary Terminate Order
5795
+ * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
5796
+ * @param {string} order_id The id which uniquely identifies your order
5797
+ * @param {TerminateOrderRequest} TerminateOrderRequest Request body to terminate an order at cashfree
5798
+ * @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
5799
+ * @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.
5800
+ * @param {*} [options] Override http request option.
5801
+ * @throws {RequiredError}
5802
+ */
5803
+ 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>> {
5804
+ const localVarAxiosArgs = await localVarAxiosParamCreator.pGTerminateOrder(x_api_version, order_id, TerminateOrderRequest, x_request_id, x_idempotency_key, options);
5805
+ var url = "https://sandbox.cashfree.com/pg";
5806
+ if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) {
5807
+ url = "https://api.cashfree.com/pg"
5808
+ }
5809
+ return createRequestFunction(localVarAxiosArgs, globalAxios, url, configuration);
5810
+ },
5613
5811
  }
5614
5812
  };
5615
5813
 
@@ -5636,7 +5834,7 @@ const PGReconciliationApiAxiosParamCreator = function (configuration?: Configura
5636
5834
  * @param {FetchReconRequest} FetchReconRequest Request Body for the reconciliation
5637
5835
  * @param {string} [Content_Type] application/json
5638
5836
  * @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
5639
- * @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.
5837
+ * @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.
5640
5838
  * @param {string} [Accept] application/json
5641
5839
  * @param {*} [options] Override http request option.
5642
5840
  * @throws {RequiredError}
@@ -5682,7 +5880,7 @@ const PGReconciliationApiAxiosParamCreator = function (configuration?: Configura
5682
5880
 
5683
5881
  localVarHeaderParameter['Content-Type'] = 'application/json';
5684
5882
 
5685
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.1.4';
5883
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.0';
5686
5884
  if (x_api_version != null && x_api_version != undefined) {
5687
5885
  localVarHeaderParameter['x-api-version'] = x_api_version;
5688
5886
  }
@@ -5721,7 +5919,7 @@ const PGReconciliationApiFp = function(configuration?: Configuration) {
5721
5919
  * @param {FetchReconRequest} FetchReconRequest Request Body for the reconciliation
5722
5920
  * @param {string} [Content_Type] application/json
5723
5921
  * @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
5724
- * @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.
5922
+ * @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.
5725
5923
  * @param {string} [Accept] application/json
5726
5924
  * @param {*} [options] Override http request option.
5727
5925
  * @throws {RequiredError}
@@ -5759,7 +5957,7 @@ const PaymentLinksApiAxiosParamCreator = function (configuration?: Configuration
5759
5957
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
5760
5958
  * @param {string} link_id The payment link ID for which you want to view the details.
5761
5959
  * @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
5762
- * @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.
5960
+ * @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.
5763
5961
  * @param {*} [options] Override http request option.
5764
5962
  * @throws {RequiredError}
5765
5963
  * x_idempotency_key?: string,
@@ -5803,7 +6001,7 @@ const PaymentLinksApiAxiosParamCreator = function (configuration?: Configuration
5803
6001
 
5804
6002
 
5805
6003
 
5806
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.1.4';
6004
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.0';
5807
6005
  if (x_api_version != null && x_api_version != undefined) {
5808
6006
  localVarHeaderParameter['x-api-version'] = x_api_version;
5809
6007
  }
@@ -5831,7 +6029,7 @@ const PaymentLinksApiAxiosParamCreator = function (configuration?: Configuration
5831
6029
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
5832
6030
  * @param {CreateLinkRequest} CreateLinkRequest Request Body to Create Payment Links
5833
6031
  * @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
5834
- * @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.
6032
+ * @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.
5835
6033
  * @param {*} [options] Override http request option.
5836
6034
  * @throws {RequiredError}
5837
6035
  * x_idempotency_key?: string,
@@ -5876,7 +6074,7 @@ const PaymentLinksApiAxiosParamCreator = function (configuration?: Configuration
5876
6074
 
5877
6075
  localVarHeaderParameter['Content-Type'] = 'application/json';
5878
6076
 
5879
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.1.4';
6077
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.0';
5880
6078
  if (x_api_version != null && x_api_version != undefined) {
5881
6079
  localVarHeaderParameter['x-api-version'] = x_api_version;
5882
6080
  }
@@ -5905,7 +6103,7 @@ const PaymentLinksApiAxiosParamCreator = function (configuration?: Configuration
5905
6103
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
5906
6104
  * @param {string} link_id The payment link ID for which you want to view the details.
5907
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
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.
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.
5909
6107
  * @param {*} [options] Override http request option.
5910
6108
  * @throws {RequiredError}
5911
6109
  * x_idempotency_key?: string,
@@ -5949,7 +6147,7 @@ const PaymentLinksApiAxiosParamCreator = function (configuration?: Configuration
5949
6147
 
5950
6148
 
5951
6149
 
5952
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.1.4';
6150
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.0';
5953
6151
  if (x_api_version != null && x_api_version != undefined) {
5954
6152
  localVarHeaderParameter['x-api-version'] = x_api_version;
5955
6153
  }
@@ -5977,7 +6175,7 @@ const PaymentLinksApiAxiosParamCreator = function (configuration?: Configuration
5977
6175
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
5978
6176
  * @param {string} link_id The payment link ID for which you want to view the details.
5979
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
5980
- * @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.
5981
6179
  * @param {*} [options] Override http request option.
5982
6180
  * @throws {RequiredError}
5983
6181
  * x_idempotency_key?: string,
@@ -6021,7 +6219,7 @@ const PaymentLinksApiAxiosParamCreator = function (configuration?: Configuration
6021
6219
 
6022
6220
 
6023
6221
 
6024
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.1.4';
6222
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.0';
6025
6223
  if (x_api_version != null && x_api_version != undefined) {
6026
6224
  localVarHeaderParameter['x-api-version'] = x_api_version;
6027
6225
  }
@@ -6058,7 +6256,7 @@ const PaymentLinksApiFp = function(configuration?: Configuration) {
6058
6256
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
6059
6257
  * @param {string} link_id The payment link ID for which you want to view the details.
6060
6258
  * @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
6061
- * @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.
6259
+ * @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.
6062
6260
  * @param {*} [options] Override http request option.
6063
6261
  * @throws {RequiredError}
6064
6262
  */
@@ -6076,7 +6274,7 @@ const PaymentLinksApiFp = function(configuration?: Configuration) {
6076
6274
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
6077
6275
  * @param {CreateLinkRequest} CreateLinkRequest Request Body to Create Payment Links
6078
6276
  * @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
6079
- * @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.
6277
+ * @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.
6080
6278
  * @param {*} [options] Override http request option.
6081
6279
  * @throws {RequiredError}
6082
6280
  */
@@ -6094,7 +6292,7 @@ const PaymentLinksApiFp = function(configuration?: Configuration) {
6094
6292
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
6095
6293
  * @param {string} link_id The payment link ID for which you want to view the details.
6096
6294
  * @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
6097
- * @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.
6295
+ * @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.
6098
6296
  * @param {*} [options] Override http request option.
6099
6297
  * @throws {RequiredError}
6100
6298
  */
@@ -6112,7 +6310,7 @@ const PaymentLinksApiFp = function(configuration?: Configuration) {
6112
6310
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
6113
6311
  * @param {string} link_id The payment link ID for which you want to view the details.
6114
6312
  * @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
6115
- * @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.
6313
+ * @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.
6116
6314
  * @param {*} [options] Override http request option.
6117
6315
  * @throws {RequiredError}
6118
6316
  */
@@ -6150,7 +6348,7 @@ const PaymentsApiAxiosParamCreator = function (configuration?: Configuration) {
6150
6348
  * @param {string} order_id The id which uniquely identifies your order
6151
6349
  * @param {AuthorizeOrderRequest} AuthorizeOrderRequest Request to Capture or Void Transactions
6152
6350
  * @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
6153
- * @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.
6351
+ * @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.
6154
6352
  * @param {*} [options] Override http request option.
6155
6353
  * @throws {RequiredError}
6156
6354
  * x_request_id?: string,
@@ -6198,7 +6396,7 @@ const PaymentsApiAxiosParamCreator = function (configuration?: Configuration) {
6198
6396
 
6199
6397
  localVarHeaderParameter['Content-Type'] = 'application/json';
6200
6398
 
6201
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.1.4';
6399
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.0';
6202
6400
  if (x_api_version != null && x_api_version != undefined) {
6203
6401
  localVarHeaderParameter['x-api-version'] = x_api_version;
6204
6402
  }
@@ -6228,7 +6426,7 @@ const PaymentsApiAxiosParamCreator = function (configuration?: Configuration) {
6228
6426
  * @param {string} cf_payment_id The Cashfree payment or transaction ID.
6229
6427
  * @param {OrderAuthenticatePaymentRequest} OrderAuthenticatePaymentRequest Request body to submit/resend headless OTP. To use this API make sure you have headless OTP enabled for your account
6230
6428
  * @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
6231
- * @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.
6429
+ * @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.
6232
6430
  * @param {*} [options] Override http request option.
6233
6431
  * @throws {RequiredError}
6234
6432
  * x_request_id?: string,
@@ -6261,7 +6459,7 @@ const PaymentsApiAxiosParamCreator = function (configuration?: Configuration) {
6261
6459
 
6262
6460
  localVarHeaderParameter['Content-Type'] = 'application/json';
6263
6461
 
6264
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.1.4';
6462
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.0';
6265
6463
  if (x_api_version != null && x_api_version != undefined) {
6266
6464
  localVarHeaderParameter['x-api-version'] = x_api_version;
6267
6465
  }
@@ -6291,7 +6489,7 @@ const PaymentsApiAxiosParamCreator = function (configuration?: Configuration) {
6291
6489
  * @param {string} order_id The id which uniquely identifies your order
6292
6490
  * @param {string} cf_payment_id The Cashfree payment or transaction ID.
6293
6491
  * @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
6294
- * @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.
6492
+ * @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.
6295
6493
  * @param {*} [options] Override http request option.
6296
6494
  * @throws {RequiredError}
6297
6495
  * x_request_id?: string,
@@ -6338,7 +6536,7 @@ const PaymentsApiAxiosParamCreator = function (configuration?: Configuration) {
6338
6536
 
6339
6537
 
6340
6538
 
6341
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.1.4';
6539
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.0';
6342
6540
  if (x_api_version != null && x_api_version != undefined) {
6343
6541
  localVarHeaderParameter['x-api-version'] = x_api_version;
6344
6542
  }
@@ -6366,7 +6564,7 @@ const PaymentsApiAxiosParamCreator = function (configuration?: Configuration) {
6366
6564
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
6367
6565
  * @param {string} order_id The id which uniquely identifies your order
6368
6566
  * @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
6369
- * @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.
6567
+ * @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.
6370
6568
  * @param {*} [options] Override http request option.
6371
6569
  * @throws {RequiredError}
6372
6570
  * x_idempotency_key?: string,
@@ -6410,7 +6608,7 @@ const PaymentsApiAxiosParamCreator = function (configuration?: Configuration) {
6410
6608
 
6411
6609
 
6412
6610
 
6413
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.1.4';
6611
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.0';
6414
6612
  if (x_api_version != null && x_api_version != undefined) {
6415
6613
  localVarHeaderParameter['x-api-version'] = x_api_version;
6416
6614
  }
@@ -6438,7 +6636,7 @@ const PaymentsApiAxiosParamCreator = function (configuration?: Configuration) {
6438
6636
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
6439
6637
  * @param {PayOrderRequest} PayOrderRequest Request body to create a transaction at cashfree using &#x60;payment_session_id&#x60;
6440
6638
  * @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
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.
6639
+ * @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.
6442
6640
  * @param {*} [options] Override http request option.
6443
6641
  * @throws {RequiredError}
6444
6642
  * x_idempotency_key?: string,
@@ -6468,7 +6666,7 @@ const PaymentsApiAxiosParamCreator = function (configuration?: Configuration) {
6468
6666
 
6469
6667
  localVarHeaderParameter['Content-Type'] = 'application/json';
6470
6668
 
6471
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.1.4';
6669
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.0';
6472
6670
  if (x_api_version != null && x_api_version != undefined) {
6473
6671
  localVarHeaderParameter['x-api-version'] = x_api_version;
6474
6672
  }
@@ -6507,7 +6705,7 @@ const PaymentsApiFp = function(configuration?: Configuration) {
6507
6705
  * @param {string} order_id The id which uniquely identifies your order
6508
6706
  * @param {AuthorizeOrderRequest} AuthorizeOrderRequest Request to Capture or Void Transactions
6509
6707
  * @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
6510
- * @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.
6708
+ * @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.
6511
6709
  * @param {*} [options] Override http request option.
6512
6710
  * @throws {RequiredError}
6513
6711
  */
@@ -6526,7 +6724,7 @@ const PaymentsApiFp = function(configuration?: Configuration) {
6526
6724
  * @param {string} cf_payment_id The Cashfree payment or transaction ID.
6527
6725
  * @param {OrderAuthenticatePaymentRequest} OrderAuthenticatePaymentRequest Request body to submit/resend headless OTP. To use this API make sure you have headless OTP enabled for your account
6528
6726
  * @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
6529
- * @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.
6727
+ * @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.
6530
6728
  * @param {*} [options] Override http request option.
6531
6729
  * @throws {RequiredError}
6532
6730
  */
@@ -6545,7 +6743,7 @@ const PaymentsApiFp = function(configuration?: Configuration) {
6545
6743
  * @param {string} order_id The id which uniquely identifies your order
6546
6744
  * @param {string} cf_payment_id The Cashfree payment or transaction ID.
6547
6745
  * @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
6548
- * @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.
6746
+ * @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.
6549
6747
  * @param {*} [options] Override http request option.
6550
6748
  * @throws {RequiredError}
6551
6749
  */
@@ -6563,7 +6761,7 @@ const PaymentsApiFp = function(configuration?: Configuration) {
6563
6761
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
6564
6762
  * @param {string} order_id The id which uniquely identifies your order
6565
6763
  * @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
6566
- * @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.
6764
+ * @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.
6567
6765
  * @param {*} [options] Override http request option.
6568
6766
  * @throws {RequiredError}
6569
6767
  */
@@ -6581,7 +6779,7 @@ const PaymentsApiFp = function(configuration?: Configuration) {
6581
6779
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
6582
6780
  * @param {PayOrderRequest} PayOrderRequest Request body to create a transaction at cashfree using &#x60;payment_session_id&#x60;
6583
6781
  * @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
6584
- * @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.
6782
+ * @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.
6585
6783
  * @param {*} [options] Override http request option.
6586
6784
  * @throws {RequiredError}
6587
6785
  */
@@ -6619,7 +6817,7 @@ const RefundsApiAxiosParamCreator = function (configuration?: Configuration) {
6619
6817
  * @param {string} order_id The id which uniquely identifies your order
6620
6818
  * @param {OrderCreateRefundRequest} OrderCreateRefundRequest Request Body to Create Refunds
6621
6819
  * @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
6622
- * @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.
6820
+ * @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.
6623
6821
  * @param {*} [options] Override http request option.
6624
6822
  * @throws {RequiredError}
6625
6823
  * x_request_id?: string,
@@ -6667,7 +6865,7 @@ const RefundsApiAxiosParamCreator = function (configuration?: Configuration) {
6667
6865
 
6668
6866
  localVarHeaderParameter['Content-Type'] = 'application/json';
6669
6867
 
6670
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.1.4';
6868
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.0';
6671
6869
  if (x_api_version != null && x_api_version != undefined) {
6672
6870
  localVarHeaderParameter['x-api-version'] = x_api_version;
6673
6871
  }
@@ -6697,7 +6895,7 @@ const RefundsApiAxiosParamCreator = function (configuration?: Configuration) {
6697
6895
  * @param {string} order_id The id which uniquely identifies your order
6698
6896
  * @param {string} refund_id Refund Id of the refund you want to fetch.
6699
6897
  * @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
6700
- * @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.
6898
+ * @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.
6701
6899
  * @param {*} [options] Override http request option.
6702
6900
  * @throws {RequiredError}
6703
6901
  * x_request_id?: string,
@@ -6744,7 +6942,7 @@ const RefundsApiAxiosParamCreator = function (configuration?: Configuration) {
6744
6942
 
6745
6943
 
6746
6944
 
6747
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.1.4';
6945
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.0';
6748
6946
  if (x_api_version != null && x_api_version != undefined) {
6749
6947
  localVarHeaderParameter['x-api-version'] = x_api_version;
6750
6948
  }
@@ -6772,7 +6970,7 @@ const RefundsApiAxiosParamCreator = function (configuration?: Configuration) {
6772
6970
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
6773
6971
  * @param {string} order_id The id which uniquely identifies your order
6774
6972
  * @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
6775
- * @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.
6973
+ * @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.
6776
6974
  * @param {*} [options] Override http request option.
6777
6975
  * @throws {RequiredError}
6778
6976
  * x_idempotency_key?: string,
@@ -6816,7 +7014,7 @@ const RefundsApiAxiosParamCreator = function (configuration?: Configuration) {
6816
7014
 
6817
7015
 
6818
7016
 
6819
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.1.4';
7017
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.0';
6820
7018
  if (x_api_version != null && x_api_version != undefined) {
6821
7019
  localVarHeaderParameter['x-api-version'] = x_api_version;
6822
7020
  }
@@ -6854,7 +7052,7 @@ const RefundsApiFp = function(configuration?: Configuration) {
6854
7052
  * @param {string} order_id The id which uniquely identifies your order
6855
7053
  * @param {OrderCreateRefundRequest} OrderCreateRefundRequest Request Body to Create Refunds
6856
7054
  * @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
6857
- * @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.
7055
+ * @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.
6858
7056
  * @param {*} [options] Override http request option.
6859
7057
  * @throws {RequiredError}
6860
7058
  */
@@ -6873,7 +7071,7 @@ const RefundsApiFp = function(configuration?: Configuration) {
6873
7071
  * @param {string} order_id The id which uniquely identifies your order
6874
7072
  * @param {string} refund_id Refund Id of the refund you want to fetch.
6875
7073
  * @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
6876
- * @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.
7074
+ * @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.
6877
7075
  * @param {*} [options] Override http request option.
6878
7076
  * @throws {RequiredError}
6879
7077
  */
@@ -6891,7 +7089,7 @@ const RefundsApiFp = function(configuration?: Configuration) {
6891
7089
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
6892
7090
  * @param {string} order_id The id which uniquely identifies your order
6893
7091
  * @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
6894
- * @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.
7092
+ * @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.
6895
7093
  * @param {*} [options] Override http request option.
6896
7094
  * @throws {RequiredError}
6897
7095
  */
@@ -6929,7 +7127,7 @@ const SettlementReconciliationApiAxiosParamCreator = function (configuration?: C
6929
7127
  * @param {FetchSettlementsRequest} FetchSettlementsRequest Request Body to get the settlements
6930
7128
  * @param {string} [Content_Type] application/json
6931
7129
  * @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
6932
- * @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.
7130
+ * @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.
6933
7131
  * @param {string} [Accept] application/json
6934
7132
  * @param {*} [options] Override http request option.
6935
7133
  * @throws {RequiredError}
@@ -6975,7 +7173,7 @@ const SettlementReconciliationApiAxiosParamCreator = function (configuration?: C
6975
7173
 
6976
7174
  localVarHeaderParameter['Content-Type'] = 'application/json';
6977
7175
 
6978
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.1.4';
7176
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.0';
6979
7177
  if (x_api_version != null && x_api_version != undefined) {
6980
7178
  localVarHeaderParameter['x-api-version'] = x_api_version;
6981
7179
  }
@@ -7005,7 +7203,7 @@ const SettlementReconciliationApiAxiosParamCreator = function (configuration?: C
7005
7203
  * @param {SettlementFetchReconRequest} SettlementFetchReconRequest Request Body for the settlement reconciliation
7006
7204
  * @param {string} [Content_Type] application/json
7007
7205
  * @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
7008
- * @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.
7206
+ * @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.
7009
7207
  * @param {string} [Accept] application/json
7010
7208
  * @param {*} [options] Override http request option.
7011
7209
  * @throws {RequiredError}
@@ -7051,7 +7249,7 @@ const SettlementReconciliationApiAxiosParamCreator = function (configuration?: C
7051
7249
 
7052
7250
  localVarHeaderParameter['Content-Type'] = 'application/json';
7053
7251
 
7054
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.1.4';
7252
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.0';
7055
7253
  if (x_api_version != null && x_api_version != undefined) {
7056
7254
  localVarHeaderParameter['x-api-version'] = x_api_version;
7057
7255
  }
@@ -7090,7 +7288,7 @@ const SettlementReconciliationApiFp = function(configuration?: Configuration) {
7090
7288
  * @param {FetchSettlementsRequest} FetchSettlementsRequest Request Body to get the settlements
7091
7289
  * @param {string} [Content_Type] application/json
7092
7290
  * @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
7093
- * @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.
7291
+ * @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.
7094
7292
  * @param {string} [Accept] application/json
7095
7293
  * @param {*} [options] Override http request option.
7096
7294
  * @throws {RequiredError}
@@ -7110,7 +7308,7 @@ const SettlementReconciliationApiFp = function(configuration?: Configuration) {
7110
7308
  * @param {SettlementFetchReconRequest} SettlementFetchReconRequest Request Body for the settlement reconciliation
7111
7309
  * @param {string} [Content_Type] application/json
7112
7310
  * @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
7113
- * @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.
7311
+ * @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.
7114
7312
  * @param {string} [Accept] application/json
7115
7313
  * @param {*} [options] Override http request option.
7116
7314
  * @throws {RequiredError}
@@ -7148,7 +7346,7 @@ const SettlementsApiAxiosParamCreator = function (configuration?: Configuration)
7148
7346
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
7149
7347
  * @param {string} order_id The id which uniquely identifies your order
7150
7348
  * @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
7151
- * @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.
7349
+ * @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.
7152
7350
  * @param {*} [options] Override http request option.
7153
7351
  * @throws {RequiredError}
7154
7352
  * x_idempotency_key?: string,
@@ -7192,7 +7390,7 @@ const SettlementsApiAxiosParamCreator = function (configuration?: Configuration)
7192
7390
 
7193
7391
 
7194
7392
 
7195
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.1.4';
7393
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.0';
7196
7394
  if (x_api_version != null && x_api_version != undefined) {
7197
7395
  localVarHeaderParameter['x-api-version'] = x_api_version;
7198
7396
  }
@@ -7229,7 +7427,7 @@ const SettlementsApiFp = function(configuration?: Configuration) {
7229
7427
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
7230
7428
  * @param {string} order_id The id which uniquely identifies your order
7231
7429
  * @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
7232
- * @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.
7430
+ * @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.
7233
7431
  * @param {*} [options] Override http request option.
7234
7432
  * @throws {RequiredError}
7235
7433
  */
@@ -7266,7 +7464,7 @@ const SoftPOSApiAxiosParamCreator = function (configuration?: Configuration) {
7266
7464
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
7267
7465
  * @param {CreateTerminalRequest} CreateTerminalRequest Request Body to Create Terminal for SPOS
7268
7466
  * @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
7269
- * @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.
7467
+ * @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.
7270
7468
  * @param {*} [options] Override http request option.
7271
7469
  * @throws {RequiredError}
7272
7470
  * x_idempotency_key?: string,
@@ -7311,7 +7509,7 @@ const SoftPOSApiAxiosParamCreator = function (configuration?: Configuration) {
7311
7509
 
7312
7510
  localVarHeaderParameter['Content-Type'] = 'application/json';
7313
7511
 
7314
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.1.4';
7512
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.0';
7315
7513
  if (x_api_version != null && x_api_version != undefined) {
7316
7514
  localVarHeaderParameter['x-api-version'] = x_api_version;
7317
7515
  }
@@ -7335,12 +7533,12 @@ const SoftPOSApiAxiosParamCreator = function (configuration?: Configuration) {
7335
7533
  },
7336
7534
  /**
7337
7535
  * 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.
7338
- * @summary Create Terminal
7536
+ * @summary Create Terminal Transaction
7339
7537
 
7340
7538
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
7341
7539
  * @param {CreateTerminalTransactionRequest} CreateTerminalTransactionRequest Request body to create a terminal transaction
7342
7540
  * @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
7343
- * @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.
7541
+ * @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.
7344
7542
  * @param {*} [options] Override http request option.
7345
7543
  * @throws {RequiredError}
7346
7544
  * x_idempotency_key?: string,
@@ -7385,7 +7583,7 @@ const SoftPOSApiAxiosParamCreator = function (configuration?: Configuration) {
7385
7583
 
7386
7584
  localVarHeaderParameter['Content-Type'] = 'application/json';
7387
7585
 
7388
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.1.4';
7586
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.0';
7389
7587
  if (x_api_version != null && x_api_version != undefined) {
7390
7588
  localVarHeaderParameter['x-api-version'] = x_api_version;
7391
7589
  }
@@ -7414,7 +7612,7 @@ const SoftPOSApiAxiosParamCreator = function (configuration?: Configuration) {
7414
7612
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
7415
7613
  * @param {string} terminal_phone_no The terminal for which you want to view the order details.
7416
7614
  * @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
7417
- * @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.
7615
+ * @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.
7418
7616
  * @param {*} [options] Override http request option.
7419
7617
  * @throws {RequiredError}
7420
7618
  * x_idempotency_key?: string,
@@ -7458,7 +7656,7 @@ const SoftPOSApiAxiosParamCreator = function (configuration?: Configuration) {
7458
7656
 
7459
7657
 
7460
7658
 
7461
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.1.4';
7659
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.0';
7462
7660
  if (x_api_version != null && x_api_version != undefined) {
7463
7661
  localVarHeaderParameter['x-api-version'] = x_api_version;
7464
7662
  }
@@ -7487,7 +7685,7 @@ const SoftPOSApiAxiosParamCreator = function (configuration?: Configuration) {
7487
7685
  * @param {string} terminal_phone_no Phone number assigned to the terminal. Required if you are not providing the cf_terminal_id in the request.
7488
7686
  * @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.
7489
7687
  * @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
7490
- * @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.
7688
+ * @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.
7491
7689
  * @param {*} [options] Override http request option.
7492
7690
  * @throws {RequiredError}
7493
7691
  * x_request_id?: string,
@@ -7540,7 +7738,7 @@ const SoftPOSApiAxiosParamCreator = function (configuration?: Configuration) {
7540
7738
 
7541
7739
 
7542
7740
 
7543
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.1.4';
7741
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.0';
7544
7742
  if (x_api_version != null && x_api_version != undefined) {
7545
7743
  localVarHeaderParameter['x-api-version'] = x_api_version;
7546
7744
  }
@@ -7577,7 +7775,7 @@ const SoftPOSApiFp = function(configuration?: Configuration) {
7577
7775
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
7578
7776
  * @param {CreateTerminalRequest} CreateTerminalRequest Request Body to Create Terminal for SPOS
7579
7777
  * @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
7580
- * @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.
7778
+ * @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.
7581
7779
  * @param {*} [options] Override http request option.
7582
7780
  * @throws {RequiredError}
7583
7781
  */
@@ -7591,11 +7789,11 @@ const SoftPOSApiFp = function(configuration?: Configuration) {
7591
7789
  },
7592
7790
  /**
7593
7791
  * 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.
7594
- * @summary Create Terminal
7792
+ * @summary Create Terminal Transaction
7595
7793
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
7596
7794
  * @param {CreateTerminalTransactionRequest} CreateTerminalTransactionRequest Request body to create a terminal transaction
7597
7795
  * @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
7598
- * @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.
7796
+ * @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.
7599
7797
  * @param {*} [options] Override http request option.
7600
7798
  * @throws {RequiredError}
7601
7799
  */
@@ -7613,7 +7811,7 @@ const SoftPOSApiFp = function(configuration?: Configuration) {
7613
7811
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
7614
7812
  * @param {string} terminal_phone_no The terminal for which you want to view the order details.
7615
7813
  * @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
7616
- * @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.
7814
+ * @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.
7617
7815
  * @param {*} [options] Override http request option.
7618
7816
  * @throws {RequiredError}
7619
7817
  */
@@ -7632,7 +7830,7 @@ const SoftPOSApiFp = function(configuration?: Configuration) {
7632
7830
  * @param {string} terminal_phone_no Phone number assigned to the terminal. Required if you are not providing the cf_terminal_id in the request.
7633
7831
  * @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.
7634
7832
  * @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
7635
- * @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.
7833
+ * @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.
7636
7834
  * @param {*} [options] Override http request option.
7637
7835
  * @throws {RequiredError}
7638
7836
  */
@@ -7670,7 +7868,7 @@ const TokenVaultApiAxiosParamCreator = function (configuration?: Configuration)
7670
7868
  * @param {string} customer_id Your Customer ID that you had sent during create order API &#x60;POST/orders&#x60;
7671
7869
  * @param {string} instrument_id The instrument_id which needs to be deleted
7672
7870
  * @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
7673
- * @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.
7871
+ * @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.
7674
7872
  * @param {*} [options] Override http request option.
7675
7873
  * @throws {RequiredError}
7676
7874
  * x_request_id?: string,
@@ -7717,7 +7915,7 @@ const TokenVaultApiAxiosParamCreator = function (configuration?: Configuration)
7717
7915
 
7718
7916
 
7719
7917
 
7720
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.1.4';
7918
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.0';
7721
7919
  if (x_api_version != null && x_api_version != undefined) {
7722
7920
  localVarHeaderParameter['x-api-version'] = x_api_version;
7723
7921
  }
@@ -7746,7 +7944,7 @@ const TokenVaultApiAxiosParamCreator = function (configuration?: Configuration)
7746
7944
  * @param {string} customer_id Your Customer ID that you had sent during create order API &#x60;POST/orders&#x60;
7747
7945
  * @param {string} instrument_id The instrument_id of the saved instrument which needs to be queried
7748
7946
  * @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
7749
- * @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.
7947
+ * @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.
7750
7948
  * @param {*} [options] Override http request option.
7751
7949
  * @throws {RequiredError}
7752
7950
  * x_request_id?: string,
@@ -7793,7 +7991,7 @@ const TokenVaultApiAxiosParamCreator = function (configuration?: Configuration)
7793
7991
 
7794
7992
 
7795
7993
 
7796
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.1.4';
7994
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.0';
7797
7995
  if (x_api_version != null && x_api_version != undefined) {
7798
7996
  localVarHeaderParameter['x-api-version'] = x_api_version;
7799
7997
  }
@@ -7822,7 +8020,7 @@ const TokenVaultApiAxiosParamCreator = function (configuration?: Configuration)
7822
8020
  * @param {string} customer_id Your Customer ID that you had sent during create order API &#x60;POST/orders&#x60;
7823
8021
  * @param {PGCustomerFetchInstrumentsInstrumentTypeEnum} instrument_type Payment mode or type of saved instrument
7824
8022
  * @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
7825
- * @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.
8023
+ * @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.
7826
8024
  * @param {*} [options] Override http request option.
7827
8025
  * @throws {RequiredError}
7828
8026
  * x_request_id?: string,
@@ -7872,7 +8070,7 @@ const TokenVaultApiAxiosParamCreator = function (configuration?: Configuration)
7872
8070
 
7873
8071
 
7874
8072
 
7875
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.1.4';
8073
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.0';
7876
8074
  if (x_api_version != null && x_api_version != undefined) {
7877
8075
  localVarHeaderParameter['x-api-version'] = x_api_version;
7878
8076
  }
@@ -7901,7 +8099,7 @@ const TokenVaultApiAxiosParamCreator = function (configuration?: Configuration)
7901
8099
  * @param {string} customer_id Your Customer ID that you had sent during create order API &#x60;POST/orders&#x60;
7902
8100
  * @param {string} instrument_id The instrument_id of the saved card instrument which needs to be queried
7903
8101
  * @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
7904
- * @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.
8102
+ * @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.
7905
8103
  * @param {*} [options] Override http request option.
7906
8104
  * @throws {RequiredError}
7907
8105
  * x_request_id?: string,
@@ -7948,7 +8146,7 @@ const TokenVaultApiAxiosParamCreator = function (configuration?: Configuration)
7948
8146
 
7949
8147
 
7950
8148
 
7951
- localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.1.4';
8149
+ localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.0';
7952
8150
  if (x_api_version != null && x_api_version != undefined) {
7953
8151
  localVarHeaderParameter['x-api-version'] = x_api_version;
7954
8152
  }
@@ -7986,7 +8184,7 @@ const TokenVaultApiFp = function(configuration?: Configuration) {
7986
8184
  * @param {string} customer_id Your Customer ID that you had sent during create order API &#x60;POST/orders&#x60;
7987
8185
  * @param {string} instrument_id The instrument_id which needs to be deleted
7988
8186
  * @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.
8187
+ * @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
8188
  * @param {*} [options] Override http request option.
7991
8189
  * @throws {RequiredError}
7992
8190
  */
@@ -8005,7 +8203,7 @@ const TokenVaultApiFp = function(configuration?: Configuration) {
8005
8203
  * @param {string} customer_id Your Customer ID that you had sent during create order API &#x60;POST/orders&#x60;
8006
8204
  * @param {string} instrument_id The instrument_id of the saved instrument which needs to be queried
8007
8205
  * @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
8008
- * @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.
8206
+ * @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.
8009
8207
  * @param {*} [options] Override http request option.
8010
8208
  * @throws {RequiredError}
8011
8209
  */
@@ -8024,7 +8222,7 @@ const TokenVaultApiFp = function(configuration?: Configuration) {
8024
8222
  * @param {string} customer_id Your Customer ID that you had sent during create order API &#x60;POST/orders&#x60;
8025
8223
  * @param {PGCustomerFetchInstrumentsInstrumentTypeEnum} instrument_type Payment mode or type of saved instrument
8026
8224
  * @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
8027
- * @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.
8225
+ * @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.
8028
8226
  * @param {*} [options] Override http request option.
8029
8227
  * @throws {RequiredError}
8030
8228
  */
@@ -8043,7 +8241,7 @@ const TokenVaultApiFp = function(configuration?: Configuration) {
8043
8241
  * @param {string} customer_id Your Customer ID that you had sent during create order API &#x60;POST/orders&#x60;
8044
8242
  * @param {string} instrument_id The instrument_id of the saved card instrument which needs to be queried
8045
8243
  * @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
8046
- * @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.
8244
+ * @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.
8047
8245
  * @param {*} [options] Override http request option.
8048
8246
  * @throws {RequiredError}
8049
8247
  */
@@ -8105,7 +8303,7 @@ export class Cashfree {
8105
8303
  static XPartnerMerchantId?: string;
8106
8304
  static XEnvironment: CFEnvironment;
8107
8305
  static XEnableErrorAnalytics: boolean = true;
8108
- static XApiVersion: string = "2022-09-01";
8306
+ static XApiVersion: string = "2023-08-01";
8109
8307
 
8110
8308
  static Environment = new Environment();
8111
8309
 
@@ -8129,13 +8327,73 @@ export class Cashfree {
8129
8327
  }
8130
8328
 
8131
8329
 
8330
+ /**
8331
+ * Create Customer at Cashfree
8332
+ * @summary Create Customer at Cashfree
8333
+ * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
8334
+ * @param {CreateCustomerRequest} CreateCustomerRequest Request to create a new customer at Cashfree
8335
+ * @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
8336
+ * @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.
8337
+ * @param {*} [options] Override http request option.
8338
+ * @throws {RequiredError}
8339
+ * @memberof CustomersApi
8340
+ */
8341
+ public static PGCreateCustomer(x_api_version: string, CreateCustomerRequest: CreateCustomerRequest, x_request_id?: string, x_idempotency_key?: string, options?: AxiosRequestConfig) {
8342
+ if(Cashfree.XEnableErrorAnalytics) {
8343
+ Sentry.init({
8344
+ dsn: 'https://ad7936cb4d7f4f2b99c6571a8e7a4df7@o330525.ingest.sentry.io/4505085005725696',
8345
+ // Performance Monitoring
8346
+ tracesSampleRate: 1.0, // Capture 100% of the transactions, reduce in production!
8347
+ // Set sampling rate for profiling - this is relative to tracesSampleRate
8348
+ profilesSampleRate: 1.0, // Capture 100% of the transactions, reduce in production!,
8349
+ attachStacktrace: true,
8350
+ enableTracing: true,
8351
+ beforeSend: (event) => {
8352
+ delete event.contexts.os;
8353
+ delete event.contexts.device;
8354
+ delete event.server_name;
8355
+ if (event.exception && event.exception.values && event.exception.values[0].stacktrace) {
8356
+ const stackTrace = event.exception.values[0].stacktrace;
8357
+ if (stackTrace && stackTrace.frames) {
8358
+
8359
+ const filteredDomains = stackTrace.frames.filter((x) => x.filename.includes("cashfree-pg")).map((x) => x.filename);
8360
+ if (filteredDomains[0].includes("cashfree-pg")) {
8361
+ if(Cashfree.XEnableErrorAnalytics) {
8362
+ return event;
8363
+ }
8364
+ return null;
8365
+ }
8366
+ }
8367
+ }
8368
+ return null;
8369
+ },
8370
+ });
8371
+ Sentry.configureScope((scope) => {
8372
+ if(Cashfree.XEnvironment == CFEnvironment.SANDBOX) {
8373
+ scope.setExtra('environment', 'sandbox');
8374
+ } else {
8375
+ scope.setExtra('environment', 'production');
8376
+ }
8377
+ scope.setExtra('release', "4.0.0");
8378
+ });
8379
+ }
8380
+ try {
8381
+ return CustomersApiFp().pGCreateCustomer(x_api_version, CreateCustomerRequest, x_request_id, x_idempotency_key, options).then((request) => request(Cashfree.axios, Cashfree.basePath));
8382
+ } catch (error) {
8383
+ if(Cashfree.XEnableErrorAnalytics) {
8384
+ Sentry.captureException(error);
8385
+ }
8386
+ throw error;
8387
+ }
8388
+ }
8389
+
8132
8390
  /**
8133
8391
  * Use this API to get eligible Cardless EMI Payment Methods available for a customer on an order basis their phone number.
8134
- * @summary Get Eligible Cardless EMI
8392
+ * @summary Get Eligible Cardless EMI Payment Methods for a customer on an order
8135
8393
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
8136
8394
  * @param {EligibilityFetchCardlessEMIRequest} EligibilityFetchCardlessEMIRequest Request Body to get eligible cardless emi options for a customer and order
8137
8395
  * @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
8138
- * @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.
8396
+ * @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.
8139
8397
  * @param {*} [options] Override http request option.
8140
8398
  * @throws {RequiredError}
8141
8399
  * @memberof EligibilityApi
@@ -8176,7 +8434,7 @@ export class Cashfree {
8176
8434
  } else {
8177
8435
  scope.setExtra('environment', 'production');
8178
8436
  }
8179
- scope.setExtra('release', "3.1.4");
8437
+ scope.setExtra('release', "4.0.0");
8180
8438
  });
8181
8439
  }
8182
8440
  try {
@@ -8191,11 +8449,11 @@ export class Cashfree {
8191
8449
 
8192
8450
  /**
8193
8451
  * Use this API to get eligible offers for an order_id or order amount.
8194
- * @summary Get Eligible Offers
8452
+ * @summary Get Eligible Offers for an Order
8195
8453
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
8196
8454
  * @param {EligibilityFetchOffersRequest} EligibilityFetchOffersRequest Request Body to get eligible offers for a customer and order
8197
8455
  * @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
8198
- * @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.
8456
+ * @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.
8199
8457
  * @param {*} [options] Override http request option.
8200
8458
  * @throws {RequiredError}
8201
8459
  * @memberof EligibilityApi
@@ -8236,7 +8494,7 @@ export class Cashfree {
8236
8494
  } else {
8237
8495
  scope.setExtra('environment', 'production');
8238
8496
  }
8239
- scope.setExtra('release', "3.1.4");
8497
+ scope.setExtra('release', "4.0.0");
8240
8498
  });
8241
8499
  }
8242
8500
  try {
@@ -8251,11 +8509,11 @@ export class Cashfree {
8251
8509
 
8252
8510
  /**
8253
8511
  * Use this API to get eligible Paylater Payment Methods for a customer on an order.
8254
- * @summary Get Eligible Paylater
8512
+ * @summary Get Eligible Paylater for a customer on an order
8255
8513
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
8256
8514
  * @param {EligibilityFetchPaylaterRequest} EligibilityFetchPaylaterRequest Request Body to get eligible paylater options for a customer and order
8257
8515
  * @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
8258
- * @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.
8516
+ * @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.
8259
8517
  * @param {*} [options] Override http request option.
8260
8518
  * @throws {RequiredError}
8261
8519
  * @memberof EligibilityApi
@@ -8296,7 +8554,7 @@ export class Cashfree {
8296
8554
  } else {
8297
8555
  scope.setExtra('environment', 'production');
8298
8556
  }
8299
- scope.setExtra('release', "3.1.4");
8557
+ scope.setExtra('release', "4.0.0");
8300
8558
  });
8301
8559
  }
8302
8560
  try {
@@ -8311,11 +8569,11 @@ export class Cashfree {
8311
8569
 
8312
8570
  /**
8313
8571
  * Use this API to get eligible Payment Methods
8314
- * @summary Get Eligible Payment Methods
8572
+ * @summary Get eligible Payment Methods
8315
8573
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
8316
8574
  * @param {EligibilityFetchPaymentMethodsRequest} EligibilityFetchPaymentMethodsRequest Request Body to get eligible payment methods for an account and order
8317
8575
  * @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
8318
- * @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.
8576
+ * @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.
8319
8577
  * @param {*} [options] Override http request option.
8320
8578
  * @throws {RequiredError}
8321
8579
  * @memberof EligibilityApi
@@ -8356,7 +8614,7 @@ export class Cashfree {
8356
8614
  } else {
8357
8615
  scope.setExtra('environment', 'production');
8358
8616
  }
8359
- scope.setExtra('release', "3.1.4");
8617
+ scope.setExtra('release', "4.0.0");
8360
8618
  });
8361
8619
  }
8362
8620
  try {
@@ -8375,7 +8633,7 @@ export class Cashfree {
8375
8633
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
8376
8634
  * @param {CreateOfferRequest} CreateOfferRequest Request body to create an offer at Cashfree
8377
8635
  * @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
8378
- * @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.
8636
+ * @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.
8379
8637
  * @param {*} [options] Override http request option.
8380
8638
  * @throws {RequiredError}
8381
8639
  * @memberof OffersApi
@@ -8416,7 +8674,7 @@ export class Cashfree {
8416
8674
  } else {
8417
8675
  scope.setExtra('environment', 'production');
8418
8676
  }
8419
- scope.setExtra('release', "3.1.4");
8677
+ scope.setExtra('release', "4.0.0");
8420
8678
  });
8421
8679
  }
8422
8680
  try {
@@ -8435,7 +8693,7 @@ export class Cashfree {
8435
8693
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
8436
8694
  * @param {string} offer_id The offer ID for which you want to view the offer details.
8437
8695
  * @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
8438
- * @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.
8696
+ * @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.
8439
8697
  * @param {*} [options] Override http request option.
8440
8698
  * @throws {RequiredError}
8441
8699
  * @memberof OffersApi
@@ -8476,7 +8734,7 @@ export class Cashfree {
8476
8734
  } else {
8477
8735
  scope.setExtra('environment', 'production');
8478
8736
  }
8479
- scope.setExtra('release', "3.1.4");
8737
+ scope.setExtra('release', "4.0.0");
8480
8738
  });
8481
8739
  }
8482
8740
  try {
@@ -8495,7 +8753,7 @@ export class Cashfree {
8495
8753
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
8496
8754
  * @param {CreateOrderRequest} CreateOrderRequest Request body to create an order at cashfree
8497
8755
  * @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
8498
- * @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.
8756
+ * @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.
8499
8757
  * @param {*} [options] Override http request option.
8500
8758
  * @throws {RequiredError}
8501
8759
  * @memberof OrdersApi
@@ -8536,7 +8794,7 @@ export class Cashfree {
8536
8794
  } else {
8537
8795
  scope.setExtra('environment', 'production');
8538
8796
  }
8539
- scope.setExtra('release', "3.1.4");
8797
+ scope.setExtra('release', "4.0.0");
8540
8798
  });
8541
8799
  }
8542
8800
  try {
@@ -8555,7 +8813,7 @@ export class Cashfree {
8555
8813
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
8556
8814
  * @param {string} order_id The id which uniquely identifies your order
8557
8815
  * @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
8558
- * @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.
8816
+ * @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.
8559
8817
  * @param {*} [options] Override http request option.
8560
8818
  * @throws {RequiredError}
8561
8819
  * @memberof OrdersApi
@@ -8596,7 +8854,7 @@ export class Cashfree {
8596
8854
  } else {
8597
8855
  scope.setExtra('environment', 'production');
8598
8856
  }
8599
- scope.setExtra('release', "3.1.4");
8857
+ scope.setExtra('release', "4.0.0");
8600
8858
  });
8601
8859
  }
8602
8860
  try {
@@ -8608,6 +8866,67 @@ export class Cashfree {
8608
8866
  throw error;
8609
8867
  }
8610
8868
  }
8869
+
8870
+ /**
8871
+ * Use this API to terminate the order that was created at Cashfree\'s using the `order_id`.
8872
+ * @summary Terminate Order
8873
+ * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
8874
+ * @param {string} order_id The id which uniquely identifies your order
8875
+ * @param {TerminateOrderRequest} TerminateOrderRequest Request body to terminate an order at cashfree
8876
+ * @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
8877
+ * @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.
8878
+ * @param {*} [options] Override http request option.
8879
+ * @throws {RequiredError}
8880
+ * @memberof OrdersApi
8881
+ */
8882
+ public static PGTerminateOrder(x_api_version: string, order_id: string, TerminateOrderRequest: TerminateOrderRequest, x_request_id?: string, x_idempotency_key?: string, options?: AxiosRequestConfig) {
8883
+ if(Cashfree.XEnableErrorAnalytics) {
8884
+ Sentry.init({
8885
+ dsn: 'https://ad7936cb4d7f4f2b99c6571a8e7a4df7@o330525.ingest.sentry.io/4505085005725696',
8886
+ // Performance Monitoring
8887
+ tracesSampleRate: 1.0, // Capture 100% of the transactions, reduce in production!
8888
+ // Set sampling rate for profiling - this is relative to tracesSampleRate
8889
+ profilesSampleRate: 1.0, // Capture 100% of the transactions, reduce in production!,
8890
+ attachStacktrace: true,
8891
+ enableTracing: true,
8892
+ beforeSend: (event) => {
8893
+ delete event.contexts.os;
8894
+ delete event.contexts.device;
8895
+ delete event.server_name;
8896
+ if (event.exception && event.exception.values && event.exception.values[0].stacktrace) {
8897
+ const stackTrace = event.exception.values[0].stacktrace;
8898
+ if (stackTrace && stackTrace.frames) {
8899
+
8900
+ const filteredDomains = stackTrace.frames.filter((x) => x.filename.includes("cashfree-pg")).map((x) => x.filename);
8901
+ if (filteredDomains[0].includes("cashfree-pg")) {
8902
+ if(Cashfree.XEnableErrorAnalytics) {
8903
+ return event;
8904
+ }
8905
+ return null;
8906
+ }
8907
+ }
8908
+ }
8909
+ return null;
8910
+ },
8911
+ });
8912
+ Sentry.configureScope((scope) => {
8913
+ if(Cashfree.XEnvironment == CFEnvironment.SANDBOX) {
8914
+ scope.setExtra('environment', 'sandbox');
8915
+ } else {
8916
+ scope.setExtra('environment', 'production');
8917
+ }
8918
+ scope.setExtra('release', "4.0.0");
8919
+ });
8920
+ }
8921
+ try {
8922
+ return OrdersApiFp().pGTerminateOrder(x_api_version, order_id, TerminateOrderRequest, x_request_id, x_idempotency_key, options).then((request) => request(Cashfree.axios, Cashfree.basePath));
8923
+ } catch (error) {
8924
+ if(Cashfree.XEnableErrorAnalytics) {
8925
+ Sentry.captureException(error);
8926
+ }
8927
+ throw error;
8928
+ }
8929
+ }
8611
8930
 
8612
8931
  /**
8613
8932
  * - Use this API to get the payment gateway reconciliation details with date range. - It will have events for your payment account
@@ -8616,7 +8935,7 @@ export class Cashfree {
8616
8935
  * @param {FetchReconRequest} FetchReconRequest Request Body for the reconciliation
8617
8936
  * @param {string} [Content_Type] application/json
8618
8937
  * @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
8619
- * @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.
8938
+ * @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.
8620
8939
  * @param {string} [Accept] application/json
8621
8940
  * @param {*} [options] Override http request option.
8622
8941
  * @throws {RequiredError}
@@ -8658,7 +8977,7 @@ export class Cashfree {
8658
8977
  } else {
8659
8978
  scope.setExtra('environment', 'production');
8660
8979
  }
8661
- scope.setExtra('release', "3.1.4");
8980
+ scope.setExtra('release', "4.0.0");
8662
8981
  });
8663
8982
  }
8664
8983
  try {
@@ -8677,7 +8996,7 @@ export class Cashfree {
8677
8996
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
8678
8997
  * @param {string} link_id The payment link ID for which you want to view the details.
8679
8998
  * @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
8680
- * @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.
8999
+ * @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.
8681
9000
  * @param {*} [options] Override http request option.
8682
9001
  * @throws {RequiredError}
8683
9002
  * @memberof PaymentLinksApi
@@ -8718,7 +9037,7 @@ export class Cashfree {
8718
9037
  } else {
8719
9038
  scope.setExtra('environment', 'production');
8720
9039
  }
8721
- scope.setExtra('release', "3.1.4");
9040
+ scope.setExtra('release', "4.0.0");
8722
9041
  });
8723
9042
  }
8724
9043
  try {
@@ -8737,7 +9056,7 @@ export class Cashfree {
8737
9056
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
8738
9057
  * @param {CreateLinkRequest} CreateLinkRequest Request Body to Create Payment Links
8739
9058
  * @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
8740
- * @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.
9059
+ * @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.
8741
9060
  * @param {*} [options] Override http request option.
8742
9061
  * @throws {RequiredError}
8743
9062
  * @memberof PaymentLinksApi
@@ -8778,7 +9097,7 @@ export class Cashfree {
8778
9097
  } else {
8779
9098
  scope.setExtra('environment', 'production');
8780
9099
  }
8781
- scope.setExtra('release', "3.1.4");
9100
+ scope.setExtra('release', "4.0.0");
8782
9101
  });
8783
9102
  }
8784
9103
  try {
@@ -8797,7 +9116,7 @@ export class Cashfree {
8797
9116
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
8798
9117
  * @param {string} link_id The payment link ID for which you want to view the details.
8799
9118
  * @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
8800
- * @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.
9119
+ * @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.
8801
9120
  * @param {*} [options] Override http request option.
8802
9121
  * @throws {RequiredError}
8803
9122
  * @memberof PaymentLinksApi
@@ -8838,7 +9157,7 @@ export class Cashfree {
8838
9157
  } else {
8839
9158
  scope.setExtra('environment', 'production');
8840
9159
  }
8841
- scope.setExtra('release', "3.1.4");
9160
+ scope.setExtra('release', "4.0.0");
8842
9161
  });
8843
9162
  }
8844
9163
  try {
@@ -8857,7 +9176,7 @@ export class Cashfree {
8857
9176
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
8858
9177
  * @param {string} link_id The payment link ID for which you want to view the details.
8859
9178
  * @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
8860
- * @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.
9179
+ * @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.
8861
9180
  * @param {*} [options] Override http request option.
8862
9181
  * @throws {RequiredError}
8863
9182
  * @memberof PaymentLinksApi
@@ -8898,7 +9217,7 @@ export class Cashfree {
8898
9217
  } else {
8899
9218
  scope.setExtra('environment', 'production');
8900
9219
  }
8901
- scope.setExtra('release', "3.1.4");
9220
+ scope.setExtra('release', "4.0.0");
8902
9221
  });
8903
9222
  }
8904
9223
  try {
@@ -8918,7 +9237,7 @@ export class Cashfree {
8918
9237
  * @param {string} order_id The id which uniquely identifies your order
8919
9238
  * @param {AuthorizeOrderRequest} AuthorizeOrderRequest Request to Capture or Void Transactions
8920
9239
  * @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
8921
- * @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.
9240
+ * @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.
8922
9241
  * @param {*} [options] Override http request option.
8923
9242
  * @throws {RequiredError}
8924
9243
  * @memberof PaymentsApi
@@ -8959,7 +9278,7 @@ export class Cashfree {
8959
9278
  } else {
8960
9279
  scope.setExtra('environment', 'production');
8961
9280
  }
8962
- scope.setExtra('release', "3.1.4");
9281
+ scope.setExtra('release', "4.0.0");
8963
9282
  });
8964
9283
  }
8965
9284
  try {
@@ -8979,7 +9298,7 @@ export class Cashfree {
8979
9298
  * @param {string} cf_payment_id The Cashfree payment or transaction ID.
8980
9299
  * @param {OrderAuthenticatePaymentRequest} OrderAuthenticatePaymentRequest Request body to submit/resend headless OTP. To use this API make sure you have headless OTP enabled for your account
8981
9300
  * @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
8982
- * @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.
9301
+ * @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.
8983
9302
  * @param {*} [options] Override http request option.
8984
9303
  * @throws {RequiredError}
8985
9304
  * @memberof PaymentsApi
@@ -9020,7 +9339,7 @@ export class Cashfree {
9020
9339
  } else {
9021
9340
  scope.setExtra('environment', 'production');
9022
9341
  }
9023
- scope.setExtra('release', "3.1.4");
9342
+ scope.setExtra('release', "4.0.0");
9024
9343
  });
9025
9344
  }
9026
9345
  try {
@@ -9040,7 +9359,7 @@ export class Cashfree {
9040
9359
  * @param {string} order_id The id which uniquely identifies your order
9041
9360
  * @param {string} cf_payment_id The Cashfree payment or transaction ID.
9042
9361
  * @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
9043
- * @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.
9362
+ * @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.
9044
9363
  * @param {*} [options] Override http request option.
9045
9364
  * @throws {RequiredError}
9046
9365
  * @memberof PaymentsApi
@@ -9081,7 +9400,7 @@ export class Cashfree {
9081
9400
  } else {
9082
9401
  scope.setExtra('environment', 'production');
9083
9402
  }
9084
- scope.setExtra('release', "3.1.4");
9403
+ scope.setExtra('release', "4.0.0");
9085
9404
  });
9086
9405
  }
9087
9406
  try {
@@ -9100,7 +9419,7 @@ export class Cashfree {
9100
9419
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
9101
9420
  * @param {string} order_id The id which uniquely identifies your order
9102
9421
  * @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
9103
- * @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.
9422
+ * @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.
9104
9423
  * @param {*} [options] Override http request option.
9105
9424
  * @throws {RequiredError}
9106
9425
  * @memberof PaymentsApi
@@ -9141,7 +9460,7 @@ export class Cashfree {
9141
9460
  } else {
9142
9461
  scope.setExtra('environment', 'production');
9143
9462
  }
9144
- scope.setExtra('release', "3.1.4");
9463
+ scope.setExtra('release', "4.0.0");
9145
9464
  });
9146
9465
  }
9147
9466
  try {
@@ -9160,7 +9479,7 @@ export class Cashfree {
9160
9479
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
9161
9480
  * @param {PayOrderRequest} PayOrderRequest Request body to create a transaction at cashfree using &#x60;payment_session_id&#x60;
9162
9481
  * @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
9163
- * @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.
9482
+ * @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.
9164
9483
  * @param {*} [options] Override http request option.
9165
9484
  * @throws {RequiredError}
9166
9485
  * @memberof PaymentsApi
@@ -9201,7 +9520,7 @@ export class Cashfree {
9201
9520
  } else {
9202
9521
  scope.setExtra('environment', 'production');
9203
9522
  }
9204
- scope.setExtra('release', "3.1.4");
9523
+ scope.setExtra('release', "4.0.0");
9205
9524
  });
9206
9525
  }
9207
9526
  try {
@@ -9221,7 +9540,7 @@ export class Cashfree {
9221
9540
  * @param {string} order_id The id which uniquely identifies your order
9222
9541
  * @param {OrderCreateRefundRequest} OrderCreateRefundRequest Request Body to Create Refunds
9223
9542
  * @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
9224
- * @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.
9543
+ * @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.
9225
9544
  * @param {*} [options] Override http request option.
9226
9545
  * @throws {RequiredError}
9227
9546
  * @memberof RefundsApi
@@ -9262,7 +9581,7 @@ export class Cashfree {
9262
9581
  } else {
9263
9582
  scope.setExtra('environment', 'production');
9264
9583
  }
9265
- scope.setExtra('release', "3.1.4");
9584
+ scope.setExtra('release', "4.0.0");
9266
9585
  });
9267
9586
  }
9268
9587
  try {
@@ -9282,7 +9601,7 @@ export class Cashfree {
9282
9601
  * @param {string} order_id The id which uniquely identifies your order
9283
9602
  * @param {string} refund_id Refund Id of the refund you want to fetch.
9284
9603
  * @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
9285
- * @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.
9604
+ * @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.
9286
9605
  * @param {*} [options] Override http request option.
9287
9606
  * @throws {RequiredError}
9288
9607
  * @memberof RefundsApi
@@ -9323,7 +9642,7 @@ export class Cashfree {
9323
9642
  } else {
9324
9643
  scope.setExtra('environment', 'production');
9325
9644
  }
9326
- scope.setExtra('release', "3.1.4");
9645
+ scope.setExtra('release', "4.0.0");
9327
9646
  });
9328
9647
  }
9329
9648
  try {
@@ -9342,7 +9661,7 @@ export class Cashfree {
9342
9661
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
9343
9662
  * @param {string} order_id The id which uniquely identifies your order
9344
9663
  * @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
9345
- * @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.
9664
+ * @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.
9346
9665
  * @param {*} [options] Override http request option.
9347
9666
  * @throws {RequiredError}
9348
9667
  * @memberof RefundsApi
@@ -9383,7 +9702,7 @@ export class Cashfree {
9383
9702
  } else {
9384
9703
  scope.setExtra('environment', 'production');
9385
9704
  }
9386
- scope.setExtra('release', "3.1.4");
9705
+ scope.setExtra('release', "4.0.0");
9387
9706
  });
9388
9707
  }
9389
9708
  try {
@@ -9403,7 +9722,7 @@ export class Cashfree {
9403
9722
  * @param {FetchSettlementsRequest} FetchSettlementsRequest Request Body to get the settlements
9404
9723
  * @param {string} [Content_Type] application/json
9405
9724
  * @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
9406
- * @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.
9725
+ * @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.
9407
9726
  * @param {string} [Accept] application/json
9408
9727
  * @param {*} [options] Override http request option.
9409
9728
  * @throws {RequiredError}
@@ -9445,7 +9764,7 @@ export class Cashfree {
9445
9764
  } else {
9446
9765
  scope.setExtra('environment', 'production');
9447
9766
  }
9448
- scope.setExtra('release', "3.1.4");
9767
+ scope.setExtra('release', "4.0.0");
9449
9768
  });
9450
9769
  }
9451
9770
  try {
@@ -9465,7 +9784,7 @@ export class Cashfree {
9465
9784
  * @param {SettlementFetchReconRequest} SettlementFetchReconRequest Request Body for the settlement reconciliation
9466
9785
  * @param {string} [Content_Type] application/json
9467
9786
  * @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
9468
- * @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.
9787
+ * @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.
9469
9788
  * @param {string} [Accept] application/json
9470
9789
  * @param {*} [options] Override http request option.
9471
9790
  * @throws {RequiredError}
@@ -9507,7 +9826,7 @@ export class Cashfree {
9507
9826
  } else {
9508
9827
  scope.setExtra('environment', 'production');
9509
9828
  }
9510
- scope.setExtra('release', "3.1.4");
9829
+ scope.setExtra('release', "4.0.0");
9511
9830
  });
9512
9831
  }
9513
9832
  try {
@@ -9526,7 +9845,7 @@ export class Cashfree {
9526
9845
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
9527
9846
  * @param {string} order_id The id which uniquely identifies your order
9528
9847
  * @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
9529
- * @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.
9848
+ * @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.
9530
9849
  * @param {*} [options] Override http request option.
9531
9850
  * @throws {RequiredError}
9532
9851
  * @memberof SettlementsApi
@@ -9567,7 +9886,7 @@ export class Cashfree {
9567
9886
  } else {
9568
9887
  scope.setExtra('environment', 'production');
9569
9888
  }
9570
- scope.setExtra('release', "3.1.4");
9889
+ scope.setExtra('release', "4.0.0");
9571
9890
  });
9572
9891
  }
9573
9892
  try {
@@ -9586,7 +9905,7 @@ export class Cashfree {
9586
9905
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
9587
9906
  * @param {CreateTerminalRequest} CreateTerminalRequest Request Body to Create Terminal for SPOS
9588
9907
  * @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
9589
- * @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.
9908
+ * @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.
9590
9909
  * @param {*} [options] Override http request option.
9591
9910
  * @throws {RequiredError}
9592
9911
  * @memberof SoftPOSApi
@@ -9627,7 +9946,7 @@ export class Cashfree {
9627
9946
  } else {
9628
9947
  scope.setExtra('environment', 'production');
9629
9948
  }
9630
- scope.setExtra('release', "3.1.4");
9949
+ scope.setExtra('release', "4.0.0");
9631
9950
  });
9632
9951
  }
9633
9952
  try {
@@ -9642,11 +9961,11 @@ export class Cashfree {
9642
9961
 
9643
9962
  /**
9644
9963
  * 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.
9645
- * @summary Create Terminal
9964
+ * @summary Create Terminal Transaction
9646
9965
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
9647
9966
  * @param {CreateTerminalTransactionRequest} CreateTerminalTransactionRequest Request body to create a terminal transaction
9648
9967
  * @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
9649
- * @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.
9968
+ * @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.
9650
9969
  * @param {*} [options] Override http request option.
9651
9970
  * @throws {RequiredError}
9652
9971
  * @memberof SoftPOSApi
@@ -9687,7 +10006,7 @@ export class Cashfree {
9687
10006
  } else {
9688
10007
  scope.setExtra('environment', 'production');
9689
10008
  }
9690
- scope.setExtra('release', "3.1.4");
10009
+ scope.setExtra('release', "4.0.0");
9691
10010
  });
9692
10011
  }
9693
10012
  try {
@@ -9706,7 +10025,7 @@ export class Cashfree {
9706
10025
  * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD
9707
10026
  * @param {string} terminal_phone_no The terminal for which you want to view the order details.
9708
10027
  * @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
9709
- * @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.
10028
+ * @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.
9710
10029
  * @param {*} [options] Override http request option.
9711
10030
  * @throws {RequiredError}
9712
10031
  * @memberof SoftPOSApi
@@ -9747,7 +10066,7 @@ export class Cashfree {
9747
10066
  } else {
9748
10067
  scope.setExtra('environment', 'production');
9749
10068
  }
9750
- scope.setExtra('release', "3.1.4");
10069
+ scope.setExtra('release', "4.0.0");
9751
10070
  });
9752
10071
  }
9753
10072
  try {
@@ -9767,7 +10086,7 @@ export class Cashfree {
9767
10086
  * @param {string} terminal_phone_no Phone number assigned to the terminal. Required if you are not providing the cf_terminal_id in the request.
9768
10087
  * @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.
9769
10088
  * @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
9770
- * @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.
10089
+ * @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.
9771
10090
  * @param {*} [options] Override http request option.
9772
10091
  * @throws {RequiredError}
9773
10092
  * @memberof SoftPOSApi
@@ -9808,7 +10127,7 @@ export class Cashfree {
9808
10127
  } else {
9809
10128
  scope.setExtra('environment', 'production');
9810
10129
  }
9811
- scope.setExtra('release', "3.1.4");
10130
+ scope.setExtra('release', "4.0.0");
9812
10131
  });
9813
10132
  }
9814
10133
  try {
@@ -9828,7 +10147,7 @@ export class Cashfree {
9828
10147
  * @param {string} customer_id Your Customer ID that you had sent during create order API &#x60;POST/orders&#x60;
9829
10148
  * @param {string} instrument_id The instrument_id which needs to be deleted
9830
10149
  * @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
9831
- * @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.
10150
+ * @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.
9832
10151
  * @param {*} [options] Override http request option.
9833
10152
  * @throws {RequiredError}
9834
10153
  * @memberof TokenVaultApi
@@ -9869,7 +10188,7 @@ export class Cashfree {
9869
10188
  } else {
9870
10189
  scope.setExtra('environment', 'production');
9871
10190
  }
9872
- scope.setExtra('release', "3.1.4");
10191
+ scope.setExtra('release', "4.0.0");
9873
10192
  });
9874
10193
  }
9875
10194
  try {
@@ -9889,7 +10208,7 @@ export class Cashfree {
9889
10208
  * @param {string} customer_id Your Customer ID that you had sent during create order API &#x60;POST/orders&#x60;
9890
10209
  * @param {string} instrument_id The instrument_id of the saved instrument which needs to be queried
9891
10210
  * @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
9892
- * @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.
10211
+ * @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.
9893
10212
  * @param {*} [options] Override http request option.
9894
10213
  * @throws {RequiredError}
9895
10214
  * @memberof TokenVaultApi
@@ -9930,7 +10249,7 @@ export class Cashfree {
9930
10249
  } else {
9931
10250
  scope.setExtra('environment', 'production');
9932
10251
  }
9933
- scope.setExtra('release', "3.1.4");
10252
+ scope.setExtra('release', "4.0.0");
9934
10253
  });
9935
10254
  }
9936
10255
  try {
@@ -9950,7 +10269,7 @@ export class Cashfree {
9950
10269
  * @param {string} customer_id Your Customer ID that you had sent during create order API &#x60;POST/orders&#x60;
9951
10270
  * @param {PGCustomerFetchInstrumentsInstrumentTypeEnum} instrument_type Payment mode or type of saved instrument
9952
10271
  * @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
9953
- * @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.
10272
+ * @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.
9954
10273
  * @param {*} [options] Override http request option.
9955
10274
  * @throws {RequiredError}
9956
10275
  * @memberof TokenVaultApi
@@ -9991,7 +10310,7 @@ export class Cashfree {
9991
10310
  } else {
9992
10311
  scope.setExtra('environment', 'production');
9993
10312
  }
9994
- scope.setExtra('release', "3.1.4");
10313
+ scope.setExtra('release', "4.0.0");
9995
10314
  });
9996
10315
  }
9997
10316
  try {
@@ -10011,7 +10330,7 @@ export class Cashfree {
10011
10330
  * @param {string} customer_id Your Customer ID that you had sent during create order API &#x60;POST/orders&#x60;
10012
10331
  * @param {string} instrument_id The instrument_id of the saved card instrument which needs to be queried
10013
10332
  * @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
10014
- * @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.
10333
+ * @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.
10015
10334
  * @param {*} [options] Override http request option.
10016
10335
  * @throws {RequiredError}
10017
10336
  * @memberof TokenVaultApi
@@ -10052,7 +10371,7 @@ export class Cashfree {
10052
10371
  } else {
10053
10372
  scope.setExtra('environment', 'production');
10054
10373
  }
10055
- scope.setExtra('release', "3.1.4");
10374
+ scope.setExtra('release', "4.0.0");
10056
10375
  });
10057
10376
  }
10058
10377
  try {