From 62fd34231706065cc8bf6031c3510bb5b0e310e3 Mon Sep 17 00:00:00 2001 From: bitbucket-pipelines Date: Wed, 24 Jan 2024 10:22:58 +0000 Subject: [PATCH] Generating .Net SDK. --- .openapi-generator/FILES | 51 +- cashfree_pg.sln | 10 +- docs/CreateLinkRequest.md | 2 +- docs/CreateTerminalTransactionRequest.md | 4 +- docs/CustomerDetails.md | 1 - docs/EligibilityApi.md | 56 +- docs/FetchSettlementsRequestFilters.md | 2 +- docs/LinkEntity.md | 4 +- docs/OfferValidations.md | 1 + docs/OffersApi.md | 16 +- docs/OrderAuthenticateEntity.md | 2 +- docs/OrderEntity.md | 7 +- docs/OrderMeta.md | 2 +- docs/OrdersApi.md | 108 +--- docs/PGReconciliationApi.md | 8 +- docs/PayOrderEntity.md | 2 +- docs/PaymentEntity.md | 4 +- docs/PaymentLinkOrderEntity.md | 5 +- docs/PaymentLinksApi.md | 32 +- docs/PaymentMethodAppInPaymentsEntity.md | 4 +- docs/PaymentMethodAppInPaymentsEntityApp.md | 12 + docs/PaymentMethodCardEMIInPaymentsEntity.md | 11 + ...PaymentMethodCardEMIInPaymentsEntityEmi.md | 18 + ...hodCardEMIInPaymentsEntityEmiEmiDetails.md | 12 + docs/PaymentMethodCardInPaymentsEntity.md | 8 +- docs/PaymentMethodCardInPaymentsEntityCard.md | 16 + ...aymentMethodCardlessEMIInPaymentsEntity.md | 4 +- ...mentMethodInPaymentsEntityPaymentMethod.md | 19 +- ...PaymentMethodNetBankingInPaymentsEntity.md | 4 +- ...hodNetBankingInPaymentsEntityNetbanking.md | 12 + docs/PaymentMethodPaylaterInPaymentsEntity.md | 4 +- docs/PaymentMethodUPIInPaymentsEntity.md | 3 +- docs/PaymentMethodUPIInPaymentsEntityUpi.md | 11 + docs/PaymentMethodsFilters.md | 2 +- docs/PaymentsApi.md | 40 +- docs/ReconEntityDataInner.md | 4 +- docs/RefundEntity.md | 2 +- docs/RefundsApi.md | 24 +- docs/SettlementEntity.md | 4 +- docs/SettlementFetchReconRequest.md | 2 +- docs/SettlementReconEntityDataInner.md | 4 +- docs/SettlementReconciliationApi.md | 16 +- docs/SettlementsApi.md | 8 +- docs/SoftPOSApi.md | 38 +- docs/TerminalDetails.md | 2 +- docs/TerminalTransactionEntity.md | 2 +- docs/TokenVaultApi.md | 32 +- src/cashfree_pg/Client/ApiClient.cs | 486 ++++-------------- src/cashfree_pg/Client/ApiException.cs | 2 +- src/cashfree_pg/Client/ApiResponse.cs | 2 +- src/cashfree_pg/Client/ClientUtils.cs | 2 +- src/cashfree_pg/Client/Configuration.cs | 10 +- src/cashfree_pg/Client/ExceptionFactory.cs | 2 +- src/cashfree_pg/Client/GlobalConfiguration.cs | 2 +- src/cashfree_pg/Client/HttpMethod.cs | 2 +- src/cashfree_pg/Client/IApiAccessor.cs | 2 +- src/cashfree_pg/Client/IAsynchronousClient.cs | 2 +- .../Client/IReadableConfiguration.cs | 2 +- src/cashfree_pg/Client/ISynchronousClient.cs | 2 +- src/cashfree_pg/Client/Multimap.cs | 2 +- .../Client/OpenAPIDateConverter.cs | 2 +- src/cashfree_pg/Client/RequestOptions.cs | 2 +- src/cashfree_pg/Client/RetryConfiguration.cs | 2 +- .../Model/AbstractOpenAPISchema.cs | 2 +- src/cashfree_pg/Model/ApiError.cs | 2 +- src/cashfree_pg/Model/ApiError404.cs | 2 +- src/cashfree_pg/Model/ApiError409.cs | 2 +- src/cashfree_pg/Model/ApiError502.cs | 2 +- src/cashfree_pg/Model/App.cs | 2 +- src/cashfree_pg/Model/AppPaymentMethod.cs | 2 +- src/cashfree_pg/Model/AuthenticationError.cs | 2 +- .../Model/AuthorizationInPaymentsEntity.cs | 2 +- .../Model/AuthorizeOrderRequest.cs | 2 +- src/cashfree_pg/Model/BadRequestError.cs | 2 +- src/cashfree_pg/Model/Card.cs | 2 +- src/cashfree_pg/Model/CardEMI.cs | 2 +- src/cashfree_pg/Model/CardEMIPaymentMethod.cs | 2 +- src/cashfree_pg/Model/CardOffer.cs | 2 +- src/cashfree_pg/Model/CardPaymentMethod.cs | 2 +- src/cashfree_pg/Model/CardlessEMI.cs | 2 +- src/cashfree_pg/Model/CardlessEMIEntity.cs | 2 +- .../Model/CardlessEMIPaymentMethod.cs | 2 +- src/cashfree_pg/Model/CardlessEMIQueries.cs | 2 +- src/cashfree_pg/Model/CashbackDetails.cs | 2 +- src/cashfree_pg/Model/CreateLinkRequest.cs | 6 +- src/cashfree_pg/Model/CreateOfferRequest.cs | 2 +- src/cashfree_pg/Model/CreateOrderRequest.cs | 2 +- .../Model/CreateTerminalRequest.cs | 2 +- .../CreateTerminalRequestTerminalMeta.cs | 2 +- .../Model/CreateTerminalTransactionRequest.cs | 29 +- src/cashfree_pg/Model/CryptogramEntity.cs | 2 +- src/cashfree_pg/Model/CustomerDetails.cs | 23 +- .../Model/CustomerDetailsCardlessEMI.cs | 2 +- src/cashfree_pg/Model/DiscountDetails.cs | 2 +- src/cashfree_pg/Model/EMIOffer.cs | 2 +- src/cashfree_pg/Model/EMIPlansArray.cs | 2 +- .../Model/EligibilityCardlessEMIEntity.cs | 2 +- .../EligibilityFetchCardlessEMIRequest.cs | 2 +- .../Model/EligibilityFetchOffersRequest.cs | 2 +- .../Model/EligibilityFetchPaylaterRequest.cs | 2 +- .../EligibilityFetchPaymentMethodsRequest.cs | 2 +- .../Model/EligibilityOfferEntity.cs | 2 +- .../Model/EligibilityPaylaterEntity.cs | 2 +- .../Model/EligibilityPaymentMethodsEntity.cs | 2 +- ...bilityPaymentMethodsEntityEntityDetails.cs | 2 +- .../Model/ErrorDetailsInPaymentsEntity.cs | 2 +- src/cashfree_pg/Model/FetchReconRequest.cs | 2 +- .../Model/FetchReconRequestFilters.cs | 2 +- .../Model/FetchReconRequestPagination.cs | 2 +- .../Model/FetchSettlementsRequest.cs | 2 +- .../Model/FetchSettlementsRequestFilters.cs | 6 +- .../FetchSettlementsRequestPagination.cs | 2 +- .../Model/FetchTerminalQRCodesEntity.cs | 2 +- src/cashfree_pg/Model/IdempotencyError.cs | 2 +- src/cashfree_pg/Model/InstrumentEntity.cs | 2 +- src/cashfree_pg/Model/InstrumentWebhook.cs | 2 +- .../Model/InstrumentWebhookData.cs | 2 +- .../Model/InstrumentWebhookDataEntity.cs | 2 +- .../Model/LinkCustomerDetailsEntity.cs | 2 +- src/cashfree_pg/Model/LinkEntity.cs | 27 +- src/cashfree_pg/Model/LinkNotifyEntity.cs | 2 +- .../Model/NetBankingPaymentMethod.cs | 2 +- src/cashfree_pg/Model/Netbanking.cs | 2 +- src/cashfree_pg/Model/OfferAll.cs | 2 +- src/cashfree_pg/Model/OfferCard.cs | 2 +- src/cashfree_pg/Model/OfferDetails.cs | 2 +- src/cashfree_pg/Model/OfferEMI.cs | 2 +- src/cashfree_pg/Model/OfferEntity.cs | 2 +- src/cashfree_pg/Model/OfferFilters.cs | 2 +- src/cashfree_pg/Model/OfferMeta.cs | 2 +- src/cashfree_pg/Model/OfferNB.cs | 2 +- src/cashfree_pg/Model/OfferNBNetbanking.cs | 2 +- src/cashfree_pg/Model/OfferPaylater.cs | 2 +- src/cashfree_pg/Model/OfferQueries.cs | 2 +- src/cashfree_pg/Model/OfferTnc.cs | 2 +- src/cashfree_pg/Model/OfferType.cs | 2 +- src/cashfree_pg/Model/OfferUPI.cs | 2 +- src/cashfree_pg/Model/OfferValidations.cs | 26 +- .../Model/OfferValidationsPaymentMethod.cs | 2 +- src/cashfree_pg/Model/OfferWallet.cs | 2 +- .../Model/OrderAuthenticateEntity.cs | 14 +- .../Model/OrderAuthenticatePaymentRequest.cs | 2 +- .../Model/OrderCreateRefundRequest.cs | 2 +- src/cashfree_pg/Model/OrderEntity.cs | 74 ++- src/cashfree_pg/Model/OrderMeta.cs | 10 +- src/cashfree_pg/Model/OrderPayData.cs | 2 +- src/cashfree_pg/Model/PayOrderEntity.cs | 14 +- src/cashfree_pg/Model/PayOrderRequest.cs | 2 +- .../Model/PayOrderRequestPaymentMethod.cs | 2 +- src/cashfree_pg/Model/Paylater.cs | 2 +- src/cashfree_pg/Model/PaylaterEntity.cs | 2 +- src/cashfree_pg/Model/PaylaterOffer.cs | 2 +- .../Model/PaylaterPaymentMethod.cs | 2 +- src/cashfree_pg/Model/PaymentEntity.cs | 20 +- .../Model/PaymentLinkCustomerDetails.cs | 2 +- .../Model/PaymentLinkOrderEntity.cs | 68 ++- .../Model/PaymentMethodAppInPaymentsEntity.cs | 62 +-- .../PaymentMethodAppInPaymentsEntityApp.cs | 165 ++++++ .../PaymentMethodCardEMIInPaymentsEntity.cs | 129 +++++ ...PaymentMethodCardEMIInPaymentsEntityEmi.cs | 269 ++++++++++ ...hodCardEMIInPaymentsEntityEmiEmiDetails.cs | 153 ++++++ .../PaymentMethodCardInPaymentsEntity.cs | 134 +---- .../PaymentMethodCardInPaymentsEntityCard.cs | 237 +++++++++ ...aymentMethodCardlessEMIInPaymentsEntity.cs | 62 +-- .../Model/PaymentMethodInPaymentsEntity.cs | 2 +- ...mentMethodInPaymentsEntityPaymentMethod.cs | 50 +- ...PaymentMethodNetBankingInPaymentsEntity.cs | 73 +-- ...hodNetBankingInPaymentsEntityNetbanking.cs | 161 ++++++ .../PaymentMethodPaylaterInPaymentsEntity.cs | 62 +-- .../Model/PaymentMethodUPIInPaymentsEntity.cs | 54 +- .../PaymentMethodUPIInPaymentsEntityUpi.cs | 147 ++++++ .../Model/PaymentMethodsFilters.cs | 4 +- .../Model/PaymentMethodsQueries.cs | 2 +- src/cashfree_pg/Model/PaymentModeDetails.cs | 2 +- src/cashfree_pg/Model/PaymentWebhook.cs | 2 +- .../Model/PaymentWebhookCustomerEntity.cs | 2 +- .../Model/PaymentWebhookDataEntity.cs | 2 +- .../Model/PaymentWebhookErrorEntity.cs | 2 +- .../PaymentWebhookGatewayDetailsEntity.cs | 2 +- .../Model/PaymentWebhookOrderEntity.cs | 2 +- src/cashfree_pg/Model/RateLimitError.cs | 2 +- src/cashfree_pg/Model/ReconEntity.cs | 2 +- src/cashfree_pg/Model/ReconEntityDataInner.cs | 24 +- src/cashfree_pg/Model/RefundEntity.cs | 14 +- src/cashfree_pg/Model/RefundSpeed.cs | 2 +- src/cashfree_pg/Model/RefundWebhook.cs | 4 +- .../Model/RefundWebhookDataEntity.cs | 2 +- src/cashfree_pg/Model/SavedInstrumentMeta.cs | 2 +- src/cashfree_pg/Model/SettlementEntity.cs | 24 +- .../Model/SettlementFetchReconRequest.cs | 6 +- .../Model/SettlementReconEntity.cs | 2 +- .../Model/SettlementReconEntityDataInner.cs | 24 +- src/cashfree_pg/Model/SettlementWebhook.cs | 2 +- .../Model/SettlementWebhookDataEntity.cs | 2 +- src/cashfree_pg/Model/TerminalDetails.cs | 14 +- src/cashfree_pg/Model/TerminalEntity.cs | 2 +- .../Model/TerminalTransactionEntity.cs | 14 +- src/cashfree_pg/Model/UPIAuthorizeDetails.cs | 2 +- src/cashfree_pg/Model/UPIPaymentMethod.cs | 2 +- src/cashfree_pg/Model/Upi.cs | 2 +- src/cashfree_pg/Model/VendorSplit.cs | 2 +- src/cashfree_pg/Model/WalletOffer.cs | 2 +- src/cashfree_pg/cashfree_pg.csproj | 2 +- 203 files changed, 2178 insertions(+), 1394 deletions(-) create mode 100644 docs/PaymentMethodAppInPaymentsEntityApp.md create mode 100644 docs/PaymentMethodCardEMIInPaymentsEntity.md create mode 100644 docs/PaymentMethodCardEMIInPaymentsEntityEmi.md create mode 100644 docs/PaymentMethodCardEMIInPaymentsEntityEmiEmiDetails.md create mode 100644 docs/PaymentMethodCardInPaymentsEntityCard.md create mode 100644 docs/PaymentMethodNetBankingInPaymentsEntityNetbanking.md create mode 100644 docs/PaymentMethodUPIInPaymentsEntityUpi.md create mode 100644 src/cashfree_pg/Model/PaymentMethodAppInPaymentsEntityApp.cs create mode 100644 src/cashfree_pg/Model/PaymentMethodCardEMIInPaymentsEntity.cs create mode 100644 src/cashfree_pg/Model/PaymentMethodCardEMIInPaymentsEntityEmi.cs create mode 100644 src/cashfree_pg/Model/PaymentMethodCardEMIInPaymentsEntityEmiEmiDetails.cs create mode 100644 src/cashfree_pg/Model/PaymentMethodCardInPaymentsEntityCard.cs create mode 100644 src/cashfree_pg/Model/PaymentMethodNetBankingInPaymentsEntityNetbanking.cs create mode 100644 src/cashfree_pg/Model/PaymentMethodUPIInPaymentsEntityUpi.cs diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 78294b5..14d2bfb 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -24,7 +24,6 @@ docs/CardlessEMIEntity.md docs/CardlessEMIPaymentMethod.md docs/CardlessEMIQueries.md docs/CashbackDetails.md -docs/CreateCustomerRequest.md docs/CreateLinkRequest.md docs/CreateOfferRequest.md docs/CreateOrderRequest.md @@ -34,8 +33,6 @@ 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 @@ -64,7 +61,7 @@ docs/InstrumentWebhookData.md docs/InstrumentWebhookDataEntity.md docs/LinkCustomerDetailsEntity.md docs/LinkEntity.md -docs/LinkMetaResponseEntity.md +docs/LinkMetaEntity.md docs/LinkNotifyEntity.md docs/NetBankingPaymentMethod.md docs/Netbanking.md @@ -106,16 +103,24 @@ docs/PaymentLinkCustomerDetails.md docs/PaymentLinkOrderEntity.md docs/PaymentLinksApi.md docs/PaymentMethodAppInPaymentsEntity.md +docs/PaymentMethodAppInPaymentsEntityApp.md +docs/PaymentMethodCardEMIInPaymentsEntity.md +docs/PaymentMethodCardEMIInPaymentsEntityEmi.md +docs/PaymentMethodCardEMIInPaymentsEntityEmiEmiDetails.md docs/PaymentMethodCardInPaymentsEntity.md +docs/PaymentMethodCardInPaymentsEntityCard.md docs/PaymentMethodCardlessEMIInPaymentsEntity.md docs/PaymentMethodInPaymentsEntity.md docs/PaymentMethodInPaymentsEntityPaymentMethod.md docs/PaymentMethodNetBankingInPaymentsEntity.md +docs/PaymentMethodNetBankingInPaymentsEntityNetbanking.md docs/PaymentMethodPaylaterInPaymentsEntity.md docs/PaymentMethodUPIInPaymentsEntity.md +docs/PaymentMethodUPIInPaymentsEntityUpi.md docs/PaymentMethodsFilters.md docs/PaymentMethodsQueries.md docs/PaymentModeDetails.md +docs/PaymentURLObject.md docs/PaymentWebhook.md docs/PaymentWebhookCustomerEntity.md docs/PaymentWebhookDataEntity.md @@ -128,15 +133,18 @@ 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 @@ -144,7 +152,6 @@ docs/SoftPOSApi.md docs/TerminalDetails.md docs/TerminalEntity.md docs/TerminalTransactionEntity.md -docs/TerminateOrderRequest.md docs/TokenVaultApi.md docs/UPIAuthorizeDetails.md docs/UPIPaymentMethod.md @@ -152,7 +159,6 @@ docs/Upi.md docs/VendorSplit.md docs/WalletOffer.md git_push.sh -src/cashfree_pg.Test/Api/CustomersApiTests.cs src/cashfree_pg.Test/Api/EligibilityApiTests.cs src/cashfree_pg.Test/Api/OffersApiTests.cs src/cashfree_pg.Test/Api/OrdersApiTests.cs @@ -184,7 +190,6 @@ src/cashfree_pg.Test/Model/CardlessEMIPaymentMethodTests.cs src/cashfree_pg.Test/Model/CardlessEMIQueriesTests.cs src/cashfree_pg.Test/Model/CardlessEMITests.cs src/cashfree_pg.Test/Model/CashbackDetailsTests.cs -src/cashfree_pg.Test/Model/CreateCustomerRequestTests.cs src/cashfree_pg.Test/Model/CreateLinkRequestTests.cs src/cashfree_pg.Test/Model/CreateOfferRequestTests.cs src/cashfree_pg.Test/Model/CreateOrderRequestTests.cs @@ -194,7 +199,6 @@ src/cashfree_pg.Test/Model/CreateTerminalTransactionRequestTests.cs src/cashfree_pg.Test/Model/CryptogramEntityTests.cs src/cashfree_pg.Test/Model/CustomerDetailsCardlessEMITests.cs src/cashfree_pg.Test/Model/CustomerDetailsTests.cs -src/cashfree_pg.Test/Model/CustomerEntityTests.cs src/cashfree_pg.Test/Model/DiscountDetailsTests.cs src/cashfree_pg.Test/Model/EMIOfferTests.cs src/cashfree_pg.Test/Model/EMIPlansArrayTests.cs @@ -222,7 +226,7 @@ src/cashfree_pg.Test/Model/InstrumentWebhookDataTests.cs src/cashfree_pg.Test/Model/InstrumentWebhookTests.cs src/cashfree_pg.Test/Model/LinkCustomerDetailsEntityTests.cs src/cashfree_pg.Test/Model/LinkEntityTests.cs -src/cashfree_pg.Test/Model/LinkMetaResponseEntityTests.cs +src/cashfree_pg.Test/Model/LinkMetaEntityTests.cs src/cashfree_pg.Test/Model/LinkNotifyEntityTests.cs src/cashfree_pg.Test/Model/NetBankingPaymentMethodTests.cs src/cashfree_pg.Test/Model/NetbankingTests.cs @@ -259,17 +263,25 @@ src/cashfree_pg.Test/Model/PaylaterTests.cs src/cashfree_pg.Test/Model/PaymentEntityTests.cs src/cashfree_pg.Test/Model/PaymentLinkCustomerDetailsTests.cs src/cashfree_pg.Test/Model/PaymentLinkOrderEntityTests.cs +src/cashfree_pg.Test/Model/PaymentMethodAppInPaymentsEntityAppTests.cs src/cashfree_pg.Test/Model/PaymentMethodAppInPaymentsEntityTests.cs +src/cashfree_pg.Test/Model/PaymentMethodCardEMIInPaymentsEntityEmiEmiDetailsTests.cs +src/cashfree_pg.Test/Model/PaymentMethodCardEMIInPaymentsEntityEmiTests.cs +src/cashfree_pg.Test/Model/PaymentMethodCardEMIInPaymentsEntityTests.cs +src/cashfree_pg.Test/Model/PaymentMethodCardInPaymentsEntityCardTests.cs src/cashfree_pg.Test/Model/PaymentMethodCardInPaymentsEntityTests.cs src/cashfree_pg.Test/Model/PaymentMethodCardlessEMIInPaymentsEntityTests.cs src/cashfree_pg.Test/Model/PaymentMethodInPaymentsEntityPaymentMethodTests.cs src/cashfree_pg.Test/Model/PaymentMethodInPaymentsEntityTests.cs +src/cashfree_pg.Test/Model/PaymentMethodNetBankingInPaymentsEntityNetbankingTests.cs src/cashfree_pg.Test/Model/PaymentMethodNetBankingInPaymentsEntityTests.cs src/cashfree_pg.Test/Model/PaymentMethodPaylaterInPaymentsEntityTests.cs src/cashfree_pg.Test/Model/PaymentMethodUPIInPaymentsEntityTests.cs +src/cashfree_pg.Test/Model/PaymentMethodUPIInPaymentsEntityUpiTests.cs src/cashfree_pg.Test/Model/PaymentMethodsFiltersTests.cs src/cashfree_pg.Test/Model/PaymentMethodsQueriesTests.cs src/cashfree_pg.Test/Model/PaymentModeDetailsTests.cs +src/cashfree_pg.Test/Model/PaymentURLObjectTests.cs src/cashfree_pg.Test/Model/PaymentWebhookCustomerEntityTests.cs src/cashfree_pg.Test/Model/PaymentWebhookDataEntityTests.cs src/cashfree_pg.Test/Model/PaymentWebhookErrorEntityTests.cs @@ -281,26 +293,27 @@ src/cashfree_pg.Test/Model/ReconEntityDataInnerTests.cs src/cashfree_pg.Test/Model/ReconEntityTests.cs src/cashfree_pg.Test/Model/RefundEntityTests.cs src/cashfree_pg.Test/Model/RefundSpeedTests.cs +src/cashfree_pg.Test/Model/RefundURLObjectTests.cs src/cashfree_pg.Test/Model/RefundWebhookDataEntityTests.cs src/cashfree_pg.Test/Model/RefundWebhookTests.cs src/cashfree_pg.Test/Model/SavedInstrumentMetaTests.cs src/cashfree_pg.Test/Model/SettlementEntityTests.cs +src/cashfree_pg.Test/Model/SettlementFetchReconRequestFiltersTests.cs src/cashfree_pg.Test/Model/SettlementFetchReconRequestTests.cs src/cashfree_pg.Test/Model/SettlementReconEntityDataInnerTests.cs src/cashfree_pg.Test/Model/SettlementReconEntityTests.cs +src/cashfree_pg.Test/Model/SettlementURLObjectTests.cs src/cashfree_pg.Test/Model/SettlementWebhookDataEntityTests.cs src/cashfree_pg.Test/Model/SettlementWebhookTests.cs src/cashfree_pg.Test/Model/TerminalDetailsTests.cs src/cashfree_pg.Test/Model/TerminalEntityTests.cs src/cashfree_pg.Test/Model/TerminalTransactionEntityTests.cs -src/cashfree_pg.Test/Model/TerminateOrderRequestTests.cs src/cashfree_pg.Test/Model/UPIAuthorizeDetailsTests.cs src/cashfree_pg.Test/Model/UPIPaymentMethodTests.cs src/cashfree_pg.Test/Model/UpiTests.cs src/cashfree_pg.Test/Model/VendorSplitTests.cs src/cashfree_pg.Test/Model/WalletOfferTests.cs src/cashfree_pg.Test/cashfree_pg.Test.csproj -src/cashfree_pg/Api/CustomersApi.cs src/cashfree_pg/Api/EligibilityApi.cs src/cashfree_pg/Api/OffersApi.cs src/cashfree_pg/Api/OrdersApi.cs @@ -349,7 +362,6 @@ src/cashfree_pg/Model/CardlessEMIEntity.cs src/cashfree_pg/Model/CardlessEMIPaymentMethod.cs src/cashfree_pg/Model/CardlessEMIQueries.cs src/cashfree_pg/Model/CashbackDetails.cs -src/cashfree_pg/Model/CreateCustomerRequest.cs src/cashfree_pg/Model/CreateLinkRequest.cs src/cashfree_pg/Model/CreateOfferRequest.cs src/cashfree_pg/Model/CreateOrderRequest.cs @@ -359,7 +371,6 @@ src/cashfree_pg/Model/CreateTerminalTransactionRequest.cs src/cashfree_pg/Model/CryptogramEntity.cs src/cashfree_pg/Model/CustomerDetails.cs src/cashfree_pg/Model/CustomerDetailsCardlessEMI.cs -src/cashfree_pg/Model/CustomerEntity.cs src/cashfree_pg/Model/DiscountDetails.cs src/cashfree_pg/Model/EMIOffer.cs src/cashfree_pg/Model/EMIPlansArray.cs @@ -387,7 +398,7 @@ src/cashfree_pg/Model/InstrumentWebhookData.cs src/cashfree_pg/Model/InstrumentWebhookDataEntity.cs src/cashfree_pg/Model/LinkCustomerDetailsEntity.cs src/cashfree_pg/Model/LinkEntity.cs -src/cashfree_pg/Model/LinkMetaResponseEntity.cs +src/cashfree_pg/Model/LinkMetaEntity.cs src/cashfree_pg/Model/LinkNotifyEntity.cs src/cashfree_pg/Model/NetBankingPaymentMethod.cs src/cashfree_pg/Model/Netbanking.cs @@ -425,16 +436,24 @@ src/cashfree_pg/Model/PaymentEntity.cs src/cashfree_pg/Model/PaymentLinkCustomerDetails.cs src/cashfree_pg/Model/PaymentLinkOrderEntity.cs src/cashfree_pg/Model/PaymentMethodAppInPaymentsEntity.cs +src/cashfree_pg/Model/PaymentMethodAppInPaymentsEntityApp.cs +src/cashfree_pg/Model/PaymentMethodCardEMIInPaymentsEntity.cs +src/cashfree_pg/Model/PaymentMethodCardEMIInPaymentsEntityEmi.cs +src/cashfree_pg/Model/PaymentMethodCardEMIInPaymentsEntityEmiEmiDetails.cs src/cashfree_pg/Model/PaymentMethodCardInPaymentsEntity.cs +src/cashfree_pg/Model/PaymentMethodCardInPaymentsEntityCard.cs src/cashfree_pg/Model/PaymentMethodCardlessEMIInPaymentsEntity.cs src/cashfree_pg/Model/PaymentMethodInPaymentsEntity.cs src/cashfree_pg/Model/PaymentMethodInPaymentsEntityPaymentMethod.cs src/cashfree_pg/Model/PaymentMethodNetBankingInPaymentsEntity.cs +src/cashfree_pg/Model/PaymentMethodNetBankingInPaymentsEntityNetbanking.cs src/cashfree_pg/Model/PaymentMethodPaylaterInPaymentsEntity.cs src/cashfree_pg/Model/PaymentMethodUPIInPaymentsEntity.cs +src/cashfree_pg/Model/PaymentMethodUPIInPaymentsEntityUpi.cs src/cashfree_pg/Model/PaymentMethodsFilters.cs src/cashfree_pg/Model/PaymentMethodsQueries.cs src/cashfree_pg/Model/PaymentModeDetails.cs +src/cashfree_pg/Model/PaymentURLObject.cs src/cashfree_pg/Model/PaymentWebhook.cs src/cashfree_pg/Model/PaymentWebhookCustomerEntity.cs src/cashfree_pg/Model/PaymentWebhookDataEntity.cs @@ -446,19 +465,21 @@ src/cashfree_pg/Model/ReconEntity.cs src/cashfree_pg/Model/ReconEntityDataInner.cs src/cashfree_pg/Model/RefundEntity.cs src/cashfree_pg/Model/RefundSpeed.cs +src/cashfree_pg/Model/RefundURLObject.cs src/cashfree_pg/Model/RefundWebhook.cs src/cashfree_pg/Model/RefundWebhookDataEntity.cs src/cashfree_pg/Model/SavedInstrumentMeta.cs src/cashfree_pg/Model/SettlementEntity.cs src/cashfree_pg/Model/SettlementFetchReconRequest.cs +src/cashfree_pg/Model/SettlementFetchReconRequestFilters.cs src/cashfree_pg/Model/SettlementReconEntity.cs src/cashfree_pg/Model/SettlementReconEntityDataInner.cs +src/cashfree_pg/Model/SettlementURLObject.cs src/cashfree_pg/Model/SettlementWebhook.cs src/cashfree_pg/Model/SettlementWebhookDataEntity.cs src/cashfree_pg/Model/TerminalDetails.cs src/cashfree_pg/Model/TerminalEntity.cs src/cashfree_pg/Model/TerminalTransactionEntity.cs -src/cashfree_pg/Model/TerminateOrderRequest.cs src/cashfree_pg/Model/UPIAuthorizeDetails.cs src/cashfree_pg/Model/UPIPaymentMethod.cs src/cashfree_pg/Model/Upi.cs diff --git a/cashfree_pg.sln b/cashfree_pg.sln index 867ae35..ae57567 100644 --- a/cashfree_pg.sln +++ b/cashfree_pg.sln @@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 14 VisualStudioVersion = 14.0.25420.1 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "cashfree_pg", "src\cashfree_pg\cashfree_pg.csproj", "{C1D4784B-A34A-439C-8F9E-3D7F7D693D47}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "cashfree_pg", "src\cashfree_pg\cashfree_pg.csproj", "{28FB064A-669F-4CB1-9D3B-B9D67E00F02F}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "cashfree_pg.Test", "src\cashfree_pg.Test\cashfree_pg.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}" EndProject @@ -12,10 +12,10 @@ Global Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {C1D4784B-A34A-439C-8F9E-3D7F7D693D47}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {C1D4784B-A34A-439C-8F9E-3D7F7D693D47}.Debug|Any CPU.Build.0 = Debug|Any CPU - {C1D4784B-A34A-439C-8F9E-3D7F7D693D47}.Release|Any CPU.ActiveCfg = Release|Any CPU - {C1D4784B-A34A-439C-8F9E-3D7F7D693D47}.Release|Any CPU.Build.0 = Release|Any CPU + {28FB064A-669F-4CB1-9D3B-B9D67E00F02F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {28FB064A-669F-4CB1-9D3B-B9D67E00F02F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {28FB064A-669F-4CB1-9D3B-B9D67E00F02F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {28FB064A-669F-4CB1-9D3B-B9D67E00F02F}.Release|Any CPU.Build.0 = Release|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU diff --git a/docs/CreateLinkRequest.md b/docs/CreateLinkRequest.md index d513b09..2dd8353 100644 --- a/docs/CreateLinkRequest.md +++ b/docs/CreateLinkRequest.md @@ -16,7 +16,7 @@ Name | Type | Description | Notes **link_notify** | [**LinkNotifyEntity**](LinkNotifyEntity.md) | | [optional] **link_auto_reminders** | **bool** | If \"true\", reminders will be sent to customers for collecting payments. | [optional] **link_notes** | **Dictionary<string, string>** | Key-value pair that can be used to store additional information about the entity. Maximum 5 key-value pairs | [optional] -**link_meta** | [**LinkMetaResponseEntity**](LinkMetaResponseEntity.md) | | [optional] +**link_meta** | [**LinkMetaEntity**](LinkMetaEntity.md) | | [optional] [[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/CreateTerminalTransactionRequest.md b/docs/CreateTerminalTransactionRequest.md index 9aa4b55..b564003 100644 --- a/docs/CreateTerminalTransactionRequest.md +++ b/docs/CreateTerminalTransactionRequest.md @@ -5,8 +5,8 @@ Request body to create a terminal transaction Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**cf_order_id** | **string** | cashfree order ID that was returned while creating an order. | -**cf_terminal_id** | **string** | cashfree terminal id. this is a required parameter when you do not provide the terminal phone number. | [optional] +**cf_order_id** | **long** | cashfree order ID that was returned while creating an order. | +**cf_terminal_id** | **long** | cashfree terminal id. this is a required parameter when you do not provide the terminal phone number. | [optional] **payment_method** | **string** | mention the payment method used for the transaction. possible values - QR_CODE, LINK. | **terminal_phone_no** | **string** | agent mobile number assigned to the terminal. this is a required parameter when you do not provide the cf_terminal_id. | [optional] diff --git a/docs/CustomerDetails.md b/docs/CustomerDetails.md index f637888..2eeea10 100644 --- a/docs/CustomerDetails.md +++ b/docs/CustomerDetails.md @@ -12,7 +12,6 @@ Name | Type | Description | Notes **customer_bank_account_number** | **string** | Customer bank account. Required if you want to do a bank account check (TPV) | [optional] **customer_bank_ifsc** | **string** | Customer bank IFSC. Required if you want to do a bank account check (TPV) | [optional] **customer_bank_code** | **decimal** | Customer bank code. Required for net banking payments, if you want to do a bank account check (TPV) | [optional] -**customer_uid** | **string** | Customer identifier at Cashfree. You will get this when you create/get customer | [optional] [[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 d868831..3215551 100644 --- a/docs/EligibilityApi.md +++ b/docs/EligibilityApi.md @@ -4,16 +4,16 @@ 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 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 | +| [**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** > List<EligibilityCardlessEMIEntity> PGEligibilityFetchCardlessEMI (string xApiVersion, EligibilityFetchCardlessEMIRequest eligibilityFetchCardlessEMIRequest, string? xRequestId = null, Guid? xIdempotencyKey = null) -Get Eligible Cardless EMI Payment Methods for a customer on an order +Get Eligible Cardless EMI Use this API to get eligible Cardless EMI Payment Methods available for a customer on an order basis their phone number. @@ -39,14 +39,14 @@ namespace Example var cashfree = new Cashfree(); - var xApiVersion = 2023-08-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2023-08-01") + var xApiVersion = 2022-09-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2022-09-01") var eligibilityFetchCardlessEMIRequest = new EligibilityFetchCardlessEMIRequest(); // EligibilityFetchCardlessEMIRequest | Request Body to get eligible cardless emi options for a customer and order var xRequestId = 4dfb9780-46fe-11ee-be56-0242ac120002; // string? | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional) - var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) + var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) try { - // Get Eligible Cardless EMI Payment Methods for a customer on an order + // Get Eligible Cardless EMI List result = cashfree.PGEligibilityFetchCardlessEMI(xApiVersion, eligibilityFetchCardlessEMIRequest, xRequestId, xIdempotencyKey); Debug.WriteLine(result); } @@ -65,10 +65,10 @@ namespace Example | Name | Type | Description | Notes | |------|------|-------------|-------| -| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] | +| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-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 | [optional] | -| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] | +| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] | ### Return type @@ -103,7 +103,7 @@ namespace Example # **PGEligibilityFetchOffers** > List<EligibilityOfferEntity> PGEligibilityFetchOffers (string xApiVersion, EligibilityFetchOffersRequest eligibilityFetchOffersRequest, string? xRequestId = null, Guid? xIdempotencyKey = null) -Get Eligible Offers for an Order +Get Eligible Offers Use this API to get eligible offers for an order_id or order amount. @@ -129,14 +129,14 @@ namespace Example var cashfree = new Cashfree(); - var xApiVersion = 2023-08-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2023-08-01") + var xApiVersion = 2022-09-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2022-09-01") var eligibilityFetchOffersRequest = new EligibilityFetchOffersRequest(); // EligibilityFetchOffersRequest | Request Body to get eligible offers for a customer and order var xRequestId = 4dfb9780-46fe-11ee-be56-0242ac120002; // string? | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional) - var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) + var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) try { - // Get Eligible Offers for an Order + // Get Eligible Offers List result = cashfree.PGEligibilityFetchOffers(xApiVersion, eligibilityFetchOffersRequest, xRequestId, xIdempotencyKey); Debug.WriteLine(result); } @@ -155,10 +155,10 @@ namespace Example | Name | Type | Description | Notes | |------|------|-------------|-------| -| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] | +| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-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 | [optional] | -| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] | +| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] | ### Return type @@ -192,7 +192,7 @@ namespace Example # **PGEligibilityFetchPaylater** > List<EligibilityPaylaterEntity> PGEligibilityFetchPaylater (string xApiVersion, EligibilityFetchPaylaterRequest eligibilityFetchPaylaterRequest, string? xRequestId = null, Guid? xIdempotencyKey = null) -Get Eligible Paylater for a customer on an order +Get Eligible Paylater Use this API to get eligible Paylater Payment Methods for a customer on an order. @@ -218,14 +218,14 @@ namespace Example var cashfree = new Cashfree(); - var xApiVersion = 2023-08-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2023-08-01") + var xApiVersion = 2022-09-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2022-09-01") var eligibilityFetchPaylaterRequest = new EligibilityFetchPaylaterRequest(); // EligibilityFetchPaylaterRequest | Request Body to get eligible paylater options for a customer and order var xRequestId = 4dfb9780-46fe-11ee-be56-0242ac120002; // string? | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional) - var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) + var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) try { - // Get Eligible Paylater for a customer on an order + // Get Eligible Paylater List result = cashfree.PGEligibilityFetchPaylater(xApiVersion, eligibilityFetchPaylaterRequest, xRequestId, xIdempotencyKey); Debug.WriteLine(result); } @@ -244,10 +244,10 @@ namespace Example | Name | Type | Description | Notes | |------|------|-------------|-------| -| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] | +| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-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 | [optional] | -| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] | +| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] | ### Return type @@ -282,7 +282,7 @@ namespace Example # **PGEligibilityFetchPaymentMethods** > List<EligibilityPaymentMethodsEntity> PGEligibilityFetchPaymentMethods (string xApiVersion, EligibilityFetchPaymentMethodsRequest eligibilityFetchPaymentMethodsRequest, string? xRequestId = null, Guid? xIdempotencyKey = null) -Get eligible Payment Methods +Get Eligible Payment Methods Use this API to get eligible Payment Methods @@ -308,14 +308,14 @@ namespace Example var cashfree = new Cashfree(); - var xApiVersion = 2023-08-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2023-08-01") + var xApiVersion = 2022-09-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2022-09-01") var eligibilityFetchPaymentMethodsRequest = new EligibilityFetchPaymentMethodsRequest(); // EligibilityFetchPaymentMethodsRequest | Request Body to get eligible payment methods for an account and order var xRequestId = 4dfb9780-46fe-11ee-be56-0242ac120002; // string? | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional) - var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) + var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) try { - // Get eligible Payment Methods + // Get Eligible Payment Methods List result = cashfree.PGEligibilityFetchPaymentMethods(xApiVersion, eligibilityFetchPaymentMethodsRequest, xRequestId, xIdempotencyKey); Debug.WriteLine(result); } @@ -334,10 +334,10 @@ namespace Example | Name | Type | Description | Notes | |------|------|-------------|-------| -| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] | +| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-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 | [optional] | -| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] | +| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] | ### Return type diff --git a/docs/FetchSettlementsRequestFilters.md b/docs/FetchSettlementsRequestFilters.md index c68fba5..162ec1f 100644 --- a/docs/FetchSettlementsRequestFilters.md +++ b/docs/FetchSettlementsRequestFilters.md @@ -5,7 +5,7 @@ Specify either the Settlement ID, Settlement UTR, or start date and end date to Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**cf_settlement_ids** | **List<string>** | List of settlement IDs for which you want the settlement reconciliation details. | [optional] +**cf_settlement_ids** | **List<long>** | List of settlement IDs for which you want the settlement reconciliation details. | [optional] **settlement_utrs** | **List<string>** | List of settlement UTRs for which you want the settlement reconciliation details. | [optional] **start_date** | **string** | Specify the start date from when you want the settlement reconciliation details. | [optional] **end_date** | **string** | Specify the end date till when you want the settlement reconciliation details. | [optional] diff --git a/docs/LinkEntity.md b/docs/LinkEntity.md index 4f42812..6240ccc 100644 --- a/docs/LinkEntity.md +++ b/docs/LinkEntity.md @@ -5,7 +5,7 @@ Payment link success creation response object Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**cf_link_id** | **string** | | [optional] +**cf_link_id** | **long** | | [optional] **link_id** | **string** | | [optional] **link_status** | **string** | | [optional] **link_currency** | **string** | | [optional] @@ -16,7 +16,7 @@ Name | Type | Description | Notes **link_purpose** | **string** | | [optional] **link_created_at** | **string** | | [optional] **customer_details** | [**LinkCustomerDetailsEntity**](LinkCustomerDetailsEntity.md) | | [optional] -**link_meta** | [**LinkMetaResponseEntity**](LinkMetaResponseEntity.md) | | [optional] +**link_meta** | **Dictionary<string, string>** | Payment link meta information object. | [optional] **link_url** | **string** | | [optional] **link_expiry_time** | **string** | | [optional] **link_notes** | **Dictionary<string, string>** | Key-value pair that can be used to store additional information about the entity. Maximum 5 key-value pairs | [optional] diff --git a/docs/OfferValidations.md b/docs/OfferValidations.md index 89ad171..791238e 100644 --- a/docs/OfferValidations.md +++ b/docs/OfferValidations.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **min_amount** | **decimal** | Minimum Amount for Offer to be Applicable | [optional] **payment_method** | [**OfferValidationsPaymentMethod**](OfferValidationsPaymentMethod.md) | | +**max_allowed** | **decimal** | Maximum amount of Offer that can be availed. | [[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 2fdf17d..10feb42 100644 --- a/docs/OffersApi.md +++ b/docs/OffersApi.md @@ -37,10 +37,10 @@ namespace Example var cashfree = new Cashfree(); - var xApiVersion = 2023-08-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2023-08-01") + var xApiVersion = 2022-09-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2022-09-01") var createOfferRequest = new CreateOfferRequest(); // CreateOfferRequest | Request body to create an offer at Cashfree var xRequestId = 4dfb9780-46fe-11ee-be56-0242ac120002; // string? | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional) - var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) + var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) try { @@ -63,10 +63,10 @@ namespace Example | Name | Type | Description | Notes | |------|------|-------------|-------| -| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] | +| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-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 | [optional] | -| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] | +| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] | ### Return type @@ -126,10 +126,10 @@ namespace Example var cashfree = new Cashfree(); - var xApiVersion = 2023-08-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2023-08-01") + var xApiVersion = 2022-09-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2022-09-01") var offerId = d2b430fb-1afe-455a-af31-66d00377b29a; // string | The offer ID for which you want to view the offer details. var xRequestId = 4dfb9780-46fe-11ee-be56-0242ac120002; // string? | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional) - var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) + var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) try { @@ -152,10 +152,10 @@ namespace Example | Name | Type | Description | Notes | |------|------|-------------|-------| -| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] | +| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] | | **offerId** | **string** | The offer ID for which you want to view the offer details. | | | **xRequestId** | **string?** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | [optional] | -| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] | +| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] | ### Return type diff --git a/docs/OrderAuthenticateEntity.md b/docs/OrderAuthenticateEntity.md index d08f098..ab14c62 100644 --- a/docs/OrderAuthenticateEntity.md +++ b/docs/OrderAuthenticateEntity.md @@ -5,7 +5,7 @@ This is the response shared when merchant inovkes the OTP submit or resend API Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**cf_payment_id** | **string** | The payment id for which this request was sent | [optional] +**cf_payment_id** | **decimal** | The payment id for which this request was sent | [optional] **action** | **string** | The action that was invoked for this request. | [optional] **authenticate_status** | **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] **payment_message** | **string** | Human readable message which describes the status in more detail | [optional] diff --git a/docs/OrderEntity.md b/docs/OrderEntity.md index 75bc110..4b9f26c 100644 --- a/docs/OrderEntity.md +++ b/docs/OrderEntity.md @@ -5,12 +5,12 @@ The complete order entity Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**cf_order_id** | **string** | unique id generated by cashfree for your order | [optional] +**cf_order_id** | **long** | unique id generated by cashfree for your order | [optional] **order_id** | **string** | order_id sent during the api request | [optional] **entity** | **string** | Type of the entity. | [optional] **order_currency** | **string** | Currency of the order. Example INR | [optional] **order_amount** | **decimal** | | [optional] -**order_status** | **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] +**order_status** | **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] **payment_session_id** | **string** | | [optional] **order_expiry_time** | **DateTime** | | [optional] **order_note** | **string** | Additional note for order | [optional] @@ -18,6 +18,9 @@ Name | Type | Description | Notes **order_splits** | [**List<VendorSplit>**](VendorSplit.md) | | [optional] **customer_details** | [**CustomerDetails**](CustomerDetails.md) | | [optional] **order_meta** | [**OrderMeta**](OrderMeta.md) | | [optional] +**payments** | [**PaymentURLObject**](PaymentURLObject.md) | | [optional] +**settlements** | [**SettlementURLObject**](SettlementURLObject.md) | | [optional] +**refunds** | [**RefundURLObject**](RefundURLObject.md) | | [optional] **order_tags** | **Dictionary<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] [[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/OrderMeta.md b/docs/OrderMeta.md index b301392..2570339 100644 --- a/docs/OrderMeta.md +++ b/docs/OrderMeta.md @@ -5,7 +5,7 @@ Optional meta details to control how the customer pays and how payment journey c Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**return_url** | **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] +**return_url** | **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] **notify_url** | **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] **payment_methods** | **Object** | 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 9c52bdc..79c87cb 100644 --- a/docs/OrdersApi.md +++ b/docs/OrdersApi.md @@ -6,7 +6,6 @@ All URIs are relative to *https://sandbox.cashfree.com/pg* |--------|--------------|-------------| | [**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 | # **PGCreateOrder** @@ -38,10 +37,10 @@ namespace Example var cashfree = new Cashfree(); - var xApiVersion = 2023-08-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2023-08-01") + var xApiVersion = 2022-09-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2022-09-01") var createOrderRequest = new CreateOrderRequest(); // CreateOrderRequest | Request body to create an order at cashfree var xRequestId = 4dfb9780-46fe-11ee-be56-0242ac120002; // string? | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional) - var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) + var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) try { @@ -64,10 +63,10 @@ namespace Example | Name | Type | Description | Notes | |------|------|-------------|-------| -| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] | +| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-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 | [optional] | -| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] | +| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] | ### Return type @@ -127,10 +126,10 @@ namespace Example var cashfree = new Cashfree(); - var xApiVersion = 2023-08-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2023-08-01") + var xApiVersion = 2022-09-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2022-09-01") var orderId = your-order-id; // string | The id which uniquely identifies your order var xRequestId = 4dfb9780-46fe-11ee-be56-0242ac120002; // string? | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional) - var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) + var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) try { @@ -153,10 +152,10 @@ namespace Example | Name | Type | Description | Notes | |------|------|-------------|-------| -| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] | +| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] | | **orderId** | **string** | The id which uniquely identifies your 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 | [optional] | -| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] | +| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] | ### Return type @@ -186,94 +185,3 @@ namespace Example [[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) - -# **PGTerminateOrder** -> OrderEntity PGTerminateOrder (string xApiVersion, string orderId, TerminateOrderRequest terminateOrderRequest, string? xRequestId = null, Guid? xIdempotencyKey = null) - -Terminate Order - -Use this API to terminate the order that was created at Cashfree's using the `order_id`. - -### Example -```csharp -using System.Collections.Generic; -using System.Diagnostics; -using cashfree_pg.Client; -using cashfree_pg.Model; - -namespace Example -{ - public class PGTerminateOrderExample - { - public static void Main() - { - // Configuration - Cashfree.XClientId = ""; - Cashfree.XClientSecret = ""; - Cashfree.XEnvironment = Cashfree.SANDBOX; - - // Instance of Cashfree - var cashfree = new Cashfree(); - - - var xApiVersion = 2023-08-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2023-08-01") - var orderId = your-order-id; // string | The id which uniquely identifies your order - var terminateOrderRequest = new TerminateOrderRequest(); // TerminateOrderRequest | Request body to terminate an order at cashfree - var xRequestId = 4dfb9780-46fe-11ee-be56-0242ac120002; // string? | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional) - var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) - - try - { - // Terminate Order - OrderEntity result = cashfree.PGTerminateOrder(xApiVersion, orderId, terminateOrderRequest, xRequestId, xIdempotencyKey); - Debug.WriteLine(result); - } - catch (ApiException e) - { - Debug.Print("Exception when calling OrdersApi.PGTerminateOrder: " + e.Message); - Debug.Print("Status Code: " + e.ErrorCode); - Debug.Print(e.StackTrace); - } - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------|------|-------------|-------| -| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] | -| **orderId** | **string** | The id which uniquely identifies your order | | -| **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 | [optional] | -| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] | - -### 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 - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | * x-api-version -
* x-ratelimit-limit -
* x-ratelimit-remaining -
* x-ratelimit-retry -
* x-ratelimit-type -
* x-request-id -
* x-idempotency-key -
* x-idempotency-replayed -
| -| **400** | Bad request error | * x-api-version -
* x-ratelimit-limit -
* x-ratelimit-remaining -
* x-ratelimit-retry -
* x-ratelimit-type -
* x-request-id -
* x-idempotency-key -
* x-idempotency-replayed -
| -| **401** | Authentication Error | * x-api-version -
* x-ratelimit-limit -
* x-ratelimit-remaining -
* x-ratelimit-retry -
* x-ratelimit-type -
* x-request-id -
* x-idempotency-key -
* x-idempotency-replayed -
| -| **404** | Resource Not found | * x-api-version -
* x-ratelimit-limit -
* x-ratelimit-remaining -
* x-ratelimit-retry -
* x-ratelimit-type -
* x-request-id -
* x-idempotency-key -
* x-idempotency-replayed -
| -| **409** | Resource already present | * x-api-version -
* x-ratelimit-limit -
* x-ratelimit-remaining -
* x-ratelimit-retry -
* x-ratelimit-type -
* x-request-id -
* x-idempotency-key -
* x-idempotency-replayed -
| -| **422** | Idempotency error | * x-api-version -
* x-ratelimit-limit -
* x-ratelimit-remaining -
* x-ratelimit-retry -
* x-ratelimit-type -
* x-request-id -
* x-idempotency-key -
* x-idempotency-replayed -
| -| **429** | Rate Limit Error | * x-api-version -
* x-ratelimit-limit -
* x-ratelimit-remaining -
* x-ratelimit-retry -
* x-ratelimit-type -
* x-request-id -
* x-idempotency-key -
* x-idempotency-replayed -
| -| **500** | API related Error | * x-api-version -
* x-ratelimit-limit -
* x-ratelimit-remaining -
* x-ratelimit-retry -
* x-ratelimit-type -
* x-request-id -
* x-idempotency-key -
* x-idempotency-replayed -
| - -[[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 2e3f39a..abe810d 100644 --- a/docs/PGReconciliationApi.md +++ b/docs/PGReconciliationApi.md @@ -36,11 +36,11 @@ namespace Example var cashfree = new Cashfree(); - var xApiVersion = 2023-08-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2023-08-01") + var xApiVersion = 2022-09-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2022-09-01") var fetchReconRequest = new FetchReconRequest(); // FetchReconRequest | Request Body for the reconciliation var contentType = application/json; // string? | application/json (optional) var xRequestId = 4dfb9780-46fe-11ee-be56-0242ac120002; // string? | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional) - var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) + var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) var accept = application/json; // string? | application/json (optional) try @@ -64,11 +64,11 @@ namespace Example | Name | Type | Description | Notes | |------|------|-------------|-------| -| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] | +| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] | | **fetchReconRequest** | [**FetchReconRequest**](FetchReconRequest.md) | Request Body for the reconciliation | | | **contentType** | **string?** | application/json | [optional] | | **xRequestId** | **string?** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | [optional] | -| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] | +| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] | | **accept** | **string?** | application/json | [optional] | ### Return type diff --git a/docs/PayOrderEntity.md b/docs/PayOrderEntity.md index 7e2c3c6..6427de1 100644 --- a/docs/PayOrderEntity.md +++ b/docs/PayOrderEntity.md @@ -6,7 +6,7 @@ Order Pay response once you create a transaction for that order Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **payment_amount** | **decimal** | total amount payable | [optional] -**cf_payment_id** | **string** | Payment identifier created by Cashfree | [optional] +**cf_payment_id** | **long** | Payment identifier created by Cashfree | [optional] **payment_method** | **string** | One of [\"upi\", \"netbanking\", \"card\", \"app\", \"cardless_emi\", \"paylater\", \"banktransfer\"] | [optional] **channel** | **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** | **string** | One of [\"link\", \"custom\", \"form\"] | [optional] diff --git a/docs/PaymentEntity.md b/docs/PaymentEntity.md index 36f685a..3c824ca 100644 --- a/docs/PaymentEntity.md +++ b/docs/PaymentEntity.md @@ -5,13 +5,13 @@ payment entity full object Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**cf_payment_id** | **string** | | [optional] +**cf_payment_id** | **long** | | [optional] **order_id** | **string** | | [optional] **entity** | **string** | | [optional] **error_details** | [**ErrorDetailsInPaymentsEntity**](ErrorDetailsInPaymentsEntity.md) | | [optional] **is_captured** | **bool** | | [optional] **order_amount** | **decimal** | Order amount can be different from payment amount if you collect service fee from the customer | [optional] -**payment_group** | **string** | Type of payment group. One of ['upi', 'card', 'app', 'netbanking', 'paylater', 'cardless_emi'] | [optional] +**payment_group** | **string** | Type of payment group. One of ['prepaid_card', 'upi_ppi_offline', 'cash', 'upi_credit_card', 'paypal', 'net_banking', 'cardless_emi', 'credit_card', 'bank_transfer', 'pay_later', 'debit_card_emi', 'debit_card', 'wallet', 'upi_ppi', 'upi', 'credit_card_emi'] | [optional] **payment_currency** | **string** | | [optional] **payment_amount** | **decimal** | | [optional] **payment_time** | **string** | This is the time when the payment was initiated | [optional] diff --git a/docs/PaymentLinkOrderEntity.md b/docs/PaymentLinkOrderEntity.md index fe0add0..b20a85e 100644 --- a/docs/PaymentLinkOrderEntity.md +++ b/docs/PaymentLinkOrderEntity.md @@ -5,7 +5,7 @@ The complete order entity Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**cf_order_id** | **string** | unique id generated by cashfree for your order | [optional] +**cf_order_id** | **long** | unique id generated by cashfree for your order | [optional] **link_id** | **string** | link id of the order | [optional] **order_id** | **string** | order_id sent during the api request | [optional] **entity** | **string** | Type of the entity. | [optional] @@ -19,6 +19,9 @@ Name | Type | Description | Notes **order_splits** | [**List<VendorSplit>**](VendorSplit.md) | | [optional] **customer_details** | [**PaymentLinkCustomerDetails**](PaymentLinkCustomerDetails.md) | | [optional] **order_meta** | [**OrderMeta**](OrderMeta.md) | | [optional] +**payments** | [**PaymentURLObject**](PaymentURLObject.md) | | [optional] +**settlements** | [**SettlementURLObject**](SettlementURLObject.md) | | [optional] +**refunds** | [**RefundURLObject**](RefundURLObject.md) | | [optional] **order_tags** | **Dictionary<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] [[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/PaymentLinksApi.md b/docs/PaymentLinksApi.md index 8ebc560..5c6151b 100644 --- a/docs/PaymentLinksApi.md +++ b/docs/PaymentLinksApi.md @@ -39,10 +39,10 @@ namespace Example var cashfree = new Cashfree(); - var xApiVersion = 2023-08-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2023-08-01") + var xApiVersion = 2022-09-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2022-09-01") var linkId = your-link-id; // string | The payment link ID for which you want to view the details. var xRequestId = 4dfb9780-46fe-11ee-be56-0242ac120002; // string? | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional) - var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) + var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) try { @@ -65,10 +65,10 @@ namespace Example | Name | Type | Description | Notes | |------|------|-------------|-------| -| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] | +| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] | | **linkId** | **string** | The payment link ID for which you want to view the details. | | | **xRequestId** | **string?** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | [optional] | -| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] | +| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] | ### Return type @@ -128,10 +128,10 @@ namespace Example var cashfree = new Cashfree(); - var xApiVersion = 2023-08-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2023-08-01") + var xApiVersion = 2022-09-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2022-09-01") var createLinkRequest = new CreateLinkRequest(); // CreateLinkRequest | Request Body to Create Payment Links var xRequestId = 4dfb9780-46fe-11ee-be56-0242ac120002; // string? | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional) - var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) + var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) try { @@ -154,10 +154,10 @@ namespace Example | Name | Type | Description | Notes | |------|------|-------------|-------| -| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] | +| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-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 | [optional] | -| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] | +| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] | ### Return type @@ -217,10 +217,10 @@ namespace Example var cashfree = new Cashfree(); - var xApiVersion = 2023-08-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2023-08-01") + var xApiVersion = 2022-09-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2022-09-01") var linkId = your-link-id; // string | The payment link ID for which you want to view the details. var xRequestId = 4dfb9780-46fe-11ee-be56-0242ac120002; // string? | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional) - var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) + var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) try { @@ -243,10 +243,10 @@ namespace Example | Name | Type | Description | Notes | |------|------|-------------|-------| -| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] | +| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] | | **linkId** | **string** | The payment link ID for which you want to view the details. | | | **xRequestId** | **string?** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | [optional] | -| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] | +| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] | ### Return type @@ -307,10 +307,10 @@ namespace Example var cashfree = new Cashfree(); - var xApiVersion = 2023-08-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2023-08-01") + var xApiVersion = 2022-09-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2022-09-01") var linkId = your-link-id; // string | The payment link ID for which you want to view the details. var xRequestId = 4dfb9780-46fe-11ee-be56-0242ac120002; // string? | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional) - var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) + var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) try { @@ -333,10 +333,10 @@ namespace Example | Name | Type | Description | Notes | |------|------|-------------|-------| -| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] | +| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] | | **linkId** | **string** | The payment link ID for which you want to view the details. | | | **xRequestId** | **string?** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | [optional] | -| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] | +| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] | ### Return type diff --git a/docs/PaymentMethodAppInPaymentsEntity.md b/docs/PaymentMethodAppInPaymentsEntity.md index 7bbb1f4..eb7a377 100644 --- a/docs/PaymentMethodAppInPaymentsEntity.md +++ b/docs/PaymentMethodAppInPaymentsEntity.md @@ -5,9 +5,7 @@ payment method app object in payment entity Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**channel** | **string** | | [optional] -**provider** | **string** | | [optional] -**phone** | **string** | | [optional] +**app** | [**PaymentMethodAppInPaymentsEntityApp**](PaymentMethodAppInPaymentsEntityApp.md) | | [optional] [[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/PaymentMethodAppInPaymentsEntityApp.md b/docs/PaymentMethodAppInPaymentsEntityApp.md new file mode 100644 index 0000000..e2eb2c0 --- /dev/null +++ b/docs/PaymentMethodAppInPaymentsEntityApp.md @@ -0,0 +1,12 @@ +# cashfree_pg.Model.PaymentMethodAppInPaymentsEntityApp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**channel** | **string** | | [optional] +**provider** | **string** | | [optional] +**phone** | **string** | | [optional] + +[[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/PaymentMethodCardEMIInPaymentsEntity.md b/docs/PaymentMethodCardEMIInPaymentsEntity.md new file mode 100644 index 0000000..6a102ed --- /dev/null +++ b/docs/PaymentMethodCardEMIInPaymentsEntity.md @@ -0,0 +1,11 @@ +# cashfree_pg.Model.PaymentMethodCardEMIInPaymentsEntity +payment method card emi object in payment entity + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**emi** | [**PaymentMethodCardEMIInPaymentsEntityEmi**](PaymentMethodCardEMIInPaymentsEntityEmi.md) | | [optional] + +[[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/PaymentMethodCardEMIInPaymentsEntityEmi.md b/docs/PaymentMethodCardEMIInPaymentsEntityEmi.md new file mode 100644 index 0000000..128d27a --- /dev/null +++ b/docs/PaymentMethodCardEMIInPaymentsEntityEmi.md @@ -0,0 +1,18 @@ +# cashfree_pg.Model.PaymentMethodCardEMIInPaymentsEntityEmi + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**channel** | **string** | | [optional] +**card_number** | **string** | | [optional] +**card_network** | **string** | | [optional] +**card_type** | **string** | | [optional] +**card_country** | **string** | | [optional] +**card_bank_name** | **string** | | [optional] +**card_network_reference_id** | **string** | | [optional] +**emi_tenure** | **decimal** | | [optional] +**emi_details** | [**PaymentMethodCardEMIInPaymentsEntityEmiEmiDetails**](PaymentMethodCardEMIInPaymentsEntityEmiEmiDetails.md) | | [optional] + +[[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/PaymentMethodCardEMIInPaymentsEntityEmiEmiDetails.md b/docs/PaymentMethodCardEMIInPaymentsEntityEmiEmiDetails.md new file mode 100644 index 0000000..80a6f6d --- /dev/null +++ b/docs/PaymentMethodCardEMIInPaymentsEntityEmiEmiDetails.md @@ -0,0 +1,12 @@ +# cashfree_pg.Model.PaymentMethodCardEMIInPaymentsEntityEmiEmiDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**emi_amount** | **decimal** | | [optional] +**emi_tenure** | **decimal** | | [optional] +**emi_interest** | **decimal** | | [optional] + +[[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/PaymentMethodCardInPaymentsEntity.md b/docs/PaymentMethodCardInPaymentsEntity.md index 9ce2ece..847d57c 100644 --- a/docs/PaymentMethodCardInPaymentsEntity.md +++ b/docs/PaymentMethodCardInPaymentsEntity.md @@ -5,13 +5,7 @@ payment method card object in payment entity Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**channel** | **string** | | [optional] -**card_number** | **string** | | [optional] -**card_network** | **string** | | [optional] -**card_type** | **string** | | [optional] -**card_country** | **string** | | [optional] -**card_bank_name** | **string** | | [optional] -**card_network_reference_id** | **string** | | [optional] +**card** | [**PaymentMethodCardInPaymentsEntityCard**](PaymentMethodCardInPaymentsEntityCard.md) | | [optional] [[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/PaymentMethodCardInPaymentsEntityCard.md b/docs/PaymentMethodCardInPaymentsEntityCard.md new file mode 100644 index 0000000..1407841 --- /dev/null +++ b/docs/PaymentMethodCardInPaymentsEntityCard.md @@ -0,0 +1,16 @@ +# cashfree_pg.Model.PaymentMethodCardInPaymentsEntityCard + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**channel** | **string** | | [optional] +**card_number** | **string** | | [optional] +**card_network** | **string** | | [optional] +**card_type** | **string** | | [optional] +**card_country** | **string** | | [optional] +**card_bank_name** | **string** | | [optional] +**card_network_reference_id** | **string** | | [optional] + +[[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/PaymentMethodCardlessEMIInPaymentsEntity.md b/docs/PaymentMethodCardlessEMIInPaymentsEntity.md index 63fa34a..666c0de 100644 --- a/docs/PaymentMethodCardlessEMIInPaymentsEntity.md +++ b/docs/PaymentMethodCardlessEMIInPaymentsEntity.md @@ -5,9 +5,7 @@ payment method carless object in payment entity Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**channel** | **string** | | [optional] -**provider** | **string** | | [optional] -**phone** | **string** | | [optional] +**cardless_emi** | [**PaymentMethodAppInPaymentsEntityApp**](PaymentMethodAppInPaymentsEntityApp.md) | | [optional] [[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/PaymentMethodInPaymentsEntityPaymentMethod.md b/docs/PaymentMethodInPaymentsEntityPaymentMethod.md index 3b179fd..d8abc06 100644 --- a/docs/PaymentMethodInPaymentsEntityPaymentMethod.md +++ b/docs/PaymentMethodInPaymentsEntityPaymentMethod.md @@ -4,18 +4,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**channel** | **string** | | -**card_number** | **string** | | [optional] -**card_network** | **string** | | [optional] -**card_type** | **string** | | [optional] -**card_country** | **string** | | [optional] -**card_bank_name** | **string** | | [optional] -**card_network_reference_id** | **string** | | [optional] -**netbanking_bank_code** | **int** | | -**netbanking_bank_name** | **string** | | -**upi_id** | **string** | | [optional] -**provider** | **string** | | [optional] -**phone** | **string** | | [optional] +**card** | [**PaymentMethodCardInPaymentsEntityCard**](PaymentMethodCardInPaymentsEntityCard.md) | | [optional] +**netbanking** | [**PaymentMethodNetBankingInPaymentsEntityNetbanking**](PaymentMethodNetBankingInPaymentsEntityNetbanking.md) | | [optional] +**upi** | [**PaymentMethodUPIInPaymentsEntityUpi**](PaymentMethodUPIInPaymentsEntityUpi.md) | | [optional] +**app** | [**PaymentMethodAppInPaymentsEntityApp**](PaymentMethodAppInPaymentsEntityApp.md) | | [optional] +**cardless_emi** | [**PaymentMethodAppInPaymentsEntityApp**](PaymentMethodAppInPaymentsEntityApp.md) | | [optional] +**paylater** | [**PaymentMethodAppInPaymentsEntityApp**](PaymentMethodAppInPaymentsEntityApp.md) | | [optional] +**emi** | [**PaymentMethodCardEMIInPaymentsEntityEmi**](PaymentMethodCardEMIInPaymentsEntityEmi.md) | | [optional] [[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/PaymentMethodNetBankingInPaymentsEntity.md b/docs/PaymentMethodNetBankingInPaymentsEntity.md index 2fbeebf..66b8b51 100644 --- a/docs/PaymentMethodNetBankingInPaymentsEntity.md +++ b/docs/PaymentMethodNetBankingInPaymentsEntity.md @@ -5,9 +5,7 @@ netbanking payment method object for pay Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**channel** | **string** | | -**netbanking_bank_code** | **int** | | -**netbanking_bank_name** | **string** | | +**netbanking** | [**PaymentMethodNetBankingInPaymentsEntityNetbanking**](PaymentMethodNetBankingInPaymentsEntityNetbanking.md) | | [optional] [[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/PaymentMethodNetBankingInPaymentsEntityNetbanking.md b/docs/PaymentMethodNetBankingInPaymentsEntityNetbanking.md new file mode 100644 index 0000000..82c8fd7 --- /dev/null +++ b/docs/PaymentMethodNetBankingInPaymentsEntityNetbanking.md @@ -0,0 +1,12 @@ +# cashfree_pg.Model.PaymentMethodNetBankingInPaymentsEntityNetbanking + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**channel** | **string** | | [optional] +**netbanking_bank_code** | **int** | | [optional] +**netbanking_bank_name** | **string** | | [optional] + +[[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/PaymentMethodPaylaterInPaymentsEntity.md b/docs/PaymentMethodPaylaterInPaymentsEntity.md index 193a2aa..8faa79e 100644 --- a/docs/PaymentMethodPaylaterInPaymentsEntity.md +++ b/docs/PaymentMethodPaylaterInPaymentsEntity.md @@ -5,9 +5,7 @@ paylater payment method object for pay api Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**channel** | **string** | | [optional] -**provider** | **string** | | [optional] -**phone** | **string** | | [optional] +**paylater** | [**PaymentMethodAppInPaymentsEntityApp**](PaymentMethodAppInPaymentsEntityApp.md) | | [optional] [[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/PaymentMethodUPIInPaymentsEntity.md b/docs/PaymentMethodUPIInPaymentsEntity.md index 76e5528..20ee95f 100644 --- a/docs/PaymentMethodUPIInPaymentsEntity.md +++ b/docs/PaymentMethodUPIInPaymentsEntity.md @@ -5,8 +5,7 @@ UPI payment method for pay api Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**channel** | **string** | | -**upi_id** | **string** | | [optional] +**upi** | [**PaymentMethodUPIInPaymentsEntityUpi**](PaymentMethodUPIInPaymentsEntityUpi.md) | | [optional] [[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/PaymentMethodUPIInPaymentsEntityUpi.md b/docs/PaymentMethodUPIInPaymentsEntityUpi.md new file mode 100644 index 0000000..a73f35e --- /dev/null +++ b/docs/PaymentMethodUPIInPaymentsEntityUpi.md @@ -0,0 +1,11 @@ +# cashfree_pg.Model.PaymentMethodUPIInPaymentsEntityUpi + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**channel** | **string** | | [optional] +**upi_id** | **string** | | [optional] + +[[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/PaymentMethodsFilters.md b/docs/PaymentMethodsFilters.md index 7683c6f..ad77739 100644 --- a/docs/PaymentMethodsFilters.md +++ b/docs/PaymentMethodsFilters.md @@ -1,5 +1,5 @@ # cashfree_pg.Model.PaymentMethodsFilters -Filter for Payment Methods +Filter for specific Payment Methods ## Properties diff --git a/docs/PaymentsApi.md b/docs/PaymentsApi.md index e68dd57..b954366 100644 --- a/docs/PaymentsApi.md +++ b/docs/PaymentsApi.md @@ -40,11 +40,11 @@ namespace Example var cashfree = new Cashfree(); - var xApiVersion = 2023-08-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2023-08-01") + var xApiVersion = 2022-09-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2022-09-01") var orderId = your-order-id; // string | The id which uniquely identifies your order var authorizeOrderRequest = new AuthorizeOrderRequest(); // AuthorizeOrderRequest | Request to Capture or Void Transactions var xRequestId = 4dfb9780-46fe-11ee-be56-0242ac120002; // string? | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional) - var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) + var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) try { @@ -67,11 +67,11 @@ namespace Example | Name | Type | Description | Notes | |------|------|-------------|-------| -| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] | +| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] | | **orderId** | **string** | The id which uniquely identifies your order | | | **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 | [optional] | -| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] | +| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] | ### Return type @@ -132,11 +132,11 @@ namespace Example var cashfree = new Cashfree(); - var xApiVersion = 2023-08-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2023-08-01") + var xApiVersion = 2022-09-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2022-09-01") var cfPaymentId = 121224562; // string | The Cashfree payment or transaction ID. var orderAuthenticatePaymentRequest = new OrderAuthenticatePaymentRequest(); // OrderAuthenticatePaymentRequest | Request body to submit/resend headless OTP. To use this API make sure you have headless OTP enabled for your account var xRequestId = 4dfb9780-46fe-11ee-be56-0242ac120002; // string? | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional) - var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) + var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) try { @@ -159,11 +159,11 @@ namespace Example | Name | Type | Description | Notes | |------|------|-------------|-------| -| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] | +| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] | | **cfPaymentId** | **string** | The Cashfree payment or transaction ID. | | | **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 | [optional] | -| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] | +| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] | ### Return type @@ -224,11 +224,11 @@ namespace Example var cashfree = new Cashfree(); - var xApiVersion = 2023-08-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2023-08-01") + var xApiVersion = 2022-09-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2022-09-01") var orderId = your-order-id; // string | The id which uniquely identifies your order var cfPaymentId = 121224562; // string | The Cashfree payment or transaction ID. var xRequestId = 4dfb9780-46fe-11ee-be56-0242ac120002; // string? | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional) - var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) + var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) try { @@ -251,11 +251,11 @@ namespace Example | Name | Type | Description | Notes | |------|------|-------------|-------| -| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] | +| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] | | **orderId** | **string** | The id which uniquely identifies your order | | | **cfPaymentId** | **string** | The Cashfree payment or transaction 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 | [optional] | -| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] | +| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] | ### Return type @@ -316,10 +316,10 @@ namespace Example var cashfree = new Cashfree(); - var xApiVersion = 2023-08-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2023-08-01") + var xApiVersion = 2022-09-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2022-09-01") var orderId = your-order-id; // string | The id which uniquely identifies your order var xRequestId = 4dfb9780-46fe-11ee-be56-0242ac120002; // string? | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional) - var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) + var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) try { @@ -342,10 +342,10 @@ namespace Example | Name | Type | Description | Notes | |------|------|-------------|-------| -| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] | +| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] | | **orderId** | **string** | The id which uniquely identifies your 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 | [optional] | -| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] | +| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] | ### Return type @@ -406,10 +406,10 @@ namespace Example var cashfree = new Cashfree(); - var xApiVersion = 2023-08-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2023-08-01") + var xApiVersion = 2022-09-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2022-09-01") var payOrderRequest = new PayOrderRequest(); // PayOrderRequest | Request body to create a transaction at cashfree using `payment_session_id` var xRequestId = 4dfb9780-46fe-11ee-be56-0242ac120002; // string? | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional) - var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) + var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) try { @@ -432,10 +432,10 @@ namespace Example | Name | Type | Description | Notes | |------|------|-------------|-------| -| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] | +| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-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 | [optional] | -| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] | +| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] | ### Return type diff --git a/docs/ReconEntityDataInner.md b/docs/ReconEntityDataInner.md index 723f403..ac57970 100644 --- a/docs/ReconEntityDataInner.md +++ b/docs/ReconEntityDataInner.md @@ -23,8 +23,8 @@ Name | Type | Description | Notes **payment_time** | **string** | Date and time when the payment was initiated. | [optional] **payment_service_charge** | **decimal** | Service charge applicable for the payment. | [optional] **payment_service_tax** | **decimal** | Service tax applicable on the payment. | [optional] -**cf_payment_id** | **string** | Cashfree Payments unique ID to identify a payment. | [optional] -**cf_settlement_id** | **string** | Unique ID to identify the settlement. | [optional] +**cf_payment_id** | **long** | Cashfree Payments unique ID to identify a payment. | [optional] +**cf_settlement_id** | **int** | Unique ID to identify the settlement. | [optional] **settlement_date** | **string** | Date and time when the settlement was processed. | [optional] **settlement_utr** | **string** | Unique transaction reference number of the settlement. | [optional] **split_service_charge** | **decimal** | Service charge that is applicable for splitting the payment. | [optional] diff --git a/docs/RefundEntity.md b/docs/RefundEntity.md index b4f38f2..c966254 100644 --- a/docs/RefundEntity.md +++ b/docs/RefundEntity.md @@ -5,7 +5,7 @@ The refund entity Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**cf_payment_id** | **string** | Cashfree Payments ID of the payment for which refund is initiated | [optional] +**cf_payment_id** | **long** | Cashfree Payments ID of the payment for which refund is initiated | [optional] **cf_refund_id** | **string** | Cashfree Payments ID for a refund | [optional] **order_id** | **string** | Merchant’s order Id of the order for which refund is initiated | [optional] **refund_id** | **string** | Merchant’s refund ID of the refund | [optional] diff --git a/docs/RefundsApi.md b/docs/RefundsApi.md index aad272d..60be119 100644 --- a/docs/RefundsApi.md +++ b/docs/RefundsApi.md @@ -38,11 +38,11 @@ namespace Example var cashfree = new Cashfree(); - var xApiVersion = 2023-08-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2023-08-01") + var xApiVersion = 2022-09-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2022-09-01") var orderId = your-order-id; // string | The id which uniquely identifies your order var orderCreateRefundRequest = new OrderCreateRefundRequest(); // OrderCreateRefundRequest | Request Body to Create Refunds var xRequestId = 4dfb9780-46fe-11ee-be56-0242ac120002; // string? | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional) - var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) + var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) try { @@ -65,11 +65,11 @@ namespace Example | Name | Type | Description | Notes | |------|------|-------------|-------| -| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] | +| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] | | **orderId** | **string** | The id which uniquely identifies your order | | | **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 | [optional] | -| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] | +| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] | ### Return type @@ -130,11 +130,11 @@ namespace Example var cashfree = new Cashfree(); - var xApiVersion = 2023-08-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2023-08-01") + var xApiVersion = 2022-09-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2022-09-01") var orderId = your-order-id; // string | The id which uniquely identifies your order var refundId = some-refund-id; // string | Refund Id of the refund you want to fetch. var xRequestId = 4dfb9780-46fe-11ee-be56-0242ac120002; // string? | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional) - var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) + var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) try { @@ -157,11 +157,11 @@ namespace Example | Name | Type | Description | Notes | |------|------|-------------|-------| -| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] | +| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] | | **orderId** | **string** | The id which uniquely identifies your order | | | **refundId** | **string** | Refund Id of the refund you want to fetch. | | | **xRequestId** | **string?** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | [optional] | -| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] | +| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] | ### Return type @@ -222,10 +222,10 @@ namespace Example var cashfree = new Cashfree(); - var xApiVersion = 2023-08-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2023-08-01") + var xApiVersion = 2022-09-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2022-09-01") var orderId = your-order-id; // string | The id which uniquely identifies your order var xRequestId = 4dfb9780-46fe-11ee-be56-0242ac120002; // string? | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional) - var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) + var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) try { @@ -248,10 +248,10 @@ namespace Example | Name | Type | Description | Notes | |------|------|-------------|-------| -| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] | +| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] | | **orderId** | **string** | The id which uniquely identifies your 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 | [optional] | -| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] | +| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] | ### Return type diff --git a/docs/SettlementEntity.md b/docs/SettlementEntity.md index e48100f..43bfdb7 100644 --- a/docs/SettlementEntity.md +++ b/docs/SettlementEntity.md @@ -5,8 +5,8 @@ Settlement entity object Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**cf_payment_id** | **string** | | [optional] -**cf_settlement_id** | **string** | | [optional] +**cf_payment_id** | **long** | | [optional] +**cf_settlement_id** | **long** | | [optional] **settlement_currency** | **string** | | [optional] **order_id** | **string** | | [optional] **entity** | **string** | | [optional] diff --git a/docs/SettlementFetchReconRequest.md b/docs/SettlementFetchReconRequest.md index 856fc57..490635b 100644 --- a/docs/SettlementFetchReconRequest.md +++ b/docs/SettlementFetchReconRequest.md @@ -6,7 +6,7 @@ Recon Request Object Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **pagination** | [**FetchSettlementsRequestPagination**](FetchSettlementsRequestPagination.md) | | -**filters** | [**FetchSettlementsRequestFilters**](FetchSettlementsRequestFilters.md) | | +**filters** | [**SettlementFetchReconRequestFilters**](SettlementFetchReconRequestFilters.md) | | [[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/SettlementReconEntityDataInner.md b/docs/SettlementReconEntityDataInner.md index 48c8121..9eeedf1 100644 --- a/docs/SettlementReconEntityDataInner.md +++ b/docs/SettlementReconEntityDataInner.md @@ -23,8 +23,8 @@ Name | Type | Description | Notes **payment_time** | **string** | Date and time when the payment was initiated. | [optional] **payment_service_charge** | **decimal** | Service charge applicable for the payment. | [optional] **payment_service_tax** | **decimal** | Service tax applicable on the payment. | [optional] -**cf_payment_id** | **string** | Cashfree Payments unique ID to identify a payment. | [optional] -**cf_settlement_id** | **string** | Unique ID to identify the settlement. | [optional] +**cf_payment_id** | **long** | Cashfree Payments unique ID to identify a payment. | [optional] +**cf_settlement_id** | **int** | Unique ID to identify the settlement. | [optional] **settlement_date** | **string** | Date and time when the settlement was processed. | [optional] **settlement_utr** | **string** | Unique transaction reference number of the settlement. | [optional] **split_service_charge** | **decimal** | Service charge that is applicable for splitting the payment. | [optional] diff --git a/docs/SettlementReconciliationApi.md b/docs/SettlementReconciliationApi.md index 7b38d6c..71ab3b6 100644 --- a/docs/SettlementReconciliationApi.md +++ b/docs/SettlementReconciliationApi.md @@ -37,11 +37,11 @@ namespace Example var cashfree = new Cashfree(); - var xApiVersion = 2023-08-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2023-08-01") + var xApiVersion = 2022-09-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2022-09-01") var fetchSettlementsRequest = new FetchSettlementsRequest(); // FetchSettlementsRequest | Request Body to get the settlements var contentType = application/json; // string? | application/json (optional) var xRequestId = 4dfb9780-46fe-11ee-be56-0242ac120002; // string? | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional) - var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) + var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) var accept = application/json; // string? | application/json (optional) try @@ -65,11 +65,11 @@ namespace Example | Name | Type | Description | Notes | |------|------|-------------|-------| -| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] | +| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] | | **fetchSettlementsRequest** | [**FetchSettlementsRequest**](FetchSettlementsRequest.md) | Request Body to get the settlements | | | **contentType** | **string?** | application/json | [optional] | | **xRequestId** | **string?** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | [optional] | -| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] | +| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] | | **accept** | **string?** | application/json | [optional] | ### Return type @@ -130,11 +130,11 @@ namespace Example var cashfree = new Cashfree(); - var xApiVersion = 2023-08-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2023-08-01") + var xApiVersion = 2022-09-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2022-09-01") var settlementFetchReconRequest = new SettlementFetchReconRequest(); // SettlementFetchReconRequest | Request Body for the settlement reconciliation var contentType = application/json; // string? | application/json (optional) var xRequestId = 4dfb9780-46fe-11ee-be56-0242ac120002; // string? | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional) - var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) + var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) var accept = application/json; // string? | application/json (optional) try @@ -158,11 +158,11 @@ namespace Example | Name | Type | Description | Notes | |------|------|-------------|-------| -| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] | +| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] | | **settlementFetchReconRequest** | [**SettlementFetchReconRequest**](SettlementFetchReconRequest.md) | Request Body for the settlement reconciliation | | | **contentType** | **string?** | application/json | [optional] | | **xRequestId** | **string?** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | [optional] | -| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] | +| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] | | **accept** | **string?** | application/json | [optional] | ### Return type diff --git a/docs/SettlementsApi.md b/docs/SettlementsApi.md index 50df722..369d1d8 100644 --- a/docs/SettlementsApi.md +++ b/docs/SettlementsApi.md @@ -36,10 +36,10 @@ namespace Example var cashfree = new Cashfree(); - var xApiVersion = 2023-08-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2023-08-01") + var xApiVersion = 2022-09-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2022-09-01") var orderId = your-order-id; // string | The id which uniquely identifies your order var xRequestId = 4dfb9780-46fe-11ee-be56-0242ac120002; // string? | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional) - var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) + var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) try { @@ -62,10 +62,10 @@ namespace Example | Name | Type | Description | Notes | |------|------|-------------|-------| -| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] | +| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] | | **orderId** | **string** | The id which uniquely identifies your 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 | [optional] | -| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] | +| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] | ### Return type diff --git a/docs/SoftPOSApi.md b/docs/SoftPOSApi.md index 05f0840..c569e1a 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 Transaction | +| [**SposCreateTerminalTransaction**](SoftPOSApi.md#sposcreateterminaltransaction) | **POST** /terminal/transactions | Create Terminal | | [**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 | @@ -39,10 +39,10 @@ namespace Example var cashfree = new Cashfree(); - var xApiVersion = 2023-08-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2023-08-01") + var xApiVersion = 2022-09-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2022-09-01") var createTerminalRequest = new CreateTerminalRequest(); // CreateTerminalRequest | Request Body to Create Terminal for SPOS var xRequestId = 4dfb9780-46fe-11ee-be56-0242ac120002; // string? | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional) - var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) + var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) try { @@ -65,10 +65,10 @@ namespace Example | Name | Type | Description | Notes | |------|------|-------------|-------| -| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] | +| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-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 | [optional] | -| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] | +| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] | ### Return type @@ -102,7 +102,7 @@ namespace Example # **SposCreateTerminalTransaction** > TerminalTransactionEntity SposCreateTerminalTransaction (string xApiVersion, CreateTerminalTransactionRequest createTerminalTransactionRequest, string? xRequestId = null, Guid? xIdempotencyKey = null) -Create Terminal Transaction +Create Terminal Use this API to create a new terminal transaction. To use this API you should first create an order using the Create Order API. Also, you need to enter the terminal details while creating the order and pass the same terminal information while creating a transaction using the below mentioned API. @@ -128,14 +128,14 @@ namespace Example var cashfree = new Cashfree(); - var xApiVersion = 2023-08-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2023-08-01") + var xApiVersion = 2022-09-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2022-09-01") var createTerminalTransactionRequest = new CreateTerminalTransactionRequest(); // CreateTerminalTransactionRequest | Request body to create a terminal transaction var xRequestId = 4dfb9780-46fe-11ee-be56-0242ac120002; // string? | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional) - var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) + var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) try { - // Create Terminal Transaction + // Create Terminal TerminalTransactionEntity result = cashfree.SposCreateTerminalTransaction(xApiVersion, createTerminalTransactionRequest, xRequestId, xIdempotencyKey); Debug.WriteLine(result); } @@ -154,10 +154,10 @@ namespace Example | Name | Type | Description | Notes | |------|------|-------------|-------| -| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] | +| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-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 | [optional] | -| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] | +| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] | ### Return type @@ -217,10 +217,10 @@ namespace Example var cashfree = new Cashfree(); - var xApiVersion = 2023-08-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2023-08-01") + var xApiVersion = 2022-09-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2022-09-01") var terminalPhoneNo = 6309291183; // string | The terminal for which you want to view the order details. var xRequestId = 4dfb9780-46fe-11ee-be56-0242ac120002; // string? | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional) - var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) + var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) try { @@ -243,10 +243,10 @@ namespace Example | Name | Type | Description | Notes | |------|------|-------------|-------| -| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] | +| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] | | **terminalPhoneNo** | **string** | The terminal for which you want to view the order details. | | | **xRequestId** | **string?** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | [optional] | -| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] | +| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] | ### Return type @@ -306,11 +306,11 @@ namespace Example var cashfree = new Cashfree(); - var xApiVersion = 2023-08-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2023-08-01") + var xApiVersion = 2022-09-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2022-09-01") var terminalPhoneNo = 9876543214; // string | Phone number assigned to the terminal. Required if you are not providing the cf_terminal_id in the request. var cfTerminalId = 123344; // string | Cashfree terminal id for which you want to get staticQRs. Required if you are not providing the terminal_phone_number in the request. var xRequestId = 4dfb9780-46fe-11ee-be56-0242ac120002; // string? | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional) - var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) + var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) try { @@ -333,11 +333,11 @@ namespace Example | Name | Type | Description | Notes | |------|------|-------------|-------| -| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] | +| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-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 | [optional] | -| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] | +| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] | ### Return type diff --git a/docs/TerminalDetails.md b/docs/TerminalDetails.md index f9a663c..e6d30cd 100644 --- a/docs/TerminalDetails.md +++ b/docs/TerminalDetails.md @@ -6,7 +6,7 @@ Use this if you are creating an order for cashfree's softPOS Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **added_on** | **string** | date time at which terminal is added | [optional] -**cf_terminal_id** | **string** | cashfree terminal id | [optional] +**cf_terminal_id** | **int** | cashfree terminal id | [optional] **last_updated_on** | **string** | last instant when this terminal was updated | [optional] **terminal_address** | **string** | location of terminal | [optional] **terminal_id** | **string** | terminal id for merchant reference | diff --git a/docs/TerminalTransactionEntity.md b/docs/TerminalTransactionEntity.md index f55ce41..eff034b 100644 --- a/docs/TerminalTransactionEntity.md +++ b/docs/TerminalTransactionEntity.md @@ -5,7 +5,7 @@ Create terminal response object Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**cf_payment_id** | **string** | | [optional] +**cf_payment_id** | **long** | | [optional] **payment_amount** | **int** | | [optional] **payment_method** | **string** | | [optional] **payment_url** | **string** | | [optional] diff --git a/docs/TokenVaultApi.md b/docs/TokenVaultApi.md index 32694b2..0e7596e 100644 --- a/docs/TokenVaultApi.md +++ b/docs/TokenVaultApi.md @@ -39,11 +39,11 @@ namespace Example var cashfree = new Cashfree(); - var xApiVersion = 2023-08-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2023-08-01") + var xApiVersion = 2022-09-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2022-09-01") var customerId = your-customer-id; // string | Your Customer ID that you had sent during create order API `POST/orders` var instrumentId = some-instrument-id; // string | The instrument_id which needs to be deleted var xRequestId = 4dfb9780-46fe-11ee-be56-0242ac120002; // string? | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional) - var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) + var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) try { @@ -66,11 +66,11 @@ namespace Example | Name | Type | Description | Notes | |------|------|-------------|-------| -| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] | +| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] | | **customerId** | **string** | Your Customer ID that you had sent during create order API `POST/orders` | | | **instrumentId** | **string** | The instrument_id which needs to be deleted | | | **xRequestId** | **string?** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | [optional] | -| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] | +| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] | ### Return type @@ -131,11 +131,11 @@ namespace Example var cashfree = new Cashfree(); - var xApiVersion = 2023-08-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2023-08-01") + var xApiVersion = 2022-09-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2022-09-01") var customerId = your-customer-id; // string | Your Customer ID that you had sent during create order API `POST/orders` var instrumentId = some-instrument-id; // string | The instrument_id of the saved instrument which needs to be queried var xRequestId = 4dfb9780-46fe-11ee-be56-0242ac120002; // string? | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional) - var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) + var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) try { @@ -158,11 +158,11 @@ namespace Example | Name | Type | Description | Notes | |------|------|-------------|-------| -| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] | +| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] | | **customerId** | **string** | Your Customer ID that you had sent during create order API `POST/orders` | | | **instrumentId** | **string** | The instrument_id of the saved instrument which needs to be queried | | | **xRequestId** | **string?** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | [optional] | -| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] | +| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] | ### Return type @@ -223,11 +223,11 @@ namespace Example var cashfree = new Cashfree(); - var xApiVersion = 2023-08-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2023-08-01") + var xApiVersion = 2022-09-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2022-09-01") var customerId = your-customer-id; // string | Your Customer ID that you had sent during create order API `POST/orders` var instrumentType = card; // string | Payment mode or type of saved instrument var xRequestId = 4dfb9780-46fe-11ee-be56-0242ac120002; // string? | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional) - var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) + var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) try { @@ -250,11 +250,11 @@ namespace Example | Name | Type | Description | Notes | |------|------|-------------|-------| -| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] | +| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] | | **customerId** | **string** | Your Customer ID that you had sent during create order API `POST/orders` | | | **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 | [optional] | -| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] | +| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] | ### Return type @@ -314,11 +314,11 @@ namespace Example var cashfree = new Cashfree(); - var xApiVersion = 2023-08-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2023-08-01") + var xApiVersion = 2022-09-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2022-09-01") var customerId = your-customer-id; // string | Your Customer ID that you had sent during create order API `POST/orders` var instrumentId = some-instrument-id; // string | The instrument_id of the saved card instrument which needs to be queried var xRequestId = 4dfb9780-46fe-11ee-be56-0242ac120002; // string? | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional) - var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) + var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) try { @@ -341,11 +341,11 @@ namespace Example | Name | Type | Description | Notes | |------|------|-------------|-------| -| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] | +| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] | | **customerId** | **string** | Your Customer ID that you had sent during create order API `POST/orders` | | | **instrumentId** | **string** | The instrument_id of the saved card instrument which needs to be queried | | | **xRequestId** | **string?** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | [optional] | -| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] | +| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] | ### Return type diff --git a/src/cashfree_pg/Client/ApiClient.cs b/src/cashfree_pg/Client/ApiClient.cs index b742c1e..d9c0058 100644 --- a/src/cashfree_pg/Client/ApiClient.cs +++ b/src/cashfree_pg/Client/ApiClient.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -94,7 +94,7 @@ public class Cashfree { public static CFEnvironment SANDBOX = CFEnvironment.SANDBOX; public static CFEnvironment PRODUCTION = CFEnvironment.PRODUCTION; - public static string XApiVersion = "2023-08-01"; + public static string XApiVersion = "2022-09-01"; /// /// The client for accessing this underlying API synchronously. @@ -129,150 +129,13 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, } /// - /// Create Customer at Cashfree Create Customer at Cashfree - /// - /// Thrown when fails to make API call - /// API version to be used. Format is in YYYY-MM-DD - /// Request to create a new customer at Cashfree - /// Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional) - /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) - /// ApiResponse of CustomerEntity - public cashfree_pg.Client.ApiResponse PGCreateCustomer(string xApiVersion, CreateCustomerRequest createCustomerRequest, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), Configuration? configuration = null) - { - var env = "sandbox"; - if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { - env = "production"; - } - if(Cashfree.XEnableErrorAnalytics) { - using (SentrySdk.Init(o => - { - o.Dsn = "https://7674ee5291124b76894cb90a9ac6a33b@o330525.ingest.sentry.io/4505164135464960"; - // When configuring for the first time, to see what the SDK is doing: - o.Debug = true; - // Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring. - // We recommend adjusting this value in production. - o.TracesSampleRate = 1.0; - // Enable Global Mode if running in a client app - o.IsGlobalModeEnabled = false; - o.EnableTracing = true; - o.AttachStacktrace = true; - o.Environment = env; - o.Release = "4.0.2"; - o.AddEventProcessor(new CashfreeEventProcessor()); - })); - } - var config = new Configuration(); - if(configuration != null) { - config = configuration; - } - this.Client = new cashfree_pg.Client.ApiClient("https://sandbox.cashfree.com/pg"); - if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { - this.Client = new cashfree_pg.Client.ApiClient("https://api.cashfree.com/pg"); - } - // verify the required parameter 'xApiVersion' is set - if (xApiVersion == null) - throw new cashfree_pg.Client.ApiException(400, "Missing required parameter 'xApiVersion' when calling CustomersApi->PGCreateCustomer"); - - // verify the required parameter 'createCustomerRequest' is set - if (createCustomerRequest == null) - throw new cashfree_pg.Client.ApiException(400, "Missing required parameter 'createCustomerRequest' when calling CustomersApi->PGCreateCustomer"); - - cashfree_pg.Client.RequestOptions localVarRequestOptions = new cashfree_pg.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - "application/json" - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; - - var localVarContentType = cashfree_pg.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - - var localVarAccept = cashfree_pg.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - - localVarRequestOptions.HeaderParameters.Add("x-api-version", cashfree_pg.Client.ClientUtils.ParameterToString(xApiVersion)); // header parameter - if (xRequestId != null) - { - localVarRequestOptions.HeaderParameters.Add("x-request-id", cashfree_pg.Client.ClientUtils.ParameterToString(xRequestId)); // header parameter - } - if (xIdempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("x-idempotency-key", cashfree_pg.Client.ClientUtils.ParameterToString(xIdempotencyKey)); // header parameter - } - localVarRequestOptions.Data = createCustomerRequest; - - // authentication (XPartnerAPIKey) required - - - // authentication (XClientSecret) required - - - // authentication (XPartnerMerchantID) required - - - // authentication (XClientID) required - - - // authentication (XClientSignatureHeader) required - - - - if (!string.IsNullOrEmpty(Cashfree.XClientId)) - { - localVarRequestOptions.HeaderParameters.Add("x-client-id", Cashfree.XClientId); - } - - if (!string.IsNullOrEmpty(Cashfree.XClientSecret)) - { - localVarRequestOptions.HeaderParameters.Add("x-client-secret", Cashfree.XClientSecret); - } - - if (!string.IsNullOrEmpty(Cashfree.XPartnerApiKey)) - { - localVarRequestOptions.HeaderParameters.Add("x-partner-apikey", Cashfree.XPartnerApiKey); - } - - if (!string.IsNullOrEmpty(Cashfree.XPartnerMerchantId)) - { - localVarRequestOptions.HeaderParameters.Add("x-partner-merchantid", Cashfree.XPartnerMerchantId); - } - - if (!string.IsNullOrEmpty(Cashfree.XClientSignature)) - { - localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); - } - - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.2"); - - // make the HTTP request - var localVarResponse = this.Client.Post("/customers", localVarRequestOptions, config); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("PGCreateCustomer", localVarResponse); - if (_exception != null) { - if(Cashfree.XEnableErrorAnalytics) { - var sentryEvent = new SentryEvent(_exception); - SentrySdk.CaptureEvent(sentryEvent); - } - throw _exception; - } - } - - return localVarResponse; - } - /// - /// Get Eligible Cardless EMI Payment Methods for a customer on an order Use this API to get eligible Cardless EMI Payment Methods available for a customer on an order basis their phone number. + /// Get Eligible Cardless EMI Use this API to get eligible Cardless EMI Payment Methods available for a customer on an order basis their phone number. /// /// Thrown when fails to make API call /// API version to be used. Format is in YYYY-MM-DD /// Request Body to get eligible cardless emi options for a customer and order /// Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional) - /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) + /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) /// ApiResponse of List<EligibilityCardlessEMIEntity> public cashfree_pg.Client.ApiResponse> PGEligibilityFetchCardlessEMI(string xApiVersion, EligibilityFetchCardlessEMIRequest eligibilityFetchCardlessEMIRequest, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), Configuration? configuration = null) { @@ -294,7 +157,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.0.2"; + o.Release = "3.2.1"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -383,7 +246,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.2"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.2.1"); // make the HTTP request var localVarResponse = this.Client.Post>("/eligibility/cardlessemi", localVarRequestOptions, config); @@ -403,13 +266,13 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, return localVarResponse; } /// - /// Get Eligible Offers for an Order Use this API to get eligible offers for an order_id or order amount. + /// Get Eligible Offers Use this API to get eligible offers for an order_id or order amount. /// /// Thrown when fails to make API call /// API version to be used. Format is in YYYY-MM-DD /// Request Body to get eligible offers for a customer and order /// Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional) - /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) + /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) /// ApiResponse of List<EligibilityOfferEntity> public cashfree_pg.Client.ApiResponse> PGEligibilityFetchOffers(string xApiVersion, EligibilityFetchOffersRequest eligibilityFetchOffersRequest, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), Configuration? configuration = null) { @@ -431,7 +294,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.0.2"; + o.Release = "3.2.1"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -520,7 +383,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.2"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.2.1"); // make the HTTP request var localVarResponse = this.Client.Post>("/eligibility/offers", localVarRequestOptions, config); @@ -540,13 +403,13 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, return localVarResponse; } /// - /// Get Eligible Paylater for a customer on an order Use this API to get eligible Paylater Payment Methods for a customer on an order. + /// Get Eligible Paylater Use this API to get eligible Paylater Payment Methods for a customer on an order. /// /// Thrown when fails to make API call /// API version to be used. Format is in YYYY-MM-DD /// Request Body to get eligible paylater options for a customer and order /// Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional) - /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) + /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) /// ApiResponse of List<EligibilityPaylaterEntity> public cashfree_pg.Client.ApiResponse> PGEligibilityFetchPaylater(string xApiVersion, EligibilityFetchPaylaterRequest eligibilityFetchPaylaterRequest, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), Configuration? configuration = null) { @@ -568,7 +431,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.0.2"; + o.Release = "3.2.1"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -657,7 +520,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.2"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.2.1"); // make the HTTP request var localVarResponse = this.Client.Post>("/eligibility/paylater", localVarRequestOptions, config); @@ -677,13 +540,13 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, return localVarResponse; } /// - /// Get eligible Payment Methods Use this API to get eligible Payment Methods + /// Get Eligible Payment Methods Use this API to get eligible Payment Methods /// /// Thrown when fails to make API call /// API version to be used. Format is in YYYY-MM-DD /// Request Body to get eligible payment methods for an account and order /// Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional) - /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) + /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) /// ApiResponse of List<EligibilityPaymentMethodsEntity> public cashfree_pg.Client.ApiResponse> PGEligibilityFetchPaymentMethods(string xApiVersion, EligibilityFetchPaymentMethodsRequest eligibilityFetchPaymentMethodsRequest, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), Configuration? configuration = null) { @@ -705,7 +568,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.0.2"; + o.Release = "3.2.1"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -794,7 +657,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.2"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.2.1"); // make the HTTP request var localVarResponse = this.Client.Post>("/eligibility/payment_methods", localVarRequestOptions, config); @@ -820,7 +683,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, /// API version to be used. Format is in YYYY-MM-DD /// Request body to create an offer at Cashfree /// Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional) - /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) + /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) /// ApiResponse of OfferEntity public cashfree_pg.Client.ApiResponse PGCreateOffer(string xApiVersion, CreateOfferRequest createOfferRequest, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), Configuration? configuration = null) { @@ -842,7 +705,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.0.2"; + o.Release = "3.2.1"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -931,7 +794,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.2"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.2.1"); // make the HTTP request var localVarResponse = this.Client.Post("/offers", localVarRequestOptions, config); @@ -957,7 +820,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, /// API version to be used. Format is in YYYY-MM-DD /// The offer ID for which you want to view the offer details. /// Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional) - /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) + /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) /// ApiResponse of OfferEntity public cashfree_pg.Client.ApiResponse PGFetchOffer(string xApiVersion, string offerId, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), Configuration? configuration = null) { @@ -979,7 +842,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.0.2"; + o.Release = "3.2.1"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -1067,7 +930,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.2"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.2.1"); // make the HTTP request var localVarResponse = this.Client.Get("/offers/{offer_id}", localVarRequestOptions, config); @@ -1093,7 +956,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, /// API version to be used. Format is in YYYY-MM-DD /// Request body to create an order at cashfree /// Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional) - /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) + /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) /// ApiResponse of OrderEntity public cashfree_pg.Client.ApiResponse PGCreateOrder(string xApiVersion, CreateOrderRequest createOrderRequest, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), Configuration? configuration = null) { @@ -1115,7 +978,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.0.2"; + o.Release = "3.2.1"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -1204,7 +1067,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.2"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.2.1"); // make the HTTP request var localVarResponse = this.Client.Post("/orders", localVarRequestOptions, config); @@ -1230,7 +1093,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, /// API version to be used. Format is in YYYY-MM-DD /// The id which uniquely identifies your order /// Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional) - /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) + /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) /// ApiResponse of OrderEntity public cashfree_pg.Client.ApiResponse PGFetchOrder(string xApiVersion, string orderId, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), Configuration? configuration = null) { @@ -1252,7 +1115,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.0.2"; + o.Release = "3.2.1"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -1340,7 +1203,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.2"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.2.1"); // make the HTTP request var localVarResponse = this.Client.Get("/orders/{order_id}", localVarRequestOptions, config); @@ -1360,149 +1223,6 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, return localVarResponse; } /// - /// Terminate Order Use this API to terminate the order that was created at Cashfree's using the `order_id`. - /// - /// Thrown when fails to make API call - /// API version to be used. Format is in YYYY-MM-DD - /// The id which uniquely identifies your order - /// Request body to terminate an order at cashfree - /// Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional) - /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) - /// ApiResponse of OrderEntity - public cashfree_pg.Client.ApiResponse PGTerminateOrder(string xApiVersion, string orderId, TerminateOrderRequest terminateOrderRequest, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), Configuration? configuration = null) - { - var env = "sandbox"; - if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { - env = "production"; - } - if(Cashfree.XEnableErrorAnalytics) { - using (SentrySdk.Init(o => - { - o.Dsn = "https://7674ee5291124b76894cb90a9ac6a33b@o330525.ingest.sentry.io/4505164135464960"; - // When configuring for the first time, to see what the SDK is doing: - o.Debug = true; - // Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring. - // We recommend adjusting this value in production. - o.TracesSampleRate = 1.0; - // Enable Global Mode if running in a client app - o.IsGlobalModeEnabled = false; - o.EnableTracing = true; - o.AttachStacktrace = true; - o.Environment = env; - o.Release = "4.0.2"; - o.AddEventProcessor(new CashfreeEventProcessor()); - })); - } - var config = new Configuration(); - if(configuration != null) { - config = configuration; - } - this.Client = new cashfree_pg.Client.ApiClient("https://sandbox.cashfree.com/pg"); - if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { - this.Client = new cashfree_pg.Client.ApiClient("https://api.cashfree.com/pg"); - } - // verify the required parameter 'xApiVersion' is set - if (xApiVersion == null) - throw new cashfree_pg.Client.ApiException(400, "Missing required parameter 'xApiVersion' when calling OrdersApi->PGTerminateOrder"); - - // verify the required parameter 'orderId' is set - if (orderId == null) - throw new cashfree_pg.Client.ApiException(400, "Missing required parameter 'orderId' when calling OrdersApi->PGTerminateOrder"); - - // verify the required parameter 'terminateOrderRequest' is set - if (terminateOrderRequest == null) - throw new cashfree_pg.Client.ApiException(400, "Missing required parameter 'terminateOrderRequest' when calling OrdersApi->PGTerminateOrder"); - - cashfree_pg.Client.RequestOptions localVarRequestOptions = new cashfree_pg.Client.RequestOptions(); - - string[] _contentTypes = new string[] { - "application/json" - }; - - // to determine the Accept header - string[] _accepts = new string[] { - "application/json" - }; - - var localVarContentType = cashfree_pg.Client.ClientUtils.SelectHeaderContentType(_contentTypes); - if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); - - var localVarAccept = cashfree_pg.Client.ClientUtils.SelectHeaderAccept(_accepts); - if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - - localVarRequestOptions.PathParameters.Add("order_id", cashfree_pg.Client.ClientUtils.ParameterToString(orderId)); // path parameter - localVarRequestOptions.HeaderParameters.Add("x-api-version", cashfree_pg.Client.ClientUtils.ParameterToString(xApiVersion)); // header parameter - if (xRequestId != null) - { - localVarRequestOptions.HeaderParameters.Add("x-request-id", cashfree_pg.Client.ClientUtils.ParameterToString(xRequestId)); // header parameter - } - if (xIdempotencyKey != null) - { - localVarRequestOptions.HeaderParameters.Add("x-idempotency-key", cashfree_pg.Client.ClientUtils.ParameterToString(xIdempotencyKey)); // header parameter - } - localVarRequestOptions.Data = terminateOrderRequest; - - // authentication (XPartnerAPIKey) required - - - // authentication (XClientSecret) required - - - // authentication (XPartnerMerchantID) required - - - // authentication (XClientID) required - - - // authentication (XClientSignatureHeader) required - - - - if (!string.IsNullOrEmpty(Cashfree.XClientId)) - { - localVarRequestOptions.HeaderParameters.Add("x-client-id", Cashfree.XClientId); - } - - if (!string.IsNullOrEmpty(Cashfree.XClientSecret)) - { - localVarRequestOptions.HeaderParameters.Add("x-client-secret", Cashfree.XClientSecret); - } - - if (!string.IsNullOrEmpty(Cashfree.XPartnerApiKey)) - { - localVarRequestOptions.HeaderParameters.Add("x-partner-apikey", Cashfree.XPartnerApiKey); - } - - if (!string.IsNullOrEmpty(Cashfree.XPartnerMerchantId)) - { - localVarRequestOptions.HeaderParameters.Add("x-partner-merchantid", Cashfree.XPartnerMerchantId); - } - - if (!string.IsNullOrEmpty(Cashfree.XClientSignature)) - { - localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); - } - - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.2"); - - // make the HTTP request - var localVarResponse = this.Client.Patch("/orders/{order_id}", localVarRequestOptions, config); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("PGTerminateOrder", localVarResponse); - if (_exception != null) { - if(Cashfree.XEnableErrorAnalytics) { - var sentryEvent = new SentryEvent(_exception); - SentrySdk.CaptureEvent(sentryEvent); - } - throw _exception; - } - } - - return localVarResponse; - } - /// /// PG Reconciliation - Use this API to get the payment gateway reconciliation details with date range. - It will have events for your payment account /// /// Thrown when fails to make API call @@ -1510,7 +1230,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, /// Request Body for the reconciliation /// application/json (optional) /// Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional) - /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) + /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) /// application/json (optional) /// ApiResponse of ReconEntity public cashfree_pg.Client.ApiResponse PGFetchRecon(string xApiVersion, FetchReconRequest fetchReconRequest, string? contentType = default(string?), string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), string? accept = default(string?), Configuration? configuration = null) @@ -1533,7 +1253,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.0.2"; + o.Release = "3.2.1"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -1630,7 +1350,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.2"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.2.1"); // make the HTTP request var localVarResponse = this.Client.Post("/recon", localVarRequestOptions, config); @@ -1656,7 +1376,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, /// API version to be used. Format is in YYYY-MM-DD /// The payment link ID for which you want to view the details. /// Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional) - /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) + /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) /// ApiResponse of LinkEntity public cashfree_pg.Client.ApiResponse PGCancelLink(string xApiVersion, string linkId, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), Configuration? configuration = null) { @@ -1678,7 +1398,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.0.2"; + o.Release = "3.2.1"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -1766,7 +1486,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.2"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.2.1"); // make the HTTP request var localVarResponse = this.Client.Post("/links/{link_id}/cancel", localVarRequestOptions, config); @@ -1792,7 +1512,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, /// API version to be used. Format is in YYYY-MM-DD /// Request Body to Create Payment Links /// Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional) - /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) + /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) /// ApiResponse of LinkEntity public cashfree_pg.Client.ApiResponse PGCreateLink(string xApiVersion, CreateLinkRequest createLinkRequest, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), Configuration? configuration = null) { @@ -1814,7 +1534,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.0.2"; + o.Release = "3.2.1"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -1903,7 +1623,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.2"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.2.1"); // make the HTTP request var localVarResponse = this.Client.Post("/links", localVarRequestOptions, config); @@ -1929,7 +1649,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, /// API version to be used. Format is in YYYY-MM-DD /// The payment link ID for which you want to view the details. /// Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional) - /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) + /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) /// ApiResponse of LinkEntity public cashfree_pg.Client.ApiResponse PGFetchLink(string xApiVersion, string linkId, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), Configuration? configuration = null) { @@ -1951,7 +1671,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.0.2"; + o.Release = "3.2.1"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -2039,7 +1759,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.2"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.2.1"); // make the HTTP request var localVarResponse = this.Client.Get("/links/{link_id}", localVarRequestOptions, config); @@ -2065,7 +1785,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, /// API version to be used. Format is in YYYY-MM-DD /// The payment link ID for which you want to view the details. /// Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional) - /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) + /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) /// ApiResponse of List<PaymentLinkOrderEntity> public cashfree_pg.Client.ApiResponse> PGLinkFetchOrders(string xApiVersion, string linkId, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), Configuration? configuration = null) { @@ -2087,7 +1807,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.0.2"; + o.Release = "3.2.1"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -2175,7 +1895,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.2"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.2.1"); // make the HTTP request var localVarResponse = this.Client.Get>("/links/{link_id}/orders", localVarRequestOptions, config); @@ -2202,7 +1922,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, /// The id which uniquely identifies your order /// Request to Capture or Void Transactions /// Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional) - /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) + /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) /// ApiResponse of PaymentEntity public cashfree_pg.Client.ApiResponse PGAuthorizeOrder(string xApiVersion, string orderId, AuthorizeOrderRequest authorizeOrderRequest, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), Configuration? configuration = null) { @@ -2224,7 +1944,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.0.2"; + o.Release = "3.2.1"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -2318,7 +2038,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.2"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.2.1"); // make the HTTP request var localVarResponse = this.Client.Post("/orders/{order_id}/authorization", localVarRequestOptions, config); @@ -2345,7 +2065,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, /// The Cashfree payment or transaction ID. /// Request body to submit/resend headless OTP. To use this API make sure you have headless OTP enabled for your account /// Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional) - /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) + /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) /// ApiResponse of OrderAuthenticateEntity public cashfree_pg.Client.ApiResponse PGOrderAuthenticatePayment(string xApiVersion, string cfPaymentId, OrderAuthenticatePaymentRequest orderAuthenticatePaymentRequest, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), Configuration? configuration = null) { @@ -2367,7 +2087,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.0.2"; + o.Release = "3.2.1"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -2446,7 +2166,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.2"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.2.1"); // make the HTTP request var localVarResponse = this.Client.Post("/orders/pay/authenticate/{cf_payment_id}", localVarRequestOptions, config); @@ -2473,7 +2193,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, /// The id which uniquely identifies your order /// The Cashfree payment or transaction ID. /// Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional) - /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) + /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) /// ApiResponse of PaymentEntity public cashfree_pg.Client.ApiResponse PGOrderFetchPayment(string xApiVersion, string orderId, string cfPaymentId, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), Configuration? configuration = null) { @@ -2495,7 +2215,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.0.2"; + o.Release = "3.2.1"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -2588,7 +2308,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.2"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.2.1"); // make the HTTP request var localVarResponse = this.Client.Get("/orders/{order_id}/payments/{cf_payment_id}", localVarRequestOptions, config); @@ -2614,7 +2334,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, /// API version to be used. Format is in YYYY-MM-DD /// The id which uniquely identifies your order /// Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional) - /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) + /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) /// ApiResponse of List<PaymentEntity> public cashfree_pg.Client.ApiResponse> PGOrderFetchPayments(string xApiVersion, string orderId, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), Configuration? configuration = null) { @@ -2636,7 +2356,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.0.2"; + o.Release = "3.2.1"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -2724,7 +2444,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.2"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.2.1"); // make the HTTP request var localVarResponse = this.Client.Get>("/orders/{order_id}/payments", localVarRequestOptions, config); @@ -2750,7 +2470,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, /// API version to be used. Format is in YYYY-MM-DD /// Request body to create a transaction at cashfree using `payment_session_id` /// Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional) - /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) + /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) /// ApiResponse of PayOrderEntity public cashfree_pg.Client.ApiResponse PGPayOrder(string xApiVersion, PayOrderRequest payOrderRequest, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), Configuration? configuration = null) { @@ -2772,7 +2492,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.0.2"; + o.Release = "3.2.1"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -2846,7 +2566,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.2"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.2.1"); // make the HTTP request var localVarResponse = this.Client.Post("/orders/sessions", localVarRequestOptions, config); @@ -2873,7 +2593,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, /// The id which uniquely identifies your order /// Request Body to Create Refunds /// Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional) - /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) + /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) /// ApiResponse of RefundEntity public cashfree_pg.Client.ApiResponse PGOrderCreateRefund(string xApiVersion, string orderId, OrderCreateRefundRequest orderCreateRefundRequest, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), Configuration? configuration = null) { @@ -2895,7 +2615,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.0.2"; + o.Release = "3.2.1"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -2989,7 +2709,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.2"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.2.1"); // make the HTTP request var localVarResponse = this.Client.Post("/orders/{order_id}/refunds", localVarRequestOptions, config); @@ -3016,7 +2736,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, /// The id which uniquely identifies your order /// Refund Id of the refund you want to fetch. /// Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional) - /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) + /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) /// ApiResponse of RefundEntity public cashfree_pg.Client.ApiResponse PGOrderFetchRefund(string xApiVersion, string orderId, string refundId, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), Configuration? configuration = null) { @@ -3038,7 +2758,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.0.2"; + o.Release = "3.2.1"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -3131,7 +2851,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.2"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.2.1"); // make the HTTP request var localVarResponse = this.Client.Get("/orders/{order_id}/refunds/{refund_id}", localVarRequestOptions, config); @@ -3157,7 +2877,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, /// API version to be used. Format is in YYYY-MM-DD /// The id which uniquely identifies your order /// Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional) - /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) + /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) /// ApiResponse of List<RefundEntity> public cashfree_pg.Client.ApiResponse> PGOrderFetchRefunds(string xApiVersion, string orderId, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), Configuration? configuration = null) { @@ -3179,7 +2899,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.0.2"; + o.Release = "3.2.1"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -3267,7 +2987,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.2"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.2.1"); // make the HTTP request var localVarResponse = this.Client.Get>("/orders/{order_id}/refunds", localVarRequestOptions, config); @@ -3294,7 +3014,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, /// Request Body to get the settlements /// application/json (optional) /// Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional) - /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) + /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) /// application/json (optional) /// ApiResponse of SettlementEntity public cashfree_pg.Client.ApiResponse PGFetchSettlements(string xApiVersion, FetchSettlementsRequest fetchSettlementsRequest, string? contentType = default(string?), string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), string? accept = default(string?), Configuration? configuration = null) @@ -3317,7 +3037,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.0.2"; + o.Release = "3.2.1"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -3414,7 +3134,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.2"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.2.1"); // make the HTTP request var localVarResponse = this.Client.Post("/settlements", localVarRequestOptions, config); @@ -3441,7 +3161,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, /// Request Body for the settlement reconciliation /// application/json (optional) /// Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional) - /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) + /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) /// application/json (optional) /// ApiResponse of SettlementReconEntity public cashfree_pg.Client.ApiResponse PGSettlementFetchRecon(string xApiVersion, SettlementFetchReconRequest settlementFetchReconRequest, string? contentType = default(string?), string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), string? accept = default(string?), Configuration? configuration = null) @@ -3464,7 +3184,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.0.2"; + o.Release = "3.2.1"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -3561,7 +3281,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.2"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.2.1"); // make the HTTP request var localVarResponse = this.Client.Post("/settlement/recon", localVarRequestOptions, config); @@ -3587,7 +3307,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, /// API version to be used. Format is in YYYY-MM-DD /// The id which uniquely identifies your order /// Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional) - /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) + /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) /// ApiResponse of SettlementEntity public cashfree_pg.Client.ApiResponse PGOrderFetchSettlement(string xApiVersion, string orderId, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), Configuration? configuration = null) { @@ -3609,7 +3329,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.0.2"; + o.Release = "3.2.1"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -3697,7 +3417,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.2"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.2.1"); // make the HTTP request var localVarResponse = this.Client.Get("/orders/{order_id}/settlements", localVarRequestOptions, config); @@ -3723,7 +3443,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, /// API version to be used. Format is in YYYY-MM-DD /// Request Body to Create Terminal for SPOS /// Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional) - /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) + /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) /// ApiResponse of TerminalEntity public cashfree_pg.Client.ApiResponse SposCreateTerminal(string xApiVersion, CreateTerminalRequest createTerminalRequest, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), Configuration? configuration = null) { @@ -3745,7 +3465,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.0.2"; + o.Release = "3.2.1"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -3834,7 +3554,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.2"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.2.1"); // make the HTTP request var localVarResponse = this.Client.Post("/terminal", localVarRequestOptions, config); @@ -3854,13 +3574,13 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, return localVarResponse; } /// - /// Create Terminal Transaction Use this API to create a new terminal transaction. To use this API you should first create an order using the Create Order API. Also, you need to enter the terminal details while creating the order and pass the same terminal information while creating a transaction using the below mentioned API. + /// Create Terminal Use this API to create a new terminal transaction. To use this API you should first create an order using the Create Order API. Also, you need to enter the terminal details while creating the order and pass the same terminal information while creating a transaction using the below mentioned API. /// /// Thrown when fails to make API call /// API version to be used. Format is in YYYY-MM-DD /// Request body to create a terminal transaction /// Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional) - /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) + /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) /// ApiResponse of TerminalTransactionEntity public cashfree_pg.Client.ApiResponse SposCreateTerminalTransaction(string xApiVersion, CreateTerminalTransactionRequest createTerminalTransactionRequest, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), Configuration? configuration = null) { @@ -3882,7 +3602,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.0.2"; + o.Release = "3.2.1"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -3971,7 +3691,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.2"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.2.1"); // make the HTTP request var localVarResponse = this.Client.Post("/terminal/transactions", localVarRequestOptions, config); @@ -3997,7 +3717,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, /// API version to be used. Format is in YYYY-MM-DD /// The terminal for which you want to view the order details. /// Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional) - /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) + /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) /// ApiResponse of TerminalEntity public cashfree_pg.Client.ApiResponse SposFetchTerminal(string xApiVersion, string terminalPhoneNo, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), Configuration? configuration = null) { @@ -4019,7 +3739,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.0.2"; + o.Release = "3.2.1"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -4107,7 +3827,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.2"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.2.1"); // make the HTTP request var localVarResponse = this.Client.Get("/terminal/{terminal_phone_no}", localVarRequestOptions, config); @@ -4134,7 +3854,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, /// Phone number assigned to the terminal. Required if you are not providing the cf_terminal_id in the request. /// Cashfree terminal id for which you want to get staticQRs. Required if you are not providing the terminal_phone_number in the request. /// Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional) - /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) + /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) /// ApiResponse of List<FetchTerminalQRCodesEntity> public cashfree_pg.Client.ApiResponse> SposFetchTerminalQRCodes(string xApiVersion, string terminalPhoneNo, string cfTerminalId, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), Configuration? configuration = null) { @@ -4156,7 +3876,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.0.2"; + o.Release = "3.2.1"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -4249,7 +3969,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.2"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.2.1"); // make the HTTP request var localVarResponse = this.Client.Get>("/terminal/qrcodes", localVarRequestOptions, config); @@ -4276,7 +3996,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, /// Your Customer ID that you had sent during create order API `POST/orders` /// The instrument_id which needs to be deleted /// Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional) - /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) + /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) /// ApiResponse of InstrumentEntity public cashfree_pg.Client.ApiResponse PGCustomerDeleteInstrument(string xApiVersion, string customerId, string instrumentId, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), Configuration? configuration = null) { @@ -4298,7 +4018,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.0.2"; + o.Release = "3.2.1"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -4391,7 +4111,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.2"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.2.1"); // make the HTTP request var localVarResponse = this.Client.Delete("/customers/{customer_id}/instruments/{instrument_id}", localVarRequestOptions, config); @@ -4418,7 +4138,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, /// Your Customer ID that you had sent during create order API `POST/orders` /// The instrument_id of the saved instrument which needs to be queried /// Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional) - /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) + /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) /// ApiResponse of InstrumentEntity public cashfree_pg.Client.ApiResponse PGCustomerFetchInstrument(string xApiVersion, string customerId, string instrumentId, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), Configuration? configuration = null) { @@ -4440,7 +4160,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.0.2"; + o.Release = "3.2.1"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -4533,7 +4253,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.2"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.2.1"); // make the HTTP request var localVarResponse = this.Client.Get("/customers/{customer_id}/instruments/{instrument_id}", localVarRequestOptions, config); @@ -4560,7 +4280,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, /// Your Customer ID that you had sent during create order API `POST/orders` /// Payment mode or type of saved instrument /// Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional) - /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) + /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) /// ApiResponse of List<InstrumentEntity> public cashfree_pg.Client.ApiResponse> PGCustomerFetchInstruments(string xApiVersion, string customerId, string instrumentType, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), Configuration? configuration = null) { @@ -4582,7 +4302,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.0.2"; + o.Release = "3.2.1"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -4675,7 +4395,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.2"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.2.1"); // make the HTTP request var localVarResponse = this.Client.Get>("/customers/{customer_id}/instruments", localVarRequestOptions, config); @@ -4702,7 +4422,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, /// Your Customer ID that you had sent during create order API `POST/orders` /// The instrument_id of the saved card instrument which needs to be queried /// Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional) - /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) + /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) /// ApiResponse of CryptogramEntity public cashfree_pg.Client.ApiResponse PGCustomerInstrumentsFetchCryptogram(string xApiVersion, string customerId, string instrumentId, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), Configuration? configuration = null) { @@ -4724,7 +4444,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.0.2"; + o.Release = "3.2.1"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -4817,7 +4537,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.2"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.2.1"); // make the HTTP request var localVarResponse = this.Client.Get("/customers/{customer_id}/instruments/{instrument_id}/cryptogram", localVarRequestOptions, config); diff --git a/src/cashfree_pg/Client/ApiException.cs b/src/cashfree_pg/Client/ApiException.cs index b023bfd..9903ab0 100644 --- a/src/cashfree_pg/Client/ApiException.cs +++ b/src/cashfree_pg/Client/ApiException.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Client/ApiResponse.cs b/src/cashfree_pg/Client/ApiResponse.cs index 462235c..ed9dede 100644 --- a/src/cashfree_pg/Client/ApiResponse.cs +++ b/src/cashfree_pg/Client/ApiResponse.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Client/ClientUtils.cs b/src/cashfree_pg/Client/ClientUtils.cs index b0097c3..f0e7ae9 100644 --- a/src/cashfree_pg/Client/ClientUtils.cs +++ b/src/cashfree_pg/Client/ClientUtils.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Client/Configuration.cs b/src/cashfree_pg/Client/Configuration.cs index b344b41..f5fa772 100644 --- a/src/cashfree_pg/Client/Configuration.cs +++ b/src/cashfree_pg/Client/Configuration.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -34,7 +34,7 @@ public class Configuration : IReadableConfiguration /// Version of the package. /// /// Version of the package. - public const string Version = "4.0.2"; + public const string Version = "3.2.1"; /// /// Identifier for ISO 8601 DateTime Format @@ -113,7 +113,7 @@ public class Configuration : IReadableConfiguration public Configuration() { Proxy = null; - UserAgent = WebUtility.UrlEncode("OpenAPI-Generator/4.0.2/csharp"); + UserAgent = WebUtility.UrlEncode("OpenAPI-Generator/3.2.1/csharp"); BasePath = "https://sandbox.cashfree.com/pg"; DefaultHeaders = new ConcurrentDictionary(); ApiKey = new ConcurrentDictionary(); @@ -541,8 +541,8 @@ public static string ToDebugReport() string report = "C# SDK (cashfree_pg) Debug Report:\n"; report += " OS: " + System.Environment.OSVersion + "\n"; report += " .NET Framework Version: " + System.Environment.Version + "\n"; - report += " Version of the API: 2023-08-01\n"; - report += " SDK Package Version: 4.0.2\n"; + report += " Version of the API: 2022-09-01\n"; + report += " SDK Package Version: 3.2.1\n"; return report; } diff --git a/src/cashfree_pg/Client/ExceptionFactory.cs b/src/cashfree_pg/Client/ExceptionFactory.cs index 2871198..7a66cb9 100644 --- a/src/cashfree_pg/Client/ExceptionFactory.cs +++ b/src/cashfree_pg/Client/ExceptionFactory.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Client/GlobalConfiguration.cs b/src/cashfree_pg/Client/GlobalConfiguration.cs index 2b51f25..716e95a 100644 --- a/src/cashfree_pg/Client/GlobalConfiguration.cs +++ b/src/cashfree_pg/Client/GlobalConfiguration.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Client/HttpMethod.cs b/src/cashfree_pg/Client/HttpMethod.cs index 8963dc5..b4c5acb 100644 --- a/src/cashfree_pg/Client/HttpMethod.cs +++ b/src/cashfree_pg/Client/HttpMethod.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Client/IApiAccessor.cs b/src/cashfree_pg/Client/IApiAccessor.cs index 7abc60a..881eaa9 100644 --- a/src/cashfree_pg/Client/IApiAccessor.cs +++ b/src/cashfree_pg/Client/IApiAccessor.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Client/IAsynchronousClient.cs b/src/cashfree_pg/Client/IAsynchronousClient.cs index 91f85e2..28e5583 100644 --- a/src/cashfree_pg/Client/IAsynchronousClient.cs +++ b/src/cashfree_pg/Client/IAsynchronousClient.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Client/IReadableConfiguration.cs b/src/cashfree_pg/Client/IReadableConfiguration.cs index 49f7a60..515f664 100644 --- a/src/cashfree_pg/Client/IReadableConfiguration.cs +++ b/src/cashfree_pg/Client/IReadableConfiguration.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Client/ISynchronousClient.cs b/src/cashfree_pg/Client/ISynchronousClient.cs index ef5fb62..999d801 100644 --- a/src/cashfree_pg/Client/ISynchronousClient.cs +++ b/src/cashfree_pg/Client/ISynchronousClient.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Client/Multimap.cs b/src/cashfree_pg/Client/Multimap.cs index 62bf684..d299867 100644 --- a/src/cashfree_pg/Client/Multimap.cs +++ b/src/cashfree_pg/Client/Multimap.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Client/OpenAPIDateConverter.cs b/src/cashfree_pg/Client/OpenAPIDateConverter.cs index e502225..a148bc3 100644 --- a/src/cashfree_pg/Client/OpenAPIDateConverter.cs +++ b/src/cashfree_pg/Client/OpenAPIDateConverter.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Client/RequestOptions.cs b/src/cashfree_pg/Client/RequestOptions.cs index bdddbac..549ec26 100644 --- a/src/cashfree_pg/Client/RequestOptions.cs +++ b/src/cashfree_pg/Client/RequestOptions.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Client/RetryConfiguration.cs b/src/cashfree_pg/Client/RetryConfiguration.cs index 49b12d6..acce7dd 100644 --- a/src/cashfree_pg/Client/RetryConfiguration.cs +++ b/src/cashfree_pg/Client/RetryConfiguration.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/AbstractOpenAPISchema.cs b/src/cashfree_pg/Model/AbstractOpenAPISchema.cs index 8e414d7..365f346 100644 --- a/src/cashfree_pg/Model/AbstractOpenAPISchema.cs +++ b/src/cashfree_pg/Model/AbstractOpenAPISchema.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/ApiError.cs b/src/cashfree_pg/Model/ApiError.cs index a0a2065..76bc741 100644 --- a/src/cashfree_pg/Model/ApiError.cs +++ b/src/cashfree_pg/Model/ApiError.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/ApiError404.cs b/src/cashfree_pg/Model/ApiError404.cs index 45cdbf0..f4ddb09 100644 --- a/src/cashfree_pg/Model/ApiError404.cs +++ b/src/cashfree_pg/Model/ApiError404.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/ApiError409.cs b/src/cashfree_pg/Model/ApiError409.cs index 49cda30..f03d21b 100644 --- a/src/cashfree_pg/Model/ApiError409.cs +++ b/src/cashfree_pg/Model/ApiError409.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/ApiError502.cs b/src/cashfree_pg/Model/ApiError502.cs index 2fc8c56..5c7db63 100644 --- a/src/cashfree_pg/Model/ApiError502.cs +++ b/src/cashfree_pg/Model/ApiError502.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/App.cs b/src/cashfree_pg/Model/App.cs index 6665b3c..eacd4bc 100644 --- a/src/cashfree_pg/Model/App.cs +++ b/src/cashfree_pg/Model/App.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/AppPaymentMethod.cs b/src/cashfree_pg/Model/AppPaymentMethod.cs index 4c2be80..cbb4cc0 100644 --- a/src/cashfree_pg/Model/AppPaymentMethod.cs +++ b/src/cashfree_pg/Model/AppPaymentMethod.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/AuthenticationError.cs b/src/cashfree_pg/Model/AuthenticationError.cs index ef0363a..b1ec8e3 100644 --- a/src/cashfree_pg/Model/AuthenticationError.cs +++ b/src/cashfree_pg/Model/AuthenticationError.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/AuthorizationInPaymentsEntity.cs b/src/cashfree_pg/Model/AuthorizationInPaymentsEntity.cs index 04d7a56..629a213 100644 --- a/src/cashfree_pg/Model/AuthorizationInPaymentsEntity.cs +++ b/src/cashfree_pg/Model/AuthorizationInPaymentsEntity.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/AuthorizeOrderRequest.cs b/src/cashfree_pg/Model/AuthorizeOrderRequest.cs index 27874c4..28b2bb0 100644 --- a/src/cashfree_pg/Model/AuthorizeOrderRequest.cs +++ b/src/cashfree_pg/Model/AuthorizeOrderRequest.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/BadRequestError.cs b/src/cashfree_pg/Model/BadRequestError.cs index 447adbd..f96fb9c 100644 --- a/src/cashfree_pg/Model/BadRequestError.cs +++ b/src/cashfree_pg/Model/BadRequestError.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/Card.cs b/src/cashfree_pg/Model/Card.cs index ad798d8..524175e 100644 --- a/src/cashfree_pg/Model/Card.cs +++ b/src/cashfree_pg/Model/Card.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/CardEMI.cs b/src/cashfree_pg/Model/CardEMI.cs index 1e30f75..04dc08d 100644 --- a/src/cashfree_pg/Model/CardEMI.cs +++ b/src/cashfree_pg/Model/CardEMI.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/CardEMIPaymentMethod.cs b/src/cashfree_pg/Model/CardEMIPaymentMethod.cs index 28bc47a..8d22831 100644 --- a/src/cashfree_pg/Model/CardEMIPaymentMethod.cs +++ b/src/cashfree_pg/Model/CardEMIPaymentMethod.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/CardOffer.cs b/src/cashfree_pg/Model/CardOffer.cs index a1ad9b7..3286d00 100644 --- a/src/cashfree_pg/Model/CardOffer.cs +++ b/src/cashfree_pg/Model/CardOffer.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/CardPaymentMethod.cs b/src/cashfree_pg/Model/CardPaymentMethod.cs index 40b148a..e882d45 100644 --- a/src/cashfree_pg/Model/CardPaymentMethod.cs +++ b/src/cashfree_pg/Model/CardPaymentMethod.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/CardlessEMI.cs b/src/cashfree_pg/Model/CardlessEMI.cs index 7637d8b..be0e6b9 100644 --- a/src/cashfree_pg/Model/CardlessEMI.cs +++ b/src/cashfree_pg/Model/CardlessEMI.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/CardlessEMIEntity.cs b/src/cashfree_pg/Model/CardlessEMIEntity.cs index aebf1e7..e340ba8 100644 --- a/src/cashfree_pg/Model/CardlessEMIEntity.cs +++ b/src/cashfree_pg/Model/CardlessEMIEntity.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/CardlessEMIPaymentMethod.cs b/src/cashfree_pg/Model/CardlessEMIPaymentMethod.cs index 547392e..506134f 100644 --- a/src/cashfree_pg/Model/CardlessEMIPaymentMethod.cs +++ b/src/cashfree_pg/Model/CardlessEMIPaymentMethod.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/CardlessEMIQueries.cs b/src/cashfree_pg/Model/CardlessEMIQueries.cs index b5e0ec2..1c54e83 100644 --- a/src/cashfree_pg/Model/CardlessEMIQueries.cs +++ b/src/cashfree_pg/Model/CardlessEMIQueries.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/CashbackDetails.cs b/src/cashfree_pg/Model/CashbackDetails.cs index a6bf2dd..b4f1935 100644 --- a/src/cashfree_pg/Model/CashbackDetails.cs +++ b/src/cashfree_pg/Model/CashbackDetails.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/CreateLinkRequest.cs b/src/cashfree_pg/Model/CreateLinkRequest.cs index d6de518..2387a8d 100644 --- a/src/cashfree_pg/Model/CreateLinkRequest.cs +++ b/src/cashfree_pg/Model/CreateLinkRequest.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -52,7 +52,7 @@ protected CreateLinkRequest() { } /// If \"true\", reminders will be sent to customers for collecting payments.. /// Key-value pair that can be used to store additional information about the entity. Maximum 5 key-value pairs. /// linkMeta. - public CreateLinkRequest(string linkId = default(string), double linkAmount = default(double), string linkCurrency = default(string), string linkPurpose = default(string), LinkCustomerDetailsEntity customerDetails = default(LinkCustomerDetailsEntity), bool linkPartialPayments = default(bool), double linkMinimumPartialAmount = default(double), string linkExpiryTime = default(string), LinkNotifyEntity linkNotify = default(LinkNotifyEntity), bool linkAutoReminders = default(bool), Dictionary linkNotes = default(Dictionary), LinkMetaResponseEntity linkMeta = default(LinkMetaResponseEntity)) + public CreateLinkRequest(string linkId = default(string), double linkAmount = default(double), string linkCurrency = default(string), string linkPurpose = default(string), LinkCustomerDetailsEntity customerDetails = default(LinkCustomerDetailsEntity), bool linkPartialPayments = default(bool), double linkMinimumPartialAmount = default(double), string linkExpiryTime = default(string), LinkNotifyEntity linkNotify = default(LinkNotifyEntity), bool linkAutoReminders = default(bool), Dictionary linkNotes = default(Dictionary), LinkMetaEntity linkMeta = default(LinkMetaEntity)) { // to ensure "linkId" is required (not null) if (linkId == null) @@ -168,7 +168,7 @@ protected CreateLinkRequest() { } /// Gets or Sets link_meta /// [DataMember(Name = "link_meta", EmitDefaultValue = false)] - public LinkMetaResponseEntity link_meta { get; set; } + public LinkMetaEntity link_meta { get; set; } /// /// Returns the string presentation of the object diff --git a/src/cashfree_pg/Model/CreateOfferRequest.cs b/src/cashfree_pg/Model/CreateOfferRequest.cs index bd59c68..51de4aa 100644 --- a/src/cashfree_pg/Model/CreateOfferRequest.cs +++ b/src/cashfree_pg/Model/CreateOfferRequest.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/CreateOrderRequest.cs b/src/cashfree_pg/Model/CreateOrderRequest.cs index 85fc33a..b4f1ca7 100644 --- a/src/cashfree_pg/Model/CreateOrderRequest.cs +++ b/src/cashfree_pg/Model/CreateOrderRequest.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/CreateTerminalRequest.cs b/src/cashfree_pg/Model/CreateTerminalRequest.cs index 28cc07d..d0f9457 100644 --- a/src/cashfree_pg/Model/CreateTerminalRequest.cs +++ b/src/cashfree_pg/Model/CreateTerminalRequest.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/CreateTerminalRequestTerminalMeta.cs b/src/cashfree_pg/Model/CreateTerminalRequestTerminalMeta.cs index 290ff09..0148f0a 100644 --- a/src/cashfree_pg/Model/CreateTerminalRequestTerminalMeta.cs +++ b/src/cashfree_pg/Model/CreateTerminalRequestTerminalMeta.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/CreateTerminalTransactionRequest.cs b/src/cashfree_pg/Model/CreateTerminalTransactionRequest.cs index aab8444..5291dd1 100644 --- a/src/cashfree_pg/Model/CreateTerminalTransactionRequest.cs +++ b/src/cashfree_pg/Model/CreateTerminalTransactionRequest.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -44,13 +44,8 @@ protected CreateTerminalTransactionRequest() { } /// cashfree terminal id. this is a required parameter when you do not provide the terminal phone number.. /// mention the payment method used for the transaction. possible values - QR_CODE, LINK. (required). /// agent mobile number assigned to the terminal. this is a required parameter when you do not provide the cf_terminal_id.. - public CreateTerminalTransactionRequest(string cfOrderId = default(string), string cfTerminalId = default(string), string paymentMethod = default(string), string terminalPhoneNo = default(string)) + public CreateTerminalTransactionRequest(long cfOrderId = default(long), long cfTerminalId = default(long), string paymentMethod = default(string), string terminalPhoneNo = default(string)) { - // to ensure "cfOrderId" is required (not null) - if (cfOrderId == null) - { - throw new ArgumentNullException("cfOrderId is a required property for CreateTerminalTransactionRequest and cannot be null"); - } this.cf_order_id = cfOrderId; // to ensure "paymentMethod" is required (not null) if (paymentMethod == null) @@ -67,14 +62,14 @@ protected CreateTerminalTransactionRequest() { } /// /// cashfree order ID that was returned while creating an order. [DataMember(Name = "cf_order_id", IsRequired = true, EmitDefaultValue = true)] - public string cf_order_id { get; set; } + public long cf_order_id { get; set; } /// /// cashfree terminal id. this is a required parameter when you do not provide the terminal phone number. /// /// cashfree terminal id. this is a required parameter when you do not provide the terminal phone number. [DataMember(Name = "cf_terminal_id", EmitDefaultValue = false)] - public string cf_terminal_id { get; set; } + public long cf_terminal_id { get; set; } /// /// mention the payment method used for the transaction. possible values - QR_CODE, LINK. @@ -139,13 +134,11 @@ public bool Equals(CreateTerminalTransactionRequest input) return ( this.cf_order_id == input.cf_order_id || - (this.cf_order_id != null && - this.cf_order_id.Equals(input.cf_order_id)) + this.cf_order_id.Equals(input.cf_order_id) ) && ( this.cf_terminal_id == input.cf_terminal_id || - (this.cf_terminal_id != null && - this.cf_terminal_id.Equals(input.cf_terminal_id)) + this.cf_terminal_id.Equals(input.cf_terminal_id) ) && ( this.payment_method == input.payment_method || @@ -168,14 +161,8 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.cf_order_id != null) - { - hashCode = (hashCode * 59) + this.cf_order_id.GetHashCode(); - } - if (this.cf_terminal_id != null) - { - hashCode = (hashCode * 59) + this.cf_terminal_id.GetHashCode(); - } + hashCode = (hashCode * 59) + this.cf_order_id.GetHashCode(); + hashCode = (hashCode * 59) + this.cf_terminal_id.GetHashCode(); if (this.payment_method != null) { hashCode = (hashCode * 59) + this.payment_method.GetHashCode(); diff --git a/src/cashfree_pg/Model/CryptogramEntity.cs b/src/cashfree_pg/Model/CryptogramEntity.cs index 1d8f1d1..6d50ffa 100644 --- a/src/cashfree_pg/Model/CryptogramEntity.cs +++ b/src/cashfree_pg/Model/CryptogramEntity.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/CustomerDetails.cs b/src/cashfree_pg/Model/CustomerDetails.cs index 54ddf41..793b438 100644 --- a/src/cashfree_pg/Model/CustomerDetails.cs +++ b/src/cashfree_pg/Model/CustomerDetails.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -47,8 +47,7 @@ protected CustomerDetails() { } /// Customer bank account. Required if you want to do a bank account check (TPV). /// Customer bank IFSC. Required if you want to do a bank account check (TPV). /// Customer bank code. Required for net banking payments, if you want to do a bank account check (TPV). - /// Customer identifier at Cashfree. You will get this when you create/get customer. - public CustomerDetails(string customerId = default(string), string customerEmail = default(string), string customerPhone = default(string), string customerName = default(string), string customerBankAccountNumber = default(string), string customerBankIfsc = default(string), decimal customerBankCode = default(decimal), string customerUid = default(string)) + public CustomerDetails(string customerId = default(string), string customerEmail = default(string), string customerPhone = default(string), string customerName = default(string), string customerBankAccountNumber = default(string), string customerBankIfsc = default(string), decimal customerBankCode = default(decimal)) { // to ensure "customerId" is required (not null) if (customerId == null) @@ -67,7 +66,6 @@ protected CustomerDetails() { } this.customer_bank_account_number = customerBankAccountNumber; this.customer_bank_ifsc = customerBankIfsc; this.customer_bank_code = customerBankCode; - this.customer_uid = customerUid; } /// @@ -119,13 +117,6 @@ protected CustomerDetails() { } [DataMember(Name = "customer_bank_code", EmitDefaultValue = false)] public decimal customer_bank_code { get; set; } - /// - /// Customer identifier at Cashfree. You will get this when you create/get customer - /// - /// Customer identifier at Cashfree. You will get this when you create/get customer - [DataMember(Name = "customer_uid", EmitDefaultValue = false)] - public string customer_uid { get; set; } - /// /// Returns the string presentation of the object /// @@ -141,7 +132,6 @@ public override string ToString() sb.Append(" customer_bank_account_number: ").Append(customer_bank_account_number).Append("\n"); sb.Append(" customer_bank_ifsc: ").Append(customer_bank_ifsc).Append("\n"); sb.Append(" customer_bank_code: ").Append(customer_bank_code).Append("\n"); - sb.Append(" customer_uid: ").Append(customer_uid).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -210,11 +200,6 @@ public bool Equals(CustomerDetails input) ( this.customer_bank_code == input.customer_bank_code || this.customer_bank_code.Equals(input.customer_bank_code) - ) && - ( - this.customer_uid == input.customer_uid || - (this.customer_uid != null && - this.customer_uid.Equals(input.customer_uid)) ); } @@ -252,10 +237,6 @@ public override int GetHashCode() hashCode = (hashCode * 59) + this.customer_bank_ifsc.GetHashCode(); } hashCode = (hashCode * 59) + this.customer_bank_code.GetHashCode(); - if (this.customer_uid != null) - { - hashCode = (hashCode * 59) + this.customer_uid.GetHashCode(); - } return hashCode; } } diff --git a/src/cashfree_pg/Model/CustomerDetailsCardlessEMI.cs b/src/cashfree_pg/Model/CustomerDetailsCardlessEMI.cs index e4970a2..2b616f1 100644 --- a/src/cashfree_pg/Model/CustomerDetailsCardlessEMI.cs +++ b/src/cashfree_pg/Model/CustomerDetailsCardlessEMI.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/DiscountDetails.cs b/src/cashfree_pg/Model/DiscountDetails.cs index bfdb9ec..24c6857 100644 --- a/src/cashfree_pg/Model/DiscountDetails.cs +++ b/src/cashfree_pg/Model/DiscountDetails.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/EMIOffer.cs b/src/cashfree_pg/Model/EMIOffer.cs index 5fb00ea..443c0ac 100644 --- a/src/cashfree_pg/Model/EMIOffer.cs +++ b/src/cashfree_pg/Model/EMIOffer.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/EMIPlansArray.cs b/src/cashfree_pg/Model/EMIPlansArray.cs index 2618e78..97f23bc 100644 --- a/src/cashfree_pg/Model/EMIPlansArray.cs +++ b/src/cashfree_pg/Model/EMIPlansArray.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/EligibilityCardlessEMIEntity.cs b/src/cashfree_pg/Model/EligibilityCardlessEMIEntity.cs index 81ae021..24ed62e 100644 --- a/src/cashfree_pg/Model/EligibilityCardlessEMIEntity.cs +++ b/src/cashfree_pg/Model/EligibilityCardlessEMIEntity.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/EligibilityFetchCardlessEMIRequest.cs b/src/cashfree_pg/Model/EligibilityFetchCardlessEMIRequest.cs index cdd3f4b..f817007 100644 --- a/src/cashfree_pg/Model/EligibilityFetchCardlessEMIRequest.cs +++ b/src/cashfree_pg/Model/EligibilityFetchCardlessEMIRequest.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/EligibilityFetchOffersRequest.cs b/src/cashfree_pg/Model/EligibilityFetchOffersRequest.cs index ad78a6e..b434dd2 100644 --- a/src/cashfree_pg/Model/EligibilityFetchOffersRequest.cs +++ b/src/cashfree_pg/Model/EligibilityFetchOffersRequest.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/EligibilityFetchPaylaterRequest.cs b/src/cashfree_pg/Model/EligibilityFetchPaylaterRequest.cs index f8e7338..0ca5dab 100644 --- a/src/cashfree_pg/Model/EligibilityFetchPaylaterRequest.cs +++ b/src/cashfree_pg/Model/EligibilityFetchPaylaterRequest.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/EligibilityFetchPaymentMethodsRequest.cs b/src/cashfree_pg/Model/EligibilityFetchPaymentMethodsRequest.cs index f0c556f..150f113 100644 --- a/src/cashfree_pg/Model/EligibilityFetchPaymentMethodsRequest.cs +++ b/src/cashfree_pg/Model/EligibilityFetchPaymentMethodsRequest.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/EligibilityOfferEntity.cs b/src/cashfree_pg/Model/EligibilityOfferEntity.cs index 1f82fae..9dbc5f6 100644 --- a/src/cashfree_pg/Model/EligibilityOfferEntity.cs +++ b/src/cashfree_pg/Model/EligibilityOfferEntity.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/EligibilityPaylaterEntity.cs b/src/cashfree_pg/Model/EligibilityPaylaterEntity.cs index 068af82..b483fe7 100644 --- a/src/cashfree_pg/Model/EligibilityPaylaterEntity.cs +++ b/src/cashfree_pg/Model/EligibilityPaylaterEntity.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/EligibilityPaymentMethodsEntity.cs b/src/cashfree_pg/Model/EligibilityPaymentMethodsEntity.cs index ed5c681..c9da0bc 100644 --- a/src/cashfree_pg/Model/EligibilityPaymentMethodsEntity.cs +++ b/src/cashfree_pg/Model/EligibilityPaymentMethodsEntity.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/EligibilityPaymentMethodsEntityEntityDetails.cs b/src/cashfree_pg/Model/EligibilityPaymentMethodsEntityEntityDetails.cs index 75cee4b..f044bca 100644 --- a/src/cashfree_pg/Model/EligibilityPaymentMethodsEntityEntityDetails.cs +++ b/src/cashfree_pg/Model/EligibilityPaymentMethodsEntityEntityDetails.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/ErrorDetailsInPaymentsEntity.cs b/src/cashfree_pg/Model/ErrorDetailsInPaymentsEntity.cs index df4bd0d..b6d840f 100644 --- a/src/cashfree_pg/Model/ErrorDetailsInPaymentsEntity.cs +++ b/src/cashfree_pg/Model/ErrorDetailsInPaymentsEntity.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/FetchReconRequest.cs b/src/cashfree_pg/Model/FetchReconRequest.cs index c248d5b..2c9e853 100644 --- a/src/cashfree_pg/Model/FetchReconRequest.cs +++ b/src/cashfree_pg/Model/FetchReconRequest.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/FetchReconRequestFilters.cs b/src/cashfree_pg/Model/FetchReconRequestFilters.cs index 8140957..322f7e2 100644 --- a/src/cashfree_pg/Model/FetchReconRequestFilters.cs +++ b/src/cashfree_pg/Model/FetchReconRequestFilters.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/FetchReconRequestPagination.cs b/src/cashfree_pg/Model/FetchReconRequestPagination.cs index 560895d..ccd22a4 100644 --- a/src/cashfree_pg/Model/FetchReconRequestPagination.cs +++ b/src/cashfree_pg/Model/FetchReconRequestPagination.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/FetchSettlementsRequest.cs b/src/cashfree_pg/Model/FetchSettlementsRequest.cs index bc342cb..b68b022 100644 --- a/src/cashfree_pg/Model/FetchSettlementsRequest.cs +++ b/src/cashfree_pg/Model/FetchSettlementsRequest.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/FetchSettlementsRequestFilters.cs b/src/cashfree_pg/Model/FetchSettlementsRequestFilters.cs index 54c5243..dce80ab 100644 --- a/src/cashfree_pg/Model/FetchSettlementsRequestFilters.cs +++ b/src/cashfree_pg/Model/FetchSettlementsRequestFilters.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -39,7 +39,7 @@ public class FetchSettlementsRequestFilters : IEquatableList of settlement UTRs for which you want the settlement reconciliation details.. /// Specify the start date from when you want the settlement reconciliation details.. /// Specify the end date till when you want the settlement reconciliation details.. - public FetchSettlementsRequestFilters(List cfSettlementIds = default(List), List settlementUtrs = default(List), string startDate = default(string), string endDate = default(string)) + public FetchSettlementsRequestFilters(List cfSettlementIds = default(List), List settlementUtrs = default(List), string startDate = default(string), string endDate = default(string)) { this.cf_settlement_ids = cfSettlementIds; this.settlement_utrs = settlementUtrs; @@ -52,7 +52,7 @@ public class FetchSettlementsRequestFilters : IEquatable /// List of settlement IDs for which you want the settlement reconciliation details. [DataMember(Name = "cf_settlement_ids", EmitDefaultValue = false)] - public List cf_settlement_ids { get; set; } + public List cf_settlement_ids { get; set; } /// /// List of settlement UTRs for which you want the settlement reconciliation details. diff --git a/src/cashfree_pg/Model/FetchSettlementsRequestPagination.cs b/src/cashfree_pg/Model/FetchSettlementsRequestPagination.cs index a18a7fd..a70ce16 100644 --- a/src/cashfree_pg/Model/FetchSettlementsRequestPagination.cs +++ b/src/cashfree_pg/Model/FetchSettlementsRequestPagination.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/FetchTerminalQRCodesEntity.cs b/src/cashfree_pg/Model/FetchTerminalQRCodesEntity.cs index c9dac34..f76cc45 100644 --- a/src/cashfree_pg/Model/FetchTerminalQRCodesEntity.cs +++ b/src/cashfree_pg/Model/FetchTerminalQRCodesEntity.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/IdempotencyError.cs b/src/cashfree_pg/Model/IdempotencyError.cs index 74a718f..7125dfa 100644 --- a/src/cashfree_pg/Model/IdempotencyError.cs +++ b/src/cashfree_pg/Model/IdempotencyError.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/InstrumentEntity.cs b/src/cashfree_pg/Model/InstrumentEntity.cs index ed29761..5310118 100644 --- a/src/cashfree_pg/Model/InstrumentEntity.cs +++ b/src/cashfree_pg/Model/InstrumentEntity.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/InstrumentWebhook.cs b/src/cashfree_pg/Model/InstrumentWebhook.cs index 2a143cd..6bee652 100644 --- a/src/cashfree_pg/Model/InstrumentWebhook.cs +++ b/src/cashfree_pg/Model/InstrumentWebhook.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/InstrumentWebhookData.cs b/src/cashfree_pg/Model/InstrumentWebhookData.cs index b5c9721..28ae9f3 100644 --- a/src/cashfree_pg/Model/InstrumentWebhookData.cs +++ b/src/cashfree_pg/Model/InstrumentWebhookData.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/InstrumentWebhookDataEntity.cs b/src/cashfree_pg/Model/InstrumentWebhookDataEntity.cs index 0e1944c..5bd190d 100644 --- a/src/cashfree_pg/Model/InstrumentWebhookDataEntity.cs +++ b/src/cashfree_pg/Model/InstrumentWebhookDataEntity.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/LinkCustomerDetailsEntity.cs b/src/cashfree_pg/Model/LinkCustomerDetailsEntity.cs index 8db1d74..efb1252 100644 --- a/src/cashfree_pg/Model/LinkCustomerDetailsEntity.cs +++ b/src/cashfree_pg/Model/LinkCustomerDetailsEntity.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/LinkEntity.cs b/src/cashfree_pg/Model/LinkEntity.cs index b41e014..453ffb8 100644 --- a/src/cashfree_pg/Model/LinkEntity.cs +++ b/src/cashfree_pg/Model/LinkEntity.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -46,13 +46,13 @@ public class LinkEntity : IEquatable, IValidatableObject /// linkPurpose. /// linkCreatedAt. /// customerDetails. - /// linkMeta. + /// Payment link meta information object.. /// linkUrl. /// linkExpiryTime. /// Key-value pair that can be used to store additional information about the entity. Maximum 5 key-value pairs. /// linkAutoReminders. /// linkNotify. - public LinkEntity(string cfLinkId = default(string), string linkId = default(string), string linkStatus = default(string), string linkCurrency = default(string), decimal linkAmount = default(decimal), decimal linkAmountPaid = default(decimal), bool linkPartialPayments = default(bool), decimal linkMinimumPartialAmount = default(decimal), string linkPurpose = default(string), string linkCreatedAt = default(string), LinkCustomerDetailsEntity customerDetails = default(LinkCustomerDetailsEntity), LinkMetaResponseEntity linkMeta = default(LinkMetaResponseEntity), string linkUrl = default(string), string linkExpiryTime = default(string), Dictionary linkNotes = default(Dictionary), bool linkAutoReminders = default(bool), LinkNotifyEntity linkNotify = default(LinkNotifyEntity)) + public LinkEntity(long cfLinkId = default(long), string linkId = default(string), string linkStatus = default(string), string linkCurrency = default(string), decimal linkAmount = default(decimal), decimal linkAmountPaid = default(decimal), bool linkPartialPayments = default(bool), decimal linkMinimumPartialAmount = default(decimal), string linkPurpose = default(string), string linkCreatedAt = default(string), LinkCustomerDetailsEntity customerDetails = default(LinkCustomerDetailsEntity), Dictionary linkMeta = default(Dictionary), string linkUrl = default(string), string linkExpiryTime = default(string), Dictionary linkNotes = default(Dictionary), bool linkAutoReminders = default(bool), LinkNotifyEntity linkNotify = default(LinkNotifyEntity)) { this.cf_link_id = cfLinkId; this.link_id = linkId; @@ -77,7 +77,7 @@ public class LinkEntity : IEquatable, IValidatableObject /// Gets or Sets cf_link_id /// [DataMember(Name = "cf_link_id", EmitDefaultValue = false)] - public string cf_link_id { get; set; } + public long cf_link_id { get; set; } /// /// Gets or Sets link_id @@ -140,10 +140,12 @@ public class LinkEntity : IEquatable, IValidatableObject public LinkCustomerDetailsEntity customer_details { get; set; } /// - /// Gets or Sets link_meta + /// Payment link meta information object. /// + /// Payment link meta information object. + /// {"key_1":"value_1","key_2":"value_2"} [DataMember(Name = "link_meta", EmitDefaultValue = false)] - public LinkMetaResponseEntity link_meta { get; set; } + public Dictionary link_meta { get; set; } /// /// Gets or Sets link_url @@ -239,8 +241,7 @@ public bool Equals(LinkEntity input) return ( this.cf_link_id == input.cf_link_id || - (this.cf_link_id != null && - this.cf_link_id.Equals(input.cf_link_id)) + this.cf_link_id.Equals(input.cf_link_id) ) && ( this.link_id == input.link_id || @@ -290,8 +291,9 @@ public bool Equals(LinkEntity input) ) && ( this.link_meta == input.link_meta || - (this.link_meta != null && - this.link_meta.Equals(input.link_meta)) + this.link_meta != null && + input.link_meta != null && + this.link_meta.SequenceEqual(input.link_meta) ) && ( this.link_url == input.link_url || @@ -329,10 +331,7 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.cf_link_id != null) - { - hashCode = (hashCode * 59) + this.cf_link_id.GetHashCode(); - } + hashCode = (hashCode * 59) + this.cf_link_id.GetHashCode(); if (this.link_id != null) { hashCode = (hashCode * 59) + this.link_id.GetHashCode(); diff --git a/src/cashfree_pg/Model/LinkNotifyEntity.cs b/src/cashfree_pg/Model/LinkNotifyEntity.cs index 8b679a6..7b82fdd 100644 --- a/src/cashfree_pg/Model/LinkNotifyEntity.cs +++ b/src/cashfree_pg/Model/LinkNotifyEntity.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/NetBankingPaymentMethod.cs b/src/cashfree_pg/Model/NetBankingPaymentMethod.cs index 119ecc1..c677241 100644 --- a/src/cashfree_pg/Model/NetBankingPaymentMethod.cs +++ b/src/cashfree_pg/Model/NetBankingPaymentMethod.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/Netbanking.cs b/src/cashfree_pg/Model/Netbanking.cs index 7e935a2..5d7d63b 100644 --- a/src/cashfree_pg/Model/Netbanking.cs +++ b/src/cashfree_pg/Model/Netbanking.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/OfferAll.cs b/src/cashfree_pg/Model/OfferAll.cs index f3c15a5..2781dee 100644 --- a/src/cashfree_pg/Model/OfferAll.cs +++ b/src/cashfree_pg/Model/OfferAll.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/OfferCard.cs b/src/cashfree_pg/Model/OfferCard.cs index a659f69..4bcfb0c 100644 --- a/src/cashfree_pg/Model/OfferCard.cs +++ b/src/cashfree_pg/Model/OfferCard.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/OfferDetails.cs b/src/cashfree_pg/Model/OfferDetails.cs index b7c5e09..f671fc1 100644 --- a/src/cashfree_pg/Model/OfferDetails.cs +++ b/src/cashfree_pg/Model/OfferDetails.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/OfferEMI.cs b/src/cashfree_pg/Model/OfferEMI.cs index 8cad08d..f443121 100644 --- a/src/cashfree_pg/Model/OfferEMI.cs +++ b/src/cashfree_pg/Model/OfferEMI.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/OfferEntity.cs b/src/cashfree_pg/Model/OfferEntity.cs index 3f484aa..a5465b2 100644 --- a/src/cashfree_pg/Model/OfferEntity.cs +++ b/src/cashfree_pg/Model/OfferEntity.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/OfferFilters.cs b/src/cashfree_pg/Model/OfferFilters.cs index dcc37c5..e829416 100644 --- a/src/cashfree_pg/Model/OfferFilters.cs +++ b/src/cashfree_pg/Model/OfferFilters.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/OfferMeta.cs b/src/cashfree_pg/Model/OfferMeta.cs index 70b742d..331ebf9 100644 --- a/src/cashfree_pg/Model/OfferMeta.cs +++ b/src/cashfree_pg/Model/OfferMeta.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/OfferNB.cs b/src/cashfree_pg/Model/OfferNB.cs index 220d958..757e8fc 100644 --- a/src/cashfree_pg/Model/OfferNB.cs +++ b/src/cashfree_pg/Model/OfferNB.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/OfferNBNetbanking.cs b/src/cashfree_pg/Model/OfferNBNetbanking.cs index 9028875..ad3a42e 100644 --- a/src/cashfree_pg/Model/OfferNBNetbanking.cs +++ b/src/cashfree_pg/Model/OfferNBNetbanking.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/OfferPaylater.cs b/src/cashfree_pg/Model/OfferPaylater.cs index ade2da2..9f46c77 100644 --- a/src/cashfree_pg/Model/OfferPaylater.cs +++ b/src/cashfree_pg/Model/OfferPaylater.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/OfferQueries.cs b/src/cashfree_pg/Model/OfferQueries.cs index e6f9c4f..ea707ae 100644 --- a/src/cashfree_pg/Model/OfferQueries.cs +++ b/src/cashfree_pg/Model/OfferQueries.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/OfferTnc.cs b/src/cashfree_pg/Model/OfferTnc.cs index 67cc6b0..cea3579 100644 --- a/src/cashfree_pg/Model/OfferTnc.cs +++ b/src/cashfree_pg/Model/OfferTnc.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/OfferType.cs b/src/cashfree_pg/Model/OfferType.cs index fa9ca66..1630f2c 100644 --- a/src/cashfree_pg/Model/OfferType.cs +++ b/src/cashfree_pg/Model/OfferType.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/OfferUPI.cs b/src/cashfree_pg/Model/OfferUPI.cs index 68d8aac..df661e7 100644 --- a/src/cashfree_pg/Model/OfferUPI.cs +++ b/src/cashfree_pg/Model/OfferUPI.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/OfferValidations.cs b/src/cashfree_pg/Model/OfferValidations.cs index 0225724..5361663 100644 --- a/src/cashfree_pg/Model/OfferValidations.cs +++ b/src/cashfree_pg/Model/OfferValidations.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -42,7 +42,8 @@ protected OfferValidations() { } /// /// Minimum Amount for Offer to be Applicable. /// paymentMethod (required). - public OfferValidations(decimal minAmount = default(decimal), OfferValidationsPaymentMethod paymentMethod = default(OfferValidationsPaymentMethod)) + /// Maximum amount of Offer that can be availed. (required). + public OfferValidations(decimal minAmount = default(decimal), OfferValidationsPaymentMethod paymentMethod = default(OfferValidationsPaymentMethod), decimal maxAllowed = default(decimal)) { // to ensure "paymentMethod" is required (not null) if (paymentMethod == null) @@ -50,6 +51,7 @@ protected OfferValidations() { } throw new ArgumentNullException("paymentMethod is a required property for OfferValidations and cannot be null"); } this.payment_method = paymentMethod; + this.max_allowed = maxAllowed; this.min_amount = minAmount; } @@ -67,6 +69,14 @@ protected OfferValidations() { } [DataMember(Name = "payment_method", IsRequired = true, EmitDefaultValue = true)] public OfferValidationsPaymentMethod payment_method { get; set; } + /// + /// Maximum amount of Offer that can be availed. + /// + /// Maximum amount of Offer that can be availed. + /// 10 + [DataMember(Name = "max_allowed", IsRequired = true, EmitDefaultValue = true)] + public decimal max_allowed { get; set; } + /// /// Returns the string presentation of the object /// @@ -77,6 +87,7 @@ public override string ToString() sb.Append("class OfferValidations {\n"); sb.Append(" min_amount: ").Append(min_amount).Append("\n"); sb.Append(" payment_method: ").Append(payment_method).Append("\n"); + sb.Append(" max_allowed: ").Append(max_allowed).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -120,6 +131,10 @@ public bool Equals(OfferValidations input) this.payment_method == input.payment_method || (this.payment_method != null && this.payment_method.Equals(input.payment_method)) + ) && + ( + this.max_allowed == input.max_allowed || + this.max_allowed.Equals(input.max_allowed) ); } @@ -137,6 +152,7 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.payment_method.GetHashCode(); } + hashCode = (hashCode * 59) + this.max_allowed.GetHashCode(); return hashCode; } } @@ -154,6 +170,12 @@ public override int GetHashCode() yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for min_amount, must be a value greater than or equal to 1.", new [] { "min_amount" }); } + // max_allowed (decimal) minimum + if (this.max_allowed < (decimal)1) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for max_allowed, must be a value greater than or equal to 1.", new [] { "max_allowed" }); + } + yield break; } } diff --git a/src/cashfree_pg/Model/OfferValidationsPaymentMethod.cs b/src/cashfree_pg/Model/OfferValidationsPaymentMethod.cs index cb0b387..bb853bb 100644 --- a/src/cashfree_pg/Model/OfferValidationsPaymentMethod.cs +++ b/src/cashfree_pg/Model/OfferValidationsPaymentMethod.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/OfferWallet.cs b/src/cashfree_pg/Model/OfferWallet.cs index 9740bbe..b1d5fa8 100644 --- a/src/cashfree_pg/Model/OfferWallet.cs +++ b/src/cashfree_pg/Model/OfferWallet.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/OrderAuthenticateEntity.cs b/src/cashfree_pg/Model/OrderAuthenticateEntity.cs index a9f54df..f9c864b 100644 --- a/src/cashfree_pg/Model/OrderAuthenticateEntity.cs +++ b/src/cashfree_pg/Model/OrderAuthenticateEntity.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -93,7 +93,7 @@ public enum AuthenticateStatusEnum /// The action that was invoked for this request.. /// 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.. /// Human readable message which describes the status in more detail. - public OrderAuthenticateEntity(string cfPaymentId = default(string), ActionEnum? action = default(ActionEnum?), AuthenticateStatusEnum? authenticateStatus = default(AuthenticateStatusEnum?), string paymentMessage = default(string)) + public OrderAuthenticateEntity(decimal cfPaymentId = default(decimal), ActionEnum? action = default(ActionEnum?), AuthenticateStatusEnum? authenticateStatus = default(AuthenticateStatusEnum?), string paymentMessage = default(string)) { this.cf_payment_id = cfPaymentId; this.action = action; @@ -106,7 +106,7 @@ public enum AuthenticateStatusEnum /// /// The payment id for which this request was sent [DataMember(Name = "cf_payment_id", EmitDefaultValue = false)] - public string cf_payment_id { get; set; } + public decimal cf_payment_id { get; set; } /// /// Human readable message which describes the status in more detail @@ -164,8 +164,7 @@ public bool Equals(OrderAuthenticateEntity input) return ( this.cf_payment_id == input.cf_payment_id || - (this.cf_payment_id != null && - this.cf_payment_id.Equals(input.cf_payment_id)) + this.cf_payment_id.Equals(input.cf_payment_id) ) && ( this.action == input.action || @@ -191,10 +190,7 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.cf_payment_id != null) - { - hashCode = (hashCode * 59) + this.cf_payment_id.GetHashCode(); - } + hashCode = (hashCode * 59) + this.cf_payment_id.GetHashCode(); hashCode = (hashCode * 59) + this.action.GetHashCode(); hashCode = (hashCode * 59) + this.authenticate_status.GetHashCode(); if (this.payment_message != null) diff --git a/src/cashfree_pg/Model/OrderAuthenticatePaymentRequest.cs b/src/cashfree_pg/Model/OrderAuthenticatePaymentRequest.cs index 1b66e4b..5e6dbbc 100644 --- a/src/cashfree_pg/Model/OrderAuthenticatePaymentRequest.cs +++ b/src/cashfree_pg/Model/OrderAuthenticatePaymentRequest.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/OrderCreateRefundRequest.cs b/src/cashfree_pg/Model/OrderCreateRefundRequest.cs index 2d8bfe3..4f17f38 100644 --- a/src/cashfree_pg/Model/OrderCreateRefundRequest.cs +++ b/src/cashfree_pg/Model/OrderCreateRefundRequest.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/OrderEntity.cs b/src/cashfree_pg/Model/OrderEntity.cs index 76905c1..7d52b90 100644 --- a/src/cashfree_pg/Model/OrderEntity.cs +++ b/src/cashfree_pg/Model/OrderEntity.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -40,7 +40,7 @@ public class OrderEntity : IEquatable, IValidatableObject /// Type of the entity.. /// Currency of the order. Example INR. /// orderAmount. - /// 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. + /// 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. . /// paymentSessionId. /// orderExpiryTime. /// Additional note for order. @@ -48,8 +48,11 @@ public class OrderEntity : IEquatable, IValidatableObject /// orderSplits. /// customerDetails. /// orderMeta. + /// payments. + /// settlements. + /// refunds. /// Custom Tags in thr form of {\"key\":\"value\"} which can be passed for an order. A maximum of 10 tags can be added. - public OrderEntity(string cfOrderId = default(string), string orderId = default(string), string entity = default(string), string orderCurrency = default(string), decimal orderAmount = default(decimal), string orderStatus = default(string), string paymentSessionId = default(string), DateTime orderExpiryTime = default(DateTime), string orderNote = default(string), DateTime createdAt = default(DateTime), List orderSplits = default(List), CustomerDetails customerDetails = default(CustomerDetails), OrderMeta orderMeta = default(OrderMeta), Dictionary orderTags = default(Dictionary)) + public OrderEntity(long cfOrderId = default(long), string orderId = default(string), string entity = default(string), string orderCurrency = default(string), decimal orderAmount = default(decimal), string orderStatus = default(string), string paymentSessionId = default(string), DateTime orderExpiryTime = default(DateTime), string orderNote = default(string), DateTime createdAt = default(DateTime), List orderSplits = default(List), CustomerDetails customerDetails = default(CustomerDetails), OrderMeta orderMeta = default(OrderMeta), PaymentURLObject payments = default(PaymentURLObject), SettlementURLObject settlements = default(SettlementURLObject), RefundURLObject refunds = default(RefundURLObject), Dictionary orderTags = default(Dictionary)) { this.cf_order_id = cfOrderId; this.order_id = orderId; @@ -64,6 +67,9 @@ public class OrderEntity : IEquatable, IValidatableObject this.order_splits = orderSplits; this.customer_details = customerDetails; this.order_meta = orderMeta; + this.payments = payments; + this.settlements = settlements; + this.refunds = refunds; this.order_tags = orderTags; } @@ -72,7 +78,7 @@ public class OrderEntity : IEquatable, IValidatableObject /// /// unique id generated by cashfree for your order [DataMember(Name = "cf_order_id", EmitDefaultValue = false)] - public string cf_order_id { get; set; } + public long cf_order_id { get; set; } /// /// order_id sent during the api request @@ -102,9 +108,9 @@ public class OrderEntity : IEquatable, IValidatableObject public decimal order_amount { get; set; } /// - /// 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 + /// 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 + /// 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. [DataMember(Name = "order_status", EmitDefaultValue = false)] public string order_status { get; set; } @@ -153,6 +159,24 @@ public class OrderEntity : IEquatable, IValidatableObject [DataMember(Name = "order_meta", EmitDefaultValue = false)] public OrderMeta order_meta { get; set; } + /// + /// Gets or Sets payments + /// + [DataMember(Name = "payments", EmitDefaultValue = false)] + public PaymentURLObject payments { get; set; } + + /// + /// Gets or Sets settlements + /// + [DataMember(Name = "settlements", EmitDefaultValue = false)] + public SettlementURLObject settlements { get; set; } + + /// + /// Gets or Sets refunds + /// + [DataMember(Name = "refunds", EmitDefaultValue = false)] + public RefundURLObject refunds { get; set; } + /// /// Custom Tags in thr form of {\"key\":\"value\"} which can be passed for an order. A maximum of 10 tags can be added /// @@ -182,6 +206,9 @@ public override string ToString() sb.Append(" order_splits: ").Append(order_splits).Append("\n"); sb.Append(" customer_details: ").Append(customer_details).Append("\n"); sb.Append(" order_meta: ").Append(order_meta).Append("\n"); + sb.Append(" payments: ").Append(payments).Append("\n"); + sb.Append(" settlements: ").Append(settlements).Append("\n"); + sb.Append(" refunds: ").Append(refunds).Append("\n"); sb.Append(" order_tags: ").Append(order_tags).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -220,8 +247,7 @@ public bool Equals(OrderEntity input) return ( this.cf_order_id == input.cf_order_id || - (this.cf_order_id != null && - this.cf_order_id.Equals(input.cf_order_id)) + this.cf_order_id.Equals(input.cf_order_id) ) && ( this.order_id == input.order_id || @@ -283,6 +309,21 @@ public bool Equals(OrderEntity input) (this.order_meta != null && this.order_meta.Equals(input.order_meta)) ) && + ( + this.payments == input.payments || + (this.payments != null && + this.payments.Equals(input.payments)) + ) && + ( + this.settlements == input.settlements || + (this.settlements != null && + this.settlements.Equals(input.settlements)) + ) && + ( + this.refunds == input.refunds || + (this.refunds != null && + this.refunds.Equals(input.refunds)) + ) && ( this.order_tags == input.order_tags || this.order_tags != null && @@ -300,10 +341,7 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.cf_order_id != null) - { - hashCode = (hashCode * 59) + this.cf_order_id.GetHashCode(); - } + hashCode = (hashCode * 59) + this.cf_order_id.GetHashCode(); if (this.order_id != null) { hashCode = (hashCode * 59) + this.order_id.GetHashCode(); @@ -349,6 +387,18 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.order_meta.GetHashCode(); } + if (this.payments != null) + { + hashCode = (hashCode * 59) + this.payments.GetHashCode(); + } + if (this.settlements != null) + { + hashCode = (hashCode * 59) + this.settlements.GetHashCode(); + } + if (this.refunds != null) + { + hashCode = (hashCode * 59) + this.refunds.GetHashCode(); + } if (this.order_tags != null) { hashCode = (hashCode * 59) + this.order_tags.GetHashCode(); diff --git a/src/cashfree_pg/Model/OrderMeta.cs b/src/cashfree_pg/Model/OrderMeta.cs index b6c8466..03a45e9 100644 --- a/src/cashfree_pg/Model/OrderMeta.cs +++ b/src/cashfree_pg/Model/OrderMeta.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -35,7 +35,7 @@ public class OrderMeta : IEquatable, IValidatableObject /// /// Initializes a new instance of the class. /// - /// 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. + /// 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.. /// Notification URL for server-server communication. Useful when user's connection drops while re-directing. NotifyUrl should be an https URL. Maximum length: 250.. /// 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. public OrderMeta(string returnUrl = default(string), string notifyUrl = default(string), Object paymentMethods = default(Object)) @@ -46,10 +46,10 @@ public class OrderMeta : IEquatable, IValidatableObject } /// - /// 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 + /// 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 - /// https://example.com/return?order_id=myOrderId + /// 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. + /// https://example.com/return?order_id={order_id} [DataMember(Name = "return_url", EmitDefaultValue = false)] public string return_url { get; set; } diff --git a/src/cashfree_pg/Model/OrderPayData.cs b/src/cashfree_pg/Model/OrderPayData.cs index 0930c57..70bf898 100644 --- a/src/cashfree_pg/Model/OrderPayData.cs +++ b/src/cashfree_pg/Model/OrderPayData.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/PayOrderEntity.cs b/src/cashfree_pg/Model/PayOrderEntity.cs index 39c1dff..0806368 100644 --- a/src/cashfree_pg/Model/PayOrderEntity.cs +++ b/src/cashfree_pg/Model/PayOrderEntity.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -176,7 +176,7 @@ public enum ActionEnum /// 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'. /// One of [\"link\", \"custom\", \"form\"]. /// data. - public PayOrderEntity(decimal paymentAmount = default(decimal), string cfPaymentId = default(string), PaymentMethodEnum? paymentMethod = default(PaymentMethodEnum?), ChannelEnum? channel = default(ChannelEnum?), ActionEnum? action = default(ActionEnum?), OrderPayData data = default(OrderPayData)) + public PayOrderEntity(decimal paymentAmount = default(decimal), long cfPaymentId = default(long), PaymentMethodEnum? paymentMethod = default(PaymentMethodEnum?), ChannelEnum? channel = default(ChannelEnum?), ActionEnum? action = default(ActionEnum?), OrderPayData data = default(OrderPayData)) { this.payment_amount = paymentAmount; this.cf_payment_id = cfPaymentId; @@ -198,7 +198,7 @@ public enum ActionEnum /// /// Payment identifier created by Cashfree [DataMember(Name = "cf_payment_id", EmitDefaultValue = false)] - public string cf_payment_id { get; set; } + public long cf_payment_id { get; set; } /// /// Gets or Sets data @@ -261,8 +261,7 @@ public bool Equals(PayOrderEntity input) ) && ( this.cf_payment_id == input.cf_payment_id || - (this.cf_payment_id != null && - this.cf_payment_id.Equals(input.cf_payment_id)) + this.cf_payment_id.Equals(input.cf_payment_id) ) && ( this.payment_method == input.payment_method || @@ -293,10 +292,7 @@ public override int GetHashCode() { int hashCode = 41; hashCode = (hashCode * 59) + this.payment_amount.GetHashCode(); - if (this.cf_payment_id != null) - { - hashCode = (hashCode * 59) + this.cf_payment_id.GetHashCode(); - } + hashCode = (hashCode * 59) + this.cf_payment_id.GetHashCode(); hashCode = (hashCode * 59) + this.payment_method.GetHashCode(); hashCode = (hashCode * 59) + this.channel.GetHashCode(); hashCode = (hashCode * 59) + this.action.GetHashCode(); diff --git a/src/cashfree_pg/Model/PayOrderRequest.cs b/src/cashfree_pg/Model/PayOrderRequest.cs index 4cbd081..600b2f2 100644 --- a/src/cashfree_pg/Model/PayOrderRequest.cs +++ b/src/cashfree_pg/Model/PayOrderRequest.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/PayOrderRequestPaymentMethod.cs b/src/cashfree_pg/Model/PayOrderRequestPaymentMethod.cs index 53c3fc3..acfd75c 100644 --- a/src/cashfree_pg/Model/PayOrderRequestPaymentMethod.cs +++ b/src/cashfree_pg/Model/PayOrderRequestPaymentMethod.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/Paylater.cs b/src/cashfree_pg/Model/Paylater.cs index b9833dc..bc2e36f 100644 --- a/src/cashfree_pg/Model/Paylater.cs +++ b/src/cashfree_pg/Model/Paylater.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/PaylaterEntity.cs b/src/cashfree_pg/Model/PaylaterEntity.cs index cdca4b5..23ca98a 100644 --- a/src/cashfree_pg/Model/PaylaterEntity.cs +++ b/src/cashfree_pg/Model/PaylaterEntity.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/PaylaterOffer.cs b/src/cashfree_pg/Model/PaylaterOffer.cs index 0f4a3a8..cce6d5e 100644 --- a/src/cashfree_pg/Model/PaylaterOffer.cs +++ b/src/cashfree_pg/Model/PaylaterOffer.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/PaylaterPaymentMethod.cs b/src/cashfree_pg/Model/PaylaterPaymentMethod.cs index 87989fe..143dc6c 100644 --- a/src/cashfree_pg/Model/PaylaterPaymentMethod.cs +++ b/src/cashfree_pg/Model/PaylaterPaymentMethod.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/PaymentEntity.cs b/src/cashfree_pg/Model/PaymentEntity.cs index 859fc8e..422a634 100644 --- a/src/cashfree_pg/Model/PaymentEntity.cs +++ b/src/cashfree_pg/Model/PaymentEntity.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -98,7 +98,7 @@ public enum PaymentStatusEnum /// errorDetails. /// isCaptured. /// Order amount can be different from payment amount if you collect service fee from the customer. - /// Type of payment group. One of ['upi', 'card', 'app', 'netbanking', 'paylater', 'cardless_emi']. + /// Type of payment group. One of ['prepaid_card', 'upi_ppi_offline', 'cash', 'upi_credit_card', 'paypal', 'net_banking', 'cardless_emi', 'credit_card', 'bank_transfer', 'pay_later', 'debit_card_emi', 'debit_card', 'wallet', 'upi_ppi', 'upi', 'credit_card_emi']. /// paymentCurrency. /// paymentAmount. /// This is the time when the payment was initiated. @@ -109,7 +109,7 @@ public enum PaymentStatusEnum /// authId. /// authorization. /// paymentMethod. - public PaymentEntity(string cfPaymentId = default(string), string orderId = default(string), string entity = default(string), ErrorDetailsInPaymentsEntity errorDetails = default(ErrorDetailsInPaymentsEntity), bool isCaptured = default(bool), decimal orderAmount = default(decimal), string paymentGroup = default(string), string paymentCurrency = default(string), decimal paymentAmount = default(decimal), string paymentTime = default(string), string paymentCompletionTime = default(string), PaymentStatusEnum? paymentStatus = default(PaymentStatusEnum?), string paymentMessage = default(string), string bankReference = default(string), string authId = default(string), AuthorizationInPaymentsEntity authorization = default(AuthorizationInPaymentsEntity), PaymentMethodInPaymentsEntity paymentMethod = default(PaymentMethodInPaymentsEntity)) + public PaymentEntity(long cfPaymentId = default(long), string orderId = default(string), string entity = default(string), ErrorDetailsInPaymentsEntity errorDetails = default(ErrorDetailsInPaymentsEntity), bool isCaptured = default(bool), decimal orderAmount = default(decimal), string paymentGroup = default(string), string paymentCurrency = default(string), decimal paymentAmount = default(decimal), string paymentTime = default(string), string paymentCompletionTime = default(string), PaymentStatusEnum? paymentStatus = default(PaymentStatusEnum?), string paymentMessage = default(string), string bankReference = default(string), string authId = default(string), AuthorizationInPaymentsEntity authorization = default(AuthorizationInPaymentsEntity), PaymentMethodInPaymentsEntity paymentMethod = default(PaymentMethodInPaymentsEntity)) { this.cf_payment_id = cfPaymentId; this.order_id = orderId; @@ -134,7 +134,7 @@ public enum PaymentStatusEnum /// Gets or Sets cf_payment_id /// [DataMember(Name = "cf_payment_id", EmitDefaultValue = false)] - public string cf_payment_id { get; set; } + public long cf_payment_id { get; set; } /// /// Gets or Sets order_id @@ -168,9 +168,9 @@ public enum PaymentStatusEnum public decimal order_amount { get; set; } /// - /// Type of payment group. One of ['upi', 'card', 'app', 'netbanking', 'paylater', 'cardless_emi'] + /// Type of payment group. One of ['prepaid_card', 'upi_ppi_offline', 'cash', 'upi_credit_card', 'paypal', 'net_banking', 'cardless_emi', 'credit_card', 'bank_transfer', 'pay_later', 'debit_card_emi', 'debit_card', 'wallet', 'upi_ppi', 'upi', 'credit_card_emi'] /// - /// Type of payment group. One of ['upi', 'card', 'app', 'netbanking', 'paylater', 'cardless_emi'] + /// Type of payment group. One of ['prepaid_card', 'upi_ppi_offline', 'cash', 'upi_credit_card', 'paypal', 'net_banking', 'cardless_emi', 'credit_card', 'bank_transfer', 'pay_later', 'debit_card_emi', 'debit_card', 'wallet', 'upi_ppi', 'upi', 'credit_card_emi'] [DataMember(Name = "payment_group", EmitDefaultValue = false)] public string payment_group { get; set; } @@ -292,8 +292,7 @@ public bool Equals(PaymentEntity input) return ( this.cf_payment_id == input.cf_payment_id || - (this.cf_payment_id != null && - this.cf_payment_id.Equals(input.cf_payment_id)) + this.cf_payment_id.Equals(input.cf_payment_id) ) && ( this.order_id == input.order_id || @@ -382,10 +381,7 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.cf_payment_id != null) - { - hashCode = (hashCode * 59) + this.cf_payment_id.GetHashCode(); - } + hashCode = (hashCode * 59) + this.cf_payment_id.GetHashCode(); if (this.order_id != null) { hashCode = (hashCode * 59) + this.order_id.GetHashCode(); diff --git a/src/cashfree_pg/Model/PaymentLinkCustomerDetails.cs b/src/cashfree_pg/Model/PaymentLinkCustomerDetails.cs index 9468cdf..d615ce3 100644 --- a/src/cashfree_pg/Model/PaymentLinkCustomerDetails.cs +++ b/src/cashfree_pg/Model/PaymentLinkCustomerDetails.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/PaymentLinkOrderEntity.cs b/src/cashfree_pg/Model/PaymentLinkOrderEntity.cs index 7df6fe6..be7e0ba 100644 --- a/src/cashfree_pg/Model/PaymentLinkOrderEntity.cs +++ b/src/cashfree_pg/Model/PaymentLinkOrderEntity.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -49,8 +49,11 @@ public class PaymentLinkOrderEntity : IEquatable, IValid /// orderSplits. /// customerDetails. /// orderMeta. + /// payments. + /// settlements. + /// refunds. /// Custom Tags in thr form of {\"key\":\"value\"} which can be passed for an order. A maximum of 10 tags can be added. - public PaymentLinkOrderEntity(string cfOrderId = default(string), string linkId = default(string), string orderId = default(string), string entity = default(string), string orderCurrency = default(string), decimal orderAmount = default(decimal), string orderStatus = default(string), string paymentSessionId = default(string), DateTime orderExpiryTime = default(DateTime), string orderNote = default(string), DateTime createdAt = default(DateTime), List orderSplits = default(List), PaymentLinkCustomerDetails customerDetails = default(PaymentLinkCustomerDetails), OrderMeta orderMeta = default(OrderMeta), Dictionary orderTags = default(Dictionary)) + public PaymentLinkOrderEntity(long cfOrderId = default(long), string linkId = default(string), string orderId = default(string), string entity = default(string), string orderCurrency = default(string), decimal orderAmount = default(decimal), string orderStatus = default(string), string paymentSessionId = default(string), DateTime orderExpiryTime = default(DateTime), string orderNote = default(string), DateTime createdAt = default(DateTime), List orderSplits = default(List), PaymentLinkCustomerDetails customerDetails = default(PaymentLinkCustomerDetails), OrderMeta orderMeta = default(OrderMeta), PaymentURLObject payments = default(PaymentURLObject), SettlementURLObject settlements = default(SettlementURLObject), RefundURLObject refunds = default(RefundURLObject), Dictionary orderTags = default(Dictionary)) { this.cf_order_id = cfOrderId; this.link_id = linkId; @@ -66,6 +69,9 @@ public class PaymentLinkOrderEntity : IEquatable, IValid this.order_splits = orderSplits; this.customer_details = customerDetails; this.order_meta = orderMeta; + this.payments = payments; + this.settlements = settlements; + this.refunds = refunds; this.order_tags = orderTags; } @@ -74,7 +80,7 @@ public class PaymentLinkOrderEntity : IEquatable, IValid /// /// unique id generated by cashfree for your order [DataMember(Name = "cf_order_id", EmitDefaultValue = false)] - public string cf_order_id { get; set; } + public long cf_order_id { get; set; } /// /// link id of the order @@ -162,6 +168,24 @@ public class PaymentLinkOrderEntity : IEquatable, IValid [DataMember(Name = "order_meta", EmitDefaultValue = false)] public OrderMeta order_meta { get; set; } + /// + /// Gets or Sets payments + /// + [DataMember(Name = "payments", EmitDefaultValue = false)] + public PaymentURLObject payments { get; set; } + + /// + /// Gets or Sets settlements + /// + [DataMember(Name = "settlements", EmitDefaultValue = false)] + public SettlementURLObject settlements { get; set; } + + /// + /// Gets or Sets refunds + /// + [DataMember(Name = "refunds", EmitDefaultValue = false)] + public RefundURLObject refunds { get; set; } + /// /// Custom Tags in thr form of {\"key\":\"value\"} which can be passed for an order. A maximum of 10 tags can be added /// @@ -192,6 +216,9 @@ public override string ToString() sb.Append(" order_splits: ").Append(order_splits).Append("\n"); sb.Append(" customer_details: ").Append(customer_details).Append("\n"); sb.Append(" order_meta: ").Append(order_meta).Append("\n"); + sb.Append(" payments: ").Append(payments).Append("\n"); + sb.Append(" settlements: ").Append(settlements).Append("\n"); + sb.Append(" refunds: ").Append(refunds).Append("\n"); sb.Append(" order_tags: ").Append(order_tags).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -230,8 +257,7 @@ public bool Equals(PaymentLinkOrderEntity input) return ( this.cf_order_id == input.cf_order_id || - (this.cf_order_id != null && - this.cf_order_id.Equals(input.cf_order_id)) + this.cf_order_id.Equals(input.cf_order_id) ) && ( this.link_id == input.link_id || @@ -298,6 +324,21 @@ public bool Equals(PaymentLinkOrderEntity input) (this.order_meta != null && this.order_meta.Equals(input.order_meta)) ) && + ( + this.payments == input.payments || + (this.payments != null && + this.payments.Equals(input.payments)) + ) && + ( + this.settlements == input.settlements || + (this.settlements != null && + this.settlements.Equals(input.settlements)) + ) && + ( + this.refunds == input.refunds || + (this.refunds != null && + this.refunds.Equals(input.refunds)) + ) && ( this.order_tags == input.order_tags || this.order_tags != null && @@ -315,10 +356,7 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.cf_order_id != null) - { - hashCode = (hashCode * 59) + this.cf_order_id.GetHashCode(); - } + hashCode = (hashCode * 59) + this.cf_order_id.GetHashCode(); if (this.link_id != null) { hashCode = (hashCode * 59) + this.link_id.GetHashCode(); @@ -368,6 +406,18 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.order_meta.GetHashCode(); } + if (this.payments != null) + { + hashCode = (hashCode * 59) + this.payments.GetHashCode(); + } + if (this.settlements != null) + { + hashCode = (hashCode * 59) + this.settlements.GetHashCode(); + } + if (this.refunds != null) + { + hashCode = (hashCode * 59) + this.refunds.GetHashCode(); + } if (this.order_tags != null) { hashCode = (hashCode * 59) + this.order_tags.GetHashCode(); diff --git a/src/cashfree_pg/Model/PaymentMethodAppInPaymentsEntity.cs b/src/cashfree_pg/Model/PaymentMethodAppInPaymentsEntity.cs index 3df018f..50f3650 100644 --- a/src/cashfree_pg/Model/PaymentMethodAppInPaymentsEntity.cs +++ b/src/cashfree_pg/Model/PaymentMethodAppInPaymentsEntity.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -35,33 +35,17 @@ public class PaymentMethodAppInPaymentsEntity : IEquatable /// Initializes a new instance of the class. /// - /// channel. - /// provider. - /// phone. - public PaymentMethodAppInPaymentsEntity(string channel = default(string), string provider = default(string), string phone = default(string)) + /// app. + public PaymentMethodAppInPaymentsEntity(PaymentMethodAppInPaymentsEntityApp app = default(PaymentMethodAppInPaymentsEntityApp)) { - this.channel = channel; - this.provider = provider; - this.phone = phone; + this.app = app; } /// - /// Gets or Sets channel + /// Gets or Sets app /// - [DataMember(Name = "channel", EmitDefaultValue = false)] - public string channel { get; set; } - - /// - /// Gets or Sets provider - /// - [DataMember(Name = "provider", EmitDefaultValue = false)] - public string provider { get; set; } - - /// - /// Gets or Sets phone - /// - [DataMember(Name = "phone", EmitDefaultValue = false)] - public string phone { get; set; } + [DataMember(Name = "app", EmitDefaultValue = false)] + public PaymentMethodAppInPaymentsEntityApp app { get; set; } /// /// Returns the string presentation of the object @@ -71,9 +55,7 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class PaymentMethodAppInPaymentsEntity {\n"); - sb.Append(" channel: ").Append(channel).Append("\n"); - sb.Append(" provider: ").Append(provider).Append("\n"); - sb.Append(" phone: ").Append(phone).Append("\n"); + sb.Append(" app: ").Append(app).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -110,19 +92,9 @@ public bool Equals(PaymentMethodAppInPaymentsEntity input) } return ( - this.channel == input.channel || - (this.channel != null && - this.channel.Equals(input.channel)) - ) && - ( - this.provider == input.provider || - (this.provider != null && - this.provider.Equals(input.provider)) - ) && - ( - this.phone == input.phone || - (this.phone != null && - this.phone.Equals(input.phone)) + this.app == input.app || + (this.app != null && + this.app.Equals(input.app)) ); } @@ -135,17 +107,9 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.channel != null) - { - hashCode = (hashCode * 59) + this.channel.GetHashCode(); - } - if (this.provider != null) - { - hashCode = (hashCode * 59) + this.provider.GetHashCode(); - } - if (this.phone != null) + if (this.app != null) { - hashCode = (hashCode * 59) + this.phone.GetHashCode(); + hashCode = (hashCode * 59) + this.app.GetHashCode(); } return hashCode; } diff --git a/src/cashfree_pg/Model/PaymentMethodAppInPaymentsEntityApp.cs b/src/cashfree_pg/Model/PaymentMethodAppInPaymentsEntityApp.cs new file mode 100644 index 0000000..676cee8 --- /dev/null +++ b/src/cashfree_pg/Model/PaymentMethodAppInPaymentsEntityApp.cs @@ -0,0 +1,165 @@ +/* + * Cashfree Payment Gateway APIs + * + * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. + * + * The version of the OpenAPI document: 2022-09-01 + * Contact: developers@cashfree.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = cashfree_pg.Client.OpenAPIDateConverter; + +namespace cashfree_pg.Model +{ + /// + /// PaymentMethodAppInPaymentsEntityApp + /// + [DataContract(Name = "PaymentMethodAppInPaymentsEntity_app")] + public class PaymentMethodAppInPaymentsEntityApp : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// channel. + /// provider. + /// phone. + public PaymentMethodAppInPaymentsEntityApp(string channel = default(string), string provider = default(string), string phone = default(string)) + { + this.channel = channel; + this.provider = provider; + this.phone = phone; + } + + /// + /// Gets or Sets channel + /// + [DataMember(Name = "channel", EmitDefaultValue = false)] + public string channel { get; set; } + + /// + /// Gets or Sets provider + /// + [DataMember(Name = "provider", EmitDefaultValue = false)] + public string provider { get; set; } + + /// + /// Gets or Sets phone + /// + [DataMember(Name = "phone", EmitDefaultValue = false)] + public string phone { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class PaymentMethodAppInPaymentsEntityApp {\n"); + sb.Append(" channel: ").Append(channel).Append("\n"); + sb.Append(" provider: ").Append(provider).Append("\n"); + sb.Append(" phone: ").Append(phone).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PaymentMethodAppInPaymentsEntityApp); + } + + /// + /// Returns true if PaymentMethodAppInPaymentsEntityApp instances are equal + /// + /// Instance of PaymentMethodAppInPaymentsEntityApp to be compared + /// Boolean + public bool Equals(PaymentMethodAppInPaymentsEntityApp input) + { + if (input == null) + { + return false; + } + return + ( + this.channel == input.channel || + (this.channel != null && + this.channel.Equals(input.channel)) + ) && + ( + this.provider == input.provider || + (this.provider != null && + this.provider.Equals(input.provider)) + ) && + ( + this.phone == input.phone || + (this.phone != null && + this.phone.Equals(input.phone)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.channel != null) + { + hashCode = (hashCode * 59) + this.channel.GetHashCode(); + } + if (this.provider != null) + { + hashCode = (hashCode * 59) + this.provider.GetHashCode(); + } + if (this.phone != null) + { + hashCode = (hashCode * 59) + this.phone.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/cashfree_pg/Model/PaymentMethodCardEMIInPaymentsEntity.cs b/src/cashfree_pg/Model/PaymentMethodCardEMIInPaymentsEntity.cs new file mode 100644 index 0000000..f639b69 --- /dev/null +++ b/src/cashfree_pg/Model/PaymentMethodCardEMIInPaymentsEntity.cs @@ -0,0 +1,129 @@ +/* + * Cashfree Payment Gateway APIs + * + * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. + * + * The version of the OpenAPI document: 2022-09-01 + * Contact: developers@cashfree.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = cashfree_pg.Client.OpenAPIDateConverter; + +namespace cashfree_pg.Model +{ + /// + /// payment method card emi object in payment entity + /// + [DataContract(Name = "PaymentMethodCardEMIInPaymentsEntity")] + public class PaymentMethodCardEMIInPaymentsEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// emi. + public PaymentMethodCardEMIInPaymentsEntity(PaymentMethodCardEMIInPaymentsEntityEmi emi = default(PaymentMethodCardEMIInPaymentsEntityEmi)) + { + this.emi = emi; + } + + /// + /// Gets or Sets emi + /// + [DataMember(Name = "emi", EmitDefaultValue = false)] + public PaymentMethodCardEMIInPaymentsEntityEmi emi { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class PaymentMethodCardEMIInPaymentsEntity {\n"); + sb.Append(" emi: ").Append(emi).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PaymentMethodCardEMIInPaymentsEntity); + } + + /// + /// Returns true if PaymentMethodCardEMIInPaymentsEntity instances are equal + /// + /// Instance of PaymentMethodCardEMIInPaymentsEntity to be compared + /// Boolean + public bool Equals(PaymentMethodCardEMIInPaymentsEntity input) + { + if (input == null) + { + return false; + } + return + ( + this.emi == input.emi || + (this.emi != null && + this.emi.Equals(input.emi)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.emi != null) + { + hashCode = (hashCode * 59) + this.emi.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/cashfree_pg/Model/PaymentMethodCardEMIInPaymentsEntityEmi.cs b/src/cashfree_pg/Model/PaymentMethodCardEMIInPaymentsEntityEmi.cs new file mode 100644 index 0000000..137012c --- /dev/null +++ b/src/cashfree_pg/Model/PaymentMethodCardEMIInPaymentsEntityEmi.cs @@ -0,0 +1,269 @@ +/* + * Cashfree Payment Gateway APIs + * + * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. + * + * The version of the OpenAPI document: 2022-09-01 + * Contact: developers@cashfree.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = cashfree_pg.Client.OpenAPIDateConverter; + +namespace cashfree_pg.Model +{ + /// + /// PaymentMethodCardEMIInPaymentsEntityEmi + /// + [DataContract(Name = "PaymentMethodCardEMIInPaymentsEntity_emi")] + public class PaymentMethodCardEMIInPaymentsEntityEmi : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// channel. + /// cardNumber. + /// cardNetwork. + /// cardType. + /// cardCountry. + /// cardBankName. + /// cardNetworkReferenceId. + /// emiTenure. + /// emiDetails. + public PaymentMethodCardEMIInPaymentsEntityEmi(string channel = default(string), string cardNumber = default(string), string cardNetwork = default(string), string cardType = default(string), string cardCountry = default(string), string cardBankName = default(string), string cardNetworkReferenceId = default(string), decimal emiTenure = default(decimal), PaymentMethodCardEMIInPaymentsEntityEmiEmiDetails emiDetails = default(PaymentMethodCardEMIInPaymentsEntityEmiEmiDetails)) + { + this.channel = channel; + this.card_number = cardNumber; + this.card_network = cardNetwork; + this.card_type = cardType; + this.card_country = cardCountry; + this.card_bank_name = cardBankName; + this.card_network_reference_id = cardNetworkReferenceId; + this.emi_tenure = emiTenure; + this.emi_details = emiDetails; + } + + /// + /// Gets or Sets channel + /// + [DataMember(Name = "channel", EmitDefaultValue = false)] + public string channel { get; set; } + + /// + /// Gets or Sets card_number + /// + [DataMember(Name = "card_number", EmitDefaultValue = false)] + public string card_number { get; set; } + + /// + /// Gets or Sets card_network + /// + [DataMember(Name = "card_network", EmitDefaultValue = false)] + public string card_network { get; set; } + + /// + /// Gets or Sets card_type + /// + [DataMember(Name = "card_type", EmitDefaultValue = false)] + public string card_type { get; set; } + + /// + /// Gets or Sets card_country + /// + [DataMember(Name = "card_country", EmitDefaultValue = false)] + public string card_country { get; set; } + + /// + /// Gets or Sets card_bank_name + /// + [DataMember(Name = "card_bank_name", EmitDefaultValue = false)] + public string card_bank_name { get; set; } + + /// + /// Gets or Sets card_network_reference_id + /// + [DataMember(Name = "card_network_reference_id", EmitDefaultValue = false)] + public string card_network_reference_id { get; set; } + + /// + /// Gets or Sets emi_tenure + /// + [DataMember(Name = "emi_tenure", EmitDefaultValue = false)] + public decimal emi_tenure { get; set; } + + /// + /// Gets or Sets emi_details + /// + [DataMember(Name = "emi_details", EmitDefaultValue = false)] + public PaymentMethodCardEMIInPaymentsEntityEmiEmiDetails emi_details { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class PaymentMethodCardEMIInPaymentsEntityEmi {\n"); + sb.Append(" channel: ").Append(channel).Append("\n"); + sb.Append(" card_number: ").Append(card_number).Append("\n"); + sb.Append(" card_network: ").Append(card_network).Append("\n"); + sb.Append(" card_type: ").Append(card_type).Append("\n"); + sb.Append(" card_country: ").Append(card_country).Append("\n"); + sb.Append(" card_bank_name: ").Append(card_bank_name).Append("\n"); + sb.Append(" card_network_reference_id: ").Append(card_network_reference_id).Append("\n"); + sb.Append(" emi_tenure: ").Append(emi_tenure).Append("\n"); + sb.Append(" emi_details: ").Append(emi_details).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PaymentMethodCardEMIInPaymentsEntityEmi); + } + + /// + /// Returns true if PaymentMethodCardEMIInPaymentsEntityEmi instances are equal + /// + /// Instance of PaymentMethodCardEMIInPaymentsEntityEmi to be compared + /// Boolean + public bool Equals(PaymentMethodCardEMIInPaymentsEntityEmi input) + { + if (input == null) + { + return false; + } + return + ( + this.channel == input.channel || + (this.channel != null && + this.channel.Equals(input.channel)) + ) && + ( + this.card_number == input.card_number || + (this.card_number != null && + this.card_number.Equals(input.card_number)) + ) && + ( + this.card_network == input.card_network || + (this.card_network != null && + this.card_network.Equals(input.card_network)) + ) && + ( + this.card_type == input.card_type || + (this.card_type != null && + this.card_type.Equals(input.card_type)) + ) && + ( + this.card_country == input.card_country || + (this.card_country != null && + this.card_country.Equals(input.card_country)) + ) && + ( + this.card_bank_name == input.card_bank_name || + (this.card_bank_name != null && + this.card_bank_name.Equals(input.card_bank_name)) + ) && + ( + this.card_network_reference_id == input.card_network_reference_id || + (this.card_network_reference_id != null && + this.card_network_reference_id.Equals(input.card_network_reference_id)) + ) && + ( + this.emi_tenure == input.emi_tenure || + this.emi_tenure.Equals(input.emi_tenure) + ) && + ( + this.emi_details == input.emi_details || + (this.emi_details != null && + this.emi_details.Equals(input.emi_details)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.channel != null) + { + hashCode = (hashCode * 59) + this.channel.GetHashCode(); + } + if (this.card_number != null) + { + hashCode = (hashCode * 59) + this.card_number.GetHashCode(); + } + if (this.card_network != null) + { + hashCode = (hashCode * 59) + this.card_network.GetHashCode(); + } + if (this.card_type != null) + { + hashCode = (hashCode * 59) + this.card_type.GetHashCode(); + } + if (this.card_country != null) + { + hashCode = (hashCode * 59) + this.card_country.GetHashCode(); + } + if (this.card_bank_name != null) + { + hashCode = (hashCode * 59) + this.card_bank_name.GetHashCode(); + } + if (this.card_network_reference_id != null) + { + hashCode = (hashCode * 59) + this.card_network_reference_id.GetHashCode(); + } + hashCode = (hashCode * 59) + this.emi_tenure.GetHashCode(); + if (this.emi_details != null) + { + hashCode = (hashCode * 59) + this.emi_details.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/cashfree_pg/Model/PaymentMethodCardEMIInPaymentsEntityEmiEmiDetails.cs b/src/cashfree_pg/Model/PaymentMethodCardEMIInPaymentsEntityEmiEmiDetails.cs new file mode 100644 index 0000000..02bf072 --- /dev/null +++ b/src/cashfree_pg/Model/PaymentMethodCardEMIInPaymentsEntityEmiEmiDetails.cs @@ -0,0 +1,153 @@ +/* + * Cashfree Payment Gateway APIs + * + * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. + * + * The version of the OpenAPI document: 2022-09-01 + * Contact: developers@cashfree.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = cashfree_pg.Client.OpenAPIDateConverter; + +namespace cashfree_pg.Model +{ + /// + /// PaymentMethodCardEMIInPaymentsEntityEmiEmiDetails + /// + [DataContract(Name = "PaymentMethodCardEMIInPaymentsEntity_emi_emi_details")] + public class PaymentMethodCardEMIInPaymentsEntityEmiEmiDetails : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// emiAmount. + /// emiTenure. + /// emiInterest. + public PaymentMethodCardEMIInPaymentsEntityEmiEmiDetails(decimal emiAmount = default(decimal), decimal emiTenure = default(decimal), decimal emiInterest = default(decimal)) + { + this.emi_amount = emiAmount; + this.emi_tenure = emiTenure; + this.emi_interest = emiInterest; + } + + /// + /// Gets or Sets emi_amount + /// + [DataMember(Name = "emi_amount", EmitDefaultValue = false)] + public decimal emi_amount { get; set; } + + /// + /// Gets or Sets emi_tenure + /// + [DataMember(Name = "emi_tenure", EmitDefaultValue = false)] + public decimal emi_tenure { get; set; } + + /// + /// Gets or Sets emi_interest + /// + [DataMember(Name = "emi_interest", EmitDefaultValue = false)] + public decimal emi_interest { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class PaymentMethodCardEMIInPaymentsEntityEmiEmiDetails {\n"); + sb.Append(" emi_amount: ").Append(emi_amount).Append("\n"); + sb.Append(" emi_tenure: ").Append(emi_tenure).Append("\n"); + sb.Append(" emi_interest: ").Append(emi_interest).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PaymentMethodCardEMIInPaymentsEntityEmiEmiDetails); + } + + /// + /// Returns true if PaymentMethodCardEMIInPaymentsEntityEmiEmiDetails instances are equal + /// + /// Instance of PaymentMethodCardEMIInPaymentsEntityEmiEmiDetails to be compared + /// Boolean + public bool Equals(PaymentMethodCardEMIInPaymentsEntityEmiEmiDetails input) + { + if (input == null) + { + return false; + } + return + ( + this.emi_amount == input.emi_amount || + this.emi_amount.Equals(input.emi_amount) + ) && + ( + this.emi_tenure == input.emi_tenure || + this.emi_tenure.Equals(input.emi_tenure) + ) && + ( + this.emi_interest == input.emi_interest || + this.emi_interest.Equals(input.emi_interest) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.emi_amount.GetHashCode(); + hashCode = (hashCode * 59) + this.emi_tenure.GetHashCode(); + hashCode = (hashCode * 59) + this.emi_interest.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/cashfree_pg/Model/PaymentMethodCardInPaymentsEntity.cs b/src/cashfree_pg/Model/PaymentMethodCardInPaymentsEntity.cs index 714f1e8..eb6d371 100644 --- a/src/cashfree_pg/Model/PaymentMethodCardInPaymentsEntity.cs +++ b/src/cashfree_pg/Model/PaymentMethodCardInPaymentsEntity.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -35,65 +35,17 @@ public class PaymentMethodCardInPaymentsEntity : IEquatable /// Initializes a new instance of the class. /// - /// channel. - /// cardNumber. - /// cardNetwork. - /// cardType. - /// cardCountry. - /// cardBankName. - /// cardNetworkReferenceId. - public PaymentMethodCardInPaymentsEntity(string channel = default(string), string cardNumber = default(string), string cardNetwork = default(string), string cardType = default(string), string cardCountry = default(string), string cardBankName = default(string), string cardNetworkReferenceId = default(string)) + /// card. + public PaymentMethodCardInPaymentsEntity(PaymentMethodCardInPaymentsEntityCard card = default(PaymentMethodCardInPaymentsEntityCard)) { - this.channel = channel; - this.card_number = cardNumber; - this.card_network = cardNetwork; - this.card_type = cardType; - this.card_country = cardCountry; - this.card_bank_name = cardBankName; - this.card_network_reference_id = cardNetworkReferenceId; + this.card = card; } /// - /// Gets or Sets channel + /// Gets or Sets card /// - [DataMember(Name = "channel", EmitDefaultValue = false)] - public string channel { get; set; } - - /// - /// Gets or Sets card_number - /// - [DataMember(Name = "card_number", EmitDefaultValue = false)] - public string card_number { get; set; } - - /// - /// Gets or Sets card_network - /// - [DataMember(Name = "card_network", EmitDefaultValue = false)] - public string card_network { get; set; } - - /// - /// Gets or Sets card_type - /// - [DataMember(Name = "card_type", EmitDefaultValue = false)] - public string card_type { get; set; } - - /// - /// Gets or Sets card_country - /// - [DataMember(Name = "card_country", EmitDefaultValue = false)] - public string card_country { get; set; } - - /// - /// Gets or Sets card_bank_name - /// - [DataMember(Name = "card_bank_name", EmitDefaultValue = false)] - public string card_bank_name { get; set; } - - /// - /// Gets or Sets card_network_reference_id - /// - [DataMember(Name = "card_network_reference_id", EmitDefaultValue = false)] - public string card_network_reference_id { get; set; } + [DataMember(Name = "card", EmitDefaultValue = false)] + public PaymentMethodCardInPaymentsEntityCard card { get; set; } /// /// Returns the string presentation of the object @@ -103,13 +55,7 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class PaymentMethodCardInPaymentsEntity {\n"); - sb.Append(" channel: ").Append(channel).Append("\n"); - sb.Append(" card_number: ").Append(card_number).Append("\n"); - sb.Append(" card_network: ").Append(card_network).Append("\n"); - sb.Append(" card_type: ").Append(card_type).Append("\n"); - sb.Append(" card_country: ").Append(card_country).Append("\n"); - sb.Append(" card_bank_name: ").Append(card_bank_name).Append("\n"); - sb.Append(" card_network_reference_id: ").Append(card_network_reference_id).Append("\n"); + sb.Append(" card: ").Append(card).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -146,39 +92,9 @@ public bool Equals(PaymentMethodCardInPaymentsEntity input) } return ( - this.channel == input.channel || - (this.channel != null && - this.channel.Equals(input.channel)) - ) && - ( - this.card_number == input.card_number || - (this.card_number != null && - this.card_number.Equals(input.card_number)) - ) && - ( - this.card_network == input.card_network || - (this.card_network != null && - this.card_network.Equals(input.card_network)) - ) && - ( - this.card_type == input.card_type || - (this.card_type != null && - this.card_type.Equals(input.card_type)) - ) && - ( - this.card_country == input.card_country || - (this.card_country != null && - this.card_country.Equals(input.card_country)) - ) && - ( - this.card_bank_name == input.card_bank_name || - (this.card_bank_name != null && - this.card_bank_name.Equals(input.card_bank_name)) - ) && - ( - this.card_network_reference_id == input.card_network_reference_id || - (this.card_network_reference_id != null && - this.card_network_reference_id.Equals(input.card_network_reference_id)) + this.card == input.card || + (this.card != null && + this.card.Equals(input.card)) ); } @@ -191,33 +107,9 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.channel != null) - { - hashCode = (hashCode * 59) + this.channel.GetHashCode(); - } - if (this.card_number != null) - { - hashCode = (hashCode * 59) + this.card_number.GetHashCode(); - } - if (this.card_network != null) - { - hashCode = (hashCode * 59) + this.card_network.GetHashCode(); - } - if (this.card_type != null) - { - hashCode = (hashCode * 59) + this.card_type.GetHashCode(); - } - if (this.card_country != null) - { - hashCode = (hashCode * 59) + this.card_country.GetHashCode(); - } - if (this.card_bank_name != null) - { - hashCode = (hashCode * 59) + this.card_bank_name.GetHashCode(); - } - if (this.card_network_reference_id != null) + if (this.card != null) { - hashCode = (hashCode * 59) + this.card_network_reference_id.GetHashCode(); + hashCode = (hashCode * 59) + this.card.GetHashCode(); } return hashCode; } diff --git a/src/cashfree_pg/Model/PaymentMethodCardInPaymentsEntityCard.cs b/src/cashfree_pg/Model/PaymentMethodCardInPaymentsEntityCard.cs new file mode 100644 index 0000000..1ca2922 --- /dev/null +++ b/src/cashfree_pg/Model/PaymentMethodCardInPaymentsEntityCard.cs @@ -0,0 +1,237 @@ +/* + * Cashfree Payment Gateway APIs + * + * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. + * + * The version of the OpenAPI document: 2022-09-01 + * Contact: developers@cashfree.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = cashfree_pg.Client.OpenAPIDateConverter; + +namespace cashfree_pg.Model +{ + /// + /// PaymentMethodCardInPaymentsEntityCard + /// + [DataContract(Name = "PaymentMethodCardInPaymentsEntity_card")] + public class PaymentMethodCardInPaymentsEntityCard : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// channel. + /// cardNumber. + /// cardNetwork. + /// cardType. + /// cardCountry. + /// cardBankName. + /// cardNetworkReferenceId. + public PaymentMethodCardInPaymentsEntityCard(string channel = default(string), string cardNumber = default(string), string cardNetwork = default(string), string cardType = default(string), string cardCountry = default(string), string cardBankName = default(string), string cardNetworkReferenceId = default(string)) + { + this.channel = channel; + this.card_number = cardNumber; + this.card_network = cardNetwork; + this.card_type = cardType; + this.card_country = cardCountry; + this.card_bank_name = cardBankName; + this.card_network_reference_id = cardNetworkReferenceId; + } + + /// + /// Gets or Sets channel + /// + [DataMember(Name = "channel", EmitDefaultValue = false)] + public string channel { get; set; } + + /// + /// Gets or Sets card_number + /// + [DataMember(Name = "card_number", EmitDefaultValue = false)] + public string card_number { get; set; } + + /// + /// Gets or Sets card_network + /// + [DataMember(Name = "card_network", EmitDefaultValue = false)] + public string card_network { get; set; } + + /// + /// Gets or Sets card_type + /// + [DataMember(Name = "card_type", EmitDefaultValue = false)] + public string card_type { get; set; } + + /// + /// Gets or Sets card_country + /// + [DataMember(Name = "card_country", EmitDefaultValue = false)] + public string card_country { get; set; } + + /// + /// Gets or Sets card_bank_name + /// + [DataMember(Name = "card_bank_name", EmitDefaultValue = false)] + public string card_bank_name { get; set; } + + /// + /// Gets or Sets card_network_reference_id + /// + [DataMember(Name = "card_network_reference_id", EmitDefaultValue = false)] + public string card_network_reference_id { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class PaymentMethodCardInPaymentsEntityCard {\n"); + sb.Append(" channel: ").Append(channel).Append("\n"); + sb.Append(" card_number: ").Append(card_number).Append("\n"); + sb.Append(" card_network: ").Append(card_network).Append("\n"); + sb.Append(" card_type: ").Append(card_type).Append("\n"); + sb.Append(" card_country: ").Append(card_country).Append("\n"); + sb.Append(" card_bank_name: ").Append(card_bank_name).Append("\n"); + sb.Append(" card_network_reference_id: ").Append(card_network_reference_id).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PaymentMethodCardInPaymentsEntityCard); + } + + /// + /// Returns true if PaymentMethodCardInPaymentsEntityCard instances are equal + /// + /// Instance of PaymentMethodCardInPaymentsEntityCard to be compared + /// Boolean + public bool Equals(PaymentMethodCardInPaymentsEntityCard input) + { + if (input == null) + { + return false; + } + return + ( + this.channel == input.channel || + (this.channel != null && + this.channel.Equals(input.channel)) + ) && + ( + this.card_number == input.card_number || + (this.card_number != null && + this.card_number.Equals(input.card_number)) + ) && + ( + this.card_network == input.card_network || + (this.card_network != null && + this.card_network.Equals(input.card_network)) + ) && + ( + this.card_type == input.card_type || + (this.card_type != null && + this.card_type.Equals(input.card_type)) + ) && + ( + this.card_country == input.card_country || + (this.card_country != null && + this.card_country.Equals(input.card_country)) + ) && + ( + this.card_bank_name == input.card_bank_name || + (this.card_bank_name != null && + this.card_bank_name.Equals(input.card_bank_name)) + ) && + ( + this.card_network_reference_id == input.card_network_reference_id || + (this.card_network_reference_id != null && + this.card_network_reference_id.Equals(input.card_network_reference_id)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.channel != null) + { + hashCode = (hashCode * 59) + this.channel.GetHashCode(); + } + if (this.card_number != null) + { + hashCode = (hashCode * 59) + this.card_number.GetHashCode(); + } + if (this.card_network != null) + { + hashCode = (hashCode * 59) + this.card_network.GetHashCode(); + } + if (this.card_type != null) + { + hashCode = (hashCode * 59) + this.card_type.GetHashCode(); + } + if (this.card_country != null) + { + hashCode = (hashCode * 59) + this.card_country.GetHashCode(); + } + if (this.card_bank_name != null) + { + hashCode = (hashCode * 59) + this.card_bank_name.GetHashCode(); + } + if (this.card_network_reference_id != null) + { + hashCode = (hashCode * 59) + this.card_network_reference_id.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/cashfree_pg/Model/PaymentMethodCardlessEMIInPaymentsEntity.cs b/src/cashfree_pg/Model/PaymentMethodCardlessEMIInPaymentsEntity.cs index 9bcd44c..4d45105 100644 --- a/src/cashfree_pg/Model/PaymentMethodCardlessEMIInPaymentsEntity.cs +++ b/src/cashfree_pg/Model/PaymentMethodCardlessEMIInPaymentsEntity.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -35,33 +35,17 @@ public class PaymentMethodCardlessEMIInPaymentsEntity : IEquatable /// Initializes a new instance of the class. /// - /// channel. - /// provider. - /// phone. - public PaymentMethodCardlessEMIInPaymentsEntity(string channel = default(string), string provider = default(string), string phone = default(string)) + /// cardlessEmi. + public PaymentMethodCardlessEMIInPaymentsEntity(PaymentMethodAppInPaymentsEntityApp cardlessEmi = default(PaymentMethodAppInPaymentsEntityApp)) { - this.channel = channel; - this.provider = provider; - this.phone = phone; + this.cardless_emi = cardlessEmi; } /// - /// Gets or Sets channel + /// Gets or Sets cardless_emi /// - [DataMember(Name = "channel", EmitDefaultValue = false)] - public string channel { get; set; } - - /// - /// Gets or Sets provider - /// - [DataMember(Name = "provider", EmitDefaultValue = false)] - public string provider { get; set; } - - /// - /// Gets or Sets phone - /// - [DataMember(Name = "phone", EmitDefaultValue = false)] - public string phone { get; set; } + [DataMember(Name = "cardless_emi", EmitDefaultValue = false)] + public PaymentMethodAppInPaymentsEntityApp cardless_emi { get; set; } /// /// Returns the string presentation of the object @@ -71,9 +55,7 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class PaymentMethodCardlessEMIInPaymentsEntity {\n"); - sb.Append(" channel: ").Append(channel).Append("\n"); - sb.Append(" provider: ").Append(provider).Append("\n"); - sb.Append(" phone: ").Append(phone).Append("\n"); + sb.Append(" cardless_emi: ").Append(cardless_emi).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -110,19 +92,9 @@ public bool Equals(PaymentMethodCardlessEMIInPaymentsEntity input) } return ( - this.channel == input.channel || - (this.channel != null && - this.channel.Equals(input.channel)) - ) && - ( - this.provider == input.provider || - (this.provider != null && - this.provider.Equals(input.provider)) - ) && - ( - this.phone == input.phone || - (this.phone != null && - this.phone.Equals(input.phone)) + this.cardless_emi == input.cardless_emi || + (this.cardless_emi != null && + this.cardless_emi.Equals(input.cardless_emi)) ); } @@ -135,17 +107,9 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.channel != null) - { - hashCode = (hashCode * 59) + this.channel.GetHashCode(); - } - if (this.provider != null) - { - hashCode = (hashCode * 59) + this.provider.GetHashCode(); - } - if (this.phone != null) + if (this.cardless_emi != null) { - hashCode = (hashCode * 59) + this.phone.GetHashCode(); + hashCode = (hashCode * 59) + this.cardless_emi.GetHashCode(); } return hashCode; } diff --git a/src/cashfree_pg/Model/PaymentMethodInPaymentsEntity.cs b/src/cashfree_pg/Model/PaymentMethodInPaymentsEntity.cs index c56d864..7e05bae 100644 --- a/src/cashfree_pg/Model/PaymentMethodInPaymentsEntity.cs +++ b/src/cashfree_pg/Model/PaymentMethodInPaymentsEntity.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/PaymentMethodInPaymentsEntityPaymentMethod.cs b/src/cashfree_pg/Model/PaymentMethodInPaymentsEntityPaymentMethod.cs index b5c68d2..892e812 100644 --- a/src/cashfree_pg/Model/PaymentMethodInPaymentsEntityPaymentMethod.cs +++ b/src/cashfree_pg/Model/PaymentMethodInPaymentsEntityPaymentMethod.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -106,6 +106,18 @@ public PaymentMethodInPaymentsEntityPaymentMethod(PaymentMethodPaylaterInPayment this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); } + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of PaymentMethodCardEMIInPaymentsEntity. + public PaymentMethodInPaymentsEntityPaymentMethod(PaymentMethodCardEMIInPaymentsEntity actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + private Object _actualInstance; @@ -124,6 +136,10 @@ public override Object ActualInstance { this._actualInstance = value; } + else if (value.GetType() == typeof(PaymentMethodCardEMIInPaymentsEntity)) + { + this._actualInstance = value; + } else if (value.GetType() == typeof(PaymentMethodCardInPaymentsEntity)) { this._actualInstance = value; @@ -146,7 +162,7 @@ public override Object ActualInstance } else { - throw new ArgumentException("Invalid instance found. Must be the following types: PaymentMethodAppInPaymentsEntity, PaymentMethodCardInPaymentsEntity, PaymentMethodCardlessEMIInPaymentsEntity, PaymentMethodNetBankingInPaymentsEntity, PaymentMethodPaylaterInPaymentsEntity, PaymentMethodUPIInPaymentsEntity"); + throw new ArgumentException("Invalid instance found. Must be the following types: PaymentMethodAppInPaymentsEntity, PaymentMethodCardEMIInPaymentsEntity, PaymentMethodCardInPaymentsEntity, PaymentMethodCardlessEMIInPaymentsEntity, PaymentMethodNetBankingInPaymentsEntity, PaymentMethodPaylaterInPaymentsEntity, PaymentMethodUPIInPaymentsEntity"); } } } @@ -211,6 +227,16 @@ public PaymentMethodPaylaterInPaymentsEntity GetPaymentMethodPaylaterInPaymentsE return (PaymentMethodPaylaterInPaymentsEntity)this.ActualInstance; } + /// + /// Get the actual instance of `PaymentMethodCardEMIInPaymentsEntity`. If the actual instance is not `PaymentMethodCardEMIInPaymentsEntity`, + /// the InvalidClassException will be thrown + /// + /// An instance of PaymentMethodCardEMIInPaymentsEntity + public PaymentMethodCardEMIInPaymentsEntity GetPaymentMethodCardEMIInPaymentsEntity() + { + return (PaymentMethodCardEMIInPaymentsEntity)this.ActualInstance; + } + /// /// Returns the string presentation of the object /// @@ -269,6 +295,26 @@ public static PaymentMethodInPaymentsEntityPaymentMethod FromJson(string jsonStr System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into PaymentMethodAppInPaymentsEntity: {1}", jsonString, exception.ToString())); } + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(PaymentMethodCardEMIInPaymentsEntity).GetProperty("AdditionalProperties") == null) + { + newPaymentMethodInPaymentsEntityPaymentMethod = new PaymentMethodInPaymentsEntityPaymentMethod(JsonConvert.DeserializeObject(jsonString, PaymentMethodInPaymentsEntityPaymentMethod.SerializerSettings)); + } + else + { + newPaymentMethodInPaymentsEntityPaymentMethod = new PaymentMethodInPaymentsEntityPaymentMethod(JsonConvert.DeserializeObject(jsonString, PaymentMethodInPaymentsEntityPaymentMethod.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("PaymentMethodCardEMIInPaymentsEntity"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into PaymentMethodCardEMIInPaymentsEntity: {1}", jsonString, exception.ToString())); + } + try { // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize diff --git a/src/cashfree_pg/Model/PaymentMethodNetBankingInPaymentsEntity.cs b/src/cashfree_pg/Model/PaymentMethodNetBankingInPaymentsEntity.cs index 051bf5c..fcdbe64 100644 --- a/src/cashfree_pg/Model/PaymentMethodNetBankingInPaymentsEntity.cs +++ b/src/cashfree_pg/Model/PaymentMethodNetBankingInPaymentsEntity.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -35,48 +35,17 @@ public class PaymentMethodNetBankingInPaymentsEntity : IEquatable /// Initializes a new instance of the class. /// - [JsonConstructorAttribute] - protected PaymentMethodNetBankingInPaymentsEntity() { } - /// - /// Initializes a new instance of the class. - /// - /// channel (required). - /// netbankingBankCode (required). - /// netbankingBankName (required). - public PaymentMethodNetBankingInPaymentsEntity(string channel = default(string), int netbankingBankCode = default(int), string netbankingBankName = default(string)) + /// netbanking. + public PaymentMethodNetBankingInPaymentsEntity(PaymentMethodNetBankingInPaymentsEntityNetbanking netbanking = default(PaymentMethodNetBankingInPaymentsEntityNetbanking)) { - // to ensure "channel" is required (not null) - if (channel == null) - { - throw new ArgumentNullException("channel is a required property for PaymentMethodNetBankingInPaymentsEntity and cannot be null"); - } - this.channel = channel; - this.netbanking_bank_code = netbankingBankCode; - // to ensure "netbankingBankName" is required (not null) - if (netbankingBankName == null) - { - throw new ArgumentNullException("netbankingBankName is a required property for PaymentMethodNetBankingInPaymentsEntity and cannot be null"); - } - this.netbanking_bank_name = netbankingBankName; + this.netbanking = netbanking; } /// - /// Gets or Sets channel + /// Gets or Sets netbanking /// - [DataMember(Name = "channel", IsRequired = true, EmitDefaultValue = true)] - public string channel { get; set; } - - /// - /// Gets or Sets netbanking_bank_code - /// - [DataMember(Name = "netbanking_bank_code", IsRequired = true, EmitDefaultValue = true)] - public int netbanking_bank_code { get; set; } - - /// - /// Gets or Sets netbanking_bank_name - /// - [DataMember(Name = "netbanking_bank_name", IsRequired = true, EmitDefaultValue = true)] - public string netbanking_bank_name { get; set; } + [DataMember(Name = "netbanking", EmitDefaultValue = false)] + public PaymentMethodNetBankingInPaymentsEntityNetbanking netbanking { get; set; } /// /// Returns the string presentation of the object @@ -86,9 +55,7 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class PaymentMethodNetBankingInPaymentsEntity {\n"); - sb.Append(" channel: ").Append(channel).Append("\n"); - sb.Append(" netbanking_bank_code: ").Append(netbanking_bank_code).Append("\n"); - sb.Append(" netbanking_bank_name: ").Append(netbanking_bank_name).Append("\n"); + sb.Append(" netbanking: ").Append(netbanking).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -125,18 +92,9 @@ public bool Equals(PaymentMethodNetBankingInPaymentsEntity input) } return ( - this.channel == input.channel || - (this.channel != null && - this.channel.Equals(input.channel)) - ) && - ( - this.netbanking_bank_code == input.netbanking_bank_code || - this.netbanking_bank_code.Equals(input.netbanking_bank_code) - ) && - ( - this.netbanking_bank_name == input.netbanking_bank_name || - (this.netbanking_bank_name != null && - this.netbanking_bank_name.Equals(input.netbanking_bank_name)) + this.netbanking == input.netbanking || + (this.netbanking != null && + this.netbanking.Equals(input.netbanking)) ); } @@ -149,14 +107,9 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.channel != null) - { - hashCode = (hashCode * 59) + this.channel.GetHashCode(); - } - hashCode = (hashCode * 59) + this.netbanking_bank_code.GetHashCode(); - if (this.netbanking_bank_name != null) + if (this.netbanking != null) { - hashCode = (hashCode * 59) + this.netbanking_bank_name.GetHashCode(); + hashCode = (hashCode * 59) + this.netbanking.GetHashCode(); } return hashCode; } diff --git a/src/cashfree_pg/Model/PaymentMethodNetBankingInPaymentsEntityNetbanking.cs b/src/cashfree_pg/Model/PaymentMethodNetBankingInPaymentsEntityNetbanking.cs new file mode 100644 index 0000000..3a2785c --- /dev/null +++ b/src/cashfree_pg/Model/PaymentMethodNetBankingInPaymentsEntityNetbanking.cs @@ -0,0 +1,161 @@ +/* + * Cashfree Payment Gateway APIs + * + * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. + * + * The version of the OpenAPI document: 2022-09-01 + * Contact: developers@cashfree.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = cashfree_pg.Client.OpenAPIDateConverter; + +namespace cashfree_pg.Model +{ + /// + /// PaymentMethodNetBankingInPaymentsEntityNetbanking + /// + [DataContract(Name = "PaymentMethodNetBankingInPaymentsEntity_netbanking")] + public class PaymentMethodNetBankingInPaymentsEntityNetbanking : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// channel. + /// netbankingBankCode. + /// netbankingBankName. + public PaymentMethodNetBankingInPaymentsEntityNetbanking(string channel = default(string), int netbankingBankCode = default(int), string netbankingBankName = default(string)) + { + this.channel = channel; + this.netbanking_bank_code = netbankingBankCode; + this.netbanking_bank_name = netbankingBankName; + } + + /// + /// Gets or Sets channel + /// + [DataMember(Name = "channel", EmitDefaultValue = false)] + public string channel { get; set; } + + /// + /// Gets or Sets netbanking_bank_code + /// + [DataMember(Name = "netbanking_bank_code", EmitDefaultValue = false)] + public int netbanking_bank_code { get; set; } + + /// + /// Gets or Sets netbanking_bank_name + /// + [DataMember(Name = "netbanking_bank_name", EmitDefaultValue = false)] + public string netbanking_bank_name { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class PaymentMethodNetBankingInPaymentsEntityNetbanking {\n"); + sb.Append(" channel: ").Append(channel).Append("\n"); + sb.Append(" netbanking_bank_code: ").Append(netbanking_bank_code).Append("\n"); + sb.Append(" netbanking_bank_name: ").Append(netbanking_bank_name).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PaymentMethodNetBankingInPaymentsEntityNetbanking); + } + + /// + /// Returns true if PaymentMethodNetBankingInPaymentsEntityNetbanking instances are equal + /// + /// Instance of PaymentMethodNetBankingInPaymentsEntityNetbanking to be compared + /// Boolean + public bool Equals(PaymentMethodNetBankingInPaymentsEntityNetbanking input) + { + if (input == null) + { + return false; + } + return + ( + this.channel == input.channel || + (this.channel != null && + this.channel.Equals(input.channel)) + ) && + ( + this.netbanking_bank_code == input.netbanking_bank_code || + this.netbanking_bank_code.Equals(input.netbanking_bank_code) + ) && + ( + this.netbanking_bank_name == input.netbanking_bank_name || + (this.netbanking_bank_name != null && + this.netbanking_bank_name.Equals(input.netbanking_bank_name)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.channel != null) + { + hashCode = (hashCode * 59) + this.channel.GetHashCode(); + } + hashCode = (hashCode * 59) + this.netbanking_bank_code.GetHashCode(); + if (this.netbanking_bank_name != null) + { + hashCode = (hashCode * 59) + this.netbanking_bank_name.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/cashfree_pg/Model/PaymentMethodPaylaterInPaymentsEntity.cs b/src/cashfree_pg/Model/PaymentMethodPaylaterInPaymentsEntity.cs index 332c140..fdd7a5c 100644 --- a/src/cashfree_pg/Model/PaymentMethodPaylaterInPaymentsEntity.cs +++ b/src/cashfree_pg/Model/PaymentMethodPaylaterInPaymentsEntity.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -35,33 +35,17 @@ public class PaymentMethodPaylaterInPaymentsEntity : IEquatable /// Initializes a new instance of the class. /// - /// channel. - /// provider. - /// phone. - public PaymentMethodPaylaterInPaymentsEntity(string channel = default(string), string provider = default(string), string phone = default(string)) + /// paylater. + public PaymentMethodPaylaterInPaymentsEntity(PaymentMethodAppInPaymentsEntityApp paylater = default(PaymentMethodAppInPaymentsEntityApp)) { - this.channel = channel; - this.provider = provider; - this.phone = phone; + this.paylater = paylater; } /// - /// Gets or Sets channel + /// Gets or Sets paylater /// - [DataMember(Name = "channel", EmitDefaultValue = false)] - public string channel { get; set; } - - /// - /// Gets or Sets provider - /// - [DataMember(Name = "provider", EmitDefaultValue = false)] - public string provider { get; set; } - - /// - /// Gets or Sets phone - /// - [DataMember(Name = "phone", EmitDefaultValue = false)] - public string phone { get; set; } + [DataMember(Name = "paylater", EmitDefaultValue = false)] + public PaymentMethodAppInPaymentsEntityApp paylater { get; set; } /// /// Returns the string presentation of the object @@ -71,9 +55,7 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class PaymentMethodPaylaterInPaymentsEntity {\n"); - sb.Append(" channel: ").Append(channel).Append("\n"); - sb.Append(" provider: ").Append(provider).Append("\n"); - sb.Append(" phone: ").Append(phone).Append("\n"); + sb.Append(" paylater: ").Append(paylater).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -110,19 +92,9 @@ public bool Equals(PaymentMethodPaylaterInPaymentsEntity input) } return ( - this.channel == input.channel || - (this.channel != null && - this.channel.Equals(input.channel)) - ) && - ( - this.provider == input.provider || - (this.provider != null && - this.provider.Equals(input.provider)) - ) && - ( - this.phone == input.phone || - (this.phone != null && - this.phone.Equals(input.phone)) + this.paylater == input.paylater || + (this.paylater != null && + this.paylater.Equals(input.paylater)) ); } @@ -135,17 +107,9 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.channel != null) - { - hashCode = (hashCode * 59) + this.channel.GetHashCode(); - } - if (this.provider != null) - { - hashCode = (hashCode * 59) + this.provider.GetHashCode(); - } - if (this.phone != null) + if (this.paylater != null) { - hashCode = (hashCode * 59) + this.phone.GetHashCode(); + hashCode = (hashCode * 59) + this.paylater.GetHashCode(); } return hashCode; } diff --git a/src/cashfree_pg/Model/PaymentMethodUPIInPaymentsEntity.cs b/src/cashfree_pg/Model/PaymentMethodUPIInPaymentsEntity.cs index 0408681..0785ee4 100644 --- a/src/cashfree_pg/Model/PaymentMethodUPIInPaymentsEntity.cs +++ b/src/cashfree_pg/Model/PaymentMethodUPIInPaymentsEntity.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -35,35 +35,17 @@ public class PaymentMethodUPIInPaymentsEntity : IEquatable /// Initializes a new instance of the class. /// - [JsonConstructorAttribute] - protected PaymentMethodUPIInPaymentsEntity() { } - /// - /// Initializes a new instance of the class. - /// - /// channel (required). - /// upiId. - public PaymentMethodUPIInPaymentsEntity(string channel = default(string), string upiId = default(string)) + /// upi. + public PaymentMethodUPIInPaymentsEntity(PaymentMethodUPIInPaymentsEntityUpi upi = default(PaymentMethodUPIInPaymentsEntityUpi)) { - // to ensure "channel" is required (not null) - if (channel == null) - { - throw new ArgumentNullException("channel is a required property for PaymentMethodUPIInPaymentsEntity and cannot be null"); - } - this.channel = channel; - this.upi_id = upiId; + this.upi = upi; } /// - /// Gets or Sets channel + /// Gets or Sets upi /// - [DataMember(Name = "channel", IsRequired = true, EmitDefaultValue = true)] - public string channel { get; set; } - - /// - /// Gets or Sets upi_id - /// - [DataMember(Name = "upi_id", EmitDefaultValue = false)] - public string upi_id { get; set; } + [DataMember(Name = "upi", EmitDefaultValue = false)] + public PaymentMethodUPIInPaymentsEntityUpi upi { get; set; } /// /// Returns the string presentation of the object @@ -73,8 +55,7 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class PaymentMethodUPIInPaymentsEntity {\n"); - sb.Append(" channel: ").Append(channel).Append("\n"); - sb.Append(" upi_id: ").Append(upi_id).Append("\n"); + sb.Append(" upi: ").Append(upi).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -111,14 +92,9 @@ public bool Equals(PaymentMethodUPIInPaymentsEntity input) } return ( - this.channel == input.channel || - (this.channel != null && - this.channel.Equals(input.channel)) - ) && - ( - this.upi_id == input.upi_id || - (this.upi_id != null && - this.upi_id.Equals(input.upi_id)) + this.upi == input.upi || + (this.upi != null && + this.upi.Equals(input.upi)) ); } @@ -131,13 +107,9 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.channel != null) - { - hashCode = (hashCode * 59) + this.channel.GetHashCode(); - } - if (this.upi_id != null) + if (this.upi != null) { - hashCode = (hashCode * 59) + this.upi_id.GetHashCode(); + hashCode = (hashCode * 59) + this.upi.GetHashCode(); } return hashCode; } diff --git a/src/cashfree_pg/Model/PaymentMethodUPIInPaymentsEntityUpi.cs b/src/cashfree_pg/Model/PaymentMethodUPIInPaymentsEntityUpi.cs new file mode 100644 index 0000000..8f0db78 --- /dev/null +++ b/src/cashfree_pg/Model/PaymentMethodUPIInPaymentsEntityUpi.cs @@ -0,0 +1,147 @@ +/* + * Cashfree Payment Gateway APIs + * + * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. + * + * The version of the OpenAPI document: 2022-09-01 + * Contact: developers@cashfree.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = cashfree_pg.Client.OpenAPIDateConverter; + +namespace cashfree_pg.Model +{ + /// + /// PaymentMethodUPIInPaymentsEntityUpi + /// + [DataContract(Name = "PaymentMethodUPIInPaymentsEntity_upi")] + public class PaymentMethodUPIInPaymentsEntityUpi : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// channel. + /// upiId. + public PaymentMethodUPIInPaymentsEntityUpi(string channel = default(string), string upiId = default(string)) + { + this.channel = channel; + this.upi_id = upiId; + } + + /// + /// Gets or Sets channel + /// + [DataMember(Name = "channel", EmitDefaultValue = false)] + public string channel { get; set; } + + /// + /// Gets or Sets upi_id + /// + [DataMember(Name = "upi_id", EmitDefaultValue = false)] + public string upi_id { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class PaymentMethodUPIInPaymentsEntityUpi {\n"); + sb.Append(" channel: ").Append(channel).Append("\n"); + sb.Append(" upi_id: ").Append(upi_id).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PaymentMethodUPIInPaymentsEntityUpi); + } + + /// + /// Returns true if PaymentMethodUPIInPaymentsEntityUpi instances are equal + /// + /// Instance of PaymentMethodUPIInPaymentsEntityUpi to be compared + /// Boolean + public bool Equals(PaymentMethodUPIInPaymentsEntityUpi input) + { + if (input == null) + { + return false; + } + return + ( + this.channel == input.channel || + (this.channel != null && + this.channel.Equals(input.channel)) + ) && + ( + this.upi_id == input.upi_id || + (this.upi_id != null && + this.upi_id.Equals(input.upi_id)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.channel != null) + { + hashCode = (hashCode * 59) + this.channel.GetHashCode(); + } + if (this.upi_id != null) + { + hashCode = (hashCode * 59) + this.upi_id.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/cashfree_pg/Model/PaymentMethodsFilters.cs b/src/cashfree_pg/Model/PaymentMethodsFilters.cs index 10d2d51..0cb49b6 100644 --- a/src/cashfree_pg/Model/PaymentMethodsFilters.cs +++ b/src/cashfree_pg/Model/PaymentMethodsFilters.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -27,7 +27,7 @@ namespace cashfree_pg.Model { /// - /// Filter for Payment Methods + /// Filter for specific Payment Methods /// [DataContract(Name = "PaymentMethodsFilters")] public class PaymentMethodsFilters : IEquatable, IValidatableObject diff --git a/src/cashfree_pg/Model/PaymentMethodsQueries.cs b/src/cashfree_pg/Model/PaymentMethodsQueries.cs index 01fba3d..a80f82a 100644 --- a/src/cashfree_pg/Model/PaymentMethodsQueries.cs +++ b/src/cashfree_pg/Model/PaymentMethodsQueries.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/PaymentModeDetails.cs b/src/cashfree_pg/Model/PaymentModeDetails.cs index 0c33d7b..7648dcf 100644 --- a/src/cashfree_pg/Model/PaymentModeDetails.cs +++ b/src/cashfree_pg/Model/PaymentModeDetails.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/PaymentWebhook.cs b/src/cashfree_pg/Model/PaymentWebhook.cs index 5ab0a6f..39a979c 100644 --- a/src/cashfree_pg/Model/PaymentWebhook.cs +++ b/src/cashfree_pg/Model/PaymentWebhook.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/PaymentWebhookCustomerEntity.cs b/src/cashfree_pg/Model/PaymentWebhookCustomerEntity.cs index 3a461c3..8769b49 100644 --- a/src/cashfree_pg/Model/PaymentWebhookCustomerEntity.cs +++ b/src/cashfree_pg/Model/PaymentWebhookCustomerEntity.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/PaymentWebhookDataEntity.cs b/src/cashfree_pg/Model/PaymentWebhookDataEntity.cs index 0786096..9c91f16 100644 --- a/src/cashfree_pg/Model/PaymentWebhookDataEntity.cs +++ b/src/cashfree_pg/Model/PaymentWebhookDataEntity.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/PaymentWebhookErrorEntity.cs b/src/cashfree_pg/Model/PaymentWebhookErrorEntity.cs index 3c38307..b72b4ff 100644 --- a/src/cashfree_pg/Model/PaymentWebhookErrorEntity.cs +++ b/src/cashfree_pg/Model/PaymentWebhookErrorEntity.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/PaymentWebhookGatewayDetailsEntity.cs b/src/cashfree_pg/Model/PaymentWebhookGatewayDetailsEntity.cs index 10c30ca..39f1add 100644 --- a/src/cashfree_pg/Model/PaymentWebhookGatewayDetailsEntity.cs +++ b/src/cashfree_pg/Model/PaymentWebhookGatewayDetailsEntity.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/PaymentWebhookOrderEntity.cs b/src/cashfree_pg/Model/PaymentWebhookOrderEntity.cs index 5889ed5..447ddfe 100644 --- a/src/cashfree_pg/Model/PaymentWebhookOrderEntity.cs +++ b/src/cashfree_pg/Model/PaymentWebhookOrderEntity.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/RateLimitError.cs b/src/cashfree_pg/Model/RateLimitError.cs index a4d24ef..e280c2c 100644 --- a/src/cashfree_pg/Model/RateLimitError.cs +++ b/src/cashfree_pg/Model/RateLimitError.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/ReconEntity.cs b/src/cashfree_pg/Model/ReconEntity.cs index 4c1f997..831e772 100644 --- a/src/cashfree_pg/Model/ReconEntity.cs +++ b/src/cashfree_pg/Model/ReconEntity.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/ReconEntityDataInner.cs b/src/cashfree_pg/Model/ReconEntityDataInner.cs index 4425ac4..fef98a3 100644 --- a/src/cashfree_pg/Model/ReconEntityDataInner.cs +++ b/src/cashfree_pg/Model/ReconEntityDataInner.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -82,7 +82,7 @@ public class ReconEntityDataInner : IEquatable, IValidatab /// Settlement charges applicable on the settlement.. /// Settlement tax applicable on the settlement.. /// Remarks on the settlement.. - public ReconEntityDataInner(string eventId = default(string), string eventType = default(string), decimal eventSettlementAmount = default(decimal), decimal eventAmount = default(decimal), string saleType = default(string), string eventStatus = default(string), string entity = default(string), string eventTime = default(string), string eventCurrency = default(string), string orderId = default(string), decimal orderAmount = default(decimal), string customerPhone = default(string), string customerEmail = default(string), string customerName = default(string), decimal paymentAmount = default(decimal), string paymentUtr = default(string), string paymentTime = default(string), decimal paymentServiceCharge = default(decimal), decimal paymentServiceTax = default(decimal), string cfPaymentId = default(string), string cfSettlementId = default(string), string settlementDate = default(string), string settlementUtr = default(string), decimal splitServiceCharge = default(decimal), decimal splitServiceTax = default(decimal), decimal vendorCommission = default(decimal), string closedInFavorOf = default(string), string disputeResolvedOn = default(string), string disputeCategory = default(string), string disputeNote = default(string), string refundProcessedAt = default(string), string refundArn = default(string), string refundNote = default(string), string refundId = default(string), string adjustmentRemarks = default(string), decimal adjustment = default(decimal), decimal serviceTax = default(decimal), decimal serviceCharge = default(decimal), decimal amountSettled = default(decimal), string paymentFrom = default(string), string paymentTill = default(string), string reason = default(string), string settlementInitiatedOn = default(string), string settlementType = default(string), decimal settlementCharge = default(decimal), decimal settlementTax = default(decimal), string remarks = default(string)) + public ReconEntityDataInner(string eventId = default(string), string eventType = default(string), decimal eventSettlementAmount = default(decimal), decimal eventAmount = default(decimal), string saleType = default(string), string eventStatus = default(string), string entity = default(string), string eventTime = default(string), string eventCurrency = default(string), string orderId = default(string), decimal orderAmount = default(decimal), string customerPhone = default(string), string customerEmail = default(string), string customerName = default(string), decimal paymentAmount = default(decimal), string paymentUtr = default(string), string paymentTime = default(string), decimal paymentServiceCharge = default(decimal), decimal paymentServiceTax = default(decimal), long cfPaymentId = default(long), int cfSettlementId = default(int), string settlementDate = default(string), string settlementUtr = default(string), decimal splitServiceCharge = default(decimal), decimal splitServiceTax = default(decimal), decimal vendorCommission = default(decimal), string closedInFavorOf = default(string), string disputeResolvedOn = default(string), string disputeCategory = default(string), string disputeNote = default(string), string refundProcessedAt = default(string), string refundArn = default(string), string refundNote = default(string), string refundId = default(string), string adjustmentRemarks = default(string), decimal adjustment = default(decimal), decimal serviceTax = default(decimal), decimal serviceCharge = default(decimal), decimal amountSettled = default(decimal), string paymentFrom = default(string), string paymentTill = default(string), string reason = default(string), string settlementInitiatedOn = default(string), string settlementType = default(string), decimal settlementCharge = default(decimal), decimal settlementTax = default(decimal), string remarks = default(string)) { this.event_id = eventId; this.event_type = eventType; @@ -271,14 +271,14 @@ public class ReconEntityDataInner : IEquatable, IValidatab /// /// Cashfree Payments unique ID to identify a payment. [DataMember(Name = "cf_payment_id", EmitDefaultValue = false)] - public string cf_payment_id { get; set; } + public long cf_payment_id { get; set; } /// /// Unique ID to identify the settlement. /// /// Unique ID to identify the settlement. [DataMember(Name = "cf_settlement_id", EmitDefaultValue = false)] - public string cf_settlement_id { get; set; } + public int cf_settlement_id { get; set; } /// /// Date and time when the settlement was processed. @@ -643,13 +643,11 @@ public bool Equals(ReconEntityDataInner input) ) && ( this.cf_payment_id == input.cf_payment_id || - (this.cf_payment_id != null && - this.cf_payment_id.Equals(input.cf_payment_id)) + this.cf_payment_id.Equals(input.cf_payment_id) ) && ( this.cf_settlement_id == input.cf_settlement_id || - (this.cf_settlement_id != null && - this.cf_settlement_id.Equals(input.cf_settlement_id)) + this.cf_settlement_id.Equals(input.cf_settlement_id) ) && ( this.settlement_date == input.settlement_date || @@ -841,14 +839,8 @@ public override int GetHashCode() } hashCode = (hashCode * 59) + this.payment_service_charge.GetHashCode(); hashCode = (hashCode * 59) + this.payment_service_tax.GetHashCode(); - if (this.cf_payment_id != null) - { - hashCode = (hashCode * 59) + this.cf_payment_id.GetHashCode(); - } - if (this.cf_settlement_id != null) - { - hashCode = (hashCode * 59) + this.cf_settlement_id.GetHashCode(); - } + hashCode = (hashCode * 59) + this.cf_payment_id.GetHashCode(); + hashCode = (hashCode * 59) + this.cf_settlement_id.GetHashCode(); if (this.settlement_date != null) { hashCode = (hashCode * 59) + this.settlement_date.GetHashCode(); diff --git a/src/cashfree_pg/Model/RefundEntity.cs b/src/cashfree_pg/Model/RefundEntity.cs index eeaf799..93c7a8a 100644 --- a/src/cashfree_pg/Model/RefundEntity.cs +++ b/src/cashfree_pg/Model/RefundEntity.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -174,7 +174,7 @@ public enum RefundModeEnum /// Time of refund creation. /// Time when refund was processed successfully. /// refundSpeed. - public RefundEntity(string cfPaymentId = default(string), string cfRefundId = default(string), string orderId = default(string), string refundId = default(string), EntityEnum? entity = default(EntityEnum?), decimal refundAmount = default(decimal), string refundCurrency = default(string), string refundNote = default(string), RefundStatusEnum? refundStatus = default(RefundStatusEnum?), string refundArn = default(string), decimal refundCharge = default(decimal), string statusDescription = default(string), Object metadata = default(Object), List refundSplits = default(List), RefundTypeEnum? refundType = default(RefundTypeEnum?), RefundModeEnum? refundMode = default(RefundModeEnum?), string createdAt = default(string), string processedAt = default(string), RefundSpeed refundSpeed = default(RefundSpeed)) + public RefundEntity(long cfPaymentId = default(long), string cfRefundId = default(string), string orderId = default(string), string refundId = default(string), EntityEnum? entity = default(EntityEnum?), decimal refundAmount = default(decimal), string refundCurrency = default(string), string refundNote = default(string), RefundStatusEnum? refundStatus = default(RefundStatusEnum?), string refundArn = default(string), decimal refundCharge = default(decimal), string statusDescription = default(string), Object metadata = default(Object), List refundSplits = default(List), RefundTypeEnum? refundType = default(RefundTypeEnum?), RefundModeEnum? refundMode = default(RefundModeEnum?), string createdAt = default(string), string processedAt = default(string), RefundSpeed refundSpeed = default(RefundSpeed)) { this.cf_payment_id = cfPaymentId; this.cf_refund_id = cfRefundId; @@ -202,7 +202,7 @@ public enum RefundModeEnum /// /// Cashfree Payments ID of the payment for which refund is initiated [DataMember(Name = "cf_payment_id", EmitDefaultValue = false)] - public string cf_payment_id { get; set; } + public long cf_payment_id { get; set; } /// /// Cashfree Payments ID for a refund @@ -364,8 +364,7 @@ public bool Equals(RefundEntity input) return ( this.cf_payment_id == input.cf_payment_id || - (this.cf_payment_id != null && - this.cf_payment_id.Equals(input.cf_payment_id)) + this.cf_payment_id.Equals(input.cf_payment_id) ) && ( this.cf_refund_id == input.cf_refund_id || @@ -463,10 +462,7 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.cf_payment_id != null) - { - hashCode = (hashCode * 59) + this.cf_payment_id.GetHashCode(); - } + hashCode = (hashCode * 59) + this.cf_payment_id.GetHashCode(); if (this.cf_refund_id != null) { hashCode = (hashCode * 59) + this.cf_refund_id.GetHashCode(); diff --git a/src/cashfree_pg/Model/RefundSpeed.cs b/src/cashfree_pg/Model/RefundSpeed.cs index bc0bd60..92ba986 100644 --- a/src/cashfree_pg/Model/RefundSpeed.cs +++ b/src/cashfree_pg/Model/RefundSpeed.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/RefundWebhook.cs b/src/cashfree_pg/Model/RefundWebhook.cs index 30c07a3..8df78c9 100644 --- a/src/cashfree_pg/Model/RefundWebhook.cs +++ b/src/cashfree_pg/Model/RefundWebhook.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -61,7 +61,7 @@ public class RefundWebhook : IEquatable, IValidatableObject /// /// Gets or Sets type /// - /// REFUND_SUCCESS_WEBHOOK + /// PAYMENT_SUCCESS_WEBHOOK [DataMember(Name = "type", EmitDefaultValue = false)] public string type { get; set; } diff --git a/src/cashfree_pg/Model/RefundWebhookDataEntity.cs b/src/cashfree_pg/Model/RefundWebhookDataEntity.cs index 3c217eb..b2795ed 100644 --- a/src/cashfree_pg/Model/RefundWebhookDataEntity.cs +++ b/src/cashfree_pg/Model/RefundWebhookDataEntity.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/SavedInstrumentMeta.cs b/src/cashfree_pg/Model/SavedInstrumentMeta.cs index 69418e4..029e75e 100644 --- a/src/cashfree_pg/Model/SavedInstrumentMeta.cs +++ b/src/cashfree_pg/Model/SavedInstrumentMeta.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/SettlementEntity.cs b/src/cashfree_pg/Model/SettlementEntity.cs index 4ea79cf..a9eb246 100644 --- a/src/cashfree_pg/Model/SettlementEntity.cs +++ b/src/cashfree_pg/Model/SettlementEntity.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -49,7 +49,7 @@ public class SettlementEntity : IEquatable, IValidatableObject /// transferId. /// transferTime. /// transferUtr. - public SettlementEntity(string cfPaymentId = default(string), string cfSettlementId = default(string), string settlementCurrency = default(string), string orderId = default(string), string entity = default(string), decimal orderAmount = default(decimal), string paymentTime = default(string), decimal serviceCharge = default(decimal), decimal serviceTax = default(decimal), decimal settlementAmount = default(decimal), int settlementId = default(int), int transferId = default(int), string transferTime = default(string), string transferUtr = default(string)) + public SettlementEntity(long cfPaymentId = default(long), long cfSettlementId = default(long), string settlementCurrency = default(string), string orderId = default(string), string entity = default(string), decimal orderAmount = default(decimal), string paymentTime = default(string), decimal serviceCharge = default(decimal), decimal serviceTax = default(decimal), decimal settlementAmount = default(decimal), int settlementId = default(int), int transferId = default(int), string transferTime = default(string), string transferUtr = default(string)) { this.cf_payment_id = cfPaymentId; this.cf_settlement_id = cfSettlementId; @@ -71,13 +71,13 @@ public class SettlementEntity : IEquatable, IValidatableObject /// Gets or Sets cf_payment_id /// [DataMember(Name = "cf_payment_id", EmitDefaultValue = false)] - public string cf_payment_id { get; set; } + public long cf_payment_id { get; set; } /// /// Gets or Sets cf_settlement_id /// [DataMember(Name = "cf_settlement_id", EmitDefaultValue = false)] - public string cf_settlement_id { get; set; } + public long cf_settlement_id { get; set; } /// /// Gets or Sets settlement_currency @@ -210,13 +210,11 @@ public bool Equals(SettlementEntity input) return ( this.cf_payment_id == input.cf_payment_id || - (this.cf_payment_id != null && - this.cf_payment_id.Equals(input.cf_payment_id)) + this.cf_payment_id.Equals(input.cf_payment_id) ) && ( this.cf_settlement_id == input.cf_settlement_id || - (this.cf_settlement_id != null && - this.cf_settlement_id.Equals(input.cf_settlement_id)) + this.cf_settlement_id.Equals(input.cf_settlement_id) ) && ( this.settlement_currency == input.settlement_currency || @@ -283,14 +281,8 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.cf_payment_id != null) - { - hashCode = (hashCode * 59) + this.cf_payment_id.GetHashCode(); - } - if (this.cf_settlement_id != null) - { - hashCode = (hashCode * 59) + this.cf_settlement_id.GetHashCode(); - } + hashCode = (hashCode * 59) + this.cf_payment_id.GetHashCode(); + hashCode = (hashCode * 59) + this.cf_settlement_id.GetHashCode(); if (this.settlement_currency != null) { hashCode = (hashCode * 59) + this.settlement_currency.GetHashCode(); diff --git a/src/cashfree_pg/Model/SettlementFetchReconRequest.cs b/src/cashfree_pg/Model/SettlementFetchReconRequest.cs index 3b77922..8cbc369 100644 --- a/src/cashfree_pg/Model/SettlementFetchReconRequest.cs +++ b/src/cashfree_pg/Model/SettlementFetchReconRequest.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -42,7 +42,7 @@ protected SettlementFetchReconRequest() { } /// /// pagination (required). /// filters (required). - public SettlementFetchReconRequest(FetchSettlementsRequestPagination pagination = default(FetchSettlementsRequestPagination), FetchSettlementsRequestFilters filters = default(FetchSettlementsRequestFilters)) + public SettlementFetchReconRequest(FetchSettlementsRequestPagination pagination = default(FetchSettlementsRequestPagination), SettlementFetchReconRequestFilters filters = default(SettlementFetchReconRequestFilters)) { // to ensure "pagination" is required (not null) if (pagination == null) @@ -68,7 +68,7 @@ protected SettlementFetchReconRequest() { } /// Gets or Sets filters /// [DataMember(Name = "filters", IsRequired = true, EmitDefaultValue = true)] - public FetchSettlementsRequestFilters filters { get; set; } + public SettlementFetchReconRequestFilters filters { get; set; } /// /// Returns the string presentation of the object diff --git a/src/cashfree_pg/Model/SettlementReconEntity.cs b/src/cashfree_pg/Model/SettlementReconEntity.cs index 6027081..f25e15e 100644 --- a/src/cashfree_pg/Model/SettlementReconEntity.cs +++ b/src/cashfree_pg/Model/SettlementReconEntity.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/SettlementReconEntityDataInner.cs b/src/cashfree_pg/Model/SettlementReconEntityDataInner.cs index a7b2f7e..fde3738 100644 --- a/src/cashfree_pg/Model/SettlementReconEntityDataInner.cs +++ b/src/cashfree_pg/Model/SettlementReconEntityDataInner.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -70,7 +70,7 @@ public class SettlementReconEntityDataInner : IEquatableA refund note for your reference.. /// An unique ID associated with the refund.. /// Other adjustment remarks.. - public SettlementReconEntityDataInner(string eventId = default(string), string eventType = default(string), decimal eventSettlementAmount = default(decimal), decimal eventAmount = default(decimal), string saleType = default(string), string eventStatus = default(string), string entity = default(string), string eventTime = default(string), string eventCurrency = default(string), string orderId = default(string), decimal orderAmount = default(decimal), string customerPhone = default(string), string customerEmail = default(string), string customerName = default(string), decimal paymentAmount = default(decimal), string paymentUtr = default(string), string paymentTime = default(string), decimal paymentServiceCharge = default(decimal), decimal paymentServiceTax = default(decimal), string cfPaymentId = default(string), string cfSettlementId = default(string), string settlementDate = default(string), string settlementUtr = default(string), decimal splitServiceCharge = default(decimal), decimal splitServiceTax = default(decimal), decimal vendorCommission = default(decimal), string closedInFavorOf = default(string), string disputeResolvedOn = default(string), string disputeCategory = default(string), string disputeNote = default(string), string refundProcessedAt = default(string), string refundArn = default(string), string refundNote = default(string), string refundId = default(string), string adjustmentRemarks = default(string)) + public SettlementReconEntityDataInner(string eventId = default(string), string eventType = default(string), decimal eventSettlementAmount = default(decimal), decimal eventAmount = default(decimal), string saleType = default(string), string eventStatus = default(string), string entity = default(string), string eventTime = default(string), string eventCurrency = default(string), string orderId = default(string), decimal orderAmount = default(decimal), string customerPhone = default(string), string customerEmail = default(string), string customerName = default(string), decimal paymentAmount = default(decimal), string paymentUtr = default(string), string paymentTime = default(string), decimal paymentServiceCharge = default(decimal), decimal paymentServiceTax = default(decimal), long cfPaymentId = default(long), int cfSettlementId = default(int), string settlementDate = default(string), string settlementUtr = default(string), decimal splitServiceCharge = default(decimal), decimal splitServiceTax = default(decimal), decimal vendorCommission = default(decimal), string closedInFavorOf = default(string), string disputeResolvedOn = default(string), string disputeCategory = default(string), string disputeNote = default(string), string refundProcessedAt = default(string), string refundArn = default(string), string refundNote = default(string), string refundId = default(string), string adjustmentRemarks = default(string)) { this.event_id = eventId; this.event_type = eventType; @@ -247,14 +247,14 @@ public class SettlementReconEntityDataInner : IEquatable /// Cashfree Payments unique ID to identify a payment. [DataMember(Name = "cf_payment_id", EmitDefaultValue = false)] - public string cf_payment_id { get; set; } + public long cf_payment_id { get; set; } /// /// Unique ID to identify the settlement. /// /// Unique ID to identify the settlement. [DataMember(Name = "cf_settlement_id", EmitDefaultValue = false)] - public string cf_settlement_id { get; set; } + public int cf_settlement_id { get; set; } /// /// Date and time when the settlement was processed. @@ -523,13 +523,11 @@ public bool Equals(SettlementReconEntityDataInner input) ) && ( this.cf_payment_id == input.cf_payment_id || - (this.cf_payment_id != null && - this.cf_payment_id.Equals(input.cf_payment_id)) + this.cf_payment_id.Equals(input.cf_payment_id) ) && ( this.cf_settlement_id == input.cf_settlement_id || - (this.cf_settlement_id != null && - this.cf_settlement_id.Equals(input.cf_settlement_id)) + this.cf_settlement_id.Equals(input.cf_settlement_id) ) && ( this.settlement_date == input.settlement_date || @@ -667,14 +665,8 @@ public override int GetHashCode() } hashCode = (hashCode * 59) + this.payment_service_charge.GetHashCode(); hashCode = (hashCode * 59) + this.payment_service_tax.GetHashCode(); - if (this.cf_payment_id != null) - { - hashCode = (hashCode * 59) + this.cf_payment_id.GetHashCode(); - } - if (this.cf_settlement_id != null) - { - hashCode = (hashCode * 59) + this.cf_settlement_id.GetHashCode(); - } + hashCode = (hashCode * 59) + this.cf_payment_id.GetHashCode(); + hashCode = (hashCode * 59) + this.cf_settlement_id.GetHashCode(); if (this.settlement_date != null) { hashCode = (hashCode * 59) + this.settlement_date.GetHashCode(); diff --git a/src/cashfree_pg/Model/SettlementWebhook.cs b/src/cashfree_pg/Model/SettlementWebhook.cs index 0bea94b..388dfbc 100644 --- a/src/cashfree_pg/Model/SettlementWebhook.cs +++ b/src/cashfree_pg/Model/SettlementWebhook.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/SettlementWebhookDataEntity.cs b/src/cashfree_pg/Model/SettlementWebhookDataEntity.cs index 01e30a1..0c3d7fd 100644 --- a/src/cashfree_pg/Model/SettlementWebhookDataEntity.cs +++ b/src/cashfree_pg/Model/SettlementWebhookDataEntity.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/TerminalDetails.cs b/src/cashfree_pg/Model/TerminalDetails.cs index a3f4970..c4b1e7f 100644 --- a/src/cashfree_pg/Model/TerminalDetails.cs +++ b/src/cashfree_pg/Model/TerminalDetails.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -50,7 +50,7 @@ protected TerminalDetails() { } /// mobile num of the terminal/agent/storefront (required). /// status of terminal active/inactive. /// To identify the type of terminal product in use, in this case it is SPOS. (required). - public TerminalDetails(string addedOn = default(string), string cfTerminalId = default(string), string lastUpdatedOn = default(string), string terminalAddress = default(string), string terminalId = default(string), string terminalName = default(string), string terminalNote = default(string), string terminalPhoneNo = default(string), string terminalStatus = default(string), string terminalType = default(string)) + public TerminalDetails(string addedOn = default(string), int cfTerminalId = default(int), string lastUpdatedOn = default(string), string terminalAddress = default(string), string terminalId = default(string), string terminalName = default(string), string terminalNote = default(string), string terminalPhoneNo = default(string), string terminalStatus = default(string), string terminalType = default(string)) { // to ensure "terminalId" is required (not null) if (terminalId == null) @@ -91,7 +91,7 @@ protected TerminalDetails() { } /// /// cashfree terminal id [DataMember(Name = "cf_terminal_id", EmitDefaultValue = false)] - public string cf_terminal_id { get; set; } + public int cf_terminal_id { get; set; } /// /// last instant when this terminal was updated @@ -209,8 +209,7 @@ public bool Equals(TerminalDetails input) ) && ( this.cf_terminal_id == input.cf_terminal_id || - (this.cf_terminal_id != null && - this.cf_terminal_id.Equals(input.cf_terminal_id)) + this.cf_terminal_id.Equals(input.cf_terminal_id) ) && ( this.last_updated_on == input.last_updated_on || @@ -267,10 +266,7 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.added_on.GetHashCode(); } - if (this.cf_terminal_id != null) - { - hashCode = (hashCode * 59) + this.cf_terminal_id.GetHashCode(); - } + hashCode = (hashCode * 59) + this.cf_terminal_id.GetHashCode(); if (this.last_updated_on != null) { hashCode = (hashCode * 59) + this.last_updated_on.GetHashCode(); diff --git a/src/cashfree_pg/Model/TerminalEntity.cs b/src/cashfree_pg/Model/TerminalEntity.cs index fcd5439..543f7ff 100644 --- a/src/cashfree_pg/Model/TerminalEntity.cs +++ b/src/cashfree_pg/Model/TerminalEntity.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/TerminalTransactionEntity.cs b/src/cashfree_pg/Model/TerminalTransactionEntity.cs index 1ac954d..df97f1c 100644 --- a/src/cashfree_pg/Model/TerminalTransactionEntity.cs +++ b/src/cashfree_pg/Model/TerminalTransactionEntity.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -41,7 +41,7 @@ public class TerminalTransactionEntity : IEquatable, /// paymentUrl. /// qrcode. /// timeout. - public TerminalTransactionEntity(string cfPaymentId = default(string), int paymentAmount = default(int), string paymentMethod = default(string), string paymentUrl = default(string), string qrcode = default(string), string timeout = default(string)) + public TerminalTransactionEntity(long cfPaymentId = default(long), int paymentAmount = default(int), string paymentMethod = default(string), string paymentUrl = default(string), string qrcode = default(string), string timeout = default(string)) { this.cf_payment_id = cfPaymentId; this.payment_amount = paymentAmount; @@ -55,7 +55,7 @@ public class TerminalTransactionEntity : IEquatable, /// Gets or Sets cf_payment_id /// [DataMember(Name = "cf_payment_id", EmitDefaultValue = false)] - public string cf_payment_id { get; set; } + public long cf_payment_id { get; set; } /// /// Gets or Sets payment_amount @@ -138,8 +138,7 @@ public bool Equals(TerminalTransactionEntity input) return ( this.cf_payment_id == input.cf_payment_id || - (this.cf_payment_id != null && - this.cf_payment_id.Equals(input.cf_payment_id)) + this.cf_payment_id.Equals(input.cf_payment_id) ) && ( this.payment_amount == input.payment_amount || @@ -176,10 +175,7 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.cf_payment_id != null) - { - hashCode = (hashCode * 59) + this.cf_payment_id.GetHashCode(); - } + hashCode = (hashCode * 59) + this.cf_payment_id.GetHashCode(); hashCode = (hashCode * 59) + this.payment_amount.GetHashCode(); if (this.payment_method != null) { diff --git a/src/cashfree_pg/Model/UPIAuthorizeDetails.cs b/src/cashfree_pg/Model/UPIAuthorizeDetails.cs index bf26b9b..9e64d43 100644 --- a/src/cashfree_pg/Model/UPIAuthorizeDetails.cs +++ b/src/cashfree_pg/Model/UPIAuthorizeDetails.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/UPIPaymentMethod.cs b/src/cashfree_pg/Model/UPIPaymentMethod.cs index 7d670e9..d531723 100644 --- a/src/cashfree_pg/Model/UPIPaymentMethod.cs +++ b/src/cashfree_pg/Model/UPIPaymentMethod.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/Upi.cs b/src/cashfree_pg/Model/Upi.cs index 0230b94..b1f8f0b 100644 --- a/src/cashfree_pg/Model/Upi.cs +++ b/src/cashfree_pg/Model/Upi.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/VendorSplit.cs b/src/cashfree_pg/Model/VendorSplit.cs index 2a18267..08b5cc2 100644 --- a/src/cashfree_pg/Model/VendorSplit.cs +++ b/src/cashfree_pg/Model/VendorSplit.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/Model/WalletOffer.cs b/src/cashfree_pg/Model/WalletOffer.cs index a30a801..3fe720d 100644 --- a/src/cashfree_pg/Model/WalletOffer.cs +++ b/src/cashfree_pg/Model/WalletOffer.cs @@ -3,7 +3,7 @@ * * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. * - * The version of the OpenAPI document: 2023-08-01 + * The version of the OpenAPI document: 2022-09-01 * Contact: developers@cashfree.com * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/cashfree_pg/cashfree_pg.csproj b/src/cashfree_pg/cashfree_pg.csproj index d00f07c..5e2cbd6 100644 --- a/src/cashfree_pg/cashfree_pg.csproj +++ b/src/cashfree_pg/cashfree_pg.csproj @@ -12,7 +12,7 @@ Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. © 2023 Cashfree Payments India Private Limited com.cashfree - 4.0.2 + 3.2.1 LICENSE.md bin\$(Configuration)\$(TargetFramework)\cashfree_pg.xml https://github.com/cashfree/cashfree-pg-sdk-dotnet.git