From 263f0df4c2f1098197a66368ec22f5f3f2bd72d5 Mon Sep 17 00:00:00 2001 From: bitbucket-pipelines Date: Thu, 1 Feb 2024 09:56:24 +0000 Subject: [PATCH] Generating Go SDK. --- .openapi-generator/FILES | 21 +- README.md | 6 +- api_customers.go | 2 +- api_eligibility.go | 10 +- api_offers.go | 6 +- api_orders.go | 458 +++++++++++++++++- api_payment_links.go | 10 +- api_payments.go | 12 +- api_pg_reconciliation.go | 4 +- api_refunds.go | 8 +- api_settlement_reconciliation.go | 6 +- api_settlements.go | 4 +- api_soft_pos.go | 10 +- api_token_vault.go | 10 +- client.go | 4 +- configuration.go | 8 +- docs/CreateLinkRequest.md | 8 +- docs/CreateTerminalTransactionRequest.md | 18 +- docs/CustomerDetails.md | 26 + docs/EligibilityAPI.md | 48 +- docs/FetchSettlementsRequestFilters.md | 8 +- docs/LinkEntity.md | 16 +- docs/OfferValidations.md | 23 +- docs/OffersAPI.md | 18 +- docs/OrderAuthenticateEntity.md | 8 +- docs/OrderEntity.md | 88 +--- docs/OrderMeta.md | 2 +- docs/OrdersAPI.md | 100 +++- docs/PGReconciliationAPI.md | 8 +- docs/PayOrderEntity.md | 8 +- docs/PaymentEntity.md | 8 +- docs/PaymentLinkOrderEntity.md | 86 +--- docs/PaymentLinksAPI.md | 32 +- docs/PaymentsAPI.md | 40 +- docs/ReconEntityDataInner.md | 16 +- docs/RefundEntity.md | 8 +- docs/RefundsAPI.md | 24 +- docs/SettlementEntity.md | 16 +- docs/SettlementFetchReconRequest.md | 10 +- docs/SettlementReconEntityDataInner.md | 16 +- docs/SettlementReconciliationAPI.md | 18 +- docs/SettlementsAPI.md | 8 +- docs/SoftPOSAPI.md | 38 +- docs/TerminalDetails.md | 8 +- docs/TerminalTransactionEntity.md | 8 +- docs/TokenVaultAPI.md | 32 +- go.mod | 2 +- model_api_error.go | 2 +- model_api_error404.go | 2 +- model_api_error409.go | 2 +- model_api_error502.go | 2 +- model_app.go | 2 +- model_app_payment_method.go | 2 +- model_authentication_error.go | 2 +- model_authorization_in_payments_entity.go | 2 +- model_authorize_order_request.go | 2 +- model_bad_request_error.go | 2 +- model_card.go | 2 +- model_card_emi.go | 2 +- model_card_emi_payment_method.go | 2 +- model_card_offer.go | 2 +- model_card_payment_method.go | 2 +- model_cardless_emi.go | 2 +- model_cardless_emi_entity.go | 2 +- model_cardless_emi_payment_method.go | 2 +- model_cardless_emi_queries.go | 2 +- model_cashback_details.go | 2 +- model_create_link_request.go | 4 +- model_create_offer_request.go | 2 +- model_create_order_request.go | 2 +- model_create_terminal_request.go | 2 +- ...l_create_terminal_request_terminal_meta.go | 2 +- model_create_terminal_transaction_request.go | 6 +- model_cryptogram_entity.go | 2 +- model_customer_details.go | 7 +- model_customer_details_cardless_emi.go | 2 +- model_discount_details.go | 2 +- model_eligibility_cardless_emi_entity.go | 2 +- ..._eligibility_fetch_cardless_emi_request.go | 2 +- model_eligibility_fetch_offers_request.go | 2 +- model_eligibility_fetch_paylater_request.go | 2 +- ...igibility_fetch_payment_methods_request.go | 2 +- model_eligibility_offer_entity.go | 2 +- model_eligibility_paylater_entity.go | 2 +- model_eligibility_payment_methods_entity.go | 2 +- ...y_payment_methods_entity_entity_details.go | 2 +- model_emi_offer.go | 2 +- model_emi_plans_array.go | 2 +- model_error_details_in_payments_entity.go | 2 +- model_fetch_recon_request.go | 2 +- model_fetch_recon_request_filters.go | 2 +- model_fetch_recon_request_pagination.go | 2 +- model_fetch_settlements_request.go | 2 +- model_fetch_settlements_request_filters.go | 4 +- model_fetch_settlements_request_pagination.go | 2 +- model_fetch_terminal_qr_codes_entity.go | 2 +- model_idempotency_error.go | 2 +- model_instrument_entity.go | 2 +- model_instrument_webhook.go | 2 +- model_instrument_webhook_data.go | 2 +- model_instrument_webhook_data_entity.go | 2 +- model_link_customer_details_entity.go | 2 +- model_link_entity.go | 7 +- model_link_notify_entity.go | 2 +- model_net_banking_payment_method.go | 2 +- model_netbanking.go | 2 +- model_offer_all.go | 2 +- model_offer_card.go | 2 +- model_offer_details.go | 2 +- model_offer_emi.go | 2 +- model_offer_entity.go | 2 +- model_offer_filters.go | 2 +- model_offer_meta.go | 2 +- model_offer_nb.go | 2 +- model_offer_nb_netbanking.go | 2 +- model_offer_paylater.go | 2 +- model_offer_queries.go | 2 +- model_offer_tnc.go | 2 +- model_offer_type.go | 2 +- model_offer_upi.go | 2 +- model_offer_validations.go | 5 +- model_offer_validations_payment_method.go | 2 +- model_offer_wallet.go | 2 +- model_order_authenticate_entity.go | 4 +- model_order_authenticate_payment_request.go | 2 +- model_order_create_refund_request.go | 2 +- model_order_entity.go | 18 +- model_order_meta.go | 4 +- model_order_pay_data.go | 2 +- model_pay_order_entity.go | 4 +- model_pay_order_request.go | 2 +- model_pay_order_request_payment_method.go | 2 +- model_paylater.go | 2 +- model_paylater_entity.go | 2 +- model_paylater_offer.go | 2 +- model_paylater_payment_method.go | 2 +- model_payment_entity.go | 4 +- model_payment_entity_payment_method.go | 2 +- model_payment_link_customer_details.go | 2 +- model_payment_link_order_entity.go | 16 +- ...l_payment_method_app_in_payments_entity.go | 2 +- ...yment_method_app_in_payments_entity_app.go | 2 +- ...yment_method_card_emiin_payments_entity.go | 2 +- ...t_method_card_emiin_payments_entity_emi.go | 2 +- ...d_emiin_payments_entity_emi_emi_details.go | 2 +- ..._payment_method_card_in_payments_entity.go | 2 +- ...ent_method_card_in_payments_entity_card.go | 2 +- ...t_method_cardless_emiin_payments_entity.go | 2 +- ...t_method_net_banking_in_payments_entity.go | 2 +- ...t_banking_in_payments_entity_netbanking.go | 2 +- ...ment_method_paylater_in_payments_entity.go | 2 +- model_payment_method_upiin_payments_entity.go | 2 +- ...ayment_method_upiin_payments_entity_upi.go | 2 +- model_payment_methods_filters.go | 4 +- model_payment_methods_queries.go | 2 +- model_payment_mode_details.go | 2 +- model_payment_webhook.go | 2 +- model_payment_webhook_customer_entity.go | 2 +- model_payment_webhook_data_entity.go | 2 +- model_payment_webhook_error_entity.go | 2 +- ..._payment_webhook_gateway_details_entity.go | 2 +- model_payment_webhook_order_entity.go | 2 +- model_rate_limit_error.go | 2 +- model_recon_entity.go | 2 +- model_recon_entity_data_inner.go | 6 +- model_refund_entity.go | 4 +- model_refund_speed.go | 2 +- model_refund_webhook.go | 2 +- model_refund_webhook_data_entity.go | 2 +- model_saved_instrument_meta.go | 2 +- model_settlement_entity.go | 6 +- model_settlement_fetch_recon_request.go | 4 +- model_settlement_recon_entity.go | 2 +- model_settlement_recon_entity_data_inner.go | 6 +- model_settlement_webhook.go | 2 +- model_settlement_webhook_data_entity.go | 2 +- model_terminal_details.go | 4 +- model_terminal_entity.go | 2 +- model_terminal_transaction_entity.go | 4 +- model_upi.go | 2 +- model_upi_authorize_details.go | 2 +- model_upi_payment_method.go | 2 +- model_vendor_split.go | 2 +- model_wallet_offer.go | 2 +- response.go | 2 +- utils.go | 2 +- 186 files changed, 1025 insertions(+), 662 deletions(-) diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index a27cdb9..536969c 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -3,6 +3,7 @@ .travis.yml README.md api/openapi.yaml +api_customers.go api_eligibility.go api_offers.go api_orders.go @@ -36,6 +37,7 @@ docs/CardlessEMIEntity.md docs/CardlessEMIPaymentMethod.md docs/CardlessEMIQueries.md docs/CashbackDetails.md +docs/CreateCustomerRequest.md docs/CreateLinkRequest.md docs/CreateOfferRequest.md docs/CreateOrderRequest.md @@ -45,6 +47,8 @@ docs/CreateTerminalTransactionRequest.md docs/CryptogramEntity.md docs/CustomerDetails.md docs/CustomerDetailsCardlessEMI.md +docs/CustomerEntity.md +docs/CustomersAPI.md docs/DiscountDetails.md docs/EMIOffer.md docs/EMIPlansArray.md @@ -73,7 +77,7 @@ docs/InstrumentWebhookData.md docs/InstrumentWebhookDataEntity.md docs/LinkCustomerDetailsEntity.md docs/LinkEntity.md -docs/LinkMetaEntity.md +docs/LinkMetaResponseEntity.md docs/LinkNotifyEntity.md docs/NetBankingPaymentMethod.md docs/Netbanking.md @@ -131,7 +135,6 @@ docs/PaymentMethodUPIInPaymentsEntityUpi.md docs/PaymentMethodsFilters.md docs/PaymentMethodsQueries.md docs/PaymentModeDetails.md -docs/PaymentURLObject.md docs/PaymentWebhook.md docs/PaymentWebhookCustomerEntity.md docs/PaymentWebhookDataEntity.md @@ -144,18 +147,15 @@ docs/ReconEntity.md docs/ReconEntityDataInner.md docs/RefundEntity.md docs/RefundSpeed.md -docs/RefundURLObject.md docs/RefundWebhook.md docs/RefundWebhookDataEntity.md docs/RefundsAPI.md docs/SavedInstrumentMeta.md docs/SettlementEntity.md docs/SettlementFetchReconRequest.md -docs/SettlementFetchReconRequestFilters.md docs/SettlementReconEntity.md docs/SettlementReconEntityDataInner.md docs/SettlementReconciliationAPI.md -docs/SettlementURLObject.md docs/SettlementWebhook.md docs/SettlementWebhookDataEntity.md docs/SettlementsAPI.md @@ -163,6 +163,7 @@ docs/SoftPOSAPI.md docs/TerminalDetails.md docs/TerminalEntity.md docs/TerminalTransactionEntity.md +docs/TerminateOrderRequest.md docs/TokenVaultAPI.md docs/UPIAuthorizeDetails.md docs/UPIPaymentMethod.md @@ -192,6 +193,7 @@ model_cardless_emi_entity.go model_cardless_emi_payment_method.go model_cardless_emi_queries.go model_cashback_details.go +model_create_customer_request.go model_create_link_request.go model_create_offer_request.go model_create_order_request.go @@ -201,6 +203,7 @@ model_create_terminal_transaction_request.go model_cryptogram_entity.go model_customer_details.go model_customer_details_cardless_emi.go +model_customer_entity.go model_discount_details.go model_eligibility_cardless_emi_entity.go model_eligibility_fetch_cardless_emi_request.go @@ -228,7 +231,7 @@ model_instrument_webhook_data.go model_instrument_webhook_data_entity.go model_link_customer_details_entity.go model_link_entity.go -model_link_meta_entity.go +model_link_meta_response_entity.go model_link_notify_entity.go model_net_banking_payment_method.go model_netbanking.go @@ -282,7 +285,6 @@ model_payment_method_upiin_payments_entity_upi.go model_payment_methods_filters.go model_payment_methods_queries.go model_payment_mode_details.go -model_payment_url_object.go model_payment_webhook.go model_payment_webhook_customer_entity.go model_payment_webhook_data_entity.go @@ -294,27 +296,26 @@ model_recon_entity.go model_recon_entity_data_inner.go model_refund_entity.go model_refund_speed.go -model_refund_url_object.go model_refund_webhook.go model_refund_webhook_data_entity.go model_saved_instrument_meta.go model_settlement_entity.go model_settlement_fetch_recon_request.go -model_settlement_fetch_recon_request_filters.go model_settlement_recon_entity.go model_settlement_recon_entity_data_inner.go -model_settlement_url_object.go model_settlement_webhook.go model_settlement_webhook_data_entity.go model_terminal_details.go model_terminal_entity.go model_terminal_transaction_entity.go +model_terminate_order_request.go model_upi.go model_upi_authorize_details.go model_upi_payment_method.go model_vendor_split.go model_wallet_offer.go response.go +test/api_customers_test.go test/api_eligibility_test.go test/api_offers_test.go test/api_orders_test.go diff --git a/README.md b/README.md index dd8fd39..aa7105e 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # Cashfree PG Go SDK -![GitHub](https://img.shields.io/github/license/cashfree/cashfree-pg) ![Discord](https://img.shields.io/discord/931125665669972018?label=discord) ![GitHub last commit (branch)](https://img.shields.io/github/last-commit/cashfree/cashfree-pg/main) ![GitHub release (with filter)](https://img.shields.io/github/v/release/cashfree/cashfree-pg?label=latest) ![GitHub forks](https://img.shields.io/github/forks/cashfree/cashfree-pg) [![Coverage Status](https://coveralls.io/repos/github/cashfree/cashfree-pg/badge.svg?branch=main)](https://coveralls.io/github/cashfree/cashfree-pg?branch=main) [![GoDoc](https://godoc.org/github.com/cashfree/cashfree-pg/v3?status.svg)](https://godoc.org/github.com/cashfree/cashfree-pg/v3) +![GitHub](https://img.shields.io/github/license/cashfree/cashfree-pg) ![Discord](https://img.shields.io/discord/931125665669972018?label=discord) ![GitHub last commit (branch)](https://img.shields.io/github/last-commit/cashfree/cashfree-pg/main) ![GitHub release (with filter)](https://img.shields.io/github/v/release/cashfree/cashfree-pg?label=latest) ![GitHub forks](https://img.shields.io/github/forks/cashfree/cashfree-pg) [![Coverage Status](https://coveralls.io/repos/github/cashfree/cashfree-pg/badge.svg?branch=main)](https://coveralls.io/github/cashfree/cashfree-pg?branch=main) [![GoDoc](https://godoc.org/github.com/cashfree/cashfree-pg/v4?status.svg)](https://godoc.org/github.com/cashfree/cashfree-pg/v4) The Cashfree PG Go SDK offers a convenient solution to access [Cashfree PG APIs](https://docs.cashfree.com/reference/pg-new-apis-endpoint) from a server-side Go applications. @@ -17,13 +17,13 @@ Try out our interactive guides at [Cashfree Dev Studio](https://www.cashfree.com ### Installation ```bash -go get github.com/cashfree/cashfree-pg/v3 +go get github.com/cashfree/cashfree-pg/v4 ``` ### Configuration ```go import ( - cashfree "github.com/cashfree/cashfree-pg/v3" + cashfree "github.com/cashfree/cashfree-pg/v4" ) clientId := "" diff --git a/api_customers.go b/api_customers.go index 9495e02..00d7328 100644 --- a/api_customers.go +++ b/api_customers.go @@ -324,7 +324,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.5" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.6" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err diff --git a/api_eligibility.go b/api_eligibility.go index e520cfd..9ef9625 100644 --- a/api_eligibility.go +++ b/api_eligibility.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ @@ -339,7 +339,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-3.2.14" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.6" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -804,7 +804,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-3.2.14" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.6" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1269,7 +1269,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-3.2.14" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.6" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1749,7 +1749,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-3.2.14" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.6" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err diff --git a/api_offers.go b/api_offers.go index 50cd2d7..31e68b3 100644 --- a/api_offers.go +++ b/api_offers.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ @@ -325,7 +325,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-3.2.14" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.6" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -767,7 +767,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-3.2.14" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.6" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err diff --git a/api_orders.go b/api_orders.go index cf6405c..7ed2d1e 100644 --- a/api_orders.go +++ b/api_orders.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ @@ -325,7 +325,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-3.2.14" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.6" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -767,7 +767,459 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-3.2.14" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.6" + req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v BadRequestError + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + if v.Message != nil { + newErr.error = *v.Message + } else { + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v AuthenticationError + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + if v.Message != nil { + newErr.error = *v.Message + } else { + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ApiError404 + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + if v.Message != nil { + newErr.error = *v.Message + } else { + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 409 { + var v ApiError409 + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + if v.Message != nil { + newErr.error = *v.Message + } else { + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 422 { + var v IdempotencyError + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + if v.Message != nil { + newErr.error = *v.Message + } else { + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 429 { + var v RateLimitError + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + if v.Message != nil { + newErr.error = *v.Message + } else { + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ApiError + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + if v.Message != nil { + newErr.error = *v.Message + } else { + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} +// With Context + + + +// Execute executes the request +// @return OrderEntity +func PGTerminateOrder(xApiVersion *string, orderId string, terminateOrderRequest *TerminateOrderRequest, xRequestId *string, xIdempotencyKey *string, httpClient *http.Client) (*OrderEntity, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *OrderEntity + ) + + if XEnableErrorAnalytics { + SetupSentry(XEnvironment) + defer CaptureError("PGTerminateOrder") + } + + ctx := context.Background() + + client := NewAPIClient(NewConfiguration()) + if httpClient != nil { + client.cfg.HTTPClient = httpClient + } + + localBasePath := client.cfg.Servers[int(XEnvironment)].URL + + localVarPath := localBasePath + "/orders/{order_id}" + localVarPath = strings.Replace(localVarPath, "{"+"order_id"+"}", url.PathEscape(parameterValueToString(orderId, "orderId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if xApiVersion == nil { + return localVarReturnValue, nil, reportError("xApiVersion is required and must be specified") + } + if terminateOrderRequest == nil { + return localVarReturnValue, nil, reportError("terminateOrderRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-api-version", xApiVersion, "") + if xRequestId != nil { + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-request-id", xRequestId, "") + } + if xIdempotencyKey != nil { + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-idempotency-key", xIdempotencyKey, "") + } + // body params + localVarPostBody = terminateOrderRequest + +if XPartnerMerchantId != nil { + localVarHeaderParams["x-partner-merchantid"] = *XPartnerMerchantId +} + +if XClientId != nil { + localVarHeaderParams["x-client-id"] = *XClientId +} + +if XClientSignature != nil { + localVarHeaderParams["x-client-signature"] = *XClientSignature +} + +if XClientSecret != nil { + localVarHeaderParams["x-client-secret"] = *XClientSecret +} + +if XPartnerApiKey != nil { + localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey +} + req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v BadRequestError + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + if v.Message != nil { + newErr.error = *v.Message + } else { + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v AuthenticationError + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + if v.Message != nil { + newErr.error = *v.Message + } else { + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ApiError404 + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + if v.Message != nil { + newErr.error = *v.Message + } else { + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 409 { + var v ApiError409 + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + if v.Message != nil { + newErr.error = *v.Message + } else { + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 422 { + var v IdempotencyError + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + if v.Message != nil { + newErr.error = *v.Message + } else { + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 429 { + var v RateLimitError + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + if v.Message != nil { + newErr.error = *v.Message + } else { + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ApiError + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + if v.Message != nil { + newErr.error = *v.Message + } else { + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// With Context +// Execute executes the request +// @return OrderEntity +func PGTerminateOrderWithContext(ctx context.Context, xApiVersion *string, orderId string, terminateOrderRequest *TerminateOrderRequest, xRequestId *string, xIdempotencyKey *string, httpClient *http.Client) (*OrderEntity, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *OrderEntity + ) + + if XEnableErrorAnalytics { + SetupSentry(XEnvironment) + defer CaptureError("PGTerminateOrder") + } + + client := NewAPIClient(NewConfiguration()) + if httpClient != nil { + client.cfg.HTTPClient = httpClient + } + + localBasePath := client.cfg.Servers[int(XEnvironment)].URL + + localVarPath := localBasePath + "/orders/{order_id}" + localVarPath = strings.Replace(localVarPath, "{"+"order_id"+"}", url.PathEscape(parameterValueToString(orderId, "orderId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if xApiVersion == nil { + return localVarReturnValue, nil, reportError("xApiVersion is required and must be specified") + } + if terminateOrderRequest == nil { + return localVarReturnValue, nil, reportError("terminateOrderRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-api-version", xApiVersion, "") + if xRequestId != nil { + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-request-id", xRequestId, "") + } + if xIdempotencyKey != nil { + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-idempotency-key", xIdempotencyKey, "") + } + // body params + localVarPostBody = terminateOrderRequest + +if XPartnerMerchantId != nil { + localVarHeaderParams["x-partner-merchantid"] = *XPartnerMerchantId +} + +if XClientId != nil { + localVarHeaderParams["x-client-id"] = *XClientId +} + +if XClientSignature != nil { + localVarHeaderParams["x-client-signature"] = *XClientSignature +} + +if XClientSecret != nil { + localVarHeaderParams["x-client-secret"] = *XClientSecret +} + +if XPartnerApiKey != nil { + localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey +} + + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.6" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err diff --git a/api_payment_links.go b/api_payment_links.go index 68d0baa..5a51e89 100644 --- a/api_payment_links.go +++ b/api_payment_links.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ @@ -317,7 +317,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-3.2.14" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.6" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -767,7 +767,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-3.2.14" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.6" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1224,7 +1224,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-3.2.14" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.6" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1681,7 +1681,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-3.2.14" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.6" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err diff --git a/api_payments.go b/api_payments.go index 071972f..0a2e641 100644 --- a/api_payments.go +++ b/api_payments.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ @@ -342,7 +342,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-3.2.14" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.6" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -824,7 +824,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-3.2.14" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.6" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1298,7 +1298,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-3.2.14" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.6" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1770,7 +1770,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-3.2.14" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.6" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -2250,7 +2250,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-3.2.14" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.6" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err diff --git a/api_pg_reconciliation.go b/api_pg_reconciliation.go index e1d71ad..d708261 100644 --- a/api_pg_reconciliation.go +++ b/api_pg_reconciliation.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ @@ -336,7 +336,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-3.2.14" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.6" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err diff --git a/api_refunds.go b/api_refunds.go index 05c9c46..fc84bb1 100644 --- a/api_refunds.go +++ b/api_refunds.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ @@ -342,7 +342,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-3.2.14" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.6" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -816,7 +816,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-3.2.14" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.6" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1273,7 +1273,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-3.2.14" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.6" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err diff --git a/api_settlement_reconciliation.go b/api_settlement_reconciliation.go index 3df6294..e03e8f1 100644 --- a/api_settlement_reconciliation.go +++ b/api_settlement_reconciliation.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ @@ -336,7 +336,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-3.2.14" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.6" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -798,7 +798,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-3.2.14" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.6" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err diff --git a/api_settlements.go b/api_settlements.go index b9b63cc..18f4d6e 100644 --- a/api_settlements.go +++ b/api_settlements.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ @@ -332,7 +332,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-3.2.14" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.6" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err diff --git a/api_soft_pos.go b/api_soft_pos.go index 842ec84..bd64460 100644 --- a/api_soft_pos.go +++ b/api_soft_pos.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ @@ -325,7 +325,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-3.2.14" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.6" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -775,7 +775,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-3.2.14" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.6" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1217,7 +1217,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-3.2.14" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.6" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1673,7 +1673,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-3.2.14" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.6" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err diff --git a/api_token_vault.go b/api_token_vault.go index b5d79a2..3928efc 100644 --- a/api_token_vault.go +++ b/api_token_vault.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ @@ -334,7 +334,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-3.2.14" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.6" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -808,7 +808,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-3.2.14" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.6" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1273,7 +1273,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-3.2.14" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.6" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1732,7 +1732,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-3.2.14" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.6" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err diff --git a/client.go b/client.go index 420daf8..273103f 100644 --- a/client.go +++ b/client.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ @@ -42,7 +42,7 @@ var ( queryDescape = strings.NewReplacer( "%5B", "[", "%5D", "]" ) ) -// APIClient manages communication with the Cashfree Payment Gateway APIs API v2022-09-01 +// APIClient manages communication with the Cashfree Payment Gateway APIs API v2023-08-01 // In most cases there should be only one, shared, APIClient. type APIClient struct { cfg *Configuration diff --git a/configuration.go b/configuration.go index e97ab37..22d6220 100644 --- a/configuration.go +++ b/configuration.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ @@ -45,7 +45,7 @@ var ( XPartnerApiKey *string XEnvironment CFEnvironment = SANDBOX XEnableErrorAnalytics = true - XApiVersion = "2022-09-01"; + XApiVersion = "2023-08-01"; ) type PGWebhookEvent struct { @@ -92,7 +92,7 @@ func SetupSentry(environment CFEnvironment) { AttachStacktrace: true, EnableTracing: true, Environment: env, - Release: "3.2.14", + Release: "4.0.6", BeforeSend: func(event *sentry.Event, hint *sentry.EventHint) *sentry.Event { delete(event.Contexts, "device") delete(event.Contexts, "os") @@ -192,7 +192,7 @@ type Configuration struct { func NewConfiguration() *Configuration { cfg := &Configuration{ DefaultHeader: make(map[string]string), - UserAgent: "OpenAPI-Generator/3.2.14/go", + UserAgent: "OpenAPI-Generator/4.0.6/go", Debug: false, Servers: ServerConfigurations{ { diff --git a/docs/CreateLinkRequest.md b/docs/CreateLinkRequest.md index e2d7d6d..7e587cb 100644 --- a/docs/CreateLinkRequest.md +++ b/docs/CreateLinkRequest.md @@ -15,7 +15,7 @@ Name | Type | Description | Notes **LinkNotify** | Pointer to [**LinkNotifyEntity**](LinkNotifyEntity.md) | | [optional] **LinkAutoReminders** | Pointer to **bool** | If \"true\", reminders will be sent to customers for collecting payments. | [optional] **LinkNotes** | Pointer to **map[string]string** | Key-value pair that can be used to store additional information about the entity. Maximum 5 key-value pairs | [optional] -**LinkMeta** | Pointer to [**LinkMetaEntity**](LinkMetaEntity.md) | | [optional] +**LinkMeta** | Pointer to [**LinkMetaResponseEntity**](LinkMetaResponseEntity.md) | | [optional] ## Methods @@ -288,20 +288,20 @@ HasLinkNotes returns a boolean if a field has been set. ### GetLinkMeta -`func (o *CreateLinkRequest) GetLinkMeta() LinkMetaEntity` +`func (o *CreateLinkRequest) GetLinkMeta() LinkMetaResponseEntity` GetLinkMeta returns the LinkMeta field if non-nil, zero value otherwise. ### GetLinkMetaOk -`func (o *CreateLinkRequest) GetLinkMetaOk() (*LinkMetaEntity, bool)` +`func (o *CreateLinkRequest) GetLinkMetaOk() (*LinkMetaResponseEntity, bool)` GetLinkMetaOk returns a tuple with the LinkMeta field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLinkMeta -`func (o *CreateLinkRequest) SetLinkMeta(v LinkMetaEntity)` +`func (o *CreateLinkRequest) SetLinkMeta(v LinkMetaResponseEntity)` SetLinkMeta sets LinkMeta field to given value. diff --git a/docs/CreateTerminalTransactionRequest.md b/docs/CreateTerminalTransactionRequest.md index fa6f604..9611587 100644 --- a/docs/CreateTerminalTransactionRequest.md +++ b/docs/CreateTerminalTransactionRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**CfOrderId** | **int64** | cashfree order ID that was returned while creating an order. | -**CfTerminalId** | Pointer to **int64** | cashfree terminal id. this is a required parameter when you do not provide the terminal phone number. | [optional] +**CfOrderId** | **string** | cashfree order ID that was returned while creating an order. | +**CfTerminalId** | Pointer to **string** | cashfree terminal id. this is a required parameter when you do not provide the terminal phone number. | [optional] **PaymentMethod** | **string** | mention the payment method used for the transaction. possible values - QR_CODE, LINK. | **TerminalPhoneNo** | Pointer to **string** | agent mobile number assigned to the terminal. this is a required parameter when you do not provide the cf_terminal_id. | [optional] @@ -13,7 +13,7 @@ Name | Type | Description | Notes ### NewCreateTerminalTransactionRequest -`func NewCreateTerminalTransactionRequest(cfOrderId int64, paymentMethod string, ) *CreateTerminalTransactionRequest` +`func NewCreateTerminalTransactionRequest(cfOrderId string, paymentMethod string, ) *CreateTerminalTransactionRequest` NewCreateTerminalTransactionRequest instantiates a new CreateTerminalTransactionRequest object This constructor will assign default values to properties that have it defined, @@ -30,40 +30,40 @@ but it doesn't guarantee that properties required by API are set ### GetCfOrderId -`func (o *CreateTerminalTransactionRequest) GetCfOrderId() int64` +`func (o *CreateTerminalTransactionRequest) GetCfOrderId() string` GetCfOrderId returns the CfOrderId field if non-nil, zero value otherwise. ### GetCfOrderIdOk -`func (o *CreateTerminalTransactionRequest) GetCfOrderIdOk() (*int64, bool)` +`func (o *CreateTerminalTransactionRequest) GetCfOrderIdOk() (*string, bool)` GetCfOrderIdOk returns a tuple with the CfOrderId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCfOrderId -`func (o *CreateTerminalTransactionRequest) SetCfOrderId(v int64)` +`func (o *CreateTerminalTransactionRequest) SetCfOrderId(v string)` SetCfOrderId sets CfOrderId field to given value. ### GetCfTerminalId -`func (o *CreateTerminalTransactionRequest) GetCfTerminalId() int64` +`func (o *CreateTerminalTransactionRequest) GetCfTerminalId() string` GetCfTerminalId returns the CfTerminalId field if non-nil, zero value otherwise. ### GetCfTerminalIdOk -`func (o *CreateTerminalTransactionRequest) GetCfTerminalIdOk() (*int64, bool)` +`func (o *CreateTerminalTransactionRequest) GetCfTerminalIdOk() (*string, bool)` GetCfTerminalIdOk returns a tuple with the CfTerminalId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCfTerminalId -`func (o *CreateTerminalTransactionRequest) SetCfTerminalId(v int64)` +`func (o *CreateTerminalTransactionRequest) SetCfTerminalId(v string)` SetCfTerminalId sets CfTerminalId field to given value. diff --git a/docs/CustomerDetails.md b/docs/CustomerDetails.md index ea9ecbe..521d2f0 100644 --- a/docs/CustomerDetails.md +++ b/docs/CustomerDetails.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **CustomerBankAccountNumber** | Pointer to **string** | Customer bank account. Required if you want to do a bank account check (TPV) | [optional] **CustomerBankIfsc** | Pointer to **string** | Customer bank IFSC. Required if you want to do a bank account check (TPV) | [optional] **CustomerBankCode** | Pointer to **float32** | Customer bank code. Required for net banking payments, if you want to do a bank account check (TPV) | [optional] +**CustomerUid** | Pointer to **string** | Customer identifier at Cashfree. You will get this when you create/get customer | [optional] ## Methods @@ -196,6 +197,31 @@ SetCustomerBankCode sets CustomerBankCode field to given value. HasCustomerBankCode returns a boolean if a field has been set. +### GetCustomerUid + +`func (o *CustomerDetails) GetCustomerUid() string` + +GetCustomerUid returns the CustomerUid field if non-nil, zero value otherwise. + +### GetCustomerUidOk + +`func (o *CustomerDetails) GetCustomerUidOk() (*string, bool)` + +GetCustomerUidOk returns a tuple with the CustomerUid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomerUid + +`func (o *CustomerDetails) SetCustomerUid(v string)` + +SetCustomerUid sets CustomerUid field to given value. + +### HasCustomerUid + +`func (o *CustomerDetails) HasCustomerUid() bool` + +HasCustomerUid returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/EligibilityAPI.md b/docs/EligibilityAPI.md index 5077692..2174091 100644 --- a/docs/EligibilityAPI.md +++ b/docs/EligibilityAPI.md @@ -4,10 +4,10 @@ All URIs are relative to *https://sandbox.cashfree.com/pg* Method | HTTP request | Description ------------- | ------------- | ------------- -[**PGEligibilityFetchCardlessEMI**](EligibilityAPI.md#PGEligibilityFetchCardlessEMI) | **Post** /eligibility/cardlessemi | Get Eligible Cardless EMI -[**PGEligibilityFetchOffers**](EligibilityAPI.md#PGEligibilityFetchOffers) | **Post** /eligibility/offers | Get Eligible Offers -[**PGEligibilityFetchPaylater**](EligibilityAPI.md#PGEligibilityFetchPaylater) | **Post** /eligibility/paylater | Get Eligible Paylater -[**PGEligibilityFetchPaymentMethods**](EligibilityAPI.md#PGEligibilityFetchPaymentMethods) | **Post** /eligibility/payment_methods | Get Eligible Payment Methods +[**PGEligibilityFetchCardlessEMI**](EligibilityAPI.md#PGEligibilityFetchCardlessEMI) | **Post** /eligibility/cardlessemi | Get Eligible Cardless EMI Payment Methods for a customer on an order +[**PGEligibilityFetchOffers**](EligibilityAPI.md#PGEligibilityFetchOffers) | **Post** /eligibility/offers | Get Eligible Offers for an Order +[**PGEligibilityFetchPaylater**](EligibilityAPI.md#PGEligibilityFetchPaylater) | **Post** /eligibility/paylater | Get Eligible Paylater for a customer on an order +[**PGEligibilityFetchPaymentMethods**](EligibilityAPI.md#PGEligibilityFetchPaymentMethods) | **Post** /eligibility/payment_methods | Get eligible Payment Methods @@ -15,7 +15,7 @@ Method | HTTP request | Description > []EligibilityCardlessEMIEntity PGEligibilityFetchCardlessEMI(ctx).XApiVersion(xApiVersion).EligibilityFetchCardlessEMIRequest(eligibilityFetchCardlessEMIRequest).XRequestId(xRequestId).XIdempotencyKey(xIdempotencyKey).Execute() -Get Eligible Cardless EMI +Get Eligible Cardless EMI Payment Methods for a customer on an order @@ -28,7 +28,7 @@ import ( "context" "fmt" "os" - cashfree "github.com/cashfree/cashfree-pg/v3" + cashfree "github.com/cashfree/cashfree-pg/v4" ) func main() { @@ -39,7 +39,7 @@ func main() { cashfree.XClientSecret = &clientSecret cashfree.XEnvironment = cashfree.SANDBOX - xApiVersion := "2022-09-01" + xApiVersion := "2023-08-01" eligibilityFetchCardlessEMIRequest := *cashfree.NewEligibilityFetchCardlessEMIRequest(*cashfree.NewCardlessEMIQueries()) xRequestId := "4dfb9780-46fe-11ee-be56-0242ac120002" xIdempotencyKey := "47bf8872-46fe-11ee-be56-0242ac120002" @@ -65,10 +65,10 @@ Other parameters are passed through a pointer to a apiPGEligibilityFetchCardless Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] + **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] **eligibilityFetchCardlessEMIRequest** | [**EligibilityFetchCardlessEMIRequest**](EligibilityFetchCardlessEMIRequest.md) | Request Body to get eligible cardless emi options for a customer and order | **xRequestId** | **string** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | - **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | + **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | ### Return type @@ -92,7 +92,7 @@ Name | Type | Description | Notes > []EligibilityOfferEntity PGEligibilityFetchOffers(ctx).XApiVersion(xApiVersion).EligibilityFetchOffersRequest(eligibilityFetchOffersRequest).XRequestId(xRequestId).XIdempotencyKey(xIdempotencyKey).Execute() -Get Eligible Offers +Get Eligible Offers for an Order @@ -105,7 +105,7 @@ import ( "context" "fmt" "os" - cashfree "github.com/cashfree/cashfree-pg/v3" + cashfree "github.com/cashfree/cashfree-pg/v4" ) func main() { @@ -116,7 +116,7 @@ func main() { cashfree.XClientSecret = &clientSecret cashfree.XEnvironment = cashfree.SANDBOX - xApiVersion := "2022-09-01" + xApiVersion := "2023-08-01" eligibilityFetchOffersRequest := *cashfree.NewEligibilityFetchOffersRequest(*cashfree.NewOfferQueries()) xRequestId := "4dfb9780-46fe-11ee-be56-0242ac120002" xIdempotencyKey := "47bf8872-46fe-11ee-be56-0242ac120002" @@ -142,10 +142,10 @@ Other parameters are passed through a pointer to a apiPGEligibilityFetchOffersRe Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] + **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] **eligibilityFetchOffersRequest** | [**EligibilityFetchOffersRequest**](EligibilityFetchOffersRequest.md) | Request Body to get eligible offers for a customer and order | **xRequestId** | **string** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | - **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | + **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | ### Return type @@ -169,7 +169,7 @@ Name | Type | Description | Notes > []EligibilityPaylaterEntity PGEligibilityFetchPaylater(ctx).XApiVersion(xApiVersion).EligibilityFetchPaylaterRequest(eligibilityFetchPaylaterRequest).XRequestId(xRequestId).XIdempotencyKey(xIdempotencyKey).Execute() -Get Eligible Paylater +Get Eligible Paylater for a customer on an order @@ -182,7 +182,7 @@ import ( "context" "fmt" "os" - cashfree "github.com/cashfree/cashfree-pg/v3" + cashfree "github.com/cashfree/cashfree-pg/v4" ) func main() { @@ -193,7 +193,7 @@ func main() { cashfree.XClientSecret = &clientSecret cashfree.XEnvironment = cashfree.SANDBOX - xApiVersion := "2022-09-01" + xApiVersion := "2023-08-01" eligibilityFetchPaylaterRequest := *cashfree.NewEligibilityFetchPaylaterRequest(*cashfree.NewCardlessEMIQueries()) xRequestId := "4dfb9780-46fe-11ee-be56-0242ac120002" xIdempotencyKey := "47bf8872-46fe-11ee-be56-0242ac120002" @@ -219,10 +219,10 @@ Other parameters are passed through a pointer to a apiPGEligibilityFetchPaylater Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] + **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] **eligibilityFetchPaylaterRequest** | [**EligibilityFetchPaylaterRequest**](EligibilityFetchPaylaterRequest.md) | Request Body to get eligible paylater options for a customer and order | **xRequestId** | **string** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | - **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | + **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | ### Return type @@ -246,7 +246,7 @@ Name | Type | Description | Notes > []EligibilityPaymentMethodsEntity PGEligibilityFetchPaymentMethods(ctx).XApiVersion(xApiVersion).EligibilityFetchPaymentMethodsRequest(eligibilityFetchPaymentMethodsRequest).XRequestId(xRequestId).XIdempotencyKey(xIdempotencyKey).Execute() -Get Eligible Payment Methods +Get eligible Payment Methods @@ -259,7 +259,7 @@ import ( "context" "fmt" "os" - cashfree "github.com/cashfree/cashfree-pg/v3" + cashfree "github.com/cashfree/cashfree-pg/v4" ) func main() { @@ -270,7 +270,7 @@ func main() { cashfree.XClientSecret = &clientSecret cashfree.XEnvironment = cashfree.SANDBOX - xApiVersion := "2022-09-01" + xApiVersion := "2023-08-01" eligibilityFetchPaymentMethodsRequest := *cashfree.NewEligibilityFetchPaymentMethodsRequest(*cashfree.NewPaymentMethodsQueries()) xRequestId := "4dfb9780-46fe-11ee-be56-0242ac120002" xIdempotencyKey := "47bf8872-46fe-11ee-be56-0242ac120002" @@ -296,10 +296,10 @@ Other parameters are passed through a pointer to a apiPGEligibilityFetchPaymentM Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] + **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] **eligibilityFetchPaymentMethodsRequest** | [**EligibilityFetchPaymentMethodsRequest**](EligibilityFetchPaymentMethodsRequest.md) | Request Body to get eligible payment methods for an account and order | **xRequestId** | **string** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | - **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | + **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | ### Return type diff --git a/docs/FetchSettlementsRequestFilters.md b/docs/FetchSettlementsRequestFilters.md index b223e75..dc0edfc 100644 --- a/docs/FetchSettlementsRequestFilters.md +++ b/docs/FetchSettlementsRequestFilters.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**CfSettlementIds** | Pointer to **[]int64** | List of settlement IDs for which you want the settlement reconciliation details. | [optional] +**CfSettlementIds** | Pointer to **[]string** | List of settlement IDs for which you want the settlement reconciliation details. | [optional] **SettlementUtrs** | Pointer to **[]string** | List of settlement UTRs for which you want the settlement reconciliation details. | [optional] **StartDate** | Pointer to **string** | Specify the start date from when you want the settlement reconciliation details. | [optional] **EndDate** | Pointer to **string** | Specify the end date till when you want the settlement reconciliation details. | [optional] @@ -30,20 +30,20 @@ but it doesn't guarantee that properties required by API are set ### GetCfSettlementIds -`func (o *FetchSettlementsRequestFilters) GetCfSettlementIds() []int64` +`func (o *FetchSettlementsRequestFilters) GetCfSettlementIds() []string` GetCfSettlementIds returns the CfSettlementIds field if non-nil, zero value otherwise. ### GetCfSettlementIdsOk -`func (o *FetchSettlementsRequestFilters) GetCfSettlementIdsOk() (*[]int64, bool)` +`func (o *FetchSettlementsRequestFilters) GetCfSettlementIdsOk() (*[]string, bool)` GetCfSettlementIdsOk returns a tuple with the CfSettlementIds field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCfSettlementIds -`func (o *FetchSettlementsRequestFilters) SetCfSettlementIds(v []int64)` +`func (o *FetchSettlementsRequestFilters) SetCfSettlementIds(v []string)` SetCfSettlementIds sets CfSettlementIds field to given value. diff --git a/docs/LinkEntity.md b/docs/LinkEntity.md index 1c0f748..21426d8 100644 --- a/docs/LinkEntity.md +++ b/docs/LinkEntity.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**CfLinkId** | Pointer to **int64** | | [optional] +**CfLinkId** | Pointer to **string** | | [optional] **LinkId** | Pointer to **string** | | [optional] **LinkStatus** | Pointer to **string** | | [optional] **LinkCurrency** | Pointer to **string** | | [optional] @@ -15,7 +15,7 @@ Name | Type | Description | Notes **LinkPurpose** | Pointer to **string** | | [optional] **LinkCreatedAt** | Pointer to **string** | | [optional] **CustomerDetails** | Pointer to [**LinkCustomerDetailsEntity**](LinkCustomerDetailsEntity.md) | | [optional] -**LinkMeta** | Pointer to **map[string]string** | Payment link meta information object. | [optional] +**LinkMeta** | Pointer to [**LinkMetaResponseEntity**](LinkMetaResponseEntity.md) | | [optional] **LinkUrl** | Pointer to **string** | | [optional] **LinkExpiryTime** | Pointer to **string** | | [optional] **LinkNotes** | Pointer to **map[string]string** | Key-value pair that can be used to store additional information about the entity. Maximum 5 key-value pairs | [optional] @@ -43,20 +43,20 @@ but it doesn't guarantee that properties required by API are set ### GetCfLinkId -`func (o *LinkEntity) GetCfLinkId() int64` +`func (o *LinkEntity) GetCfLinkId() string` GetCfLinkId returns the CfLinkId field if non-nil, zero value otherwise. ### GetCfLinkIdOk -`func (o *LinkEntity) GetCfLinkIdOk() (*int64, bool)` +`func (o *LinkEntity) GetCfLinkIdOk() (*string, bool)` GetCfLinkIdOk returns a tuple with the CfLinkId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCfLinkId -`func (o *LinkEntity) SetCfLinkId(v int64)` +`func (o *LinkEntity) SetCfLinkId(v string)` SetCfLinkId sets CfLinkId field to given value. @@ -318,20 +318,20 @@ HasCustomerDetails returns a boolean if a field has been set. ### GetLinkMeta -`func (o *LinkEntity) GetLinkMeta() map[string]string` +`func (o *LinkEntity) GetLinkMeta() LinkMetaResponseEntity` GetLinkMeta returns the LinkMeta field if non-nil, zero value otherwise. ### GetLinkMetaOk -`func (o *LinkEntity) GetLinkMetaOk() (*map[string]string, bool)` +`func (o *LinkEntity) GetLinkMetaOk() (*LinkMetaResponseEntity, bool)` GetLinkMetaOk returns a tuple with the LinkMeta field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLinkMeta -`func (o *LinkEntity) SetLinkMeta(v map[string]string)` +`func (o *LinkEntity) SetLinkMeta(v LinkMetaResponseEntity)` SetLinkMeta sets LinkMeta field to given value. diff --git a/docs/OfferValidations.md b/docs/OfferValidations.md index 569eb9f..a87c342 100644 --- a/docs/OfferValidations.md +++ b/docs/OfferValidations.md @@ -6,13 +6,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **MinAmount** | Pointer to **float32** | Minimum Amount for Offer to be Applicable | [optional] **PaymentMethod** | [**OfferValidationsPaymentMethod**](OfferValidationsPaymentMethod.md) | | -**MaxAllowed** | **float32** | Maximum amount of Offer that can be availed. | ## Methods ### NewOfferValidations -`func NewOfferValidations(paymentMethod OfferValidationsPaymentMethod, maxAllowed float32, ) *OfferValidations` +`func NewOfferValidations(paymentMethod OfferValidationsPaymentMethod, ) *OfferValidations` NewOfferValidations instantiates a new OfferValidations object This constructor will assign default values to properties that have it defined, @@ -72,26 +71,6 @@ and a boolean to check if the value has been set. SetPaymentMethod sets PaymentMethod field to given value. -### GetMaxAllowed - -`func (o *OfferValidations) GetMaxAllowed() float32` - -GetMaxAllowed returns the MaxAllowed field if non-nil, zero value otherwise. - -### GetMaxAllowedOk - -`func (o *OfferValidations) GetMaxAllowedOk() (*float32, bool)` - -GetMaxAllowedOk returns a tuple with the MaxAllowed field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxAllowed - -`func (o *OfferValidations) SetMaxAllowed(v float32)` - -SetMaxAllowed sets MaxAllowed field to given value. - - [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/OffersAPI.md b/docs/OffersAPI.md index f107646..9daef47 100644 --- a/docs/OffersAPI.md +++ b/docs/OffersAPI.md @@ -26,7 +26,7 @@ import ( "context" "fmt" "os" - cashfree "github.com/cashfree/cashfree-pg/v3" + cashfree "github.com/cashfree/cashfree-pg/v4" ) func main() { @@ -37,8 +37,8 @@ func main() { cashfree.XClientSecret = &clientSecret cashfree.XEnvironment = cashfree.SANDBOX - xApiVersion := "2022-09-01" - createOfferRequest := *cashfree.NewCreateOfferRequest(*cashfree.NewOfferMeta("Test Offer", "Lorem ipsum dolor sit amet, consectetur adipiscing elit", "CFTESTOFFER", "2023-03-21T08:09:51Z", "2023-03-29T08:09:51Z"), *cashfree.NewOfferTnc("text", "Lorem ipsum dolor sit amet, consectetur adipiscing elit"), *cashfree.NewOfferDetails("DISCOUNT_AND_CASHBACK"), *cashfree.NewOfferValidations(cashfree.OfferValidations_payment_method{OfferAll: cashfree.NewOfferAll(map[string]interface{}(123))}, float32(10))) + xApiVersion := "2023-08-01" + createOfferRequest := *cashfree.NewCreateOfferRequest(*cashfree.NewOfferMeta("Test Offer", "Lorem ipsum dolor sit amet, consectetur adipiscing elit", "CFTESTOFFER", "2023-03-21T08:09:51Z", "2023-03-29T08:09:51Z"), *cashfree.NewOfferTnc("text", "Lorem ipsum dolor sit amet, consectetur adipiscing elit"), *cashfree.NewOfferDetails("DISCOUNT_AND_CASHBACK"), *cashfree.NewOfferValidations(cashfree.OfferValidations_payment_method{OfferAll: cashfree.NewOfferAll(map[string]interface{}(123))})) xRequestId := "4dfb9780-46fe-11ee-be56-0242ac120002" xIdempotencyKey := "47bf8872-46fe-11ee-be56-0242ac120002" @@ -63,10 +63,10 @@ Other parameters are passed through a pointer to a apiPGCreateOfferRequest struc Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] + **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] **createOfferRequest** | [**CreateOfferRequest**](CreateOfferRequest.md) | Request body to create an offer at Cashfree | **xRequestId** | **string** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | - **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | + **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | ### Return type @@ -103,7 +103,7 @@ import ( "context" "fmt" "os" - cashfree "github.com/cashfree/cashfree-pg/v3" + cashfree "github.com/cashfree/cashfree-pg/v4" ) func main() { @@ -114,7 +114,7 @@ func main() { cashfree.XClientSecret = &clientSecret cashfree.XEnvironment = cashfree.SANDBOX - xApiVersion := "2022-09-01" + xApiVersion := "2023-08-01" offerId := "d2b430fb-1afe-455a-af31-66d00377b29a" xRequestId := "4dfb9780-46fe-11ee-be56-0242ac120002" xIdempotencyKey := "47bf8872-46fe-11ee-be56-0242ac120002" @@ -144,10 +144,10 @@ Other parameters are passed through a pointer to a apiPGFetchOfferRequest struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] + **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] **xRequestId** | **string** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | - **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | + **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | ### Return type diff --git a/docs/OrderAuthenticateEntity.md b/docs/OrderAuthenticateEntity.md index e122267..59dce70 100644 --- a/docs/OrderAuthenticateEntity.md +++ b/docs/OrderAuthenticateEntity.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**CfPaymentId** | Pointer to **float32** | The payment id for which this request was sent | [optional] +**CfPaymentId** | Pointer to **string** | The payment id for which this request was sent | [optional] **Action** | Pointer to **string** | The action that was invoked for this request. | [optional] **AuthenticateStatus** | Pointer to **string** | Status of the is action. Will be either failed or successful. If the action is successful, you should still call the authorization status to verify the final payment status. | [optional] **PaymentMessage** | Pointer to **string** | Human readable message which describes the status in more detail | [optional] @@ -30,20 +30,20 @@ but it doesn't guarantee that properties required by API are set ### GetCfPaymentId -`func (o *OrderAuthenticateEntity) GetCfPaymentId() float32` +`func (o *OrderAuthenticateEntity) GetCfPaymentId() string` GetCfPaymentId returns the CfPaymentId field if non-nil, zero value otherwise. ### GetCfPaymentIdOk -`func (o *OrderAuthenticateEntity) GetCfPaymentIdOk() (*float32, bool)` +`func (o *OrderAuthenticateEntity) GetCfPaymentIdOk() (*string, bool)` GetCfPaymentIdOk returns a tuple with the CfPaymentId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCfPaymentId -`func (o *OrderAuthenticateEntity) SetCfPaymentId(v float32)` +`func (o *OrderAuthenticateEntity) SetCfPaymentId(v string)` SetCfPaymentId sets CfPaymentId field to given value. diff --git a/docs/OrderEntity.md b/docs/OrderEntity.md index 022d807..9fe3b5e 100644 --- a/docs/OrderEntity.md +++ b/docs/OrderEntity.md @@ -4,12 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**CfOrderId** | Pointer to **int64** | unique id generated by cashfree for your order | [optional] +**CfOrderId** | Pointer to **string** | unique id generated by cashfree for your order | [optional] **OrderId** | Pointer to **string** | order_id sent during the api request | [optional] **Entity** | Pointer to **string** | Type of the entity. | [optional] **OrderCurrency** | Pointer to **string** | Currency of the order. Example INR | [optional] **OrderAmount** | Pointer to **float32** | | [optional] -**OrderStatus** | Pointer to **string** | 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. | [optional] +**OrderStatus** | Pointer to **string** | 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 | [optional] **PaymentSessionId** | Pointer to **string** | | [optional] **OrderExpiryTime** | Pointer to **time.Time** | | [optional] **OrderNote** | Pointer to **string** | Additional note for order | [optional] @@ -17,9 +17,6 @@ Name | Type | Description | Notes **OrderSplits** | Pointer to [**[]VendorSplit**](VendorSplit.md) | | [optional] **CustomerDetails** | Pointer to [**CustomerDetails**](CustomerDetails.md) | | [optional] **OrderMeta** | Pointer to [**OrderMeta**](OrderMeta.md) | | [optional] -**Payments** | Pointer to [**PaymentURLObject**](PaymentURLObject.md) | | [optional] -**Settlements** | Pointer to [**SettlementURLObject**](SettlementURLObject.md) | | [optional] -**Refunds** | Pointer to [**RefundURLObject**](RefundURLObject.md) | | [optional] **OrderTags** | Pointer to **map[string]string** | Custom Tags in thr form of {\"key\":\"value\"} which can be passed for an order. A maximum of 10 tags can be added | [optional] ## Methods @@ -43,20 +40,20 @@ but it doesn't guarantee that properties required by API are set ### GetCfOrderId -`func (o *OrderEntity) GetCfOrderId() int64` +`func (o *OrderEntity) GetCfOrderId() string` GetCfOrderId returns the CfOrderId field if non-nil, zero value otherwise. ### GetCfOrderIdOk -`func (o *OrderEntity) GetCfOrderIdOk() (*int64, bool)` +`func (o *OrderEntity) GetCfOrderIdOk() (*string, bool)` GetCfOrderIdOk returns a tuple with the CfOrderId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCfOrderId -`func (o *OrderEntity) SetCfOrderId(v int64)` +`func (o *OrderEntity) SetCfOrderId(v string)` SetCfOrderId sets CfOrderId field to given value. @@ -366,81 +363,6 @@ SetOrderMeta sets OrderMeta field to given value. HasOrderMeta returns a boolean if a field has been set. -### GetPayments - -`func (o *OrderEntity) GetPayments() PaymentURLObject` - -GetPayments returns the Payments field if non-nil, zero value otherwise. - -### GetPaymentsOk - -`func (o *OrderEntity) GetPaymentsOk() (*PaymentURLObject, bool)` - -GetPaymentsOk returns a tuple with the Payments field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPayments - -`func (o *OrderEntity) SetPayments(v PaymentURLObject)` - -SetPayments sets Payments field to given value. - -### HasPayments - -`func (o *OrderEntity) HasPayments() bool` - -HasPayments returns a boolean if a field has been set. - -### GetSettlements - -`func (o *OrderEntity) GetSettlements() SettlementURLObject` - -GetSettlements returns the Settlements field if non-nil, zero value otherwise. - -### GetSettlementsOk - -`func (o *OrderEntity) GetSettlementsOk() (*SettlementURLObject, bool)` - -GetSettlementsOk returns a tuple with the Settlements field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSettlements - -`func (o *OrderEntity) SetSettlements(v SettlementURLObject)` - -SetSettlements sets Settlements field to given value. - -### HasSettlements - -`func (o *OrderEntity) HasSettlements() bool` - -HasSettlements returns a boolean if a field has been set. - -### GetRefunds - -`func (o *OrderEntity) GetRefunds() RefundURLObject` - -GetRefunds returns the Refunds field if non-nil, zero value otherwise. - -### GetRefundsOk - -`func (o *OrderEntity) GetRefundsOk() (*RefundURLObject, bool)` - -GetRefundsOk returns a tuple with the Refunds field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRefunds - -`func (o *OrderEntity) SetRefunds(v RefundURLObject)` - -SetRefunds sets Refunds field to given value. - -### HasRefunds - -`func (o *OrderEntity) HasRefunds() bool` - -HasRefunds returns a boolean if a field has been set. - ### GetOrderTags `func (o *OrderEntity) GetOrderTags() map[string]string` diff --git a/docs/OrderMeta.md b/docs/OrderMeta.md index 2ede96c..858938e 100644 --- a/docs/OrderMeta.md +++ b/docs/OrderMeta.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ReturnUrl** | Pointer to **string** | 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. | [optional] +**ReturnUrl** | Pointer to **string** | 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 | [optional] **NotifyUrl** | Pointer to **string** | Notification URL for server-server communication. Useful when user's connection drops while re-directing. NotifyUrl should be an https URL. Maximum length: 250. | [optional] **PaymentMethods** | Pointer to **interface{}** | Allowed payment modes for this order. Pass comma-separated values among following options - \"cc\", \"dc\", \"ccc\", \"ppc\",\"nb\",\"upi\",\"paypal\",\"app\",\"paylater\",\"cardlessemi\",\"dcemi\",\"ccemi\",\"banktransfer\". Leave it blank to show all available payment methods | [optional] diff --git a/docs/OrdersAPI.md b/docs/OrdersAPI.md index afdb242..1ac0032 100644 --- a/docs/OrdersAPI.md +++ b/docs/OrdersAPI.md @@ -6,6 +6,7 @@ Method | HTTP request | Description ------------- | ------------- | ------------- [**PGCreateOrder**](OrdersAPI.md#PGCreateOrder) | **Post** /orders | Create Order [**PGFetchOrder**](OrdersAPI.md#PGFetchOrder) | **Get** /orders/{order_id} | Get Order +[**PGTerminateOrder**](OrdersAPI.md#PGTerminateOrder) | **Patch** /orders/{order_id} | Terminate Order @@ -26,7 +27,7 @@ import ( "context" "fmt" "os" - cashfree "github.com/cashfree/cashfree-pg/v3" + cashfree "github.com/cashfree/cashfree-pg/v4" ) func main() { @@ -37,7 +38,7 @@ func main() { cashfree.XClientSecret = &clientSecret cashfree.XEnvironment = cashfree.SANDBOX - xApiVersion := "2022-09-01" + xApiVersion := "2023-08-01" createOrderRequest := *cashfree.NewCreateOrderRequest(float64(10.15), "INR", *cashfree.NewCustomerDetails("CustomerId_example", "CustomerPhone_example")) xRequestId := "4dfb9780-46fe-11ee-be56-0242ac120002" xIdempotencyKey := "47bf8872-46fe-11ee-be56-0242ac120002" @@ -63,10 +64,10 @@ Other parameters are passed through a pointer to a apiPGCreateOrderRequest struc Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] + **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] **createOrderRequest** | [**CreateOrderRequest**](CreateOrderRequest.md) | Request body to create an order at cashfree | **xRequestId** | **string** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | - **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | + **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | ### Return type @@ -103,7 +104,7 @@ import ( "context" "fmt" "os" - cashfree "github.com/cashfree/cashfree-pg/v3" + cashfree "github.com/cashfree/cashfree-pg/v4" ) func main() { @@ -114,7 +115,7 @@ func main() { cashfree.XClientSecret = &clientSecret cashfree.XEnvironment = cashfree.SANDBOX - xApiVersion := "2022-09-01" + xApiVersion := "2023-08-01" orderId := "your-order-id" xRequestId := "4dfb9780-46fe-11ee-be56-0242ac120002" xIdempotencyKey := "47bf8872-46fe-11ee-be56-0242ac120002" @@ -144,10 +145,10 @@ Other parameters are passed through a pointer to a apiPGFetchOrderRequest struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] + **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] **xRequestId** | **string** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | - **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | + **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | ### Return type @@ -166,3 +167,86 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +## PGTerminateOrder + +> OrderEntity PGTerminateOrder(ctx, orderId).XApiVersion(xApiVersion).TerminateOrderRequest(terminateOrderRequest).XRequestId(xRequestId).XIdempotencyKey(xIdempotencyKey).Execute() + +Terminate Order + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + cashfree "github.com/cashfree/cashfree-pg/v4" +) + +func main() { + + clientId := "" + clientSecret := "" + cashfree.XClientId = &clientId + cashfree.XClientSecret = &clientSecret + cashfree.XEnvironment = cashfree.SANDBOX + + xApiVersion := "2023-08-01" + orderId := "your-order-id" + terminateOrderRequest := *cashfree.NewTerminateOrderRequest("OrderStatus_example") + xRequestId := "4dfb9780-46fe-11ee-be56-0242ac120002" + xIdempotencyKey := "47bf8872-46fe-11ee-be56-0242ac120002" + + resp, r, err := cashfree.PGTerminateOrder(&xApiVersion, &orderId, &terminateOrderRequest, &xRequestId, &xIdempotencyKey, nil) + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `cashfree.PGTerminateOrder``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PGTerminateOrder`: OrderEntity + fmt.Fprintf(os.Stdout, "Response from `cashfree.PGTerminateOrder`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderId** | **string** | The id which uniquely identifies your order | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPGTerminateOrderRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] + + **terminateOrderRequest** | [**TerminateOrderRequest**](TerminateOrderRequest.md) | Request body to terminate an order at cashfree | + **xRequestId** | **string** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | + **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | + +### Return type + +[**OrderEntity**](OrderEntity.md) + +### Authorization + +[XPartnerAPIKey](../README.md#XPartnerAPIKey), [XClientSecret](../README.md#XClientSecret), [XPartnerMerchantID](../README.md#XPartnerMerchantID), [XClientID](../README.md#XClientID), [XClientSignatureHeader](../README.md#XClientSignatureHeader) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/docs/PGReconciliationAPI.md b/docs/PGReconciliationAPI.md index c24eb44..94b24fd 100644 --- a/docs/PGReconciliationAPI.md +++ b/docs/PGReconciliationAPI.md @@ -25,7 +25,7 @@ import ( "context" "fmt" "os" - cashfree "github.com/cashfree/cashfree-pg/v3" + cashfree "github.com/cashfree/cashfree-pg/v4" ) func main() { @@ -36,7 +36,7 @@ func main() { cashfree.XClientSecret = &clientSecret cashfree.XEnvironment = cashfree.SANDBOX - xApiVersion := "2022-09-01" + xApiVersion := "2023-08-01" fetchReconRequest := *cashfree.NewFetchReconRequest(*cashfree.NewFetchReconRequestPagination(int32(123)), *cashfree.NewFetchReconRequestFilters("StartDate_example", "EndDate_example")) contentType := "application/json" xRequestId := "4dfb9780-46fe-11ee-be56-0242ac120002" @@ -64,11 +64,11 @@ Other parameters are passed through a pointer to a apiPGFetchReconRequest struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] + **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] **fetchReconRequest** | [**FetchReconRequest**](FetchReconRequest.md) | Request Body for the reconciliation | **contentType** | **string** | application/json | **xRequestId** | **string** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | - **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | + **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | **accept** | **string** | application/json | ### Return type diff --git a/docs/PayOrderEntity.md b/docs/PayOrderEntity.md index 3668734..179c110 100644 --- a/docs/PayOrderEntity.md +++ b/docs/PayOrderEntity.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **PaymentAmount** | Pointer to **float32** | total amount payable | [optional] -**CfPaymentId** | Pointer to **int64** | Payment identifier created by Cashfree | [optional] +**CfPaymentId** | Pointer to **string** | Payment identifier created by Cashfree | [optional] **PaymentMethod** | Pointer to **string** | One of [\"upi\", \"netbanking\", \"card\", \"app\", \"cardless_emi\", \"paylater\", \"banktransfer\"] | [optional] **Channel** | Pointer to **string** | One of [\"link\", \"collect\", \"qrcode\"]. In an older version we used to support different channels like 'gpay', 'phonepe' etc. However, we now support only the following channels - link, collect and qrcode. To process payments using gpay, you will have to provide channel as 'link' and provider as 'gpay' | [optional] **Action** | Pointer to **string** | One of [\"link\", \"custom\", \"form\"] | [optional] @@ -57,20 +57,20 @@ HasPaymentAmount returns a boolean if a field has been set. ### GetCfPaymentId -`func (o *PayOrderEntity) GetCfPaymentId() int64` +`func (o *PayOrderEntity) GetCfPaymentId() string` GetCfPaymentId returns the CfPaymentId field if non-nil, zero value otherwise. ### GetCfPaymentIdOk -`func (o *PayOrderEntity) GetCfPaymentIdOk() (*int64, bool)` +`func (o *PayOrderEntity) GetCfPaymentIdOk() (*string, bool)` GetCfPaymentIdOk returns a tuple with the CfPaymentId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCfPaymentId -`func (o *PayOrderEntity) SetCfPaymentId(v int64)` +`func (o *PayOrderEntity) SetCfPaymentId(v string)` SetCfPaymentId sets CfPaymentId field to given value. diff --git a/docs/PaymentEntity.md b/docs/PaymentEntity.md index 3bbbb50..6772aef 100644 --- a/docs/PaymentEntity.md +++ b/docs/PaymentEntity.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**CfPaymentId** | Pointer to **int64** | | [optional] +**CfPaymentId** | Pointer to **string** | | [optional] **OrderId** | Pointer to **string** | | [optional] **Entity** | Pointer to **string** | | [optional] **ErrorDetails** | Pointer to [**ErrorDetailsInPaymentsEntity**](ErrorDetailsInPaymentsEntity.md) | | [optional] @@ -43,20 +43,20 @@ but it doesn't guarantee that properties required by API are set ### GetCfPaymentId -`func (o *PaymentEntity) GetCfPaymentId() int64` +`func (o *PaymentEntity) GetCfPaymentId() string` GetCfPaymentId returns the CfPaymentId field if non-nil, zero value otherwise. ### GetCfPaymentIdOk -`func (o *PaymentEntity) GetCfPaymentIdOk() (*int64, bool)` +`func (o *PaymentEntity) GetCfPaymentIdOk() (*string, bool)` GetCfPaymentIdOk returns a tuple with the CfPaymentId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCfPaymentId -`func (o *PaymentEntity) SetCfPaymentId(v int64)` +`func (o *PaymentEntity) SetCfPaymentId(v string)` SetCfPaymentId sets CfPaymentId field to given value. diff --git a/docs/PaymentLinkOrderEntity.md b/docs/PaymentLinkOrderEntity.md index a5e049a..2ee016f 100644 --- a/docs/PaymentLinkOrderEntity.md +++ b/docs/PaymentLinkOrderEntity.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**CfOrderId** | Pointer to **int64** | unique id generated by cashfree for your order | [optional] +**CfOrderId** | Pointer to **string** | unique id generated by cashfree for your order | [optional] **LinkId** | Pointer to **string** | link id of the order | [optional] **OrderId** | Pointer to **string** | order_id sent during the api request | [optional] **Entity** | Pointer to **string** | Type of the entity. | [optional] @@ -18,9 +18,6 @@ Name | Type | Description | Notes **OrderSplits** | Pointer to [**[]VendorSplit**](VendorSplit.md) | | [optional] **CustomerDetails** | Pointer to [**PaymentLinkCustomerDetails**](PaymentLinkCustomerDetails.md) | | [optional] **OrderMeta** | Pointer to [**OrderMeta**](OrderMeta.md) | | [optional] -**Payments** | Pointer to [**PaymentURLObject**](PaymentURLObject.md) | | [optional] -**Settlements** | Pointer to [**SettlementURLObject**](SettlementURLObject.md) | | [optional] -**Refunds** | Pointer to [**RefundURLObject**](RefundURLObject.md) | | [optional] **OrderTags** | Pointer to **map[string]string** | Custom Tags in thr form of {\"key\":\"value\"} which can be passed for an order. A maximum of 10 tags can be added | [optional] ## Methods @@ -44,20 +41,20 @@ but it doesn't guarantee that properties required by API are set ### GetCfOrderId -`func (o *PaymentLinkOrderEntity) GetCfOrderId() int64` +`func (o *PaymentLinkOrderEntity) GetCfOrderId() string` GetCfOrderId returns the CfOrderId field if non-nil, zero value otherwise. ### GetCfOrderIdOk -`func (o *PaymentLinkOrderEntity) GetCfOrderIdOk() (*int64, bool)` +`func (o *PaymentLinkOrderEntity) GetCfOrderIdOk() (*string, bool)` GetCfOrderIdOk returns a tuple with the CfOrderId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCfOrderId -`func (o *PaymentLinkOrderEntity) SetCfOrderId(v int64)` +`func (o *PaymentLinkOrderEntity) SetCfOrderId(v string)` SetCfOrderId sets CfOrderId field to given value. @@ -392,81 +389,6 @@ SetOrderMeta sets OrderMeta field to given value. HasOrderMeta returns a boolean if a field has been set. -### GetPayments - -`func (o *PaymentLinkOrderEntity) GetPayments() PaymentURLObject` - -GetPayments returns the Payments field if non-nil, zero value otherwise. - -### GetPaymentsOk - -`func (o *PaymentLinkOrderEntity) GetPaymentsOk() (*PaymentURLObject, bool)` - -GetPaymentsOk returns a tuple with the Payments field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPayments - -`func (o *PaymentLinkOrderEntity) SetPayments(v PaymentURLObject)` - -SetPayments sets Payments field to given value. - -### HasPayments - -`func (o *PaymentLinkOrderEntity) HasPayments() bool` - -HasPayments returns a boolean if a field has been set. - -### GetSettlements - -`func (o *PaymentLinkOrderEntity) GetSettlements() SettlementURLObject` - -GetSettlements returns the Settlements field if non-nil, zero value otherwise. - -### GetSettlementsOk - -`func (o *PaymentLinkOrderEntity) GetSettlementsOk() (*SettlementURLObject, bool)` - -GetSettlementsOk returns a tuple with the Settlements field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSettlements - -`func (o *PaymentLinkOrderEntity) SetSettlements(v SettlementURLObject)` - -SetSettlements sets Settlements field to given value. - -### HasSettlements - -`func (o *PaymentLinkOrderEntity) HasSettlements() bool` - -HasSettlements returns a boolean if a field has been set. - -### GetRefunds - -`func (o *PaymentLinkOrderEntity) GetRefunds() RefundURLObject` - -GetRefunds returns the Refunds field if non-nil, zero value otherwise. - -### GetRefundsOk - -`func (o *PaymentLinkOrderEntity) GetRefundsOk() (*RefundURLObject, bool)` - -GetRefundsOk returns a tuple with the Refunds field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRefunds - -`func (o *PaymentLinkOrderEntity) SetRefunds(v RefundURLObject)` - -SetRefunds sets Refunds field to given value. - -### HasRefunds - -`func (o *PaymentLinkOrderEntity) HasRefunds() bool` - -HasRefunds returns a boolean if a field has been set. - ### GetOrderTags `func (o *PaymentLinkOrderEntity) GetOrderTags() map[string]string` diff --git a/docs/PaymentLinksAPI.md b/docs/PaymentLinksAPI.md index 454d879..6d2d537 100644 --- a/docs/PaymentLinksAPI.md +++ b/docs/PaymentLinksAPI.md @@ -28,7 +28,7 @@ import ( "context" "fmt" "os" - cashfree "github.com/cashfree/cashfree-pg/v3" + cashfree "github.com/cashfree/cashfree-pg/v4" ) func main() { @@ -39,7 +39,7 @@ func main() { cashfree.XClientSecret = &clientSecret cashfree.XEnvironment = cashfree.SANDBOX - xApiVersion := "2022-09-01" + xApiVersion := "2023-08-01" linkId := "your-link-id" xRequestId := "4dfb9780-46fe-11ee-be56-0242ac120002" xIdempotencyKey := "47bf8872-46fe-11ee-be56-0242ac120002" @@ -69,10 +69,10 @@ Other parameters are passed through a pointer to a apiPGCancelLinkRequest struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] + **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] **xRequestId** | **string** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | - **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | + **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | ### Return type @@ -109,7 +109,7 @@ import ( "context" "fmt" "os" - cashfree "github.com/cashfree/cashfree-pg/v3" + cashfree "github.com/cashfree/cashfree-pg/v4" ) func main() { @@ -120,7 +120,7 @@ func main() { cashfree.XClientSecret = &clientSecret cashfree.XEnvironment = cashfree.SANDBOX - xApiVersion := "2022-09-01" + xApiVersion := "2023-08-01" createLinkRequest := *cashfree.NewCreateLinkRequest("LinkId_example", float64(123), "LinkCurrency_example", "LinkPurpose_example", *cashfree.NewLinkCustomerDetailsEntity("CustomerPhone_example")) xRequestId := "4dfb9780-46fe-11ee-be56-0242ac120002" xIdempotencyKey := "47bf8872-46fe-11ee-be56-0242ac120002" @@ -146,10 +146,10 @@ Other parameters are passed through a pointer to a apiPGCreateLinkRequest struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] + **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] **createLinkRequest** | [**CreateLinkRequest**](CreateLinkRequest.md) | Request Body to Create Payment Links | **xRequestId** | **string** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | - **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | + **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | ### Return type @@ -186,7 +186,7 @@ import ( "context" "fmt" "os" - cashfree "github.com/cashfree/cashfree-pg/v3" + cashfree "github.com/cashfree/cashfree-pg/v4" ) func main() { @@ -197,7 +197,7 @@ func main() { cashfree.XClientSecret = &clientSecret cashfree.XEnvironment = cashfree.SANDBOX - xApiVersion := "2022-09-01" + xApiVersion := "2023-08-01" linkId := "your-link-id" xRequestId := "4dfb9780-46fe-11ee-be56-0242ac120002" xIdempotencyKey := "47bf8872-46fe-11ee-be56-0242ac120002" @@ -227,10 +227,10 @@ Other parameters are passed through a pointer to a apiPGFetchLinkRequest struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] + **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] **xRequestId** | **string** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | - **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | + **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | ### Return type @@ -267,7 +267,7 @@ import ( "context" "fmt" "os" - cashfree "github.com/cashfree/cashfree-pg/v3" + cashfree "github.com/cashfree/cashfree-pg/v4" ) func main() { @@ -278,7 +278,7 @@ func main() { cashfree.XClientSecret = &clientSecret cashfree.XEnvironment = cashfree.SANDBOX - xApiVersion := "2022-09-01" + xApiVersion := "2023-08-01" linkId := "your-link-id" xRequestId := "4dfb9780-46fe-11ee-be56-0242ac120002" xIdempotencyKey := "47bf8872-46fe-11ee-be56-0242ac120002" @@ -308,10 +308,10 @@ Other parameters are passed through a pointer to a apiPGLinkFetchOrdersRequest s Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] + **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] **xRequestId** | **string** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | - **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | + **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | ### Return type diff --git a/docs/PaymentsAPI.md b/docs/PaymentsAPI.md index eb40cff..ff697db 100644 --- a/docs/PaymentsAPI.md +++ b/docs/PaymentsAPI.md @@ -29,7 +29,7 @@ import ( "context" "fmt" "os" - cashfree "github.com/cashfree/cashfree-pg/v3" + cashfree "github.com/cashfree/cashfree-pg/v4" ) func main() { @@ -40,7 +40,7 @@ func main() { cashfree.XClientSecret = &clientSecret cashfree.XEnvironment = cashfree.SANDBOX - xApiVersion := "2022-09-01" + xApiVersion := "2023-08-01" orderId := "your-order-id" authorizeOrderRequest := *cashfree.NewAuthorizeOrderRequest() xRequestId := "4dfb9780-46fe-11ee-be56-0242ac120002" @@ -71,11 +71,11 @@ Other parameters are passed through a pointer to a apiPGAuthorizeOrderRequest st Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] + **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] **authorizeOrderRequest** | [**AuthorizeOrderRequest**](AuthorizeOrderRequest.md) | Request to Capture or Void Transactions | **xRequestId** | **string** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | - **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | + **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | ### Return type @@ -112,7 +112,7 @@ import ( "context" "fmt" "os" - cashfree "github.com/cashfree/cashfree-pg/v3" + cashfree "github.com/cashfree/cashfree-pg/v4" ) func main() { @@ -123,7 +123,7 @@ func main() { cashfree.XClientSecret = &clientSecret cashfree.XEnvironment = cashfree.SANDBOX - xApiVersion := "2022-09-01" + xApiVersion := "2023-08-01" cfPaymentId := "121224562" orderAuthenticatePaymentRequest := *cashfree.NewOrderAuthenticatePaymentRequest("Otp_example", "Action_example") xRequestId := "4dfb9780-46fe-11ee-be56-0242ac120002" @@ -154,11 +154,11 @@ Other parameters are passed through a pointer to a apiPGOrderAuthenticatePayment Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] + **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] **orderAuthenticatePaymentRequest** | [**OrderAuthenticatePaymentRequest**](OrderAuthenticatePaymentRequest.md) | Request body to submit/resend headless OTP. To use this API make sure you have headless OTP enabled for your account | **xRequestId** | **string** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | - **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | + **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | ### Return type @@ -195,7 +195,7 @@ import ( "context" "fmt" "os" - cashfree "github.com/cashfree/cashfree-pg/v3" + cashfree "github.com/cashfree/cashfree-pg/v4" ) func main() { @@ -206,7 +206,7 @@ func main() { cashfree.XClientSecret = &clientSecret cashfree.XEnvironment = cashfree.SANDBOX - xApiVersion := "2022-09-01" + xApiVersion := "2023-08-01" orderId := "your-order-id" cfPaymentId := "121224562" xRequestId := "4dfb9780-46fe-11ee-be56-0242ac120002" @@ -238,11 +238,11 @@ Other parameters are passed through a pointer to a apiPGOrderFetchPaymentRequest Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] + **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] **xRequestId** | **string** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | - **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | + **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | ### Return type @@ -279,7 +279,7 @@ import ( "context" "fmt" "os" - cashfree "github.com/cashfree/cashfree-pg/v3" + cashfree "github.com/cashfree/cashfree-pg/v4" ) func main() { @@ -290,7 +290,7 @@ func main() { cashfree.XClientSecret = &clientSecret cashfree.XEnvironment = cashfree.SANDBOX - xApiVersion := "2022-09-01" + xApiVersion := "2023-08-01" orderId := "your-order-id" xRequestId := "4dfb9780-46fe-11ee-be56-0242ac120002" xIdempotencyKey := "47bf8872-46fe-11ee-be56-0242ac120002" @@ -320,10 +320,10 @@ Other parameters are passed through a pointer to a apiPGOrderFetchPaymentsReques Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] + **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] **xRequestId** | **string** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | - **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | + **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | ### Return type @@ -360,7 +360,7 @@ import ( "context" "fmt" "os" - cashfree "github.com/cashfree/cashfree-pg/v3" + cashfree "github.com/cashfree/cashfree-pg/v4" ) func main() { @@ -371,7 +371,7 @@ func main() { cashfree.XClientSecret = &clientSecret cashfree.XEnvironment = cashfree.SANDBOX - xApiVersion := "2022-09-01" + xApiVersion := "2023-08-01" payOrderRequest := *cashfree.NewPayOrderRequest("session__CvcEmNKDkmERQrxnx39ibhJ3Ii034pjc8ZVxf3qcgEXCWlgDDlHRgz2XYZCqpajDQSXMMtCusPgOIxYP2LZx0-05p39gC2Vgmq1RAj--gcn", cashfree.PayOrderRequest_payment_method{AppPaymentMethod: cashfree.NewAppPaymentMethod(*cashfree.NewApp("Channel_example", "Provider_example", "Phone_example"))}) xRequestId := "4dfb9780-46fe-11ee-be56-0242ac120002" xIdempotencyKey := "47bf8872-46fe-11ee-be56-0242ac120002" @@ -397,10 +397,10 @@ Other parameters are passed through a pointer to a apiPGPayOrderRequest struct v Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] + **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] **payOrderRequest** | [**PayOrderRequest**](PayOrderRequest.md) | Request body to create a transaction at cashfree using `payment_session_id` | **xRequestId** | **string** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | - **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | + **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | ### Return type diff --git a/docs/ReconEntityDataInner.md b/docs/ReconEntityDataInner.md index c65325b..72f2a71 100644 --- a/docs/ReconEntityDataInner.md +++ b/docs/ReconEntityDataInner.md @@ -23,8 +23,8 @@ Name | Type | Description | Notes **PaymentTime** | Pointer to **string** | Date and time when the payment was initiated. | [optional] **PaymentServiceCharge** | Pointer to **float32** | Service charge applicable for the payment. | [optional] **PaymentServiceTax** | Pointer to **float32** | Service tax applicable on the payment. | [optional] -**CfPaymentId** | Pointer to **int64** | Cashfree Payments unique ID to identify a payment. | [optional] -**CfSettlementId** | Pointer to **int32** | Unique ID to identify the settlement. | [optional] +**CfPaymentId** | Pointer to **string** | Cashfree Payments unique ID to identify a payment. | [optional] +**CfSettlementId** | Pointer to **string** | Unique ID to identify the settlement. | [optional] **SettlementDate** | Pointer to **string** | Date and time when the settlement was processed. | [optional] **SettlementUtr** | Pointer to **string** | Unique transaction reference number of the settlement. | [optional] **SplitServiceCharge** | Pointer to **float32** | Service charge that is applicable for splitting the payment. | [optional] @@ -548,20 +548,20 @@ HasPaymentServiceTax returns a boolean if a field has been set. ### GetCfPaymentId -`func (o *ReconEntityDataInner) GetCfPaymentId() int64` +`func (o *ReconEntityDataInner) GetCfPaymentId() string` GetCfPaymentId returns the CfPaymentId field if non-nil, zero value otherwise. ### GetCfPaymentIdOk -`func (o *ReconEntityDataInner) GetCfPaymentIdOk() (*int64, bool)` +`func (o *ReconEntityDataInner) GetCfPaymentIdOk() (*string, bool)` GetCfPaymentIdOk returns a tuple with the CfPaymentId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCfPaymentId -`func (o *ReconEntityDataInner) SetCfPaymentId(v int64)` +`func (o *ReconEntityDataInner) SetCfPaymentId(v string)` SetCfPaymentId sets CfPaymentId field to given value. @@ -573,20 +573,20 @@ HasCfPaymentId returns a boolean if a field has been set. ### GetCfSettlementId -`func (o *ReconEntityDataInner) GetCfSettlementId() int32` +`func (o *ReconEntityDataInner) GetCfSettlementId() string` GetCfSettlementId returns the CfSettlementId field if non-nil, zero value otherwise. ### GetCfSettlementIdOk -`func (o *ReconEntityDataInner) GetCfSettlementIdOk() (*int32, bool)` +`func (o *ReconEntityDataInner) GetCfSettlementIdOk() (*string, bool)` GetCfSettlementIdOk returns a tuple with the CfSettlementId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCfSettlementId -`func (o *ReconEntityDataInner) SetCfSettlementId(v int32)` +`func (o *ReconEntityDataInner) SetCfSettlementId(v string)` SetCfSettlementId sets CfSettlementId field to given value. diff --git a/docs/RefundEntity.md b/docs/RefundEntity.md index b78ce5f..7b328e1 100644 --- a/docs/RefundEntity.md +++ b/docs/RefundEntity.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**CfPaymentId** | Pointer to **int64** | Cashfree Payments ID of the payment for which refund is initiated | [optional] +**CfPaymentId** | Pointer to **string** | Cashfree Payments ID of the payment for which refund is initiated | [optional] **CfRefundId** | Pointer to **string** | Cashfree Payments ID for a refund | [optional] **OrderId** | Pointer to **string** | Merchant’s order Id of the order for which refund is initiated | [optional] **RefundId** | Pointer to **string** | Merchant’s refund ID of the refund | [optional] @@ -45,20 +45,20 @@ but it doesn't guarantee that properties required by API are set ### GetCfPaymentId -`func (o *RefundEntity) GetCfPaymentId() int64` +`func (o *RefundEntity) GetCfPaymentId() string` GetCfPaymentId returns the CfPaymentId field if non-nil, zero value otherwise. ### GetCfPaymentIdOk -`func (o *RefundEntity) GetCfPaymentIdOk() (*int64, bool)` +`func (o *RefundEntity) GetCfPaymentIdOk() (*string, bool)` GetCfPaymentIdOk returns a tuple with the CfPaymentId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCfPaymentId -`func (o *RefundEntity) SetCfPaymentId(v int64)` +`func (o *RefundEntity) SetCfPaymentId(v string)` SetCfPaymentId sets CfPaymentId field to given value. diff --git a/docs/RefundsAPI.md b/docs/RefundsAPI.md index b27c6a6..f883a67 100644 --- a/docs/RefundsAPI.md +++ b/docs/RefundsAPI.md @@ -27,7 +27,7 @@ import ( "context" "fmt" "os" - cashfree "github.com/cashfree/cashfree-pg/v3" + cashfree "github.com/cashfree/cashfree-pg/v4" ) func main() { @@ -38,7 +38,7 @@ func main() { cashfree.XClientSecret = &clientSecret cashfree.XEnvironment = cashfree.SANDBOX - xApiVersion := "2022-09-01" + xApiVersion := "2023-08-01" orderId := "your-order-id" orderCreateRefundRequest := *cashfree.NewOrderCreateRefundRequest(float64(123), "RefundId_example") xRequestId := "4dfb9780-46fe-11ee-be56-0242ac120002" @@ -69,11 +69,11 @@ Other parameters are passed through a pointer to a apiPGOrderCreateRefundRequest Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] + **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] **orderCreateRefundRequest** | [**OrderCreateRefundRequest**](OrderCreateRefundRequest.md) | Request Body to Create Refunds | **xRequestId** | **string** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | - **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | + **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | ### Return type @@ -110,7 +110,7 @@ import ( "context" "fmt" "os" - cashfree "github.com/cashfree/cashfree-pg/v3" + cashfree "github.com/cashfree/cashfree-pg/v4" ) func main() { @@ -121,7 +121,7 @@ func main() { cashfree.XClientSecret = &clientSecret cashfree.XEnvironment = cashfree.SANDBOX - xApiVersion := "2022-09-01" + xApiVersion := "2023-08-01" orderId := "your-order-id" refundId := "some-refund-id" xRequestId := "4dfb9780-46fe-11ee-be56-0242ac120002" @@ -153,11 +153,11 @@ Other parameters are passed through a pointer to a apiPGOrderFetchRefundRequest Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] + **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] **xRequestId** | **string** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | - **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | + **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | ### Return type @@ -194,7 +194,7 @@ import ( "context" "fmt" "os" - cashfree "github.com/cashfree/cashfree-pg/v3" + cashfree "github.com/cashfree/cashfree-pg/v4" ) func main() { @@ -205,7 +205,7 @@ func main() { cashfree.XClientSecret = &clientSecret cashfree.XEnvironment = cashfree.SANDBOX - xApiVersion := "2022-09-01" + xApiVersion := "2023-08-01" orderId := "your-order-id" xRequestId := "4dfb9780-46fe-11ee-be56-0242ac120002" xIdempotencyKey := "47bf8872-46fe-11ee-be56-0242ac120002" @@ -235,10 +235,10 @@ Other parameters are passed through a pointer to a apiPGOrderFetchRefundsRequest Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] + **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] **xRequestId** | **string** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | - **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | + **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | ### Return type diff --git a/docs/SettlementEntity.md b/docs/SettlementEntity.md index 87cfb03..e434f45 100644 --- a/docs/SettlementEntity.md +++ b/docs/SettlementEntity.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**CfPaymentId** | Pointer to **int64** | | [optional] -**CfSettlementId** | Pointer to **int64** | | [optional] +**CfPaymentId** | Pointer to **string** | | [optional] +**CfSettlementId** | Pointer to **string** | | [optional] **SettlementCurrency** | Pointer to **string** | | [optional] **OrderId** | Pointer to **string** | | [optional] **Entity** | Pointer to **string** | | [optional] @@ -40,20 +40,20 @@ but it doesn't guarantee that properties required by API are set ### GetCfPaymentId -`func (o *SettlementEntity) GetCfPaymentId() int64` +`func (o *SettlementEntity) GetCfPaymentId() string` GetCfPaymentId returns the CfPaymentId field if non-nil, zero value otherwise. ### GetCfPaymentIdOk -`func (o *SettlementEntity) GetCfPaymentIdOk() (*int64, bool)` +`func (o *SettlementEntity) GetCfPaymentIdOk() (*string, bool)` GetCfPaymentIdOk returns a tuple with the CfPaymentId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCfPaymentId -`func (o *SettlementEntity) SetCfPaymentId(v int64)` +`func (o *SettlementEntity) SetCfPaymentId(v string)` SetCfPaymentId sets CfPaymentId field to given value. @@ -65,20 +65,20 @@ HasCfPaymentId returns a boolean if a field has been set. ### GetCfSettlementId -`func (o *SettlementEntity) GetCfSettlementId() int64` +`func (o *SettlementEntity) GetCfSettlementId() string` GetCfSettlementId returns the CfSettlementId field if non-nil, zero value otherwise. ### GetCfSettlementIdOk -`func (o *SettlementEntity) GetCfSettlementIdOk() (*int64, bool)` +`func (o *SettlementEntity) GetCfSettlementIdOk() (*string, bool)` GetCfSettlementIdOk returns a tuple with the CfSettlementId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCfSettlementId -`func (o *SettlementEntity) SetCfSettlementId(v int64)` +`func (o *SettlementEntity) SetCfSettlementId(v string)` SetCfSettlementId sets CfSettlementId field to given value. diff --git a/docs/SettlementFetchReconRequest.md b/docs/SettlementFetchReconRequest.md index 349790d..1611b8a 100644 --- a/docs/SettlementFetchReconRequest.md +++ b/docs/SettlementFetchReconRequest.md @@ -5,13 +5,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Pagination** | [**FetchSettlementsRequestPagination**](FetchSettlementsRequestPagination.md) | | -**Filters** | [**SettlementFetchReconRequestFilters**](SettlementFetchReconRequestFilters.md) | | +**Filters** | [**FetchSettlementsRequestFilters**](FetchSettlementsRequestFilters.md) | | ## Methods ### NewSettlementFetchReconRequest -`func NewSettlementFetchReconRequest(pagination FetchSettlementsRequestPagination, filters SettlementFetchReconRequestFilters, ) *SettlementFetchReconRequest` +`func NewSettlementFetchReconRequest(pagination FetchSettlementsRequestPagination, filters FetchSettlementsRequestFilters, ) *SettlementFetchReconRequest` NewSettlementFetchReconRequest instantiates a new SettlementFetchReconRequest object This constructor will assign default values to properties that have it defined, @@ -48,20 +48,20 @@ SetPagination sets Pagination field to given value. ### GetFilters -`func (o *SettlementFetchReconRequest) GetFilters() SettlementFetchReconRequestFilters` +`func (o *SettlementFetchReconRequest) GetFilters() FetchSettlementsRequestFilters` GetFilters returns the Filters field if non-nil, zero value otherwise. ### GetFiltersOk -`func (o *SettlementFetchReconRequest) GetFiltersOk() (*SettlementFetchReconRequestFilters, bool)` +`func (o *SettlementFetchReconRequest) GetFiltersOk() (*FetchSettlementsRequestFilters, bool)` GetFiltersOk returns a tuple with the Filters field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetFilters -`func (o *SettlementFetchReconRequest) SetFilters(v SettlementFetchReconRequestFilters)` +`func (o *SettlementFetchReconRequest) SetFilters(v FetchSettlementsRequestFilters)` SetFilters sets Filters field to given value. diff --git a/docs/SettlementReconEntityDataInner.md b/docs/SettlementReconEntityDataInner.md index b910a6c..e30c2be 100644 --- a/docs/SettlementReconEntityDataInner.md +++ b/docs/SettlementReconEntityDataInner.md @@ -23,8 +23,8 @@ Name | Type | Description | Notes **PaymentTime** | Pointer to **string** | Date and time when the payment was initiated. | [optional] **PaymentServiceCharge** | Pointer to **float32** | Service charge applicable for the payment. | [optional] **PaymentServiceTax** | Pointer to **float32** | Service tax applicable on the payment. | [optional] -**CfPaymentId** | Pointer to **int64** | Cashfree Payments unique ID to identify a payment. | [optional] -**CfSettlementId** | Pointer to **int32** | Unique ID to identify the settlement. | [optional] +**CfPaymentId** | Pointer to **string** | Cashfree Payments unique ID to identify a payment. | [optional] +**CfSettlementId** | Pointer to **string** | Unique ID to identify the settlement. | [optional] **SettlementDate** | Pointer to **string** | Date and time when the settlement was processed. | [optional] **SettlementUtr** | Pointer to **string** | Unique transaction reference number of the settlement. | [optional] **SplitServiceCharge** | Pointer to **float32** | Service charge that is applicable for splitting the payment. | [optional] @@ -536,20 +536,20 @@ HasPaymentServiceTax returns a boolean if a field has been set. ### GetCfPaymentId -`func (o *SettlementReconEntityDataInner) GetCfPaymentId() int64` +`func (o *SettlementReconEntityDataInner) GetCfPaymentId() string` GetCfPaymentId returns the CfPaymentId field if non-nil, zero value otherwise. ### GetCfPaymentIdOk -`func (o *SettlementReconEntityDataInner) GetCfPaymentIdOk() (*int64, bool)` +`func (o *SettlementReconEntityDataInner) GetCfPaymentIdOk() (*string, bool)` GetCfPaymentIdOk returns a tuple with the CfPaymentId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCfPaymentId -`func (o *SettlementReconEntityDataInner) SetCfPaymentId(v int64)` +`func (o *SettlementReconEntityDataInner) SetCfPaymentId(v string)` SetCfPaymentId sets CfPaymentId field to given value. @@ -561,20 +561,20 @@ HasCfPaymentId returns a boolean if a field has been set. ### GetCfSettlementId -`func (o *SettlementReconEntityDataInner) GetCfSettlementId() int32` +`func (o *SettlementReconEntityDataInner) GetCfSettlementId() string` GetCfSettlementId returns the CfSettlementId field if non-nil, zero value otherwise. ### GetCfSettlementIdOk -`func (o *SettlementReconEntityDataInner) GetCfSettlementIdOk() (*int32, bool)` +`func (o *SettlementReconEntityDataInner) GetCfSettlementIdOk() (*string, bool)` GetCfSettlementIdOk returns a tuple with the CfSettlementId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCfSettlementId -`func (o *SettlementReconEntityDataInner) SetCfSettlementId(v int32)` +`func (o *SettlementReconEntityDataInner) SetCfSettlementId(v string)` SetCfSettlementId sets CfSettlementId field to given value. diff --git a/docs/SettlementReconciliationAPI.md b/docs/SettlementReconciliationAPI.md index ca00a22..29c2a46 100644 --- a/docs/SettlementReconciliationAPI.md +++ b/docs/SettlementReconciliationAPI.md @@ -26,7 +26,7 @@ import ( "context" "fmt" "os" - cashfree "github.com/cashfree/cashfree-pg/v3" + cashfree "github.com/cashfree/cashfree-pg/v4" ) func main() { @@ -37,7 +37,7 @@ func main() { cashfree.XClientSecret = &clientSecret cashfree.XEnvironment = cashfree.SANDBOX - xApiVersion := "2022-09-01" + xApiVersion := "2023-08-01" fetchSettlementsRequest := *cashfree.NewFetchSettlementsRequest(*cashfree.NewFetchSettlementsRequestPagination(int32(123)), *cashfree.NewFetchSettlementsRequestFilters()) contentType := "application/json" xRequestId := "4dfb9780-46fe-11ee-be56-0242ac120002" @@ -65,11 +65,11 @@ Other parameters are passed through a pointer to a apiPGFetchSettlementsRequest Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] + **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] **fetchSettlementsRequest** | [**FetchSettlementsRequest**](FetchSettlementsRequest.md) | Request Body to get the settlements | **contentType** | **string** | application/json | **xRequestId** | **string** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | - **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | + **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | **accept** | **string** | application/json | ### Return type @@ -107,7 +107,7 @@ import ( "context" "fmt" "os" - cashfree "github.com/cashfree/cashfree-pg/v3" + cashfree "github.com/cashfree/cashfree-pg/v4" ) func main() { @@ -118,8 +118,8 @@ func main() { cashfree.XClientSecret = &clientSecret cashfree.XEnvironment = cashfree.SANDBOX - xApiVersion := "2022-09-01" - settlementFetchReconRequest := *cashfree.NewSettlementFetchReconRequest(*cashfree.NewFetchSettlementsRequestPagination(int32(123)), *cashfree.NewSettlementFetchReconRequestFilters()) + xApiVersion := "2023-08-01" + settlementFetchReconRequest := *cashfree.NewSettlementFetchReconRequest(*cashfree.NewFetchSettlementsRequestPagination(int32(123)), *cashfree.NewFetchSettlementsRequestFilters()) contentType := "application/json" xRequestId := "4dfb9780-46fe-11ee-be56-0242ac120002" xIdempotencyKey := "47bf8872-46fe-11ee-be56-0242ac120002" @@ -146,11 +146,11 @@ Other parameters are passed through a pointer to a apiPGSettlementFetchReconRequ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] + **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] **settlementFetchReconRequest** | [**SettlementFetchReconRequest**](SettlementFetchReconRequest.md) | Request Body for the settlement reconciliation | **contentType** | **string** | application/json | **xRequestId** | **string** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | - **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | + **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | **accept** | **string** | application/json | ### Return type diff --git a/docs/SettlementsAPI.md b/docs/SettlementsAPI.md index b803b88..035e8b9 100644 --- a/docs/SettlementsAPI.md +++ b/docs/SettlementsAPI.md @@ -25,7 +25,7 @@ import ( "context" "fmt" "os" - cashfree "github.com/cashfree/cashfree-pg/v3" + cashfree "github.com/cashfree/cashfree-pg/v4" ) func main() { @@ -36,7 +36,7 @@ func main() { cashfree.XClientSecret = &clientSecret cashfree.XEnvironment = cashfree.SANDBOX - xApiVersion := "2022-09-01" + xApiVersion := "2023-08-01" orderId := "your-order-id" xRequestId := "4dfb9780-46fe-11ee-be56-0242ac120002" xIdempotencyKey := "47bf8872-46fe-11ee-be56-0242ac120002" @@ -66,10 +66,10 @@ Other parameters are passed through a pointer to a apiPGOrderFetchSettlementRequ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] + **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] **xRequestId** | **string** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | - **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | + **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | ### Return type diff --git a/docs/SoftPOSAPI.md b/docs/SoftPOSAPI.md index 79dee91..fe262dc 100644 --- a/docs/SoftPOSAPI.md +++ b/docs/SoftPOSAPI.md @@ -5,7 +5,7 @@ All URIs are relative to *https://sandbox.cashfree.com/pg* Method | HTTP request | Description ------------- | ------------- | ------------- [**SposCreateTerminal**](SoftPOSAPI.md#SposCreateTerminal) | **Post** /terminal | Create Terminal -[**SposCreateTerminalTransaction**](SoftPOSAPI.md#SposCreateTerminalTransaction) | **Post** /terminal/transactions | Create Terminal +[**SposCreateTerminalTransaction**](SoftPOSAPI.md#SposCreateTerminalTransaction) | **Post** /terminal/transactions | Create Terminal Transaction [**SposFetchTerminal**](SoftPOSAPI.md#SposFetchTerminal) | **Get** /terminal/{terminal_phone_no} | Get terminal status using phone number [**SposFetchTerminalQRCodes**](SoftPOSAPI.md#SposFetchTerminalQRCodes) | **Get** /terminal/qrcodes | Fetch Terminal QR Codes @@ -28,7 +28,7 @@ import ( "context" "fmt" "os" - cashfree "github.com/cashfree/cashfree-pg/v3" + cashfree "github.com/cashfree/cashfree-pg/v4" ) func main() { @@ -39,7 +39,7 @@ func main() { cashfree.XClientSecret = &clientSecret cashfree.XEnvironment = cashfree.SANDBOX - xApiVersion := "2022-09-01" + xApiVersion := "2023-08-01" createTerminalRequest := *cashfree.NewCreateTerminalRequest("TerminalId_example", "TerminalPhoneNo_example", "TerminalName_example", "TerminalEmail_example", "TerminalType_example") xRequestId := "4dfb9780-46fe-11ee-be56-0242ac120002" xIdempotencyKey := "47bf8872-46fe-11ee-be56-0242ac120002" @@ -65,10 +65,10 @@ Other parameters are passed through a pointer to a apiSposCreateTerminalRequest Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] + **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] **createTerminalRequest** | [**CreateTerminalRequest**](CreateTerminalRequest.md) | Request Body to Create Terminal for SPOS | **xRequestId** | **string** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | - **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | + **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | ### Return type @@ -92,7 +92,7 @@ Name | Type | Description | Notes > TerminalTransactionEntity SposCreateTerminalTransaction(ctx).XApiVersion(xApiVersion).CreateTerminalTransactionRequest(createTerminalTransactionRequest).XRequestId(xRequestId).XIdempotencyKey(xIdempotencyKey).Execute() -Create Terminal +Create Terminal Transaction @@ -105,7 +105,7 @@ import ( "context" "fmt" "os" - cashfree "github.com/cashfree/cashfree-pg/v3" + cashfree "github.com/cashfree/cashfree-pg/v4" ) func main() { @@ -116,8 +116,8 @@ func main() { cashfree.XClientSecret = &clientSecret cashfree.XEnvironment = cashfree.SANDBOX - xApiVersion := "2022-09-01" - createTerminalTransactionRequest := *cashfree.NewCreateTerminalTransactionRequest(int64(123), "PaymentMethod_example") + xApiVersion := "2023-08-01" + createTerminalTransactionRequest := *cashfree.NewCreateTerminalTransactionRequest("CfOrderId_example", "PaymentMethod_example") xRequestId := "4dfb9780-46fe-11ee-be56-0242ac120002" xIdempotencyKey := "47bf8872-46fe-11ee-be56-0242ac120002" @@ -142,10 +142,10 @@ Other parameters are passed through a pointer to a apiSposCreateTerminalTransact Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] + **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] **createTerminalTransactionRequest** | [**CreateTerminalTransactionRequest**](CreateTerminalTransactionRequest.md) | Request body to create a terminal transaction | **xRequestId** | **string** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | - **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | + **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | ### Return type @@ -182,7 +182,7 @@ import ( "context" "fmt" "os" - cashfree "github.com/cashfree/cashfree-pg/v3" + cashfree "github.com/cashfree/cashfree-pg/v4" ) func main() { @@ -193,7 +193,7 @@ func main() { cashfree.XClientSecret = &clientSecret cashfree.XEnvironment = cashfree.SANDBOX - xApiVersion := "2022-09-01" + xApiVersion := "2023-08-01" terminalPhoneNo := "6309291183" xRequestId := "4dfb9780-46fe-11ee-be56-0242ac120002" xIdempotencyKey := "47bf8872-46fe-11ee-be56-0242ac120002" @@ -223,10 +223,10 @@ Other parameters are passed through a pointer to a apiSposFetchTerminalRequest s Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] + **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] **xRequestId** | **string** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | - **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | + **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | ### Return type @@ -263,7 +263,7 @@ import ( "context" "fmt" "os" - cashfree "github.com/cashfree/cashfree-pg/v3" + cashfree "github.com/cashfree/cashfree-pg/v4" ) func main() { @@ -274,7 +274,7 @@ func main() { cashfree.XClientSecret = &clientSecret cashfree.XEnvironment = cashfree.SANDBOX - xApiVersion := "2022-09-01" + xApiVersion := "2023-08-01" terminalPhoneNo := "9876543214" cfTerminalId := "123344" xRequestId := "4dfb9780-46fe-11ee-be56-0242ac120002" @@ -301,11 +301,11 @@ Other parameters are passed through a pointer to a apiSposFetchTerminalQRCodesRe Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] + **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] **terminalPhoneNo** | **string** | Phone number assigned to the terminal. Required if you are not providing the cf_terminal_id in the request. | **cfTerminalId** | **string** | Cashfree terminal id for which you want to get staticQRs. Required if you are not providing the terminal_phone_number in the request. | **xRequestId** | **string** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | - **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | + **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | ### Return type diff --git a/docs/TerminalDetails.md b/docs/TerminalDetails.md index 9f947f7..8c69691 100644 --- a/docs/TerminalDetails.md +++ b/docs/TerminalDetails.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **AddedOn** | Pointer to **string** | date time at which terminal is added | [optional] -**CfTerminalId** | Pointer to **int32** | cashfree terminal id | [optional] +**CfTerminalId** | Pointer to **string** | cashfree terminal id | [optional] **LastUpdatedOn** | Pointer to **string** | last instant when this terminal was updated | [optional] **TerminalAddress** | Pointer to **string** | location of terminal | [optional] **TerminalId** | **string** | terminal id for merchant reference | @@ -61,20 +61,20 @@ HasAddedOn returns a boolean if a field has been set. ### GetCfTerminalId -`func (o *TerminalDetails) GetCfTerminalId() int32` +`func (o *TerminalDetails) GetCfTerminalId() string` GetCfTerminalId returns the CfTerminalId field if non-nil, zero value otherwise. ### GetCfTerminalIdOk -`func (o *TerminalDetails) GetCfTerminalIdOk() (*int32, bool)` +`func (o *TerminalDetails) GetCfTerminalIdOk() (*string, bool)` GetCfTerminalIdOk returns a tuple with the CfTerminalId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCfTerminalId -`func (o *TerminalDetails) SetCfTerminalId(v int32)` +`func (o *TerminalDetails) SetCfTerminalId(v string)` SetCfTerminalId sets CfTerminalId field to given value. diff --git a/docs/TerminalTransactionEntity.md b/docs/TerminalTransactionEntity.md index 92e561c..e345f19 100644 --- a/docs/TerminalTransactionEntity.md +++ b/docs/TerminalTransactionEntity.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**CfPaymentId** | Pointer to **int64** | | [optional] +**CfPaymentId** | Pointer to **string** | | [optional] **PaymentAmount** | Pointer to **int32** | | [optional] **PaymentMethod** | Pointer to **string** | | [optional] **PaymentUrl** | Pointer to **string** | | [optional] @@ -32,20 +32,20 @@ but it doesn't guarantee that properties required by API are set ### GetCfPaymentId -`func (o *TerminalTransactionEntity) GetCfPaymentId() int64` +`func (o *TerminalTransactionEntity) GetCfPaymentId() string` GetCfPaymentId returns the CfPaymentId field if non-nil, zero value otherwise. ### GetCfPaymentIdOk -`func (o *TerminalTransactionEntity) GetCfPaymentIdOk() (*int64, bool)` +`func (o *TerminalTransactionEntity) GetCfPaymentIdOk() (*string, bool)` GetCfPaymentIdOk returns a tuple with the CfPaymentId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCfPaymentId -`func (o *TerminalTransactionEntity) SetCfPaymentId(v int64)` +`func (o *TerminalTransactionEntity) SetCfPaymentId(v string)` SetCfPaymentId sets CfPaymentId field to given value. diff --git a/docs/TokenVaultAPI.md b/docs/TokenVaultAPI.md index 97d0199..835bd4e 100644 --- a/docs/TokenVaultAPI.md +++ b/docs/TokenVaultAPI.md @@ -28,7 +28,7 @@ import ( "context" "fmt" "os" - cashfree "github.com/cashfree/cashfree-pg/v3" + cashfree "github.com/cashfree/cashfree-pg/v4" ) func main() { @@ -39,7 +39,7 @@ func main() { cashfree.XClientSecret = &clientSecret cashfree.XEnvironment = cashfree.SANDBOX - xApiVersion := "2022-09-01" + xApiVersion := "2023-08-01" customerId := "your-customer-id" instrumentId := "some-instrument-id" xRequestId := "4dfb9780-46fe-11ee-be56-0242ac120002" @@ -71,11 +71,11 @@ Other parameters are passed through a pointer to a apiPGCustomerDeleteInstrument Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] + **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] **xRequestId** | **string** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | - **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | + **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | ### Return type @@ -112,7 +112,7 @@ import ( "context" "fmt" "os" - cashfree "github.com/cashfree/cashfree-pg/v3" + cashfree "github.com/cashfree/cashfree-pg/v4" ) func main() { @@ -123,7 +123,7 @@ func main() { cashfree.XClientSecret = &clientSecret cashfree.XEnvironment = cashfree.SANDBOX - xApiVersion := "2022-09-01" + xApiVersion := "2023-08-01" customerId := "your-customer-id" instrumentId := "some-instrument-id" xRequestId := "4dfb9780-46fe-11ee-be56-0242ac120002" @@ -155,11 +155,11 @@ Other parameters are passed through a pointer to a apiPGCustomerFetchInstrumentR Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] + **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] **xRequestId** | **string** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | - **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | + **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | ### Return type @@ -196,7 +196,7 @@ import ( "context" "fmt" "os" - cashfree "github.com/cashfree/cashfree-pg/v3" + cashfree "github.com/cashfree/cashfree-pg/v4" ) func main() { @@ -207,7 +207,7 @@ func main() { cashfree.XClientSecret = &clientSecret cashfree.XEnvironment = cashfree.SANDBOX - xApiVersion := "2022-09-01" + xApiVersion := "2023-08-01" customerId := "your-customer-id" instrumentType := "card" xRequestId := "4dfb9780-46fe-11ee-be56-0242ac120002" @@ -238,11 +238,11 @@ Other parameters are passed through a pointer to a apiPGCustomerFetchInstruments Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] + **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] **instrumentType** | **string** | Payment mode or type of saved instrument | **xRequestId** | **string** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | - **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | + **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | ### Return type @@ -279,7 +279,7 @@ import ( "context" "fmt" "os" - cashfree "github.com/cashfree/cashfree-pg/v3" + cashfree "github.com/cashfree/cashfree-pg/v4" ) func main() { @@ -290,7 +290,7 @@ func main() { cashfree.XClientSecret = &clientSecret cashfree.XEnvironment = cashfree.SANDBOX - xApiVersion := "2022-09-01" + xApiVersion := "2023-08-01" customerId := "your-customer-id" instrumentId := "some-instrument-id" xRequestId := "4dfb9780-46fe-11ee-be56-0242ac120002" @@ -322,11 +322,11 @@ Other parameters are passed through a pointer to a apiPGCustomerInstrumentsFetch Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] + **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] **xRequestId** | **string** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | - **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | + **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | ### Return type diff --git a/go.mod b/go.mod index 999fd3a..1e659c1 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/cashfree/cashfree-pg/v3 +module github.com/cashfree/cashfree-pg/v4 go 1.18 diff --git a/model_api_error.go b/model_api_error.go index a2b69b3..83c71fd 100644 --- a/model_api_error.go +++ b/model_api_error.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_api_error404.go b/model_api_error404.go index e265326..3b7d2f5 100644 --- a/model_api_error404.go +++ b/model_api_error404.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_api_error409.go b/model_api_error409.go index 6f3f0d4..cb4853d 100644 --- a/model_api_error409.go +++ b/model_api_error409.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_api_error502.go b/model_api_error502.go index 96449e8..39c87e9 100644 --- a/model_api_error502.go +++ b/model_api_error502.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_app.go b/model_app.go index 1f899b2..522f7ea 100644 --- a/model_app.go +++ b/model_app.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_app_payment_method.go b/model_app_payment_method.go index dabe2cc..dcabb16 100644 --- a/model_app_payment_method.go +++ b/model_app_payment_method.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_authentication_error.go b/model_authentication_error.go index aaed054..0c41a63 100644 --- a/model_authentication_error.go +++ b/model_authentication_error.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_authorization_in_payments_entity.go b/model_authorization_in_payments_entity.go index b476e96..2c77a39 100644 --- a/model_authorization_in_payments_entity.go +++ b/model_authorization_in_payments_entity.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_authorize_order_request.go b/model_authorize_order_request.go index a7ff50c..5ccd742 100644 --- a/model_authorize_order_request.go +++ b/model_authorize_order_request.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_bad_request_error.go b/model_bad_request_error.go index 2af2c14..27e33e1 100644 --- a/model_bad_request_error.go +++ b/model_bad_request_error.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_card.go b/model_card.go index d3be557..7be9db8 100644 --- a/model_card.go +++ b/model_card.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_card_emi.go b/model_card_emi.go index cfac2df..1b0ca56 100644 --- a/model_card_emi.go +++ b/model_card_emi.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_card_emi_payment_method.go b/model_card_emi_payment_method.go index 1ea95dc..9285dd8 100644 --- a/model_card_emi_payment_method.go +++ b/model_card_emi_payment_method.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_card_offer.go b/model_card_offer.go index 1042fd7..9a188e4 100644 --- a/model_card_offer.go +++ b/model_card_offer.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_card_payment_method.go b/model_card_payment_method.go index 34f74a7..065e5f5 100644 --- a/model_card_payment_method.go +++ b/model_card_payment_method.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_cardless_emi.go b/model_cardless_emi.go index dea90c9..1b7c108 100644 --- a/model_cardless_emi.go +++ b/model_cardless_emi.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_cardless_emi_entity.go b/model_cardless_emi_entity.go index 3782d0c..2527759 100644 --- a/model_cardless_emi_entity.go +++ b/model_cardless_emi_entity.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_cardless_emi_payment_method.go b/model_cardless_emi_payment_method.go index 948e69b..32d76ec 100644 --- a/model_cardless_emi_payment_method.go +++ b/model_cardless_emi_payment_method.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_cardless_emi_queries.go b/model_cardless_emi_queries.go index 3a3756d..546228d 100644 --- a/model_cardless_emi_queries.go +++ b/model_cardless_emi_queries.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_cashback_details.go b/model_cashback_details.go index 8edd176..6ccd33a 100644 --- a/model_cashback_details.go +++ b/model_cashback_details.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_create_link_request.go b/model_create_link_request.go index cc104da..706a04f 100644 --- a/model_create_link_request.go +++ b/model_create_link_request.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ @@ -41,7 +41,7 @@ type CreateLinkRequest struct { LinkAutoReminders *bool `json:"link_auto_reminders,omitempty"` // Key-value pair that can be used to store additional information about the entity. Maximum 5 key-value pairs LinkNotes *map[string]string `json:"link_notes,omitempty"` - LinkMeta *LinkMetaEntity `json:"link_meta,omitempty"` + LinkMeta *LinkMetaResponseEntity `json:"link_meta,omitempty"` } diff --git a/model_create_offer_request.go b/model_create_offer_request.go index 49c0392..9d79a40 100644 --- a/model_create_offer_request.go +++ b/model_create_offer_request.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_create_order_request.go b/model_create_order_request.go index 07882a3..71decee 100644 --- a/model_create_order_request.go +++ b/model_create_order_request.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_create_terminal_request.go b/model_create_terminal_request.go index 169bfc5..fb65c2b 100644 --- a/model_create_terminal_request.go +++ b/model_create_terminal_request.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_create_terminal_request_terminal_meta.go b/model_create_terminal_request_terminal_meta.go index d4a8cd1..6bed7db 100644 --- a/model_create_terminal_request_terminal_meta.go +++ b/model_create_terminal_request_terminal_meta.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_create_terminal_transaction_request.go b/model_create_terminal_transaction_request.go index 7ab26a1..a7607e9 100644 --- a/model_create_terminal_transaction_request.go +++ b/model_create_terminal_transaction_request.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ @@ -22,9 +22,9 @@ var _ MappedNullable = &CreateTerminalTransactionRequest{} // CreateTerminalTransactionRequest Request body to create a terminal transaction type CreateTerminalTransactionRequest struct { // cashfree order ID that was returned while creating an order. - CfOrderId int64 `json:"cf_order_id"` + CfOrderId string `json:"cf_order_id"` // cashfree terminal id. this is a required parameter when you do not provide the terminal phone number. - CfTerminalId *int64 `json:"cf_terminal_id,omitempty"` + CfTerminalId *string `json:"cf_terminal_id,omitempty"` // mention the payment method used for the transaction. possible values - QR_CODE, LINK. PaymentMethod string `json:"payment_method"` // agent mobile number assigned to the terminal. this is a required parameter when you do not provide the cf_terminal_id. diff --git a/model_cryptogram_entity.go b/model_cryptogram_entity.go index efcbd6d..fac0e96 100644 --- a/model_cryptogram_entity.go +++ b/model_cryptogram_entity.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_customer_details.go b/model_customer_details.go index c8fe19a..85de944 100644 --- a/model_customer_details.go +++ b/model_customer_details.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ @@ -35,6 +35,8 @@ type CustomerDetails struct { CustomerBankIfsc *string `json:"customer_bank_ifsc,omitempty"` // Customer bank code. Required for net banking payments, if you want to do a bank account check (TPV) CustomerBankCode *float32 `json:"customer_bank_code,omitempty"` + // Customer identifier at Cashfree. You will get this when you create/get customer + CustomerUid *string `json:"customer_uid,omitempty"` } @@ -66,6 +68,9 @@ func (o CustomerDetails) ToMap() (map[string]interface{}, error) { if !IsNil(o.CustomerBankCode) { toSerialize["customer_bank_code"] = o.CustomerBankCode } + if !IsNil(o.CustomerUid) { + toSerialize["customer_uid"] = o.CustomerUid + } return toSerialize, nil } diff --git a/model_customer_details_cardless_emi.go b/model_customer_details_cardless_emi.go index 81e06cd..94fe15f 100644 --- a/model_customer_details_cardless_emi.go +++ b/model_customer_details_cardless_emi.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_discount_details.go b/model_discount_details.go index d407dec..06f5393 100644 --- a/model_discount_details.go +++ b/model_discount_details.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_eligibility_cardless_emi_entity.go b/model_eligibility_cardless_emi_entity.go index 81df012..961ea0a 100644 --- a/model_eligibility_cardless_emi_entity.go +++ b/model_eligibility_cardless_emi_entity.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_eligibility_fetch_cardless_emi_request.go b/model_eligibility_fetch_cardless_emi_request.go index 971fc48..9bcd333 100644 --- a/model_eligibility_fetch_cardless_emi_request.go +++ b/model_eligibility_fetch_cardless_emi_request.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_eligibility_fetch_offers_request.go b/model_eligibility_fetch_offers_request.go index a85fe4a..3a93e86 100644 --- a/model_eligibility_fetch_offers_request.go +++ b/model_eligibility_fetch_offers_request.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_eligibility_fetch_paylater_request.go b/model_eligibility_fetch_paylater_request.go index 17c1c87..0afb979 100644 --- a/model_eligibility_fetch_paylater_request.go +++ b/model_eligibility_fetch_paylater_request.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_eligibility_fetch_payment_methods_request.go b/model_eligibility_fetch_payment_methods_request.go index ecebaef..d9bd5d2 100644 --- a/model_eligibility_fetch_payment_methods_request.go +++ b/model_eligibility_fetch_payment_methods_request.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_eligibility_offer_entity.go b/model_eligibility_offer_entity.go index d6f0a99..c825c11 100644 --- a/model_eligibility_offer_entity.go +++ b/model_eligibility_offer_entity.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_eligibility_paylater_entity.go b/model_eligibility_paylater_entity.go index 8075d9a..8395e01 100644 --- a/model_eligibility_paylater_entity.go +++ b/model_eligibility_paylater_entity.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_eligibility_payment_methods_entity.go b/model_eligibility_payment_methods_entity.go index 50adcad..a08fcbf 100644 --- a/model_eligibility_payment_methods_entity.go +++ b/model_eligibility_payment_methods_entity.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_eligibility_payment_methods_entity_entity_details.go b/model_eligibility_payment_methods_entity_entity_details.go index 8094742..72e7aad 100644 --- a/model_eligibility_payment_methods_entity_entity_details.go +++ b/model_eligibility_payment_methods_entity_entity_details.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_emi_offer.go b/model_emi_offer.go index cdc695c..1b653b1 100644 --- a/model_emi_offer.go +++ b/model_emi_offer.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_emi_plans_array.go b/model_emi_plans_array.go index 8fe9e73..5828e4b 100644 --- a/model_emi_plans_array.go +++ b/model_emi_plans_array.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_error_details_in_payments_entity.go b/model_error_details_in_payments_entity.go index c4a5a9e..c5eca00 100644 --- a/model_error_details_in_payments_entity.go +++ b/model_error_details_in_payments_entity.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_fetch_recon_request.go b/model_fetch_recon_request.go index 26e2945..87c183d 100644 --- a/model_fetch_recon_request.go +++ b/model_fetch_recon_request.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_fetch_recon_request_filters.go b/model_fetch_recon_request_filters.go index 14857da..56c2e24 100644 --- a/model_fetch_recon_request_filters.go +++ b/model_fetch_recon_request_filters.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_fetch_recon_request_pagination.go b/model_fetch_recon_request_pagination.go index 8581320..44aff73 100644 --- a/model_fetch_recon_request_pagination.go +++ b/model_fetch_recon_request_pagination.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_fetch_settlements_request.go b/model_fetch_settlements_request.go index b469060..713bf6d 100644 --- a/model_fetch_settlements_request.go +++ b/model_fetch_settlements_request.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_fetch_settlements_request_filters.go b/model_fetch_settlements_request_filters.go index 6bc3249..0ab9d6f 100644 --- a/model_fetch_settlements_request_filters.go +++ b/model_fetch_settlements_request_filters.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ @@ -22,7 +22,7 @@ var _ MappedNullable = &FetchSettlementsRequestFilters{} // FetchSettlementsRequestFilters Specify either the Settlement ID, Settlement UTR, or start date and end date to fetch the settlement details. type FetchSettlementsRequestFilters struct { // List of settlement IDs for which you want the settlement reconciliation details. - CfSettlementIds []int64 `json:"cf_settlement_ids,omitempty"` + CfSettlementIds []string `json:"cf_settlement_ids,omitempty"` // List of settlement UTRs for which you want the settlement reconciliation details. SettlementUtrs []string `json:"settlement_utrs,omitempty"` // Specify the start date from when you want the settlement reconciliation details. diff --git a/model_fetch_settlements_request_pagination.go b/model_fetch_settlements_request_pagination.go index 7c29856..13cad5f 100644 --- a/model_fetch_settlements_request_pagination.go +++ b/model_fetch_settlements_request_pagination.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_fetch_terminal_qr_codes_entity.go b/model_fetch_terminal_qr_codes_entity.go index 120c29d..8128b0b 100644 --- a/model_fetch_terminal_qr_codes_entity.go +++ b/model_fetch_terminal_qr_codes_entity.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_idempotency_error.go b/model_idempotency_error.go index 1010c5c..067ad37 100644 --- a/model_idempotency_error.go +++ b/model_idempotency_error.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_instrument_entity.go b/model_instrument_entity.go index daed86f..be0ee78 100644 --- a/model_instrument_entity.go +++ b/model_instrument_entity.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_instrument_webhook.go b/model_instrument_webhook.go index 482ff2f..b310600 100644 --- a/model_instrument_webhook.go +++ b/model_instrument_webhook.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_instrument_webhook_data.go b/model_instrument_webhook_data.go index 969d630..c7650a7 100644 --- a/model_instrument_webhook_data.go +++ b/model_instrument_webhook_data.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_instrument_webhook_data_entity.go b/model_instrument_webhook_data_entity.go index 51b1278..a898764 100644 --- a/model_instrument_webhook_data_entity.go +++ b/model_instrument_webhook_data_entity.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_link_customer_details_entity.go b/model_link_customer_details_entity.go index dbf87a1..f2d9c83 100644 --- a/model_link_customer_details_entity.go +++ b/model_link_customer_details_entity.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_link_entity.go b/model_link_entity.go index 21962fe..a55fd6d 100644 --- a/model_link_entity.go +++ b/model_link_entity.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ @@ -21,7 +21,7 @@ var _ MappedNullable = &LinkEntity{} // LinkEntity Payment link success creation response object type LinkEntity struct { - CfLinkId *int64 `json:"cf_link_id,omitempty"` + CfLinkId *string `json:"cf_link_id,omitempty"` LinkId *string `json:"link_id,omitempty"` LinkStatus *string `json:"link_status,omitempty"` LinkCurrency *string `json:"link_currency,omitempty"` @@ -32,8 +32,7 @@ type LinkEntity struct { LinkPurpose *string `json:"link_purpose,omitempty"` LinkCreatedAt *string `json:"link_created_at,omitempty"` CustomerDetails *LinkCustomerDetailsEntity `json:"customer_details,omitempty"` - // Payment link meta information object. - LinkMeta *map[string]string `json:"link_meta,omitempty"` + LinkMeta *LinkMetaResponseEntity `json:"link_meta,omitempty"` LinkUrl *string `json:"link_url,omitempty"` LinkExpiryTime *string `json:"link_expiry_time,omitempty"` // Key-value pair that can be used to store additional information about the entity. Maximum 5 key-value pairs diff --git a/model_link_notify_entity.go b/model_link_notify_entity.go index 90504c4..160499a 100644 --- a/model_link_notify_entity.go +++ b/model_link_notify_entity.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_net_banking_payment_method.go b/model_net_banking_payment_method.go index 8db648a..1fcc2cd 100644 --- a/model_net_banking_payment_method.go +++ b/model_net_banking_payment_method.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_netbanking.go b/model_netbanking.go index c677d33..b3d3532 100644 --- a/model_netbanking.go +++ b/model_netbanking.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_offer_all.go b/model_offer_all.go index 05c86df..05a0313 100644 --- a/model_offer_all.go +++ b/model_offer_all.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_offer_card.go b/model_offer_card.go index 4bbf3f5..0620385 100644 --- a/model_offer_card.go +++ b/model_offer_card.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_offer_details.go b/model_offer_details.go index 7491b38..a4e5065 100644 --- a/model_offer_details.go +++ b/model_offer_details.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_offer_emi.go b/model_offer_emi.go index 2ca42b2..885023f 100644 --- a/model_offer_emi.go +++ b/model_offer_emi.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_offer_entity.go b/model_offer_entity.go index 414604d..94da1ba 100644 --- a/model_offer_entity.go +++ b/model_offer_entity.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_offer_filters.go b/model_offer_filters.go index 6e425c6..dab9b2c 100644 --- a/model_offer_filters.go +++ b/model_offer_filters.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_offer_meta.go b/model_offer_meta.go index a16299a..6651ab6 100644 --- a/model_offer_meta.go +++ b/model_offer_meta.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_offer_nb.go b/model_offer_nb.go index 9f75da0..638542a 100644 --- a/model_offer_nb.go +++ b/model_offer_nb.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_offer_nb_netbanking.go b/model_offer_nb_netbanking.go index b128622..8e17ada 100644 --- a/model_offer_nb_netbanking.go +++ b/model_offer_nb_netbanking.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_offer_paylater.go b/model_offer_paylater.go index 53ed751..fa3560e 100644 --- a/model_offer_paylater.go +++ b/model_offer_paylater.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_offer_queries.go b/model_offer_queries.go index b07aa0a..d561f2c 100644 --- a/model_offer_queries.go +++ b/model_offer_queries.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_offer_tnc.go b/model_offer_tnc.go index 254fd17..6e821f5 100644 --- a/model_offer_tnc.go +++ b/model_offer_tnc.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_offer_type.go b/model_offer_type.go index fe9575b..4d9f002 100644 --- a/model_offer_type.go +++ b/model_offer_type.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_offer_upi.go b/model_offer_upi.go index 9a64ef7..c9e748f 100644 --- a/model_offer_upi.go +++ b/model_offer_upi.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_offer_validations.go b/model_offer_validations.go index 0d1bbbc..4678bb9 100644 --- a/model_offer_validations.go +++ b/model_offer_validations.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ @@ -24,8 +24,6 @@ type OfferValidations struct { // Minimum Amount for Offer to be Applicable MinAmount *float32 `json:"min_amount,omitempty"` PaymentMethod OfferValidationsPaymentMethod `json:"payment_method"` - // Maximum amount of Offer that can be availed. - MaxAllowed float32 `json:"max_allowed"` } @@ -44,7 +42,6 @@ func (o OfferValidations) ToMap() (map[string]interface{}, error) { toSerialize["min_amount"] = o.MinAmount } toSerialize["payment_method"] = o.PaymentMethod - toSerialize["max_allowed"] = o.MaxAllowed return toSerialize, nil } diff --git a/model_offer_validations_payment_method.go b/model_offer_validations_payment_method.go index baa3de5..2fe1bc3 100644 --- a/model_offer_validations_payment_method.go +++ b/model_offer_validations_payment_method.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_offer_wallet.go b/model_offer_wallet.go index 54e8e32..f2568d3 100644 --- a/model_offer_wallet.go +++ b/model_offer_wallet.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_order_authenticate_entity.go b/model_order_authenticate_entity.go index e81bec0..22c5458 100644 --- a/model_order_authenticate_entity.go +++ b/model_order_authenticate_entity.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ @@ -22,7 +22,7 @@ var _ MappedNullable = &OrderAuthenticateEntity{} // OrderAuthenticateEntity This is the response shared when merchant inovkes the OTP submit or resend API type OrderAuthenticateEntity struct { // The payment id for which this request was sent - CfPaymentId *float32 `json:"cf_payment_id,omitempty"` + CfPaymentId *string `json:"cf_payment_id,omitempty"` // The action that was invoked for this request. Action *string `json:"action,omitempty"` // Status of the is action. Will be either failed or successful. If the action is successful, you should still call the authorization status to verify the final payment status. diff --git a/model_order_authenticate_payment_request.go b/model_order_authenticate_payment_request.go index c7ff3b3..76ce943 100644 --- a/model_order_authenticate_payment_request.go +++ b/model_order_authenticate_payment_request.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_order_create_refund_request.go b/model_order_create_refund_request.go index 5775425..e92f4a2 100644 --- a/model_order_create_refund_request.go +++ b/model_order_create_refund_request.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_order_entity.go b/model_order_entity.go index e664939..a40faf2 100644 --- a/model_order_entity.go +++ b/model_order_entity.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ @@ -23,7 +23,7 @@ var _ MappedNullable = &OrderEntity{} // OrderEntity The complete order entity type OrderEntity struct { // unique id generated by cashfree for your order - CfOrderId *int64 `json:"cf_order_id,omitempty"` + CfOrderId *string `json:"cf_order_id,omitempty"` // order_id sent during the api request OrderId *string `json:"order_id,omitempty"` // Type of the entity. @@ -31,7 +31,7 @@ type OrderEntity struct { // Currency of the order. Example INR OrderCurrency *string `json:"order_currency,omitempty"` OrderAmount *float32 `json:"order_amount,omitempty"` - // 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 OrderStatus *string `json:"order_status,omitempty"` PaymentSessionId *string `json:"payment_session_id,omitempty"` OrderExpiryTime *time.Time `json:"order_expiry_time,omitempty"` @@ -42,9 +42,6 @@ type OrderEntity struct { OrderSplits []VendorSplit `json:"order_splits,omitempty"` CustomerDetails *CustomerDetails `json:"customer_details,omitempty"` OrderMeta *OrderMeta `json:"order_meta,omitempty"` - Payments *PaymentURLObject `json:"payments,omitempty"` - Settlements *SettlementURLObject `json:"settlements,omitempty"` - Refunds *RefundURLObject `json:"refunds,omitempty"` // Custom Tags in thr form of {\"key\":\"value\"} which can be passed for an order. A maximum of 10 tags can be added OrderTags *map[string]string `json:"order_tags,omitempty"` } @@ -100,15 +97,6 @@ func (o OrderEntity) ToMap() (map[string]interface{}, error) { if !IsNil(o.OrderMeta) { toSerialize["order_meta"] = o.OrderMeta } - if !IsNil(o.Payments) { - toSerialize["payments"] = o.Payments - } - if !IsNil(o.Settlements) { - toSerialize["settlements"] = o.Settlements - } - if !IsNil(o.Refunds) { - toSerialize["refunds"] = o.Refunds - } if !IsNil(o.OrderTags) { toSerialize["order_tags"] = o.OrderTags } diff --git a/model_order_meta.go b/model_order_meta.go index 6b44914..a789bd3 100644 --- a/model_order_meta.go +++ b/model_order_meta.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ @@ -21,7 +21,7 @@ var _ MappedNullable = &OrderMeta{} // OrderMeta Optional meta details to control how the customer pays and how payment journey completes type OrderMeta struct { - // 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 ReturnUrl *string `json:"return_url,omitempty"` // Notification URL for server-server communication. Useful when user's connection drops while re-directing. NotifyUrl should be an https URL. Maximum length: 250. NotifyUrl *string `json:"notify_url,omitempty"` diff --git a/model_order_pay_data.go b/model_order_pay_data.go index 1a26446..fdb91f7 100644 --- a/model_order_pay_data.go +++ b/model_order_pay_data.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_pay_order_entity.go b/model_pay_order_entity.go index 95fbb69..4cd2522 100644 --- a/model_pay_order_entity.go +++ b/model_pay_order_entity.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ @@ -24,7 +24,7 @@ type PayOrderEntity struct { // total amount payable PaymentAmount *float32 `json:"payment_amount,omitempty"` // Payment identifier created by Cashfree - CfPaymentId *int64 `json:"cf_payment_id,omitempty"` + CfPaymentId *string `json:"cf_payment_id,omitempty"` // One of [\"upi\", \"netbanking\", \"card\", \"app\", \"cardless_emi\", \"paylater\", \"banktransfer\"] PaymentMethod *string `json:"payment_method,omitempty"` // One of [\"link\", \"collect\", \"qrcode\"]. In an older version we used to support different channels like 'gpay', 'phonepe' etc. However, we now support only the following channels - link, collect and qrcode. To process payments using gpay, you will have to provide channel as 'link' and provider as 'gpay' diff --git a/model_pay_order_request.go b/model_pay_order_request.go index 7d4c136..d70686d 100644 --- a/model_pay_order_request.go +++ b/model_pay_order_request.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_pay_order_request_payment_method.go b/model_pay_order_request_payment_method.go index de93f36..0d4d2b4 100644 --- a/model_pay_order_request_payment_method.go +++ b/model_pay_order_request_payment_method.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_paylater.go b/model_paylater.go index 8e66356..c1050bf 100644 --- a/model_paylater.go +++ b/model_paylater.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_paylater_entity.go b/model_paylater_entity.go index 512b2ae..f9b6ade 100644 --- a/model_paylater_entity.go +++ b/model_paylater_entity.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_paylater_offer.go b/model_paylater_offer.go index bd63a95..08eb6ce 100644 --- a/model_paylater_offer.go +++ b/model_paylater_offer.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_paylater_payment_method.go b/model_paylater_payment_method.go index e273bd7..385e9d1 100644 --- a/model_paylater_payment_method.go +++ b/model_paylater_payment_method.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_payment_entity.go b/model_payment_entity.go index 23b9522..e8a4c1b 100644 --- a/model_payment_entity.go +++ b/model_payment_entity.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ @@ -21,7 +21,7 @@ var _ MappedNullable = &PaymentEntity{} // PaymentEntity payment entity full object type PaymentEntity struct { - CfPaymentId *int64 `json:"cf_payment_id,omitempty"` + CfPaymentId *string `json:"cf_payment_id,omitempty"` OrderId *string `json:"order_id,omitempty"` Entity *string `json:"entity,omitempty"` ErrorDetails *ErrorDetailsInPaymentsEntity `json:"error_details,omitempty"` diff --git a/model_payment_entity_payment_method.go b/model_payment_entity_payment_method.go index 4aead2c..93827db 100644 --- a/model_payment_entity_payment_method.go +++ b/model_payment_entity_payment_method.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_payment_link_customer_details.go b/model_payment_link_customer_details.go index d7ff029..43a2cf1 100644 --- a/model_payment_link_customer_details.go +++ b/model_payment_link_customer_details.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_payment_link_order_entity.go b/model_payment_link_order_entity.go index 0a9ef59..24a2f73 100644 --- a/model_payment_link_order_entity.go +++ b/model_payment_link_order_entity.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ @@ -23,7 +23,7 @@ var _ MappedNullable = &PaymentLinkOrderEntity{} // PaymentLinkOrderEntity The complete order entity type PaymentLinkOrderEntity struct { // unique id generated by cashfree for your order - CfOrderId *int64 `json:"cf_order_id,omitempty"` + CfOrderId *string `json:"cf_order_id,omitempty"` // link id of the order LinkId *string `json:"link_id,omitempty"` // order_id sent during the api request @@ -44,9 +44,6 @@ type PaymentLinkOrderEntity struct { OrderSplits []VendorSplit `json:"order_splits,omitempty"` CustomerDetails *PaymentLinkCustomerDetails `json:"customer_details,omitempty"` OrderMeta *OrderMeta `json:"order_meta,omitempty"` - Payments *PaymentURLObject `json:"payments,omitempty"` - Settlements *SettlementURLObject `json:"settlements,omitempty"` - Refunds *RefundURLObject `json:"refunds,omitempty"` // Custom Tags in thr form of {\"key\":\"value\"} which can be passed for an order. A maximum of 10 tags can be added OrderTags *map[string]string `json:"order_tags,omitempty"` } @@ -105,15 +102,6 @@ func (o PaymentLinkOrderEntity) ToMap() (map[string]interface{}, error) { if !IsNil(o.OrderMeta) { toSerialize["order_meta"] = o.OrderMeta } - if !IsNil(o.Payments) { - toSerialize["payments"] = o.Payments - } - if !IsNil(o.Settlements) { - toSerialize["settlements"] = o.Settlements - } - if !IsNil(o.Refunds) { - toSerialize["refunds"] = o.Refunds - } if !IsNil(o.OrderTags) { toSerialize["order_tags"] = o.OrderTags } diff --git a/model_payment_method_app_in_payments_entity.go b/model_payment_method_app_in_payments_entity.go index 3059335..b7e2ca3 100644 --- a/model_payment_method_app_in_payments_entity.go +++ b/model_payment_method_app_in_payments_entity.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_payment_method_app_in_payments_entity_app.go b/model_payment_method_app_in_payments_entity_app.go index 0902047..ec70d94 100644 --- a/model_payment_method_app_in_payments_entity_app.go +++ b/model_payment_method_app_in_payments_entity_app.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_payment_method_card_emiin_payments_entity.go b/model_payment_method_card_emiin_payments_entity.go index 306298c..cbcc58f 100644 --- a/model_payment_method_card_emiin_payments_entity.go +++ b/model_payment_method_card_emiin_payments_entity.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_payment_method_card_emiin_payments_entity_emi.go b/model_payment_method_card_emiin_payments_entity_emi.go index 0ac373b..9d0cad7 100644 --- a/model_payment_method_card_emiin_payments_entity_emi.go +++ b/model_payment_method_card_emiin_payments_entity_emi.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_payment_method_card_emiin_payments_entity_emi_emi_details.go b/model_payment_method_card_emiin_payments_entity_emi_emi_details.go index deea30e..c6c2785 100644 --- a/model_payment_method_card_emiin_payments_entity_emi_emi_details.go +++ b/model_payment_method_card_emiin_payments_entity_emi_emi_details.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_payment_method_card_in_payments_entity.go b/model_payment_method_card_in_payments_entity.go index 10f94d7..bb70aa1 100644 --- a/model_payment_method_card_in_payments_entity.go +++ b/model_payment_method_card_in_payments_entity.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_payment_method_card_in_payments_entity_card.go b/model_payment_method_card_in_payments_entity_card.go index feaa228..339bfac 100644 --- a/model_payment_method_card_in_payments_entity_card.go +++ b/model_payment_method_card_in_payments_entity_card.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_payment_method_cardless_emiin_payments_entity.go b/model_payment_method_cardless_emiin_payments_entity.go index 78561d5..506736d 100644 --- a/model_payment_method_cardless_emiin_payments_entity.go +++ b/model_payment_method_cardless_emiin_payments_entity.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_payment_method_net_banking_in_payments_entity.go b/model_payment_method_net_banking_in_payments_entity.go index f7a863d..cc0546a 100644 --- a/model_payment_method_net_banking_in_payments_entity.go +++ b/model_payment_method_net_banking_in_payments_entity.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_payment_method_net_banking_in_payments_entity_netbanking.go b/model_payment_method_net_banking_in_payments_entity_netbanking.go index 709b9d9..f0c1419 100644 --- a/model_payment_method_net_banking_in_payments_entity_netbanking.go +++ b/model_payment_method_net_banking_in_payments_entity_netbanking.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_payment_method_paylater_in_payments_entity.go b/model_payment_method_paylater_in_payments_entity.go index d76e02a..b15dc41 100644 --- a/model_payment_method_paylater_in_payments_entity.go +++ b/model_payment_method_paylater_in_payments_entity.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_payment_method_upiin_payments_entity.go b/model_payment_method_upiin_payments_entity.go index 0627a29..188de2c 100644 --- a/model_payment_method_upiin_payments_entity.go +++ b/model_payment_method_upiin_payments_entity.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_payment_method_upiin_payments_entity_upi.go b/model_payment_method_upiin_payments_entity_upi.go index 7e801a1..cd1c3a6 100644 --- a/model_payment_method_upiin_payments_entity_upi.go +++ b/model_payment_method_upiin_payments_entity_upi.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_payment_methods_filters.go b/model_payment_methods_filters.go index 3012ed6..7b28460 100644 --- a/model_payment_methods_filters.go +++ b/model_payment_methods_filters.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ @@ -19,7 +19,7 @@ import ( // checks if the PaymentMethodsFilters type satisfies the MappedNullable interface at compile time var _ MappedNullable = &PaymentMethodsFilters{} -// PaymentMethodsFilters Filter for specific Payment Methods +// PaymentMethodsFilters Filter for Payment Methods type PaymentMethodsFilters struct { // Array of payment methods to be filtered. This is optional, by default all payment methods will be returned. Possible values in [ 'debit_card', 'credit_card', 'prepaid_card', 'corporate_credit_card', 'upi', 'wallet', 'netbanking', 'banktransfer', 'paylater', 'paypal', 'debit_card_emi', 'credit_card_emi', 'upi_credit_card', 'upi_ppi', 'cardless_emi', 'account_based_payment' ] PaymentMethods []string `json:"payment_methods,omitempty"` diff --git a/model_payment_methods_queries.go b/model_payment_methods_queries.go index 65fed9f..62a07ec 100644 --- a/model_payment_methods_queries.go +++ b/model_payment_methods_queries.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_payment_mode_details.go b/model_payment_mode_details.go index cdbf6f4..f9d23a4 100644 --- a/model_payment_mode_details.go +++ b/model_payment_mode_details.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_payment_webhook.go b/model_payment_webhook.go index ed6a128..ef55151 100644 --- a/model_payment_webhook.go +++ b/model_payment_webhook.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_payment_webhook_customer_entity.go b/model_payment_webhook_customer_entity.go index de834d1..82c3966 100644 --- a/model_payment_webhook_customer_entity.go +++ b/model_payment_webhook_customer_entity.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_payment_webhook_data_entity.go b/model_payment_webhook_data_entity.go index 41c4ca6..86b4534 100644 --- a/model_payment_webhook_data_entity.go +++ b/model_payment_webhook_data_entity.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_payment_webhook_error_entity.go b/model_payment_webhook_error_entity.go index 5783ad2..afe99b7 100644 --- a/model_payment_webhook_error_entity.go +++ b/model_payment_webhook_error_entity.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_payment_webhook_gateway_details_entity.go b/model_payment_webhook_gateway_details_entity.go index 94db5af..3d939a3 100644 --- a/model_payment_webhook_gateway_details_entity.go +++ b/model_payment_webhook_gateway_details_entity.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_payment_webhook_order_entity.go b/model_payment_webhook_order_entity.go index f326fc5..3817c7f 100644 --- a/model_payment_webhook_order_entity.go +++ b/model_payment_webhook_order_entity.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_rate_limit_error.go b/model_rate_limit_error.go index 8c8aeb5..3cdd919 100644 --- a/model_rate_limit_error.go +++ b/model_rate_limit_error.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_recon_entity.go b/model_recon_entity.go index 4eddae8..bbbd60f 100644 --- a/model_recon_entity.go +++ b/model_recon_entity.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_recon_entity_data_inner.go b/model_recon_entity_data_inner.go index 716b9f9..688d226 100644 --- a/model_recon_entity_data_inner.go +++ b/model_recon_entity_data_inner.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ @@ -60,9 +60,9 @@ type ReconEntityDataInner struct { // Service tax applicable on the payment. PaymentServiceTax *float32 `json:"payment_service_tax,omitempty"` // Cashfree Payments unique ID to identify a payment. - CfPaymentId *int64 `json:"cf_payment_id,omitempty"` + CfPaymentId *string `json:"cf_payment_id,omitempty"` // Unique ID to identify the settlement. - CfSettlementId *int32 `json:"cf_settlement_id,omitempty"` + CfSettlementId *string `json:"cf_settlement_id,omitempty"` // Date and time when the settlement was processed. SettlementDate *string `json:"settlement_date,omitempty"` // Unique transaction reference number of the settlement. diff --git a/model_refund_entity.go b/model_refund_entity.go index 1740027..6a9a5a6 100644 --- a/model_refund_entity.go +++ b/model_refund_entity.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ @@ -22,7 +22,7 @@ var _ MappedNullable = &RefundEntity{} // RefundEntity The refund entity type RefundEntity struct { // Cashfree Payments ID of the payment for which refund is initiated - CfPaymentId *int64 `json:"cf_payment_id,omitempty"` + CfPaymentId *string `json:"cf_payment_id,omitempty"` // Cashfree Payments ID for a refund CfRefundId *string `json:"cf_refund_id,omitempty"` // Merchant’s order Id of the order for which refund is initiated diff --git a/model_refund_speed.go b/model_refund_speed.go index b0b6878..18d26e6 100644 --- a/model_refund_speed.go +++ b/model_refund_speed.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_refund_webhook.go b/model_refund_webhook.go index fe17d83..ba17002 100644 --- a/model_refund_webhook.go +++ b/model_refund_webhook.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_refund_webhook_data_entity.go b/model_refund_webhook_data_entity.go index 7aec174..826b096 100644 --- a/model_refund_webhook_data_entity.go +++ b/model_refund_webhook_data_entity.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_saved_instrument_meta.go b/model_saved_instrument_meta.go index 2f37a03..9ccc9fb 100644 --- a/model_saved_instrument_meta.go +++ b/model_saved_instrument_meta.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_settlement_entity.go b/model_settlement_entity.go index 12e82e6..e3c311d 100644 --- a/model_settlement_entity.go +++ b/model_settlement_entity.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ @@ -21,8 +21,8 @@ var _ MappedNullable = &SettlementEntity{} // SettlementEntity Settlement entity object type SettlementEntity struct { - CfPaymentId *int64 `json:"cf_payment_id,omitempty"` - CfSettlementId *int64 `json:"cf_settlement_id,omitempty"` + CfPaymentId *string `json:"cf_payment_id,omitempty"` + CfSettlementId *string `json:"cf_settlement_id,omitempty"` SettlementCurrency *string `json:"settlement_currency,omitempty"` OrderId *string `json:"order_id,omitempty"` Entity *string `json:"entity,omitempty"` diff --git a/model_settlement_fetch_recon_request.go b/model_settlement_fetch_recon_request.go index dda60a7..f279008 100644 --- a/model_settlement_fetch_recon_request.go +++ b/model_settlement_fetch_recon_request.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ @@ -22,7 +22,7 @@ var _ MappedNullable = &SettlementFetchReconRequest{} // SettlementFetchReconRequest Recon Request Object type SettlementFetchReconRequest struct { Pagination FetchSettlementsRequestPagination `json:"pagination"` - Filters SettlementFetchReconRequestFilters `json:"filters"` + Filters FetchSettlementsRequestFilters `json:"filters"` } diff --git a/model_settlement_recon_entity.go b/model_settlement_recon_entity.go index 3a29e88..ef51c8b 100644 --- a/model_settlement_recon_entity.go +++ b/model_settlement_recon_entity.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_settlement_recon_entity_data_inner.go b/model_settlement_recon_entity_data_inner.go index afa9b9f..4251de3 100644 --- a/model_settlement_recon_entity_data_inner.go +++ b/model_settlement_recon_entity_data_inner.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ @@ -60,9 +60,9 @@ type SettlementReconEntityDataInner struct { // Service tax applicable on the payment. PaymentServiceTax *float32 `json:"payment_service_tax,omitempty"` // Cashfree Payments unique ID to identify a payment. - CfPaymentId *int64 `json:"cf_payment_id,omitempty"` + CfPaymentId *string `json:"cf_payment_id,omitempty"` // Unique ID to identify the settlement. - CfSettlementId *int32 `json:"cf_settlement_id,omitempty"` + CfSettlementId *string `json:"cf_settlement_id,omitempty"` // Date and time when the settlement was processed. SettlementDate *string `json:"settlement_date,omitempty"` // Unique transaction reference number of the settlement. diff --git a/model_settlement_webhook.go b/model_settlement_webhook.go index ba1d155..1ec065f 100644 --- a/model_settlement_webhook.go +++ b/model_settlement_webhook.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_settlement_webhook_data_entity.go b/model_settlement_webhook_data_entity.go index ed14cd8..a9322b9 100644 --- a/model_settlement_webhook_data_entity.go +++ b/model_settlement_webhook_data_entity.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_terminal_details.go b/model_terminal_details.go index 28536ca..07a6bf5 100644 --- a/model_terminal_details.go +++ b/model_terminal_details.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ @@ -24,7 +24,7 @@ type TerminalDetails struct { // date time at which terminal is added AddedOn *string `json:"added_on,omitempty"` // cashfree terminal id - CfTerminalId *int32 `json:"cf_terminal_id,omitempty"` + CfTerminalId *string `json:"cf_terminal_id,omitempty"` // last instant when this terminal was updated LastUpdatedOn *string `json:"last_updated_on,omitempty"` // location of terminal diff --git a/model_terminal_entity.go b/model_terminal_entity.go index 4883af0..47b34d6 100644 --- a/model_terminal_entity.go +++ b/model_terminal_entity.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_terminal_transaction_entity.go b/model_terminal_transaction_entity.go index 6bb3d0c..4bb80b3 100644 --- a/model_terminal_transaction_entity.go +++ b/model_terminal_transaction_entity.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ @@ -21,7 +21,7 @@ var _ MappedNullable = &TerminalTransactionEntity{} // TerminalTransactionEntity Create terminal response object type TerminalTransactionEntity struct { - CfPaymentId *int64 `json:"cf_payment_id,omitempty"` + CfPaymentId *string `json:"cf_payment_id,omitempty"` PaymentAmount *int32 `json:"payment_amount,omitempty"` PaymentMethod *string `json:"payment_method,omitempty"` PaymentUrl *string `json:"payment_url,omitempty"` diff --git a/model_upi.go b/model_upi.go index 79ffeec..92567a8 100644 --- a/model_upi.go +++ b/model_upi.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_upi_authorize_details.go b/model_upi_authorize_details.go index b8f6bbd..c6c9884 100644 --- a/model_upi_authorize_details.go +++ b/model_upi_authorize_details.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_upi_payment_method.go b/model_upi_payment_method.go index 2ffb9c7..d240614 100644 --- a/model_upi_payment_method.go +++ b/model_upi_payment_method.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_vendor_split.go b/model_vendor_split.go index d78cdbd..7e8cfae 100644 --- a/model_vendor_split.go +++ b/model_vendor_split.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/model_wallet_offer.go b/model_wallet_offer.go index 7d45727..832be37 100644 --- a/model_wallet_offer.go +++ b/model_wallet_offer.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/response.go b/response.go index 3765465..66778d9 100644 --- a/response.go +++ b/response.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */ diff --git a/utils.go b/utils.go index a955f1e..d23d36c 100644 --- a/utils.go +++ b/utils.go @@ -3,7 +3,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. -API version: 2022-09-01 +API version: 2023-08-01 Contact: developers@cashfree.com */