diff --git a/api.ts b/api.ts index 862da9d..97b55c6 100644 --- a/api.ts +++ b/api.ts @@ -4,7 +4,7 @@ * Cashfree Payment Gateway APIs * Cashfree\'s Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2022-09-01 + * The version of the OpenAPI document: 2023-08-01 * Contact: developers@cashfree.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -756,6 +756,31 @@ export const CashbackDetailsCashbackTypeEnum = { export type CashbackDetailsCashbackTypeEnum = typeof CashbackDetailsCashbackTypeEnum[keyof typeof CashbackDetailsCashbackTypeEnum]; +/** + * Request body to create a customer at cashfree + * @export + * @interface CreateCustomerRequest + */ +export interface CreateCustomerRequest { + /** + * Customer Phone Number + * @type {string} + * @memberof CreateCustomerRequest + */ + 'customer_phone': string; + /** + * Customer Email + * @type {string} + * @memberof CreateCustomerRequest + */ + 'customer_email'?: string; + /** + * Customer Name + * @type {string} + * @memberof CreateCustomerRequest + */ + 'customer_name'?: string; +} /** * Request paramenters for link creation * @export @@ -830,10 +855,10 @@ export interface CreateLinkRequest { 'link_notes'?: { [key: string]: string; }; /** * - * @type {LinkMetaEntity} + * @type {LinkMetaResponseEntity} * @memberof CreateLinkRequest */ - 'link_meta'?: LinkMetaEntity; + 'link_meta'?: LinkMetaResponseEntity; } /** * create offer backend request object @@ -1009,16 +1034,16 @@ export interface CreateTerminalRequestTerminalMeta { export interface CreateTerminalTransactionRequest { /** * cashfree order ID that was returned while creating an order. - * @type {number} + * @type {string} * @memberof CreateTerminalTransactionRequest */ - 'cf_order_id': number; + 'cf_order_id': string; /** * cashfree terminal id. this is a required parameter when you do not provide the terminal phone number. - * @type {number} + * @type {string} * @memberof CreateTerminalTransactionRequest */ - 'cf_terminal_id'?: number; + 'cf_terminal_id'?: string; /** * mention the payment method used for the transaction. possible values - QR_CODE, LINK. * @type {string} @@ -1129,6 +1154,12 @@ export interface CustomerDetails { * @memberof CustomerDetails */ 'customer_bank_code'?: number; + /** + * Customer identifier at Cashfree. You will get this when you create/get customer + * @type {string} + * @memberof CustomerDetails + */ + 'customer_uid'?: string; } /** * Details of the customer for whom eligibility is being checked. @@ -1143,6 +1174,37 @@ export interface CustomerDetailsCardlessEMI { */ 'customer_phone': string; } +/** + * The complete customer entity + * @export + * @interface CustomerEntity + */ +export interface CustomerEntity { + /** + * unique id generated by cashfree for your customer + * @type {string} + * @memberof CustomerEntity + */ + 'customer_uid'?: string; + /** + * Customer Phone Number + * @type {string} + * @memberof CustomerEntity + */ + 'customer_phone'?: string; + /** + * Customer Email + * @type {string} + * @memberof CustomerEntity + */ + 'customer_email'?: string; + /** + * Customer Name + * @type {string} + * @memberof CustomerEntity + */ + 'customer_name'?: string; +} /** * detils of the discount object of offer * @export @@ -1579,10 +1641,10 @@ export interface FetchSettlementsRequest { export interface FetchSettlementsRequestFilters { /** * List of settlement IDs for which you want the settlement reconciliation details. - * @type {Array} + * @type {Array} * @memberof FetchSettlementsRequestFilters */ - 'cf_settlement_ids'?: Array; + 'cf_settlement_ids'?: Array; /** * List of settlement UTRs for which you want the settlement reconciliation details. * @type {Array} @@ -1845,10 +1907,10 @@ export interface LinkCustomerDetailsEntity { export interface LinkEntity { /** * - * @type {number} + * @type {string} * @memberof LinkEntity */ - 'cf_link_id'?: number; + 'cf_link_id'?: string; /** * * @type {string} @@ -1910,11 +1972,11 @@ export interface LinkEntity { */ 'customer_details'?: LinkCustomerDetailsEntity; /** - * Payment link meta information object. - * @type {{ [key: string]: string; }} + * + * @type {LinkMetaResponseEntity} * @memberof LinkEntity */ - 'link_meta'?: { [key: string]: string; }; + 'link_meta'?: LinkMetaResponseEntity; /** * * @type {string} @@ -1949,31 +2011,31 @@ export interface LinkEntity { /** * Payment link meta information object * @export - * @interface LinkMetaEntity + * @interface LinkMetaResponseEntity */ -export interface LinkMetaEntity { +export interface LinkMetaResponseEntity { /** * Notification URL for server-server communication. It should be an https URL. * @type {string} - * @memberof LinkMetaEntity + * @memberof LinkMetaResponseEntity */ 'notify_url'?: string; /** * If \"true\", link will directly open UPI Intent flow on mobile, and normal link flow elsewhere * @type {boolean} - * @memberof LinkMetaEntity + * @memberof LinkMetaResponseEntity */ 'upi_intent'?: boolean; /** * The URL to which user will be redirected to after the payment is done on the link. Maximum length: 250. * @type {string} - * @memberof LinkMetaEntity + * @memberof LinkMetaResponseEntity */ 'return_url'?: string; /** * 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 * @type {string} - * @memberof LinkMetaEntity + * @memberof LinkMetaResponseEntity */ 'payment_methods'?: string; } @@ -2336,12 +2398,6 @@ export interface OfferValidations { * @memberof OfferValidations */ 'payment_method': OfferValidationsPaymentMethod; - /** - * Maximum amount of Offer that can be availed. - * @type {number} - * @memberof OfferValidations - */ - 'max_allowed': number; } /** * @type OfferValidationsPaymentMethod @@ -2370,10 +2426,10 @@ export interface OfferWallet { export interface OrderAuthenticateEntity { /** * The payment id for which this request was sent - * @type {number} + * @type {string} * @memberof OrderAuthenticateEntity */ - 'cf_payment_id'?: number; + 'cf_payment_id'?: string; /** * The action that was invoked for this request. * @type {string} @@ -2491,10 +2547,10 @@ export type OrderCreateRefundRequestRefundSpeedEnum = typeof OrderCreateRefundRe export interface OrderEntity { /** * unique id generated by cashfree for your order - * @type {number} + * @type {string} * @memberof OrderEntity */ - 'cf_order_id'?: number; + 'cf_order_id'?: string; /** * order_id sent during the api request * @type {string} @@ -2520,7 +2576,7 @@ export interface OrderEntity { */ 'order_amount'?: number; /** - * 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. + * 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 * @type {string} * @memberof OrderEntity */ @@ -2567,24 +2623,6 @@ export interface OrderEntity { * @memberof OrderEntity */ 'order_meta'?: OrderMeta; - /** - * - * @type {PaymentURLObject} - * @memberof OrderEntity - */ - 'payments'?: PaymentURLObject; - /** - * - * @type {SettlementURLObject} - * @memberof OrderEntity - */ - 'settlements'?: SettlementURLObject; - /** - * - * @type {RefundURLObject} - * @memberof OrderEntity - */ - 'refunds'?: RefundURLObject; /** * Custom Tags in thr form of {\"key\":\"value\"} which can be passed for an order. A maximum of 10 tags can be added * @type {{ [key: string]: string; }} @@ -2599,7 +2637,7 @@ export interface OrderEntity { */ export interface OrderMeta { /** - * 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. + * 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 * @type {string} * @memberof OrderMeta */ @@ -2662,10 +2700,10 @@ export interface PayOrderEntity { 'payment_amount'?: number; /** * Payment identifier created by Cashfree - * @type {number} + * @type {string} * @memberof PayOrderEntity */ - 'cf_payment_id'?: number; + 'cf_payment_id'?: string; /** * One of [\"upi\", \"netbanking\", \"card\", \"app\", \"cardless_emi\", \"paylater\", \"banktransfer\"] * @type {string} @@ -2846,10 +2884,10 @@ export interface PaylaterPaymentMethod { export interface PaymentEntity { /** * - * @type {number} + * @type {string} * @memberof PaymentEntity */ - 'cf_payment_id'?: number; + 'cf_payment_id'?: string; /** * * @type {string} @@ -3024,10 +3062,10 @@ export interface PaymentLinkCustomerDetails { export interface PaymentLinkOrderEntity { /** * unique id generated by cashfree for your order - * @type {number} + * @type {string} * @memberof PaymentLinkOrderEntity */ - 'cf_order_id'?: number; + 'cf_order_id'?: string; /** * link id of the order * @type {string} @@ -3106,24 +3144,6 @@ export interface PaymentLinkOrderEntity { * @memberof PaymentLinkOrderEntity */ 'order_meta'?: OrderMeta; - /** - * - * @type {PaymentURLObject} - * @memberof PaymentLinkOrderEntity - */ - 'payments'?: PaymentURLObject; - /** - * - * @type {SettlementURLObject} - * @memberof PaymentLinkOrderEntity - */ - 'settlements'?: SettlementURLObject; - /** - * - * @type {RefundURLObject} - * @memberof PaymentLinkOrderEntity - */ - 'refunds'?: RefundURLObject; /** * Custom Tags in thr form of {\"key\":\"value\"} which can be passed for an order. A maximum of 10 tags can be added * @type {{ [key: string]: string; }} @@ -3427,7 +3447,7 @@ export interface PaymentMethodUPIInPaymentsEntityUpi { 'upi_id'?: string; } /** - * Filter for specific Payment Methods + * Filter for Payment Methods * @export * @interface PaymentMethodsFilters */ @@ -3489,19 +3509,6 @@ export interface PaymentModeDetails { */ 'code'?: number; } -/** - * URL for payment retrieval for an order - * @export - * @interface PaymentURLObject - */ -export interface PaymentURLObject { - /** - * - * @type {string} - * @memberof PaymentURLObject - */ - 'url'?: string; -} /** * payment webhook object * @export @@ -3892,16 +3899,16 @@ export interface ReconEntityDataInner { 'payment_service_tax'?: number; /** * Cashfree Payments unique ID to identify a payment. - * @type {number} + * @type {string} * @memberof ReconEntityDataInner */ - 'cf_payment_id'?: number; + 'cf_payment_id'?: string; /** * Unique ID to identify the settlement. - * @type {number} + * @type {string} * @memberof ReconEntityDataInner */ - 'cf_settlement_id'?: number; + 'cf_settlement_id'?: string; /** * Date and time when the settlement was processed. * @type {string} @@ -4067,10 +4074,10 @@ export interface ReconEntityDataInner { export interface RefundEntity { /** * Cashfree Payments ID of the payment for which refund is initiated - * @type {number} + * @type {string} * @memberof RefundEntity */ - 'cf_payment_id'?: number; + 'cf_payment_id'?: string; /** * Cashfree Payments ID for a refund * @type {string} @@ -4243,19 +4250,6 @@ export interface RefundSpeed { */ 'message'?: string; } -/** - * URL to get refunds for order - * @export - * @interface RefundURLObject - */ -export interface RefundURLObject { - /** - * - * @type {string} - * @memberof RefundURLObject - */ - 'url'?: string; -} /** * refund webhook object * @export @@ -4339,16 +4333,16 @@ export interface SavedInstrumentMeta { export interface SettlementEntity { /** * - * @type {number} + * @type {string} * @memberof SettlementEntity */ - 'cf_payment_id'?: number; + 'cf_payment_id'?: string; /** * - * @type {number} + * @type {string} * @memberof SettlementEntity */ - 'cf_settlement_id'?: number; + 'cf_settlement_id'?: string; /** * * @type {string} @@ -4436,41 +4430,10 @@ export interface SettlementFetchReconRequest { 'pagination': FetchSettlementsRequestPagination; /** * - * @type {SettlementFetchReconRequestFilters} + * @type {FetchSettlementsRequestFilters} * @memberof SettlementFetchReconRequest */ - 'filters': SettlementFetchReconRequestFilters; -} -/** - * Specify either the Settlement ID, Settlement UTR, or start date and end date to fetch the settlement details. - * @export - * @interface SettlementFetchReconRequestFilters - */ -export interface SettlementFetchReconRequestFilters { - /** - * List of settlement IDs for which you want the settlement reconciliation details. - * @type {Array} - * @memberof SettlementFetchReconRequestFilters - */ - 'cf_settlement_ids'?: Array; - /** - * List of settlement UTRs for which you want the settlement reconciliation details. - * @type {Array} - * @memberof SettlementFetchReconRequestFilters - */ - 'settlement_utrs'?: Array; - /** - * Specify the start date from when you want the settlement reconciliation details. - * @type {string} - * @memberof SettlementFetchReconRequestFilters - */ - 'start_date'?: string; - /** - * Specify the end date till when you want the settlement reconciliation details. - * @type {string} - * @memberof SettlementFetchReconRequestFilters - */ - 'end_date'?: string; + 'filters': FetchSettlementsRequestFilters; } /** * Recon object for settlement @@ -4619,16 +4582,16 @@ export interface SettlementReconEntityDataInner { 'payment_service_tax'?: number; /** * Cashfree Payments unique ID to identify a payment. - * @type {number} + * @type {string} * @memberof SettlementReconEntityDataInner */ - 'cf_payment_id'?: number; + 'cf_payment_id'?: string; /** * Unique ID to identify the settlement. - * @type {number} + * @type {string} * @memberof SettlementReconEntityDataInner */ - 'cf_settlement_id'?: number; + 'cf_settlement_id'?: string; /** * Date and time when the settlement was processed. * @type {string} @@ -4714,19 +4677,6 @@ export interface SettlementReconEntityDataInner { */ 'adjustment_remarks'?: string; } -/** - * Settlement URL object - * @export - * @interface SettlementURLObject - */ -export interface SettlementURLObject { - /** - * - * @type {string} - * @memberof SettlementURLObject - */ - 'url'?: string; -} /** * Settlement webhook object * @export @@ -4779,10 +4729,10 @@ export interface TerminalDetails { 'added_on'?: string; /** * cashfree terminal id - * @type {number} + * @type {string} * @memberof TerminalDetails */ - 'cf_terminal_id'?: number; + 'cf_terminal_id'?: string; /** * last instant when this terminal was updated * @type {string} @@ -4919,10 +4869,10 @@ export interface TerminalEntity { export interface TerminalTransactionEntity { /** * - * @type {number} + * @type {string} * @memberof TerminalTransactionEntity */ - 'cf_payment_id'?: number; + 'cf_payment_id'?: string; /** * * @type {number} @@ -4954,6 +4904,19 @@ export interface TerminalTransactionEntity { */ 'timeout'?: string; } +/** + * Request to terminate an active order at Cashfree + * @export + * @interface TerminateOrderRequest + */ +export interface TerminateOrderRequest { + /** + * 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. + * @type {string} + * @memberof TerminateOrderRequest + */ + 'order_status': string; +} /** * object when you are using preauth in UPI in order pay * @export @@ -5084,6 +5047,126 @@ export interface WalletOffer { 'provider'?: string; } +/** + * CustomersApi - axios parameter creator + * @export + */ +const CustomersApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Create Customer at Cashfree + * @summary Create Customer at Cashfree + + * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD + * @param {CreateCustomerRequest} CreateCustomerRequest Request to create a new customer at Cashfree + * @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 + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * x_idempotency_key?: string, + */ + pGCreateCustomer: async (x_api_version: string, CreateCustomerRequest: CreateCustomerRequest, x_request_id?: string, x_idempotency_key?: string, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'x_api_version' is not null or undefined + assertParamExists('pGCreateCustomer', 'x_api_version', x_api_version) + // verify required parameter 'CreateCustomerRequest' is not null or undefined + assertParamExists('pGCreateCustomer', 'CreateCustomerRequest', CreateCustomerRequest) + const localVarPath = `/customers`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + var url = "https://sandbox.cashfree.com/pg"; + if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { + url = "https://api.cashfree.com/pg" + } + const localVarUrlObj = new URL(localVarPath, url); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication XPartnerAPIKey required + await setApiKeyToObject(localVarHeaderParameter, "x-partner-apikey") + + // authentication XClientSecret required + await setApiKeyToObject(localVarHeaderParameter, "x-client-secret") + + // authentication XPartnerMerchantID required + await setApiKeyToObject(localVarHeaderParameter, "x-partner-merchantid") + + // authentication XClientID required + await setApiKeyToObject(localVarHeaderParameter, "x-client-id") + + // authentication XClientSignatureHeader required + await setApiKeyToObject(localVarHeaderParameter, "x-client-signature") + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.5'; + if (x_api_version != null && x_api_version != undefined) { + localVarHeaderParameter['x-api-version'] = x_api_version; + } + + if (x_request_id != null && x_request_id != undefined) { + localVarHeaderParameter['x-request-id'] = x_request_id; + } + + if (x_idempotency_key != null && x_idempotency_key != undefined) { + localVarHeaderParameter['x-idempotency-key'] = x_idempotency_key; + } + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(CreateCustomerRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * CustomersApi - functional programming interface + * @export + */ +const CustomersApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = CustomersApiAxiosParamCreator(configuration) + return { + /** + * Create Customer at Cashfree + * @summary Create Customer at Cashfree + * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD + * @param {CreateCustomerRequest} CreateCustomerRequest Request to create a new customer at Cashfree + * @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 + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async pGCreateCustomer(x_api_version: string, CreateCustomerRequest: CreateCustomerRequest, x_request_id?: string, x_idempotency_key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.pGCreateCustomer(x_api_version, CreateCustomerRequest, x_request_id, x_idempotency_key, options); + var url = "https://sandbox.cashfree.com/pg"; + if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { + url = "https://api.cashfree.com/pg" + } + return createRequestFunction(localVarAxiosArgs, globalAxios, url, configuration); + }, + } +}; + +/** + * CustomersApi - object-oriented interface + * @export + * @class CustomersApi + * @extends {BaseAPI} + */ + + + /** * EligibilityApi - axios parameter creator * @export @@ -5092,12 +5175,12 @@ const EligibilityApiAxiosParamCreator = function (configuration?: Configuration) return { /** * Use this API to get eligible Cardless EMI Payment Methods available for a customer on an order basis their phone number. - * @summary Get Eligible Cardless EMI + * @summary Get Eligible Cardless EMI Payment Methods for a customer on an order * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD * @param {EligibilityFetchCardlessEMIRequest} EligibilityFetchCardlessEMIRequest Request Body to get eligible cardless emi options for a customer and order * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} * x_idempotency_key?: string, @@ -5142,7 +5225,7 @@ const EligibilityApiAxiosParamCreator = function (configuration?: Configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; - localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.2.15'; + localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.5'; if (x_api_version != null && x_api_version != undefined) { localVarHeaderParameter['x-api-version'] = x_api_version; } @@ -5166,12 +5249,12 @@ const EligibilityApiAxiosParamCreator = function (configuration?: Configuration) }, /** * Use this API to get eligible offers for an order_id or order amount. - * @summary Get Eligible Offers + * @summary Get Eligible Offers for an Order * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD * @param {EligibilityFetchOffersRequest} EligibilityFetchOffersRequest Request Body to get eligible offers for a customer and order * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} * x_idempotency_key?: string, @@ -5216,7 +5299,7 @@ const EligibilityApiAxiosParamCreator = function (configuration?: Configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; - localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.2.15'; + localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.5'; if (x_api_version != null && x_api_version != undefined) { localVarHeaderParameter['x-api-version'] = x_api_version; } @@ -5240,12 +5323,12 @@ const EligibilityApiAxiosParamCreator = function (configuration?: Configuration) }, /** * Use this API to get eligible Paylater Payment Methods for a customer on an order. - * @summary Get Eligible Paylater + * @summary Get Eligible Paylater for a customer on an order * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD * @param {EligibilityFetchPaylaterRequest} EligibilityFetchPaylaterRequest Request Body to get eligible paylater options for a customer and order * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} * x_idempotency_key?: string, @@ -5290,7 +5373,7 @@ const EligibilityApiAxiosParamCreator = function (configuration?: Configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; - localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.2.15'; + localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.5'; if (x_api_version != null && x_api_version != undefined) { localVarHeaderParameter['x-api-version'] = x_api_version; } @@ -5314,12 +5397,12 @@ const EligibilityApiAxiosParamCreator = function (configuration?: Configuration) }, /** * Use this API to get eligible Payment Methods - * @summary Get Eligible Payment Methods + * @summary Get eligible Payment Methods * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD * @param {EligibilityFetchPaymentMethodsRequest} EligibilityFetchPaymentMethodsRequest Request Body to get eligible payment methods for an account and order * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} * x_idempotency_key?: string, @@ -5364,7 +5447,7 @@ const EligibilityApiAxiosParamCreator = function (configuration?: Configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; - localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.2.15'; + localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.5'; if (x_api_version != null && x_api_version != undefined) { localVarHeaderParameter['x-api-version'] = x_api_version; } @@ -5398,11 +5481,11 @@ const EligibilityApiFp = function(configuration?: Configuration) { return { /** * Use this API to get eligible Cardless EMI Payment Methods available for a customer on an order basis their phone number. - * @summary Get Eligible Cardless EMI + * @summary Get Eligible Cardless EMI Payment Methods for a customer on an order * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD * @param {EligibilityFetchCardlessEMIRequest} EligibilityFetchCardlessEMIRequest Request Body to get eligible cardless emi options for a customer and order * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -5416,11 +5499,11 @@ const EligibilityApiFp = function(configuration?: Configuration) { }, /** * Use this API to get eligible offers for an order_id or order amount. - * @summary Get Eligible Offers + * @summary Get Eligible Offers for an Order * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD * @param {EligibilityFetchOffersRequest} EligibilityFetchOffersRequest Request Body to get eligible offers for a customer and order * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -5434,11 +5517,11 @@ const EligibilityApiFp = function(configuration?: Configuration) { }, /** * Use this API to get eligible Paylater Payment Methods for a customer on an order. - * @summary Get Eligible Paylater + * @summary Get Eligible Paylater for a customer on an order * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD * @param {EligibilityFetchPaylaterRequest} EligibilityFetchPaylaterRequest Request Body to get eligible paylater options for a customer and order * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -5452,11 +5535,11 @@ const EligibilityApiFp = function(configuration?: Configuration) { }, /** * Use this API to get eligible Payment Methods - * @summary Get Eligible Payment Methods + * @summary Get eligible Payment Methods * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD * @param {EligibilityFetchPaymentMethodsRequest} EligibilityFetchPaymentMethodsRequest Request Body to get eligible payment methods for an account and order * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -5493,7 +5576,7 @@ const OffersApiAxiosParamCreator = function (configuration?: Configuration) { * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD * @param {CreateOfferRequest} CreateOfferRequest Request body to create an offer at Cashfree * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} * x_idempotency_key?: string, @@ -5538,7 +5621,7 @@ const OffersApiAxiosParamCreator = function (configuration?: Configuration) { localVarHeaderParameter['Content-Type'] = 'application/json'; - localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.2.15'; + localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.5'; if (x_api_version != null && x_api_version != undefined) { localVarHeaderParameter['x-api-version'] = x_api_version; } @@ -5567,7 +5650,7 @@ const OffersApiAxiosParamCreator = function (configuration?: Configuration) { * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD * @param {string} offer_id The offer ID for which you want to view the offer details. * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} * x_idempotency_key?: string, @@ -5611,7 +5694,7 @@ const OffersApiAxiosParamCreator = function (configuration?: Configuration) { - localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.2.15'; + localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.5'; if (x_api_version != null && x_api_version != undefined) { localVarHeaderParameter['x-api-version'] = x_api_version; } @@ -5648,7 +5731,7 @@ const OffersApiFp = function(configuration?: Configuration) { * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD * @param {CreateOfferRequest} CreateOfferRequest Request body to create an offer at Cashfree * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -5666,7 +5749,7 @@ const OffersApiFp = function(configuration?: Configuration) { * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD * @param {string} offer_id The offer ID for which you want to view the offer details. * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -5703,7 +5786,7 @@ const OrdersApiAxiosParamCreator = function (configuration?: Configuration) { * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD * @param {CreateOrderRequest} CreateOrderRequest Request body to create an order at cashfree * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} * x_idempotency_key?: string, @@ -5748,7 +5831,7 @@ const OrdersApiAxiosParamCreator = function (configuration?: Configuration) { localVarHeaderParameter['Content-Type'] = 'application/json'; - localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.2.15'; + localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.5'; if (x_api_version != null && x_api_version != undefined) { localVarHeaderParameter['x-api-version'] = x_api_version; } @@ -5777,7 +5860,7 @@ const OrdersApiAxiosParamCreator = function (configuration?: Configuration) { * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD * @param {string} order_id The id which uniquely identifies your order * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} * x_idempotency_key?: string, @@ -5821,7 +5904,7 @@ const OrdersApiAxiosParamCreator = function (configuration?: Configuration) { - localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.2.15'; + localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.5'; if (x_api_version != null && x_api_version != undefined) { localVarHeaderParameter['x-api-version'] = x_api_version; } @@ -5837,6 +5920,84 @@ const OrdersApiAxiosParamCreator = function (configuration?: Configuration) { let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Use this API to terminate the order that was created at Cashfree\'s using the `order_id`. + * @summary Terminate Order + + * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD + * @param {string} order_id The id which uniquely identifies your order + * @param {TerminateOrderRequest} TerminateOrderRequest Request body to terminate an order at cashfree + * @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 + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * x_request_id?: string, + */ + pGTerminateOrder: async (x_api_version: string, order_id: string, TerminateOrderRequest: TerminateOrderRequest, x_request_id?: string, x_idempotency_key?: string, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'x_api_version' is not null or undefined + assertParamExists('pGTerminateOrder', 'x_api_version', x_api_version) + // verify required parameter 'order_id' is not null or undefined + assertParamExists('pGTerminateOrder', 'order_id', order_id) + // verify required parameter 'TerminateOrderRequest' is not null or undefined + assertParamExists('pGTerminateOrder', 'TerminateOrderRequest', TerminateOrderRequest) + const localVarPath = `/orders/{order_id}` + .replace(`{${"order_id"}}`, encodeURIComponent(String(order_id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + var url = "https://sandbox.cashfree.com/pg"; + if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { + url = "https://api.cashfree.com/pg" + } + const localVarUrlObj = new URL(localVarPath, url); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication XPartnerAPIKey required + await setApiKeyToObject(localVarHeaderParameter, "x-partner-apikey") + + // authentication XClientSecret required + await setApiKeyToObject(localVarHeaderParameter, "x-client-secret") + + // authentication XPartnerMerchantID required + await setApiKeyToObject(localVarHeaderParameter, "x-partner-merchantid") + + // authentication XClientID required + await setApiKeyToObject(localVarHeaderParameter, "x-client-id") + + // authentication XClientSignatureHeader required + await setApiKeyToObject(localVarHeaderParameter, "x-client-signature") + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.5'; + if (x_api_version != null && x_api_version != undefined) { + localVarHeaderParameter['x-api-version'] = x_api_version; + } + + if (x_request_id != null && x_request_id != undefined) { + localVarHeaderParameter['x-request-id'] = x_request_id; + } + + if (x_idempotency_key != null && x_idempotency_key != undefined) { + localVarHeaderParameter['x-idempotency-key'] = x_idempotency_key; + } + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(TerminateOrderRequest, localVarRequestOptions, configuration) + return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, @@ -5858,7 +6019,7 @@ const OrdersApiFp = function(configuration?: Configuration) { * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD * @param {CreateOrderRequest} CreateOrderRequest Request body to create an order at cashfree * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -5876,7 +6037,7 @@ const OrdersApiFp = function(configuration?: Configuration) { * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD * @param {string} order_id The id which uniquely identifies your order * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -5888,6 +6049,25 @@ const OrdersApiFp = function(configuration?: Configuration) { } return createRequestFunction(localVarAxiosArgs, globalAxios, url, configuration); }, + /** + * Use this API to terminate the order that was created at Cashfree\'s using the `order_id`. + * @summary Terminate Order + * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD + * @param {string} order_id The id which uniquely identifies your order + * @param {TerminateOrderRequest} TerminateOrderRequest Request body to terminate an order at cashfree + * @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 + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + 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> { + const localVarAxiosArgs = await localVarAxiosParamCreator.pGTerminateOrder(x_api_version, order_id, TerminateOrderRequest, x_request_id, x_idempotency_key, options); + var url = "https://sandbox.cashfree.com/pg"; + if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { + url = "https://api.cashfree.com/pg" + } + return createRequestFunction(localVarAxiosArgs, globalAxios, url, configuration); + }, } }; @@ -5914,7 +6094,7 @@ const PGReconciliationApiAxiosParamCreator = function (configuration?: Configura * @param {FetchReconRequest} FetchReconRequest Request Body for the reconciliation * @param {string} [Content_Type] application/json * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {string} [Accept] application/json * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -5960,7 +6140,7 @@ const PGReconciliationApiAxiosParamCreator = function (configuration?: Configura localVarHeaderParameter['Content-Type'] = 'application/json'; - localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.2.15'; + localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.5'; if (x_api_version != null && x_api_version != undefined) { localVarHeaderParameter['x-api-version'] = x_api_version; } @@ -5999,7 +6179,7 @@ const PGReconciliationApiFp = function(configuration?: Configuration) { * @param {FetchReconRequest} FetchReconRequest Request Body for the reconciliation * @param {string} [Content_Type] application/json * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {string} [Accept] application/json * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -6037,7 +6217,7 @@ const PaymentLinksApiAxiosParamCreator = function (configuration?: Configuration * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD * @param {string} link_id The payment link ID for which you want to view the details. * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} * x_idempotency_key?: string, @@ -6081,7 +6261,7 @@ const PaymentLinksApiAxiosParamCreator = function (configuration?: Configuration - localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.2.15'; + localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.5'; if (x_api_version != null && x_api_version != undefined) { localVarHeaderParameter['x-api-version'] = x_api_version; } @@ -6109,7 +6289,7 @@ const PaymentLinksApiAxiosParamCreator = function (configuration?: Configuration * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD * @param {CreateLinkRequest} CreateLinkRequest Request Body to Create Payment Links * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} * x_idempotency_key?: string, @@ -6154,7 +6334,7 @@ const PaymentLinksApiAxiosParamCreator = function (configuration?: Configuration localVarHeaderParameter['Content-Type'] = 'application/json'; - localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.2.15'; + localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.5'; if (x_api_version != null && x_api_version != undefined) { localVarHeaderParameter['x-api-version'] = x_api_version; } @@ -6183,7 +6363,7 @@ const PaymentLinksApiAxiosParamCreator = function (configuration?: Configuration * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD * @param {string} link_id The payment link ID for which you want to view the details. * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} * x_idempotency_key?: string, @@ -6227,7 +6407,7 @@ const PaymentLinksApiAxiosParamCreator = function (configuration?: Configuration - localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.2.15'; + localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.5'; if (x_api_version != null && x_api_version != undefined) { localVarHeaderParameter['x-api-version'] = x_api_version; } @@ -6255,7 +6435,7 @@ const PaymentLinksApiAxiosParamCreator = function (configuration?: Configuration * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD * @param {string} link_id The payment link ID for which you want to view the details. * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} * x_idempotency_key?: string, @@ -6299,7 +6479,7 @@ const PaymentLinksApiAxiosParamCreator = function (configuration?: Configuration - localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.2.15'; + localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.5'; if (x_api_version != null && x_api_version != undefined) { localVarHeaderParameter['x-api-version'] = x_api_version; } @@ -6336,7 +6516,7 @@ const PaymentLinksApiFp = function(configuration?: Configuration) { * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD * @param {string} link_id The payment link ID for which you want to view the details. * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -6354,7 +6534,7 @@ const PaymentLinksApiFp = function(configuration?: Configuration) { * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD * @param {CreateLinkRequest} CreateLinkRequest Request Body to Create Payment Links * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -6372,7 +6552,7 @@ const PaymentLinksApiFp = function(configuration?: Configuration) { * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD * @param {string} link_id The payment link ID for which you want to view the details. * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -6390,7 +6570,7 @@ const PaymentLinksApiFp = function(configuration?: Configuration) { * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD * @param {string} link_id The payment link ID for which you want to view the details. * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -6428,7 +6608,7 @@ const PaymentsApiAxiosParamCreator = function (configuration?: Configuration) { * @param {string} order_id The id which uniquely identifies your order * @param {AuthorizeOrderRequest} AuthorizeOrderRequest Request to Capture or Void Transactions * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} * x_request_id?: string, @@ -6476,7 +6656,7 @@ const PaymentsApiAxiosParamCreator = function (configuration?: Configuration) { localVarHeaderParameter['Content-Type'] = 'application/json'; - localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.2.15'; + localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.5'; if (x_api_version != null && x_api_version != undefined) { localVarHeaderParameter['x-api-version'] = x_api_version; } @@ -6506,7 +6686,7 @@ const PaymentsApiAxiosParamCreator = function (configuration?: Configuration) { * @param {string} cf_payment_id The Cashfree payment or transaction ID. * @param {OrderAuthenticatePaymentRequest} OrderAuthenticatePaymentRequest Request body to submit/resend headless OTP. To use this API make sure you have headless OTP enabled for your account * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} * x_request_id?: string, @@ -6539,7 +6719,7 @@ const PaymentsApiAxiosParamCreator = function (configuration?: Configuration) { localVarHeaderParameter['Content-Type'] = 'application/json'; - localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.2.15'; + localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.5'; if (x_api_version != null && x_api_version != undefined) { localVarHeaderParameter['x-api-version'] = x_api_version; } @@ -6569,7 +6749,7 @@ const PaymentsApiAxiosParamCreator = function (configuration?: Configuration) { * @param {string} order_id The id which uniquely identifies your order * @param {string} cf_payment_id The Cashfree payment or transaction ID. * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} * x_request_id?: string, @@ -6616,7 +6796,7 @@ const PaymentsApiAxiosParamCreator = function (configuration?: Configuration) { - localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.2.15'; + localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.5'; if (x_api_version != null && x_api_version != undefined) { localVarHeaderParameter['x-api-version'] = x_api_version; } @@ -6644,7 +6824,7 @@ const PaymentsApiAxiosParamCreator = function (configuration?: Configuration) { * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD * @param {string} order_id The id which uniquely identifies your order * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} * x_idempotency_key?: string, @@ -6688,7 +6868,7 @@ const PaymentsApiAxiosParamCreator = function (configuration?: Configuration) { - localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.2.15'; + localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.5'; if (x_api_version != null && x_api_version != undefined) { localVarHeaderParameter['x-api-version'] = x_api_version; } @@ -6716,7 +6896,7 @@ const PaymentsApiAxiosParamCreator = function (configuration?: Configuration) { * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD * @param {PayOrderRequest} PayOrderRequest Request body to create a transaction at cashfree using `payment_session_id` * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} * x_idempotency_key?: string, @@ -6746,7 +6926,7 @@ const PaymentsApiAxiosParamCreator = function (configuration?: Configuration) { localVarHeaderParameter['Content-Type'] = 'application/json'; - localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.2.15'; + localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.5'; if (x_api_version != null && x_api_version != undefined) { localVarHeaderParameter['x-api-version'] = x_api_version; } @@ -6785,7 +6965,7 @@ const PaymentsApiFp = function(configuration?: Configuration) { * @param {string} order_id The id which uniquely identifies your order * @param {AuthorizeOrderRequest} AuthorizeOrderRequest Request to Capture or Void Transactions * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -6804,7 +6984,7 @@ const PaymentsApiFp = function(configuration?: Configuration) { * @param {string} cf_payment_id The Cashfree payment or transaction ID. * @param {OrderAuthenticatePaymentRequest} OrderAuthenticatePaymentRequest Request body to submit/resend headless OTP. To use this API make sure you have headless OTP enabled for your account * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -6823,7 +7003,7 @@ const PaymentsApiFp = function(configuration?: Configuration) { * @param {string} order_id The id which uniquely identifies your order * @param {string} cf_payment_id The Cashfree payment or transaction ID. * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -6841,7 +7021,7 @@ const PaymentsApiFp = function(configuration?: Configuration) { * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD * @param {string} order_id The id which uniquely identifies your order * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -6859,7 +7039,7 @@ const PaymentsApiFp = function(configuration?: Configuration) { * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD * @param {PayOrderRequest} PayOrderRequest Request body to create a transaction at cashfree using `payment_session_id` * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -6897,7 +7077,7 @@ const RefundsApiAxiosParamCreator = function (configuration?: Configuration) { * @param {string} order_id The id which uniquely identifies your order * @param {OrderCreateRefundRequest} OrderCreateRefundRequest Request Body to Create Refunds * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} * x_request_id?: string, @@ -6945,7 +7125,7 @@ const RefundsApiAxiosParamCreator = function (configuration?: Configuration) { localVarHeaderParameter['Content-Type'] = 'application/json'; - localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.2.15'; + localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.5'; if (x_api_version != null && x_api_version != undefined) { localVarHeaderParameter['x-api-version'] = x_api_version; } @@ -6975,7 +7155,7 @@ const RefundsApiAxiosParamCreator = function (configuration?: Configuration) { * @param {string} order_id The id which uniquely identifies your order * @param {string} refund_id Refund Id of the refund you want to fetch. * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} * x_request_id?: string, @@ -7022,7 +7202,7 @@ const RefundsApiAxiosParamCreator = function (configuration?: Configuration) { - localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.2.15'; + localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.5'; if (x_api_version != null && x_api_version != undefined) { localVarHeaderParameter['x-api-version'] = x_api_version; } @@ -7050,7 +7230,7 @@ const RefundsApiAxiosParamCreator = function (configuration?: Configuration) { * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD * @param {string} order_id The id which uniquely identifies your order * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} * x_idempotency_key?: string, @@ -7094,7 +7274,7 @@ const RefundsApiAxiosParamCreator = function (configuration?: Configuration) { - localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.2.15'; + localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.5'; if (x_api_version != null && x_api_version != undefined) { localVarHeaderParameter['x-api-version'] = x_api_version; } @@ -7132,7 +7312,7 @@ const RefundsApiFp = function(configuration?: Configuration) { * @param {string} order_id The id which uniquely identifies your order * @param {OrderCreateRefundRequest} OrderCreateRefundRequest Request Body to Create Refunds * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -7151,7 +7331,7 @@ const RefundsApiFp = function(configuration?: Configuration) { * @param {string} order_id The id which uniquely identifies your order * @param {string} refund_id Refund Id of the refund you want to fetch. * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -7169,7 +7349,7 @@ const RefundsApiFp = function(configuration?: Configuration) { * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD * @param {string} order_id The id which uniquely identifies your order * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -7207,7 +7387,7 @@ const SettlementReconciliationApiAxiosParamCreator = function (configuration?: C * @param {FetchSettlementsRequest} FetchSettlementsRequest Request Body to get the settlements * @param {string} [Content_Type] application/json * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {string} [Accept] application/json * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -7253,7 +7433,7 @@ const SettlementReconciliationApiAxiosParamCreator = function (configuration?: C localVarHeaderParameter['Content-Type'] = 'application/json'; - localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.2.15'; + localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.5'; if (x_api_version != null && x_api_version != undefined) { localVarHeaderParameter['x-api-version'] = x_api_version; } @@ -7283,7 +7463,7 @@ const SettlementReconciliationApiAxiosParamCreator = function (configuration?: C * @param {SettlementFetchReconRequest} SettlementFetchReconRequest Request Body for the settlement reconciliation * @param {string} [Content_Type] application/json * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {string} [Accept] application/json * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -7329,7 +7509,7 @@ const SettlementReconciliationApiAxiosParamCreator = function (configuration?: C localVarHeaderParameter['Content-Type'] = 'application/json'; - localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.2.15'; + localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.5'; if (x_api_version != null && x_api_version != undefined) { localVarHeaderParameter['x-api-version'] = x_api_version; } @@ -7368,7 +7548,7 @@ const SettlementReconciliationApiFp = function(configuration?: Configuration) { * @param {FetchSettlementsRequest} FetchSettlementsRequest Request Body to get the settlements * @param {string} [Content_Type] application/json * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {string} [Accept] application/json * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -7388,7 +7568,7 @@ const SettlementReconciliationApiFp = function(configuration?: Configuration) { * @param {SettlementFetchReconRequest} SettlementFetchReconRequest Request Body for the settlement reconciliation * @param {string} [Content_Type] application/json * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {string} [Accept] application/json * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -7426,7 +7606,7 @@ const SettlementsApiAxiosParamCreator = function (configuration?: Configuration) * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD * @param {string} order_id The id which uniquely identifies your order * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} * x_idempotency_key?: string, @@ -7470,7 +7650,7 @@ const SettlementsApiAxiosParamCreator = function (configuration?: Configuration) - localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.2.15'; + localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.5'; if (x_api_version != null && x_api_version != undefined) { localVarHeaderParameter['x-api-version'] = x_api_version; } @@ -7507,7 +7687,7 @@ const SettlementsApiFp = function(configuration?: Configuration) { * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD * @param {string} order_id The id which uniquely identifies your order * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -7544,7 +7724,7 @@ const SoftPOSApiAxiosParamCreator = function (configuration?: Configuration) { * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD * @param {CreateTerminalRequest} CreateTerminalRequest Request Body to Create Terminal for SPOS * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} * x_idempotency_key?: string, @@ -7589,7 +7769,7 @@ const SoftPOSApiAxiosParamCreator = function (configuration?: Configuration) { localVarHeaderParameter['Content-Type'] = 'application/json'; - localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.2.15'; + localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.5'; if (x_api_version != null && x_api_version != undefined) { localVarHeaderParameter['x-api-version'] = x_api_version; } @@ -7613,12 +7793,12 @@ const SoftPOSApiAxiosParamCreator = function (configuration?: Configuration) { }, /** * 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. - * @summary Create Terminal + * @summary Create Terminal Transaction * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD * @param {CreateTerminalTransactionRequest} CreateTerminalTransactionRequest Request body to create a terminal transaction * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} * x_idempotency_key?: string, @@ -7663,7 +7843,7 @@ const SoftPOSApiAxiosParamCreator = function (configuration?: Configuration) { localVarHeaderParameter['Content-Type'] = 'application/json'; - localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.2.15'; + localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.5'; if (x_api_version != null && x_api_version != undefined) { localVarHeaderParameter['x-api-version'] = x_api_version; } @@ -7692,7 +7872,7 @@ const SoftPOSApiAxiosParamCreator = function (configuration?: Configuration) { * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD * @param {string} terminal_phone_no The terminal for which you want to view the order details. * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} * x_idempotency_key?: string, @@ -7736,7 +7916,7 @@ const SoftPOSApiAxiosParamCreator = function (configuration?: Configuration) { - localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.2.15'; + localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.5'; if (x_api_version != null && x_api_version != undefined) { localVarHeaderParameter['x-api-version'] = x_api_version; } @@ -7765,7 +7945,7 @@ const SoftPOSApiAxiosParamCreator = function (configuration?: Configuration) { * @param {string} terminal_phone_no Phone number assigned to the terminal. Required if you are not providing the cf_terminal_id in the request. * @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. * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} * x_request_id?: string, @@ -7818,7 +7998,7 @@ const SoftPOSApiAxiosParamCreator = function (configuration?: Configuration) { - localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.2.15'; + localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.5'; if (x_api_version != null && x_api_version != undefined) { localVarHeaderParameter['x-api-version'] = x_api_version; } @@ -7855,7 +8035,7 @@ const SoftPOSApiFp = function(configuration?: Configuration) { * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD * @param {CreateTerminalRequest} CreateTerminalRequest Request Body to Create Terminal for SPOS * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -7869,11 +8049,11 @@ const SoftPOSApiFp = function(configuration?: Configuration) { }, /** * 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. - * @summary Create Terminal + * @summary Create Terminal Transaction * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD * @param {CreateTerminalTransactionRequest} CreateTerminalTransactionRequest Request body to create a terminal transaction * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -7891,7 +8071,7 @@ const SoftPOSApiFp = function(configuration?: Configuration) { * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD * @param {string} terminal_phone_no The terminal for which you want to view the order details. * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -7910,7 +8090,7 @@ const SoftPOSApiFp = function(configuration?: Configuration) { * @param {string} terminal_phone_no Phone number assigned to the terminal. Required if you are not providing the cf_terminal_id in the request. * @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. * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -7948,7 +8128,7 @@ const TokenVaultApiAxiosParamCreator = function (configuration?: Configuration) * @param {string} customer_id Your Customer ID that you had sent during create order API `POST/orders` * @param {string} instrument_id The instrument_id which needs to be deleted * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} * x_request_id?: string, @@ -7995,7 +8175,7 @@ const TokenVaultApiAxiosParamCreator = function (configuration?: Configuration) - localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.2.15'; + localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.5'; if (x_api_version != null && x_api_version != undefined) { localVarHeaderParameter['x-api-version'] = x_api_version; } @@ -8024,7 +8204,7 @@ const TokenVaultApiAxiosParamCreator = function (configuration?: Configuration) * @param {string} customer_id Your Customer ID that you had sent during create order API `POST/orders` * @param {string} instrument_id The instrument_id of the saved instrument which needs to be queried * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} * x_request_id?: string, @@ -8071,7 +8251,7 @@ const TokenVaultApiAxiosParamCreator = function (configuration?: Configuration) - localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.2.15'; + localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.5'; if (x_api_version != null && x_api_version != undefined) { localVarHeaderParameter['x-api-version'] = x_api_version; } @@ -8100,7 +8280,7 @@ const TokenVaultApiAxiosParamCreator = function (configuration?: Configuration) * @param {string} customer_id Your Customer ID that you had sent during create order API `POST/orders` * @param {PGCustomerFetchInstrumentsInstrumentTypeEnum} instrument_type Payment mode or type of saved instrument * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} * x_request_id?: string, @@ -8150,7 +8330,7 @@ const TokenVaultApiAxiosParamCreator = function (configuration?: Configuration) - localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.2.15'; + localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.5'; if (x_api_version != null && x_api_version != undefined) { localVarHeaderParameter['x-api-version'] = x_api_version; } @@ -8179,7 +8359,7 @@ const TokenVaultApiAxiosParamCreator = function (configuration?: Configuration) * @param {string} customer_id Your Customer ID that you had sent during create order API `POST/orders` * @param {string} instrument_id The instrument_id of the saved card instrument which needs to be queried * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} * x_request_id?: string, @@ -8226,7 +8406,7 @@ const TokenVaultApiAxiosParamCreator = function (configuration?: Configuration) - localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-3.2.15'; + localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-4.0.5'; if (x_api_version != null && x_api_version != undefined) { localVarHeaderParameter['x-api-version'] = x_api_version; } @@ -8264,7 +8444,7 @@ const TokenVaultApiFp = function(configuration?: Configuration) { * @param {string} customer_id Your Customer ID that you had sent during create order API `POST/orders` * @param {string} instrument_id The instrument_id which needs to be deleted * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -8283,7 +8463,7 @@ const TokenVaultApiFp = function(configuration?: Configuration) { * @param {string} customer_id Your Customer ID that you had sent during create order API `POST/orders` * @param {string} instrument_id The instrument_id of the saved instrument which needs to be queried * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -8302,7 +8482,7 @@ const TokenVaultApiFp = function(configuration?: Configuration) { * @param {string} customer_id Your Customer ID that you had sent during create order API `POST/orders` * @param {PGCustomerFetchInstrumentsInstrumentTypeEnum} instrument_type Payment mode or type of saved instrument * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -8321,7 +8501,7 @@ const TokenVaultApiFp = function(configuration?: Configuration) { * @param {string} customer_id Your Customer ID that you had sent during create order API `POST/orders` * @param {string} instrument_id The instrument_id of the saved card instrument which needs to be queried * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -8383,7 +8563,7 @@ export class Cashfree { static XPartnerMerchantId?: string; static XEnvironment: CFEnvironment; static XEnableErrorAnalytics: boolean = true; - static XApiVersion: string = "2022-09-01"; + static XApiVersion: string = "2023-08-01"; static Environment = new Environment(); @@ -8407,13 +8587,73 @@ export class Cashfree { } + /** + * Create Customer at Cashfree + * @summary Create Customer at Cashfree + * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD + * @param {CreateCustomerRequest} CreateCustomerRequest Request to create a new customer at Cashfree + * @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 + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CustomersApi + */ + public static PGCreateCustomer(x_api_version: string, CreateCustomerRequest: CreateCustomerRequest, x_request_id?: string, x_idempotency_key?: string, options?: AxiosRequestConfig) { + if(Cashfree.XEnableErrorAnalytics) { + Sentry.init({ + dsn: 'https://748d9dcfc4286488867c59651cb6121a@o330525.ingest.sentry.io/4506692796350464', + // Performance Monitoring + tracesSampleRate: 1.0, // Capture 100% of the transactions, reduce in production! + // Set sampling rate for profiling - this is relative to tracesSampleRate + profilesSampleRate: 1.0, // Capture 100% of the transactions, reduce in production!, + attachStacktrace: true, + enableTracing: true, + beforeSend: (event) => { + delete event.contexts.os; + delete event.contexts.device; + delete event.server_name; + if (event.exception && event.exception.values && event.exception.values.length && event.exception.values[0].stacktrace) { + const stackTrace = event.exception.values[0].stacktrace; + if (stackTrace && stackTrace.frames) { + + const filteredDomains = stackTrace.frames.filter((x) => x.filename.includes("cashfree-pg")).map((x) => x.filename); + if (filteredDomains && filteredDomains.length > 0 && filteredDomains[0].includes("cashfree-pg")) { + if(Cashfree.XEnableErrorAnalytics) { + return event; + } + return null; + } + } + } + return null; + }, + }); + Sentry.configureScope((scope) => { + if(Cashfree.XEnvironment == CFEnvironment.SANDBOX) { + scope.setExtra('environment', 'sandbox'); + } else { + scope.setExtra('environment', 'production'); + } + scope.setExtra('release', "4.0.5"); + }); + } + try { + return CustomersApiFp().pGCreateCustomer(x_api_version, CreateCustomerRequest, x_request_id, x_idempotency_key, options).then((request) => request(Cashfree.axios, Cashfree.basePath)); + } catch (error) { + if(Cashfree.XEnableErrorAnalytics) { + Sentry.captureException(error); + } + throw error; + } + } + /** * Use this API to get eligible Cardless EMI Payment Methods available for a customer on an order basis their phone number. - * @summary Get Eligible Cardless EMI + * @summary Get Eligible Cardless EMI Payment Methods for a customer on an order * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD * @param {EligibilityFetchCardlessEMIRequest} EligibilityFetchCardlessEMIRequest Request Body to get eligible cardless emi options for a customer and order * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof EligibilityApi @@ -8454,7 +8694,7 @@ export class Cashfree { } else { scope.setExtra('environment', 'production'); } - scope.setExtra('release', "3.2.15"); + scope.setExtra('release', "4.0.5"); }); } try { @@ -8469,11 +8709,11 @@ export class Cashfree { /** * Use this API to get eligible offers for an order_id or order amount. - * @summary Get Eligible Offers + * @summary Get Eligible Offers for an Order * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD * @param {EligibilityFetchOffersRequest} EligibilityFetchOffersRequest Request Body to get eligible offers for a customer and order * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof EligibilityApi @@ -8514,7 +8754,7 @@ export class Cashfree { } else { scope.setExtra('environment', 'production'); } - scope.setExtra('release', "3.2.15"); + scope.setExtra('release', "4.0.5"); }); } try { @@ -8529,11 +8769,11 @@ export class Cashfree { /** * Use this API to get eligible Paylater Payment Methods for a customer on an order. - * @summary Get Eligible Paylater + * @summary Get Eligible Paylater for a customer on an order * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD * @param {EligibilityFetchPaylaterRequest} EligibilityFetchPaylaterRequest Request Body to get eligible paylater options for a customer and order * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof EligibilityApi @@ -8574,7 +8814,7 @@ export class Cashfree { } else { scope.setExtra('environment', 'production'); } - scope.setExtra('release', "3.2.15"); + scope.setExtra('release', "4.0.5"); }); } try { @@ -8589,11 +8829,11 @@ export class Cashfree { /** * Use this API to get eligible Payment Methods - * @summary Get Eligible Payment Methods + * @summary Get eligible Payment Methods * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD * @param {EligibilityFetchPaymentMethodsRequest} EligibilityFetchPaymentMethodsRequest Request Body to get eligible payment methods for an account and order * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof EligibilityApi @@ -8634,7 +8874,7 @@ export class Cashfree { } else { scope.setExtra('environment', 'production'); } - scope.setExtra('release', "3.2.15"); + scope.setExtra('release', "4.0.5"); }); } try { @@ -8653,7 +8893,7 @@ export class Cashfree { * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD * @param {CreateOfferRequest} CreateOfferRequest Request body to create an offer at Cashfree * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof OffersApi @@ -8694,7 +8934,7 @@ export class Cashfree { } else { scope.setExtra('environment', 'production'); } - scope.setExtra('release', "3.2.15"); + scope.setExtra('release', "4.0.5"); }); } try { @@ -8713,7 +8953,7 @@ export class Cashfree { * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD * @param {string} offer_id The offer ID for which you want to view the offer details. * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof OffersApi @@ -8754,7 +8994,7 @@ export class Cashfree { } else { scope.setExtra('environment', 'production'); } - scope.setExtra('release', "3.2.15"); + scope.setExtra('release', "4.0.5"); }); } try { @@ -8773,7 +9013,7 @@ export class Cashfree { * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD * @param {CreateOrderRequest} CreateOrderRequest Request body to create an order at cashfree * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof OrdersApi @@ -8814,7 +9054,7 @@ export class Cashfree { } else { scope.setExtra('environment', 'production'); } - scope.setExtra('release', "3.2.15"); + scope.setExtra('release', "4.0.5"); }); } try { @@ -8833,7 +9073,7 @@ export class Cashfree { * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD * @param {string} order_id The id which uniquely identifies your order * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof OrdersApi @@ -8874,7 +9114,7 @@ export class Cashfree { } else { scope.setExtra('environment', 'production'); } - scope.setExtra('release', "3.2.15"); + scope.setExtra('release', "4.0.5"); }); } try { @@ -8886,6 +9126,67 @@ export class Cashfree { throw error; } } + + /** + * Use this API to terminate the order that was created at Cashfree\'s using the `order_id`. + * @summary Terminate Order + * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD + * @param {string} order_id The id which uniquely identifies your order + * @param {TerminateOrderRequest} TerminateOrderRequest Request body to terminate an order at cashfree + * @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 + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof OrdersApi + */ + public static PGTerminateOrder(x_api_version: string, order_id: string, TerminateOrderRequest: TerminateOrderRequest, x_request_id?: string, x_idempotency_key?: string, options?: AxiosRequestConfig) { + if(Cashfree.XEnableErrorAnalytics) { + Sentry.init({ + dsn: 'https://748d9dcfc4286488867c59651cb6121a@o330525.ingest.sentry.io/4506692796350464', + // Performance Monitoring + tracesSampleRate: 1.0, // Capture 100% of the transactions, reduce in production! + // Set sampling rate for profiling - this is relative to tracesSampleRate + profilesSampleRate: 1.0, // Capture 100% of the transactions, reduce in production!, + attachStacktrace: true, + enableTracing: true, + beforeSend: (event) => { + delete event.contexts.os; + delete event.contexts.device; + delete event.server_name; + if (event.exception && event.exception.values && event.exception.values.length && event.exception.values[0].stacktrace) { + const stackTrace = event.exception.values[0].stacktrace; + if (stackTrace && stackTrace.frames) { + + const filteredDomains = stackTrace.frames.filter((x) => x.filename.includes("cashfree-pg")).map((x) => x.filename); + if (filteredDomains && filteredDomains.length > 0 && filteredDomains[0].includes("cashfree-pg")) { + if(Cashfree.XEnableErrorAnalytics) { + return event; + } + return null; + } + } + } + return null; + }, + }); + Sentry.configureScope((scope) => { + if(Cashfree.XEnvironment == CFEnvironment.SANDBOX) { + scope.setExtra('environment', 'sandbox'); + } else { + scope.setExtra('environment', 'production'); + } + scope.setExtra('release', "4.0.5"); + }); + } + try { + return OrdersApiFp().pGTerminateOrder(x_api_version, order_id, TerminateOrderRequest, x_request_id, x_idempotency_key, options).then((request) => request(Cashfree.axios, Cashfree.basePath)); + } catch (error) { + if(Cashfree.XEnableErrorAnalytics) { + Sentry.captureException(error); + } + throw error; + } + } /** * - Use this API to get the payment gateway reconciliation details with date range. - It will have events for your payment account @@ -8894,7 +9195,7 @@ export class Cashfree { * @param {FetchReconRequest} FetchReconRequest Request Body for the reconciliation * @param {string} [Content_Type] application/json * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {string} [Accept] application/json * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -8936,7 +9237,7 @@ export class Cashfree { } else { scope.setExtra('environment', 'production'); } - scope.setExtra('release', "3.2.15"); + scope.setExtra('release', "4.0.5"); }); } try { @@ -8955,7 +9256,7 @@ export class Cashfree { * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD * @param {string} link_id The payment link ID for which you want to view the details. * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof PaymentLinksApi @@ -8996,7 +9297,7 @@ export class Cashfree { } else { scope.setExtra('environment', 'production'); } - scope.setExtra('release', "3.2.15"); + scope.setExtra('release', "4.0.5"); }); } try { @@ -9015,7 +9316,7 @@ export class Cashfree { * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD * @param {CreateLinkRequest} CreateLinkRequest Request Body to Create Payment Links * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof PaymentLinksApi @@ -9056,7 +9357,7 @@ export class Cashfree { } else { scope.setExtra('environment', 'production'); } - scope.setExtra('release', "3.2.15"); + scope.setExtra('release', "4.0.5"); }); } try { @@ -9075,7 +9376,7 @@ export class Cashfree { * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD * @param {string} link_id The payment link ID for which you want to view the details. * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof PaymentLinksApi @@ -9116,7 +9417,7 @@ export class Cashfree { } else { scope.setExtra('environment', 'production'); } - scope.setExtra('release', "3.2.15"); + scope.setExtra('release', "4.0.5"); }); } try { @@ -9135,7 +9436,7 @@ export class Cashfree { * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD * @param {string} link_id The payment link ID for which you want to view the details. * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof PaymentLinksApi @@ -9176,7 +9477,7 @@ export class Cashfree { } else { scope.setExtra('environment', 'production'); } - scope.setExtra('release', "3.2.15"); + scope.setExtra('release', "4.0.5"); }); } try { @@ -9196,7 +9497,7 @@ export class Cashfree { * @param {string} order_id The id which uniquely identifies your order * @param {AuthorizeOrderRequest} AuthorizeOrderRequest Request to Capture or Void Transactions * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof PaymentsApi @@ -9237,7 +9538,7 @@ export class Cashfree { } else { scope.setExtra('environment', 'production'); } - scope.setExtra('release', "3.2.15"); + scope.setExtra('release', "4.0.5"); }); } try { @@ -9257,7 +9558,7 @@ export class Cashfree { * @param {string} cf_payment_id The Cashfree payment or transaction ID. * @param {OrderAuthenticatePaymentRequest} OrderAuthenticatePaymentRequest Request body to submit/resend headless OTP. To use this API make sure you have headless OTP enabled for your account * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof PaymentsApi @@ -9298,7 +9599,7 @@ export class Cashfree { } else { scope.setExtra('environment', 'production'); } - scope.setExtra('release', "3.2.15"); + scope.setExtra('release', "4.0.5"); }); } try { @@ -9318,7 +9619,7 @@ export class Cashfree { * @param {string} order_id The id which uniquely identifies your order * @param {string} cf_payment_id The Cashfree payment or transaction ID. * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof PaymentsApi @@ -9359,7 +9660,7 @@ export class Cashfree { } else { scope.setExtra('environment', 'production'); } - scope.setExtra('release', "3.2.15"); + scope.setExtra('release', "4.0.5"); }); } try { @@ -9378,7 +9679,7 @@ export class Cashfree { * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD * @param {string} order_id The id which uniquely identifies your order * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof PaymentsApi @@ -9419,7 +9720,7 @@ export class Cashfree { } else { scope.setExtra('environment', 'production'); } - scope.setExtra('release', "3.2.15"); + scope.setExtra('release', "4.0.5"); }); } try { @@ -9438,7 +9739,7 @@ export class Cashfree { * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD * @param {PayOrderRequest} PayOrderRequest Request body to create a transaction at cashfree using `payment_session_id` * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof PaymentsApi @@ -9479,7 +9780,7 @@ export class Cashfree { } else { scope.setExtra('environment', 'production'); } - scope.setExtra('release', "3.2.15"); + scope.setExtra('release', "4.0.5"); }); } try { @@ -9499,7 +9800,7 @@ export class Cashfree { * @param {string} order_id The id which uniquely identifies your order * @param {OrderCreateRefundRequest} OrderCreateRefundRequest Request Body to Create Refunds * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof RefundsApi @@ -9540,7 +9841,7 @@ export class Cashfree { } else { scope.setExtra('environment', 'production'); } - scope.setExtra('release', "3.2.15"); + scope.setExtra('release', "4.0.5"); }); } try { @@ -9560,7 +9861,7 @@ export class Cashfree { * @param {string} order_id The id which uniquely identifies your order * @param {string} refund_id Refund Id of the refund you want to fetch. * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof RefundsApi @@ -9601,7 +9902,7 @@ export class Cashfree { } else { scope.setExtra('environment', 'production'); } - scope.setExtra('release', "3.2.15"); + scope.setExtra('release', "4.0.5"); }); } try { @@ -9620,7 +9921,7 @@ export class Cashfree { * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD * @param {string} order_id The id which uniquely identifies your order * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof RefundsApi @@ -9661,7 +9962,7 @@ export class Cashfree { } else { scope.setExtra('environment', 'production'); } - scope.setExtra('release', "3.2.15"); + scope.setExtra('release', "4.0.5"); }); } try { @@ -9681,7 +9982,7 @@ export class Cashfree { * @param {FetchSettlementsRequest} FetchSettlementsRequest Request Body to get the settlements * @param {string} [Content_Type] application/json * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {string} [Accept] application/json * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -9723,7 +10024,7 @@ export class Cashfree { } else { scope.setExtra('environment', 'production'); } - scope.setExtra('release', "3.2.15"); + scope.setExtra('release', "4.0.5"); }); } try { @@ -9743,7 +10044,7 @@ export class Cashfree { * @param {SettlementFetchReconRequest} SettlementFetchReconRequest Request Body for the settlement reconciliation * @param {string} [Content_Type] application/json * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {string} [Accept] application/json * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -9785,7 +10086,7 @@ export class Cashfree { } else { scope.setExtra('environment', 'production'); } - scope.setExtra('release', "3.2.15"); + scope.setExtra('release', "4.0.5"); }); } try { @@ -9804,7 +10105,7 @@ export class Cashfree { * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD * @param {string} order_id The id which uniquely identifies your order * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SettlementsApi @@ -9845,7 +10146,7 @@ export class Cashfree { } else { scope.setExtra('environment', 'production'); } - scope.setExtra('release', "3.2.15"); + scope.setExtra('release', "4.0.5"); }); } try { @@ -9864,7 +10165,7 @@ export class Cashfree { * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD * @param {CreateTerminalRequest} CreateTerminalRequest Request Body to Create Terminal for SPOS * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SoftPOSApi @@ -9905,7 +10206,7 @@ export class Cashfree { } else { scope.setExtra('environment', 'production'); } - scope.setExtra('release', "3.2.15"); + scope.setExtra('release', "4.0.5"); }); } try { @@ -9920,11 +10221,11 @@ export class Cashfree { /** * 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. - * @summary Create Terminal + * @summary Create Terminal Transaction * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD * @param {CreateTerminalTransactionRequest} CreateTerminalTransactionRequest Request body to create a terminal transaction * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SoftPOSApi @@ -9965,7 +10266,7 @@ export class Cashfree { } else { scope.setExtra('environment', 'production'); } - scope.setExtra('release', "3.2.15"); + scope.setExtra('release', "4.0.5"); }); } try { @@ -9984,7 +10285,7 @@ export class Cashfree { * @param {string} x_api_version API version to be used. Format is in YYYY-MM-DD * @param {string} terminal_phone_no The terminal for which you want to view the order details. * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SoftPOSApi @@ -10025,7 +10326,7 @@ export class Cashfree { } else { scope.setExtra('environment', 'production'); } - scope.setExtra('release', "3.2.15"); + scope.setExtra('release', "4.0.5"); }); } try { @@ -10045,7 +10346,7 @@ export class Cashfree { * @param {string} terminal_phone_no Phone number assigned to the terminal. Required if you are not providing the cf_terminal_id in the request. * @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. * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SoftPOSApi @@ -10086,7 +10387,7 @@ export class Cashfree { } else { scope.setExtra('environment', 'production'); } - scope.setExtra('release', "3.2.15"); + scope.setExtra('release', "4.0.5"); }); } try { @@ -10106,7 +10407,7 @@ export class Cashfree { * @param {string} customer_id Your Customer ID that you had sent during create order API `POST/orders` * @param {string} instrument_id The instrument_id which needs to be deleted * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TokenVaultApi @@ -10147,7 +10448,7 @@ export class Cashfree { } else { scope.setExtra('environment', 'production'); } - scope.setExtra('release', "3.2.15"); + scope.setExtra('release', "4.0.5"); }); } try { @@ -10167,7 +10468,7 @@ export class Cashfree { * @param {string} customer_id Your Customer ID that you had sent during create order API `POST/orders` * @param {string} instrument_id The instrument_id of the saved instrument which needs to be queried * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TokenVaultApi @@ -10208,7 +10509,7 @@ export class Cashfree { } else { scope.setExtra('environment', 'production'); } - scope.setExtra('release', "3.2.15"); + scope.setExtra('release', "4.0.5"); }); } try { @@ -10228,7 +10529,7 @@ export class Cashfree { * @param {string} customer_id Your Customer ID that you had sent during create order API `POST/orders` * @param {PGCustomerFetchInstrumentsInstrumentTypeEnum} instrument_type Payment mode or type of saved instrument * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TokenVaultApi @@ -10269,7 +10570,7 @@ export class Cashfree { } else { scope.setExtra('environment', 'production'); } - scope.setExtra('release', "3.2.15"); + scope.setExtra('release', "4.0.5"); }); } try { @@ -10289,7 +10590,7 @@ export class Cashfree { * @param {string} customer_id Your Customer ID that you had sent during create order API `POST/orders` * @param {string} instrument_id The instrument_id of the saved card instrument which needs to be queried * @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 - * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. + * @param {string} [x_idempotency_key] An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TokenVaultApi @@ -10330,7 +10631,7 @@ export class Cashfree { } else { scope.setExtra('environment', 'production'); } - scope.setExtra('release', "3.2.15"); + scope.setExtra('release', "4.0.5"); }); } try { diff --git a/base.ts b/base.ts index da48b02..2370b6b 100644 --- a/base.ts +++ b/base.ts @@ -4,7 +4,7 @@ * Cashfree Payment Gateway APIs * Cashfree\'s Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2022-09-01 + * The version of the OpenAPI document: 2023-08-01 * Contact: developers@cashfree.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/common.ts b/common.ts index 67c9eeb..c0ff14b 100644 --- a/common.ts +++ b/common.ts @@ -4,7 +4,7 @@ * Cashfree Payment Gateway APIs * Cashfree\'s Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2022-09-01 + * The version of the OpenAPI document: 2023-08-01 * Contact: developers@cashfree.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/configuration.ts b/configuration.ts index 01c96e5..da9337b 100644 --- a/configuration.ts +++ b/configuration.ts @@ -4,7 +4,7 @@ * Cashfree Payment Gateway APIs * Cashfree\'s Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2022-09-01 + * The version of the OpenAPI document: 2023-08-01 * Contact: developers@cashfree.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/index.ts b/index.ts index 72fccf3..a1e14b5 100644 --- a/index.ts +++ b/index.ts @@ -4,7 +4,7 @@ * Cashfree Payment Gateway APIs * Cashfree\'s Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2022-09-01 + * The version of the OpenAPI document: 2023-08-01 * Contact: developers@cashfree.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/package.json b/package.json index 4f86e3c..f29150f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cashfree-pg", - "version": "3.2.15", + "version": "4.0.5", "description": "Cashfree client for cashfree-pg", "author": "Cashfree Payments", "repository": {