From 4e8a9b9923fe5d5b5960475f2c0caf178f4e650a Mon Sep 17 00:00:00 2001 From: bitbucket-pipelines Date: Tue, 19 Mar 2024 11:39:34 +0000 Subject: [PATCH] Generating .Net SDK. --- .openapi-generator/FILES | 129 ++ cashfree_pg.sln | 10 +- docs/AdjustVendorBalanceRequest.md | 15 + docs/AdjustVendorBalanceResponse.md | 14 + docs/BalanceDetails.md | 13 + docs/BankDetails.md | 12 + docs/Banktransfer.md | 11 + docs/BanktransferPaymentMethod.md | 11 + docs/Card.md | 1 + docs/ChargesDetails.md | 14 + docs/CreateVendorRequest.md | 21 + docs/CreateVendorResponse.md | 21 + docs/ESOrderReconRequest.md | 12 + docs/ESOrderReconRequestFilters.md | 13 + docs/ESOrderReconRequestPagination.md | 12 + docs/ESOrderReconResponse.md | 13 + docs/ESOrderReconResponseDataInner.md | 35 + ...rReconResponseDataInnerOrderSplitsInner.md | 11 + ...onseDataInnerOrderSplitsInnerSplitInner.md | 12 + docs/EasySplitApi.md | 944 +++++++++ docs/KycDetails.md | 18 + docs/LinkEntity.md | 1 + docs/OfferValidations.md | 1 + docs/PayOrderRequestPaymentMethod.md | 1 + docs/PaymentEntityPaymentMethod.md | 1 + ...ymentMethodBankTransferInPaymentsEntity.md | 11 + ...ankTransferInPaymentsEntityBanktransfer.md | 13 + docs/ScheduleOption.md | 12 + docs/SoftPOSApi.md | 98 +- docs/SplitAfterPaymentRequest.md | 12 + docs/SplitAfterPaymentRequestSplitInner.md | 13 + ...tAfterPaymentRequestSplitInnerTagsInner.md | 11 + docs/SplitAfterPaymentResponse.md | 12 + docs/StaticSplitRequest.md | 15 + docs/StaticSplitRequestSchemeInner.md | 11 + docs/StaticSplitResponse.md | 16 + docs/StaticSplitResponseSchemeInner.md | 11 + docs/TerminalPaymentEntity.md | 28 + docs/TransferDetails.md | 15 + docs/TransferDetailsTagsInner.md | 11 + docs/UpdateVendorRequest.md | 20 + docs/UpdateVendorResponse.md | 27 + docs/UpiDetails.md | 11 + docs/UploadVendorDocsRequest.md | 13 + docs/UploadVendorDocumentsResponse.md | 15 + docs/VendorBalance.md | 14 + docs/VendorBalanceTransferCharges.md | 15 + docs/VendorDocumentDownloadResponse.md | 11 + docs/VendorDocumentsResponse.md | 11 + docs/VendorEntity.md | 24 + docs/VendorEntityRelatedDocsInner.md | 14 + src/cashfree_pg/Client/ApiClient.cs | 1796 ++++++++++++++++- src/cashfree_pg/Client/Configuration.cs | 6 +- .../Model/AdjustVendorBalanceRequest.cs | 225 +++ .../Model/AdjustVendorBalanceResponse.cs | 187 ++ src/cashfree_pg/Model/BalanceDetails.cs | 179 ++ src/cashfree_pg/Model/BankDetails.cs | 173 ++ src/cashfree_pg/Model/Banktransfer.cs | 138 ++ .../Model/BanktransferPaymentMethod.cs | 147 ++ src/cashfree_pg/Model/Card.cs | 21 +- src/cashfree_pg/Model/ChargesDetails.cs | 193 ++ src/cashfree_pg/Model/CreateVendorRequest.cs | 354 ++++ src/cashfree_pg/Model/CreateVendorResponse.cs | 312 +++ src/cashfree_pg/Model/ESOrderReconRequest.cs | 170 ++ .../Model/ESOrderReconRequestFilters.cs | 177 ++ .../Model/ESOrderReconRequestPagination.cs | 152 ++ src/cashfree_pg/Model/ESOrderReconResponse.cs | 170 ++ .../Model/ESOrderReconResponseDataInner.cs | 584 ++++++ ...rReconResponseDataInnerOrderSplitsInner.cs | 156 ++ ...onseDataInnerOrderSplitsInnerSplitInner.cs | 169 ++ src/cashfree_pg/Model/KycDetails.cs | 277 +++ src/cashfree_pg/Model/LinkEntity.cs | 21 +- src/cashfree_pg/Model/OfferValidations.cs | 24 +- .../Model/PayOrderRequestPaymentMethod.cs | 55 +- .../Model/PaymentEntityPaymentMethod.cs | 55 +- ...ymentMethodBankTransferInPaymentsEntity.cs | 137 ++ ...ankTransferInPaymentsEntityBanktransfer.cs | 191 ++ src/cashfree_pg/Model/ScheduleOption.cs | 165 ++ .../Model/SplitAfterPaymentRequest.cs | 164 ++ .../SplitAfterPaymentRequestSplitInner.cs | 188 ++ ...tAfterPaymentRequestSplitInnerTagsInner.cs | 155 ++ .../Model/SplitAfterPaymentResponse.cs | 155 ++ src/cashfree_pg/Model/StaticSplitRequest.cs | 222 ++ .../Model/StaticSplitRequestSchemeInner.cs | 157 ++ src/cashfree_pg/Model/StaticSplitResponse.cs | 220 ++ .../Model/StaticSplitResponseSchemeInner.cs | 155 ++ .../Model/TerminalPaymentEntity.cs | 482 +++++ src/cashfree_pg/Model/TransferDetails.cs | 224 ++ .../Model/TransferDetailsTagsInner.cs | 151 ++ src/cashfree_pg/Model/UpdateVendorRequest.cs | 330 +++ src/cashfree_pg/Model/UpdateVendorResponse.cs | 421 ++++ src/cashfree_pg/Model/UpiDetails.cs | 155 ++ .../Model/UploadVendorDocsRequest.cs | 176 ++ .../Model/UploadVendorDocumentsResponse.cs | 209 ++ src/cashfree_pg/Model/VendorBalance.cs | 179 ++ .../Model/VendorBalanceTransferCharges.cs | 193 ++ .../Model/VendorDocumentDownloadResponse.cs | 137 ++ .../Model/VendorDocumentsResponse.cs | 138 ++ src/cashfree_pg/Model/VendorEntity.cs | 374 ++++ .../Model/VendorEntityRelatedDocsInner.cs | 209 ++ src/cashfree_pg/cashfree_pg.csproj | 2 +- 101 files changed, 12748 insertions(+), 92 deletions(-) create mode 100644 docs/AdjustVendorBalanceRequest.md create mode 100644 docs/AdjustVendorBalanceResponse.md create mode 100644 docs/BalanceDetails.md create mode 100644 docs/BankDetails.md create mode 100644 docs/Banktransfer.md create mode 100644 docs/BanktransferPaymentMethod.md create mode 100644 docs/ChargesDetails.md create mode 100644 docs/CreateVendorRequest.md create mode 100644 docs/CreateVendorResponse.md create mode 100644 docs/ESOrderReconRequest.md create mode 100644 docs/ESOrderReconRequestFilters.md create mode 100644 docs/ESOrderReconRequestPagination.md create mode 100644 docs/ESOrderReconResponse.md create mode 100644 docs/ESOrderReconResponseDataInner.md create mode 100644 docs/ESOrderReconResponseDataInnerOrderSplitsInner.md create mode 100644 docs/ESOrderReconResponseDataInnerOrderSplitsInnerSplitInner.md create mode 100644 docs/EasySplitApi.md create mode 100644 docs/KycDetails.md create mode 100644 docs/PaymentMethodBankTransferInPaymentsEntity.md create mode 100644 docs/PaymentMethodBankTransferInPaymentsEntityBanktransfer.md create mode 100644 docs/ScheduleOption.md create mode 100644 docs/SplitAfterPaymentRequest.md create mode 100644 docs/SplitAfterPaymentRequestSplitInner.md create mode 100644 docs/SplitAfterPaymentRequestSplitInnerTagsInner.md create mode 100644 docs/SplitAfterPaymentResponse.md create mode 100644 docs/StaticSplitRequest.md create mode 100644 docs/StaticSplitRequestSchemeInner.md create mode 100644 docs/StaticSplitResponse.md create mode 100644 docs/StaticSplitResponseSchemeInner.md create mode 100644 docs/TerminalPaymentEntity.md create mode 100644 docs/TransferDetails.md create mode 100644 docs/TransferDetailsTagsInner.md create mode 100644 docs/UpdateVendorRequest.md create mode 100644 docs/UpdateVendorResponse.md create mode 100644 docs/UpiDetails.md create mode 100644 docs/UploadVendorDocsRequest.md create mode 100644 docs/UploadVendorDocumentsResponse.md create mode 100644 docs/VendorBalance.md create mode 100644 docs/VendorBalanceTransferCharges.md create mode 100644 docs/VendorDocumentDownloadResponse.md create mode 100644 docs/VendorDocumentsResponse.md create mode 100644 docs/VendorEntity.md create mode 100644 docs/VendorEntityRelatedDocsInner.md create mode 100644 src/cashfree_pg/Model/AdjustVendorBalanceRequest.cs create mode 100644 src/cashfree_pg/Model/AdjustVendorBalanceResponse.cs create mode 100644 src/cashfree_pg/Model/BalanceDetails.cs create mode 100644 src/cashfree_pg/Model/BankDetails.cs create mode 100644 src/cashfree_pg/Model/Banktransfer.cs create mode 100644 src/cashfree_pg/Model/BanktransferPaymentMethod.cs create mode 100644 src/cashfree_pg/Model/ChargesDetails.cs create mode 100644 src/cashfree_pg/Model/CreateVendorRequest.cs create mode 100644 src/cashfree_pg/Model/CreateVendorResponse.cs create mode 100644 src/cashfree_pg/Model/ESOrderReconRequest.cs create mode 100644 src/cashfree_pg/Model/ESOrderReconRequestFilters.cs create mode 100644 src/cashfree_pg/Model/ESOrderReconRequestPagination.cs create mode 100644 src/cashfree_pg/Model/ESOrderReconResponse.cs create mode 100644 src/cashfree_pg/Model/ESOrderReconResponseDataInner.cs create mode 100644 src/cashfree_pg/Model/ESOrderReconResponseDataInnerOrderSplitsInner.cs create mode 100644 src/cashfree_pg/Model/ESOrderReconResponseDataInnerOrderSplitsInnerSplitInner.cs create mode 100644 src/cashfree_pg/Model/KycDetails.cs create mode 100644 src/cashfree_pg/Model/PaymentMethodBankTransferInPaymentsEntity.cs create mode 100644 src/cashfree_pg/Model/PaymentMethodBankTransferInPaymentsEntityBanktransfer.cs create mode 100644 src/cashfree_pg/Model/ScheduleOption.cs create mode 100644 src/cashfree_pg/Model/SplitAfterPaymentRequest.cs create mode 100644 src/cashfree_pg/Model/SplitAfterPaymentRequestSplitInner.cs create mode 100644 src/cashfree_pg/Model/SplitAfterPaymentRequestSplitInnerTagsInner.cs create mode 100644 src/cashfree_pg/Model/SplitAfterPaymentResponse.cs create mode 100644 src/cashfree_pg/Model/StaticSplitRequest.cs create mode 100644 src/cashfree_pg/Model/StaticSplitRequestSchemeInner.cs create mode 100644 src/cashfree_pg/Model/StaticSplitResponse.cs create mode 100644 src/cashfree_pg/Model/StaticSplitResponseSchemeInner.cs create mode 100644 src/cashfree_pg/Model/TerminalPaymentEntity.cs create mode 100644 src/cashfree_pg/Model/TransferDetails.cs create mode 100644 src/cashfree_pg/Model/TransferDetailsTagsInner.cs create mode 100644 src/cashfree_pg/Model/UpdateVendorRequest.cs create mode 100644 src/cashfree_pg/Model/UpdateVendorResponse.cs create mode 100644 src/cashfree_pg/Model/UpiDetails.cs create mode 100644 src/cashfree_pg/Model/UploadVendorDocsRequest.cs create mode 100644 src/cashfree_pg/Model/UploadVendorDocumentsResponse.cs create mode 100644 src/cashfree_pg/Model/VendorBalance.cs create mode 100644 src/cashfree_pg/Model/VendorBalanceTransferCharges.cs create mode 100644 src/cashfree_pg/Model/VendorDocumentDownloadResponse.cs create mode 100644 src/cashfree_pg/Model/VendorDocumentsResponse.cs create mode 100644 src/cashfree_pg/Model/VendorEntity.cs create mode 100644 src/cashfree_pg/Model/VendorEntityRelatedDocsInner.cs diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 48295bc..e600df6 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -4,6 +4,8 @@ README.md api/openapi.yaml appveyor.yml cashfree_pg.sln +docs/AdjustVendorBalanceRequest.md +docs/AdjustVendorBalanceResponse.md docs/ApiError.md docs/ApiError404.md docs/ApiError409.md @@ -14,6 +16,10 @@ docs/AuthenticationError.md docs/AuthorizationInPaymentsEntity.md docs/AuthorizeOrderRequest.md docs/BadRequestError.md +docs/BalanceDetails.md +docs/BankDetails.md +docs/Banktransfer.md +docs/BanktransferPaymentMethod.md docs/Card.md docs/CardEMI.md docs/CardEMIPaymentMethod.md @@ -24,6 +30,7 @@ docs/CardlessEMIEntity.md docs/CardlessEMIPaymentMethod.md docs/CardlessEMIQueries.md docs/CashbackDetails.md +docs/ChargesDetails.md docs/CreateCustomerRequest.md docs/CreateLinkRequest.md docs/CreateOfferRequest.md @@ -31,6 +38,8 @@ docs/CreateOrderRequest.md docs/CreateTerminalRequest.md docs/CreateTerminalRequestTerminalMeta.md docs/CreateTerminalTransactionRequest.md +docs/CreateVendorRequest.md +docs/CreateVendorResponse.md docs/CryptogramEntity.md docs/CustomerDetails.md docs/CustomerDetailsCardlessEMI.md @@ -39,6 +48,14 @@ docs/CustomersApi.md docs/DiscountDetails.md docs/EMIOffer.md docs/EMIPlansArray.md +docs/ESOrderReconRequest.md +docs/ESOrderReconRequestFilters.md +docs/ESOrderReconRequestPagination.md +docs/ESOrderReconResponse.md +docs/ESOrderReconResponseDataInner.md +docs/ESOrderReconResponseDataInnerOrderSplitsInner.md +docs/ESOrderReconResponseDataInnerOrderSplitsInnerSplitInner.md +docs/EasySplitApi.md docs/EligibilityApi.md docs/EligibilityCardlessEMIEntity.md docs/EligibilityFetchCardlessEMIRequest.md @@ -62,6 +79,7 @@ docs/InstrumentEntity.md docs/InstrumentWebhook.md docs/InstrumentWebhookData.md docs/InstrumentWebhookDataEntity.md +docs/KycDetails.md docs/LinkCustomerDetailsEntity.md docs/LinkEntity.md docs/LinkMetaResponseEntity.md @@ -108,6 +126,8 @@ docs/PaymentLinkOrderEntity.md docs/PaymentLinksApi.md docs/PaymentMethodAppInPaymentsEntity.md docs/PaymentMethodAppInPaymentsEntityApp.md +docs/PaymentMethodBankTransferInPaymentsEntity.md +docs/PaymentMethodBankTransferInPaymentsEntityBanktransfer.md docs/PaymentMethodCardEMIInPaymentsEntity.md docs/PaymentMethodCardEMIInPaymentsEntityEmi.md docs/PaymentMethodCardEMIInPaymentsEntityEmiEmiDetails.md @@ -138,6 +158,7 @@ docs/RefundWebhook.md docs/RefundWebhookDataEntity.md docs/RefundsApi.md docs/SavedInstrumentMeta.md +docs/ScheduleOption.md docs/SettlementEntity.md docs/SettlementFetchReconRequest.md docs/SettlementReconEntity.md @@ -147,24 +168,47 @@ docs/SettlementWebhook.md docs/SettlementWebhookDataEntity.md docs/SettlementsApi.md docs/SoftPOSApi.md +docs/SplitAfterPaymentRequest.md +docs/SplitAfterPaymentRequestSplitInner.md +docs/SplitAfterPaymentRequestSplitInnerTagsInner.md +docs/SplitAfterPaymentResponse.md +docs/StaticSplitRequest.md +docs/StaticSplitRequestSchemeInner.md +docs/StaticSplitResponse.md +docs/StaticSplitResponseSchemeInner.md docs/TerminalDetails.md docs/TerminalEntity.md +docs/TerminalPaymentEntity.md docs/TerminalTransactionEntity.md docs/TerminateOrderRequest.md docs/TokenVaultApi.md +docs/TransferDetails.md +docs/TransferDetailsTagsInner.md docs/UPIAuthorizeDetails.md docs/UPIPaymentMethod.md docs/UpdateTerminalEntity.md docs/UpdateTerminalRequest.md docs/UpdateTerminalRequestTerminalMeta.md docs/UpdateTerminalStatusRequest.md +docs/UpdateVendorRequest.md +docs/UpdateVendorResponse.md docs/Upi.md +docs/UpiDetails.md docs/UploadTerminalDocs.md docs/UploadTerminalDocsEntity.md +docs/UploadVendorDocsRequest.md +docs/UploadVendorDocumentsResponse.md +docs/VendorBalance.md +docs/VendorBalanceTransferCharges.md +docs/VendorDocumentDownloadResponse.md +docs/VendorDocumentsResponse.md +docs/VendorEntity.md +docs/VendorEntityRelatedDocsInner.md docs/VendorSplit.md docs/WalletOffer.md git_push.sh src/cashfree_pg.Test/Api/CustomersApiTests.cs +src/cashfree_pg.Test/Api/EasySplitApiTests.cs src/cashfree_pg.Test/Api/EligibilityApiTests.cs src/cashfree_pg.Test/Api/OffersApiTests.cs src/cashfree_pg.Test/Api/OrdersApiTests.cs @@ -176,6 +220,8 @@ src/cashfree_pg.Test/Api/SettlementReconciliationApiTests.cs src/cashfree_pg.Test/Api/SettlementsApiTests.cs src/cashfree_pg.Test/Api/SoftPOSApiTests.cs src/cashfree_pg.Test/Api/TokenVaultApiTests.cs +src/cashfree_pg.Test/Model/AdjustVendorBalanceRequestTests.cs +src/cashfree_pg.Test/Model/AdjustVendorBalanceResponseTests.cs src/cashfree_pg.Test/Model/ApiError404Tests.cs src/cashfree_pg.Test/Model/ApiError409Tests.cs src/cashfree_pg.Test/Model/ApiError502Tests.cs @@ -186,6 +232,10 @@ src/cashfree_pg.Test/Model/AuthenticationErrorTests.cs src/cashfree_pg.Test/Model/AuthorizationInPaymentsEntityTests.cs src/cashfree_pg.Test/Model/AuthorizeOrderRequestTests.cs src/cashfree_pg.Test/Model/BadRequestErrorTests.cs +src/cashfree_pg.Test/Model/BalanceDetailsTests.cs +src/cashfree_pg.Test/Model/BankDetailsTests.cs +src/cashfree_pg.Test/Model/BanktransferPaymentMethodTests.cs +src/cashfree_pg.Test/Model/BanktransferTests.cs src/cashfree_pg.Test/Model/CardEMIPaymentMethodTests.cs src/cashfree_pg.Test/Model/CardEMITests.cs src/cashfree_pg.Test/Model/CardOfferTests.cs @@ -196,6 +246,7 @@ 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/ChargesDetailsTests.cs src/cashfree_pg.Test/Model/CreateCustomerRequestTests.cs src/cashfree_pg.Test/Model/CreateLinkRequestTests.cs src/cashfree_pg.Test/Model/CreateOfferRequestTests.cs @@ -203,6 +254,8 @@ src/cashfree_pg.Test/Model/CreateOrderRequestTests.cs src/cashfree_pg.Test/Model/CreateTerminalRequestTerminalMetaTests.cs src/cashfree_pg.Test/Model/CreateTerminalRequestTests.cs src/cashfree_pg.Test/Model/CreateTerminalTransactionRequestTests.cs +src/cashfree_pg.Test/Model/CreateVendorRequestTests.cs +src/cashfree_pg.Test/Model/CreateVendorResponseTests.cs src/cashfree_pg.Test/Model/CryptogramEntityTests.cs src/cashfree_pg.Test/Model/CustomerDetailsCardlessEMITests.cs src/cashfree_pg.Test/Model/CustomerDetailsTests.cs @@ -210,6 +263,13 @@ 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 +src/cashfree_pg.Test/Model/ESOrderReconRequestFiltersTests.cs +src/cashfree_pg.Test/Model/ESOrderReconRequestPaginationTests.cs +src/cashfree_pg.Test/Model/ESOrderReconRequestTests.cs +src/cashfree_pg.Test/Model/ESOrderReconResponseDataInnerOrderSplitsInnerSplitInnerTests.cs +src/cashfree_pg.Test/Model/ESOrderReconResponseDataInnerOrderSplitsInnerTests.cs +src/cashfree_pg.Test/Model/ESOrderReconResponseDataInnerTests.cs +src/cashfree_pg.Test/Model/ESOrderReconResponseTests.cs src/cashfree_pg.Test/Model/EligibilityCardlessEMIEntityTests.cs src/cashfree_pg.Test/Model/EligibilityFetchCardlessEMIRequestTests.cs src/cashfree_pg.Test/Model/EligibilityFetchOffersRequestTests.cs @@ -232,6 +292,7 @@ src/cashfree_pg.Test/Model/InstrumentEntityTests.cs src/cashfree_pg.Test/Model/InstrumentWebhookDataEntityTests.cs src/cashfree_pg.Test/Model/InstrumentWebhookDataTests.cs src/cashfree_pg.Test/Model/InstrumentWebhookTests.cs +src/cashfree_pg.Test/Model/KycDetailsTests.cs src/cashfree_pg.Test/Model/LinkCustomerDetailsEntityTests.cs src/cashfree_pg.Test/Model/LinkEntityTests.cs src/cashfree_pg.Test/Model/LinkMetaResponseEntityTests.cs @@ -274,6 +335,8 @@ 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/PaymentMethodBankTransferInPaymentsEntityBanktransferTests.cs +src/cashfree_pg.Test/Model/PaymentMethodBankTransferInPaymentsEntityTests.cs src/cashfree_pg.Test/Model/PaymentMethodCardEMIInPaymentsEntityEmiEmiDetailsTests.cs src/cashfree_pg.Test/Model/PaymentMethodCardEMIInPaymentsEntityEmiTests.cs src/cashfree_pg.Test/Model/PaymentMethodCardEMIInPaymentsEntityTests.cs @@ -302,29 +365,53 @@ src/cashfree_pg.Test/Model/RefundSpeedTests.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/ScheduleOptionTests.cs src/cashfree_pg.Test/Model/SettlementEntityTests.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/SettlementWebhookDataEntityTests.cs src/cashfree_pg.Test/Model/SettlementWebhookTests.cs +src/cashfree_pg.Test/Model/SplitAfterPaymentRequestSplitInnerTagsInnerTests.cs +src/cashfree_pg.Test/Model/SplitAfterPaymentRequestSplitInnerTests.cs +src/cashfree_pg.Test/Model/SplitAfterPaymentRequestTests.cs +src/cashfree_pg.Test/Model/SplitAfterPaymentResponseTests.cs +src/cashfree_pg.Test/Model/StaticSplitRequestSchemeInnerTests.cs +src/cashfree_pg.Test/Model/StaticSplitRequestTests.cs +src/cashfree_pg.Test/Model/StaticSplitResponseSchemeInnerTests.cs +src/cashfree_pg.Test/Model/StaticSplitResponseTests.cs src/cashfree_pg.Test/Model/TerminalDetailsTests.cs src/cashfree_pg.Test/Model/TerminalEntityTests.cs +src/cashfree_pg.Test/Model/TerminalPaymentEntityTests.cs src/cashfree_pg.Test/Model/TerminalTransactionEntityTests.cs src/cashfree_pg.Test/Model/TerminateOrderRequestTests.cs +src/cashfree_pg.Test/Model/TransferDetailsTagsInnerTests.cs +src/cashfree_pg.Test/Model/TransferDetailsTests.cs src/cashfree_pg.Test/Model/UPIAuthorizeDetailsTests.cs src/cashfree_pg.Test/Model/UPIPaymentMethodTests.cs src/cashfree_pg.Test/Model/UpdateTerminalEntityTests.cs src/cashfree_pg.Test/Model/UpdateTerminalRequestTerminalMetaTests.cs src/cashfree_pg.Test/Model/UpdateTerminalRequestTests.cs src/cashfree_pg.Test/Model/UpdateTerminalStatusRequestTests.cs +src/cashfree_pg.Test/Model/UpdateVendorRequestTests.cs +src/cashfree_pg.Test/Model/UpdateVendorResponseTests.cs +src/cashfree_pg.Test/Model/UpiDetailsTests.cs src/cashfree_pg.Test/Model/UpiTests.cs src/cashfree_pg.Test/Model/UploadTerminalDocsEntityTests.cs src/cashfree_pg.Test/Model/UploadTerminalDocsTests.cs +src/cashfree_pg.Test/Model/UploadVendorDocsRequestTests.cs +src/cashfree_pg.Test/Model/UploadVendorDocumentsResponseTests.cs +src/cashfree_pg.Test/Model/VendorBalanceTests.cs +src/cashfree_pg.Test/Model/VendorBalanceTransferChargesTests.cs +src/cashfree_pg.Test/Model/VendorDocumentDownloadResponseTests.cs +src/cashfree_pg.Test/Model/VendorDocumentsResponseTests.cs +src/cashfree_pg.Test/Model/VendorEntityRelatedDocsInnerTests.cs +src/cashfree_pg.Test/Model/VendorEntityTests.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/EasySplitApi.cs src/cashfree_pg/Api/EligibilityApi.cs src/cashfree_pg/Api/OffersApi.cs src/cashfree_pg/Api/OrdersApi.cs @@ -353,6 +440,8 @@ src/cashfree_pg/Client/OpenAPIDateConverter.cs src/cashfree_pg/Client/RequestOptions.cs src/cashfree_pg/Client/RetryConfiguration.cs src/cashfree_pg/Model/AbstractOpenAPISchema.cs +src/cashfree_pg/Model/AdjustVendorBalanceRequest.cs +src/cashfree_pg/Model/AdjustVendorBalanceResponse.cs src/cashfree_pg/Model/ApiError.cs src/cashfree_pg/Model/ApiError404.cs src/cashfree_pg/Model/ApiError409.cs @@ -363,6 +452,10 @@ src/cashfree_pg/Model/AuthenticationError.cs src/cashfree_pg/Model/AuthorizationInPaymentsEntity.cs src/cashfree_pg/Model/AuthorizeOrderRequest.cs src/cashfree_pg/Model/BadRequestError.cs +src/cashfree_pg/Model/BalanceDetails.cs +src/cashfree_pg/Model/BankDetails.cs +src/cashfree_pg/Model/Banktransfer.cs +src/cashfree_pg/Model/BanktransferPaymentMethod.cs src/cashfree_pg/Model/Card.cs src/cashfree_pg/Model/CardEMI.cs src/cashfree_pg/Model/CardEMIPaymentMethod.cs @@ -373,6 +466,7 @@ 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/ChargesDetails.cs src/cashfree_pg/Model/CreateCustomerRequest.cs src/cashfree_pg/Model/CreateLinkRequest.cs src/cashfree_pg/Model/CreateOfferRequest.cs @@ -380,6 +474,8 @@ src/cashfree_pg/Model/CreateOrderRequest.cs src/cashfree_pg/Model/CreateTerminalRequest.cs src/cashfree_pg/Model/CreateTerminalRequestTerminalMeta.cs src/cashfree_pg/Model/CreateTerminalTransactionRequest.cs +src/cashfree_pg/Model/CreateVendorRequest.cs +src/cashfree_pg/Model/CreateVendorResponse.cs src/cashfree_pg/Model/CryptogramEntity.cs src/cashfree_pg/Model/CustomerDetails.cs src/cashfree_pg/Model/CustomerDetailsCardlessEMI.cs @@ -387,6 +483,13 @@ src/cashfree_pg/Model/CustomerEntity.cs src/cashfree_pg/Model/DiscountDetails.cs src/cashfree_pg/Model/EMIOffer.cs src/cashfree_pg/Model/EMIPlansArray.cs +src/cashfree_pg/Model/ESOrderReconRequest.cs +src/cashfree_pg/Model/ESOrderReconRequestFilters.cs +src/cashfree_pg/Model/ESOrderReconRequestPagination.cs +src/cashfree_pg/Model/ESOrderReconResponse.cs +src/cashfree_pg/Model/ESOrderReconResponseDataInner.cs +src/cashfree_pg/Model/ESOrderReconResponseDataInnerOrderSplitsInner.cs +src/cashfree_pg/Model/ESOrderReconResponseDataInnerOrderSplitsInnerSplitInner.cs src/cashfree_pg/Model/EligibilityCardlessEMIEntity.cs src/cashfree_pg/Model/EligibilityFetchCardlessEMIRequest.cs src/cashfree_pg/Model/EligibilityFetchOffersRequest.cs @@ -409,6 +512,7 @@ src/cashfree_pg/Model/InstrumentEntity.cs src/cashfree_pg/Model/InstrumentWebhook.cs src/cashfree_pg/Model/InstrumentWebhookData.cs src/cashfree_pg/Model/InstrumentWebhookDataEntity.cs +src/cashfree_pg/Model/KycDetails.cs src/cashfree_pg/Model/LinkCustomerDetailsEntity.cs src/cashfree_pg/Model/LinkEntity.cs src/cashfree_pg/Model/LinkMetaResponseEntity.cs @@ -451,6 +555,8 @@ 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/PaymentMethodBankTransferInPaymentsEntity.cs +src/cashfree_pg/Model/PaymentMethodBankTransferInPaymentsEntityBanktransfer.cs src/cashfree_pg/Model/PaymentMethodCardEMIInPaymentsEntity.cs src/cashfree_pg/Model/PaymentMethodCardEMIInPaymentsEntityEmi.cs src/cashfree_pg/Model/PaymentMethodCardEMIInPaymentsEntityEmiEmiDetails.cs @@ -479,25 +585,48 @@ src/cashfree_pg/Model/RefundSpeed.cs src/cashfree_pg/Model/RefundWebhook.cs src/cashfree_pg/Model/RefundWebhookDataEntity.cs src/cashfree_pg/Model/SavedInstrumentMeta.cs +src/cashfree_pg/Model/ScheduleOption.cs src/cashfree_pg/Model/SettlementEntity.cs src/cashfree_pg/Model/SettlementFetchReconRequest.cs src/cashfree_pg/Model/SettlementReconEntity.cs src/cashfree_pg/Model/SettlementReconEntityDataInner.cs src/cashfree_pg/Model/SettlementWebhook.cs src/cashfree_pg/Model/SettlementWebhookDataEntity.cs +src/cashfree_pg/Model/SplitAfterPaymentRequest.cs +src/cashfree_pg/Model/SplitAfterPaymentRequestSplitInner.cs +src/cashfree_pg/Model/SplitAfterPaymentRequestSplitInnerTagsInner.cs +src/cashfree_pg/Model/SplitAfterPaymentResponse.cs +src/cashfree_pg/Model/StaticSplitRequest.cs +src/cashfree_pg/Model/StaticSplitRequestSchemeInner.cs +src/cashfree_pg/Model/StaticSplitResponse.cs +src/cashfree_pg/Model/StaticSplitResponseSchemeInner.cs src/cashfree_pg/Model/TerminalDetails.cs src/cashfree_pg/Model/TerminalEntity.cs +src/cashfree_pg/Model/TerminalPaymentEntity.cs src/cashfree_pg/Model/TerminalTransactionEntity.cs src/cashfree_pg/Model/TerminateOrderRequest.cs +src/cashfree_pg/Model/TransferDetails.cs +src/cashfree_pg/Model/TransferDetailsTagsInner.cs src/cashfree_pg/Model/UPIAuthorizeDetails.cs src/cashfree_pg/Model/UPIPaymentMethod.cs src/cashfree_pg/Model/UpdateTerminalEntity.cs src/cashfree_pg/Model/UpdateTerminalRequest.cs src/cashfree_pg/Model/UpdateTerminalRequestTerminalMeta.cs src/cashfree_pg/Model/UpdateTerminalStatusRequest.cs +src/cashfree_pg/Model/UpdateVendorRequest.cs +src/cashfree_pg/Model/UpdateVendorResponse.cs src/cashfree_pg/Model/Upi.cs +src/cashfree_pg/Model/UpiDetails.cs src/cashfree_pg/Model/UploadTerminalDocs.cs src/cashfree_pg/Model/UploadTerminalDocsEntity.cs +src/cashfree_pg/Model/UploadVendorDocsRequest.cs +src/cashfree_pg/Model/UploadVendorDocumentsResponse.cs +src/cashfree_pg/Model/VendorBalance.cs +src/cashfree_pg/Model/VendorBalanceTransferCharges.cs +src/cashfree_pg/Model/VendorDocumentDownloadResponse.cs +src/cashfree_pg/Model/VendorDocumentsResponse.cs +src/cashfree_pg/Model/VendorEntity.cs +src/cashfree_pg/Model/VendorEntityRelatedDocsInner.cs src/cashfree_pg/Model/VendorSplit.cs src/cashfree_pg/Model/WalletOffer.cs src/cashfree_pg/cashfree_pg.csproj diff --git a/cashfree_pg.sln b/cashfree_pg.sln index c7fd908..fddded2 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", "{B24356FF-156F-46FA-AEDE-197438B25AA4}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "cashfree_pg", "src\cashfree_pg\cashfree_pg.csproj", "{BA100C58-DCD8-4CD2-BAD0-BD0C4270B01C}" 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 - {B24356FF-156F-46FA-AEDE-197438B25AA4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {B24356FF-156F-46FA-AEDE-197438B25AA4}.Debug|Any CPU.Build.0 = Debug|Any CPU - {B24356FF-156F-46FA-AEDE-197438B25AA4}.Release|Any CPU.ActiveCfg = Release|Any CPU - {B24356FF-156F-46FA-AEDE-197438B25AA4}.Release|Any CPU.Build.0 = Release|Any CPU + {BA100C58-DCD8-4CD2-BAD0-BD0C4270B01C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {BA100C58-DCD8-4CD2-BAD0-BD0C4270B01C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {BA100C58-DCD8-4CD2-BAD0-BD0C4270B01C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {BA100C58-DCD8-4CD2-BAD0-BD0C4270B01C}.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/AdjustVendorBalanceRequest.md b/docs/AdjustVendorBalanceRequest.md new file mode 100644 index 0000000..30f2f66 --- /dev/null +++ b/docs/AdjustVendorBalanceRequest.md @@ -0,0 +1,15 @@ +# cashfree_pg.Model.AdjustVendorBalanceRequest +Adjust Vendor Balance Request + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**transfer_from** | **string** | Mention to whom you want to transfer the on demand balance. Possible values - MERCHANT, VENDOR. | +**transfer_type** | **string** | Mention the type of transfer. Possible values: ON_DEMAND. | +**transfer_amount** | **decimal** | Mention the on demand transfer amount. | +**remark** | **string** | Mention remarks if any for the on demand transfer. | [optional] +**tags** | **Object** | Provide additional data fields using tags. | [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/AdjustVendorBalanceResponse.md b/docs/AdjustVendorBalanceResponse.md new file mode 100644 index 0000000..2ffc5ea --- /dev/null +++ b/docs/AdjustVendorBalanceResponse.md @@ -0,0 +1,14 @@ +# cashfree_pg.Model.AdjustVendorBalanceResponse +Adjust Vendor Balance Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**settlement_id** | **decimal** | | [optional] +**transfer_details** | [**TransferDetails**](TransferDetails.md) | | [optional] +**balances** | [**BalanceDetails**](BalanceDetails.md) | | [optional] +**charges** | [**ChargesDetails**](ChargesDetails.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/BalanceDetails.md b/docs/BalanceDetails.md new file mode 100644 index 0000000..08a14e8 --- /dev/null +++ b/docs/BalanceDetails.md @@ -0,0 +1,13 @@ +# cashfree_pg.Model.BalanceDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**merchant_id** | **decimal** | | [optional] +**vendor_id** | **string** | | [optional] +**merchant_unsettled** | **decimal** | | [optional] +**vendor_unsettled** | **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/BankDetails.md b/docs/BankDetails.md new file mode 100644 index 0000000..fcc6b89 --- /dev/null +++ b/docs/BankDetails.md @@ -0,0 +1,12 @@ +# cashfree_pg.Model.BankDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_number** | **string** | | [optional] +**account_holder** | **string** | | [optional] +**ifsc** | **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/Banktransfer.md b/docs/Banktransfer.md new file mode 100644 index 0000000..1f35bda --- /dev/null +++ b/docs/Banktransfer.md @@ -0,0 +1,11 @@ +# cashfree_pg.Model.Banktransfer +Banktransfer payment method + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**channel** | **string** | The channel for cardless EMI is always `link` | [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/BanktransferPaymentMethod.md b/docs/BanktransferPaymentMethod.md new file mode 100644 index 0000000..6e078d8 --- /dev/null +++ b/docs/BanktransferPaymentMethod.md @@ -0,0 +1,11 @@ +# cashfree_pg.Model.BanktransferPaymentMethod +banktransfer payment method + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**banktransfer** | [**Banktransfer**](Banktransfer.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/Card.md b/docs/Card.md index 8cbc2bf..7b90853 100644 --- a/docs/Card.md +++ b/docs/Card.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **instrument_id** | **string** | instrument id of saved card. Required only to make payment using saved instrument. | [optional] **cryptogram** | **string** | cryptogram received from card network. Required only for tokenized card transactions. | [optional] **token_requestor_id** | **string** | TRID issued by card networks. Required only for tokenized card transactions. | [optional] +**token_reference_id** | **string** | Token Reference Id provided by Diners for Guest Checkout Token. Required only for Diners cards. | [optional] **token_type** | **string** | | [optional] **card_display** | **string** | last 4 digits of original card number. Required only for tokenized card transactions. | [optional] **card_alias** | **string** | Card alias as returned by Cashfree Vault API. | [optional] diff --git a/docs/ChargesDetails.md b/docs/ChargesDetails.md new file mode 100644 index 0000000..5712b86 --- /dev/null +++ b/docs/ChargesDetails.md @@ -0,0 +1,14 @@ +# cashfree_pg.Model.ChargesDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**service_charges** | **decimal** | | [optional] +**service_tax** | **decimal** | | [optional] +**amount** | **decimal** | | [optional] +**billed_to** | **string** | | [optional] +**is_postpaid** | **bool** | | [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/CreateVendorRequest.md b/docs/CreateVendorRequest.md new file mode 100644 index 0000000..5d8a5ae --- /dev/null +++ b/docs/CreateVendorRequest.md @@ -0,0 +1,21 @@ +# cashfree_pg.Model.CreateVendorRequest +Create Vendor Request + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**vendor_id** | **string** | Specify the unique Vendor ID to identify the beneficiary. Alphanumeric and underscore (_) allowed. | +**status** | **string** | Specify the status of vendor that should be updated. Possible values: ACTIVE,BLOCKED, DELETED | +**name** | **string** | Specify the name of the vendor to be updated. Name should not have any special character except . / - & | +**email** | **string** | Specify the vendor email ID that should be updated. String in email ID format (Ex:johndoe_1@cashfree.com) should contain @ and dot (.) | +**phone** | **string** | Specify the beneficiaries phone number to be updated. Phone number registered in India (only digits, 8 - 12 characters after excluding +91). | +**verify_account** | **bool** | Specify if the vendor bank account details should be verified. Possible values: true or false | [optional] +**dashboard_access** | **bool** | Update if the vendor will have dashboard access or not. Possible values are: true or false | [optional] +**schedule_option** | **decimal** | Specify the settlement cycle to be updated. View the settlement cycle details from the \"Settlement Cycles Supported\" table. If no schedule option is configured, the settlement cycle ID \"1\" will be in effect. Select \"8\" or \"9\" if you want to schedule instant vendor settlements. | [optional] +**bank** | [**List<BankDetails>**](BankDetails.md) | Specify the vendor bank account details to be updated. | [optional] +**upi** | [**List<UpiDetails>**](UpiDetails.md) | Updated beneficiary upi vpa. Alphanumeric, dot (.), hyphen (-), at sign (@), and underscore allowed (100 character limit). Note: underscore and dot (.) gets accepted before and after @, but hyphen (-) is only accepted before @ sign. | [optional] +**kyc_details** | [**List<KycDetails>**](KycDetails.md) | Specify the kyc details that should be updated. | + +[[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/CreateVendorResponse.md b/docs/CreateVendorResponse.md new file mode 100644 index 0000000..afbde08 --- /dev/null +++ b/docs/CreateVendorResponse.md @@ -0,0 +1,21 @@ +# cashfree_pg.Model.CreateVendorResponse +Create Vendor Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**email** | **string** | | [optional] +**status** | **string** | | [optional] +**bank** | [**List<BankDetails>**](BankDetails.md) | | [optional] +**upi** | **string** | | [optional] +**phone** | **decimal** | | [optional] +**name** | **string** | | [optional] +**vendor_id** | **string** | | [optional] +**schedule_option** | [**List<ScheduleOption>**](ScheduleOption.md) | | [optional] +**kyc_details** | [**List<KycDetails>**](KycDetails.md) | | [optional] +**dashboard_access** | **bool** | | [optional] +**bank_details** | **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/ESOrderReconRequest.md b/docs/ESOrderReconRequest.md new file mode 100644 index 0000000..110595a --- /dev/null +++ b/docs/ESOrderReconRequest.md @@ -0,0 +1,12 @@ +# cashfree_pg.Model.ESOrderReconRequest +ES Order Recon Request + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**filters** | [**ESOrderReconRequestFilters**](ESOrderReconRequestFilters.md) | | +**pagination** | [**ESOrderReconRequestPagination**](ESOrderReconRequestPagination.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/ESOrderReconRequestFilters.md b/docs/ESOrderReconRequestFilters.md new file mode 100644 index 0000000..7158bb6 --- /dev/null +++ b/docs/ESOrderReconRequestFilters.md @@ -0,0 +1,13 @@ +# cashfree_pg.Model.ESOrderReconRequestFilters +Provide the filter object details. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**start_date** | **string** | Specify the start data from which you want to get the recon data. | [optional] +**end_date** | **string** | Specify the end data till which you want to get the recon data. | [optional] +**order_ids** | **List<string>** | Please provide list of order ids for which you want to get the recon data. | [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/ESOrderReconRequestPagination.md b/docs/ESOrderReconRequestPagination.md new file mode 100644 index 0000000..371ab79 --- /dev/null +++ b/docs/ESOrderReconRequestPagination.md @@ -0,0 +1,12 @@ +# cashfree_pg.Model.ESOrderReconRequestPagination +Set limit based on your requirement. Pagination limit will fetch a set of orders, next set of orders can be generated using the cursor shared in previous response of the same API. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cursor** | **string** | | [optional] +**limit** | **int** | Set the minimum/maximum limit for number of filtered data. Min value - 10, Max value - 100. | [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/ESOrderReconResponse.md b/docs/ESOrderReconResponse.md new file mode 100644 index 0000000..ae9f2f6 --- /dev/null +++ b/docs/ESOrderReconResponse.md @@ -0,0 +1,13 @@ +# cashfree_pg.Model.ESOrderReconResponse +ES Order Recon Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cursor** | **string** | | [optional] +**data** | [**List<ESOrderReconResponseDataInner>**](ESOrderReconResponseDataInner.md) | | [optional] +**limit** | **int** | | [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/ESOrderReconResponseDataInner.md b/docs/ESOrderReconResponseDataInner.md new file mode 100644 index 0000000..2ec0066 --- /dev/null +++ b/docs/ESOrderReconResponseDataInner.md @@ -0,0 +1,35 @@ +# cashfree_pg.Model.ESOrderReconResponseDataInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**amount** | **decimal** | | [optional] +**settlement_eligibility_time** | **string** | | [optional] +**merchant_order_id** | **string** | | [optional] +**tx_time** | **string** | | [optional] +**settled** | **string** | | [optional] +**entity_id** | **string** | | [optional] +**merchant_settlement_utr** | **string** | | [optional] +**currency** | **string** | | [optional] +**sale_type** | **string** | | [optional] +**customer_name** | **string** | | [optional] +**customer_email** | **string** | | [optional] +**customer_phone** | **string** | | [optional] +**merchant_vendor_commission** | **string** | | [optional] +**split_service_charge** | **string** | | [optional] +**split_service_tax** | **string** | | [optional] +**pg_service_tax** | **string** | | [optional] +**pg_service_charge** | **string** | | [optional] +**pg_charge_postpaid** | **string** | | [optional] +**merchant_settlement_id** | **string** | | [optional] +**added_on** | **string** | | [optional] +**tags** | **string** | | [optional] +**entity_type** | **string** | | [optional] +**settlement_initiated_on** | **string** | | [optional] +**settlement_time** | **string** | | [optional] +**order_splits** | [**List<ESOrderReconResponseDataInnerOrderSplitsInner>**](ESOrderReconResponseDataInnerOrderSplitsInner.md) | | [optional] +**eligible_split_balance** | **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/ESOrderReconResponseDataInnerOrderSplitsInner.md b/docs/ESOrderReconResponseDataInnerOrderSplitsInner.md new file mode 100644 index 0000000..690bbc2 --- /dev/null +++ b/docs/ESOrderReconResponseDataInnerOrderSplitsInner.md @@ -0,0 +1,11 @@ +# cashfree_pg.Model.ESOrderReconResponseDataInnerOrderSplitsInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**split** | [**List<ESOrderReconResponseDataInnerOrderSplitsInnerSplitInner>**](ESOrderReconResponseDataInnerOrderSplitsInnerSplitInner.md) | | [optional] +**created_at** | **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/ESOrderReconResponseDataInnerOrderSplitsInnerSplitInner.md b/docs/ESOrderReconResponseDataInnerOrderSplitsInnerSplitInner.md new file mode 100644 index 0000000..c7f4fcf --- /dev/null +++ b/docs/ESOrderReconResponseDataInnerOrderSplitsInnerSplitInner.md @@ -0,0 +1,12 @@ +# cashfree_pg.Model.ESOrderReconResponseDataInnerOrderSplitsInnerSplitInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**merchant_vendor_id** | **string** | | [optional] +**percentage** | **decimal** | | [optional] +**tags** | **Object** | | [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/EasySplitApi.md b/docs/EasySplitApi.md new file mode 100644 index 0000000..d10df37 --- /dev/null +++ b/docs/EasySplitApi.md @@ -0,0 +1,944 @@ +# cashfree_pg.Api.EasySplitApi + +All URIs are relative to *https://sandbox.cashfree.com/pg* + +| Method | HTTP request | Description | +|--------|--------------|-------------| +| [**PGESCreateOnDemandTransfer**](EasySplitApi.md#pgescreateondemandtransfer) | **POST** /easy-split/vendors/{vendor_id}/transfer | Create On Demand Transfer | +| [**PGESCreateVendors**](EasySplitApi.md#pgescreatevendors) | **POST** /easy-split/vendors | Create vendor | +| [**PGESDownloadVendorsDocs**](EasySplitApi.md#pgesdownloadvendorsdocs) | **GET** /easy-split/vendor-docs/{vendor_id}/download/{doc_type} | Download Vendor Documents | +| [**PGESFetchVendors**](EasySplitApi.md#pgesfetchvendors) | **GET** /easy-split/vendors/{vendor_id} | Get Vendor All Details | +| [**PGESGetVendorBalance**](EasySplitApi.md#pgesgetvendorbalance) | **GET** /easy-split/vendors/{vendor_id}/balances | Get On Demand Balance | +| [**PGESGetVendorBalanceTransferCharges**](EasySplitApi.md#pgesgetvendorbalancetransfercharges) | **GET** /easy-split/amount/{amount}/charges | Get Vendor Balance Transfer Charges | +| [**PGESGetVendorsDocs**](EasySplitApi.md#pgesgetvendorsdocs) | **GET** /easy-split/vendor-docs/{vendor_id} | Get Vendor All Documents Status | +| [**PGESOrderRecon**](EasySplitApi.md#pgesorderrecon) | **POST** /split/order/vendor/recon | Get Split and Settlement Details by OrderID v2.0 | +| [**PGESUpdateVendors**](EasySplitApi.md#pgesupdatevendors) | **PATCH** /easy-split/vendors/{vendor_id} | Update vendor Details | +| [**PGOrderSplitAfterPayment**](EasySplitApi.md#pgordersplitafterpayment) | **POST** /easy-split/orders/{order_id}/split | Split After Payment | +| [**PGOrderStaticSplit**](EasySplitApi.md#pgorderstaticsplit) | **POST** /easy-split/static-split | Create Static Split Configuration | + + +# **PGESCreateOnDemandTransfer** +> AdjustVendorBalanceResponse PGESCreateOnDemandTransfer (string xApiVersion, string vendorId, string? xRequestId = null, Guid? xIdempotencyKey = null, AdjustVendorBalanceRequest? adjustVendorBalanceRequest = null) + +Create On Demand Transfer + +The Create On Demand Transfer API will create a new on-demand request either from to the merchant or from to the vendor. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using cashfree_pg.Client; +using cashfree_pg.Model; + +namespace Example +{ + public class PGESCreateOnDemandTransferExample + { + 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 vendorId = your-vendor-id; // string | The id which uniquely identifies your vendor. + 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 adjustVendorBalanceRequest = new AdjustVendorBalanceRequest?(); // AdjustVendorBalanceRequest? | Adjust Vendor Balance Request Body. (optional) + + try + { + // Create On Demand Transfer + AdjustVendorBalanceResponse result = cashfree.PGESCreateOnDemandTransfer(xApiVersion, vendorId, xRequestId, xIdempotencyKey, adjustVendorBalanceRequest); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling EasySplitApi.PGESCreateOnDemandTransfer: " + 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"] | +| **vendorId** | **string** | The id which uniquely identifies your vendor. | | +| **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] | +| **adjustVendorBalanceRequest** | [**AdjustVendorBalanceRequest?**](AdjustVendorBalanceRequest?.md) | Adjust Vendor Balance Request Body. | [optional] | + +### Return type + +[**AdjustVendorBalanceResponse**](AdjustVendorBalanceResponse.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** | Adjust Vendor Balance Success Response. | - | +| **400** | Adjust Vendor Balance Failure Response. | - | + +[[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) + + +# **PGESCreateVendors** +> CreateVendorResponse PGESCreateVendors (string xApiVersion, string? xRequestId = null, Guid? xIdempotencyKey = null, CreateVendorRequest? createVendorRequest = null) + +Create vendor + +Use this API to create a new vendor to your EasySplit account along with the KYC details. Provide KYC details such as account_type, business_type, gst, cin, pan, passport number and so on. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using cashfree_pg.Client; +using cashfree_pg.Model; + +namespace Example +{ + public class PGESCreateVendorsExample + { + 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 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 createVendorRequest = new CreateVendorRequest?(); // CreateVendorRequest? | Create Vendor Request Body. (optional) + + try + { + // Create vendor + CreateVendorResponse result = cashfree.PGESCreateVendors(xApiVersion, xRequestId, xIdempotencyKey, createVendorRequest); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling EasySplitApi.PGESCreateVendors: " + 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"] | +| **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] | +| **createVendorRequest** | [**CreateVendorRequest?**](CreateVendorRequest?.md) | Create Vendor Request Body. | [optional] | + +### Return type + +[**CreateVendorResponse**](CreateVendorResponse.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** | Create Vendor Success Response. | - | +| **400** | Create Vendor Failure Response. | - | + +[[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) + + +# **PGESDownloadVendorsDocs** +> VendorDocumentDownloadResponse PGESDownloadVendorsDocs (string xApiVersion, string docType, string vendorId, string? xRequestId = null, Guid? xIdempotencyKey = null) + +Download Vendor Documents + +Use this API to download the uploaded KYC documents of that particular vendor. Provide the document type. Click the link from the sample request to download the KYC document. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using cashfree_pg.Client; +using cashfree_pg.Model; + +namespace Example +{ + public class PGESDownloadVendorsDocsExample + { + 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 docType = "docType_example"; // string | Mention the document type that has to be downloaded. Only an uploaded document can be downloaded. + var vendorId = your-vendor-id; // string | The id which uniquely identifies your vendor. + 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 + { + // Download Vendor Documents + VendorDocumentDownloadResponse result = cashfree.PGESDownloadVendorsDocs(xApiVersion, docType, vendorId, xRequestId, xIdempotencyKey); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling EasySplitApi.PGESDownloadVendorsDocs: " + 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"] | +| **docType** | **string** | Mention the document type that has to be downloaded. Only an uploaded document can be downloaded. | | +| **vendorId** | **string** | The id which uniquely identifies your vendor. | | +| **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 + +[**VendorDocumentDownloadResponse**](VendorDocumentDownloadResponse.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**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Download Vendor Docs Success Response. | - | + +[[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) + + +# **PGESFetchVendors** +> VendorEntity PGESFetchVendors (string xApiVersion, string vendorId, string? xRequestId = null, Guid? xIdempotencyKey = null) + +Get Vendor All Details + +Use this API to get the details of a specific vendor associated with your Easy Split account. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using cashfree_pg.Client; +using cashfree_pg.Model; + +namespace Example +{ + public class PGESFetchVendorsExample + { + 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 vendorId = your-vendor-id; // string | The id which uniquely identifies your vendor. + 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 + { + // Get Vendor All Details + VendorEntity result = cashfree.PGESFetchVendors(xApiVersion, vendorId, xRequestId, xIdempotencyKey); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling EasySplitApi.PGESFetchVendors: " + 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"] | +| **vendorId** | **string** | The id which uniquely identifies your vendor. | | +| **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 + +[**VendorEntity**](VendorEntity.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**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Get Vendor Success Response. | - | +| **400** | Get Vendor Docs Failure Response. | - | + +[[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) + + +# **PGESGetVendorBalance** +> VendorBalance PGESGetVendorBalance (string xApiVersion, string vendorId, string? xRequestId = null, Guid? xIdempotencyKey = null) + +Get On Demand Balance + +This API fetches the available amount with the merchant, vendor, and the unsettled amount for the merchant as well as the vendor. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using cashfree_pg.Client; +using cashfree_pg.Model; + +namespace Example +{ + public class PGESGetVendorBalanceExample + { + 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 vendorId = your-vendor-id; // string | The id which uniquely identifies your vendor. + 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 + { + // Get On Demand Balance + VendorBalance result = cashfree.PGESGetVendorBalance(xApiVersion, vendorId, xRequestId, xIdempotencyKey); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling EasySplitApi.PGESGetVendorBalance: " + 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"] | +| **vendorId** | **string** | The id which uniquely identifies your vendor. | | +| **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 + +[**VendorBalance**](VendorBalance.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**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Get Vendor Balance Success Response. | - | +| **400** | Get Vendor Docs Failure Response. | - | + +[[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) + + +# **PGESGetVendorBalanceTransferCharges** +> VendorBalanceTransferCharges PGESGetVendorBalanceTransferCharges (string xApiVersion, decimal amount, string rateType, string? xRequestId = null, Guid? xIdempotencyKey = null) + +Get Vendor Balance Transfer Charges + +This API returns the applicable service charge and service tax for a vendor balance transfer, based on the provided amount and rate type. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using cashfree_pg.Client; +using cashfree_pg.Model; + +namespace Example +{ + public class PGESGetVendorBalanceTransferChargesExample + { + 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 amount = 1000; // decimal | Specify the amount for which you want to view the service charges and service taxes in the response. + var rateType = VENDOR_ON_DEMAND; // string | Mention the type of rate for which you want to check the charges. Possible value: VENDOR_ON_DEMAND + 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 + { + // Get Vendor Balance Transfer Charges + VendorBalanceTransferCharges result = cashfree.PGESGetVendorBalanceTransferCharges(xApiVersion, amount, rateType, xRequestId, xIdempotencyKey); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling EasySplitApi.PGESGetVendorBalanceTransferCharges: " + 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"] | +| **amount** | **decimal** | Specify the amount for which you want to view the service charges and service taxes in the response. | | +| **rateType** | **string** | Mention the type of rate for which you want to check the charges. Possible value: VENDOR_ON_DEMAND | | +| **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 + +[**VendorBalanceTransferCharges**](VendorBalanceTransferCharges.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**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Get Vendor Balance Transfer Charges Response. | - | +| **400** | Get Vendor Balance Transfer Charges Failure Response. | - | + +[[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) + + +# **PGESGetVendorsDocs** +> VendorDocumentsResponse PGESGetVendorsDocs (string xApiVersion, string vendorId, string? xRequestId = null, Guid? xIdempotencyKey = null) + +Get Vendor All Documents Status + +Use this API to fetch the details of all the KYC details of a particular vendor. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using cashfree_pg.Client; +using cashfree_pg.Model; + +namespace Example +{ + public class PGESGetVendorsDocsExample + { + 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 vendorId = your-vendor-id; // string | The id which uniquely identifies your vendor. + 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 + { + // Get Vendor All Documents Status + VendorDocumentsResponse result = cashfree.PGESGetVendorsDocs(xApiVersion, vendorId, xRequestId, xIdempotencyKey); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling EasySplitApi.PGESGetVendorsDocs: " + 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"] | +| **vendorId** | **string** | The id which uniquely identifies your vendor. | | +| **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 + +[**VendorDocumentsResponse**](VendorDocumentsResponse.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**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Get Vendor Docs Success Response. | - | +| **400** | Get Vendor Docs Failure Response. | - | + +[[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) + + +# **PGESOrderRecon** +> ESOrderReconResponse PGESOrderRecon (string xApiVersion, string? xRequestId = null, Guid? xIdempotencyKey = null, ESOrderReconRequest? eSOrderReconRequest = null) + +Get Split and Settlement Details by OrderID v2.0 + +Use this API to get all the split details, settled and unsettled transactions details of each vendor who were part of a particular order by providing order Id or start date and end date. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using cashfree_pg.Client; +using cashfree_pg.Model; + +namespace Example +{ + public class PGESOrderReconExample + { + 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 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 eSOrderReconRequest = new ESOrderReconRequest?(); // ESOrderReconRequest? | Get Split and Settlement Details by OrderID v2.0 (optional) + + try + { + // Get Split and Settlement Details by OrderID v2.0 + ESOrderReconResponse result = cashfree.PGESOrderRecon(xApiVersion, xRequestId, xIdempotencyKey, eSOrderReconRequest); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling EasySplitApi.PGESOrderRecon: " + 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"] | +| **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] | +| **eSOrderReconRequest** | [**ESOrderReconRequest?**](ESOrderReconRequest?.md) | Get Split and Settlement Details by OrderID v2.0 | [optional] | + +### Return type + +[**ESOrderReconResponse**](ESOrderReconResponse.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** | ES Order Recon Success Response. | - | +| **400** | ES Order Recon Failure Response. | - | +| **404** | ES Order Recon Failure Response. | - | +| **409** | ES Order Recon Failure Response. | - | + +[[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) + + +# **PGESUpdateVendors** +> UpdateVendorResponse PGESUpdateVendors (string xApiVersion, string vendorId, string? xRequestId = null, Guid? xIdempotencyKey = null, UpdateVendorRequest? updateVendorRequest = null) + +Update vendor Details + +Use this API to edit the existing vendor details added to your EasySplit account. You can edit vendor details such as name, email, phone number, upi details, and any of the KYC details. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using cashfree_pg.Client; +using cashfree_pg.Model; + +namespace Example +{ + public class PGESUpdateVendorsExample + { + 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 vendorId = your-vendor-id; // string | The id which uniquely identifies your vendor. + 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 updateVendorRequest = new UpdateVendorRequest?(); // UpdateVendorRequest? | Create Vendor Request Body. (optional) + + try + { + // Update vendor Details + UpdateVendorResponse result = cashfree.PGESUpdateVendors(xApiVersion, vendorId, xRequestId, xIdempotencyKey, updateVendorRequest); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling EasySplitApi.PGESUpdateVendors: " + 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"] | +| **vendorId** | **string** | The id which uniquely identifies your vendor. | | +| **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] | +| **updateVendorRequest** | [**UpdateVendorRequest?**](UpdateVendorRequest?.md) | Create Vendor Request Body. | [optional] | + +### Return type + +[**UpdateVendorResponse**](UpdateVendorResponse.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** | Update Vendor Success Response. | - | +| **400** | Update Vendor Failure Response. | - | + +[[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) + + +# **PGOrderSplitAfterPayment** +> SplitAfterPaymentResponse PGOrderSplitAfterPayment (string xApiVersion, string orderId, string? xRequestId = null, Guid? xIdempotencyKey = null, SplitAfterPaymentRequest? splitAfterPaymentRequest = null) + +Split After Payment + +Split After Payment API splits the payments to vendors after successful payment from the customers. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using cashfree_pg.Client; +using cashfree_pg.Model; + +namespace Example +{ + public class PGOrderSplitAfterPaymentExample + { + 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 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 splitAfterPaymentRequest = new SplitAfterPaymentRequest?(); // SplitAfterPaymentRequest? | Request Body to Create Split for an order. (optional) + + try + { + // Split After Payment + SplitAfterPaymentResponse result = cashfree.PGOrderSplitAfterPayment(xApiVersion, orderId, xRequestId, xIdempotencyKey, splitAfterPaymentRequest); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling EasySplitApi.PGOrderSplitAfterPayment: " + 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 | | +| **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] | +| **splitAfterPaymentRequest** | [**SplitAfterPaymentRequest?**](SplitAfterPaymentRequest?.md) | Request Body to Create Split for an order. | [optional] | + +### Return type + +[**SplitAfterPaymentResponse**](SplitAfterPaymentResponse.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** | Split After Payment Success Response. | - | +| **400** | Split After Payment Failure Response. | - | +| **404** | Split After Payment Failure Response. | - | +| **409** | Split After Payment Failure Response. | - | + +[[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) + + +# **PGOrderStaticSplit** +> StaticSplitResponse PGOrderStaticSplit (string xApiVersion, string? xRequestId = null, Guid? xIdempotencyKey = null, StaticSplitRequest? staticSplitRequest = null) + +Create Static Split Configuration + +This API will create a static split scheme wherein you can define the split type and the vendor-wise split percentage. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using cashfree_pg.Client; +using cashfree_pg.Model; + +namespace Example +{ + public class PGOrderStaticSplitExample + { + 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 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 staticSplitRequest = new StaticSplitRequest?(); // StaticSplitRequest? | Static Split (optional) + + try + { + // Create Static Split Configuration + StaticSplitResponse result = cashfree.PGOrderStaticSplit(xApiVersion, xRequestId, xIdempotencyKey, staticSplitRequest); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling EasySplitApi.PGOrderStaticSplit: " + 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"] | +| **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] | +| **staticSplitRequest** | [**StaticSplitRequest?**](StaticSplitRequest?.md) | Static Split | [optional] | + +### Return type + +[**StaticSplitResponse**](StaticSplitResponse.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** | Static Split Success Response. | - | +| **400** | Static Split Failure Response. | - | + +[[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/KycDetails.md b/docs/KycDetails.md new file mode 100644 index 0000000..22fbdf9 --- /dev/null +++ b/docs/KycDetails.md @@ -0,0 +1,18 @@ +# cashfree_pg.Model.KycDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_type** | **string** | | [optional] +**business_type** | **string** | | [optional] +**uidai** | **decimal** | | [optional] +**gst** | **string** | | [optional] +**cin** | **string** | | [optional] +**pan** | **string** | | [optional] +**passport_number** | **string** | | [optional] +**driving_license** | **string** | | [optional] +**voter_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/LinkEntity.md b/docs/LinkEntity.md index 4f42812..d2a1353 100644 --- a/docs/LinkEntity.md +++ b/docs/LinkEntity.md @@ -22,6 +22,7 @@ Name | Type | Description | Notes **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_auto_reminders** | **bool** | | [optional] **link_notify** | [**LinkNotifyEntity**](LinkNotifyEntity.md) | | [optional] +**link_qrcode** | **string** | Base64 encoded string for payment link. You can scan with camera to open a link in the browser to complete the payment. | [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/OfferValidations.md b/docs/OfferValidations.md index 89ad171..fc79d89 100644 --- a/docs/OfferValidations.md +++ b/docs/OfferValidations.md @@ -6,6 +6,7 @@ Offer validation object Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **min_amount** | **decimal** | Minimum Amount for Offer to be Applicable | [optional] +**max_allowed** | **decimal** | Maximum Amount for Offer to be Applicable | **payment_method** | [**OfferValidationsPaymentMethod**](OfferValidationsPaymentMethod.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/PayOrderRequestPaymentMethod.md b/docs/PayOrderRequestPaymentMethod.md index e0c8950..2994baf 100644 --- a/docs/PayOrderRequestPaymentMethod.md +++ b/docs/PayOrderRequestPaymentMethod.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **emi** | [**CardEMI**](CardEMI.md) | | **cardless_emi** | [**CardlessEMI**](CardlessEMI.md) | | **paylater** | [**Paylater**](Paylater.md) | | +**banktransfer** | [**Banktransfer**](Banktransfer.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/PaymentEntityPaymentMethod.md b/docs/PaymentEntityPaymentMethod.md index b99be9d..a3eaad6 100644 --- a/docs/PaymentEntityPaymentMethod.md +++ b/docs/PaymentEntityPaymentMethod.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **cardless_emi** | [**PaymentMethodAppInPaymentsEntityApp**](PaymentMethodAppInPaymentsEntityApp.md) | | [optional] **paylater** | [**PaymentMethodAppInPaymentsEntityApp**](PaymentMethodAppInPaymentsEntityApp.md) | | [optional] **emi** | [**PaymentMethodCardEMIInPaymentsEntityEmi**](PaymentMethodCardEMIInPaymentsEntityEmi.md) | | [optional] +**banktransfer** | [**PaymentMethodBankTransferInPaymentsEntityBanktransfer**](PaymentMethodBankTransferInPaymentsEntityBanktransfer.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/PaymentMethodBankTransferInPaymentsEntity.md b/docs/PaymentMethodBankTransferInPaymentsEntity.md new file mode 100644 index 0000000..4382dcb --- /dev/null +++ b/docs/PaymentMethodBankTransferInPaymentsEntity.md @@ -0,0 +1,11 @@ +# cashfree_pg.Model.PaymentMethodBankTransferInPaymentsEntity +payment method bank transfer object in payment entity + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**banktransfer** | [**PaymentMethodBankTransferInPaymentsEntityBanktransfer**](PaymentMethodBankTransferInPaymentsEntityBanktransfer.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/PaymentMethodBankTransferInPaymentsEntityBanktransfer.md b/docs/PaymentMethodBankTransferInPaymentsEntityBanktransfer.md new file mode 100644 index 0000000..b479001 --- /dev/null +++ b/docs/PaymentMethodBankTransferInPaymentsEntityBanktransfer.md @@ -0,0 +1,13 @@ +# cashfree_pg.Model.PaymentMethodBankTransferInPaymentsEntityBanktransfer + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**channel** | **string** | | [optional] +**banktransfer_bank_name** | **string** | | [optional] +**banktransfer_ifsc** | **string** | | [optional] +**banktransfer_account_number** | **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/ScheduleOption.md b/docs/ScheduleOption.md new file mode 100644 index 0000000..4ce355e --- /dev/null +++ b/docs/ScheduleOption.md @@ -0,0 +1,12 @@ +# cashfree_pg.Model.ScheduleOption + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**settlement_schedule_message** | **string** | | [optional] +**schedule_id** | **decimal** | | [optional] +**merchant_default** | **bool** | | [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/SoftPOSApi.md b/docs/SoftPOSApi.md index 4853ca4..b539660 100644 --- a/docs/SoftPOSApi.md +++ b/docs/SoftPOSApi.md @@ -8,8 +8,9 @@ All URIs are relative to *https://sandbox.cashfree.com/pg* | [**SposCreateTerminalTransaction**](SoftPOSApi.md#sposcreateterminaltransaction) | **POST** /terminal/transactions | Create Terminal Transaction | | [**SposFetchTerminal**](SoftPOSApi.md#sposfetchterminal) | **GET** /terminal/{terminal_phone_no} | Get Terminal Status using Phone Number | | [**SposFetchTerminalQRCodes**](SoftPOSApi.md#sposfetchterminalqrcodes) | **GET** /terminal/qrcodes | Fetch Terminal QR Codes | +| [**SposFetchTerminalTransaction**](SoftPOSApi.md#sposfetchterminaltransaction) | **GET** /terminal/{cf_terminal_id}/payments | Get Terminal Transaction | | [**SposUpdateTerminal**](SoftPOSApi.md#sposupdateterminal) | **PATCH** /terminal/{cf_terminal_id} | Update Terminal | -| [**SposUpdateTerminalStatus**](SoftPOSApi.md#sposupdateterminalstatus) | **PATCH** /terminal/{cf_terminal_id}/status | Update Terminal Sttus | +| [**SposUpdateTerminalStatus**](SoftPOSApi.md#sposupdateterminalstatus) | **PATCH** /terminal/{cf_terminal_id}/status | Update Terminal Status | | [**SposUploadTerminalDocs**](SoftPOSApi.md#sposuploadterminaldocs) | **POST** /terminal/{cf_terminal_id}/docs | Upload Terminal Docs | @@ -370,6 +371,97 @@ 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) + +# **SposFetchTerminalTransaction** +> TerminalPaymentEntity SposFetchTerminalTransaction (string xApiVersion, string utr, string cfTerminalId, string? xRequestId = null, Guid? xIdempotencyKey = null) + +Get Terminal Transaction + +Use this API to get terminal transaction. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using cashfree_pg.Client; +using cashfree_pg.Model; + +namespace Example +{ + public class SposFetchTerminalTransactionExample + { + 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 utr = testUTR001; // string | Utr of the transaction. + var cfTerminalId = 123344; // string | Provide the Cashfree terminal ID for which the details have to be updated. + 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 + { + // Get Terminal Transaction + TerminalPaymentEntity result = cashfree.SposFetchTerminalTransaction(xApiVersion, utr, cfTerminalId, xRequestId, xIdempotencyKey); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling SoftPOSApi.SposFetchTerminalTransaction: " + 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"] | +| **utr** | **string** | Utr of the transaction. | | +| **cfTerminalId** | **string** | Provide the Cashfree terminal ID for which the details have to be updated. | | +| **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 + +[**TerminalPaymentEntity**](TerminalPaymentEntity.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**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Fetch Terminal Transaction | * 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) + # **SposUpdateTerminal** > List<UpdateTerminalEntity> SposUpdateTerminal (string xApiVersion, string cfTerminalId, UpdateTerminalRequest updateTerminalRequest, string? xRequestId = null, Guid? xIdempotencyKey = null) @@ -465,7 +557,7 @@ namespace Example # **SposUpdateTerminalStatus** > List<UpdateTerminalEntity> SposUpdateTerminalStatus (string xApiVersion, string cfTerminalId, UpdateTerminalStatusRequest updateTerminalStatusRequest, string? xRequestId = null, Guid? xIdempotencyKey = null) -Update Terminal Sttus +Update Terminal Status Use this API to update the terminal status. @@ -499,7 +591,7 @@ namespace Example try { - // Update Terminal Sttus + // Update Terminal Status List result = cashfree.SposUpdateTerminalStatus(xApiVersion, cfTerminalId, updateTerminalStatusRequest, xRequestId, xIdempotencyKey); Debug.WriteLine(result); } diff --git a/docs/SplitAfterPaymentRequest.md b/docs/SplitAfterPaymentRequest.md new file mode 100644 index 0000000..e4d88dc --- /dev/null +++ b/docs/SplitAfterPaymentRequest.md @@ -0,0 +1,12 @@ +# cashfree_pg.Model.SplitAfterPaymentRequest +Split After Payment Request + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**split** | [**List<SplitAfterPaymentRequestSplitInner>**](SplitAfterPaymentRequestSplitInner.md) | Specify the vendors order split details. | +**disable_split** | **bool** | Specify if you want to end the split or continue creating further splits in future. | [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/SplitAfterPaymentRequestSplitInner.md b/docs/SplitAfterPaymentRequestSplitInner.md new file mode 100644 index 0000000..1a0c6aa --- /dev/null +++ b/docs/SplitAfterPaymentRequestSplitInner.md @@ -0,0 +1,13 @@ +# cashfree_pg.Model.SplitAfterPaymentRequestSplitInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**vendor_id** | **string** | Specify the merchant vendor ID to split the payment. | [optional] +**amount** | **decimal** | Specify the amount to be split to the vendor. | [optional] +**percentage** | **decimal** | Specify the percentage of amount to be split. | [optional] +**tags** | [**List<SplitAfterPaymentRequestSplitInnerTagsInner>**](SplitAfterPaymentRequestSplitInnerTagsInner.md) | Provide additional data fields using tags. Sample data fields are mentioned below. | [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/SplitAfterPaymentRequestSplitInnerTagsInner.md b/docs/SplitAfterPaymentRequestSplitInnerTagsInner.md new file mode 100644 index 0000000..36ca2d5 --- /dev/null +++ b/docs/SplitAfterPaymentRequestSplitInnerTagsInner.md @@ -0,0 +1,11 @@ +# cashfree_pg.Model.SplitAfterPaymentRequestSplitInnerTagsInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key_Value_1** | **string** | | [optional] +**Key_Value_2** | **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/SplitAfterPaymentResponse.md b/docs/SplitAfterPaymentResponse.md new file mode 100644 index 0000000..660c2e3 --- /dev/null +++ b/docs/SplitAfterPaymentResponse.md @@ -0,0 +1,12 @@ +# cashfree_pg.Model.SplitAfterPaymentResponse +Split After Payment Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **string** | | [optional] +**message** | **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/StaticSplitRequest.md b/docs/StaticSplitRequest.md new file mode 100644 index 0000000..93e8104 --- /dev/null +++ b/docs/StaticSplitRequest.md @@ -0,0 +1,15 @@ +# cashfree_pg.Model.StaticSplitRequest +Static Split Request + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**active** | **bool** | Specify if the split is to be active or not. Possible values: true/false | +**terminal_id** | **string** | For Subscription payments, the subscription reference ID is to be shared as the terminal ID. Incase for Payment Gateway terminal ID is non-mandatory. Mention as 0 if not applicable. | [optional] +**terminal_reference_id** | **decimal** | You can share additional information using the reference ID. | [optional] +**product_type** | **string** | Specify the product for which the split should be created. If you want split to be created for Payment Gateway pass value as \"PG\". If you want split to be created for Subscription, pass value as \"SBC\". Accepted values - \"STATIC_QR\", \"SBC\", \"PG\", \"EPOS\". | +**scheme** | [**List<StaticSplitRequestSchemeInner>**](StaticSplitRequestSchemeInner.md) | Provide the split scheme details. | + +[[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/StaticSplitRequestSchemeInner.md b/docs/StaticSplitRequestSchemeInner.md new file mode 100644 index 0000000..d22732a --- /dev/null +++ b/docs/StaticSplitRequestSchemeInner.md @@ -0,0 +1,11 @@ +# cashfree_pg.Model.StaticSplitRequestSchemeInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**merchantVendorId** | **string** | Specify the merchant vendor ID to create the split scheme for the payment. | [optional] +**percentage** | **string** | Specify the percentage of amount to be split. | [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/StaticSplitResponse.md b/docs/StaticSplitResponse.md new file mode 100644 index 0000000..9553451 --- /dev/null +++ b/docs/StaticSplitResponse.md @@ -0,0 +1,16 @@ +# cashfree_pg.Model.StaticSplitResponse +Static Split Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**active** | **bool** | | [optional] +**terminal_id** | **string** | | [optional] +**terminal_reference_id** | **decimal** | | [optional] +**product_type** | **string** | | [optional] +**scheme** | [**List<StaticSplitResponseSchemeInner>**](StaticSplitResponseSchemeInner.md) | | [optional] +**added_on** | **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/StaticSplitResponseSchemeInner.md b/docs/StaticSplitResponseSchemeInner.md new file mode 100644 index 0000000..b0736ec --- /dev/null +++ b/docs/StaticSplitResponseSchemeInner.md @@ -0,0 +1,11 @@ +# cashfree_pg.Model.StaticSplitResponseSchemeInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**merchantVendorId** | **string** | | [optional] +**percentage** | **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/TerminalPaymentEntity.md b/docs/TerminalPaymentEntity.md new file mode 100644 index 0000000..8c5a1b9 --- /dev/null +++ b/docs/TerminalPaymentEntity.md @@ -0,0 +1,28 @@ +# cashfree_pg.Model.TerminalPaymentEntity +terminal payment entity full object + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cf_payment_id** | **string** | | [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 ['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] +**payment_completion_time** | **string** | This is the time when the payment reaches its terminal state | [optional] +**payment_status** | **string** | The transaction status can be one of [\"SUCCESS\", \"NOT_ATTEMPTED\", \"FAILED\", \"USER_DROPPED\", \"VOID\", \"CANCELLED\", \"PENDING\"] | [optional] +**payment_message** | **string** | | [optional] +**bank_reference** | **string** | | [optional] +**auth_id** | **string** | | [optional] +**authorization** | [**AuthorizationInPaymentsEntity**](AuthorizationInPaymentsEntity.md) | | [optional] +**customer_details** | [**CustomerDetails**](CustomerDetails.md) | | [optional] +**payment_method** | [**PaymentEntityPaymentMethod**](PaymentEntityPaymentMethod.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/TransferDetails.md b/docs/TransferDetails.md new file mode 100644 index 0000000..d1469bf --- /dev/null +++ b/docs/TransferDetails.md @@ -0,0 +1,15 @@ +# cashfree_pg.Model.TransferDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**vendor_id** | **string** | | [optional] +**transfer_from** | **string** | | [optional] +**transfer_type** | **string** | | [optional] +**transfer_amount** | **decimal** | | [optional] +**remark** | **string** | | [optional] +**tags** | [**List<TransferDetailsTagsInner>**](TransferDetailsTagsInner.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/TransferDetailsTagsInner.md b/docs/TransferDetailsTagsInner.md new file mode 100644 index 0000000..a6ac351 --- /dev/null +++ b/docs/TransferDetailsTagsInner.md @@ -0,0 +1,11 @@ +# cashfree_pg.Model.TransferDetailsTagsInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**product** | **string** | | [optional] +**size** | **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/UpdateVendorRequest.md b/docs/UpdateVendorRequest.md new file mode 100644 index 0000000..30fb5b6 --- /dev/null +++ b/docs/UpdateVendorRequest.md @@ -0,0 +1,20 @@ +# cashfree_pg.Model.UpdateVendorRequest +Update Vendor Request + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **string** | Specify the status of vendor that should be updated. Possible values: ACTIVE,BLOCKED, DELETED | +**name** | **string** | Specify the name of the vendor to be updated. Name should not have any special character except . / - & | +**email** | **string** | Specify the vendor email ID that should be updated. String in email ID format (Ex:johndoe_1@cashfree.com) should contain @ and dot (.) | +**phone** | **string** | Specify the beneficiaries phone number to be updated. Phone number registered in India (only digits, 8 - 12 characters after excluding +91). | +**verify_account** | **bool** | Specify if the vendor bank account details should be verified. Possible values: true or false | [optional] +**dashboard_access** | **bool** | Update if the vendor will have dashboard access or not. Possible values are: true or false | [optional] +**schedule_option** | **decimal** | Specify the settlement cycle to be updated. View the settlement cycle details from the \"Settlement Cycles Supported\" table. If no schedule option is configured, the settlement cycle ID \"1\" will be in effect. Select \"8\" or \"9\" if you want to schedule instant vendor settlements. | +**bank** | [**List<BankDetails>**](BankDetails.md) | Specify the vendor bank account details to be updated. | [optional] +**upi** | [**List<UpiDetails>**](UpiDetails.md) | Updated beneficiary upi vpa. Alphanumeric, dot (.), hyphen (-), at sign (@), and underscore allowed (100 character limit). Note: underscore and dot (.) gets accepted before and after @, but hyphen (-) is only accepted before @ sign. | [optional] +**kyc_details** | [**List<KycDetails>**](KycDetails.md) | Specify the kyc details that should be updated. | + +[[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/UpdateVendorResponse.md b/docs/UpdateVendorResponse.md new file mode 100644 index 0000000..c6a7399 --- /dev/null +++ b/docs/UpdateVendorResponse.md @@ -0,0 +1,27 @@ +# cashfree_pg.Model.UpdateVendorResponse +Update Vendor Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**email** | **string** | | [optional] +**status** | **string** | | [optional] +**bank** | [**List<BankDetails>**](BankDetails.md) | | [optional] +**upi** | **string** | | [optional] +**added_on** | **string** | | [optional] +**updated_on** | **string** | | [optional] +**vendor_type** | **string** | | [optional] +**account_type** | **string** | | [optional] +**business_type** | **string** | | [optional] +**phone** | **decimal** | | [optional] +**name** | **string** | | [optional] +**vendor_id** | **string** | | [optional] +**schedule_option** | [**List<ScheduleOption>**](ScheduleOption.md) | | [optional] +**kyc_details** | [**List<KycDetails>**](KycDetails.md) | | [optional] +**dashboard_access** | **bool** | | [optional] +**bank_details** | **string** | | [optional] +**related_docs** | [**List<VendorEntityRelatedDocsInner>**](VendorEntityRelatedDocsInner.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/UpiDetails.md b/docs/UpiDetails.md new file mode 100644 index 0000000..9066c82 --- /dev/null +++ b/docs/UpiDetails.md @@ -0,0 +1,11 @@ +# cashfree_pg.Model.UpiDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**vpa** | **string** | | [optional] +**account_holder** | **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/UploadVendorDocsRequest.md b/docs/UploadVendorDocsRequest.md new file mode 100644 index 0000000..b9290a6 --- /dev/null +++ b/docs/UploadVendorDocsRequest.md @@ -0,0 +1,13 @@ +# cashfree_pg.Model.UploadVendorDocsRequest +Update Vendor Request + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**doc_type** | **string** | Mention the type of the document you are uploading. Possible values: UIDAI_FRONT, UIDAI_BACK, UIDAI_NUMBER, DL, DL_NUMBER, PASSPORT_FRONT, PASSPORT_BACK, PASSPORT_NUMBER, VOTER_ID, VOTER_ID_NUMBER, PAN, PAN_NUMBER, GST, GSTIN_NUMBER, CIN, CIN_NUMBER, NBFC_CERTIFICATE. If the doc type ends with a number you should add the doc value else upload the doc file. | [optional] +**doc_value** | **System.IO.Stream** | Enter the display name of the uploaded file. | [optional] +**file** | **string** | Select the document that should be uploaded or provide the path of that file. You cannot upload a file that is more than 2MB in size. | [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/UploadVendorDocumentsResponse.md b/docs/UploadVendorDocumentsResponse.md new file mode 100644 index 0000000..9f4d876 --- /dev/null +++ b/docs/UploadVendorDocumentsResponse.md @@ -0,0 +1,15 @@ +# cashfree_pg.Model.UploadVendorDocumentsResponse +Upload Vendor Document + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**vendor_id** | **string** | | [optional] +**doc_type** | **string** | | [optional] +**doc_value** | **string** | | [optional] +**status** | **string** | | [optional] +**remarks** | **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/VendorBalance.md b/docs/VendorBalance.md new file mode 100644 index 0000000..d22f86e --- /dev/null +++ b/docs/VendorBalance.md @@ -0,0 +1,14 @@ +# cashfree_pg.Model.VendorBalance +Vendor Balance entity object + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**merchant_id** | **decimal** | | [optional] +**vendor_id** | **string** | | [optional] +**merchant_unsettled** | **decimal** | | [optional] +**vendor_unsettled** | **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/VendorBalanceTransferCharges.md b/docs/VendorBalanceTransferCharges.md new file mode 100644 index 0000000..163275d --- /dev/null +++ b/docs/VendorBalanceTransferCharges.md @@ -0,0 +1,15 @@ +# cashfree_pg.Model.VendorBalanceTransferCharges +Vendor Balance Transfer Charges entity object + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**service_charges** | **decimal** | | [optional] +**service_tax** | **decimal** | | [optional] +**amount** | **decimal** | | [optional] +**billed_to** | **string** | | [optional] +**is_postpaid** | **bool** | | [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/VendorDocumentDownloadResponse.md b/docs/VendorDocumentDownloadResponse.md new file mode 100644 index 0000000..73b8634 --- /dev/null +++ b/docs/VendorDocumentDownloadResponse.md @@ -0,0 +1,11 @@ +# cashfree_pg.Model.VendorDocumentDownloadResponse +Download Vendor Document + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**download_url** | **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/VendorDocumentsResponse.md b/docs/VendorDocumentsResponse.md new file mode 100644 index 0000000..5d2ede6 --- /dev/null +++ b/docs/VendorDocumentsResponse.md @@ -0,0 +1,11 @@ +# cashfree_pg.Model.VendorDocumentsResponse +Get Vendor Documents + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**documents** | [**List<VendorEntityRelatedDocsInner>**](VendorEntityRelatedDocsInner.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/VendorEntity.md b/docs/VendorEntity.md new file mode 100644 index 0000000..bf62f2f --- /dev/null +++ b/docs/VendorEntity.md @@ -0,0 +1,24 @@ +# cashfree_pg.Model.VendorEntity +Vendor entity object + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**email** | **string** | | [optional] +**status** | **string** | | [optional] +**phone** | **string** | | [optional] +**name** | **string** | | [optional] +**vendor_id** | **string** | | [optional] +**added_on** | **string** | | [optional] +**updated_on** | **string** | | [optional] +**bank** | [**List<BankDetails>**](BankDetails.md) | | [optional] +**upi** | **string** | | [optional] +**schedule_option** | [**List<ScheduleOption>**](ScheduleOption.md) | | [optional] +**vendor_type** | **string** | | [optional] +**account_type** | **string** | | [optional] +**business_type** | **string** | | [optional] +**related_docs** | [**List<VendorEntityRelatedDocsInner>**](VendorEntityRelatedDocsInner.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/VendorEntityRelatedDocsInner.md b/docs/VendorEntityRelatedDocsInner.md new file mode 100644 index 0000000..8aebd25 --- /dev/null +++ b/docs/VendorEntityRelatedDocsInner.md @@ -0,0 +1,14 @@ +# cashfree_pg.Model.VendorEntityRelatedDocsInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**vendor_id** | **string** | | [optional] +**doc_type** | **string** | | [optional] +**doc_value** | **string** | | [optional] +**status** | **string** | | [optional] +**remarks** | **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/src/cashfree_pg/Client/ApiClient.cs b/src/cashfree_pg/Client/ApiClient.cs index 8a36395..f1a4694 100644 --- a/src/cashfree_pg/Client/ApiClient.cs +++ b/src/cashfree_pg/Client/ApiClient.cs @@ -157,7 +157,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.0.7"; + o.Release = "4.0.9"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -246,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.7"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.9"); // make the HTTP request var localVarResponse = this.Client.Post("/customers", localVarRequestOptions, config); @@ -266,6 +266,1510 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, return localVarResponse; } /// + /// Create On Demand Transfer The Create On Demand Transfer API will create a new on-demand request either from to the merchant or from to the vendor. + /// + /// Thrown when fails to make API call + /// API version to be used. Format is in YYYY-MM-DD + /// The id which uniquely identifies your vendor. + /// 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) + /// Adjust Vendor Balance Request Body. (optional) + /// ApiResponse of AdjustVendorBalanceResponse + public cashfree_pg.Client.ApiResponse PGESCreateOnDemandTransfer(string xApiVersion, string vendorId, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), AdjustVendorBalanceRequest? adjustVendorBalanceRequest = default(AdjustVendorBalanceRequest?), 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.9"; + 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 EasySplitApi->PGESCreateOnDemandTransfer"); + + // verify the required parameter 'vendorId' is set + if (vendorId == null) + throw new cashfree_pg.Client.ApiException(400, "Missing required parameter 'vendorId' when calling EasySplitApi->PGESCreateOnDemandTransfer"); + + 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("vendor_id", cashfree_pg.Client.ClientUtils.ParameterToString(vendorId)); // 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 = adjustVendorBalanceRequest; + + // 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.9"); + + // make the HTTP request + var localVarResponse = this.Client.Post("/easy-split/vendors/{vendor_id}/transfer", localVarRequestOptions, config); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("PGESCreateOnDemandTransfer", localVarResponse); + if (_exception != null) { + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } + throw _exception; + } + } + + return localVarResponse; + } + /// + /// Create vendor Use this API to create a new vendor to your EasySplit account along with the KYC details. Provide KYC details such as account_type, business_type, gst, cin, pan, passport number and so on. + /// + /// Thrown when fails to make API call + /// API version to be used. Format is in YYYY-MM-DD + /// 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) + /// Create Vendor Request Body. (optional) + /// ApiResponse of CreateVendorResponse + public cashfree_pg.Client.ApiResponse PGESCreateVendors(string xApiVersion, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), CreateVendorRequest? createVendorRequest = default(CreateVendorRequest?), 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.9"; + 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 EasySplitApi->PGESCreateVendors"); + + 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 = createVendorRequest; + + // 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.9"); + + // make the HTTP request + var localVarResponse = this.Client.Post("/easy-split/vendors", localVarRequestOptions, config); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("PGESCreateVendors", localVarResponse); + if (_exception != null) { + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } + throw _exception; + } + } + + return localVarResponse; + } + /// + /// Download Vendor Documents Use this API to download the uploaded KYC documents of that particular vendor. Provide the document type. Click the link from the sample request to download the KYC document. + /// + /// Thrown when fails to make API call + /// API version to be used. Format is in YYYY-MM-DD + /// Mention the document type that has to be downloaded. Only an uploaded document can be downloaded. + /// The id which uniquely identifies your vendor. + /// 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 VendorDocumentDownloadResponse + public cashfree_pg.Client.ApiResponse PGESDownloadVendorsDocs(string xApiVersion, string docType, string vendorId, 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.9"; + 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 EasySplitApi->PGESDownloadVendorsDocs"); + + // verify the required parameter 'docType' is set + if (docType == null) + throw new cashfree_pg.Client.ApiException(400, "Missing required parameter 'docType' when calling EasySplitApi->PGESDownloadVendorsDocs"); + + // verify the required parameter 'vendorId' is set + if (vendorId == null) + throw new cashfree_pg.Client.ApiException(400, "Missing required parameter 'vendorId' when calling EasySplitApi->PGESDownloadVendorsDocs"); + + cashfree_pg.Client.RequestOptions localVarRequestOptions = new cashfree_pg.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // 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("doc_type", cashfree_pg.Client.ClientUtils.ParameterToString(docType)); // path parameter + localVarRequestOptions.PathParameters.Add("vendor_id", cashfree_pg.Client.ClientUtils.ParameterToString(vendorId)); // 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 + } + + // 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.9"); + + // make the HTTP request + var localVarResponse = this.Client.Get("/easy-split/vendor-docs/{vendor_id}/download/{doc_type}", localVarRequestOptions, config); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("PGESDownloadVendorsDocs", localVarResponse); + if (_exception != null) { + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } + throw _exception; + } + } + + return localVarResponse; + } + /// + /// Get Vendor All Details Use this API to get the details of a specific vendor associated with your Easy Split account. + /// + /// Thrown when fails to make API call + /// API version to be used. Format is in YYYY-MM-DD + /// The id which uniquely identifies your vendor. + /// 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 VendorEntity + public cashfree_pg.Client.ApiResponse PGESFetchVendors(string xApiVersion, string vendorId, 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.9"; + 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 EasySplitApi->PGESFetchVendors"); + + // verify the required parameter 'vendorId' is set + if (vendorId == null) + throw new cashfree_pg.Client.ApiException(400, "Missing required parameter 'vendorId' when calling EasySplitApi->PGESFetchVendors"); + + cashfree_pg.Client.RequestOptions localVarRequestOptions = new cashfree_pg.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // 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("vendor_id", cashfree_pg.Client.ClientUtils.ParameterToString(vendorId)); // 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 + } + + // 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.9"); + + // make the HTTP request + var localVarResponse = this.Client.Get("/easy-split/vendors/{vendor_id}", localVarRequestOptions, config); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("PGESFetchVendors", localVarResponse); + if (_exception != null) { + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } + throw _exception; + } + } + + return localVarResponse; + } + /// + /// Get On Demand Balance This API fetches the available amount with the merchant, vendor, and the unsettled amount for the merchant as well as the vendor. + /// + /// Thrown when fails to make API call + /// API version to be used. Format is in YYYY-MM-DD + /// The id which uniquely identifies your vendor. + /// 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 VendorBalance + public cashfree_pg.Client.ApiResponse PGESGetVendorBalance(string xApiVersion, string vendorId, 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.9"; + 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 EasySplitApi->PGESGetVendorBalance"); + + // verify the required parameter 'vendorId' is set + if (vendorId == null) + throw new cashfree_pg.Client.ApiException(400, "Missing required parameter 'vendorId' when calling EasySplitApi->PGESGetVendorBalance"); + + cashfree_pg.Client.RequestOptions localVarRequestOptions = new cashfree_pg.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // 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("vendor_id", cashfree_pg.Client.ClientUtils.ParameterToString(vendorId)); // 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 + } + + // 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.9"); + + // make the HTTP request + var localVarResponse = this.Client.Get("/easy-split/vendors/{vendor_id}/balances", localVarRequestOptions, config); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("PGESGetVendorBalance", localVarResponse); + if (_exception != null) { + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } + throw _exception; + } + } + + return localVarResponse; + } + /// + /// Get Vendor Balance Transfer Charges This API returns the applicable service charge and service tax for a vendor balance transfer, based on the provided amount and rate type. + /// + /// Thrown when fails to make API call + /// API version to be used. Format is in YYYY-MM-DD + /// Specify the amount for which you want to view the service charges and service taxes in the response. + /// Mention the type of rate for which you want to check the charges. Possible value: VENDOR_ON_DEMAND + /// 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 VendorBalanceTransferCharges + public cashfree_pg.Client.ApiResponse PGESGetVendorBalanceTransferCharges(string xApiVersion, decimal amount, string rateType, 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.9"; + 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 EasySplitApi->PGESGetVendorBalanceTransferCharges"); + + // verify the required parameter 'rateType' is set + if (rateType == null) + throw new cashfree_pg.Client.ApiException(400, "Missing required parameter 'rateType' when calling EasySplitApi->PGESGetVendorBalanceTransferCharges"); + + cashfree_pg.Client.RequestOptions localVarRequestOptions = new cashfree_pg.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // 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("amount", cashfree_pg.Client.ClientUtils.ParameterToString(amount)); // path parameter + localVarRequestOptions.QueryParameters.Add(cashfree_pg.Client.ClientUtils.ParameterToMultiMap("", "rate_type", rateType)); + 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 + } + + // 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.9"); + + // make the HTTP request + var localVarResponse = this.Client.Get("/easy-split/amount/{amount}/charges", localVarRequestOptions, config); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("PGESGetVendorBalanceTransferCharges", localVarResponse); + if (_exception != null) { + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } + throw _exception; + } + } + + return localVarResponse; + } + /// + /// Get Vendor All Documents Status Use this API to fetch the details of all the KYC details of a particular vendor. + /// + /// Thrown when fails to make API call + /// API version to be used. Format is in YYYY-MM-DD + /// The id which uniquely identifies your vendor. + /// 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 VendorDocumentsResponse + public cashfree_pg.Client.ApiResponse PGESGetVendorsDocs(string xApiVersion, string vendorId, 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.9"; + 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 EasySplitApi->PGESGetVendorsDocs"); + + // verify the required parameter 'vendorId' is set + if (vendorId == null) + throw new cashfree_pg.Client.ApiException(400, "Missing required parameter 'vendorId' when calling EasySplitApi->PGESGetVendorsDocs"); + + cashfree_pg.Client.RequestOptions localVarRequestOptions = new cashfree_pg.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // 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("vendor_id", cashfree_pg.Client.ClientUtils.ParameterToString(vendorId)); // 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 + } + + // 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.9"); + + // make the HTTP request + var localVarResponse = this.Client.Get("/easy-split/vendor-docs/{vendor_id}", localVarRequestOptions, config); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("PGESGetVendorsDocs", localVarResponse); + if (_exception != null) { + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } + throw _exception; + } + } + + return localVarResponse; + } + /// + /// Get Split and Settlement Details by OrderID v2.0 Use this API to get all the split details, settled and unsettled transactions details of each vendor who were part of a particular order by providing order Id or start date and end date. + /// + /// Thrown when fails to make API call + /// API version to be used. Format is in YYYY-MM-DD + /// 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) + /// Get Split and Settlement Details by OrderID v2.0 (optional) + /// ApiResponse of ESOrderReconResponse + public cashfree_pg.Client.ApiResponse PGESOrderRecon(string xApiVersion, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), ESOrderReconRequest? eSOrderReconRequest = default(ESOrderReconRequest?), 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.9"; + 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 EasySplitApi->PGESOrderRecon"); + + 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 = eSOrderReconRequest; + + // 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.9"); + + // make the HTTP request + var localVarResponse = this.Client.Post("/split/order/vendor/recon", localVarRequestOptions, config); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("PGESOrderRecon", localVarResponse); + if (_exception != null) { + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } + throw _exception; + } + } + + return localVarResponse; + } + /// + /// Update vendor Details Use this API to edit the existing vendor details added to your EasySplit account. You can edit vendor details such as name, email, phone number, upi details, and any of the KYC details. + /// + /// Thrown when fails to make API call + /// API version to be used. Format is in YYYY-MM-DD + /// The id which uniquely identifies your vendor. + /// 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) + /// Create Vendor Request Body. (optional) + /// ApiResponse of UpdateVendorResponse + public cashfree_pg.Client.ApiResponse PGESUpdateVendors(string xApiVersion, string vendorId, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), UpdateVendorRequest? updateVendorRequest = default(UpdateVendorRequest?), 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.9"; + 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 EasySplitApi->PGESUpdateVendors"); + + // verify the required parameter 'vendorId' is set + if (vendorId == null) + throw new cashfree_pg.Client.ApiException(400, "Missing required parameter 'vendorId' when calling EasySplitApi->PGESUpdateVendors"); + + 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("vendor_id", cashfree_pg.Client.ClientUtils.ParameterToString(vendorId)); // 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 = updateVendorRequest; + + // 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.9"); + + // make the HTTP request + var localVarResponse = this.Client.Patch("/easy-split/vendors/{vendor_id}", localVarRequestOptions, config); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("PGESUpdateVendors", localVarResponse); + if (_exception != null) { + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } + throw _exception; + } + } + + return localVarResponse; + } + /// + /// Split After Payment Split After Payment API splits the payments to vendors after successful payment from the customers. + /// + /// 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 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) + /// Request Body to Create Split for an order. (optional) + /// ApiResponse of SplitAfterPaymentResponse + public cashfree_pg.Client.ApiResponse PGOrderSplitAfterPayment(string xApiVersion, string orderId, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), SplitAfterPaymentRequest? splitAfterPaymentRequest = default(SplitAfterPaymentRequest?), 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.9"; + 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 EasySplitApi->PGOrderSplitAfterPayment"); + + // verify the required parameter 'orderId' is set + if (orderId == null) + throw new cashfree_pg.Client.ApiException(400, "Missing required parameter 'orderId' when calling EasySplitApi->PGOrderSplitAfterPayment"); + + 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 = splitAfterPaymentRequest; + + // 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.9"); + + // make the HTTP request + var localVarResponse = this.Client.Post("/easy-split/orders/{order_id}/split", localVarRequestOptions, config); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("PGOrderSplitAfterPayment", localVarResponse); + if (_exception != null) { + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } + throw _exception; + } + } + + return localVarResponse; + } + /// + /// Create Static Split Configuration This API will create a static split scheme wherein you can define the split type and the vendor-wise split percentage. + /// + /// Thrown when fails to make API call + /// API version to be used. Format is in YYYY-MM-DD + /// 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) + /// Static Split (optional) + /// ApiResponse of StaticSplitResponse + public cashfree_pg.Client.ApiResponse PGOrderStaticSplit(string xApiVersion, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), StaticSplitRequest? staticSplitRequest = default(StaticSplitRequest?), 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.9"; + 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 EasySplitApi->PGOrderStaticSplit"); + + 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 = staticSplitRequest; + + // 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.9"); + + // make the HTTP request + var localVarResponse = this.Client.Post("/easy-split/static-split", localVarRequestOptions, config); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("PGOrderStaticSplit", 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. /// /// Thrown when fails to make API call @@ -294,7 +1798,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.0.7"; + o.Release = "4.0.9"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -383,7 +1887,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.7"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.9"); // make the HTTP request var localVarResponse = this.Client.Post>("/eligibility/cardlessemi", localVarRequestOptions, config); @@ -431,7 +1935,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.0.7"; + o.Release = "4.0.9"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -520,7 +2024,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.7"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.9"); // make the HTTP request var localVarResponse = this.Client.Post>("/eligibility/offers", localVarRequestOptions, config); @@ -568,7 +2072,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.0.7"; + o.Release = "4.0.9"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -657,7 +2161,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.7"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.9"); // make the HTTP request var localVarResponse = this.Client.Post>("/eligibility/paylater", localVarRequestOptions, config); @@ -705,7 +2209,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.0.7"; + o.Release = "4.0.9"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -794,7 +2298,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.7"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.9"); // make the HTTP request var localVarResponse = this.Client.Post>("/eligibility/payment_methods", localVarRequestOptions, config); @@ -842,7 +2346,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.0.7"; + o.Release = "4.0.9"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -931,7 +2435,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.7"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.9"); // make the HTTP request var localVarResponse = this.Client.Post("/offers", localVarRequestOptions, config); @@ -979,7 +2483,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.0.7"; + o.Release = "4.0.9"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -1067,7 +2571,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.7"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.9"); // make the HTTP request var localVarResponse = this.Client.Get("/offers/{offer_id}", localVarRequestOptions, config); @@ -1115,7 +2619,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.0.7"; + o.Release = "4.0.9"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -1204,7 +2708,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.7"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.9"); // make the HTTP request var localVarResponse = this.Client.Post("/orders", localVarRequestOptions, config); @@ -1252,7 +2756,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.0.7"; + o.Release = "4.0.9"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -1340,7 +2844,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.7"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.9"); // make the HTTP request var localVarResponse = this.Client.Get("/orders/{order_id}", localVarRequestOptions, config); @@ -1389,7 +2893,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.0.7"; + o.Release = "4.0.9"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -1483,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.7"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.9"); // make the HTTP request var localVarResponse = this.Client.Patch("/orders/{order_id}", localVarRequestOptions, config); @@ -1533,7 +3037,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.0.7"; + o.Release = "4.0.9"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -1630,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.7"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.9"); // make the HTTP request var localVarResponse = this.Client.Post("/recon", localVarRequestOptions, config); @@ -1678,7 +3182,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.0.7"; + o.Release = "4.0.9"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -1766,7 +3270,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.7"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.9"); // make the HTTP request var localVarResponse = this.Client.Post("/links/{link_id}/cancel", localVarRequestOptions, config); @@ -1814,7 +3318,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.0.7"; + o.Release = "4.0.9"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -1903,7 +3407,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.7"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.9"); // make the HTTP request var localVarResponse = this.Client.Post("/links", localVarRequestOptions, config); @@ -1951,7 +3455,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.0.7"; + o.Release = "4.0.9"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -2039,7 +3543,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.7"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.9"); // make the HTTP request var localVarResponse = this.Client.Get("/links/{link_id}", localVarRequestOptions, config); @@ -2087,7 +3591,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.0.7"; + o.Release = "4.0.9"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -2175,7 +3679,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.7"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.9"); // make the HTTP request var localVarResponse = this.Client.Get>("/links/{link_id}/orders", localVarRequestOptions, config); @@ -2224,7 +3728,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.0.7"; + o.Release = "4.0.9"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -2318,7 +3822,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.7"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.9"); // make the HTTP request var localVarResponse = this.Client.Post("/orders/{order_id}/authorization", localVarRequestOptions, config); @@ -2367,7 +3871,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.0.7"; + o.Release = "4.0.9"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -2446,7 +3950,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.7"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.9"); // make the HTTP request var localVarResponse = this.Client.Post("/orders/pay/authenticate/{cf_payment_id}", localVarRequestOptions, config); @@ -2495,7 +3999,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.0.7"; + o.Release = "4.0.9"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -2588,7 +4092,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.7"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.9"); // make the HTTP request var localVarResponse = this.Client.Get("/orders/{order_id}/payments/{cf_payment_id}", localVarRequestOptions, config); @@ -2636,7 +4140,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.0.7"; + o.Release = "4.0.9"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -2724,7 +4228,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.7"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.9"); // make the HTTP request var localVarResponse = this.Client.Get>("/orders/{order_id}/payments", localVarRequestOptions, config); @@ -2772,7 +4276,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.0.7"; + o.Release = "4.0.9"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -2846,7 +4350,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.7"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.9"); // make the HTTP request var localVarResponse = this.Client.Post("/orders/sessions", localVarRequestOptions, config); @@ -2895,7 +4399,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.0.7"; + o.Release = "4.0.9"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -2989,7 +4493,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.7"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.9"); // make the HTTP request var localVarResponse = this.Client.Post("/orders/{order_id}/refunds", localVarRequestOptions, config); @@ -3038,7 +4542,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.0.7"; + o.Release = "4.0.9"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -3131,7 +4635,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.7"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.9"); // make the HTTP request var localVarResponse = this.Client.Get("/orders/{order_id}/refunds/{refund_id}", localVarRequestOptions, config); @@ -3179,7 +4683,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.0.7"; + o.Release = "4.0.9"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -3267,7 +4771,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.7"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.9"); // make the HTTP request var localVarResponse = this.Client.Get>("/orders/{order_id}/refunds", localVarRequestOptions, config); @@ -3317,7 +4821,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.0.7"; + o.Release = "4.0.9"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -3414,7 +4918,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.7"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.9"); // make the HTTP request var localVarResponse = this.Client.Post("/settlements", localVarRequestOptions, config); @@ -3464,7 +4968,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.0.7"; + o.Release = "4.0.9"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -3561,7 +5065,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.7"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.9"); // make the HTTP request var localVarResponse = this.Client.Post("/settlement/recon", localVarRequestOptions, config); @@ -3609,7 +5113,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.0.7"; + o.Release = "4.0.9"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -3697,7 +5201,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.7"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.9"); // make the HTTP request var localVarResponse = this.Client.Get("/orders/{order_id}/settlements", localVarRequestOptions, config); @@ -3745,7 +5249,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.0.7"; + o.Release = "4.0.9"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -3834,7 +5338,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.7"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.9"); // make the HTTP request var localVarResponse = this.Client.Post("/terminal", localVarRequestOptions, config); @@ -3882,7 +5386,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.0.7"; + o.Release = "4.0.9"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -3971,7 +5475,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.7"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.9"); // make the HTTP request var localVarResponse = this.Client.Post("/terminal/transactions", localVarRequestOptions, config); @@ -4019,7 +5523,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.0.7"; + o.Release = "4.0.9"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -4107,7 +5611,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.7"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.9"); // make the HTTP request var localVarResponse = this.Client.Get("/terminal/{terminal_phone_no}", localVarRequestOptions, config); @@ -4156,7 +5660,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.0.7"; + o.Release = "4.0.9"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -4249,7 +5753,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.7"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.9"); // make the HTTP request var localVarResponse = this.Client.Get>("/terminal/qrcodes", localVarRequestOptions, config); @@ -4269,6 +5773,148 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, return localVarResponse; } /// + /// Get Terminal Transaction Use this API to get terminal transaction. + /// + /// Thrown when fails to make API call + /// API version to be used. Format is in YYYY-MM-DD + /// Utr of the transaction. + /// Provide the Cashfree terminal ID for which the details have to be updated. + /// 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 TerminalPaymentEntity + public cashfree_pg.Client.ApiResponse SposFetchTerminalTransaction(string xApiVersion, string utr, string cfTerminalId, 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.9"; + 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 SoftPOSApi->SposFetchTerminalTransaction"); + + // verify the required parameter 'utr' is set + if (utr == null) + throw new cashfree_pg.Client.ApiException(400, "Missing required parameter 'utr' when calling SoftPOSApi->SposFetchTerminalTransaction"); + + // verify the required parameter 'cfTerminalId' is set + if (cfTerminalId == null) + throw new cashfree_pg.Client.ApiException(400, "Missing required parameter 'cfTerminalId' when calling SoftPOSApi->SposFetchTerminalTransaction"); + + cashfree_pg.Client.RequestOptions localVarRequestOptions = new cashfree_pg.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // 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("cf_terminal_id", cashfree_pg.Client.ClientUtils.ParameterToString(cfTerminalId)); // path parameter + localVarRequestOptions.QueryParameters.Add(cashfree_pg.Client.ClientUtils.ParameterToMultiMap("", "utr", utr)); + 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 + } + + // 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.9"); + + // make the HTTP request + var localVarResponse = this.Client.Get("/terminal/{cf_terminal_id}/payments", localVarRequestOptions, config); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("SposFetchTerminalTransaction", localVarResponse); + if (_exception != null) { + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } + throw _exception; + } + } + + return localVarResponse; + } + /// /// Update Terminal Use this API to update the terminal details. Email, Phone Number, and Terminal Meta are updatable for \"Storefront\". Only account status change is possible in case of \"Agent\". /// /// Thrown when fails to make API call @@ -4298,7 +5944,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.0.7"; + o.Release = "4.0.9"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -4392,7 +6038,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.7"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.9"); // make the HTTP request var localVarResponse = this.Client.Patch>("/terminal/{cf_terminal_id}", localVarRequestOptions, config); @@ -4412,7 +6058,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, return localVarResponse; } /// - /// Update Terminal Sttus Use this API to update the terminal status. + /// Update Terminal Status Use this API to update the terminal status. /// /// Thrown when fails to make API call /// API version to be used. Format is in YYYY-MM-DD @@ -4441,7 +6087,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.0.7"; + o.Release = "4.0.9"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -4535,7 +6181,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.7"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.9"); // make the HTTP request var localVarResponse = this.Client.Patch>("/terminal/{cf_terminal_id}/status", localVarRequestOptions, config); @@ -4584,7 +6230,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.0.7"; + o.Release = "4.0.9"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -4678,7 +6324,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.7"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.9"); // make the HTTP request var localVarResponse = this.Client.Post>("/terminal/{cf_terminal_id}/docs", localVarRequestOptions, config); @@ -4727,7 +6373,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.0.7"; + o.Release = "4.0.9"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -4820,7 +6466,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.7"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.9"); // make the HTTP request var localVarResponse = this.Client.Delete("/customers/{customer_id}/instruments/{instrument_id}", localVarRequestOptions, config); @@ -4869,7 +6515,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.0.7"; + o.Release = "4.0.9"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -4962,7 +6608,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.7"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.9"); // make the HTTP request var localVarResponse = this.Client.Get("/customers/{customer_id}/instruments/{instrument_id}", localVarRequestOptions, config); @@ -5011,7 +6657,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.0.7"; + o.Release = "4.0.9"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -5104,7 +6750,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.7"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.9"); // make the HTTP request var localVarResponse = this.Client.Get>("/customers/{customer_id}/instruments", localVarRequestOptions, config); @@ -5153,7 +6799,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.0.7"; + o.Release = "4.0.9"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -5246,7 +6892,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.7"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.9"); // 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/Configuration.cs b/src/cashfree_pg/Client/Configuration.cs index 5e194df..aa926cc 100644 --- a/src/cashfree_pg/Client/Configuration.cs +++ b/src/cashfree_pg/Client/Configuration.cs @@ -34,7 +34,7 @@ public class Configuration : IReadableConfiguration /// Version of the package. /// /// Version of the package. - public const string Version = "4.0.7"; + public const string Version = "4.0.9"; /// /// 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.7/csharp"); + UserAgent = WebUtility.UrlEncode("OpenAPI-Generator/4.0.9/csharp"); BasePath = "https://sandbox.cashfree.com/pg"; DefaultHeaders = new ConcurrentDictionary(); ApiKey = new ConcurrentDictionary(); @@ -542,7 +542,7 @@ public static string ToDebugReport() 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.7\n"; + report += " SDK Package Version: 4.0.9\n"; return report; } diff --git a/src/cashfree_pg/Model/AdjustVendorBalanceRequest.cs b/src/cashfree_pg/Model/AdjustVendorBalanceRequest.cs new file mode 100644 index 0000000..2975156 --- /dev/null +++ b/src/cashfree_pg/Model/AdjustVendorBalanceRequest.cs @@ -0,0 +1,225 @@ +/* + * 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: 2023-08-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 +{ + /// + /// Adjust Vendor Balance Request + /// + [DataContract(Name = "AdjustVendorBalanceRequest")] + public class AdjustVendorBalanceRequest : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected AdjustVendorBalanceRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// Mention to whom you want to transfer the on demand balance. Possible values - MERCHANT, VENDOR. (required). + /// Mention the type of transfer. Possible values: ON_DEMAND. (required). + /// Mention the on demand transfer amount. (required). + /// Mention remarks if any for the on demand transfer.. + /// Provide additional data fields using tags.. + public AdjustVendorBalanceRequest(string transferFrom = default(string), string transferType = default(string), decimal transferAmount = default(decimal), string remark = default(string), Object tags = default(Object)) + { + // to ensure "transferFrom" is required (not null) + if (transferFrom == null) + { + throw new ArgumentNullException("transferFrom is a required property for AdjustVendorBalanceRequest and cannot be null"); + } + this.transfer_from = transferFrom; + // to ensure "transferType" is required (not null) + if (transferType == null) + { + throw new ArgumentNullException("transferType is a required property for AdjustVendorBalanceRequest and cannot be null"); + } + this.transfer_type = transferType; + this.transfer_amount = transferAmount; + this.remark = remark; + this.tags = tags; + } + + /// + /// Mention to whom you want to transfer the on demand balance. Possible values - MERCHANT, VENDOR. + /// + /// Mention to whom you want to transfer the on demand balance. Possible values - MERCHANT, VENDOR. + [DataMember(Name = "transfer_from", IsRequired = true, EmitDefaultValue = true)] + public string transfer_from { get; set; } + + /// + /// Mention the type of transfer. Possible values: ON_DEMAND. + /// + /// Mention the type of transfer. Possible values: ON_DEMAND. + [DataMember(Name = "transfer_type", IsRequired = true, EmitDefaultValue = true)] + public string transfer_type { get; set; } + + /// + /// Mention the on demand transfer amount. + /// + /// Mention the on demand transfer amount. + [DataMember(Name = "transfer_amount", IsRequired = true, EmitDefaultValue = true)] + public decimal transfer_amount { get; set; } + + /// + /// Mention remarks if any for the on demand transfer. + /// + /// Mention remarks if any for the on demand transfer. + [DataMember(Name = "remark", EmitDefaultValue = false)] + public string remark { get; set; } + + /// + /// Provide additional data fields using tags. + /// + /// Provide additional data fields using tags. + [DataMember(Name = "tags", EmitDefaultValue = false)] + public Object tags { 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 AdjustVendorBalanceRequest {\n"); + sb.Append(" transfer_from: ").Append(transfer_from).Append("\n"); + sb.Append(" transfer_type: ").Append(transfer_type).Append("\n"); + sb.Append(" transfer_amount: ").Append(transfer_amount).Append("\n"); + sb.Append(" remark: ").Append(remark).Append("\n"); + sb.Append(" tags: ").Append(tags).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 AdjustVendorBalanceRequest); + } + + /// + /// Returns true if AdjustVendorBalanceRequest instances are equal + /// + /// Instance of AdjustVendorBalanceRequest to be compared + /// Boolean + public bool Equals(AdjustVendorBalanceRequest input) + { + if (input == null) + { + return false; + } + return + ( + this.transfer_from == input.transfer_from || + (this.transfer_from != null && + this.transfer_from.Equals(input.transfer_from)) + ) && + ( + this.transfer_type == input.transfer_type || + (this.transfer_type != null && + this.transfer_type.Equals(input.transfer_type)) + ) && + ( + this.transfer_amount == input.transfer_amount || + this.transfer_amount.Equals(input.transfer_amount) + ) && + ( + this.remark == input.remark || + (this.remark != null && + this.remark.Equals(input.remark)) + ) && + ( + this.tags == input.tags || + (this.tags != null && + this.tags.Equals(input.tags)) + ); + } + + public static Boolean checkPresenceOfKey(string jsonStringtransfer_from) { + dynamic deserializedJsonString = JsonConvert.DeserializeObject(jsonStringtransfer_from); + if (deserializedJsonString.ContainsKey("transfer_from")) { + return true; + } + return false; + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.transfer_from != null) + { + hashCode = (hashCode * 59) + this.transfer_from.GetHashCode(); + } + if (this.transfer_type != null) + { + hashCode = (hashCode * 59) + this.transfer_type.GetHashCode(); + } + hashCode = (hashCode * 59) + this.transfer_amount.GetHashCode(); + if (this.remark != null) + { + hashCode = (hashCode * 59) + this.remark.GetHashCode(); + } + if (this.tags != null) + { + hashCode = (hashCode * 59) + this.tags.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/AdjustVendorBalanceResponse.cs b/src/cashfree_pg/Model/AdjustVendorBalanceResponse.cs new file mode 100644 index 0000000..c91d9a5 --- /dev/null +++ b/src/cashfree_pg/Model/AdjustVendorBalanceResponse.cs @@ -0,0 +1,187 @@ +/* + * 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: 2023-08-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 +{ + /// + /// Adjust Vendor Balance Response + /// + [DataContract(Name = "AdjustVendorBalanceResponse")] + public class AdjustVendorBalanceResponse : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// settlementId. + /// transferDetails. + /// balances. + /// charges. + public AdjustVendorBalanceResponse(decimal settlementId = default(decimal), TransferDetails transferDetails = default(TransferDetails), BalanceDetails balances = default(BalanceDetails), ChargesDetails charges = default(ChargesDetails)) + { + this.settlement_id = settlementId; + this.transfer_details = transferDetails; + this.balances = balances; + this.charges = charges; + } + + /// + /// Gets or Sets settlement_id + /// + [DataMember(Name = "settlement_id", EmitDefaultValue = false)] + public decimal settlement_id { get; set; } + + /// + /// Gets or Sets transfer_details + /// + [DataMember(Name = "transfer_details", EmitDefaultValue = false)] + public TransferDetails transfer_details { get; set; } + + /// + /// Gets or Sets balances + /// + [DataMember(Name = "balances", EmitDefaultValue = false)] + public BalanceDetails balances { get; set; } + + /// + /// Gets or Sets charges + /// + [DataMember(Name = "charges", EmitDefaultValue = false)] + public ChargesDetails charges { 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 AdjustVendorBalanceResponse {\n"); + sb.Append(" settlement_id: ").Append(settlement_id).Append("\n"); + sb.Append(" transfer_details: ").Append(transfer_details).Append("\n"); + sb.Append(" balances: ").Append(balances).Append("\n"); + sb.Append(" charges: ").Append(charges).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 AdjustVendorBalanceResponse); + } + + /// + /// Returns true if AdjustVendorBalanceResponse instances are equal + /// + /// Instance of AdjustVendorBalanceResponse to be compared + /// Boolean + public bool Equals(AdjustVendorBalanceResponse input) + { + if (input == null) + { + return false; + } + return + ( + this.settlement_id == input.settlement_id || + this.settlement_id.Equals(input.settlement_id) + ) && + ( + this.transfer_details == input.transfer_details || + (this.transfer_details != null && + this.transfer_details.Equals(input.transfer_details)) + ) && + ( + this.balances == input.balances || + (this.balances != null && + this.balances.Equals(input.balances)) + ) && + ( + this.charges == input.charges || + (this.charges != null && + this.charges.Equals(input.charges)) + ); + } + + public static Boolean checkPresenceOfKey(string jsonStringsettlement_id) { + dynamic deserializedJsonString = JsonConvert.DeserializeObject(jsonStringsettlement_id); + if (deserializedJsonString.ContainsKey("settlement_id")) { + return true; + } + return false; + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.settlement_id.GetHashCode(); + if (this.transfer_details != null) + { + hashCode = (hashCode * 59) + this.transfer_details.GetHashCode(); + } + if (this.balances != null) + { + hashCode = (hashCode * 59) + this.balances.GetHashCode(); + } + if (this.charges != null) + { + hashCode = (hashCode * 59) + this.charges.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/BalanceDetails.cs b/src/cashfree_pg/Model/BalanceDetails.cs new file mode 100644 index 0000000..0e34ed1 --- /dev/null +++ b/src/cashfree_pg/Model/BalanceDetails.cs @@ -0,0 +1,179 @@ +/* + * 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: 2023-08-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 +{ + /// + /// BalanceDetails + /// + [DataContract(Name = "BalanceDetails")] + public class BalanceDetails : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// merchantId. + /// vendorId. + /// merchantUnsettled. + /// vendorUnsettled. + public BalanceDetails(decimal merchantId = default(decimal), string vendorId = default(string), decimal merchantUnsettled = default(decimal), decimal vendorUnsettled = default(decimal)) + { + this.merchant_id = merchantId; + this.vendor_id = vendorId; + this.merchant_unsettled = merchantUnsettled; + this.vendor_unsettled = vendorUnsettled; + } + + /// + /// Gets or Sets merchant_id + /// + [DataMember(Name = "merchant_id", EmitDefaultValue = false)] + public decimal merchant_id { get; set; } + + /// + /// Gets or Sets vendor_id + /// + [DataMember(Name = "vendor_id", EmitDefaultValue = false)] + public string vendor_id { get; set; } + + /// + /// Gets or Sets merchant_unsettled + /// + [DataMember(Name = "merchant_unsettled", EmitDefaultValue = false)] + public decimal merchant_unsettled { get; set; } + + /// + /// Gets or Sets vendor_unsettled + /// + [DataMember(Name = "vendor_unsettled", EmitDefaultValue = false)] + public decimal vendor_unsettled { 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 BalanceDetails {\n"); + sb.Append(" merchant_id: ").Append(merchant_id).Append("\n"); + sb.Append(" vendor_id: ").Append(vendor_id).Append("\n"); + sb.Append(" merchant_unsettled: ").Append(merchant_unsettled).Append("\n"); + sb.Append(" vendor_unsettled: ").Append(vendor_unsettled).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 BalanceDetails); + } + + /// + /// Returns true if BalanceDetails instances are equal + /// + /// Instance of BalanceDetails to be compared + /// Boolean + public bool Equals(BalanceDetails input) + { + if (input == null) + { + return false; + } + return + ( + this.merchant_id == input.merchant_id || + this.merchant_id.Equals(input.merchant_id) + ) && + ( + this.vendor_id == input.vendor_id || + (this.vendor_id != null && + this.vendor_id.Equals(input.vendor_id)) + ) && + ( + this.merchant_unsettled == input.merchant_unsettled || + this.merchant_unsettled.Equals(input.merchant_unsettled) + ) && + ( + this.vendor_unsettled == input.vendor_unsettled || + this.vendor_unsettled.Equals(input.vendor_unsettled) + ); + } + + public static Boolean checkPresenceOfKey(string jsonStringmerchant_id) { + dynamic deserializedJsonString = JsonConvert.DeserializeObject(jsonStringmerchant_id); + if (deserializedJsonString.ContainsKey("merchant_id")) { + return true; + } + return false; + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.merchant_id.GetHashCode(); + if (this.vendor_id != null) + { + hashCode = (hashCode * 59) + this.vendor_id.GetHashCode(); + } + hashCode = (hashCode * 59) + this.merchant_unsettled.GetHashCode(); + hashCode = (hashCode * 59) + this.vendor_unsettled.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/BankDetails.cs b/src/cashfree_pg/Model/BankDetails.cs new file mode 100644 index 0000000..1766ffa --- /dev/null +++ b/src/cashfree_pg/Model/BankDetails.cs @@ -0,0 +1,173 @@ +/* + * 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: 2023-08-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 +{ + /// + /// BankDetails + /// + [DataContract(Name = "BankDetails")] + public class BankDetails : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// accountNumber. + /// accountHolder. + /// ifsc. + public BankDetails(string accountNumber = default(string), string accountHolder = default(string), string ifsc = default(string)) + { + this.account_number = accountNumber; + this.account_holder = accountHolder; + this.ifsc = ifsc; + } + + /// + /// Gets or Sets account_number + /// + [DataMember(Name = "account_number", EmitDefaultValue = false)] + public string account_number { get; set; } + + /// + /// Gets or Sets account_holder + /// + [DataMember(Name = "account_holder", EmitDefaultValue = false)] + public string account_holder { get; set; } + + /// + /// Gets or Sets ifsc + /// + [DataMember(Name = "ifsc", EmitDefaultValue = false)] + public string ifsc { 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 BankDetails {\n"); + sb.Append(" account_number: ").Append(account_number).Append("\n"); + sb.Append(" account_holder: ").Append(account_holder).Append("\n"); + sb.Append(" ifsc: ").Append(ifsc).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 BankDetails); + } + + /// + /// Returns true if BankDetails instances are equal + /// + /// Instance of BankDetails to be compared + /// Boolean + public bool Equals(BankDetails input) + { + if (input == null) + { + return false; + } + return + ( + this.account_number == input.account_number || + (this.account_number != null && + this.account_number.Equals(input.account_number)) + ) && + ( + this.account_holder == input.account_holder || + (this.account_holder != null && + this.account_holder.Equals(input.account_holder)) + ) && + ( + this.ifsc == input.ifsc || + (this.ifsc != null && + this.ifsc.Equals(input.ifsc)) + ); + } + + public static Boolean checkPresenceOfKey(string jsonStringaccount_number) { + dynamic deserializedJsonString = JsonConvert.DeserializeObject(jsonStringaccount_number); + if (deserializedJsonString.ContainsKey("account_number")) { + return true; + } + return false; + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.account_number != null) + { + hashCode = (hashCode * 59) + this.account_number.GetHashCode(); + } + if (this.account_holder != null) + { + hashCode = (hashCode * 59) + this.account_holder.GetHashCode(); + } + if (this.ifsc != null) + { + hashCode = (hashCode * 59) + this.ifsc.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/Banktransfer.cs b/src/cashfree_pg/Model/Banktransfer.cs new file mode 100644 index 0000000..7175746 --- /dev/null +++ b/src/cashfree_pg/Model/Banktransfer.cs @@ -0,0 +1,138 @@ +/* + * 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: 2023-08-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 +{ + /// + /// Banktransfer payment method + /// + [DataContract(Name = "Banktransfer")] + public class Banktransfer : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The channel for cardless EMI is always `link`. + public Banktransfer(string channel = default(string)) + { + this.channel = channel; + } + + /// + /// The channel for cardless EMI is always `link` + /// + /// The channel for cardless EMI is always `link` + [DataMember(Name = "channel", EmitDefaultValue = false)] + public string channel { 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 Banktransfer {\n"); + sb.Append(" channel: ").Append(channel).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 Banktransfer); + } + + /// + /// Returns true if Banktransfer instances are equal + /// + /// Instance of Banktransfer to be compared + /// Boolean + public bool Equals(Banktransfer input) + { + if (input == null) + { + return false; + } + return + ( + this.channel == input.channel || + (this.channel != null && + this.channel.Equals(input.channel)) + ); + } + + public static Boolean checkPresenceOfKey(string jsonStringchannel) { + dynamic deserializedJsonString = JsonConvert.DeserializeObject(jsonStringchannel); + if (deserializedJsonString.ContainsKey("channel")) { + return true; + } + return false; + } + + /// + /// 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(); + } + 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/BanktransferPaymentMethod.cs b/src/cashfree_pg/Model/BanktransferPaymentMethod.cs new file mode 100644 index 0000000..93a8db4 --- /dev/null +++ b/src/cashfree_pg/Model/BanktransferPaymentMethod.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: 2023-08-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 +{ + /// + /// banktransfer payment method + /// + [DataContract(Name = "BanktransferPaymentMethod")] + public class BanktransferPaymentMethod : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected BanktransferPaymentMethod() { } + /// + /// Initializes a new instance of the class. + /// + /// banktransfer (required). + public BanktransferPaymentMethod(Banktransfer banktransfer = default(Banktransfer)) + { + // to ensure "banktransfer" is required (not null) + if (banktransfer == null) + { + throw new ArgumentNullException("banktransfer is a required property for BanktransferPaymentMethod and cannot be null"); + } + this.banktransfer = banktransfer; + } + + /// + /// Gets or Sets banktransfer + /// + [DataMember(Name = "banktransfer", IsRequired = true, EmitDefaultValue = true)] + public Banktransfer banktransfer { 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 BanktransferPaymentMethod {\n"); + sb.Append(" banktransfer: ").Append(banktransfer).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 BanktransferPaymentMethod); + } + + /// + /// Returns true if BanktransferPaymentMethod instances are equal + /// + /// Instance of BanktransferPaymentMethod to be compared + /// Boolean + public bool Equals(BanktransferPaymentMethod input) + { + if (input == null) + { + return false; + } + return + ( + this.banktransfer == input.banktransfer || + (this.banktransfer != null && + this.banktransfer.Equals(input.banktransfer)) + ); + } + + public static Boolean checkPresenceOfKey(string jsonStringbanktransfer) { + dynamic deserializedJsonString = JsonConvert.DeserializeObject(jsonStringbanktransfer); + if (deserializedJsonString.ContainsKey("banktransfer")) { + return true; + } + return false; + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.banktransfer != null) + { + hashCode = (hashCode * 59) + this.banktransfer.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/Card.cs b/src/cashfree_pg/Model/Card.cs index 47af52f..cb72db1 100644 --- a/src/cashfree_pg/Model/Card.cs +++ b/src/cashfree_pg/Model/Card.cs @@ -152,12 +152,13 @@ protected Card() { } /// instrument id of saved card. Required only to make payment using saved instrument.. /// cryptogram received from card network. Required only for tokenized card transactions.. /// TRID issued by card networks. Required only for tokenized card transactions.. + /// Token Reference Id provided by Diners for Guest Checkout Token. Required only for Diners cards. . /// tokenType. /// last 4 digits of original card number. Required only for tokenized card transactions.. /// Card alias as returned by Cashfree Vault API.. /// One of [\"Kotak\", \"ICICI\", \"RBL\", \"BOB\", \"Standard Chartered\"]. Card bank name, required for EMI payments. This is the bank user has selected for EMI. /// EMI tenure selected by the user. - public Card(ChannelEnum channel = default(ChannelEnum), string cardNumber = default(string), string cardHolderName = default(string), string cardExpiryMm = default(string), string cardExpiryYy = default(string), string cardCvv = default(string), string instrumentId = default(string), string cryptogram = default(string), string tokenRequestorId = default(string), TokenTypeEnum? tokenType = default(TokenTypeEnum?), string cardDisplay = default(string), string cardAlias = default(string), CardBankNameEnum? cardBankName = default(CardBankNameEnum?), int emiTenure = default(int)) + public Card(ChannelEnum channel = default(ChannelEnum), string cardNumber = default(string), string cardHolderName = default(string), string cardExpiryMm = default(string), string cardExpiryYy = default(string), string cardCvv = default(string), string instrumentId = default(string), string cryptogram = default(string), string tokenRequestorId = default(string), string tokenReferenceId = default(string), TokenTypeEnum? tokenType = default(TokenTypeEnum?), string cardDisplay = default(string), string cardAlias = default(string), CardBankNameEnum? cardBankName = default(CardBankNameEnum?), int emiTenure = default(int)) { this.channel = channel; this.card_number = cardNumber; @@ -168,6 +169,7 @@ protected Card() { } this.instrument_id = instrumentId; this.cryptogram = cryptogram; this.token_requestor_id = tokenRequestorId; + this.token_reference_id = tokenReferenceId; this.token_type = tokenType; this.card_display = cardDisplay; this.card_alias = cardAlias; @@ -231,6 +233,13 @@ protected Card() { } [DataMember(Name = "token_requestor_id", EmitDefaultValue = false)] public string token_requestor_id { get; set; } + /// + /// Token Reference Id provided by Diners for Guest Checkout Token. Required only for Diners cards. + /// + /// Token Reference Id provided by Diners for Guest Checkout Token. Required only for Diners cards. + [DataMember(Name = "token_reference_id", EmitDefaultValue = false)] + public string token_reference_id { get; set; } + /// /// last 4 digits of original card number. Required only for tokenized card transactions. /// @@ -269,6 +278,7 @@ public override string ToString() sb.Append(" instrument_id: ").Append(instrument_id).Append("\n"); sb.Append(" cryptogram: ").Append(cryptogram).Append("\n"); sb.Append(" token_requestor_id: ").Append(token_requestor_id).Append("\n"); + sb.Append(" token_reference_id: ").Append(token_reference_id).Append("\n"); sb.Append(" token_type: ").Append(token_type).Append("\n"); sb.Append(" card_display: ").Append(card_display).Append("\n"); sb.Append(" card_alias: ").Append(card_alias).Append("\n"); @@ -353,6 +363,11 @@ public bool Equals(Card input) (this.token_requestor_id != null && this.token_requestor_id.Equals(input.token_requestor_id)) ) && + ( + this.token_reference_id == input.token_reference_id || + (this.token_reference_id != null && + this.token_reference_id.Equals(input.token_reference_id)) + ) && ( this.token_type == input.token_type || this.token_type.Equals(input.token_type) @@ -420,6 +435,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.token_requestor_id.GetHashCode(); } + if (this.token_reference_id != null) + { + hashCode = (hashCode * 59) + this.token_reference_id.GetHashCode(); + } hashCode = (hashCode * 59) + this.token_type.GetHashCode(); if (this.card_display != null) { diff --git a/src/cashfree_pg/Model/ChargesDetails.cs b/src/cashfree_pg/Model/ChargesDetails.cs new file mode 100644 index 0000000..a6b478b --- /dev/null +++ b/src/cashfree_pg/Model/ChargesDetails.cs @@ -0,0 +1,193 @@ +/* + * 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: 2023-08-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 +{ + /// + /// ChargesDetails + /// + [DataContract(Name = "ChargesDetails")] + public class ChargesDetails : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// serviceCharges. + /// serviceTax. + /// amount. + /// billedTo. + /// isPostpaid. + public ChargesDetails(decimal serviceCharges = default(decimal), decimal serviceTax = default(decimal), decimal amount = default(decimal), string billedTo = default(string), bool isPostpaid = default(bool)) + { + this.service_charges = serviceCharges; + this.service_tax = serviceTax; + this.amount = amount; + this.billed_to = billedTo; + this.is_postpaid = isPostpaid; + } + + /// + /// Gets or Sets service_charges + /// + [DataMember(Name = "service_charges", EmitDefaultValue = false)] + public decimal service_charges { get; set; } + + /// + /// Gets or Sets service_tax + /// + [DataMember(Name = "service_tax", EmitDefaultValue = false)] + public decimal service_tax { get; set; } + + /// + /// Gets or Sets amount + /// + [DataMember(Name = "amount", EmitDefaultValue = false)] + public decimal amount { get; set; } + + /// + /// Gets or Sets billed_to + /// + [DataMember(Name = "billed_to", EmitDefaultValue = false)] + public string billed_to { get; set; } + + /// + /// Gets or Sets is_postpaid + /// + [DataMember(Name = "is_postpaid", EmitDefaultValue = true)] + public bool is_postpaid { 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 ChargesDetails {\n"); + sb.Append(" service_charges: ").Append(service_charges).Append("\n"); + sb.Append(" service_tax: ").Append(service_tax).Append("\n"); + sb.Append(" amount: ").Append(amount).Append("\n"); + sb.Append(" billed_to: ").Append(billed_to).Append("\n"); + sb.Append(" is_postpaid: ").Append(is_postpaid).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 ChargesDetails); + } + + /// + /// Returns true if ChargesDetails instances are equal + /// + /// Instance of ChargesDetails to be compared + /// Boolean + public bool Equals(ChargesDetails input) + { + if (input == null) + { + return false; + } + return + ( + this.service_charges == input.service_charges || + this.service_charges.Equals(input.service_charges) + ) && + ( + this.service_tax == input.service_tax || + this.service_tax.Equals(input.service_tax) + ) && + ( + this.amount == input.amount || + this.amount.Equals(input.amount) + ) && + ( + this.billed_to == input.billed_to || + (this.billed_to != null && + this.billed_to.Equals(input.billed_to)) + ) && + ( + this.is_postpaid == input.is_postpaid || + this.is_postpaid.Equals(input.is_postpaid) + ); + } + + public static Boolean checkPresenceOfKey(string jsonStringservice_charges) { + dynamic deserializedJsonString = JsonConvert.DeserializeObject(jsonStringservice_charges); + if (deserializedJsonString.ContainsKey("service_charges")) { + return true; + } + return false; + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.service_charges.GetHashCode(); + hashCode = (hashCode * 59) + this.service_tax.GetHashCode(); + hashCode = (hashCode * 59) + this.amount.GetHashCode(); + if (this.billed_to != null) + { + hashCode = (hashCode * 59) + this.billed_to.GetHashCode(); + } + hashCode = (hashCode * 59) + this.is_postpaid.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/CreateVendorRequest.cs b/src/cashfree_pg/Model/CreateVendorRequest.cs new file mode 100644 index 0000000..d2438b0 --- /dev/null +++ b/src/cashfree_pg/Model/CreateVendorRequest.cs @@ -0,0 +1,354 @@ +/* + * 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: 2023-08-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 +{ + /// + /// Create Vendor Request + /// + [DataContract(Name = "CreateVendorRequest")] + public class CreateVendorRequest : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CreateVendorRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// Specify the unique Vendor ID to identify the beneficiary. Alphanumeric and underscore (_) allowed. (required). + /// Specify the status of vendor that should be updated. Possible values: ACTIVE,BLOCKED, DELETED (required). + /// Specify the name of the vendor to be updated. Name should not have any special character except . / - & (required). + /// Specify the vendor email ID that should be updated. String in email ID format (Ex:johndoe_1@cashfree.com) should contain @ and dot (.) (required). + /// Specify the beneficiaries phone number to be updated. Phone number registered in India (only digits, 8 - 12 characters after excluding +91). (required). + /// Specify if the vendor bank account details should be verified. Possible values: true or false. + /// Update if the vendor will have dashboard access or not. Possible values are: true or false. + /// Specify the settlement cycle to be updated. View the settlement cycle details from the \"Settlement Cycles Supported\" table. If no schedule option is configured, the settlement cycle ID \"1\" will be in effect. Select \"8\" or \"9\" if you want to schedule instant vendor settlements.. + /// Specify the vendor bank account details to be updated.. + /// Updated beneficiary upi vpa. Alphanumeric, dot (.), hyphen (-), at sign (@), and underscore allowed (100 character limit). Note: underscore and dot (.) gets accepted before and after @, but hyphen (-) is only accepted before @ sign.. + /// Specify the kyc details that should be updated. (required). + public CreateVendorRequest(string vendorId = default(string), string status = default(string), string name = default(string), string email = default(string), string phone = default(string), bool verifyAccount = default(bool), bool dashboardAccess = default(bool), decimal scheduleOption = default(decimal), List bank = default(List), List upi = default(List), List kycDetails = default(List)) + { + // to ensure "vendorId" is required (not null) + if (vendorId == null) + { + throw new ArgumentNullException("vendorId is a required property for CreateVendorRequest and cannot be null"); + } + this.vendor_id = vendorId; + // to ensure "status" is required (not null) + if (status == null) + { + throw new ArgumentNullException("status is a required property for CreateVendorRequest and cannot be null"); + } + this.status = status; + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for CreateVendorRequest and cannot be null"); + } + this.name = name; + // to ensure "email" is required (not null) + if (email == null) + { + throw new ArgumentNullException("email is a required property for CreateVendorRequest and cannot be null"); + } + this.email = email; + // to ensure "phone" is required (not null) + if (phone == null) + { + throw new ArgumentNullException("phone is a required property for CreateVendorRequest and cannot be null"); + } + this.phone = phone; + // to ensure "kycDetails" is required (not null) + if (kycDetails == null) + { + throw new ArgumentNullException("kycDetails is a required property for CreateVendorRequest and cannot be null"); + } + this.kyc_details = kycDetails; + this.verify_account = verifyAccount; + this.dashboard_access = dashboardAccess; + this.schedule_option = scheduleOption; + this.bank = bank; + this.upi = upi; + } + + /// + /// Specify the unique Vendor ID to identify the beneficiary. Alphanumeric and underscore (_) allowed. + /// + /// Specify the unique Vendor ID to identify the beneficiary. Alphanumeric and underscore (_) allowed. + [DataMember(Name = "vendor_id", IsRequired = true, EmitDefaultValue = true)] + public string vendor_id { get; set; } + + /// + /// Specify the status of vendor that should be updated. Possible values: ACTIVE,BLOCKED, DELETED + /// + /// Specify the status of vendor that should be updated. Possible values: ACTIVE,BLOCKED, DELETED + [DataMember(Name = "status", IsRequired = true, EmitDefaultValue = true)] + public string status { get; set; } + + /// + /// Specify the name of the vendor to be updated. Name should not have any special character except . / - & + /// + /// Specify the name of the vendor to be updated. Name should not have any special character except . / - & + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string name { get; set; } + + /// + /// Specify the vendor email ID that should be updated. String in email ID format (Ex:johndoe_1@cashfree.com) should contain @ and dot (.) + /// + /// Specify the vendor email ID that should be updated. String in email ID format (Ex:johndoe_1@cashfree.com) should contain @ and dot (.) + [DataMember(Name = "email", IsRequired = true, EmitDefaultValue = true)] + public string email { get; set; } + + /// + /// Specify the beneficiaries phone number to be updated. Phone number registered in India (only digits, 8 - 12 characters after excluding +91). + /// + /// Specify the beneficiaries phone number to be updated. Phone number registered in India (only digits, 8 - 12 characters after excluding +91). + [DataMember(Name = "phone", IsRequired = true, EmitDefaultValue = true)] + public string phone { get; set; } + + /// + /// Specify if the vendor bank account details should be verified. Possible values: true or false + /// + /// Specify if the vendor bank account details should be verified. Possible values: true or false + [DataMember(Name = "verify_account", EmitDefaultValue = true)] + public bool verify_account { get; set; } + + /// + /// Update if the vendor will have dashboard access or not. Possible values are: true or false + /// + /// Update if the vendor will have dashboard access or not. Possible values are: true or false + [DataMember(Name = "dashboard_access", EmitDefaultValue = true)] + public bool dashboard_access { get; set; } + + /// + /// Specify the settlement cycle to be updated. View the settlement cycle details from the \"Settlement Cycles Supported\" table. If no schedule option is configured, the settlement cycle ID \"1\" will be in effect. Select \"8\" or \"9\" if you want to schedule instant vendor settlements. + /// + /// Specify the settlement cycle to be updated. View the settlement cycle details from the \"Settlement Cycles Supported\" table. If no schedule option is configured, the settlement cycle ID \"1\" will be in effect. Select \"8\" or \"9\" if you want to schedule instant vendor settlements. + [DataMember(Name = "schedule_option", EmitDefaultValue = false)] + public decimal schedule_option { get; set; } + + /// + /// Specify the vendor bank account details to be updated. + /// + /// Specify the vendor bank account details to be updated. + [DataMember(Name = "bank", EmitDefaultValue = false)] + public List bank { get; set; } + + /// + /// Updated beneficiary upi vpa. Alphanumeric, dot (.), hyphen (-), at sign (@), and underscore allowed (100 character limit). Note: underscore and dot (.) gets accepted before and after @, but hyphen (-) is only accepted before @ sign. + /// + /// Updated beneficiary upi vpa. Alphanumeric, dot (.), hyphen (-), at sign (@), and underscore allowed (100 character limit). Note: underscore and dot (.) gets accepted before and after @, but hyphen (-) is only accepted before @ sign. + [DataMember(Name = "upi", EmitDefaultValue = false)] + public List upi { get; set; } + + /// + /// Specify the kyc details that should be updated. + /// + /// Specify the kyc details that should be updated. + [DataMember(Name = "kyc_details", IsRequired = true, EmitDefaultValue = true)] + public List kyc_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 CreateVendorRequest {\n"); + sb.Append(" vendor_id: ").Append(vendor_id).Append("\n"); + sb.Append(" status: ").Append(status).Append("\n"); + sb.Append(" name: ").Append(name).Append("\n"); + sb.Append(" email: ").Append(email).Append("\n"); + sb.Append(" phone: ").Append(phone).Append("\n"); + sb.Append(" verify_account: ").Append(verify_account).Append("\n"); + sb.Append(" dashboard_access: ").Append(dashboard_access).Append("\n"); + sb.Append(" schedule_option: ").Append(schedule_option).Append("\n"); + sb.Append(" bank: ").Append(bank).Append("\n"); + sb.Append(" upi: ").Append(upi).Append("\n"); + sb.Append(" kyc_details: ").Append(kyc_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 CreateVendorRequest); + } + + /// + /// Returns true if CreateVendorRequest instances are equal + /// + /// Instance of CreateVendorRequest to be compared + /// Boolean + public bool Equals(CreateVendorRequest input) + { + if (input == null) + { + return false; + } + return + ( + this.vendor_id == input.vendor_id || + (this.vendor_id != null && + this.vendor_id.Equals(input.vendor_id)) + ) && + ( + this.status == input.status || + (this.status != null && + this.status.Equals(input.status)) + ) && + ( + this.name == input.name || + (this.name != null && + this.name.Equals(input.name)) + ) && + ( + this.email == input.email || + (this.email != null && + this.email.Equals(input.email)) + ) && + ( + this.phone == input.phone || + (this.phone != null && + this.phone.Equals(input.phone)) + ) && + ( + this.verify_account == input.verify_account || + this.verify_account.Equals(input.verify_account) + ) && + ( + this.dashboard_access == input.dashboard_access || + this.dashboard_access.Equals(input.dashboard_access) + ) && + ( + this.schedule_option == input.schedule_option || + this.schedule_option.Equals(input.schedule_option) + ) && + ( + this.bank == input.bank || + this.bank != null && + input.bank != null && + this.bank.SequenceEqual(input.bank) + ) && + ( + this.upi == input.upi || + this.upi != null && + input.upi != null && + this.upi.SequenceEqual(input.upi) + ) && + ( + this.kyc_details == input.kyc_details || + this.kyc_details != null && + input.kyc_details != null && + this.kyc_details.SequenceEqual(input.kyc_details) + ); + } + + public static Boolean checkPresenceOfKey(string jsonStringvendor_id) { + dynamic deserializedJsonString = JsonConvert.DeserializeObject(jsonStringvendor_id); + if (deserializedJsonString.ContainsKey("vendor_id")) { + return true; + } + return false; + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.vendor_id != null) + { + hashCode = (hashCode * 59) + this.vendor_id.GetHashCode(); + } + if (this.status != null) + { + hashCode = (hashCode * 59) + this.status.GetHashCode(); + } + if (this.name != null) + { + hashCode = (hashCode * 59) + this.name.GetHashCode(); + } + if (this.email != null) + { + hashCode = (hashCode * 59) + this.email.GetHashCode(); + } + if (this.phone != null) + { + hashCode = (hashCode * 59) + this.phone.GetHashCode(); + } + hashCode = (hashCode * 59) + this.verify_account.GetHashCode(); + hashCode = (hashCode * 59) + this.dashboard_access.GetHashCode(); + hashCode = (hashCode * 59) + this.schedule_option.GetHashCode(); + if (this.bank != null) + { + hashCode = (hashCode * 59) + this.bank.GetHashCode(); + } + if (this.upi != null) + { + hashCode = (hashCode * 59) + this.upi.GetHashCode(); + } + if (this.kyc_details != null) + { + hashCode = (hashCode * 59) + this.kyc_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/CreateVendorResponse.cs b/src/cashfree_pg/Model/CreateVendorResponse.cs new file mode 100644 index 0000000..4cc15cb --- /dev/null +++ b/src/cashfree_pg/Model/CreateVendorResponse.cs @@ -0,0 +1,312 @@ +/* + * 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: 2023-08-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 +{ + /// + /// Create Vendor Response + /// + [DataContract(Name = "CreateVendorResponse")] + public class CreateVendorResponse : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// email. + /// status. + /// bank. + /// upi. + /// phone. + /// name. + /// vendorId. + /// scheduleOption. + /// kycDetails. + /// dashboardAccess. + /// bankDetails. + public CreateVendorResponse(string email = default(string), string status = default(string), List bank = default(List), string upi = default(string), decimal phone = default(decimal), string name = default(string), string vendorId = default(string), List scheduleOption = default(List), List kycDetails = default(List), bool dashboardAccess = default(bool), string bankDetails = default(string)) + { + this.email = email; + this.status = status; + this.bank = bank; + this.upi = upi; + this.phone = phone; + this.name = name; + this.vendor_id = vendorId; + this.schedule_option = scheduleOption; + this.kyc_details = kycDetails; + this.dashboard_access = dashboardAccess; + this.bank_details = bankDetails; + } + + /// + /// Gets or Sets email + /// + [DataMember(Name = "email", EmitDefaultValue = false)] + public string email { get; set; } + + /// + /// Gets or Sets status + /// + [DataMember(Name = "status", EmitDefaultValue = false)] + public string status { get; set; } + + /// + /// Gets or Sets bank + /// + [DataMember(Name = "bank", EmitDefaultValue = false)] + public List bank { get; set; } + + /// + /// Gets or Sets upi + /// + [DataMember(Name = "upi", EmitDefaultValue = false)] + public string upi { get; set; } + + /// + /// Gets or Sets phone + /// + [DataMember(Name = "phone", EmitDefaultValue = false)] + public decimal phone { get; set; } + + /// + /// Gets or Sets name + /// + [DataMember(Name = "name", EmitDefaultValue = false)] + public string name { get; set; } + + /// + /// Gets or Sets vendor_id + /// + [DataMember(Name = "vendor_id", EmitDefaultValue = false)] + public string vendor_id { get; set; } + + /// + /// Gets or Sets schedule_option + /// + [DataMember(Name = "schedule_option", EmitDefaultValue = false)] + public List schedule_option { get; set; } + + /// + /// Gets or Sets kyc_details + /// + [DataMember(Name = "kyc_details", EmitDefaultValue = false)] + public List kyc_details { get; set; } + + /// + /// Gets or Sets dashboard_access + /// + [DataMember(Name = "dashboard_access", EmitDefaultValue = true)] + public bool dashboard_access { get; set; } + + /// + /// Gets or Sets bank_details + /// + [DataMember(Name = "bank_details", EmitDefaultValue = false)] + public string bank_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 CreateVendorResponse {\n"); + sb.Append(" email: ").Append(email).Append("\n"); + sb.Append(" status: ").Append(status).Append("\n"); + sb.Append(" bank: ").Append(bank).Append("\n"); + sb.Append(" upi: ").Append(upi).Append("\n"); + sb.Append(" phone: ").Append(phone).Append("\n"); + sb.Append(" name: ").Append(name).Append("\n"); + sb.Append(" vendor_id: ").Append(vendor_id).Append("\n"); + sb.Append(" schedule_option: ").Append(schedule_option).Append("\n"); + sb.Append(" kyc_details: ").Append(kyc_details).Append("\n"); + sb.Append(" dashboard_access: ").Append(dashboard_access).Append("\n"); + sb.Append(" bank_details: ").Append(bank_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 CreateVendorResponse); + } + + /// + /// Returns true if CreateVendorResponse instances are equal + /// + /// Instance of CreateVendorResponse to be compared + /// Boolean + public bool Equals(CreateVendorResponse input) + { + if (input == null) + { + return false; + } + return + ( + this.email == input.email || + (this.email != null && + this.email.Equals(input.email)) + ) && + ( + this.status == input.status || + (this.status != null && + this.status.Equals(input.status)) + ) && + ( + this.bank == input.bank || + this.bank != null && + input.bank != null && + this.bank.SequenceEqual(input.bank) + ) && + ( + this.upi == input.upi || + (this.upi != null && + this.upi.Equals(input.upi)) + ) && + ( + this.phone == input.phone || + this.phone.Equals(input.phone) + ) && + ( + this.name == input.name || + (this.name != null && + this.name.Equals(input.name)) + ) && + ( + this.vendor_id == input.vendor_id || + (this.vendor_id != null && + this.vendor_id.Equals(input.vendor_id)) + ) && + ( + this.schedule_option == input.schedule_option || + this.schedule_option != null && + input.schedule_option != null && + this.schedule_option.SequenceEqual(input.schedule_option) + ) && + ( + this.kyc_details == input.kyc_details || + this.kyc_details != null && + input.kyc_details != null && + this.kyc_details.SequenceEqual(input.kyc_details) + ) && + ( + this.dashboard_access == input.dashboard_access || + this.dashboard_access.Equals(input.dashboard_access) + ) && + ( + this.bank_details == input.bank_details || + (this.bank_details != null && + this.bank_details.Equals(input.bank_details)) + ); + } + + public static Boolean checkPresenceOfKey(string jsonStringemail) { + dynamic deserializedJsonString = JsonConvert.DeserializeObject(jsonStringemail); + if (deserializedJsonString.ContainsKey("email")) { + return true; + } + return false; + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.email != null) + { + hashCode = (hashCode * 59) + this.email.GetHashCode(); + } + if (this.status != null) + { + hashCode = (hashCode * 59) + this.status.GetHashCode(); + } + if (this.bank != null) + { + hashCode = (hashCode * 59) + this.bank.GetHashCode(); + } + if (this.upi != null) + { + hashCode = (hashCode * 59) + this.upi.GetHashCode(); + } + hashCode = (hashCode * 59) + this.phone.GetHashCode(); + if (this.name != null) + { + hashCode = (hashCode * 59) + this.name.GetHashCode(); + } + if (this.vendor_id != null) + { + hashCode = (hashCode * 59) + this.vendor_id.GetHashCode(); + } + if (this.schedule_option != null) + { + hashCode = (hashCode * 59) + this.schedule_option.GetHashCode(); + } + if (this.kyc_details != null) + { + hashCode = (hashCode * 59) + this.kyc_details.GetHashCode(); + } + hashCode = (hashCode * 59) + this.dashboard_access.GetHashCode(); + if (this.bank_details != null) + { + hashCode = (hashCode * 59) + this.bank_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/ESOrderReconRequest.cs b/src/cashfree_pg/Model/ESOrderReconRequest.cs new file mode 100644 index 0000000..16ca8e9 --- /dev/null +++ b/src/cashfree_pg/Model/ESOrderReconRequest.cs @@ -0,0 +1,170 @@ +/* + * 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: 2023-08-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 +{ + /// + /// ES Order Recon Request + /// + [DataContract(Name = "ESOrderReconRequest")] + public class ESOrderReconRequest : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ESOrderReconRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// filters (required). + /// pagination (required). + public ESOrderReconRequest(ESOrderReconRequestFilters filters = default(ESOrderReconRequestFilters), ESOrderReconRequestPagination pagination = default(ESOrderReconRequestPagination)) + { + // to ensure "filters" is required (not null) + if (filters == null) + { + throw new ArgumentNullException("filters is a required property for ESOrderReconRequest and cannot be null"); + } + this.filters = filters; + // to ensure "pagination" is required (not null) + if (pagination == null) + { + throw new ArgumentNullException("pagination is a required property for ESOrderReconRequest and cannot be null"); + } + this.pagination = pagination; + } + + /// + /// Gets or Sets filters + /// + [DataMember(Name = "filters", IsRequired = true, EmitDefaultValue = true)] + public ESOrderReconRequestFilters filters { get; set; } + + /// + /// Gets or Sets pagination + /// + [DataMember(Name = "pagination", IsRequired = true, EmitDefaultValue = true)] + public ESOrderReconRequestPagination pagination { 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 ESOrderReconRequest {\n"); + sb.Append(" filters: ").Append(filters).Append("\n"); + sb.Append(" pagination: ").Append(pagination).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 ESOrderReconRequest); + } + + /// + /// Returns true if ESOrderReconRequest instances are equal + /// + /// Instance of ESOrderReconRequest to be compared + /// Boolean + public bool Equals(ESOrderReconRequest input) + { + if (input == null) + { + return false; + } + return + ( + this.filters == input.filters || + (this.filters != null && + this.filters.Equals(input.filters)) + ) && + ( + this.pagination == input.pagination || + (this.pagination != null && + this.pagination.Equals(input.pagination)) + ); + } + + public static Boolean checkPresenceOfKey(string jsonStringfilters) { + dynamic deserializedJsonString = JsonConvert.DeserializeObject(jsonStringfilters); + if (deserializedJsonString.ContainsKey("filters")) { + return true; + } + return false; + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.filters != null) + { + hashCode = (hashCode * 59) + this.filters.GetHashCode(); + } + if (this.pagination != null) + { + hashCode = (hashCode * 59) + this.pagination.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/ESOrderReconRequestFilters.cs b/src/cashfree_pg/Model/ESOrderReconRequestFilters.cs new file mode 100644 index 0000000..b1bf892 --- /dev/null +++ b/src/cashfree_pg/Model/ESOrderReconRequestFilters.cs @@ -0,0 +1,177 @@ +/* + * 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: 2023-08-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 +{ + /// + /// Provide the filter object details. + /// + [DataContract(Name = "ESOrderReconRequest_filters")] + public class ESOrderReconRequestFilters : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Specify the start data from which you want to get the recon data.. + /// Specify the end data till which you want to get the recon data.. + /// Please provide list of order ids for which you want to get the recon data.. + public ESOrderReconRequestFilters(string startDate = default(string), string endDate = default(string), List orderIds = default(List)) + { + this.start_date = startDate; + this.end_date = endDate; + this.order_ids = orderIds; + } + + /// + /// Specify the start data from which you want to get the recon data. + /// + /// Specify the start data from which you want to get the recon data. + [DataMember(Name = "start_date", EmitDefaultValue = false)] + public string start_date { get; set; } + + /// + /// Specify the end data till which you want to get the recon data. + /// + /// Specify the end data till which you want to get the recon data. + [DataMember(Name = "end_date", EmitDefaultValue = false)] + public string end_date { get; set; } + + /// + /// Please provide list of order ids for which you want to get the recon data. + /// + /// Please provide list of order ids for which you want to get the recon data. + [DataMember(Name = "order_ids", EmitDefaultValue = false)] + public List order_ids { 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 ESOrderReconRequestFilters {\n"); + sb.Append(" start_date: ").Append(start_date).Append("\n"); + sb.Append(" end_date: ").Append(end_date).Append("\n"); + sb.Append(" order_ids: ").Append(order_ids).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 ESOrderReconRequestFilters); + } + + /// + /// Returns true if ESOrderReconRequestFilters instances are equal + /// + /// Instance of ESOrderReconRequestFilters to be compared + /// Boolean + public bool Equals(ESOrderReconRequestFilters input) + { + if (input == null) + { + return false; + } + return + ( + this.start_date == input.start_date || + (this.start_date != null && + this.start_date.Equals(input.start_date)) + ) && + ( + this.end_date == input.end_date || + (this.end_date != null && + this.end_date.Equals(input.end_date)) + ) && + ( + this.order_ids == input.order_ids || + this.order_ids != null && + input.order_ids != null && + this.order_ids.SequenceEqual(input.order_ids) + ); + } + + public static Boolean checkPresenceOfKey(string jsonStringstart_date) { + dynamic deserializedJsonString = JsonConvert.DeserializeObject(jsonStringstart_date); + if (deserializedJsonString.ContainsKey("start_date")) { + return true; + } + return false; + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.start_date != null) + { + hashCode = (hashCode * 59) + this.start_date.GetHashCode(); + } + if (this.end_date != null) + { + hashCode = (hashCode * 59) + this.end_date.GetHashCode(); + } + if (this.order_ids != null) + { + hashCode = (hashCode * 59) + this.order_ids.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/ESOrderReconRequestPagination.cs b/src/cashfree_pg/Model/ESOrderReconRequestPagination.cs new file mode 100644 index 0000000..03da94d --- /dev/null +++ b/src/cashfree_pg/Model/ESOrderReconRequestPagination.cs @@ -0,0 +1,152 @@ +/* + * 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: 2023-08-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 +{ + /// + /// Set limit based on your requirement. Pagination limit will fetch a set of orders, next set of orders can be generated using the cursor shared in previous response of the same API. + /// + [DataContract(Name = "ESOrderReconRequest_pagination")] + public class ESOrderReconRequestPagination : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// cursor. + /// Set the minimum/maximum limit for number of filtered data. Min value - 10, Max value - 100.. + public ESOrderReconRequestPagination(string cursor = default(string), int limit = default(int)) + { + this.cursor = cursor; + this.limit = limit; + } + + /// + /// Gets or Sets cursor + /// + [DataMember(Name = "cursor", EmitDefaultValue = false)] + public string cursor { get; set; } + + /// + /// Set the minimum/maximum limit for number of filtered data. Min value - 10, Max value - 100. + /// + /// Set the minimum/maximum limit for number of filtered data. Min value - 10, Max value - 100. + [DataMember(Name = "limit", EmitDefaultValue = false)] + public int limit { 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 ESOrderReconRequestPagination {\n"); + sb.Append(" cursor: ").Append(cursor).Append("\n"); + sb.Append(" limit: ").Append(limit).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 ESOrderReconRequestPagination); + } + + /// + /// Returns true if ESOrderReconRequestPagination instances are equal + /// + /// Instance of ESOrderReconRequestPagination to be compared + /// Boolean + public bool Equals(ESOrderReconRequestPagination input) + { + if (input == null) + { + return false; + } + return + ( + this.cursor == input.cursor || + (this.cursor != null && + this.cursor.Equals(input.cursor)) + ) && + ( + this.limit == input.limit || + this.limit.Equals(input.limit) + ); + } + + public static Boolean checkPresenceOfKey(string jsonStringcursor) { + dynamic deserializedJsonString = JsonConvert.DeserializeObject(jsonStringcursor); + if (deserializedJsonString.ContainsKey("cursor")) { + return true; + } + return false; + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.cursor != null) + { + hashCode = (hashCode * 59) + this.cursor.GetHashCode(); + } + hashCode = (hashCode * 59) + this.limit.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/ESOrderReconResponse.cs b/src/cashfree_pg/Model/ESOrderReconResponse.cs new file mode 100644 index 0000000..309cf7e --- /dev/null +++ b/src/cashfree_pg/Model/ESOrderReconResponse.cs @@ -0,0 +1,170 @@ +/* + * 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: 2023-08-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 +{ + /// + /// ES Order Recon Response + /// + [DataContract(Name = "ESOrderReconResponse")] + public class ESOrderReconResponse : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// cursor. + /// data. + /// limit. + public ESOrderReconResponse(string cursor = default(string), List data = default(List), int limit = default(int)) + { + this.cursor = cursor; + this.data = data; + this.limit = limit; + } + + /// + /// Gets or Sets cursor + /// + [DataMember(Name = "cursor", EmitDefaultValue = false)] + public string cursor { get; set; } + + /// + /// Gets or Sets data + /// + [DataMember(Name = "data", EmitDefaultValue = false)] + public List data { get; set; } + + /// + /// Gets or Sets limit + /// + [DataMember(Name = "limit", EmitDefaultValue = false)] + public int limit { 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 ESOrderReconResponse {\n"); + sb.Append(" cursor: ").Append(cursor).Append("\n"); + sb.Append(" data: ").Append(data).Append("\n"); + sb.Append(" limit: ").Append(limit).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 ESOrderReconResponse); + } + + /// + /// Returns true if ESOrderReconResponse instances are equal + /// + /// Instance of ESOrderReconResponse to be compared + /// Boolean + public bool Equals(ESOrderReconResponse input) + { + if (input == null) + { + return false; + } + return + ( + this.cursor == input.cursor || + (this.cursor != null && + this.cursor.Equals(input.cursor)) + ) && + ( + this.data == input.data || + this.data != null && + input.data != null && + this.data.SequenceEqual(input.data) + ) && + ( + this.limit == input.limit || + this.limit.Equals(input.limit) + ); + } + + public static Boolean checkPresenceOfKey(string jsonStringcursor) { + dynamic deserializedJsonString = JsonConvert.DeserializeObject(jsonStringcursor); + if (deserializedJsonString.ContainsKey("cursor")) { + return true; + } + return false; + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.cursor != null) + { + hashCode = (hashCode * 59) + this.cursor.GetHashCode(); + } + if (this.data != null) + { + hashCode = (hashCode * 59) + this.data.GetHashCode(); + } + hashCode = (hashCode * 59) + this.limit.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/ESOrderReconResponseDataInner.cs b/src/cashfree_pg/Model/ESOrderReconResponseDataInner.cs new file mode 100644 index 0000000..dbd24dd --- /dev/null +++ b/src/cashfree_pg/Model/ESOrderReconResponseDataInner.cs @@ -0,0 +1,584 @@ +/* + * 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: 2023-08-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 +{ + /// + /// ESOrderReconResponseDataInner + /// + [DataContract(Name = "ESOrderReconResponse_data_inner")] + public class ESOrderReconResponseDataInner : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// amount. + /// settlementEligibilityTime. + /// merchantOrderId. + /// txTime. + /// settled. + /// entityId. + /// merchantSettlementUtr. + /// currency. + /// saleType. + /// customerName. + /// customerEmail. + /// customerPhone. + /// merchantVendorCommission. + /// splitServiceCharge. + /// splitServiceTax. + /// pgServiceTax. + /// pgServiceCharge. + /// pgChargePostpaid. + /// merchantSettlementId. + /// addedOn. + /// tags. + /// entityType. + /// settlementInitiatedOn. + /// settlementTime. + /// orderSplits. + /// eligibleSplitBalance. + public ESOrderReconResponseDataInner(decimal amount = default(decimal), string settlementEligibilityTime = default(string), string merchantOrderId = default(string), string txTime = default(string), string settled = default(string), string entityId = default(string), string merchantSettlementUtr = default(string), string currency = default(string), string saleType = default(string), string customerName = default(string), string customerEmail = default(string), string customerPhone = default(string), string merchantVendorCommission = default(string), string splitServiceCharge = default(string), string splitServiceTax = default(string), string pgServiceTax = default(string), string pgServiceCharge = default(string), string pgChargePostpaid = default(string), string merchantSettlementId = default(string), string addedOn = default(string), string tags = default(string), string entityType = default(string), string settlementInitiatedOn = default(string), string settlementTime = default(string), List orderSplits = default(List), string eligibleSplitBalance = default(string)) + { + this.amount = amount; + this.settlement_eligibility_time = settlementEligibilityTime; + this.merchant_order_id = merchantOrderId; + this.tx_time = txTime; + this.settled = settled; + this.entity_id = entityId; + this.merchant_settlement_utr = merchantSettlementUtr; + this.currency = currency; + this.sale_type = saleType; + this.customer_name = customerName; + this.customer_email = customerEmail; + this.customer_phone = customerPhone; + this.merchant_vendor_commission = merchantVendorCommission; + this.split_service_charge = splitServiceCharge; + this.split_service_tax = splitServiceTax; + this.pg_service_tax = pgServiceTax; + this.pg_service_charge = pgServiceCharge; + this.pg_charge_postpaid = pgChargePostpaid; + this.merchant_settlement_id = merchantSettlementId; + this.added_on = addedOn; + this.tags = tags; + this.entity_type = entityType; + this.settlement_initiated_on = settlementInitiatedOn; + this.settlement_time = settlementTime; + this.order_splits = orderSplits; + this.eligible_split_balance = eligibleSplitBalance; + } + + /// + /// Gets or Sets amount + /// + [DataMember(Name = "amount", EmitDefaultValue = false)] + public decimal amount { get; set; } + + /// + /// Gets or Sets settlement_eligibility_time + /// + [DataMember(Name = "settlement_eligibility_time", EmitDefaultValue = false)] + public string settlement_eligibility_time { get; set; } + + /// + /// Gets or Sets merchant_order_id + /// + [DataMember(Name = "merchant_order_id", EmitDefaultValue = false)] + public string merchant_order_id { get; set; } + + /// + /// Gets or Sets tx_time + /// + [DataMember(Name = "tx_time", EmitDefaultValue = false)] + public string tx_time { get; set; } + + /// + /// Gets or Sets settled + /// + [DataMember(Name = "settled", EmitDefaultValue = false)] + public string settled { get; set; } + + /// + /// Gets or Sets entity_id + /// + [DataMember(Name = "entity_id", EmitDefaultValue = false)] + public string entity_id { get; set; } + + /// + /// Gets or Sets merchant_settlement_utr + /// + [DataMember(Name = "merchant_settlement_utr", EmitDefaultValue = false)] + public string merchant_settlement_utr { get; set; } + + /// + /// Gets or Sets currency + /// + [DataMember(Name = "currency", EmitDefaultValue = false)] + public string currency { get; set; } + + /// + /// Gets or Sets sale_type + /// + [DataMember(Name = "sale_type", EmitDefaultValue = false)] + public string sale_type { get; set; } + + /// + /// Gets or Sets customer_name + /// + [DataMember(Name = "customer_name", EmitDefaultValue = false)] + public string customer_name { get; set; } + + /// + /// Gets or Sets customer_email + /// + [DataMember(Name = "customer_email", EmitDefaultValue = false)] + public string customer_email { get; set; } + + /// + /// Gets or Sets customer_phone + /// + [DataMember(Name = "customer_phone", EmitDefaultValue = false)] + public string customer_phone { get; set; } + + /// + /// Gets or Sets merchant_vendor_commission + /// + [DataMember(Name = "merchant_vendor_commission", EmitDefaultValue = false)] + public string merchant_vendor_commission { get; set; } + + /// + /// Gets or Sets split_service_charge + /// + [DataMember(Name = "split_service_charge", EmitDefaultValue = false)] + public string split_service_charge { get; set; } + + /// + /// Gets or Sets split_service_tax + /// + [DataMember(Name = "split_service_tax", EmitDefaultValue = false)] + public string split_service_tax { get; set; } + + /// + /// Gets or Sets pg_service_tax + /// + [DataMember(Name = "pg_service_tax", EmitDefaultValue = false)] + public string pg_service_tax { get; set; } + + /// + /// Gets or Sets pg_service_charge + /// + [DataMember(Name = "pg_service_charge", EmitDefaultValue = false)] + public string pg_service_charge { get; set; } + + /// + /// Gets or Sets pg_charge_postpaid + /// + [DataMember(Name = "pg_charge_postpaid", EmitDefaultValue = false)] + public string pg_charge_postpaid { get; set; } + + /// + /// Gets or Sets merchant_settlement_id + /// + [DataMember(Name = "merchant_settlement_id", EmitDefaultValue = false)] + public string merchant_settlement_id { get; set; } + + /// + /// Gets or Sets added_on + /// + [DataMember(Name = "added_on", EmitDefaultValue = false)] + public string added_on { get; set; } + + /// + /// Gets or Sets tags + /// + [DataMember(Name = "tags", EmitDefaultValue = false)] + public string tags { get; set; } + + /// + /// Gets or Sets entity_type + /// + [DataMember(Name = "entity_type", EmitDefaultValue = false)] + public string entity_type { get; set; } + + /// + /// Gets or Sets settlement_initiated_on + /// + [DataMember(Name = "settlement_initiated_on", EmitDefaultValue = false)] + public string settlement_initiated_on { get; set; } + + /// + /// Gets or Sets settlement_time + /// + [DataMember(Name = "settlement_time", EmitDefaultValue = false)] + public string settlement_time { get; set; } + + /// + /// Gets or Sets order_splits + /// + [DataMember(Name = "order_splits", EmitDefaultValue = false)] + public List order_splits { get; set; } + + /// + /// Gets or Sets eligible_split_balance + /// + [DataMember(Name = "eligible_split_balance", EmitDefaultValue = false)] + public string eligible_split_balance { 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 ESOrderReconResponseDataInner {\n"); + sb.Append(" amount: ").Append(amount).Append("\n"); + sb.Append(" settlement_eligibility_time: ").Append(settlement_eligibility_time).Append("\n"); + sb.Append(" merchant_order_id: ").Append(merchant_order_id).Append("\n"); + sb.Append(" tx_time: ").Append(tx_time).Append("\n"); + sb.Append(" settled: ").Append(settled).Append("\n"); + sb.Append(" entity_id: ").Append(entity_id).Append("\n"); + sb.Append(" merchant_settlement_utr: ").Append(merchant_settlement_utr).Append("\n"); + sb.Append(" currency: ").Append(currency).Append("\n"); + sb.Append(" sale_type: ").Append(sale_type).Append("\n"); + sb.Append(" customer_name: ").Append(customer_name).Append("\n"); + sb.Append(" customer_email: ").Append(customer_email).Append("\n"); + sb.Append(" customer_phone: ").Append(customer_phone).Append("\n"); + sb.Append(" merchant_vendor_commission: ").Append(merchant_vendor_commission).Append("\n"); + sb.Append(" split_service_charge: ").Append(split_service_charge).Append("\n"); + sb.Append(" split_service_tax: ").Append(split_service_tax).Append("\n"); + sb.Append(" pg_service_tax: ").Append(pg_service_tax).Append("\n"); + sb.Append(" pg_service_charge: ").Append(pg_service_charge).Append("\n"); + sb.Append(" pg_charge_postpaid: ").Append(pg_charge_postpaid).Append("\n"); + sb.Append(" merchant_settlement_id: ").Append(merchant_settlement_id).Append("\n"); + sb.Append(" added_on: ").Append(added_on).Append("\n"); + sb.Append(" tags: ").Append(tags).Append("\n"); + sb.Append(" entity_type: ").Append(entity_type).Append("\n"); + sb.Append(" settlement_initiated_on: ").Append(settlement_initiated_on).Append("\n"); + sb.Append(" settlement_time: ").Append(settlement_time).Append("\n"); + sb.Append(" order_splits: ").Append(order_splits).Append("\n"); + sb.Append(" eligible_split_balance: ").Append(eligible_split_balance).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 ESOrderReconResponseDataInner); + } + + /// + /// Returns true if ESOrderReconResponseDataInner instances are equal + /// + /// Instance of ESOrderReconResponseDataInner to be compared + /// Boolean + public bool Equals(ESOrderReconResponseDataInner input) + { + if (input == null) + { + return false; + } + return + ( + this.amount == input.amount || + this.amount.Equals(input.amount) + ) && + ( + this.settlement_eligibility_time == input.settlement_eligibility_time || + (this.settlement_eligibility_time != null && + this.settlement_eligibility_time.Equals(input.settlement_eligibility_time)) + ) && + ( + this.merchant_order_id == input.merchant_order_id || + (this.merchant_order_id != null && + this.merchant_order_id.Equals(input.merchant_order_id)) + ) && + ( + this.tx_time == input.tx_time || + (this.tx_time != null && + this.tx_time.Equals(input.tx_time)) + ) && + ( + this.settled == input.settled || + (this.settled != null && + this.settled.Equals(input.settled)) + ) && + ( + this.entity_id == input.entity_id || + (this.entity_id != null && + this.entity_id.Equals(input.entity_id)) + ) && + ( + this.merchant_settlement_utr == input.merchant_settlement_utr || + (this.merchant_settlement_utr != null && + this.merchant_settlement_utr.Equals(input.merchant_settlement_utr)) + ) && + ( + this.currency == input.currency || + (this.currency != null && + this.currency.Equals(input.currency)) + ) && + ( + this.sale_type == input.sale_type || + (this.sale_type != null && + this.sale_type.Equals(input.sale_type)) + ) && + ( + this.customer_name == input.customer_name || + (this.customer_name != null && + this.customer_name.Equals(input.customer_name)) + ) && + ( + this.customer_email == input.customer_email || + (this.customer_email != null && + this.customer_email.Equals(input.customer_email)) + ) && + ( + this.customer_phone == input.customer_phone || + (this.customer_phone != null && + this.customer_phone.Equals(input.customer_phone)) + ) && + ( + this.merchant_vendor_commission == input.merchant_vendor_commission || + (this.merchant_vendor_commission != null && + this.merchant_vendor_commission.Equals(input.merchant_vendor_commission)) + ) && + ( + this.split_service_charge == input.split_service_charge || + (this.split_service_charge != null && + this.split_service_charge.Equals(input.split_service_charge)) + ) && + ( + this.split_service_tax == input.split_service_tax || + (this.split_service_tax != null && + this.split_service_tax.Equals(input.split_service_tax)) + ) && + ( + this.pg_service_tax == input.pg_service_tax || + (this.pg_service_tax != null && + this.pg_service_tax.Equals(input.pg_service_tax)) + ) && + ( + this.pg_service_charge == input.pg_service_charge || + (this.pg_service_charge != null && + this.pg_service_charge.Equals(input.pg_service_charge)) + ) && + ( + this.pg_charge_postpaid == input.pg_charge_postpaid || + (this.pg_charge_postpaid != null && + this.pg_charge_postpaid.Equals(input.pg_charge_postpaid)) + ) && + ( + this.merchant_settlement_id == input.merchant_settlement_id || + (this.merchant_settlement_id != null && + this.merchant_settlement_id.Equals(input.merchant_settlement_id)) + ) && + ( + this.added_on == input.added_on || + (this.added_on != null && + this.added_on.Equals(input.added_on)) + ) && + ( + this.tags == input.tags || + (this.tags != null && + this.tags.Equals(input.tags)) + ) && + ( + this.entity_type == input.entity_type || + (this.entity_type != null && + this.entity_type.Equals(input.entity_type)) + ) && + ( + this.settlement_initiated_on == input.settlement_initiated_on || + (this.settlement_initiated_on != null && + this.settlement_initiated_on.Equals(input.settlement_initiated_on)) + ) && + ( + this.settlement_time == input.settlement_time || + (this.settlement_time != null && + this.settlement_time.Equals(input.settlement_time)) + ) && + ( + this.order_splits == input.order_splits || + this.order_splits != null && + input.order_splits != null && + this.order_splits.SequenceEqual(input.order_splits) + ) && + ( + this.eligible_split_balance == input.eligible_split_balance || + (this.eligible_split_balance != null && + this.eligible_split_balance.Equals(input.eligible_split_balance)) + ); + } + + public static Boolean checkPresenceOfKey(string jsonStringamount) { + dynamic deserializedJsonString = JsonConvert.DeserializeObject(jsonStringamount); + if (deserializedJsonString.ContainsKey("amount")) { + return true; + } + return false; + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.amount.GetHashCode(); + if (this.settlement_eligibility_time != null) + { + hashCode = (hashCode * 59) + this.settlement_eligibility_time.GetHashCode(); + } + if (this.merchant_order_id != null) + { + hashCode = (hashCode * 59) + this.merchant_order_id.GetHashCode(); + } + if (this.tx_time != null) + { + hashCode = (hashCode * 59) + this.tx_time.GetHashCode(); + } + if (this.settled != null) + { + hashCode = (hashCode * 59) + this.settled.GetHashCode(); + } + if (this.entity_id != null) + { + hashCode = (hashCode * 59) + this.entity_id.GetHashCode(); + } + if (this.merchant_settlement_utr != null) + { + hashCode = (hashCode * 59) + this.merchant_settlement_utr.GetHashCode(); + } + if (this.currency != null) + { + hashCode = (hashCode * 59) + this.currency.GetHashCode(); + } + if (this.sale_type != null) + { + hashCode = (hashCode * 59) + this.sale_type.GetHashCode(); + } + if (this.customer_name != null) + { + hashCode = (hashCode * 59) + this.customer_name.GetHashCode(); + } + if (this.customer_email != null) + { + hashCode = (hashCode * 59) + this.customer_email.GetHashCode(); + } + if (this.customer_phone != null) + { + hashCode = (hashCode * 59) + this.customer_phone.GetHashCode(); + } + if (this.merchant_vendor_commission != null) + { + hashCode = (hashCode * 59) + this.merchant_vendor_commission.GetHashCode(); + } + if (this.split_service_charge != null) + { + hashCode = (hashCode * 59) + this.split_service_charge.GetHashCode(); + } + if (this.split_service_tax != null) + { + hashCode = (hashCode * 59) + this.split_service_tax.GetHashCode(); + } + if (this.pg_service_tax != null) + { + hashCode = (hashCode * 59) + this.pg_service_tax.GetHashCode(); + } + if (this.pg_service_charge != null) + { + hashCode = (hashCode * 59) + this.pg_service_charge.GetHashCode(); + } + if (this.pg_charge_postpaid != null) + { + hashCode = (hashCode * 59) + this.pg_charge_postpaid.GetHashCode(); + } + if (this.merchant_settlement_id != null) + { + hashCode = (hashCode * 59) + this.merchant_settlement_id.GetHashCode(); + } + if (this.added_on != null) + { + hashCode = (hashCode * 59) + this.added_on.GetHashCode(); + } + if (this.tags != null) + { + hashCode = (hashCode * 59) + this.tags.GetHashCode(); + } + if (this.entity_type != null) + { + hashCode = (hashCode * 59) + this.entity_type.GetHashCode(); + } + if (this.settlement_initiated_on != null) + { + hashCode = (hashCode * 59) + this.settlement_initiated_on.GetHashCode(); + } + if (this.settlement_time != null) + { + hashCode = (hashCode * 59) + this.settlement_time.GetHashCode(); + } + if (this.order_splits != null) + { + hashCode = (hashCode * 59) + this.order_splits.GetHashCode(); + } + if (this.eligible_split_balance != null) + { + hashCode = (hashCode * 59) + this.eligible_split_balance.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/ESOrderReconResponseDataInnerOrderSplitsInner.cs b/src/cashfree_pg/Model/ESOrderReconResponseDataInnerOrderSplitsInner.cs new file mode 100644 index 0000000..9d77fb7 --- /dev/null +++ b/src/cashfree_pg/Model/ESOrderReconResponseDataInnerOrderSplitsInner.cs @@ -0,0 +1,156 @@ +/* + * 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: 2023-08-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 +{ + /// + /// ESOrderReconResponseDataInnerOrderSplitsInner + /// + [DataContract(Name = "ESOrderReconResponse_data_inner_order_splits_inner")] + public class ESOrderReconResponseDataInnerOrderSplitsInner : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// split. + /// createdAt. + public ESOrderReconResponseDataInnerOrderSplitsInner(List split = default(List), string createdAt = default(string)) + { + this.split = split; + this.created_at = createdAt; + } + + /// + /// Gets or Sets split + /// + [DataMember(Name = "split", EmitDefaultValue = false)] + public List split { get; set; } + + /// + /// Gets or Sets created_at + /// + [DataMember(Name = "created_at", EmitDefaultValue = false)] + public string created_at { 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 ESOrderReconResponseDataInnerOrderSplitsInner {\n"); + sb.Append(" split: ").Append(split).Append("\n"); + sb.Append(" created_at: ").Append(created_at).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 ESOrderReconResponseDataInnerOrderSplitsInner); + } + + /// + /// Returns true if ESOrderReconResponseDataInnerOrderSplitsInner instances are equal + /// + /// Instance of ESOrderReconResponseDataInnerOrderSplitsInner to be compared + /// Boolean + public bool Equals(ESOrderReconResponseDataInnerOrderSplitsInner input) + { + if (input == null) + { + return false; + } + return + ( + this.split == input.split || + this.split != null && + input.split != null && + this.split.SequenceEqual(input.split) + ) && + ( + this.created_at == input.created_at || + (this.created_at != null && + this.created_at.Equals(input.created_at)) + ); + } + + public static Boolean checkPresenceOfKey(string jsonStringsplit) { + dynamic deserializedJsonString = JsonConvert.DeserializeObject(jsonStringsplit); + if (deserializedJsonString.ContainsKey("split")) { + return true; + } + return false; + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.split != null) + { + hashCode = (hashCode * 59) + this.split.GetHashCode(); + } + if (this.created_at != null) + { + hashCode = (hashCode * 59) + this.created_at.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/ESOrderReconResponseDataInnerOrderSplitsInnerSplitInner.cs b/src/cashfree_pg/Model/ESOrderReconResponseDataInnerOrderSplitsInnerSplitInner.cs new file mode 100644 index 0000000..2ed2237 --- /dev/null +++ b/src/cashfree_pg/Model/ESOrderReconResponseDataInnerOrderSplitsInnerSplitInner.cs @@ -0,0 +1,169 @@ +/* + * 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: 2023-08-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 +{ + /// + /// ESOrderReconResponseDataInnerOrderSplitsInnerSplitInner + /// + [DataContract(Name = "ESOrderReconResponse_data_inner_order_splits_inner_split_inner")] + public class ESOrderReconResponseDataInnerOrderSplitsInnerSplitInner : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// merchantVendorId. + /// percentage. + /// tags. + public ESOrderReconResponseDataInnerOrderSplitsInnerSplitInner(string merchantVendorId = default(string), decimal percentage = default(decimal), Object tags = default(Object)) + { + this.merchant_vendor_id = merchantVendorId; + this.percentage = percentage; + this.tags = tags; + } + + /// + /// Gets or Sets merchant_vendor_id + /// + [DataMember(Name = "merchant_vendor_id", EmitDefaultValue = false)] + public string merchant_vendor_id { get; set; } + + /// + /// Gets or Sets percentage + /// + [DataMember(Name = "percentage", EmitDefaultValue = false)] + public decimal percentage { get; set; } + + /// + /// Gets or Sets tags + /// + [DataMember(Name = "tags", EmitDefaultValue = false)] + public Object tags { 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 ESOrderReconResponseDataInnerOrderSplitsInnerSplitInner {\n"); + sb.Append(" merchant_vendor_id: ").Append(merchant_vendor_id).Append("\n"); + sb.Append(" percentage: ").Append(percentage).Append("\n"); + sb.Append(" tags: ").Append(tags).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 ESOrderReconResponseDataInnerOrderSplitsInnerSplitInner); + } + + /// + /// Returns true if ESOrderReconResponseDataInnerOrderSplitsInnerSplitInner instances are equal + /// + /// Instance of ESOrderReconResponseDataInnerOrderSplitsInnerSplitInner to be compared + /// Boolean + public bool Equals(ESOrderReconResponseDataInnerOrderSplitsInnerSplitInner input) + { + if (input == null) + { + return false; + } + return + ( + this.merchant_vendor_id == input.merchant_vendor_id || + (this.merchant_vendor_id != null && + this.merchant_vendor_id.Equals(input.merchant_vendor_id)) + ) && + ( + this.percentage == input.percentage || + this.percentage.Equals(input.percentage) + ) && + ( + this.tags == input.tags || + (this.tags != null && + this.tags.Equals(input.tags)) + ); + } + + public static Boolean checkPresenceOfKey(string jsonStringmerchant_vendor_id) { + dynamic deserializedJsonString = JsonConvert.DeserializeObject(jsonStringmerchant_vendor_id); + if (deserializedJsonString.ContainsKey("merchant_vendor_id")) { + return true; + } + return false; + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.merchant_vendor_id != null) + { + hashCode = (hashCode * 59) + this.merchant_vendor_id.GetHashCode(); + } + hashCode = (hashCode * 59) + this.percentage.GetHashCode(); + if (this.tags != null) + { + hashCode = (hashCode * 59) + this.tags.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/KycDetails.cs b/src/cashfree_pg/Model/KycDetails.cs new file mode 100644 index 0000000..9bcd91f --- /dev/null +++ b/src/cashfree_pg/Model/KycDetails.cs @@ -0,0 +1,277 @@ +/* + * 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: 2023-08-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 +{ + /// + /// KycDetails + /// + [DataContract(Name = "KycDetails")] + public class KycDetails : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// accountType. + /// businessType. + /// uidai. + /// gst. + /// cin. + /// pan. + /// passportNumber. + /// drivingLicense. + /// voterId. + public KycDetails(string accountType = default(string), string businessType = default(string), decimal uidai = default(decimal), string gst = default(string), string cin = default(string), string pan = default(string), string passportNumber = default(string), string drivingLicense = default(string), string voterId = default(string)) + { + this.account_type = accountType; + this.business_type = businessType; + this.uidai = uidai; + this.gst = gst; + this.cin = cin; + this.pan = pan; + this.passport_number = passportNumber; + this.driving_license = drivingLicense; + this.voter_id = voterId; + } + + /// + /// Gets or Sets account_type + /// + [DataMember(Name = "account_type", EmitDefaultValue = false)] + public string account_type { get; set; } + + /// + /// Gets or Sets business_type + /// + [DataMember(Name = "business_type", EmitDefaultValue = false)] + public string business_type { get; set; } + + /// + /// Gets or Sets uidai + /// + [DataMember(Name = "uidai", EmitDefaultValue = false)] + public decimal uidai { get; set; } + + /// + /// Gets or Sets gst + /// + [DataMember(Name = "gst", EmitDefaultValue = false)] + public string gst { get; set; } + + /// + /// Gets or Sets cin + /// + [DataMember(Name = "cin", EmitDefaultValue = false)] + public string cin { get; set; } + + /// + /// Gets or Sets pan + /// + [DataMember(Name = "pan", EmitDefaultValue = false)] + public string pan { get; set; } + + /// + /// Gets or Sets passport_number + /// + [DataMember(Name = "passport_number", EmitDefaultValue = false)] + public string passport_number { get; set; } + + /// + /// Gets or Sets driving_license + /// + [DataMember(Name = "driving_license", EmitDefaultValue = false)] + public string driving_license { get; set; } + + /// + /// Gets or Sets voter_id + /// + [DataMember(Name = "voter_id", EmitDefaultValue = false)] + public string voter_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 KycDetails {\n"); + sb.Append(" account_type: ").Append(account_type).Append("\n"); + sb.Append(" business_type: ").Append(business_type).Append("\n"); + sb.Append(" uidai: ").Append(uidai).Append("\n"); + sb.Append(" gst: ").Append(gst).Append("\n"); + sb.Append(" cin: ").Append(cin).Append("\n"); + sb.Append(" pan: ").Append(pan).Append("\n"); + sb.Append(" passport_number: ").Append(passport_number).Append("\n"); + sb.Append(" driving_license: ").Append(driving_license).Append("\n"); + sb.Append(" voter_id: ").Append(voter_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 KycDetails); + } + + /// + /// Returns true if KycDetails instances are equal + /// + /// Instance of KycDetails to be compared + /// Boolean + public bool Equals(KycDetails input) + { + if (input == null) + { + return false; + } + return + ( + this.account_type == input.account_type || + (this.account_type != null && + this.account_type.Equals(input.account_type)) + ) && + ( + this.business_type == input.business_type || + (this.business_type != null && + this.business_type.Equals(input.business_type)) + ) && + ( + this.uidai == input.uidai || + this.uidai.Equals(input.uidai) + ) && + ( + this.gst == input.gst || + (this.gst != null && + this.gst.Equals(input.gst)) + ) && + ( + this.cin == input.cin || + (this.cin != null && + this.cin.Equals(input.cin)) + ) && + ( + this.pan == input.pan || + (this.pan != null && + this.pan.Equals(input.pan)) + ) && + ( + this.passport_number == input.passport_number || + (this.passport_number != null && + this.passport_number.Equals(input.passport_number)) + ) && + ( + this.driving_license == input.driving_license || + (this.driving_license != null && + this.driving_license.Equals(input.driving_license)) + ) && + ( + this.voter_id == input.voter_id || + (this.voter_id != null && + this.voter_id.Equals(input.voter_id)) + ); + } + + public static Boolean checkPresenceOfKey(string jsonStringaccount_type) { + dynamic deserializedJsonString = JsonConvert.DeserializeObject(jsonStringaccount_type); + if (deserializedJsonString.ContainsKey("account_type")) { + return true; + } + return false; + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.account_type != null) + { + hashCode = (hashCode * 59) + this.account_type.GetHashCode(); + } + if (this.business_type != null) + { + hashCode = (hashCode * 59) + this.business_type.GetHashCode(); + } + hashCode = (hashCode * 59) + this.uidai.GetHashCode(); + if (this.gst != null) + { + hashCode = (hashCode * 59) + this.gst.GetHashCode(); + } + if (this.cin != null) + { + hashCode = (hashCode * 59) + this.cin.GetHashCode(); + } + if (this.pan != null) + { + hashCode = (hashCode * 59) + this.pan.GetHashCode(); + } + if (this.passport_number != null) + { + hashCode = (hashCode * 59) + this.passport_number.GetHashCode(); + } + if (this.driving_license != null) + { + hashCode = (hashCode * 59) + this.driving_license.GetHashCode(); + } + if (this.voter_id != null) + { + hashCode = (hashCode * 59) + this.voter_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/LinkEntity.cs b/src/cashfree_pg/Model/LinkEntity.cs index 9a43d25..a5fb13f 100644 --- a/src/cashfree_pg/Model/LinkEntity.cs +++ b/src/cashfree_pg/Model/LinkEntity.cs @@ -52,7 +52,8 @@ public class LinkEntity : IEquatable, IValidatableObject /// 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)) + /// Base64 encoded string for payment link. You can scan with camera to open a link in the browser to complete the payment.. + 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), string linkQrcode = default(string)) { this.cf_link_id = cfLinkId; this.link_id = linkId; @@ -71,6 +72,7 @@ public class LinkEntity : IEquatable, IValidatableObject this.link_notes = linkNotes; this.link_auto_reminders = linkAutoReminders; this.link_notify = linkNotify; + this.link_qrcode = linkQrcode; } /// @@ -177,6 +179,13 @@ public class LinkEntity : IEquatable, IValidatableObject [DataMember(Name = "link_notify", EmitDefaultValue = false)] public LinkNotifyEntity link_notify { get; set; } + /// + /// Base64 encoded string for payment link. You can scan with camera to open a link in the browser to complete the payment. + /// + /// Base64 encoded string for payment link. You can scan with camera to open a link in the browser to complete the payment. + [DataMember(Name = "link_qrcode", EmitDefaultValue = false)] + public string link_qrcode { get; set; } + /// /// Returns the string presentation of the object /// @@ -202,6 +211,7 @@ public override string ToString() sb.Append(" link_notes: ").Append(link_notes).Append("\n"); sb.Append(" link_auto_reminders: ").Append(link_auto_reminders).Append("\n"); sb.Append(" link_notify: ").Append(link_notify).Append("\n"); + sb.Append(" link_qrcode: ").Append(link_qrcode).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -317,6 +327,11 @@ public bool Equals(LinkEntity input) this.link_notify == input.link_notify || (this.link_notify != null && this.link_notify.Equals(input.link_notify)) + ) && + ( + this.link_qrcode == input.link_qrcode || + (this.link_qrcode != null && + this.link_qrcode.Equals(input.link_qrcode)) ); } @@ -390,6 +405,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.link_notify.GetHashCode(); } + if (this.link_qrcode != null) + { + hashCode = (hashCode * 59) + this.link_qrcode.GetHashCode(); + } return hashCode; } } diff --git a/src/cashfree_pg/Model/OfferValidations.cs b/src/cashfree_pg/Model/OfferValidations.cs index c842c5e..b83c812 100644 --- a/src/cashfree_pg/Model/OfferValidations.cs +++ b/src/cashfree_pg/Model/OfferValidations.cs @@ -41,9 +41,11 @@ protected OfferValidations() { } /// Initializes a new instance of the class. /// /// Minimum Amount for Offer to be Applicable. + /// Maximum Amount for Offer to be Applicable (required). /// paymentMethod (required). - public OfferValidations(decimal minAmount = default(decimal), OfferValidationsPaymentMethod paymentMethod = default(OfferValidationsPaymentMethod)) + public OfferValidations(decimal minAmount = default(decimal), decimal maxAllowed = default(decimal), OfferValidationsPaymentMethod paymentMethod = default(OfferValidationsPaymentMethod)) { + this.max_allowed = maxAllowed; // to ensure "paymentMethod" is required (not null) if (paymentMethod == null) { @@ -61,6 +63,14 @@ protected OfferValidations() { } [DataMember(Name = "min_amount", EmitDefaultValue = false)] public decimal min_amount { get; set; } + /// + /// Maximum Amount for Offer to be Applicable + /// + /// Maximum Amount for Offer to be Applicable + /// 1 + [DataMember(Name = "max_allowed", IsRequired = true, EmitDefaultValue = true)] + public decimal max_allowed { get; set; } + /// /// Gets or Sets payment_method /// @@ -76,6 +86,7 @@ public override string ToString() StringBuilder sb = new StringBuilder(); sb.Append("class OfferValidations {\n"); sb.Append(" min_amount: ").Append(min_amount).Append("\n"); + sb.Append(" max_allowed: ").Append(max_allowed).Append("\n"); sb.Append(" payment_method: ").Append(payment_method).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -116,6 +127,10 @@ public bool Equals(OfferValidations input) this.min_amount == input.min_amount || this.min_amount.Equals(input.min_amount) ) && + ( + this.max_allowed == input.max_allowed || + this.max_allowed.Equals(input.max_allowed) + ) && ( this.payment_method == input.payment_method || (this.payment_method != null && @@ -141,6 +156,7 @@ public override int GetHashCode() { int hashCode = 41; hashCode = (hashCode * 59) + this.min_amount.GetHashCode(); + hashCode = (hashCode * 59) + this.max_allowed.GetHashCode(); if (this.payment_method != null) { hashCode = (hashCode * 59) + this.payment_method.GetHashCode(); @@ -162,6 +178,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/PayOrderRequestPaymentMethod.cs b/src/cashfree_pg/Model/PayOrderRequestPaymentMethod.cs index 7ce6581..3e70a80 100644 --- a/src/cashfree_pg/Model/PayOrderRequestPaymentMethod.cs +++ b/src/cashfree_pg/Model/PayOrderRequestPaymentMethod.cs @@ -118,6 +118,18 @@ public PayOrderRequestPaymentMethod(PaylaterPaymentMethod actualInstance) 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 BanktransferPaymentMethod. + public PayOrderRequestPaymentMethod(BanktransferPaymentMethod actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + private Object _actualInstance; @@ -136,6 +148,10 @@ public override Object ActualInstance { this._actualInstance = value; } + else if (value.GetType() == typeof(BanktransferPaymentMethod)) + { + this._actualInstance = value; + } else if (value.GetType() == typeof(CardEMIPaymentMethod)) { this._actualInstance = value; @@ -162,7 +178,7 @@ public override Object ActualInstance } else { - throw new ArgumentException("Invalid instance found. Must be the following types: AppPaymentMethod, CardEMIPaymentMethod, CardPaymentMethod, CardlessEMIPaymentMethod, NetBankingPaymentMethod, PaylaterPaymentMethod, UPIPaymentMethod"); + throw new ArgumentException("Invalid instance found. Must be the following types: AppPaymentMethod, BanktransferPaymentMethod, CardEMIPaymentMethod, CardPaymentMethod, CardlessEMIPaymentMethod, NetBankingPaymentMethod, PaylaterPaymentMethod, UPIPaymentMethod"); } } } @@ -237,6 +253,16 @@ public PaylaterPaymentMethod GetPaylaterPaymentMethod() return (PaylaterPaymentMethod)this.ActualInstance; } + /// + /// Get the actual instance of `BanktransferPaymentMethod`. If the actual instance is not `BanktransferPaymentMethod`, + /// the InvalidClassException will be thrown + /// + /// An instance of BanktransferPaymentMethod + public BanktransferPaymentMethod GetBanktransferPaymentMethod() + { + return (BanktransferPaymentMethod)this.ActualInstance; + } + /// /// Returns the string presentation of the object /// @@ -302,6 +328,33 @@ public static PayOrderRequestPaymentMethod FromJson(string jsonString) System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into AppPaymentMethod: {1}", jsonString, exception.ToString())); } try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(BanktransferPaymentMethod).GetProperty("AdditionalProperties") == null) + { + if(BanktransferPaymentMethod.checkPresenceOfKey(jsonString)) { + dynamic data = JsonConvert.DeserializeObject(jsonString, PayOrderRequestPaymentMethod.AdditionalPropertiesSerializerSettings); + newPayOrderRequestPaymentMethod = new PayOrderRequestPaymentMethod(data); + return newPayOrderRequestPaymentMethod; + } + } + else + { + if(BanktransferPaymentMethod.checkPresenceOfKey(jsonString)) { + dynamic data = JsonConvert.DeserializeObject(jsonString, PayOrderRequestPaymentMethod.AdditionalPropertiesSerializerSettings); + newPayOrderRequestPaymentMethod = new PayOrderRequestPaymentMethod(data); + return newPayOrderRequestPaymentMethod; + } + } + matchedTypes.Add("BanktransferPaymentMethod"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into BanktransferPaymentMethod: {1}", jsonString, exception.ToString())); + } + try { // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize if (typeof(CardEMIPaymentMethod).GetProperty("AdditionalProperties") == null) diff --git a/src/cashfree_pg/Model/PaymentEntityPaymentMethod.cs b/src/cashfree_pg/Model/PaymentEntityPaymentMethod.cs index 5a38018..8683118 100644 --- a/src/cashfree_pg/Model/PaymentEntityPaymentMethod.cs +++ b/src/cashfree_pg/Model/PaymentEntityPaymentMethod.cs @@ -118,6 +118,18 @@ public PaymentEntityPaymentMethod(PaymentMethodCardEMIInPaymentsEntity actualIns 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 PaymentMethodBankTransferInPaymentsEntity. + public PaymentEntityPaymentMethod(PaymentMethodBankTransferInPaymentsEntity actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + private Object _actualInstance; @@ -136,6 +148,10 @@ public override Object ActualInstance { this._actualInstance = value; } + else if (value.GetType() == typeof(PaymentMethodBankTransferInPaymentsEntity)) + { + this._actualInstance = value; + } else if (value.GetType() == typeof(PaymentMethodCardEMIInPaymentsEntity)) { this._actualInstance = value; @@ -162,7 +178,7 @@ public override Object ActualInstance } else { - throw new ArgumentException("Invalid instance found. Must be the following types: PaymentMethodAppInPaymentsEntity, PaymentMethodCardEMIInPaymentsEntity, PaymentMethodCardInPaymentsEntity, PaymentMethodCardlessEMIInPaymentsEntity, PaymentMethodNetBankingInPaymentsEntity, PaymentMethodPaylaterInPaymentsEntity, PaymentMethodUPIInPaymentsEntity"); + throw new ArgumentException("Invalid instance found. Must be the following types: PaymentMethodAppInPaymentsEntity, PaymentMethodBankTransferInPaymentsEntity, PaymentMethodCardEMIInPaymentsEntity, PaymentMethodCardInPaymentsEntity, PaymentMethodCardlessEMIInPaymentsEntity, PaymentMethodNetBankingInPaymentsEntity, PaymentMethodPaylaterInPaymentsEntity, PaymentMethodUPIInPaymentsEntity"); } } } @@ -237,6 +253,16 @@ public PaymentMethodCardEMIInPaymentsEntity GetPaymentMethodCardEMIInPaymentsEnt return (PaymentMethodCardEMIInPaymentsEntity)this.ActualInstance; } + /// + /// Get the actual instance of `PaymentMethodBankTransferInPaymentsEntity`. If the actual instance is not `PaymentMethodBankTransferInPaymentsEntity`, + /// the InvalidClassException will be thrown + /// + /// An instance of PaymentMethodBankTransferInPaymentsEntity + public PaymentMethodBankTransferInPaymentsEntity GetPaymentMethodBankTransferInPaymentsEntity() + { + return (PaymentMethodBankTransferInPaymentsEntity)this.ActualInstance; + } + /// /// Returns the string presentation of the object /// @@ -302,6 +328,33 @@ public static PaymentEntityPaymentMethod FromJson(string jsonString) 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(PaymentMethodBankTransferInPaymentsEntity).GetProperty("AdditionalProperties") == null) + { + if(PaymentMethodBankTransferInPaymentsEntity.checkPresenceOfKey(jsonString)) { + dynamic data = JsonConvert.DeserializeObject(jsonString, PaymentEntityPaymentMethod.AdditionalPropertiesSerializerSettings); + newPaymentEntityPaymentMethod = new PaymentEntityPaymentMethod(data); + return newPaymentEntityPaymentMethod; + } + } + else + { + if(PaymentMethodBankTransferInPaymentsEntity.checkPresenceOfKey(jsonString)) { + dynamic data = JsonConvert.DeserializeObject(jsonString, PaymentEntityPaymentMethod.AdditionalPropertiesSerializerSettings); + newPaymentEntityPaymentMethod = new PaymentEntityPaymentMethod(data); + return newPaymentEntityPaymentMethod; + } + } + matchedTypes.Add("PaymentMethodBankTransferInPaymentsEntity"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into PaymentMethodBankTransferInPaymentsEntity: {1}", jsonString, exception.ToString())); + } + try { // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize if (typeof(PaymentMethodCardEMIInPaymentsEntity).GetProperty("AdditionalProperties") == null) diff --git a/src/cashfree_pg/Model/PaymentMethodBankTransferInPaymentsEntity.cs b/src/cashfree_pg/Model/PaymentMethodBankTransferInPaymentsEntity.cs new file mode 100644 index 0000000..1b528a0 --- /dev/null +++ b/src/cashfree_pg/Model/PaymentMethodBankTransferInPaymentsEntity.cs @@ -0,0 +1,137 @@ +/* + * 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: 2023-08-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 bank transfer object in payment entity + /// + [DataContract(Name = "PaymentMethodBankTransferInPaymentsEntity")] + public class PaymentMethodBankTransferInPaymentsEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// banktransfer. + public PaymentMethodBankTransferInPaymentsEntity(PaymentMethodBankTransferInPaymentsEntityBanktransfer banktransfer = default(PaymentMethodBankTransferInPaymentsEntityBanktransfer)) + { + this.banktransfer = banktransfer; + } + + /// + /// Gets or Sets banktransfer + /// + [DataMember(Name = "banktransfer", EmitDefaultValue = false)] + public PaymentMethodBankTransferInPaymentsEntityBanktransfer banktransfer { 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 PaymentMethodBankTransferInPaymentsEntity {\n"); + sb.Append(" banktransfer: ").Append(banktransfer).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 PaymentMethodBankTransferInPaymentsEntity); + } + + /// + /// Returns true if PaymentMethodBankTransferInPaymentsEntity instances are equal + /// + /// Instance of PaymentMethodBankTransferInPaymentsEntity to be compared + /// Boolean + public bool Equals(PaymentMethodBankTransferInPaymentsEntity input) + { + if (input == null) + { + return false; + } + return + ( + this.banktransfer == input.banktransfer || + (this.banktransfer != null && + this.banktransfer.Equals(input.banktransfer)) + ); + } + + public static Boolean checkPresenceOfKey(string jsonStringbanktransfer) { + dynamic deserializedJsonString = JsonConvert.DeserializeObject(jsonStringbanktransfer); + if (deserializedJsonString.ContainsKey("banktransfer")) { + return true; + } + return false; + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.banktransfer != null) + { + hashCode = (hashCode * 59) + this.banktransfer.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/PaymentMethodBankTransferInPaymentsEntityBanktransfer.cs b/src/cashfree_pg/Model/PaymentMethodBankTransferInPaymentsEntityBanktransfer.cs new file mode 100644 index 0000000..71aeda9 --- /dev/null +++ b/src/cashfree_pg/Model/PaymentMethodBankTransferInPaymentsEntityBanktransfer.cs @@ -0,0 +1,191 @@ +/* + * 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: 2023-08-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 +{ + /// + /// PaymentMethodBankTransferInPaymentsEntityBanktransfer + /// + [DataContract(Name = "PaymentMethodBankTransferInPaymentsEntity_banktransfer")] + public class PaymentMethodBankTransferInPaymentsEntityBanktransfer : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// channel. + /// banktransferBankName. + /// banktransferIfsc. + /// banktransferAccountNumber. + public PaymentMethodBankTransferInPaymentsEntityBanktransfer(string channel = default(string), string banktransferBankName = default(string), string banktransferIfsc = default(string), string banktransferAccountNumber = default(string)) + { + this.channel = channel; + this.banktransfer_bank_name = banktransferBankName; + this.banktransfer_ifsc = banktransferIfsc; + this.banktransfer_account_number = banktransferAccountNumber; + } + + /// + /// Gets or Sets channel + /// + [DataMember(Name = "channel", EmitDefaultValue = false)] + public string channel { get; set; } + + /// + /// Gets or Sets banktransfer_bank_name + /// + [DataMember(Name = "banktransfer_bank_name", EmitDefaultValue = false)] + public string banktransfer_bank_name { get; set; } + + /// + /// Gets or Sets banktransfer_ifsc + /// + [DataMember(Name = "banktransfer_ifsc", EmitDefaultValue = false)] + public string banktransfer_ifsc { get; set; } + + /// + /// Gets or Sets banktransfer_account_number + /// + [DataMember(Name = "banktransfer_account_number", EmitDefaultValue = false)] + public string banktransfer_account_number { 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 PaymentMethodBankTransferInPaymentsEntityBanktransfer {\n"); + sb.Append(" channel: ").Append(channel).Append("\n"); + sb.Append(" banktransfer_bank_name: ").Append(banktransfer_bank_name).Append("\n"); + sb.Append(" banktransfer_ifsc: ").Append(banktransfer_ifsc).Append("\n"); + sb.Append(" banktransfer_account_number: ").Append(banktransfer_account_number).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 PaymentMethodBankTransferInPaymentsEntityBanktransfer); + } + + /// + /// Returns true if PaymentMethodBankTransferInPaymentsEntityBanktransfer instances are equal + /// + /// Instance of PaymentMethodBankTransferInPaymentsEntityBanktransfer to be compared + /// Boolean + public bool Equals(PaymentMethodBankTransferInPaymentsEntityBanktransfer input) + { + if (input == null) + { + return false; + } + return + ( + this.channel == input.channel || + (this.channel != null && + this.channel.Equals(input.channel)) + ) && + ( + this.banktransfer_bank_name == input.banktransfer_bank_name || + (this.banktransfer_bank_name != null && + this.banktransfer_bank_name.Equals(input.banktransfer_bank_name)) + ) && + ( + this.banktransfer_ifsc == input.banktransfer_ifsc || + (this.banktransfer_ifsc != null && + this.banktransfer_ifsc.Equals(input.banktransfer_ifsc)) + ) && + ( + this.banktransfer_account_number == input.banktransfer_account_number || + (this.banktransfer_account_number != null && + this.banktransfer_account_number.Equals(input.banktransfer_account_number)) + ); + } + + public static Boolean checkPresenceOfKey(string jsonStringchannel) { + dynamic deserializedJsonString = JsonConvert.DeserializeObject(jsonStringchannel); + if (deserializedJsonString.ContainsKey("channel")) { + return true; + } + return false; + } + + /// + /// 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.banktransfer_bank_name != null) + { + hashCode = (hashCode * 59) + this.banktransfer_bank_name.GetHashCode(); + } + if (this.banktransfer_ifsc != null) + { + hashCode = (hashCode * 59) + this.banktransfer_ifsc.GetHashCode(); + } + if (this.banktransfer_account_number != null) + { + hashCode = (hashCode * 59) + this.banktransfer_account_number.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/ScheduleOption.cs b/src/cashfree_pg/Model/ScheduleOption.cs new file mode 100644 index 0000000..dd2b697 --- /dev/null +++ b/src/cashfree_pg/Model/ScheduleOption.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: 2023-08-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 +{ + /// + /// ScheduleOption + /// + [DataContract(Name = "ScheduleOption")] + public class ScheduleOption : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// settlementScheduleMessage. + /// scheduleId. + /// merchantDefault. + public ScheduleOption(string settlementScheduleMessage = default(string), decimal scheduleId = default(decimal), bool merchantDefault = default(bool)) + { + this.settlement_schedule_message = settlementScheduleMessage; + this.schedule_id = scheduleId; + this.merchant_default = merchantDefault; + } + + /// + /// Gets or Sets settlement_schedule_message + /// + [DataMember(Name = "settlement_schedule_message", EmitDefaultValue = false)] + public string settlement_schedule_message { get; set; } + + /// + /// Gets or Sets schedule_id + /// + [DataMember(Name = "schedule_id", EmitDefaultValue = false)] + public decimal schedule_id { get; set; } + + /// + /// Gets or Sets merchant_default + /// + [DataMember(Name = "merchant_default", EmitDefaultValue = true)] + public bool merchant_default { 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 ScheduleOption {\n"); + sb.Append(" settlement_schedule_message: ").Append(settlement_schedule_message).Append("\n"); + sb.Append(" schedule_id: ").Append(schedule_id).Append("\n"); + sb.Append(" merchant_default: ").Append(merchant_default).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 ScheduleOption); + } + + /// + /// Returns true if ScheduleOption instances are equal + /// + /// Instance of ScheduleOption to be compared + /// Boolean + public bool Equals(ScheduleOption input) + { + if (input == null) + { + return false; + } + return + ( + this.settlement_schedule_message == input.settlement_schedule_message || + (this.settlement_schedule_message != null && + this.settlement_schedule_message.Equals(input.settlement_schedule_message)) + ) && + ( + this.schedule_id == input.schedule_id || + this.schedule_id.Equals(input.schedule_id) + ) && + ( + this.merchant_default == input.merchant_default || + this.merchant_default.Equals(input.merchant_default) + ); + } + + public static Boolean checkPresenceOfKey(string jsonStringsettlement_schedule_message) { + dynamic deserializedJsonString = JsonConvert.DeserializeObject(jsonStringsettlement_schedule_message); + if (deserializedJsonString.ContainsKey("settlement_schedule_message")) { + return true; + } + return false; + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.settlement_schedule_message != null) + { + hashCode = (hashCode * 59) + this.settlement_schedule_message.GetHashCode(); + } + hashCode = (hashCode * 59) + this.schedule_id.GetHashCode(); + hashCode = (hashCode * 59) + this.merchant_default.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/SplitAfterPaymentRequest.cs b/src/cashfree_pg/Model/SplitAfterPaymentRequest.cs new file mode 100644 index 0000000..f2e548e --- /dev/null +++ b/src/cashfree_pg/Model/SplitAfterPaymentRequest.cs @@ -0,0 +1,164 @@ +/* + * 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: 2023-08-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 +{ + /// + /// Split After Payment Request + /// + [DataContract(Name = "SplitAfterPaymentRequest")] + public class SplitAfterPaymentRequest : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected SplitAfterPaymentRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// Specify the vendors order split details. (required). + /// Specify if you want to end the split or continue creating further splits in future.. + public SplitAfterPaymentRequest(List split = default(List), bool disableSplit = default(bool)) + { + // to ensure "split" is required (not null) + if (split == null) + { + throw new ArgumentNullException("split is a required property for SplitAfterPaymentRequest and cannot be null"); + } + this.split = split; + this.disable_split = disableSplit; + } + + /// + /// Specify the vendors order split details. + /// + /// Specify the vendors order split details. + [DataMember(Name = "split", IsRequired = true, EmitDefaultValue = true)] + public List split { get; set; } + + /// + /// Specify if you want to end the split or continue creating further splits in future. + /// + /// Specify if you want to end the split or continue creating further splits in future. + [DataMember(Name = "disable_split", EmitDefaultValue = true)] + public bool disable_split { 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 SplitAfterPaymentRequest {\n"); + sb.Append(" split: ").Append(split).Append("\n"); + sb.Append(" disable_split: ").Append(disable_split).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 SplitAfterPaymentRequest); + } + + /// + /// Returns true if SplitAfterPaymentRequest instances are equal + /// + /// Instance of SplitAfterPaymentRequest to be compared + /// Boolean + public bool Equals(SplitAfterPaymentRequest input) + { + if (input == null) + { + return false; + } + return + ( + this.split == input.split || + this.split != null && + input.split != null && + this.split.SequenceEqual(input.split) + ) && + ( + this.disable_split == input.disable_split || + this.disable_split.Equals(input.disable_split) + ); + } + + public static Boolean checkPresenceOfKey(string jsonStringsplit) { + dynamic deserializedJsonString = JsonConvert.DeserializeObject(jsonStringsplit); + if (deserializedJsonString.ContainsKey("split")) { + return true; + } + return false; + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.split != null) + { + hashCode = (hashCode * 59) + this.split.GetHashCode(); + } + hashCode = (hashCode * 59) + this.disable_split.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/SplitAfterPaymentRequestSplitInner.cs b/src/cashfree_pg/Model/SplitAfterPaymentRequestSplitInner.cs new file mode 100644 index 0000000..bc46332 --- /dev/null +++ b/src/cashfree_pg/Model/SplitAfterPaymentRequestSplitInner.cs @@ -0,0 +1,188 @@ +/* + * 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: 2023-08-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 +{ + /// + /// SplitAfterPaymentRequestSplitInner + /// + [DataContract(Name = "SplitAfterPaymentRequest_split_inner")] + public class SplitAfterPaymentRequestSplitInner : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Specify the merchant vendor ID to split the payment.. + /// Specify the amount to be split to the vendor.. + /// Specify the percentage of amount to be split.. + /// Provide additional data fields using tags. Sample data fields are mentioned below.. + public SplitAfterPaymentRequestSplitInner(string vendorId = default(string), decimal amount = default(decimal), decimal percentage = default(decimal), List tags = default(List)) + { + this.vendor_id = vendorId; + this.amount = amount; + this.percentage = percentage; + this.tags = tags; + } + + /// + /// Specify the merchant vendor ID to split the payment. + /// + /// Specify the merchant vendor ID to split the payment. + [DataMember(Name = "vendor_id", EmitDefaultValue = false)] + public string vendor_id { get; set; } + + /// + /// Specify the amount to be split to the vendor. + /// + /// Specify the amount to be split to the vendor. + [DataMember(Name = "amount", EmitDefaultValue = false)] + public decimal amount { get; set; } + + /// + /// Specify the percentage of amount to be split. + /// + /// Specify the percentage of amount to be split. + [DataMember(Name = "percentage", EmitDefaultValue = false)] + public decimal percentage { get; set; } + + /// + /// Provide additional data fields using tags. Sample data fields are mentioned below. + /// + /// Provide additional data fields using tags. Sample data fields are mentioned below. + [DataMember(Name = "tags", EmitDefaultValue = false)] + public List tags { 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 SplitAfterPaymentRequestSplitInner {\n"); + sb.Append(" vendor_id: ").Append(vendor_id).Append("\n"); + sb.Append(" amount: ").Append(amount).Append("\n"); + sb.Append(" percentage: ").Append(percentage).Append("\n"); + sb.Append(" tags: ").Append(tags).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 SplitAfterPaymentRequestSplitInner); + } + + /// + /// Returns true if SplitAfterPaymentRequestSplitInner instances are equal + /// + /// Instance of SplitAfterPaymentRequestSplitInner to be compared + /// Boolean + public bool Equals(SplitAfterPaymentRequestSplitInner input) + { + if (input == null) + { + return false; + } + return + ( + this.vendor_id == input.vendor_id || + (this.vendor_id != null && + this.vendor_id.Equals(input.vendor_id)) + ) && + ( + this.amount == input.amount || + this.amount.Equals(input.amount) + ) && + ( + this.percentage == input.percentage || + this.percentage.Equals(input.percentage) + ) && + ( + this.tags == input.tags || + this.tags != null && + input.tags != null && + this.tags.SequenceEqual(input.tags) + ); + } + + public static Boolean checkPresenceOfKey(string jsonStringvendor_id) { + dynamic deserializedJsonString = JsonConvert.DeserializeObject(jsonStringvendor_id); + if (deserializedJsonString.ContainsKey("vendor_id")) { + return true; + } + return false; + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.vendor_id != null) + { + hashCode = (hashCode * 59) + this.vendor_id.GetHashCode(); + } + hashCode = (hashCode * 59) + this.amount.GetHashCode(); + hashCode = (hashCode * 59) + this.percentage.GetHashCode(); + if (this.tags != null) + { + hashCode = (hashCode * 59) + this.tags.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/SplitAfterPaymentRequestSplitInnerTagsInner.cs b/src/cashfree_pg/Model/SplitAfterPaymentRequestSplitInnerTagsInner.cs new file mode 100644 index 0000000..34c3ec7 --- /dev/null +++ b/src/cashfree_pg/Model/SplitAfterPaymentRequestSplitInnerTagsInner.cs @@ -0,0 +1,155 @@ +/* + * 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: 2023-08-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 +{ + /// + /// SplitAfterPaymentRequestSplitInnerTagsInner + /// + [DataContract(Name = "SplitAfterPaymentRequest_split_inner_tags_inner")] + public class SplitAfterPaymentRequestSplitInnerTagsInner : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// keyValue1. + /// keyValue2. + public SplitAfterPaymentRequestSplitInnerTagsInner(string keyValue1 = default(string), string keyValue2 = default(string)) + { + this.Key_Value_1 = keyValue1; + this.Key_Value_2 = keyValue2; + } + + /// + /// Gets or Sets Key_Value_1 + /// + [DataMember(Name = "Key Value 1", EmitDefaultValue = false)] + public string Key_Value_1 { get; set; } + + /// + /// Gets or Sets Key_Value_2 + /// + [DataMember(Name = "Key Value 2", EmitDefaultValue = false)] + public string Key_Value_2 { 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 SplitAfterPaymentRequestSplitInnerTagsInner {\n"); + sb.Append(" Key_Value_1: ").Append(Key_Value_1).Append("\n"); + sb.Append(" Key_Value_2: ").Append(Key_Value_2).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 SplitAfterPaymentRequestSplitInnerTagsInner); + } + + /// + /// Returns true if SplitAfterPaymentRequestSplitInnerTagsInner instances are equal + /// + /// Instance of SplitAfterPaymentRequestSplitInnerTagsInner to be compared + /// Boolean + public bool Equals(SplitAfterPaymentRequestSplitInnerTagsInner input) + { + if (input == null) + { + return false; + } + return + ( + this.Key_Value_1 == input.Key_Value_1 || + (this.Key_Value_1 != null && + this.Key_Value_1.Equals(input.Key_Value_1)) + ) && + ( + this.Key_Value_2 == input.Key_Value_2 || + (this.Key_Value_2 != null && + this.Key_Value_2.Equals(input.Key_Value_2)) + ); + } + + public static Boolean checkPresenceOfKey(string jsonStringKey Value 1) { + dynamic deserializedJsonString = JsonConvert.DeserializeObject(jsonStringKey Value 1); + if (deserializedJsonString.ContainsKey("Key Value 1")) { + return true; + } + return false; + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Key_Value_1 != null) + { + hashCode = (hashCode * 59) + this.Key_Value_1.GetHashCode(); + } + if (this.Key_Value_2 != null) + { + hashCode = (hashCode * 59) + this.Key_Value_2.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/SplitAfterPaymentResponse.cs b/src/cashfree_pg/Model/SplitAfterPaymentResponse.cs new file mode 100644 index 0000000..2b7b62b --- /dev/null +++ b/src/cashfree_pg/Model/SplitAfterPaymentResponse.cs @@ -0,0 +1,155 @@ +/* + * 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: 2023-08-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 +{ + /// + /// Split After Payment Response + /// + [DataContract(Name = "SplitAfterPaymentResponse")] + public class SplitAfterPaymentResponse : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// status. + /// message. + public SplitAfterPaymentResponse(string status = default(string), string message = default(string)) + { + this.status = status; + this.message = message; + } + + /// + /// Gets or Sets status + /// + [DataMember(Name = "status", EmitDefaultValue = false)] + public string status { get; set; } + + /// + /// Gets or Sets message + /// + [DataMember(Name = "message", EmitDefaultValue = false)] + public string message { 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 SplitAfterPaymentResponse {\n"); + sb.Append(" status: ").Append(status).Append("\n"); + sb.Append(" message: ").Append(message).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 SplitAfterPaymentResponse); + } + + /// + /// Returns true if SplitAfterPaymentResponse instances are equal + /// + /// Instance of SplitAfterPaymentResponse to be compared + /// Boolean + public bool Equals(SplitAfterPaymentResponse input) + { + if (input == null) + { + return false; + } + return + ( + this.status == input.status || + (this.status != null && + this.status.Equals(input.status)) + ) && + ( + this.message == input.message || + (this.message != null && + this.message.Equals(input.message)) + ); + } + + public static Boolean checkPresenceOfKey(string jsonStringstatus) { + dynamic deserializedJsonString = JsonConvert.DeserializeObject(jsonStringstatus); + if (deserializedJsonString.ContainsKey("status")) { + return true; + } + return false; + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.status != null) + { + hashCode = (hashCode * 59) + this.status.GetHashCode(); + } + if (this.message != null) + { + hashCode = (hashCode * 59) + this.message.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/StaticSplitRequest.cs b/src/cashfree_pg/Model/StaticSplitRequest.cs new file mode 100644 index 0000000..5c2f502 --- /dev/null +++ b/src/cashfree_pg/Model/StaticSplitRequest.cs @@ -0,0 +1,222 @@ +/* + * 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: 2023-08-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 +{ + /// + /// Static Split Request + /// + [DataContract(Name = "StaticSplitRequest")] + public class StaticSplitRequest : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected StaticSplitRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// Specify if the split is to be active or not. Possible values: true/false (required). + /// For Subscription payments, the subscription reference ID is to be shared as the terminal ID. Incase for Payment Gateway terminal ID is non-mandatory. Mention as 0 if not applicable.. + /// You can share additional information using the reference ID.. + /// Specify the product for which the split should be created. If you want split to be created for Payment Gateway pass value as \"PG\". If you want split to be created for Subscription, pass value as \"SBC\". Accepted values - \"STATIC_QR\", \"SBC\", \"PG\", \"EPOS\". (required). + /// Provide the split scheme details. (required). + public StaticSplitRequest(bool active = default(bool), string terminalId = default(string), decimal terminalReferenceId = default(decimal), string productType = default(string), List scheme = default(List)) + { + this.active = active; + // to ensure "productType" is required (not null) + if (productType == null) + { + throw new ArgumentNullException("productType is a required property for StaticSplitRequest and cannot be null"); + } + this.product_type = productType; + // to ensure "scheme" is required (not null) + if (scheme == null) + { + throw new ArgumentNullException("scheme is a required property for StaticSplitRequest and cannot be null"); + } + this.scheme = scheme; + this.terminal_id = terminalId; + this.terminal_reference_id = terminalReferenceId; + } + + /// + /// Specify if the split is to be active or not. Possible values: true/false + /// + /// Specify if the split is to be active or not. Possible values: true/false + [DataMember(Name = "active", IsRequired = true, EmitDefaultValue = true)] + public bool active { get; set; } + + /// + /// For Subscription payments, the subscription reference ID is to be shared as the terminal ID. Incase for Payment Gateway terminal ID is non-mandatory. Mention as 0 if not applicable. + /// + /// For Subscription payments, the subscription reference ID is to be shared as the terminal ID. Incase for Payment Gateway terminal ID is non-mandatory. Mention as 0 if not applicable. + [DataMember(Name = "terminal_id", EmitDefaultValue = false)] + public string terminal_id { get; set; } + + /// + /// You can share additional information using the reference ID. + /// + /// You can share additional information using the reference ID. + [DataMember(Name = "terminal_reference_id", EmitDefaultValue = false)] + public decimal terminal_reference_id { get; set; } + + /// + /// Specify the product for which the split should be created. If you want split to be created for Payment Gateway pass value as \"PG\". If you want split to be created for Subscription, pass value as \"SBC\". Accepted values - \"STATIC_QR\", \"SBC\", \"PG\", \"EPOS\". + /// + /// Specify the product for which the split should be created. If you want split to be created for Payment Gateway pass value as \"PG\". If you want split to be created for Subscription, pass value as \"SBC\". Accepted values - \"STATIC_QR\", \"SBC\", \"PG\", \"EPOS\". + [DataMember(Name = "product_type", IsRequired = true, EmitDefaultValue = true)] + public string product_type { get; set; } + + /// + /// Provide the split scheme details. + /// + /// Provide the split scheme details. + [DataMember(Name = "scheme", IsRequired = true, EmitDefaultValue = true)] + public List scheme { 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 StaticSplitRequest {\n"); + sb.Append(" active: ").Append(active).Append("\n"); + sb.Append(" terminal_id: ").Append(terminal_id).Append("\n"); + sb.Append(" terminal_reference_id: ").Append(terminal_reference_id).Append("\n"); + sb.Append(" product_type: ").Append(product_type).Append("\n"); + sb.Append(" scheme: ").Append(scheme).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 StaticSplitRequest); + } + + /// + /// Returns true if StaticSplitRequest instances are equal + /// + /// Instance of StaticSplitRequest to be compared + /// Boolean + public bool Equals(StaticSplitRequest input) + { + if (input == null) + { + return false; + } + return + ( + this.active == input.active || + this.active.Equals(input.active) + ) && + ( + this.terminal_id == input.terminal_id || + (this.terminal_id != null && + this.terminal_id.Equals(input.terminal_id)) + ) && + ( + this.terminal_reference_id == input.terminal_reference_id || + this.terminal_reference_id.Equals(input.terminal_reference_id) + ) && + ( + this.product_type == input.product_type || + (this.product_type != null && + this.product_type.Equals(input.product_type)) + ) && + ( + this.scheme == input.scheme || + this.scheme != null && + input.scheme != null && + this.scheme.SequenceEqual(input.scheme) + ); + } + + public static Boolean checkPresenceOfKey(string jsonStringactive) { + dynamic deserializedJsonString = JsonConvert.DeserializeObject(jsonStringactive); + if (deserializedJsonString.ContainsKey("active")) { + return true; + } + return false; + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.active.GetHashCode(); + if (this.terminal_id != null) + { + hashCode = (hashCode * 59) + this.terminal_id.GetHashCode(); + } + hashCode = (hashCode * 59) + this.terminal_reference_id.GetHashCode(); + if (this.product_type != null) + { + hashCode = (hashCode * 59) + this.product_type.GetHashCode(); + } + if (this.scheme != null) + { + hashCode = (hashCode * 59) + this.scheme.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/StaticSplitRequestSchemeInner.cs b/src/cashfree_pg/Model/StaticSplitRequestSchemeInner.cs new file mode 100644 index 0000000..bf3bff2 --- /dev/null +++ b/src/cashfree_pg/Model/StaticSplitRequestSchemeInner.cs @@ -0,0 +1,157 @@ +/* + * 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: 2023-08-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 +{ + /// + /// StaticSplitRequestSchemeInner + /// + [DataContract(Name = "StaticSplitRequest_scheme_inner")] + public class StaticSplitRequestSchemeInner : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Specify the merchant vendor ID to create the split scheme for the payment.. + /// Specify the percentage of amount to be split.. + public StaticSplitRequestSchemeInner(string merchantVendorId = default(string), string percentage = default(string)) + { + this.merchantVendorId = merchantVendorId; + this.percentage = percentage; + } + + /// + /// Specify the merchant vendor ID to create the split scheme for the payment. + /// + /// Specify the merchant vendor ID to create the split scheme for the payment. + [DataMember(Name = "merchantVendorId", EmitDefaultValue = false)] + public string merchantVendorId { get; set; } + + /// + /// Specify the percentage of amount to be split. + /// + /// Specify the percentage of amount to be split. + [DataMember(Name = "percentage", EmitDefaultValue = false)] + public string percentage { 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 StaticSplitRequestSchemeInner {\n"); + sb.Append(" merchantVendorId: ").Append(merchantVendorId).Append("\n"); + sb.Append(" percentage: ").Append(percentage).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 StaticSplitRequestSchemeInner); + } + + /// + /// Returns true if StaticSplitRequestSchemeInner instances are equal + /// + /// Instance of StaticSplitRequestSchemeInner to be compared + /// Boolean + public bool Equals(StaticSplitRequestSchemeInner input) + { + if (input == null) + { + return false; + } + return + ( + this.merchantVendorId == input.merchantVendorId || + (this.merchantVendorId != null && + this.merchantVendorId.Equals(input.merchantVendorId)) + ) && + ( + this.percentage == input.percentage || + (this.percentage != null && + this.percentage.Equals(input.percentage)) + ); + } + + public static Boolean checkPresenceOfKey(string jsonStringmerchantVendorId) { + dynamic deserializedJsonString = JsonConvert.DeserializeObject(jsonStringmerchantVendorId); + if (deserializedJsonString.ContainsKey("merchantVendorId")) { + return true; + } + return false; + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.merchantVendorId != null) + { + hashCode = (hashCode * 59) + this.merchantVendorId.GetHashCode(); + } + if (this.percentage != null) + { + hashCode = (hashCode * 59) + this.percentage.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/StaticSplitResponse.cs b/src/cashfree_pg/Model/StaticSplitResponse.cs new file mode 100644 index 0000000..14c68cc --- /dev/null +++ b/src/cashfree_pg/Model/StaticSplitResponse.cs @@ -0,0 +1,220 @@ +/* + * 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: 2023-08-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 +{ + /// + /// Static Split Response + /// + [DataContract(Name = "StaticSplitResponse")] + public class StaticSplitResponse : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// active. + /// terminalId. + /// terminalReferenceId. + /// productType. + /// scheme. + /// addedOn. + public StaticSplitResponse(bool active = default(bool), string terminalId = default(string), decimal terminalReferenceId = default(decimal), string productType = default(string), List scheme = default(List), string addedOn = default(string)) + { + this.active = active; + this.terminal_id = terminalId; + this.terminal_reference_id = terminalReferenceId; + this.product_type = productType; + this.scheme = scheme; + this.added_on = addedOn; + } + + /// + /// Gets or Sets active + /// + [DataMember(Name = "active", EmitDefaultValue = true)] + public bool active { get; set; } + + /// + /// Gets or Sets terminal_id + /// + [DataMember(Name = "terminal_id", EmitDefaultValue = false)] + public string terminal_id { get; set; } + + /// + /// Gets or Sets terminal_reference_id + /// + [DataMember(Name = "terminal_reference_id", EmitDefaultValue = false)] + public decimal terminal_reference_id { get; set; } + + /// + /// Gets or Sets product_type + /// + [DataMember(Name = "product_type", EmitDefaultValue = false)] + public string product_type { get; set; } + + /// + /// Gets or Sets scheme + /// + [DataMember(Name = "scheme", EmitDefaultValue = false)] + public List scheme { get; set; } + + /// + /// Gets or Sets added_on + /// + [DataMember(Name = "added_on", EmitDefaultValue = false)] + public string added_on { 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 StaticSplitResponse {\n"); + sb.Append(" active: ").Append(active).Append("\n"); + sb.Append(" terminal_id: ").Append(terminal_id).Append("\n"); + sb.Append(" terminal_reference_id: ").Append(terminal_reference_id).Append("\n"); + sb.Append(" product_type: ").Append(product_type).Append("\n"); + sb.Append(" scheme: ").Append(scheme).Append("\n"); + sb.Append(" added_on: ").Append(added_on).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 StaticSplitResponse); + } + + /// + /// Returns true if StaticSplitResponse instances are equal + /// + /// Instance of StaticSplitResponse to be compared + /// Boolean + public bool Equals(StaticSplitResponse input) + { + if (input == null) + { + return false; + } + return + ( + this.active == input.active || + this.active.Equals(input.active) + ) && + ( + this.terminal_id == input.terminal_id || + (this.terminal_id != null && + this.terminal_id.Equals(input.terminal_id)) + ) && + ( + this.terminal_reference_id == input.terminal_reference_id || + this.terminal_reference_id.Equals(input.terminal_reference_id) + ) && + ( + this.product_type == input.product_type || + (this.product_type != null && + this.product_type.Equals(input.product_type)) + ) && + ( + this.scheme == input.scheme || + this.scheme != null && + input.scheme != null && + this.scheme.SequenceEqual(input.scheme) + ) && + ( + this.added_on == input.added_on || + (this.added_on != null && + this.added_on.Equals(input.added_on)) + ); + } + + public static Boolean checkPresenceOfKey(string jsonStringactive) { + dynamic deserializedJsonString = JsonConvert.DeserializeObject(jsonStringactive); + if (deserializedJsonString.ContainsKey("active")) { + return true; + } + return false; + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.active.GetHashCode(); + if (this.terminal_id != null) + { + hashCode = (hashCode * 59) + this.terminal_id.GetHashCode(); + } + hashCode = (hashCode * 59) + this.terminal_reference_id.GetHashCode(); + if (this.product_type != null) + { + hashCode = (hashCode * 59) + this.product_type.GetHashCode(); + } + if (this.scheme != null) + { + hashCode = (hashCode * 59) + this.scheme.GetHashCode(); + } + if (this.added_on != null) + { + hashCode = (hashCode * 59) + this.added_on.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/StaticSplitResponseSchemeInner.cs b/src/cashfree_pg/Model/StaticSplitResponseSchemeInner.cs new file mode 100644 index 0000000..57fa384 --- /dev/null +++ b/src/cashfree_pg/Model/StaticSplitResponseSchemeInner.cs @@ -0,0 +1,155 @@ +/* + * 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: 2023-08-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 +{ + /// + /// StaticSplitResponseSchemeInner + /// + [DataContract(Name = "StaticSplitResponse_scheme_inner")] + public class StaticSplitResponseSchemeInner : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// merchantVendorId. + /// percentage. + public StaticSplitResponseSchemeInner(string merchantVendorId = default(string), string percentage = default(string)) + { + this.merchantVendorId = merchantVendorId; + this.percentage = percentage; + } + + /// + /// Gets or Sets merchantVendorId + /// + [DataMember(Name = "merchantVendorId", EmitDefaultValue = false)] + public string merchantVendorId { get; set; } + + /// + /// Gets or Sets percentage + /// + [DataMember(Name = "percentage", EmitDefaultValue = false)] + public string percentage { 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 StaticSplitResponseSchemeInner {\n"); + sb.Append(" merchantVendorId: ").Append(merchantVendorId).Append("\n"); + sb.Append(" percentage: ").Append(percentage).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 StaticSplitResponseSchemeInner); + } + + /// + /// Returns true if StaticSplitResponseSchemeInner instances are equal + /// + /// Instance of StaticSplitResponseSchemeInner to be compared + /// Boolean + public bool Equals(StaticSplitResponseSchemeInner input) + { + if (input == null) + { + return false; + } + return + ( + this.merchantVendorId == input.merchantVendorId || + (this.merchantVendorId != null && + this.merchantVendorId.Equals(input.merchantVendorId)) + ) && + ( + this.percentage == input.percentage || + (this.percentage != null && + this.percentage.Equals(input.percentage)) + ); + } + + public static Boolean checkPresenceOfKey(string jsonStringmerchantVendorId) { + dynamic deserializedJsonString = JsonConvert.DeserializeObject(jsonStringmerchantVendorId); + if (deserializedJsonString.ContainsKey("merchantVendorId")) { + return true; + } + return false; + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.merchantVendorId != null) + { + hashCode = (hashCode * 59) + this.merchantVendorId.GetHashCode(); + } + if (this.percentage != null) + { + hashCode = (hashCode * 59) + this.percentage.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/TerminalPaymentEntity.cs b/src/cashfree_pg/Model/TerminalPaymentEntity.cs new file mode 100644 index 0000000..7d82179 --- /dev/null +++ b/src/cashfree_pg/Model/TerminalPaymentEntity.cs @@ -0,0 +1,482 @@ +/* + * 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: 2023-08-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 +{ + /// + /// terminal payment entity full object + /// + [DataContract(Name = "TerminalPaymentEntity")] + public class TerminalPaymentEntity : IEquatable, IValidatableObject + { + /// + /// The transaction status can be one of [\"SUCCESS\", \"NOT_ATTEMPTED\", \"FAILED\", \"USER_DROPPED\", \"VOID\", \"CANCELLED\", \"PENDING\"] + /// + /// The transaction status can be one of [\"SUCCESS\", \"NOT_ATTEMPTED\", \"FAILED\", \"USER_DROPPED\", \"VOID\", \"CANCELLED\", \"PENDING\"] + [JsonConverter(typeof(StringEnumConverter))] + public enum PaymentStatusEnum + { + /// + /// Enum SUCCESS for value: SUCCESS + /// + [EnumMember(Value = "SUCCESS")] + SUCCESS = 1, + + /// + /// Enum NOTATTEMPTED for value: NOT_ATTEMPTED + /// + [EnumMember(Value = "NOT_ATTEMPTED")] + NOTATTEMPTED = 2, + + /// + /// Enum FAILED for value: FAILED + /// + [EnumMember(Value = "FAILED")] + FAILED = 3, + + /// + /// Enum USERDROPPED for value: USER_DROPPED + /// + [EnumMember(Value = "USER_DROPPED")] + USERDROPPED = 4, + + /// + /// Enum VOID for value: VOID + /// + [EnumMember(Value = "VOID")] + VOID = 5, + + /// + /// Enum CANCELLED for value: CANCELLED + /// + [EnumMember(Value = "CANCELLED")] + CANCELLED = 6, + + /// + /// Enum PENDING for value: PENDING + /// + [EnumMember(Value = "PENDING")] + PENDING = 7 + } + + + /// + /// The transaction status can be one of [\"SUCCESS\", \"NOT_ATTEMPTED\", \"FAILED\", \"USER_DROPPED\", \"VOID\", \"CANCELLED\", \"PENDING\"] + /// + /// The transaction status can be one of [\"SUCCESS\", \"NOT_ATTEMPTED\", \"FAILED\", \"USER_DROPPED\", \"VOID\", \"CANCELLED\", \"PENDING\"] + [DataMember(Name = "payment_status", EmitDefaultValue = false)] + public PaymentStatusEnum? payment_status { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// cfPaymentId. + /// orderId. + /// entity. + /// errorDetails. + /// isCaptured. + /// Order amount can be different from payment amount if you collect service fee from the customer. + /// 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. + /// This is the time when the payment reaches its terminal state. + /// The transaction status can be one of [\"SUCCESS\", \"NOT_ATTEMPTED\", \"FAILED\", \"USER_DROPPED\", \"VOID\", \"CANCELLED\", \"PENDING\"]. + /// paymentMessage. + /// bankReference. + /// authId. + /// authorization. + /// customerDetails. + /// paymentMethod. + public TerminalPaymentEntity(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), CustomerDetails customerDetails = default(CustomerDetails), PaymentEntityPaymentMethod paymentMethod = default(PaymentEntityPaymentMethod)) + { + this.cf_payment_id = cfPaymentId; + this.order_id = orderId; + this.entity = entity; + this.error_details = errorDetails; + this.is_captured = isCaptured; + this.order_amount = orderAmount; + this.payment_group = paymentGroup; + this.payment_currency = paymentCurrency; + this.payment_amount = paymentAmount; + this.payment_time = paymentTime; + this.payment_completion_time = paymentCompletionTime; + this.payment_status = paymentStatus; + this.payment_message = paymentMessage; + this.bank_reference = bankReference; + this.auth_id = authId; + this.authorization = authorization; + this.customer_details = customerDetails; + this.payment_method = paymentMethod; + } + + /// + /// Gets or Sets cf_payment_id + /// + [DataMember(Name = "cf_payment_id", EmitDefaultValue = false)] + public string cf_payment_id { get; set; } + + /// + /// Gets or Sets order_id + /// + [DataMember(Name = "order_id", EmitDefaultValue = false)] + public string order_id { get; set; } + + /// + /// Gets or Sets entity + /// + [DataMember(Name = "entity", EmitDefaultValue = false)] + public string entity { get; set; } + + /// + /// Gets or Sets error_details + /// + [DataMember(Name = "error_details", EmitDefaultValue = false)] + public ErrorDetailsInPaymentsEntity error_details { get; set; } + + /// + /// Gets or Sets is_captured + /// + [DataMember(Name = "is_captured", EmitDefaultValue = true)] + public bool is_captured { get; set; } + + /// + /// Order amount can be different from payment amount if you collect service fee from the customer + /// + /// Order amount can be different from payment amount if you collect service fee from the customer + [DataMember(Name = "order_amount", EmitDefaultValue = false)] + public decimal order_amount { get; set; } + + /// + /// 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 ['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; } + + /// + /// Gets or Sets payment_currency + /// + [DataMember(Name = "payment_currency", EmitDefaultValue = false)] + public string payment_currency { get; set; } + + /// + /// Gets or Sets payment_amount + /// + [DataMember(Name = "payment_amount", EmitDefaultValue = false)] + public decimal payment_amount { get; set; } + + /// + /// This is the time when the payment was initiated + /// + /// This is the time when the payment was initiated + [DataMember(Name = "payment_time", EmitDefaultValue = false)] + public string payment_time { get; set; } + + /// + /// This is the time when the payment reaches its terminal state + /// + /// This is the time when the payment reaches its terminal state + [DataMember(Name = "payment_completion_time", EmitDefaultValue = false)] + public string payment_completion_time { get; set; } + + /// + /// Gets or Sets payment_message + /// + [DataMember(Name = "payment_message", EmitDefaultValue = false)] + public string payment_message { get; set; } + + /// + /// Gets or Sets bank_reference + /// + [DataMember(Name = "bank_reference", EmitDefaultValue = false)] + public string bank_reference { get; set; } + + /// + /// Gets or Sets auth_id + /// + [DataMember(Name = "auth_id", EmitDefaultValue = false)] + public string auth_id { get; set; } + + /// + /// Gets or Sets authorization + /// + [DataMember(Name = "authorization", EmitDefaultValue = false)] + public AuthorizationInPaymentsEntity authorization { get; set; } + + /// + /// Gets or Sets customer_details + /// + [DataMember(Name = "customer_details", EmitDefaultValue = false)] + public CustomerDetails customer_details { get; set; } + + /// + /// Gets or Sets payment_method + /// + [DataMember(Name = "payment_method", EmitDefaultValue = false)] + public PaymentEntityPaymentMethod payment_method { 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 TerminalPaymentEntity {\n"); + sb.Append(" cf_payment_id: ").Append(cf_payment_id).Append("\n"); + sb.Append(" order_id: ").Append(order_id).Append("\n"); + sb.Append(" entity: ").Append(entity).Append("\n"); + sb.Append(" error_details: ").Append(error_details).Append("\n"); + sb.Append(" is_captured: ").Append(is_captured).Append("\n"); + sb.Append(" order_amount: ").Append(order_amount).Append("\n"); + sb.Append(" payment_group: ").Append(payment_group).Append("\n"); + sb.Append(" payment_currency: ").Append(payment_currency).Append("\n"); + sb.Append(" payment_amount: ").Append(payment_amount).Append("\n"); + sb.Append(" payment_time: ").Append(payment_time).Append("\n"); + sb.Append(" payment_completion_time: ").Append(payment_completion_time).Append("\n"); + sb.Append(" payment_status: ").Append(payment_status).Append("\n"); + sb.Append(" payment_message: ").Append(payment_message).Append("\n"); + sb.Append(" bank_reference: ").Append(bank_reference).Append("\n"); + sb.Append(" auth_id: ").Append(auth_id).Append("\n"); + sb.Append(" authorization: ").Append(authorization).Append("\n"); + sb.Append(" customer_details: ").Append(customer_details).Append("\n"); + sb.Append(" payment_method: ").Append(payment_method).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 TerminalPaymentEntity); + } + + /// + /// Returns true if TerminalPaymentEntity instances are equal + /// + /// Instance of TerminalPaymentEntity to be compared + /// Boolean + public bool Equals(TerminalPaymentEntity input) + { + if (input == null) + { + return false; + } + return + ( + this.cf_payment_id == input.cf_payment_id || + (this.cf_payment_id != null && + this.cf_payment_id.Equals(input.cf_payment_id)) + ) && + ( + this.order_id == input.order_id || + (this.order_id != null && + this.order_id.Equals(input.order_id)) + ) && + ( + this.entity == input.entity || + (this.entity != null && + this.entity.Equals(input.entity)) + ) && + ( + this.error_details == input.error_details || + (this.error_details != null && + this.error_details.Equals(input.error_details)) + ) && + ( + this.is_captured == input.is_captured || + this.is_captured.Equals(input.is_captured) + ) && + ( + this.order_amount == input.order_amount || + this.order_amount.Equals(input.order_amount) + ) && + ( + this.payment_group == input.payment_group || + (this.payment_group != null && + this.payment_group.Equals(input.payment_group)) + ) && + ( + this.payment_currency == input.payment_currency || + (this.payment_currency != null && + this.payment_currency.Equals(input.payment_currency)) + ) && + ( + this.payment_amount == input.payment_amount || + this.payment_amount.Equals(input.payment_amount) + ) && + ( + this.payment_time == input.payment_time || + (this.payment_time != null && + this.payment_time.Equals(input.payment_time)) + ) && + ( + this.payment_completion_time == input.payment_completion_time || + (this.payment_completion_time != null && + this.payment_completion_time.Equals(input.payment_completion_time)) + ) && + ( + this.payment_status == input.payment_status || + this.payment_status.Equals(input.payment_status) + ) && + ( + this.payment_message == input.payment_message || + (this.payment_message != null && + this.payment_message.Equals(input.payment_message)) + ) && + ( + this.bank_reference == input.bank_reference || + (this.bank_reference != null && + this.bank_reference.Equals(input.bank_reference)) + ) && + ( + this.auth_id == input.auth_id || + (this.auth_id != null && + this.auth_id.Equals(input.auth_id)) + ) && + ( + this.authorization == input.authorization || + (this.authorization != null && + this.authorization.Equals(input.authorization)) + ) && + ( + this.customer_details == input.customer_details || + (this.customer_details != null && + this.customer_details.Equals(input.customer_details)) + ) && + ( + this.payment_method == input.payment_method || + (this.payment_method != null && + this.payment_method.Equals(input.payment_method)) + ); + } + + public static Boolean checkPresenceOfKey(string jsonStringcf_payment_id) { + dynamic deserializedJsonString = JsonConvert.DeserializeObject(jsonStringcf_payment_id); + if (deserializedJsonString.ContainsKey("cf_payment_id")) { + return true; + } + return false; + } + + /// + /// Gets the hash code + /// + /// Hash code + 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.order_id != null) + { + hashCode = (hashCode * 59) + this.order_id.GetHashCode(); + } + if (this.entity != null) + { + hashCode = (hashCode * 59) + this.entity.GetHashCode(); + } + if (this.error_details != null) + { + hashCode = (hashCode * 59) + this.error_details.GetHashCode(); + } + hashCode = (hashCode * 59) + this.is_captured.GetHashCode(); + hashCode = (hashCode * 59) + this.order_amount.GetHashCode(); + if (this.payment_group != null) + { + hashCode = (hashCode * 59) + this.payment_group.GetHashCode(); + } + if (this.payment_currency != null) + { + hashCode = (hashCode * 59) + this.payment_currency.GetHashCode(); + } + hashCode = (hashCode * 59) + this.payment_amount.GetHashCode(); + if (this.payment_time != null) + { + hashCode = (hashCode * 59) + this.payment_time.GetHashCode(); + } + if (this.payment_completion_time != null) + { + hashCode = (hashCode * 59) + this.payment_completion_time.GetHashCode(); + } + hashCode = (hashCode * 59) + this.payment_status.GetHashCode(); + if (this.payment_message != null) + { + hashCode = (hashCode * 59) + this.payment_message.GetHashCode(); + } + if (this.bank_reference != null) + { + hashCode = (hashCode * 59) + this.bank_reference.GetHashCode(); + } + if (this.auth_id != null) + { + hashCode = (hashCode * 59) + this.auth_id.GetHashCode(); + } + if (this.authorization != null) + { + hashCode = (hashCode * 59) + this.authorization.GetHashCode(); + } + if (this.customer_details != null) + { + hashCode = (hashCode * 59) + this.customer_details.GetHashCode(); + } + if (this.payment_method != null) + { + hashCode = (hashCode * 59) + this.payment_method.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/TransferDetails.cs b/src/cashfree_pg/Model/TransferDetails.cs new file mode 100644 index 0000000..1ee0ee5 --- /dev/null +++ b/src/cashfree_pg/Model/TransferDetails.cs @@ -0,0 +1,224 @@ +/* + * 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: 2023-08-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 +{ + /// + /// TransferDetails + /// + [DataContract(Name = "TransferDetails")] + public class TransferDetails : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// vendorId. + /// transferFrom. + /// transferType. + /// transferAmount. + /// remark. + /// tags. + public TransferDetails(string vendorId = default(string), string transferFrom = default(string), string transferType = default(string), decimal transferAmount = default(decimal), string remark = default(string), List tags = default(List)) + { + this.vendor_id = vendorId; + this.transfer_from = transferFrom; + this.transfer_type = transferType; + this.transfer_amount = transferAmount; + this.remark = remark; + this.tags = tags; + } + + /// + /// Gets or Sets vendor_id + /// + [DataMember(Name = "vendor_id", EmitDefaultValue = false)] + public string vendor_id { get; set; } + + /// + /// Gets or Sets transfer_from + /// + [DataMember(Name = "transfer_from", EmitDefaultValue = false)] + public string transfer_from { get; set; } + + /// + /// Gets or Sets transfer_type + /// + [DataMember(Name = "transfer_type", EmitDefaultValue = false)] + public string transfer_type { get; set; } + + /// + /// Gets or Sets transfer_amount + /// + [DataMember(Name = "transfer_amount", EmitDefaultValue = false)] + public decimal transfer_amount { get; set; } + + /// + /// Gets or Sets remark + /// + [DataMember(Name = "remark", EmitDefaultValue = false)] + public string remark { get; set; } + + /// + /// Gets or Sets tags + /// + [DataMember(Name = "tags", EmitDefaultValue = false)] + public List tags { 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 TransferDetails {\n"); + sb.Append(" vendor_id: ").Append(vendor_id).Append("\n"); + sb.Append(" transfer_from: ").Append(transfer_from).Append("\n"); + sb.Append(" transfer_type: ").Append(transfer_type).Append("\n"); + sb.Append(" transfer_amount: ").Append(transfer_amount).Append("\n"); + sb.Append(" remark: ").Append(remark).Append("\n"); + sb.Append(" tags: ").Append(tags).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 TransferDetails); + } + + /// + /// Returns true if TransferDetails instances are equal + /// + /// Instance of TransferDetails to be compared + /// Boolean + public bool Equals(TransferDetails input) + { + if (input == null) + { + return false; + } + return + ( + this.vendor_id == input.vendor_id || + (this.vendor_id != null && + this.vendor_id.Equals(input.vendor_id)) + ) && + ( + this.transfer_from == input.transfer_from || + (this.transfer_from != null && + this.transfer_from.Equals(input.transfer_from)) + ) && + ( + this.transfer_type == input.transfer_type || + (this.transfer_type != null && + this.transfer_type.Equals(input.transfer_type)) + ) && + ( + this.transfer_amount == input.transfer_amount || + this.transfer_amount.Equals(input.transfer_amount) + ) && + ( + this.remark == input.remark || + (this.remark != null && + this.remark.Equals(input.remark)) + ) && + ( + this.tags == input.tags || + this.tags != null && + input.tags != null && + this.tags.SequenceEqual(input.tags) + ); + } + + public static Boolean checkPresenceOfKey(string jsonStringvendor_id) { + dynamic deserializedJsonString = JsonConvert.DeserializeObject(jsonStringvendor_id); + if (deserializedJsonString.ContainsKey("vendor_id")) { + return true; + } + return false; + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.vendor_id != null) + { + hashCode = (hashCode * 59) + this.vendor_id.GetHashCode(); + } + if (this.transfer_from != null) + { + hashCode = (hashCode * 59) + this.transfer_from.GetHashCode(); + } + if (this.transfer_type != null) + { + hashCode = (hashCode * 59) + this.transfer_type.GetHashCode(); + } + hashCode = (hashCode * 59) + this.transfer_amount.GetHashCode(); + if (this.remark != null) + { + hashCode = (hashCode * 59) + this.remark.GetHashCode(); + } + if (this.tags != null) + { + hashCode = (hashCode * 59) + this.tags.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/TransferDetailsTagsInner.cs b/src/cashfree_pg/Model/TransferDetailsTagsInner.cs new file mode 100644 index 0000000..58c04c9 --- /dev/null +++ b/src/cashfree_pg/Model/TransferDetailsTagsInner.cs @@ -0,0 +1,151 @@ +/* + * 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: 2023-08-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 +{ + /// + /// TransferDetailsTagsInner + /// + [DataContract(Name = "TransferDetails_tags_inner")] + public class TransferDetailsTagsInner : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// product. + /// size. + public TransferDetailsTagsInner(string product = default(string), decimal size = default(decimal)) + { + this.product = product; + this.size = size; + } + + /// + /// Gets or Sets product + /// + [DataMember(Name = "product", EmitDefaultValue = false)] + public string product { get; set; } + + /// + /// Gets or Sets size + /// + [DataMember(Name = "size", EmitDefaultValue = false)] + public decimal size { 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 TransferDetailsTagsInner {\n"); + sb.Append(" product: ").Append(product).Append("\n"); + sb.Append(" size: ").Append(size).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 TransferDetailsTagsInner); + } + + /// + /// Returns true if TransferDetailsTagsInner instances are equal + /// + /// Instance of TransferDetailsTagsInner to be compared + /// Boolean + public bool Equals(TransferDetailsTagsInner input) + { + if (input == null) + { + return false; + } + return + ( + this.product == input.product || + (this.product != null && + this.product.Equals(input.product)) + ) && + ( + this.size == input.size || + this.size.Equals(input.size) + ); + } + + public static Boolean checkPresenceOfKey(string jsonStringproduct) { + dynamic deserializedJsonString = JsonConvert.DeserializeObject(jsonStringproduct); + if (deserializedJsonString.ContainsKey("product")) { + return true; + } + return false; + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.product != null) + { + hashCode = (hashCode * 59) + this.product.GetHashCode(); + } + hashCode = (hashCode * 59) + this.size.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/UpdateVendorRequest.cs b/src/cashfree_pg/Model/UpdateVendorRequest.cs new file mode 100644 index 0000000..2910f8f --- /dev/null +++ b/src/cashfree_pg/Model/UpdateVendorRequest.cs @@ -0,0 +1,330 @@ +/* + * 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: 2023-08-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 +{ + /// + /// Update Vendor Request + /// + [DataContract(Name = "UpdateVendorRequest")] + public class UpdateVendorRequest : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected UpdateVendorRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// Specify the status of vendor that should be updated. Possible values: ACTIVE,BLOCKED, DELETED (required). + /// Specify the name of the vendor to be updated. Name should not have any special character except . / - & (required). + /// Specify the vendor email ID that should be updated. String in email ID format (Ex:johndoe_1@cashfree.com) should contain @ and dot (.) (required). + /// Specify the beneficiaries phone number to be updated. Phone number registered in India (only digits, 8 - 12 characters after excluding +91). (required). + /// Specify if the vendor bank account details should be verified. Possible values: true or false. + /// Update if the vendor will have dashboard access or not. Possible values are: true or false. + /// Specify the settlement cycle to be updated. View the settlement cycle details from the \"Settlement Cycles Supported\" table. If no schedule option is configured, the settlement cycle ID \"1\" will be in effect. Select \"8\" or \"9\" if you want to schedule instant vendor settlements. (required). + /// Specify the vendor bank account details to be updated.. + /// Updated beneficiary upi vpa. Alphanumeric, dot (.), hyphen (-), at sign (@), and underscore allowed (100 character limit). Note: underscore and dot (.) gets accepted before and after @, but hyphen (-) is only accepted before @ sign.. + /// Specify the kyc details that should be updated. (required). + public UpdateVendorRequest(string status = default(string), string name = default(string), string email = default(string), string phone = default(string), bool verifyAccount = default(bool), bool dashboardAccess = default(bool), decimal scheduleOption = default(decimal), List bank = default(List), List upi = default(List), List kycDetails = default(List)) + { + // to ensure "status" is required (not null) + if (status == null) + { + throw new ArgumentNullException("status is a required property for UpdateVendorRequest and cannot be null"); + } + this.status = status; + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for UpdateVendorRequest and cannot be null"); + } + this.name = name; + // to ensure "email" is required (not null) + if (email == null) + { + throw new ArgumentNullException("email is a required property for UpdateVendorRequest and cannot be null"); + } + this.email = email; + // to ensure "phone" is required (not null) + if (phone == null) + { + throw new ArgumentNullException("phone is a required property for UpdateVendorRequest and cannot be null"); + } + this.phone = phone; + this.schedule_option = scheduleOption; + // to ensure "kycDetails" is required (not null) + if (kycDetails == null) + { + throw new ArgumentNullException("kycDetails is a required property for UpdateVendorRequest and cannot be null"); + } + this.kyc_details = kycDetails; + this.verify_account = verifyAccount; + this.dashboard_access = dashboardAccess; + this.bank = bank; + this.upi = upi; + } + + /// + /// Specify the status of vendor that should be updated. Possible values: ACTIVE,BLOCKED, DELETED + /// + /// Specify the status of vendor that should be updated. Possible values: ACTIVE,BLOCKED, DELETED + [DataMember(Name = "status", IsRequired = true, EmitDefaultValue = true)] + public string status { get; set; } + + /// + /// Specify the name of the vendor to be updated. Name should not have any special character except . / - & + /// + /// Specify the name of the vendor to be updated. Name should not have any special character except . / - & + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string name { get; set; } + + /// + /// Specify the vendor email ID that should be updated. String in email ID format (Ex:johndoe_1@cashfree.com) should contain @ and dot (.) + /// + /// Specify the vendor email ID that should be updated. String in email ID format (Ex:johndoe_1@cashfree.com) should contain @ and dot (.) + [DataMember(Name = "email", IsRequired = true, EmitDefaultValue = true)] + public string email { get; set; } + + /// + /// Specify the beneficiaries phone number to be updated. Phone number registered in India (only digits, 8 - 12 characters after excluding +91). + /// + /// Specify the beneficiaries phone number to be updated. Phone number registered in India (only digits, 8 - 12 characters after excluding +91). + [DataMember(Name = "phone", IsRequired = true, EmitDefaultValue = true)] + public string phone { get; set; } + + /// + /// Specify if the vendor bank account details should be verified. Possible values: true or false + /// + /// Specify if the vendor bank account details should be verified. Possible values: true or false + [DataMember(Name = "verify_account", EmitDefaultValue = true)] + public bool verify_account { get; set; } + + /// + /// Update if the vendor will have dashboard access or not. Possible values are: true or false + /// + /// Update if the vendor will have dashboard access or not. Possible values are: true or false + [DataMember(Name = "dashboard_access", EmitDefaultValue = true)] + public bool dashboard_access { get; set; } + + /// + /// Specify the settlement cycle to be updated. View the settlement cycle details from the \"Settlement Cycles Supported\" table. If no schedule option is configured, the settlement cycle ID \"1\" will be in effect. Select \"8\" or \"9\" if you want to schedule instant vendor settlements. + /// + /// Specify the settlement cycle to be updated. View the settlement cycle details from the \"Settlement Cycles Supported\" table. If no schedule option is configured, the settlement cycle ID \"1\" will be in effect. Select \"8\" or \"9\" if you want to schedule instant vendor settlements. + [DataMember(Name = "schedule_option", IsRequired = true, EmitDefaultValue = true)] + public decimal schedule_option { get; set; } + + /// + /// Specify the vendor bank account details to be updated. + /// + /// Specify the vendor bank account details to be updated. + [DataMember(Name = "bank", EmitDefaultValue = false)] + public List bank { get; set; } + + /// + /// Updated beneficiary upi vpa. Alphanumeric, dot (.), hyphen (-), at sign (@), and underscore allowed (100 character limit). Note: underscore and dot (.) gets accepted before and after @, but hyphen (-) is only accepted before @ sign. + /// + /// Updated beneficiary upi vpa. Alphanumeric, dot (.), hyphen (-), at sign (@), and underscore allowed (100 character limit). Note: underscore and dot (.) gets accepted before and after @, but hyphen (-) is only accepted before @ sign. + [DataMember(Name = "upi", EmitDefaultValue = false)] + public List upi { get; set; } + + /// + /// Specify the kyc details that should be updated. + /// + /// Specify the kyc details that should be updated. + [DataMember(Name = "kyc_details", IsRequired = true, EmitDefaultValue = true)] + public List kyc_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 UpdateVendorRequest {\n"); + sb.Append(" status: ").Append(status).Append("\n"); + sb.Append(" name: ").Append(name).Append("\n"); + sb.Append(" email: ").Append(email).Append("\n"); + sb.Append(" phone: ").Append(phone).Append("\n"); + sb.Append(" verify_account: ").Append(verify_account).Append("\n"); + sb.Append(" dashboard_access: ").Append(dashboard_access).Append("\n"); + sb.Append(" schedule_option: ").Append(schedule_option).Append("\n"); + sb.Append(" bank: ").Append(bank).Append("\n"); + sb.Append(" upi: ").Append(upi).Append("\n"); + sb.Append(" kyc_details: ").Append(kyc_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 UpdateVendorRequest); + } + + /// + /// Returns true if UpdateVendorRequest instances are equal + /// + /// Instance of UpdateVendorRequest to be compared + /// Boolean + public bool Equals(UpdateVendorRequest input) + { + if (input == null) + { + return false; + } + return + ( + this.status == input.status || + (this.status != null && + this.status.Equals(input.status)) + ) && + ( + this.name == input.name || + (this.name != null && + this.name.Equals(input.name)) + ) && + ( + this.email == input.email || + (this.email != null && + this.email.Equals(input.email)) + ) && + ( + this.phone == input.phone || + (this.phone != null && + this.phone.Equals(input.phone)) + ) && + ( + this.verify_account == input.verify_account || + this.verify_account.Equals(input.verify_account) + ) && + ( + this.dashboard_access == input.dashboard_access || + this.dashboard_access.Equals(input.dashboard_access) + ) && + ( + this.schedule_option == input.schedule_option || + this.schedule_option.Equals(input.schedule_option) + ) && + ( + this.bank == input.bank || + this.bank != null && + input.bank != null && + this.bank.SequenceEqual(input.bank) + ) && + ( + this.upi == input.upi || + this.upi != null && + input.upi != null && + this.upi.SequenceEqual(input.upi) + ) && + ( + this.kyc_details == input.kyc_details || + this.kyc_details != null && + input.kyc_details != null && + this.kyc_details.SequenceEqual(input.kyc_details) + ); + } + + public static Boolean checkPresenceOfKey(string jsonStringstatus) { + dynamic deserializedJsonString = JsonConvert.DeserializeObject(jsonStringstatus); + if (deserializedJsonString.ContainsKey("status")) { + return true; + } + return false; + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.status != null) + { + hashCode = (hashCode * 59) + this.status.GetHashCode(); + } + if (this.name != null) + { + hashCode = (hashCode * 59) + this.name.GetHashCode(); + } + if (this.email != null) + { + hashCode = (hashCode * 59) + this.email.GetHashCode(); + } + if (this.phone != null) + { + hashCode = (hashCode * 59) + this.phone.GetHashCode(); + } + hashCode = (hashCode * 59) + this.verify_account.GetHashCode(); + hashCode = (hashCode * 59) + this.dashboard_access.GetHashCode(); + hashCode = (hashCode * 59) + this.schedule_option.GetHashCode(); + if (this.bank != null) + { + hashCode = (hashCode * 59) + this.bank.GetHashCode(); + } + if (this.upi != null) + { + hashCode = (hashCode * 59) + this.upi.GetHashCode(); + } + if (this.kyc_details != null) + { + hashCode = (hashCode * 59) + this.kyc_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/UpdateVendorResponse.cs b/src/cashfree_pg/Model/UpdateVendorResponse.cs new file mode 100644 index 0000000..936253d --- /dev/null +++ b/src/cashfree_pg/Model/UpdateVendorResponse.cs @@ -0,0 +1,421 @@ +/* + * 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: 2023-08-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 +{ + /// + /// Update Vendor Response + /// + [DataContract(Name = "UpdateVendorResponse")] + public class UpdateVendorResponse : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// email. + /// status. + /// bank. + /// upi. + /// addedOn. + /// updatedOn. + /// vendorType. + /// accountType. + /// businessType. + /// phone. + /// name. + /// vendorId. + /// scheduleOption. + /// kycDetails. + /// dashboardAccess. + /// bankDetails. + /// relatedDocs. + public UpdateVendorResponse(string email = default(string), string status = default(string), List bank = default(List), string upi = default(string), string addedOn = default(string), string updatedOn = default(string), string vendorType = default(string), string accountType = default(string), string businessType = default(string), decimal phone = default(decimal), string name = default(string), string vendorId = default(string), List scheduleOption = default(List), List kycDetails = default(List), bool dashboardAccess = default(bool), string bankDetails = default(string), List relatedDocs = default(List)) + { + this.email = email; + this.status = status; + this.bank = bank; + this.upi = upi; + this.added_on = addedOn; + this.updated_on = updatedOn; + this.vendor_type = vendorType; + this.account_type = accountType; + this.business_type = businessType; + this.phone = phone; + this.name = name; + this.vendor_id = vendorId; + this.schedule_option = scheduleOption; + this.kyc_details = kycDetails; + this.dashboard_access = dashboardAccess; + this.bank_details = bankDetails; + this.related_docs = relatedDocs; + } + + /// + /// Gets or Sets email + /// + [DataMember(Name = "email", EmitDefaultValue = false)] + public string email { get; set; } + + /// + /// Gets or Sets status + /// + [DataMember(Name = "status", EmitDefaultValue = false)] + public string status { get; set; } + + /// + /// Gets or Sets bank + /// + [DataMember(Name = "bank", EmitDefaultValue = false)] + public List bank { get; set; } + + /// + /// Gets or Sets upi + /// + [DataMember(Name = "upi", EmitDefaultValue = false)] + public string upi { get; set; } + + /// + /// Gets or Sets added_on + /// + [DataMember(Name = "added_on", EmitDefaultValue = false)] + public string added_on { get; set; } + + /// + /// Gets or Sets updated_on + /// + [DataMember(Name = "updated_on", EmitDefaultValue = false)] + public string updated_on { get; set; } + + /// + /// Gets or Sets vendor_type + /// + [DataMember(Name = "vendor_type", EmitDefaultValue = false)] + public string vendor_type { get; set; } + + /// + /// Gets or Sets account_type + /// + [DataMember(Name = "account_type", EmitDefaultValue = false)] + public string account_type { get; set; } + + /// + /// Gets or Sets business_type + /// + [DataMember(Name = "business_type", EmitDefaultValue = false)] + public string business_type { get; set; } + + /// + /// Gets or Sets phone + /// + [DataMember(Name = "phone", EmitDefaultValue = false)] + public decimal phone { get; set; } + + /// + /// Gets or Sets name + /// + [DataMember(Name = "name", EmitDefaultValue = false)] + public string name { get; set; } + + /// + /// Gets or Sets vendor_id + /// + [DataMember(Name = "vendor_id", EmitDefaultValue = false)] + public string vendor_id { get; set; } + + /// + /// Gets or Sets schedule_option + /// + [DataMember(Name = "schedule_option", EmitDefaultValue = false)] + public List schedule_option { get; set; } + + /// + /// Gets or Sets kyc_details + /// + [DataMember(Name = "kyc_details", EmitDefaultValue = false)] + public List kyc_details { get; set; } + + /// + /// Gets or Sets dashboard_access + /// + [DataMember(Name = "dashboard_access", EmitDefaultValue = true)] + public bool dashboard_access { get; set; } + + /// + /// Gets or Sets bank_details + /// + [DataMember(Name = "bank_details", EmitDefaultValue = false)] + public string bank_details { get; set; } + + /// + /// Gets or Sets related_docs + /// + [DataMember(Name = "related_docs", EmitDefaultValue = false)] + public List related_docs { 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 UpdateVendorResponse {\n"); + sb.Append(" email: ").Append(email).Append("\n"); + sb.Append(" status: ").Append(status).Append("\n"); + sb.Append(" bank: ").Append(bank).Append("\n"); + sb.Append(" upi: ").Append(upi).Append("\n"); + sb.Append(" added_on: ").Append(added_on).Append("\n"); + sb.Append(" updated_on: ").Append(updated_on).Append("\n"); + sb.Append(" vendor_type: ").Append(vendor_type).Append("\n"); + sb.Append(" account_type: ").Append(account_type).Append("\n"); + sb.Append(" business_type: ").Append(business_type).Append("\n"); + sb.Append(" phone: ").Append(phone).Append("\n"); + sb.Append(" name: ").Append(name).Append("\n"); + sb.Append(" vendor_id: ").Append(vendor_id).Append("\n"); + sb.Append(" schedule_option: ").Append(schedule_option).Append("\n"); + sb.Append(" kyc_details: ").Append(kyc_details).Append("\n"); + sb.Append(" dashboard_access: ").Append(dashboard_access).Append("\n"); + sb.Append(" bank_details: ").Append(bank_details).Append("\n"); + sb.Append(" related_docs: ").Append(related_docs).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 UpdateVendorResponse); + } + + /// + /// Returns true if UpdateVendorResponse instances are equal + /// + /// Instance of UpdateVendorResponse to be compared + /// Boolean + public bool Equals(UpdateVendorResponse input) + { + if (input == null) + { + return false; + } + return + ( + this.email == input.email || + (this.email != null && + this.email.Equals(input.email)) + ) && + ( + this.status == input.status || + (this.status != null && + this.status.Equals(input.status)) + ) && + ( + this.bank == input.bank || + this.bank != null && + input.bank != null && + this.bank.SequenceEqual(input.bank) + ) && + ( + this.upi == input.upi || + (this.upi != null && + this.upi.Equals(input.upi)) + ) && + ( + this.added_on == input.added_on || + (this.added_on != null && + this.added_on.Equals(input.added_on)) + ) && + ( + this.updated_on == input.updated_on || + (this.updated_on != null && + this.updated_on.Equals(input.updated_on)) + ) && + ( + this.vendor_type == input.vendor_type || + (this.vendor_type != null && + this.vendor_type.Equals(input.vendor_type)) + ) && + ( + this.account_type == input.account_type || + (this.account_type != null && + this.account_type.Equals(input.account_type)) + ) && + ( + this.business_type == input.business_type || + (this.business_type != null && + this.business_type.Equals(input.business_type)) + ) && + ( + this.phone == input.phone || + this.phone.Equals(input.phone) + ) && + ( + this.name == input.name || + (this.name != null && + this.name.Equals(input.name)) + ) && + ( + this.vendor_id == input.vendor_id || + (this.vendor_id != null && + this.vendor_id.Equals(input.vendor_id)) + ) && + ( + this.schedule_option == input.schedule_option || + this.schedule_option != null && + input.schedule_option != null && + this.schedule_option.SequenceEqual(input.schedule_option) + ) && + ( + this.kyc_details == input.kyc_details || + this.kyc_details != null && + input.kyc_details != null && + this.kyc_details.SequenceEqual(input.kyc_details) + ) && + ( + this.dashboard_access == input.dashboard_access || + this.dashboard_access.Equals(input.dashboard_access) + ) && + ( + this.bank_details == input.bank_details || + (this.bank_details != null && + this.bank_details.Equals(input.bank_details)) + ) && + ( + this.related_docs == input.related_docs || + this.related_docs != null && + input.related_docs != null && + this.related_docs.SequenceEqual(input.related_docs) + ); + } + + public static Boolean checkPresenceOfKey(string jsonStringemail) { + dynamic deserializedJsonString = JsonConvert.DeserializeObject(jsonStringemail); + if (deserializedJsonString.ContainsKey("email")) { + return true; + } + return false; + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.email != null) + { + hashCode = (hashCode * 59) + this.email.GetHashCode(); + } + if (this.status != null) + { + hashCode = (hashCode * 59) + this.status.GetHashCode(); + } + if (this.bank != null) + { + hashCode = (hashCode * 59) + this.bank.GetHashCode(); + } + if (this.upi != null) + { + hashCode = (hashCode * 59) + this.upi.GetHashCode(); + } + if (this.added_on != null) + { + hashCode = (hashCode * 59) + this.added_on.GetHashCode(); + } + if (this.updated_on != null) + { + hashCode = (hashCode * 59) + this.updated_on.GetHashCode(); + } + if (this.vendor_type != null) + { + hashCode = (hashCode * 59) + this.vendor_type.GetHashCode(); + } + if (this.account_type != null) + { + hashCode = (hashCode * 59) + this.account_type.GetHashCode(); + } + if (this.business_type != null) + { + hashCode = (hashCode * 59) + this.business_type.GetHashCode(); + } + hashCode = (hashCode * 59) + this.phone.GetHashCode(); + if (this.name != null) + { + hashCode = (hashCode * 59) + this.name.GetHashCode(); + } + if (this.vendor_id != null) + { + hashCode = (hashCode * 59) + this.vendor_id.GetHashCode(); + } + if (this.schedule_option != null) + { + hashCode = (hashCode * 59) + this.schedule_option.GetHashCode(); + } + if (this.kyc_details != null) + { + hashCode = (hashCode * 59) + this.kyc_details.GetHashCode(); + } + hashCode = (hashCode * 59) + this.dashboard_access.GetHashCode(); + if (this.bank_details != null) + { + hashCode = (hashCode * 59) + this.bank_details.GetHashCode(); + } + if (this.related_docs != null) + { + hashCode = (hashCode * 59) + this.related_docs.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/UpiDetails.cs b/src/cashfree_pg/Model/UpiDetails.cs new file mode 100644 index 0000000..75b5ba7 --- /dev/null +++ b/src/cashfree_pg/Model/UpiDetails.cs @@ -0,0 +1,155 @@ +/* + * 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: 2023-08-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 +{ + /// + /// UpiDetails + /// + [DataContract(Name = "UpiDetails")] + public class UpiDetails : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// vpa. + /// accountHolder. + public UpiDetails(string vpa = default(string), string accountHolder = default(string)) + { + this.vpa = vpa; + this.account_holder = accountHolder; + } + + /// + /// Gets or Sets vpa + /// + [DataMember(Name = "vpa", EmitDefaultValue = false)] + public string vpa { get; set; } + + /// + /// Gets or Sets account_holder + /// + [DataMember(Name = "account_holder", EmitDefaultValue = false)] + public string account_holder { 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 UpiDetails {\n"); + sb.Append(" vpa: ").Append(vpa).Append("\n"); + sb.Append(" account_holder: ").Append(account_holder).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 UpiDetails); + } + + /// + /// Returns true if UpiDetails instances are equal + /// + /// Instance of UpiDetails to be compared + /// Boolean + public bool Equals(UpiDetails input) + { + if (input == null) + { + return false; + } + return + ( + this.vpa == input.vpa || + (this.vpa != null && + this.vpa.Equals(input.vpa)) + ) && + ( + this.account_holder == input.account_holder || + (this.account_holder != null && + this.account_holder.Equals(input.account_holder)) + ); + } + + public static Boolean checkPresenceOfKey(string jsonStringvpa) { + dynamic deserializedJsonString = JsonConvert.DeserializeObject(jsonStringvpa); + if (deserializedJsonString.ContainsKey("vpa")) { + return true; + } + return false; + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.vpa != null) + { + hashCode = (hashCode * 59) + this.vpa.GetHashCode(); + } + if (this.account_holder != null) + { + hashCode = (hashCode * 59) + this.account_holder.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/UploadVendorDocsRequest.cs b/src/cashfree_pg/Model/UploadVendorDocsRequest.cs new file mode 100644 index 0000000..c060440 --- /dev/null +++ b/src/cashfree_pg/Model/UploadVendorDocsRequest.cs @@ -0,0 +1,176 @@ +/* + * 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: 2023-08-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 +{ + /// + /// Update Vendor Request + /// + [DataContract(Name = "UploadVendorDocsRequest")] + public class UploadVendorDocsRequest : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Mention the type of the document you are uploading. Possible values: UIDAI_FRONT, UIDAI_BACK, UIDAI_NUMBER, DL, DL_NUMBER, PASSPORT_FRONT, PASSPORT_BACK, PASSPORT_NUMBER, VOTER_ID, VOTER_ID_NUMBER, PAN, PAN_NUMBER, GST, GSTIN_NUMBER, CIN, CIN_NUMBER, NBFC_CERTIFICATE. If the doc type ends with a number you should add the doc value else upload the doc file.. + /// Enter the display name of the uploaded file.. + /// Select the document that should be uploaded or provide the path of that file. You cannot upload a file that is more than 2MB in size.. + public UploadVendorDocsRequest(string docType = default(string), System.IO.Stream docValue = default(System.IO.Stream), string file = default(string)) + { + this.doc_type = docType; + this.doc_value = docValue; + this.file = file; + } + + /// + /// Mention the type of the document you are uploading. Possible values: UIDAI_FRONT, UIDAI_BACK, UIDAI_NUMBER, DL, DL_NUMBER, PASSPORT_FRONT, PASSPORT_BACK, PASSPORT_NUMBER, VOTER_ID, VOTER_ID_NUMBER, PAN, PAN_NUMBER, GST, GSTIN_NUMBER, CIN, CIN_NUMBER, NBFC_CERTIFICATE. If the doc type ends with a number you should add the doc value else upload the doc file. + /// + /// Mention the type of the document you are uploading. Possible values: UIDAI_FRONT, UIDAI_BACK, UIDAI_NUMBER, DL, DL_NUMBER, PASSPORT_FRONT, PASSPORT_BACK, PASSPORT_NUMBER, VOTER_ID, VOTER_ID_NUMBER, PAN, PAN_NUMBER, GST, GSTIN_NUMBER, CIN, CIN_NUMBER, NBFC_CERTIFICATE. If the doc type ends with a number you should add the doc value else upload the doc file. + [DataMember(Name = "doc_type", EmitDefaultValue = false)] + public string doc_type { get; set; } + + /// + /// Enter the display name of the uploaded file. + /// + /// Enter the display name of the uploaded file. + [DataMember(Name = "doc_value", EmitDefaultValue = false)] + public System.IO.Stream doc_value { get; set; } + + /// + /// Select the document that should be uploaded or provide the path of that file. You cannot upload a file that is more than 2MB in size. + /// + /// Select the document that should be uploaded or provide the path of that file. You cannot upload a file that is more than 2MB in size. + [DataMember(Name = "file", EmitDefaultValue = false)] + public string file { 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 UploadVendorDocsRequest {\n"); + sb.Append(" doc_type: ").Append(doc_type).Append("\n"); + sb.Append(" doc_value: ").Append(doc_value).Append("\n"); + sb.Append(" file: ").Append(file).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 UploadVendorDocsRequest); + } + + /// + /// Returns true if UploadVendorDocsRequest instances are equal + /// + /// Instance of UploadVendorDocsRequest to be compared + /// Boolean + public bool Equals(UploadVendorDocsRequest input) + { + if (input == null) + { + return false; + } + return + ( + this.doc_type == input.doc_type || + (this.doc_type != null && + this.doc_type.Equals(input.doc_type)) + ) && + ( + this.doc_value == input.doc_value || + (this.doc_value != null && + this.doc_value.Equals(input.doc_value)) + ) && + ( + this.file == input.file || + (this.file != null && + this.file.Equals(input.file)) + ); + } + + public static Boolean checkPresenceOfKey(string jsonStringdoc_type) { + dynamic deserializedJsonString = JsonConvert.DeserializeObject(jsonStringdoc_type); + if (deserializedJsonString.ContainsKey("doc_type")) { + return true; + } + return false; + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.doc_type != null) + { + hashCode = (hashCode * 59) + this.doc_type.GetHashCode(); + } + if (this.doc_value != null) + { + hashCode = (hashCode * 59) + this.doc_value.GetHashCode(); + } + if (this.file != null) + { + hashCode = (hashCode * 59) + this.file.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/UploadVendorDocumentsResponse.cs b/src/cashfree_pg/Model/UploadVendorDocumentsResponse.cs new file mode 100644 index 0000000..f2b9b87 --- /dev/null +++ b/src/cashfree_pg/Model/UploadVendorDocumentsResponse.cs @@ -0,0 +1,209 @@ +/* + * 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: 2023-08-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 +{ + /// + /// Upload Vendor Document + /// + [DataContract(Name = "UploadVendorDocumentsResponse")] + public class UploadVendorDocumentsResponse : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// vendorId. + /// docType. + /// docValue. + /// status. + /// remarks. + public UploadVendorDocumentsResponse(string vendorId = default(string), string docType = default(string), string docValue = default(string), string status = default(string), string remarks = default(string)) + { + this.vendor_id = vendorId; + this.doc_type = docType; + this.doc_value = docValue; + this.status = status; + this.remarks = remarks; + } + + /// + /// Gets or Sets vendor_id + /// + [DataMember(Name = "vendor_id", EmitDefaultValue = false)] + public string vendor_id { get; set; } + + /// + /// Gets or Sets doc_type + /// + [DataMember(Name = "doc_type", EmitDefaultValue = false)] + public string doc_type { get; set; } + + /// + /// Gets or Sets doc_value + /// + [DataMember(Name = "doc_value", EmitDefaultValue = false)] + public string doc_value { get; set; } + + /// + /// Gets or Sets status + /// + [DataMember(Name = "status", EmitDefaultValue = false)] + public string status { get; set; } + + /// + /// Gets or Sets remarks + /// + [DataMember(Name = "remarks", EmitDefaultValue = false)] + public string remarks { 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 UploadVendorDocumentsResponse {\n"); + sb.Append(" vendor_id: ").Append(vendor_id).Append("\n"); + sb.Append(" doc_type: ").Append(doc_type).Append("\n"); + sb.Append(" doc_value: ").Append(doc_value).Append("\n"); + sb.Append(" status: ").Append(status).Append("\n"); + sb.Append(" remarks: ").Append(remarks).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 UploadVendorDocumentsResponse); + } + + /// + /// Returns true if UploadVendorDocumentsResponse instances are equal + /// + /// Instance of UploadVendorDocumentsResponse to be compared + /// Boolean + public bool Equals(UploadVendorDocumentsResponse input) + { + if (input == null) + { + return false; + } + return + ( + this.vendor_id == input.vendor_id || + (this.vendor_id != null && + this.vendor_id.Equals(input.vendor_id)) + ) && + ( + this.doc_type == input.doc_type || + (this.doc_type != null && + this.doc_type.Equals(input.doc_type)) + ) && + ( + this.doc_value == input.doc_value || + (this.doc_value != null && + this.doc_value.Equals(input.doc_value)) + ) && + ( + this.status == input.status || + (this.status != null && + this.status.Equals(input.status)) + ) && + ( + this.remarks == input.remarks || + (this.remarks != null && + this.remarks.Equals(input.remarks)) + ); + } + + public static Boolean checkPresenceOfKey(string jsonStringvendor_id) { + dynamic deserializedJsonString = JsonConvert.DeserializeObject(jsonStringvendor_id); + if (deserializedJsonString.ContainsKey("vendor_id")) { + return true; + } + return false; + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.vendor_id != null) + { + hashCode = (hashCode * 59) + this.vendor_id.GetHashCode(); + } + if (this.doc_type != null) + { + hashCode = (hashCode * 59) + this.doc_type.GetHashCode(); + } + if (this.doc_value != null) + { + hashCode = (hashCode * 59) + this.doc_value.GetHashCode(); + } + if (this.status != null) + { + hashCode = (hashCode * 59) + this.status.GetHashCode(); + } + if (this.remarks != null) + { + hashCode = (hashCode * 59) + this.remarks.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/VendorBalance.cs b/src/cashfree_pg/Model/VendorBalance.cs new file mode 100644 index 0000000..aa1a5aa --- /dev/null +++ b/src/cashfree_pg/Model/VendorBalance.cs @@ -0,0 +1,179 @@ +/* + * 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: 2023-08-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 +{ + /// + /// Vendor Balance entity object + /// + [DataContract(Name = "VendorBalance")] + public class VendorBalance : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// merchantId. + /// vendorId. + /// merchantUnsettled. + /// vendorUnsettled. + public VendorBalance(decimal merchantId = default(decimal), string vendorId = default(string), decimal merchantUnsettled = default(decimal), decimal vendorUnsettled = default(decimal)) + { + this.merchant_id = merchantId; + this.vendor_id = vendorId; + this.merchant_unsettled = merchantUnsettled; + this.vendor_unsettled = vendorUnsettled; + } + + /// + /// Gets or Sets merchant_id + /// + [DataMember(Name = "merchant_id", EmitDefaultValue = false)] + public decimal merchant_id { get; set; } + + /// + /// Gets or Sets vendor_id + /// + [DataMember(Name = "vendor_id", EmitDefaultValue = false)] + public string vendor_id { get; set; } + + /// + /// Gets or Sets merchant_unsettled + /// + [DataMember(Name = "merchant_unsettled", EmitDefaultValue = false)] + public decimal merchant_unsettled { get; set; } + + /// + /// Gets or Sets vendor_unsettled + /// + [DataMember(Name = "vendor_unsettled", EmitDefaultValue = false)] + public decimal vendor_unsettled { 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 VendorBalance {\n"); + sb.Append(" merchant_id: ").Append(merchant_id).Append("\n"); + sb.Append(" vendor_id: ").Append(vendor_id).Append("\n"); + sb.Append(" merchant_unsettled: ").Append(merchant_unsettled).Append("\n"); + sb.Append(" vendor_unsettled: ").Append(vendor_unsettled).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 VendorBalance); + } + + /// + /// Returns true if VendorBalance instances are equal + /// + /// Instance of VendorBalance to be compared + /// Boolean + public bool Equals(VendorBalance input) + { + if (input == null) + { + return false; + } + return + ( + this.merchant_id == input.merchant_id || + this.merchant_id.Equals(input.merchant_id) + ) && + ( + this.vendor_id == input.vendor_id || + (this.vendor_id != null && + this.vendor_id.Equals(input.vendor_id)) + ) && + ( + this.merchant_unsettled == input.merchant_unsettled || + this.merchant_unsettled.Equals(input.merchant_unsettled) + ) && + ( + this.vendor_unsettled == input.vendor_unsettled || + this.vendor_unsettled.Equals(input.vendor_unsettled) + ); + } + + public static Boolean checkPresenceOfKey(string jsonStringmerchant_id) { + dynamic deserializedJsonString = JsonConvert.DeserializeObject(jsonStringmerchant_id); + if (deserializedJsonString.ContainsKey("merchant_id")) { + return true; + } + return false; + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.merchant_id.GetHashCode(); + if (this.vendor_id != null) + { + hashCode = (hashCode * 59) + this.vendor_id.GetHashCode(); + } + hashCode = (hashCode * 59) + this.merchant_unsettled.GetHashCode(); + hashCode = (hashCode * 59) + this.vendor_unsettled.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/VendorBalanceTransferCharges.cs b/src/cashfree_pg/Model/VendorBalanceTransferCharges.cs new file mode 100644 index 0000000..b307f27 --- /dev/null +++ b/src/cashfree_pg/Model/VendorBalanceTransferCharges.cs @@ -0,0 +1,193 @@ +/* + * 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: 2023-08-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 +{ + /// + /// Vendor Balance Transfer Charges entity object + /// + [DataContract(Name = "VendorBalanceTransferCharges")] + public class VendorBalanceTransferCharges : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// serviceCharges. + /// serviceTax. + /// amount. + /// billedTo. + /// isPostpaid. + public VendorBalanceTransferCharges(decimal serviceCharges = default(decimal), decimal serviceTax = default(decimal), decimal amount = default(decimal), string billedTo = default(string), bool isPostpaid = default(bool)) + { + this.service_charges = serviceCharges; + this.service_tax = serviceTax; + this.amount = amount; + this.billed_to = billedTo; + this.is_postpaid = isPostpaid; + } + + /// + /// Gets or Sets service_charges + /// + [DataMember(Name = "service_charges", EmitDefaultValue = false)] + public decimal service_charges { get; set; } + + /// + /// Gets or Sets service_tax + /// + [DataMember(Name = "service_tax", EmitDefaultValue = false)] + public decimal service_tax { get; set; } + + /// + /// Gets or Sets amount + /// + [DataMember(Name = "amount", EmitDefaultValue = false)] + public decimal amount { get; set; } + + /// + /// Gets or Sets billed_to + /// + [DataMember(Name = "billed_to", EmitDefaultValue = false)] + public string billed_to { get; set; } + + /// + /// Gets or Sets is_postpaid + /// + [DataMember(Name = "is_postpaid", EmitDefaultValue = true)] + public bool is_postpaid { 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 VendorBalanceTransferCharges {\n"); + sb.Append(" service_charges: ").Append(service_charges).Append("\n"); + sb.Append(" service_tax: ").Append(service_tax).Append("\n"); + sb.Append(" amount: ").Append(amount).Append("\n"); + sb.Append(" billed_to: ").Append(billed_to).Append("\n"); + sb.Append(" is_postpaid: ").Append(is_postpaid).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 VendorBalanceTransferCharges); + } + + /// + /// Returns true if VendorBalanceTransferCharges instances are equal + /// + /// Instance of VendorBalanceTransferCharges to be compared + /// Boolean + public bool Equals(VendorBalanceTransferCharges input) + { + if (input == null) + { + return false; + } + return + ( + this.service_charges == input.service_charges || + this.service_charges.Equals(input.service_charges) + ) && + ( + this.service_tax == input.service_tax || + this.service_tax.Equals(input.service_tax) + ) && + ( + this.amount == input.amount || + this.amount.Equals(input.amount) + ) && + ( + this.billed_to == input.billed_to || + (this.billed_to != null && + this.billed_to.Equals(input.billed_to)) + ) && + ( + this.is_postpaid == input.is_postpaid || + this.is_postpaid.Equals(input.is_postpaid) + ); + } + + public static Boolean checkPresenceOfKey(string jsonStringservice_charges) { + dynamic deserializedJsonString = JsonConvert.DeserializeObject(jsonStringservice_charges); + if (deserializedJsonString.ContainsKey("service_charges")) { + return true; + } + return false; + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.service_charges.GetHashCode(); + hashCode = (hashCode * 59) + this.service_tax.GetHashCode(); + hashCode = (hashCode * 59) + this.amount.GetHashCode(); + if (this.billed_to != null) + { + hashCode = (hashCode * 59) + this.billed_to.GetHashCode(); + } + hashCode = (hashCode * 59) + this.is_postpaid.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/VendorDocumentDownloadResponse.cs b/src/cashfree_pg/Model/VendorDocumentDownloadResponse.cs new file mode 100644 index 0000000..088aa79 --- /dev/null +++ b/src/cashfree_pg/Model/VendorDocumentDownloadResponse.cs @@ -0,0 +1,137 @@ +/* + * 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: 2023-08-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 +{ + /// + /// Download Vendor Document + /// + [DataContract(Name = "VendorDocumentDownloadResponse")] + public class VendorDocumentDownloadResponse : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// downloadUrl. + public VendorDocumentDownloadResponse(string downloadUrl = default(string)) + { + this.download_url = downloadUrl; + } + + /// + /// Gets or Sets download_url + /// + [DataMember(Name = "download_url", EmitDefaultValue = false)] + public string download_url { 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 VendorDocumentDownloadResponse {\n"); + sb.Append(" download_url: ").Append(download_url).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 VendorDocumentDownloadResponse); + } + + /// + /// Returns true if VendorDocumentDownloadResponse instances are equal + /// + /// Instance of VendorDocumentDownloadResponse to be compared + /// Boolean + public bool Equals(VendorDocumentDownloadResponse input) + { + if (input == null) + { + return false; + } + return + ( + this.download_url == input.download_url || + (this.download_url != null && + this.download_url.Equals(input.download_url)) + ); + } + + public static Boolean checkPresenceOfKey(string jsonStringdownload_url) { + dynamic deserializedJsonString = JsonConvert.DeserializeObject(jsonStringdownload_url); + if (deserializedJsonString.ContainsKey("download_url")) { + return true; + } + return false; + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.download_url != null) + { + hashCode = (hashCode * 59) + this.download_url.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/VendorDocumentsResponse.cs b/src/cashfree_pg/Model/VendorDocumentsResponse.cs new file mode 100644 index 0000000..bd34318 --- /dev/null +++ b/src/cashfree_pg/Model/VendorDocumentsResponse.cs @@ -0,0 +1,138 @@ +/* + * 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: 2023-08-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 +{ + /// + /// Get Vendor Documents + /// + [DataContract(Name = "VendorDocumentsResponse")] + public class VendorDocumentsResponse : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// documents. + public VendorDocumentsResponse(List documents = default(List)) + { + this.documents = documents; + } + + /// + /// Gets or Sets documents + /// + [DataMember(Name = "documents", EmitDefaultValue = false)] + public List documents { 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 VendorDocumentsResponse {\n"); + sb.Append(" documents: ").Append(documents).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 VendorDocumentsResponse); + } + + /// + /// Returns true if VendorDocumentsResponse instances are equal + /// + /// Instance of VendorDocumentsResponse to be compared + /// Boolean + public bool Equals(VendorDocumentsResponse input) + { + if (input == null) + { + return false; + } + return + ( + this.documents == input.documents || + this.documents != null && + input.documents != null && + this.documents.SequenceEqual(input.documents) + ); + } + + public static Boolean checkPresenceOfKey(string jsonStringdocuments) { + dynamic deserializedJsonString = JsonConvert.DeserializeObject(jsonStringdocuments); + if (deserializedJsonString.ContainsKey("documents")) { + return true; + } + return false; + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.documents != null) + { + hashCode = (hashCode * 59) + this.documents.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/VendorEntity.cs b/src/cashfree_pg/Model/VendorEntity.cs new file mode 100644 index 0000000..673da81 --- /dev/null +++ b/src/cashfree_pg/Model/VendorEntity.cs @@ -0,0 +1,374 @@ +/* + * 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: 2023-08-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 +{ + /// + /// Vendor entity object + /// + [DataContract(Name = "VendorEntity")] + public class VendorEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// email. + /// status. + /// phone. + /// name. + /// vendorId. + /// addedOn. + /// updatedOn. + /// bank. + /// upi. + /// scheduleOption. + /// vendorType. + /// accountType. + /// businessType. + /// relatedDocs. + public VendorEntity(string email = default(string), string status = default(string), string phone = default(string), string name = default(string), string vendorId = default(string), string addedOn = default(string), string updatedOn = default(string), List bank = default(List), string upi = default(string), List scheduleOption = default(List), string vendorType = default(string), string accountType = default(string), string businessType = default(string), List relatedDocs = default(List)) + { + this.email = email; + this.status = status; + this.phone = phone; + this.name = name; + this.vendor_id = vendorId; + this.added_on = addedOn; + this.updated_on = updatedOn; + this.bank = bank; + this.upi = upi; + this.schedule_option = scheduleOption; + this.vendor_type = vendorType; + this.account_type = accountType; + this.business_type = businessType; + this.related_docs = relatedDocs; + } + + /// + /// Gets or Sets email + /// + [DataMember(Name = "email", EmitDefaultValue = false)] + public string email { get; set; } + + /// + /// Gets or Sets status + /// + [DataMember(Name = "status", EmitDefaultValue = false)] + public string status { get; set; } + + /// + /// Gets or Sets phone + /// + [DataMember(Name = "phone", EmitDefaultValue = false)] + public string phone { get; set; } + + /// + /// Gets or Sets name + /// + [DataMember(Name = "name", EmitDefaultValue = false)] + public string name { get; set; } + + /// + /// Gets or Sets vendor_id + /// + [DataMember(Name = "vendor_id", EmitDefaultValue = false)] + public string vendor_id { get; set; } + + /// + /// Gets or Sets added_on + /// + [DataMember(Name = "added_on", EmitDefaultValue = false)] + public string added_on { get; set; } + + /// + /// Gets or Sets updated_on + /// + [DataMember(Name = "updated_on", EmitDefaultValue = false)] + public string updated_on { get; set; } + + /// + /// Gets or Sets bank + /// + [DataMember(Name = "bank", EmitDefaultValue = false)] + public List bank { get; set; } + + /// + /// Gets or Sets upi + /// + [DataMember(Name = "upi", EmitDefaultValue = false)] + public string upi { get; set; } + + /// + /// Gets or Sets schedule_option + /// + [DataMember(Name = "schedule_option", EmitDefaultValue = false)] + public List schedule_option { get; set; } + + /// + /// Gets or Sets vendor_type + /// + [DataMember(Name = "vendor_type", EmitDefaultValue = false)] + public string vendor_type { get; set; } + + /// + /// Gets or Sets account_type + /// + [DataMember(Name = "account_type", EmitDefaultValue = false)] + public string account_type { get; set; } + + /// + /// Gets or Sets business_type + /// + [DataMember(Name = "business_type", EmitDefaultValue = false)] + public string business_type { get; set; } + + /// + /// Gets or Sets related_docs + /// + [DataMember(Name = "related_docs", EmitDefaultValue = false)] + public List related_docs { 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 VendorEntity {\n"); + sb.Append(" email: ").Append(email).Append("\n"); + sb.Append(" status: ").Append(status).Append("\n"); + sb.Append(" phone: ").Append(phone).Append("\n"); + sb.Append(" name: ").Append(name).Append("\n"); + sb.Append(" vendor_id: ").Append(vendor_id).Append("\n"); + sb.Append(" added_on: ").Append(added_on).Append("\n"); + sb.Append(" updated_on: ").Append(updated_on).Append("\n"); + sb.Append(" bank: ").Append(bank).Append("\n"); + sb.Append(" upi: ").Append(upi).Append("\n"); + sb.Append(" schedule_option: ").Append(schedule_option).Append("\n"); + sb.Append(" vendor_type: ").Append(vendor_type).Append("\n"); + sb.Append(" account_type: ").Append(account_type).Append("\n"); + sb.Append(" business_type: ").Append(business_type).Append("\n"); + sb.Append(" related_docs: ").Append(related_docs).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 VendorEntity); + } + + /// + /// Returns true if VendorEntity instances are equal + /// + /// Instance of VendorEntity to be compared + /// Boolean + public bool Equals(VendorEntity input) + { + if (input == null) + { + return false; + } + return + ( + this.email == input.email || + (this.email != null && + this.email.Equals(input.email)) + ) && + ( + this.status == input.status || + (this.status != null && + this.status.Equals(input.status)) + ) && + ( + this.phone == input.phone || + (this.phone != null && + this.phone.Equals(input.phone)) + ) && + ( + this.name == input.name || + (this.name != null && + this.name.Equals(input.name)) + ) && + ( + this.vendor_id == input.vendor_id || + (this.vendor_id != null && + this.vendor_id.Equals(input.vendor_id)) + ) && + ( + this.added_on == input.added_on || + (this.added_on != null && + this.added_on.Equals(input.added_on)) + ) && + ( + this.updated_on == input.updated_on || + (this.updated_on != null && + this.updated_on.Equals(input.updated_on)) + ) && + ( + this.bank == input.bank || + this.bank != null && + input.bank != null && + this.bank.SequenceEqual(input.bank) + ) && + ( + this.upi == input.upi || + (this.upi != null && + this.upi.Equals(input.upi)) + ) && + ( + this.schedule_option == input.schedule_option || + this.schedule_option != null && + input.schedule_option != null && + this.schedule_option.SequenceEqual(input.schedule_option) + ) && + ( + this.vendor_type == input.vendor_type || + (this.vendor_type != null && + this.vendor_type.Equals(input.vendor_type)) + ) && + ( + this.account_type == input.account_type || + (this.account_type != null && + this.account_type.Equals(input.account_type)) + ) && + ( + this.business_type == input.business_type || + (this.business_type != null && + this.business_type.Equals(input.business_type)) + ) && + ( + this.related_docs == input.related_docs || + this.related_docs != null && + input.related_docs != null && + this.related_docs.SequenceEqual(input.related_docs) + ); + } + + public static Boolean checkPresenceOfKey(string jsonStringemail) { + dynamic deserializedJsonString = JsonConvert.DeserializeObject(jsonStringemail); + if (deserializedJsonString.ContainsKey("email")) { + return true; + } + return false; + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.email != null) + { + hashCode = (hashCode * 59) + this.email.GetHashCode(); + } + if (this.status != null) + { + hashCode = (hashCode * 59) + this.status.GetHashCode(); + } + if (this.phone != null) + { + hashCode = (hashCode * 59) + this.phone.GetHashCode(); + } + if (this.name != null) + { + hashCode = (hashCode * 59) + this.name.GetHashCode(); + } + if (this.vendor_id != null) + { + hashCode = (hashCode * 59) + this.vendor_id.GetHashCode(); + } + if (this.added_on != null) + { + hashCode = (hashCode * 59) + this.added_on.GetHashCode(); + } + if (this.updated_on != null) + { + hashCode = (hashCode * 59) + this.updated_on.GetHashCode(); + } + if (this.bank != null) + { + hashCode = (hashCode * 59) + this.bank.GetHashCode(); + } + if (this.upi != null) + { + hashCode = (hashCode * 59) + this.upi.GetHashCode(); + } + if (this.schedule_option != null) + { + hashCode = (hashCode * 59) + this.schedule_option.GetHashCode(); + } + if (this.vendor_type != null) + { + hashCode = (hashCode * 59) + this.vendor_type.GetHashCode(); + } + if (this.account_type != null) + { + hashCode = (hashCode * 59) + this.account_type.GetHashCode(); + } + if (this.business_type != null) + { + hashCode = (hashCode * 59) + this.business_type.GetHashCode(); + } + if (this.related_docs != null) + { + hashCode = (hashCode * 59) + this.related_docs.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/VendorEntityRelatedDocsInner.cs b/src/cashfree_pg/Model/VendorEntityRelatedDocsInner.cs new file mode 100644 index 0000000..d069a72 --- /dev/null +++ b/src/cashfree_pg/Model/VendorEntityRelatedDocsInner.cs @@ -0,0 +1,209 @@ +/* + * 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: 2023-08-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 +{ + /// + /// VendorEntityRelatedDocsInner + /// + [DataContract(Name = "VendorEntity_related_docs_inner")] + public class VendorEntityRelatedDocsInner : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// vendorId. + /// docType. + /// docValue. + /// status. + /// remarks. + public VendorEntityRelatedDocsInner(string vendorId = default(string), string docType = default(string), string docValue = default(string), string status = default(string), string remarks = default(string)) + { + this.vendor_id = vendorId; + this.doc_type = docType; + this.doc_value = docValue; + this.status = status; + this.remarks = remarks; + } + + /// + /// Gets or Sets vendor_id + /// + [DataMember(Name = "vendor_id", EmitDefaultValue = false)] + public string vendor_id { get; set; } + + /// + /// Gets or Sets doc_type + /// + [DataMember(Name = "doc_type", EmitDefaultValue = false)] + public string doc_type { get; set; } + + /// + /// Gets or Sets doc_value + /// + [DataMember(Name = "doc_value", EmitDefaultValue = false)] + public string doc_value { get; set; } + + /// + /// Gets or Sets status + /// + [DataMember(Name = "status", EmitDefaultValue = false)] + public string status { get; set; } + + /// + /// Gets or Sets remarks + /// + [DataMember(Name = "remarks", EmitDefaultValue = false)] + public string remarks { 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 VendorEntityRelatedDocsInner {\n"); + sb.Append(" vendor_id: ").Append(vendor_id).Append("\n"); + sb.Append(" doc_type: ").Append(doc_type).Append("\n"); + sb.Append(" doc_value: ").Append(doc_value).Append("\n"); + sb.Append(" status: ").Append(status).Append("\n"); + sb.Append(" remarks: ").Append(remarks).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 VendorEntityRelatedDocsInner); + } + + /// + /// Returns true if VendorEntityRelatedDocsInner instances are equal + /// + /// Instance of VendorEntityRelatedDocsInner to be compared + /// Boolean + public bool Equals(VendorEntityRelatedDocsInner input) + { + if (input == null) + { + return false; + } + return + ( + this.vendor_id == input.vendor_id || + (this.vendor_id != null && + this.vendor_id.Equals(input.vendor_id)) + ) && + ( + this.doc_type == input.doc_type || + (this.doc_type != null && + this.doc_type.Equals(input.doc_type)) + ) && + ( + this.doc_value == input.doc_value || + (this.doc_value != null && + this.doc_value.Equals(input.doc_value)) + ) && + ( + this.status == input.status || + (this.status != null && + this.status.Equals(input.status)) + ) && + ( + this.remarks == input.remarks || + (this.remarks != null && + this.remarks.Equals(input.remarks)) + ); + } + + public static Boolean checkPresenceOfKey(string jsonStringvendor_id) { + dynamic deserializedJsonString = JsonConvert.DeserializeObject(jsonStringvendor_id); + if (deserializedJsonString.ContainsKey("vendor_id")) { + return true; + } + return false; + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.vendor_id != null) + { + hashCode = (hashCode * 59) + this.vendor_id.GetHashCode(); + } + if (this.doc_type != null) + { + hashCode = (hashCode * 59) + this.doc_type.GetHashCode(); + } + if (this.doc_value != null) + { + hashCode = (hashCode * 59) + this.doc_value.GetHashCode(); + } + if (this.status != null) + { + hashCode = (hashCode * 59) + this.status.GetHashCode(); + } + if (this.remarks != null) + { + hashCode = (hashCode * 59) + this.remarks.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/cashfree_pg.csproj b/src/cashfree_pg/cashfree_pg.csproj index 239b230..975599a 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.7 + 4.0.9 LICENSE.md bin\$(Configuration)\$(TargetFramework)\cashfree_pg.xml https://github.com/cashfree/cashfree-pg-sdk-dotnet.git