From 55c6670d1313937d3236333e4af5e21f34a5155d Mon Sep 17 00:00:00 2001 From: bitbucket-pipelines Date: Wed, 17 Jul 2024 09:00:41 +0000 Subject: [PATCH] Generating .Net SDK. --- .openapi-generator/FILES | 39 +- cashfree_pg.sln | 10 +- docs/CARD.md | 18 + docs/CreateSubscriptionPaymentRequest.md | 2 +- ...SubscriptionPaymentRequestPaymentMethod.md | 27 ++ docs/CreateSubscriptionPaymentResponse.md | 20 + docs/CreateVendorRequest.md | 2 +- docs/CustomerDetails.md | 2 +- docs/CustomerDetailsResponse.md | 2 +- docs/ENACH.md | 17 + docs/PNACH.md | 18 + docs/PaymentLinksApi.md | 6 +- docs/SubscriptionApi.md | 20 +- docs/SubscriptionPaymentEntity.md | 2 +- ...SubscriptionPaymentEntityFailureDetails.md | 10 + docs/UPI.md | 12 + docs/UpdateVendorRequest.md | 2 +- docs/UpdateVendorResponse.md | 2 +- docs/VendorDocumentsResponse.md | 2 +- docs/VendorEntity.md | 2 +- docs/VendorEntityRelatedDocsInner.md | 14 + src/cashfree_pg/Client/ApiClient.cs | 283 ++++++------ src/cashfree_pg/Client/Configuration.cs | 6 +- src/cashfree_pg/Model/CARD.cs | 271 ++++++++++++ .../Model/CreateSubscriptionPaymentRequest.cs | 9 +- ...SubscriptionPaymentRequestPaymentMethod.cs | 414 ++++++++++++++++++ .../CreateSubscriptionPaymentResponse.cs | 305 +++++++++++++ src/cashfree_pg/Model/CreateVendorRequest.cs | 6 +- src/cashfree_pg/Model/CustomerDetails.cs | 2 +- .../Model/CustomerDetailsResponse.cs | 6 +- src/cashfree_pg/Model/ENACH.cs | 252 +++++++++++ src/cashfree_pg/Model/PNACH.cs | 271 ++++++++++++ .../Model/SubscriptionPaymentEntity.cs | 4 +- ...SubscriptionPaymentEntityFailureDetails.cs | 138 ++++++ src/cashfree_pg/Model/UPI.cs | 156 +++++++ src/cashfree_pg/Model/UpdateVendorRequest.cs | 6 +- src/cashfree_pg/Model/UpdateVendorResponse.cs | 4 +- .../Model/VendorDocumentsResponse.cs | 4 +- src/cashfree_pg/Model/VendorEntity.cs | 4 +- src/cashfree_pg/cashfree_pg.csproj | 2 +- 40 files changed, 2165 insertions(+), 207 deletions(-) create mode 100644 docs/CARD.md create mode 100644 docs/CreateSubscriptionPaymentRequestPaymentMethod.md create mode 100644 docs/CreateSubscriptionPaymentResponse.md create mode 100644 docs/ENACH.md create mode 100644 docs/PNACH.md create mode 100644 docs/SubscriptionPaymentEntityFailureDetails.md create mode 100644 docs/UPI.md create mode 100644 docs/VendorEntityRelatedDocsInner.md create mode 100644 src/cashfree_pg/Model/CARD.cs create mode 100644 src/cashfree_pg/Model/CreateSubscriptionPaymentRequestPaymentMethod.cs create mode 100644 src/cashfree_pg/Model/CreateSubscriptionPaymentResponse.cs create mode 100644 src/cashfree_pg/Model/ENACH.cs create mode 100644 src/cashfree_pg/Model/PNACH.cs create mode 100644 src/cashfree_pg/Model/SubscriptionPaymentEntityFailureDetails.cs create mode 100644 src/cashfree_pg/Model/UPI.cs diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index a1266b3..c0c31cd 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -21,6 +21,7 @@ docs/BalanceDetails.md docs/BankDetails.md docs/Banktransfer.md docs/BanktransferPaymentMethod.md +docs/CARD.md docs/Card.md docs/CardEMI.md docs/CardEMIPaymentMethod.md @@ -39,10 +40,9 @@ docs/CreateOrderRequest.md docs/CreateOrderSettlementRequestBody.md docs/CreateOrderSettlementRequestBodyMetaData.md docs/CreatePlanRequest.md -docs/CreateSubscriptionPaymentAuthResponse.md -docs/CreateSubscriptionPaymentAuthResponseFailureDetails.md -docs/CreateSubscriptionPaymentChargeResponse.md docs/CreateSubscriptionPaymentRequest.md +docs/CreateSubscriptionPaymentRequestPaymentMethod.md +docs/CreateSubscriptionPaymentResponse.md docs/CreateSubscriptionRefundRequest.md docs/CreateSubscriptionRequest.md docs/CreateSubscriptionRequestAuthorizationDetails.md @@ -62,6 +62,7 @@ docs/CustomersApi.md docs/DiscountDetails.md docs/EMIOffer.md docs/EMIPlansArray.md +docs/ENACH.md docs/ESOrderReconRequest.md docs/ESOrderReconRequestFilters.md docs/ESOrderReconRequestPagination.md @@ -135,6 +136,7 @@ docs/OrderMeta.md docs/OrderPayData.md docs/OrdersApi.md docs/PGReconciliationApi.md +docs/PNACH.md docs/PayOrderEntity.md docs/PayOrderRequest.md docs/PayOrderRequestPaymentMethod.md @@ -202,7 +204,6 @@ docs/StaticSplitRequest.md docs/StaticSplitRequestSchemeInner.md docs/StaticSplitResponse.md docs/StaticSplitResponseSchemeInner.md -docs/SubsCreatePayment200Response.md docs/SubscriptionApi.md docs/SubscriptionBankDetails.md docs/SubscriptionCustomerDetails.md @@ -213,6 +214,7 @@ docs/SubscriptionEligibilityResponse.md docs/SubscriptionEntity.md docs/SubscriptionEntitySubscriptionMeta.md docs/SubscriptionPaymentEntity.md +docs/SubscriptionPaymentEntityFailureDetails.md docs/SubscriptionPaymentRefundEntity.md docs/SubscriptionPaymentSplitItem.md docs/TerminalDetails.md @@ -223,6 +225,7 @@ docs/TerminateOrderRequest.md docs/TokenVaultApi.md docs/TransferDetails.md docs/TransferDetailsTagsInner.md +docs/UPI.md docs/UPIAuthorizeDetails.md docs/UPIPaymentMethod.md docs/UpdateTerminalEntity.md @@ -231,7 +234,6 @@ docs/UpdateTerminalRequestTerminalMeta.md docs/UpdateTerminalStatusRequest.md docs/UpdateVendorRequest.md docs/UpdateVendorResponse.md -docs/UpdateVendorResponseRelatedDocsInner.md docs/Upi.md docs/UpiDetails.md docs/UploadPnachImageResponse.md @@ -243,6 +245,7 @@ docs/VendorBalanceTransferCharges.md docs/VendorDocumentDownloadResponse.md docs/VendorDocumentsResponse.md docs/VendorEntity.md +docs/VendorEntityRelatedDocsInner.md docs/VendorSplit.md docs/WalletOffer.md git_push.sh @@ -278,6 +281,7 @@ 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/CARDTests.cs src/cashfree_pg.Test/Model/CardEMIPaymentMethodTests.cs src/cashfree_pg.Test/Model/CardEMITests.cs src/cashfree_pg.Test/Model/CardOfferTests.cs @@ -296,10 +300,9 @@ src/cashfree_pg.Test/Model/CreateOrderRequestTests.cs src/cashfree_pg.Test/Model/CreateOrderSettlementRequestBodyMetaDataTests.cs src/cashfree_pg.Test/Model/CreateOrderSettlementRequestBodyTests.cs src/cashfree_pg.Test/Model/CreatePlanRequestTests.cs -src/cashfree_pg.Test/Model/CreateSubscriptionPaymentAuthResponseFailureDetailsTests.cs -src/cashfree_pg.Test/Model/CreateSubscriptionPaymentAuthResponseTests.cs -src/cashfree_pg.Test/Model/CreateSubscriptionPaymentChargeResponseTests.cs +src/cashfree_pg.Test/Model/CreateSubscriptionPaymentRequestPaymentMethodTests.cs src/cashfree_pg.Test/Model/CreateSubscriptionPaymentRequestTests.cs +src/cashfree_pg.Test/Model/CreateSubscriptionPaymentResponseTests.cs src/cashfree_pg.Test/Model/CreateSubscriptionRefundRequestTests.cs src/cashfree_pg.Test/Model/CreateSubscriptionRequestAuthorizationDetailsTests.cs src/cashfree_pg.Test/Model/CreateSubscriptionRequestPlanDetailsTests.cs @@ -318,6 +321,7 @@ 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/ENACHTests.cs src/cashfree_pg.Test/Model/ESOrderReconRequestFiltersTests.cs src/cashfree_pg.Test/Model/ESOrderReconRequestPaginationTests.cs src/cashfree_pg.Test/Model/ESOrderReconRequestTests.cs @@ -386,6 +390,7 @@ src/cashfree_pg.Test/Model/OrderCreateRefundRequestTests.cs src/cashfree_pg.Test/Model/OrderEntityTests.cs src/cashfree_pg.Test/Model/OrderMetaTests.cs src/cashfree_pg.Test/Model/OrderPayDataTests.cs +src/cashfree_pg.Test/Model/PNACHTests.cs src/cashfree_pg.Test/Model/PayOrderEntityTests.cs src/cashfree_pg.Test/Model/PayOrderRequestPaymentMethodTests.cs src/cashfree_pg.Test/Model/PayOrderRequestTests.cs @@ -446,7 +451,6 @@ 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/SubsCreatePayment200ResponseTests.cs src/cashfree_pg.Test/Model/SubscriptionBankDetailsTests.cs src/cashfree_pg.Test/Model/SubscriptionCustomerDetailsTests.cs src/cashfree_pg.Test/Model/SubscriptionEligibilityRequestFiltersTests.cs @@ -455,6 +459,7 @@ src/cashfree_pg.Test/Model/SubscriptionEligibilityRequestTests.cs src/cashfree_pg.Test/Model/SubscriptionEligibilityResponseTests.cs src/cashfree_pg.Test/Model/SubscriptionEntitySubscriptionMetaTests.cs src/cashfree_pg.Test/Model/SubscriptionEntityTests.cs +src/cashfree_pg.Test/Model/SubscriptionPaymentEntityFailureDetailsTests.cs src/cashfree_pg.Test/Model/SubscriptionPaymentEntityTests.cs src/cashfree_pg.Test/Model/SubscriptionPaymentRefundEntityTests.cs src/cashfree_pg.Test/Model/SubscriptionPaymentSplitItemTests.cs @@ -467,12 +472,12 @@ 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/UPITests.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/UpdateVendorResponseRelatedDocsInnerTests.cs src/cashfree_pg.Test/Model/UpdateVendorResponseTests.cs src/cashfree_pg.Test/Model/UpiDetailsTests.cs src/cashfree_pg.Test/Model/UpiTests.cs @@ -484,6 +489,7 @@ 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 @@ -537,6 +543,7 @@ 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/Card.cs src/cashfree_pg/Model/CardEMI.cs src/cashfree_pg/Model/CardEMIPaymentMethod.cs @@ -555,10 +562,9 @@ src/cashfree_pg/Model/CreateOrderRequest.cs src/cashfree_pg/Model/CreateOrderSettlementRequestBody.cs src/cashfree_pg/Model/CreateOrderSettlementRequestBodyMetaData.cs src/cashfree_pg/Model/CreatePlanRequest.cs -src/cashfree_pg/Model/CreateSubscriptionPaymentAuthResponse.cs -src/cashfree_pg/Model/CreateSubscriptionPaymentAuthResponseFailureDetails.cs -src/cashfree_pg/Model/CreateSubscriptionPaymentChargeResponse.cs src/cashfree_pg/Model/CreateSubscriptionPaymentRequest.cs +src/cashfree_pg/Model/CreateSubscriptionPaymentRequestPaymentMethod.cs +src/cashfree_pg/Model/CreateSubscriptionPaymentResponse.cs src/cashfree_pg/Model/CreateSubscriptionRefundRequest.cs src/cashfree_pg/Model/CreateSubscriptionRequest.cs src/cashfree_pg/Model/CreateSubscriptionRequestAuthorizationDetails.cs @@ -577,6 +583,7 @@ 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/ENACH.cs src/cashfree_pg/Model/ESOrderReconRequest.cs src/cashfree_pg/Model/ESOrderReconRequestFilters.cs src/cashfree_pg/Model/ESOrderReconRequestPagination.cs @@ -645,6 +652,7 @@ src/cashfree_pg/Model/OrderCreateRefundRequest.cs src/cashfree_pg/Model/OrderEntity.cs src/cashfree_pg/Model/OrderMeta.cs src/cashfree_pg/Model/OrderPayData.cs +src/cashfree_pg/Model/PNACH.cs src/cashfree_pg/Model/PayOrderEntity.cs src/cashfree_pg/Model/PayOrderRequest.cs src/cashfree_pg/Model/PayOrderRequestPaymentMethod.cs @@ -705,7 +713,6 @@ 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/SubsCreatePayment200Response.cs src/cashfree_pg/Model/SubscriptionBankDetails.cs src/cashfree_pg/Model/SubscriptionCustomerDetails.cs src/cashfree_pg/Model/SubscriptionEligibilityRequest.cs @@ -715,6 +722,7 @@ src/cashfree_pg/Model/SubscriptionEligibilityResponse.cs src/cashfree_pg/Model/SubscriptionEntity.cs src/cashfree_pg/Model/SubscriptionEntitySubscriptionMeta.cs src/cashfree_pg/Model/SubscriptionPaymentEntity.cs +src/cashfree_pg/Model/SubscriptionPaymentEntityFailureDetails.cs src/cashfree_pg/Model/SubscriptionPaymentRefundEntity.cs src/cashfree_pg/Model/SubscriptionPaymentSplitItem.cs src/cashfree_pg/Model/TerminalDetails.cs @@ -724,6 +732,7 @@ 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/UPI.cs src/cashfree_pg/Model/UPIAuthorizeDetails.cs src/cashfree_pg/Model/UPIPaymentMethod.cs src/cashfree_pg/Model/UpdateTerminalEntity.cs @@ -732,7 +741,6 @@ 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/UpdateVendorResponseRelatedDocsInner.cs src/cashfree_pg/Model/Upi.cs src/cashfree_pg/Model/UpiDetails.cs src/cashfree_pg/Model/UploadPnachImageResponse.cs @@ -744,6 +752,7 @@ 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 1f84077..918a640 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", "{9F936ED6-7E5E-4306-8701-46614F05B721}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "cashfree_pg", "src\cashfree_pg\cashfree_pg.csproj", "{AAFD0A5A-5AA0-4CC9-AABF-93F34262F48C}" 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 - {9F936ED6-7E5E-4306-8701-46614F05B721}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {9F936ED6-7E5E-4306-8701-46614F05B721}.Debug|Any CPU.Build.0 = Debug|Any CPU - {9F936ED6-7E5E-4306-8701-46614F05B721}.Release|Any CPU.ActiveCfg = Release|Any CPU - {9F936ED6-7E5E-4306-8701-46614F05B721}.Release|Any CPU.Build.0 = Release|Any CPU + {AAFD0A5A-5AA0-4CC9-AABF-93F34262F48C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {AAFD0A5A-5AA0-4CC9-AABF-93F34262F48C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {AAFD0A5A-5AA0-4CC9-AABF-93F34262F48C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {AAFD0A5A-5AA0-4CC9-AABF-93F34262F48C}.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/CARD.md b/docs/CARD.md new file mode 100644 index 0000000..a731327 --- /dev/null +++ b/docs/CARD.md @@ -0,0 +1,18 @@ +# cashfree_pg.Model.CARD +payment method card. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**channel** | **string** | Channel. can be link | [optional] +**card_number** | **string** | Card number | [optional] +**card_holder_name** | **string** | Card holder name | [optional] +**card_expiry_mm** | **string** | Card expiry month | [optional] +**card_expiry_yy** | **string** | Card expiry year | [optional] +**card_cvv** | **string** | Card CVV | [optional] +**card_network** | **string** | Card network | [optional] +**card_type** | **string** | Card type | [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/CreateSubscriptionPaymentRequest.md b/docs/CreateSubscriptionPaymentRequest.md index 0ea6e1f..543dee3 100644 --- a/docs/CreateSubscriptionPaymentRequest.md +++ b/docs/CreateSubscriptionPaymentRequest.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **payment_schedule_date** | **string** | The date on which the payment is scheduled to be processed. Required for UPI and CARD payment modes. | [optional] **payment_remarks** | **string** | Payment remarks. | [optional] **payment_type** | **string** | Payment type. Can be AUTH or CHARGE. | -**payment_method** | **Object** | Payment method. Can be one of [\"upi\", \"enach\", \"pnach\", \"card\"] | [optional] +**payment_method** | [**CreateSubscriptionPaymentRequestPaymentMethod**](CreateSubscriptionPaymentRequestPaymentMethod.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/CreateSubscriptionPaymentRequestPaymentMethod.md b/docs/CreateSubscriptionPaymentRequestPaymentMethod.md new file mode 100644 index 0000000..bff19f6 --- /dev/null +++ b/docs/CreateSubscriptionPaymentRequestPaymentMethod.md @@ -0,0 +1,27 @@ +# cashfree_pg.Model.CreateSubscriptionPaymentRequestPaymentMethod +Payment method. Can be one of [\"upi\", \"enach\", \"pnach\", \"card\"] + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**upi_id** | **string** | | [optional] +**channel** | **string** | Channel. can be link | [optional] +**auth_mode** | **string** | Authentication mode. can be debit_card, aadhaar, or net_banking | [optional] +**account_holder_name** | **string** | Account holder name | [optional] +**account_number** | **string** | Account number | [optional] +**account_bank_code** | **string** | Account bank code | [optional] +**account_type** | **string** | Account type | [optional] +**account_ifsc** | **string** | Account IFSC | [optional] +**mandate_creation_date** | **string** | Mandate creation date | [optional] +**mandate_start_date** | **string** | Mandate start date | [optional] +**card_number** | **string** | Card number | [optional] +**card_holder_name** | **string** | Card holder name | [optional] +**card_expiry_mm** | **string** | Card expiry month | [optional] +**card_expiry_yy** | **string** | Card expiry year | [optional] +**card_cvv** | **string** | Card CVV | [optional] +**card_network** | **string** | Card network | [optional] +**card_type** | **string** | Card type | [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/CreateSubscriptionPaymentResponse.md b/docs/CreateSubscriptionPaymentResponse.md new file mode 100644 index 0000000..9caf495 --- /dev/null +++ b/docs/CreateSubscriptionPaymentResponse.md @@ -0,0 +1,20 @@ +# cashfree_pg.Model.CreateSubscriptionPaymentResponse +The response returned is Create Subscription Auth or Charge APIs. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cf_payment_id** | **string** | Cashfree subscription payment reference number | [optional] +**failure_details** | [**SubscriptionPaymentEntityFailureDetails**](SubscriptionPaymentEntityFailureDetails.md) | | [optional] +**payment_amount** | **decimal** | The charge amount of the payment. | [optional] +**payment_id** | **string** | A unique ID passed by merchant for identifying the transaction. | [optional] +**payment_initiated_date** | **string** | The date on which the payment was initiated. | [optional] +**payment_status** | **string** | Status of the payment. | [optional] +**payment_type** | **string** | Payment type. Can be AUTH or CHARGE. | [optional] +**subscription_id** | **string** | A unique ID passed by merchant for identifying the subscription. | [optional] +**data** | **Object** | Contains a payload for auth app links in case of AUTH. For charge, the payload is empty. | [optional] +**payment_method** | **string** | Payment method used for the authorization. | [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 index ad89b69..5d8a5ae 100644 --- a/docs/CreateVendorRequest.md +++ b/docs/CreateVendorRequest.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **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] +**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. | diff --git a/docs/CustomerDetails.md b/docs/CustomerDetails.md index 5835cf9..f637888 100644 --- a/docs/CustomerDetails.md +++ b/docs/CustomerDetails.md @@ -1,5 +1,5 @@ # cashfree_pg.Model.CustomerDetails -The customer details that are necessary. +The customer details that are necessary. Note that you can pass dummy details if your use case does not require the customer details. ## Properties diff --git a/docs/CustomerDetailsResponse.md b/docs/CustomerDetailsResponse.md index 79d76b5..d524237 100644 --- a/docs/CustomerDetailsResponse.md +++ b/docs/CustomerDetailsResponse.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **customer_bank_account_number** | **string** | Customer bank account. Required if you want to do a bank account check (TPV) | [optional] **customer_bank_ifsc** | **string** | Customer bank IFSC. Required if you want to do a bank account check (TPV) | [optional] **customer_bank_code** | **decimal** | Customer bank code. Required for net banking payments, if you want to do a bank account check (TPV) | [optional] -**customer_uid** | **string** | Customer identifier at Cashfree. You will get this when you create/get customer | [optional] +**customer_uid** | **string** | Customer identifier at Cashfree. You will get this when you create/get customer | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ENACH.md b/docs/ENACH.md new file mode 100644 index 0000000..a99d826 --- /dev/null +++ b/docs/ENACH.md @@ -0,0 +1,17 @@ +# cashfree_pg.Model.ENACH +payment method enach. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**channel** | **string** | Channel. can be link | [optional] +**auth_mode** | **string** | Authentication mode. can be debit_card, aadhaar, or net_banking | [optional] +**account_holder_name** | **string** | Account holder name | [optional] +**account_number** | **string** | Account number | [optional] +**account_bank_code** | **string** | Account bank code (required without AccountIFSC) | [optional] +**account_type** | **string** | Account type | [optional] +**account_ifsc** | **string** | Account IFSC | [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/PNACH.md b/docs/PNACH.md new file mode 100644 index 0000000..78b597a --- /dev/null +++ b/docs/PNACH.md @@ -0,0 +1,18 @@ +# cashfree_pg.Model.PNACH +payment method pnach. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**channel** | **string** | Channel. can be post | [optional] +**account_holder_name** | **string** | Account holder name | [optional] +**account_number** | **string** | Account number | [optional] +**account_bank_code** | **string** | Account bank code | [optional] +**account_type** | **string** | Account type | [optional] +**account_ifsc** | **string** | Account IFSC | [optional] +**mandate_creation_date** | **string** | Mandate creation date | [optional] +**mandate_start_date** | **string** | Mandate start date | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/PaymentLinksApi.md b/docs/PaymentLinksApi.md index 8ebc560..8a2240b 100644 --- a/docs/PaymentLinksApi.md +++ b/docs/PaymentLinksApi.md @@ -279,7 +279,7 @@ namespace Example # **PGLinkFetchOrders** -> List<PaymentLinkOrderEntity> PGLinkFetchOrders (string xApiVersion, string linkId, string? xRequestId = null, Guid? xIdempotencyKey = null) +> List<PaymentLinkOrderEntity> PGLinkFetchOrders (string xApiVersion, string linkId, string? xRequestId = null, Guid? xIdempotencyKey = null, string? status = null) Get Orders for a Payment Link @@ -311,11 +311,12 @@ namespace Example var linkId = your-link-id; // string | The payment link ID for which you want to view the details. var xRequestId = 4dfb9780-46fe-11ee-be56-0242ac120002; // string? | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional) var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) + var status = ALL; // string? | Mention What is status of orders you want to fetch, default is PAID. Possible value: ALL, PAID (optional) try { // Get Orders for a Payment Link - List result = cashfree.PGLinkFetchOrders(xApiVersion, linkId, xRequestId, xIdempotencyKey); + List result = cashfree.PGLinkFetchOrders(xApiVersion, linkId, xRequestId, xIdempotencyKey, status); Debug.WriteLine(result); } catch (ApiException e) @@ -337,6 +338,7 @@ namespace Example | **linkId** | **string** | The payment link ID for which you want to view the details. | | | **xRequestId** | **string?** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | [optional] | | **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] | +| **status** | **string?** | Mention What is status of orders you want to fetch, default is PAID. Possible value: ALL, PAID | [optional] | ### Return type diff --git a/docs/SubscriptionApi.md b/docs/SubscriptionApi.md index 61b400d..015582f 100644 --- a/docs/SubscriptionApi.md +++ b/docs/SubscriptionApi.md @@ -8,19 +8,19 @@ All URIs are relative to *https://sandbox.cashfree.com/pg* | [**SubsCreatePlan**](SubscriptionApi.md#subscreateplan) | **POST** /plans | Create a plan. | | [**SubsCreateRefund**](SubscriptionApi.md#subscreaterefund) | **POST** /subscriptions/{subscription_id}/refunds | Create a refund. | | [**SubsCreateSubscription**](SubscriptionApi.md#subscreatesubscription) | **POST** /subscriptions | Create Subscription | -| [**SubsFetchPlan**](SubscriptionApi.md#subsfetchplan) | **GET** /pg/plans/{plan_id} | Fetch Plan | +| [**SubsFetchPlan**](SubscriptionApi.md#subsfetchplan) | **GET** /plans/{plan_id} | Fetch Plan | | [**SubsFetchSubscription**](SubscriptionApi.md#subsfetchsubscription) | **GET** /subscriptions/{subscription_id} | Fetch Subscription | | [**SubsFetchSubscriptionPayment**](SubscriptionApi.md#subsfetchsubscriptionpayment) | **GET** /subscriptions/{subscription_id}/payments/{payment_id} | Fetch details of a single payment. | | [**SubsFetchSubscriptionPayments**](SubscriptionApi.md#subsfetchsubscriptionpayments) | **GET** /subscriptions/{subscription_id}/payments | Fetch details of all payments of a subscription. | | [**SubsFetchSubscriptionRefund**](SubscriptionApi.md#subsfetchsubscriptionrefund) | **GET** /subscriptions/{subscription_id}/refunds/{refund_id} | Fetch details of a refund. | | [**SubsManageSubscription**](SubscriptionApi.md#subsmanagesubscription) | **POST** /subscriptions/{subscription_id}/manage | Manage a subscription. | | [**SubsManageSubscriptionPayment**](SubscriptionApi.md#subsmanagesubscriptionpayment) | **POST** /subscriptions/{subscription_id}/payments/{payment_id}/manage | Manage a single payment. | -| [**SubscriptionDocumentUpload**](SubscriptionApi.md#subscriptiondocumentupload) | **POST** /subscriptions/pay/documents/{payment_id} | Upload Physical Nach for Physical Nach Authorization. | -| [**SubscriptionEligibility**](SubscriptionApi.md#subscriptioneligibility) | **POST** /subscriptions/eligibility/payment_methods | Get Eligible payment methods available for a subscription | +| [**SubscriptionDocumentUpload**](SubscriptionApi.md#subscriptiondocumentupload) | **POST** /subscriptions/pay/documents/{payment_id} | API to upload Physical Nach for Physical Nach Authorization. | +| [**SubscriptionEligibility**](SubscriptionApi.md#subscriptioneligibility) | **POST** /subscriptions/eligibility/payment_methods | API to get all the payment method details available for subscription payments. | # **SubsCreatePayment** -> SubsCreatePayment200Response SubsCreatePayment (string xApiVersion, CreateSubscriptionPaymentRequest createSubscriptionPaymentRequest, string? xRequestId = null, Guid? xIdempotencyKey = null) +> CreateSubscriptionPaymentResponse SubsCreatePayment (string xApiVersion, CreateSubscriptionPaymentRequest createSubscriptionPaymentRequest, string? xRequestId = null, Guid? xIdempotencyKey = null) Raise a charge or create an auth. @@ -56,7 +56,7 @@ namespace Example try { // Raise a charge or create an auth. - SubsCreatePayment200Response result = cashfree.SubsCreatePayment(xApiVersion, createSubscriptionPaymentRequest, xRequestId, xIdempotencyKey); + CreateSubscriptionPaymentResponse result = cashfree.SubsCreatePayment(xApiVersion, createSubscriptionPaymentRequest, xRequestId, xIdempotencyKey); Debug.WriteLine(result); } catch (ApiException e) @@ -81,7 +81,7 @@ namespace Example ### Return type -[**SubsCreatePayment200Response**](SubsCreatePayment200Response.md) +[**CreateSubscriptionPaymentResponse**](CreateSubscriptionPaymentResponse.md) ### Authorization @@ -997,7 +997,7 @@ namespace Example # **SubscriptionDocumentUpload** > UploadPnachImageResponse SubscriptionDocumentUpload (string xApiVersion, string paymentId, System.IO.Stream file, string paymentId2, string action, string? xRequestId = null, Guid? xIdempotencyKey = null) -Upload Physical Nach for Physical Nach Authorization. +API to upload Physical Nach for Physical Nach Authorization. Use this API to upload Physical Nach for Physical Nach Authorization. @@ -1033,7 +1033,7 @@ namespace Example try { - // Upload Physical Nach for Physical Nach Authorization. + // API to upload Physical Nach for Physical Nach Authorization. UploadPnachImageResponse result = cashfree.SubscriptionDocumentUpload(xApiVersion, paymentId, file, paymentId2, action, xRequestId, xIdempotencyKey); Debug.WriteLine(result); } @@ -1091,7 +1091,7 @@ namespace Example # **SubscriptionEligibility** > SubscriptionEligibilityResponse SubscriptionEligibility (string xApiVersion, SubscriptionEligibilityRequest subscriptionEligibilityRequest, string? xRequestId = null, Guid? xIdempotencyKey = null) -Get Eligible payment methods available for a subscription +API to get all the payment method details available for subscription payments. Use this API to check if a payment method is enabled for your account. @@ -1124,7 +1124,7 @@ namespace Example try { - // Get Eligible payment methods available for a subscription + // API to get all the payment method details available for subscription payments. SubscriptionEligibilityResponse result = cashfree.SubscriptionEligibility(xApiVersion, subscriptionEligibilityRequest, xRequestId, xIdempotencyKey); Debug.WriteLine(result); } diff --git a/docs/SubscriptionPaymentEntity.md b/docs/SubscriptionPaymentEntity.md index 7bfc2ad..a8d3126 100644 --- a/docs/SubscriptionPaymentEntity.md +++ b/docs/SubscriptionPaymentEntity.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **cf_subscription_id** | **string** | Cashfree subscription reference number | [optional] **cf_txn_id** | **string** | Cashfree subscription payment transaction ID | [optional] **cf_order_id** | **string** | Cashfree subscription payment order ID | [optional] -**failure_details** | [**CreateSubscriptionPaymentAuthResponseFailureDetails**](CreateSubscriptionPaymentAuthResponseFailureDetails.md) | | [optional] +**failure_details** | [**SubscriptionPaymentEntityFailureDetails**](SubscriptionPaymentEntityFailureDetails.md) | | [optional] **payment_amount** | **decimal** | The charge amount of the payment. | [optional] **payment_id** | **string** | A unique ID passed by merchant for identifying the transaction. | [optional] **payment_initiated_date** | **string** | The date on which the payment was initiated. | [optional] diff --git a/docs/SubscriptionPaymentEntityFailureDetails.md b/docs/SubscriptionPaymentEntityFailureDetails.md new file mode 100644 index 0000000..78925ca --- /dev/null +++ b/docs/SubscriptionPaymentEntityFailureDetails.md @@ -0,0 +1,10 @@ +# cashfree_pg.Model.SubscriptionPaymentEntityFailureDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**failure_reason** | **string** | Failure reason of the payment if the payment_status is failed. | [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/UPI.md b/docs/UPI.md new file mode 100644 index 0000000..f335ac3 --- /dev/null +++ b/docs/UPI.md @@ -0,0 +1,12 @@ +# cashfree_pg.Model.UPI +payment method upi. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**upi_id** | **string** | | [optional] +**channel** | **string** | Channel. can be link, qrcode, or collect | [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 index e931d61..30fb5b6 100644 --- a/docs/UpdateVendorRequest.md +++ b/docs/UpdateVendorRequest.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **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. | +**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. | diff --git a/docs/UpdateVendorResponse.md b/docs/UpdateVendorResponse.md index c75600e..c6a7399 100644 --- a/docs/UpdateVendorResponse.md +++ b/docs/UpdateVendorResponse.md @@ -21,7 +21,7 @@ Name | Type | Description | Notes **kyc_details** | [**List<KycDetails>**](KycDetails.md) | | [optional] **dashboard_access** | **bool** | | [optional] **bank_details** | **string** | | [optional] -**related_docs** | [**List<UpdateVendorResponseRelatedDocsInner>**](UpdateVendorResponseRelatedDocsInner.md) | | [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/VendorDocumentsResponse.md b/docs/VendorDocumentsResponse.md index 80dc801..5d2ede6 100644 --- a/docs/VendorDocumentsResponse.md +++ b/docs/VendorDocumentsResponse.md @@ -5,7 +5,7 @@ Get Vendor Documents Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**documents** | [**List<UpdateVendorResponseRelatedDocsInner>**](UpdateVendorResponseRelatedDocsInner.md) | | [optional] +**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 index 2d137ab..e9423e6 100644 --- a/docs/VendorEntity.md +++ b/docs/VendorEntity.md @@ -19,7 +19,7 @@ Name | Type | Description | Notes **account_type** | **string** | | [optional] **business_type** | **string** | | [optional] **remarks** | **string** | | [optional] -**related_docs** | [**List<UpdateVendorResponseRelatedDocsInner>**](UpdateVendorResponseRelatedDocsInner.md) | | [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 20ce9c2..71b2988 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.2.0"; + o.Release = "4.2.2"; 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.2.0"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.2"); // make the HTTP request var localVarResponse = this.Client.Post("/customers", localVarRequestOptions, config); @@ -295,7 +295,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.2.0"; + o.Release = "4.2.2"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -385,7 +385,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.0"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.2"); // make the HTTP request var localVarResponse = this.Client.Post("/easy-split/vendors/{vendor_id}/transfer", localVarRequestOptions, config); @@ -433,7 +433,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.2.0"; + o.Release = "4.2.2"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -518,7 +518,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.0"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.2"); // make the HTTP request var localVarResponse = this.Client.Post("/easy-split/vendors", localVarRequestOptions, config); @@ -567,7 +567,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.2.0"; + o.Release = "4.2.2"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -660,7 +660,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.0"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.2"); // make the HTTP request var localVarResponse = this.Client.Get("/easy-split/vendor-docs/{vendor_id}/download/{doc_type}", localVarRequestOptions, config); @@ -708,7 +708,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.2.0"; + o.Release = "4.2.2"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -796,7 +796,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.0"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.2"); // make the HTTP request var localVarResponse = this.Client.Get("/easy-split/vendors/{vendor_id}", localVarRequestOptions, config); @@ -844,7 +844,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.2.0"; + o.Release = "4.2.2"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -932,7 +932,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.0"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.2"); // make the HTTP request var localVarResponse = this.Client.Get("/easy-split/vendors/{vendor_id}/balances", localVarRequestOptions, config); @@ -981,7 +981,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.2.0"; + o.Release = "4.2.2"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -1070,7 +1070,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.0"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.2"); // make the HTTP request var localVarResponse = this.Client.Get("/easy-split/amount/{amount}/charges", localVarRequestOptions, config); @@ -1118,7 +1118,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.2.0"; + o.Release = "4.2.2"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -1206,7 +1206,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.0"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.2"); // make the HTTP request var localVarResponse = this.Client.Get("/easy-split/vendor-docs/{vendor_id}", localVarRequestOptions, config); @@ -1254,7 +1254,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.2.0"; + o.Release = "4.2.2"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -1339,7 +1339,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.0"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.2"); // make the HTTP request var localVarResponse = this.Client.Post("/split/order/vendor/recon", localVarRequestOptions, config); @@ -1388,7 +1388,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.2.0"; + o.Release = "4.2.2"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -1478,7 +1478,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.0"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.2"); // make the HTTP request var localVarResponse = this.Client.Patch("/easy-split/vendors/{vendor_id}", localVarRequestOptions, config); @@ -1529,7 +1529,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.2.0"; + o.Release = "4.2.2"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -1630,7 +1630,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.0"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.2"); // make the HTTP request var localVarResponse = this.Client.Post("/easy-split/vendor-docs/{vendor_id}", localVarRequestOptions, config); @@ -1679,7 +1679,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.2.0"; + o.Release = "4.2.2"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -1769,7 +1769,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.0"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.2"); // make the HTTP request var localVarResponse = this.Client.Post("/easy-split/orders/{order_id}/split", localVarRequestOptions, config); @@ -1817,7 +1817,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.2.0"; + o.Release = "4.2.2"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -1902,7 +1902,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.0"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.2"); // make the HTTP request var localVarResponse = this.Client.Post("/easy-split/static-split", localVarRequestOptions, config); @@ -1950,7 +1950,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.2.0"; + o.Release = "4.2.2"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -2039,7 +2039,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.0"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.2"); // make the HTTP request var localVarResponse = this.Client.Post>("/eligibility/cardlessemi", localVarRequestOptions, config); @@ -2087,7 +2087,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.2.0"; + o.Release = "4.2.2"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -2176,7 +2176,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.0"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.2"); // make the HTTP request var localVarResponse = this.Client.Post>("/eligibility/offers", localVarRequestOptions, config); @@ -2224,7 +2224,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.2.0"; + o.Release = "4.2.2"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -2313,7 +2313,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.0"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.2"); // make the HTTP request var localVarResponse = this.Client.Post>("/eligibility/paylater", localVarRequestOptions, config); @@ -2361,7 +2361,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.2.0"; + o.Release = "4.2.2"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -2450,7 +2450,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.0"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.2"); // make the HTTP request var localVarResponse = this.Client.Post>("/eligibility/payment_methods", localVarRequestOptions, config); @@ -2498,7 +2498,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.2.0"; + o.Release = "4.2.2"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -2587,7 +2587,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.0"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.2"); // make the HTTP request var localVarResponse = this.Client.Post("/offers", localVarRequestOptions, config); @@ -2635,7 +2635,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.2.0"; + o.Release = "4.2.2"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -2723,7 +2723,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.0"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.2"); // make the HTTP request var localVarResponse = this.Client.Get("/offers/{offer_id}", localVarRequestOptions, config); @@ -2771,7 +2771,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.2.0"; + o.Release = "4.2.2"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -2860,7 +2860,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.0"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.2"); // make the HTTP request var localVarResponse = this.Client.Post("/orders", localVarRequestOptions, config); @@ -2908,7 +2908,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.2.0"; + o.Release = "4.2.2"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -2996,7 +2996,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.0"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.2"); // make the HTTP request var localVarResponse = this.Client.Get("/orders/{order_id}", localVarRequestOptions, config); @@ -3045,7 +3045,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.2.0"; + o.Release = "4.2.2"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -3139,7 +3139,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.0"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.2"); // make the HTTP request var localVarResponse = this.Client.Patch("/orders/{order_id}", localVarRequestOptions, config); @@ -3189,7 +3189,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.2.0"; + o.Release = "4.2.2"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -3286,7 +3286,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.0"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.2"); // make the HTTP request var localVarResponse = this.Client.Post("/recon", localVarRequestOptions, config); @@ -3334,7 +3334,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.2.0"; + o.Release = "4.2.2"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -3422,7 +3422,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.0"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.2"); // make the HTTP request var localVarResponse = this.Client.Post("/links/{link_id}/cancel", localVarRequestOptions, config); @@ -3470,7 +3470,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.2.0"; + o.Release = "4.2.2"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -3559,7 +3559,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.0"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.2"); // make the HTTP request var localVarResponse = this.Client.Post("/links", localVarRequestOptions, config); @@ -3607,7 +3607,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.2.0"; + o.Release = "4.2.2"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -3695,7 +3695,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.0"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.2"); // make the HTTP request var localVarResponse = this.Client.Get("/links/{link_id}", localVarRequestOptions, config); @@ -3722,8 +3722,9 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, /// The payment link ID for which you want to view the details. /// Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional) /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional) + /// Mention What is status of orders you want to fetch, default is PAID. Possible value: ALL, PAID (optional) /// ApiResponse of List<PaymentLinkOrderEntity> - public cashfree_pg.Client.ApiResponse> PGLinkFetchOrders(string xApiVersion, string linkId, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), Configuration? configuration = null) + public cashfree_pg.Client.ApiResponse> PGLinkFetchOrders(string xApiVersion, string linkId, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), string? status = default(string?), Configuration? configuration = null) { var env = "sandbox"; if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { @@ -3743,7 +3744,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.2.0"; + o.Release = "4.2.2"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -3780,6 +3781,10 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); localVarRequestOptions.PathParameters.Add("link_id", cashfree_pg.Client.ClientUtils.ParameterToString(linkId)); // path parameter + if (status != null) + { + localVarRequestOptions.QueryParameters.Add(cashfree_pg.Client.ClientUtils.ParameterToMultiMap("", "status", status)); + } localVarRequestOptions.HeaderParameters.Add("x-api-version", cashfree_pg.Client.ClientUtils.ParameterToString(xApiVersion)); // header parameter if (xRequestId != null) { @@ -3831,7 +3836,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.0"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.2"); // make the HTTP request var localVarResponse = this.Client.Get>("/links/{link_id}/orders", localVarRequestOptions, config); @@ -3880,7 +3885,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.2.0"; + o.Release = "4.2.2"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -3974,7 +3979,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.0"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.2"); // make the HTTP request var localVarResponse = this.Client.Post("/orders/{order_id}/authorization", localVarRequestOptions, config); @@ -4023,7 +4028,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.2.0"; + o.Release = "4.2.2"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -4102,7 +4107,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.0"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.2"); // make the HTTP request var localVarResponse = this.Client.Post("/orders/pay/authenticate/{cf_payment_id}", localVarRequestOptions, config); @@ -4151,7 +4156,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.2.0"; + o.Release = "4.2.2"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -4244,7 +4249,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.0"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.2"); // make the HTTP request var localVarResponse = this.Client.Get("/orders/{order_id}/payments/{cf_payment_id}", localVarRequestOptions, config); @@ -4292,7 +4297,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.2.0"; + o.Release = "4.2.2"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -4380,7 +4385,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.0"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.2"); // make the HTTP request var localVarResponse = this.Client.Get>("/orders/{order_id}/payments", localVarRequestOptions, config); @@ -4428,7 +4433,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.2.0"; + o.Release = "4.2.2"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -4502,7 +4507,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.0"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.2"); // make the HTTP request var localVarResponse = this.Client.Post("/orders/sessions", localVarRequestOptions, config); @@ -4551,7 +4556,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.2.0"; + o.Release = "4.2.2"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -4645,7 +4650,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.0"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.2"); // make the HTTP request var localVarResponse = this.Client.Post("/orders/{order_id}/refunds", localVarRequestOptions, config); @@ -4694,7 +4699,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.2.0"; + o.Release = "4.2.2"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -4787,7 +4792,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.0"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.2"); // make the HTTP request var localVarResponse = this.Client.Get("/orders/{order_id}/refunds/{refund_id}", localVarRequestOptions, config); @@ -4835,7 +4840,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.2.0"; + o.Release = "4.2.2"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -4923,7 +4928,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.0"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.2"); // make the HTTP request var localVarResponse = this.Client.Get>("/orders/{order_id}/refunds", localVarRequestOptions, config); @@ -4973,7 +4978,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.2.0"; + o.Release = "4.2.2"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -5070,7 +5075,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.0"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.2"); // make the HTTP request var localVarResponse = this.Client.Post("/settlements", localVarRequestOptions, config); @@ -5120,7 +5125,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.2.0"; + o.Release = "4.2.2"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -5217,7 +5222,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.0"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.2"); // make the HTTP request var localVarResponse = this.Client.Post("/settlement/recon", localVarRequestOptions, config); @@ -5265,7 +5270,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.2.0"; + o.Release = "4.2.2"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -5350,7 +5355,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.0"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.2"); // make the HTTP request var localVarResponse = this.Client.Post("/orders/settlements", localVarRequestOptions, config); @@ -5398,7 +5403,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.2.0"; + o.Release = "4.2.2"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -5486,7 +5491,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.0"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.2"); // make the HTTP request var localVarResponse = this.Client.Get("/orders/{order_id}/settlements", localVarRequestOptions, config); @@ -5534,7 +5539,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.2.0"; + o.Release = "4.2.2"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -5622,7 +5627,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.0"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.2"); // make the HTTP request var localVarResponse = this.Client.Get("/simulate/{simulation_id}", localVarRequestOptions, config); @@ -5670,7 +5675,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.2.0"; + o.Release = "4.2.2"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -5759,7 +5764,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.0"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.2"); // make the HTTP request var localVarResponse = this.Client.Post("/simulate", localVarRequestOptions, config); @@ -5807,7 +5812,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.2.0"; + o.Release = "4.2.2"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -5896,7 +5901,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.0"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.2"); // make the HTTP request var localVarResponse = this.Client.Post("/terminal", localVarRequestOptions, config); @@ -5944,7 +5949,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.2.0"; + o.Release = "4.2.2"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -6033,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.2.0"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.2"); // make the HTTP request var localVarResponse = this.Client.Post("/terminal/transactions", localVarRequestOptions, config); @@ -6081,7 +6086,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.2.0"; + o.Release = "4.2.2"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -6169,7 +6174,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.0"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.2"); // make the HTTP request var localVarResponse = this.Client.Get("/terminal/{terminal_phone_no}", localVarRequestOptions, config); @@ -6218,7 +6223,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.2.0"; + o.Release = "4.2.2"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -6311,7 +6316,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.0"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.2"); // make the HTTP request var localVarResponse = this.Client.Get>("/terminal/qrcodes", localVarRequestOptions, config); @@ -6360,7 +6365,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.2.0"; + o.Release = "4.2.2"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -6453,7 +6458,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.0"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.2"); // make the HTTP request var localVarResponse = this.Client.Get("/terminal/{cf_terminal_id}/payments", localVarRequestOptions, config); @@ -6502,7 +6507,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.2.0"; + o.Release = "4.2.2"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -6596,7 +6601,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.0"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.2"); // make the HTTP request var localVarResponse = this.Client.Patch>("/terminal/{cf_terminal_id}", localVarRequestOptions, config); @@ -6645,7 +6650,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.2.0"; + o.Release = "4.2.2"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -6739,7 +6744,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.0"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.2"); // make the HTTP request var localVarResponse = this.Client.Patch>("/terminal/{cf_terminal_id}/status", localVarRequestOptions, config); @@ -6788,7 +6793,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.2.0"; + o.Release = "4.2.2"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -6882,7 +6887,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.0"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.2"); // make the HTTP request var localVarResponse = this.Client.Post>("/terminal/{cf_terminal_id}/docs", localVarRequestOptions, config); @@ -6909,8 +6914,8 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, /// Request body to create a subscription payment. /// 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 SubsCreatePayment200Response - public cashfree_pg.Client.ApiResponse SubsCreatePayment(string xApiVersion, CreateSubscriptionPaymentRequest createSubscriptionPaymentRequest, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), Configuration? configuration = null) + /// ApiResponse of CreateSubscriptionPaymentResponse + public cashfree_pg.Client.ApiResponse SubsCreatePayment(string xApiVersion, CreateSubscriptionPaymentRequest createSubscriptionPaymentRequest, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), Configuration? configuration = null) { var env = "sandbox"; if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { @@ -6930,7 +6935,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.2.0"; + o.Release = "4.2.2"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -7019,10 +7024,10 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.0"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.2"); // make the HTTP request - var localVarResponse = this.Client.Post("/subscriptions/pay", localVarRequestOptions, config); + var localVarResponse = this.Client.Post("/subscriptions/pay", localVarRequestOptions, config); if (this.ExceptionFactory != null) { @@ -7067,7 +7072,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.2.0"; + o.Release = "4.2.2"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -7156,7 +7161,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.0"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.2"); // make the HTTP request var localVarResponse = this.Client.Post("/plans", localVarRequestOptions, config); @@ -7205,7 +7210,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.2.0"; + o.Release = "4.2.2"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -7299,7 +7304,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.0"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.2"); // make the HTTP request var localVarResponse = this.Client.Post("/subscriptions/{subscription_id}/refunds", localVarRequestOptions, config); @@ -7347,7 +7352,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.2.0"; + o.Release = "4.2.2"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -7436,7 +7441,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.0"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.2"); // make the HTTP request var localVarResponse = this.Client.Post("/subscriptions", localVarRequestOptions, config); @@ -7484,7 +7489,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.2.0"; + o.Release = "4.2.2"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -7572,10 +7577,10 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.0"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.2"); // make the HTTP request - var localVarResponse = this.Client.Get("/pg/plans/{plan_id}", localVarRequestOptions, config); + var localVarResponse = this.Client.Get("/plans/{plan_id}", localVarRequestOptions, config); if (this.ExceptionFactory != null) { @@ -7620,7 +7625,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.2.0"; + o.Release = "4.2.2"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -7708,7 +7713,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.0"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.2"); // make the HTTP request var localVarResponse = this.Client.Get("/subscriptions/{subscription_id}", localVarRequestOptions, config); @@ -7757,7 +7762,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.2.0"; + o.Release = "4.2.2"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -7850,7 +7855,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.0"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.2"); // make the HTTP request var localVarResponse = this.Client.Get("/subscriptions/{subscription_id}/payments/{payment_id}", localVarRequestOptions, config); @@ -7898,7 +7903,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.2.0"; + o.Release = "4.2.2"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -7986,7 +7991,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.0"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.2"); // make the HTTP request var localVarResponse = this.Client.Get>("/subscriptions/{subscription_id}/payments", localVarRequestOptions, config); @@ -8035,7 +8040,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.2.0"; + o.Release = "4.2.2"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -8128,7 +8133,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.0"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.2"); // make the HTTP request var localVarResponse = this.Client.Get("/subscriptions/{subscription_id}/refunds/{refund_id}", localVarRequestOptions, config); @@ -8177,7 +8182,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.2.0"; + o.Release = "4.2.2"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -8271,7 +8276,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.0"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.2"); // make the HTTP request var localVarResponse = this.Client.Post("/subscriptions/{subscription_id}/manage", localVarRequestOptions, config); @@ -8321,7 +8326,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.2.0"; + o.Release = "4.2.2"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -8420,7 +8425,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.0"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.2"); // make the HTTP request var localVarResponse = this.Client.Post("/subscriptions/{subscription_id}/payments/{payment_id}/manage", localVarRequestOptions, config); @@ -8440,7 +8445,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, return localVarResponse; } /// - /// Upload Physical Nach for Physical Nach Authorization. Use this API to upload Physical Nach for Physical Nach Authorization. + /// API to upload Physical Nach for Physical Nach Authorization. Use this API to upload Physical Nach for Physical Nach Authorization. /// /// Thrown when fails to make API call /// API version to be used. Format is in YYYY-MM-DD @@ -8471,7 +8476,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.2.0"; + o.Release = "4.2.2"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -8575,7 +8580,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.0"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.2"); // make the HTTP request var localVarResponse = this.Client.Post("/subscriptions/pay/documents/{payment_id}", localVarRequestOptions, config); @@ -8595,7 +8600,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, return localVarResponse; } /// - /// Get Eligible payment methods available for a subscription Use this API to check if a payment method is enabled for your account. + /// API to get all the payment method details available for subscription payments. Use this API to check if a payment method is enabled for your account. /// /// Thrown when fails to make API call /// API version to be used. Format is in YYYY-MM-DD @@ -8623,7 +8628,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.2.0"; + o.Release = "4.2.2"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -8712,7 +8717,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.0"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.2"); // make the HTTP request var localVarResponse = this.Client.Post("/subscriptions/eligibility/payment_methods", localVarRequestOptions, config); @@ -8761,7 +8766,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.2.0"; + o.Release = "4.2.2"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -8854,7 +8859,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.0"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.2"); // make the HTTP request var localVarResponse = this.Client.Delete("/customers/{customer_id}/instruments/{instrument_id}", localVarRequestOptions, config); @@ -8903,7 +8908,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.2.0"; + o.Release = "4.2.2"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -8996,7 +9001,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.0"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.2"); // make the HTTP request var localVarResponse = this.Client.Get("/customers/{customer_id}/instruments/{instrument_id}", localVarRequestOptions, config); @@ -9045,7 +9050,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.2.0"; + o.Release = "4.2.2"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -9138,7 +9143,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.0"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.2"); // make the HTTP request var localVarResponse = this.Client.Get>("/customers/{customer_id}/instruments", localVarRequestOptions, config); @@ -9187,7 +9192,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "4.2.0"; + o.Release = "4.2.2"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -9280,7 +9285,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.0"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.2"); // 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 a6da47e..054ca1e 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.2.0"; + public const string Version = "4.2.2"; /// /// Identifier for ISO 8601 DateTime Format @@ -113,7 +113,7 @@ public class Configuration : IReadableConfiguration public Configuration() { Proxy = null; - UserAgent = WebUtility.UrlEncode("OpenAPI-Generator/4.2.0/csharp"); + UserAgent = WebUtility.UrlEncode("OpenAPI-Generator/4.2.2/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.2.0\n"; + report += " SDK Package Version: 4.2.2\n"; return report; } diff --git a/src/cashfree_pg/Model/CARD.cs b/src/cashfree_pg/Model/CARD.cs new file mode 100644 index 0000000..922957a --- /dev/null +++ b/src/cashfree_pg/Model/CARD.cs @@ -0,0 +1,271 @@ +/* + * 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 card. + /// + [DataContract(Name = "CARD")] + public class CARD : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Channel. can be link. + /// Card number. + /// Card holder name. + /// Card expiry month. + /// Card expiry year. + /// Card CVV. + /// Card network. + /// Card type. + public CARD(string? channel = default(string?), string? cardNumber = default(string?), string? cardHolderName = default(string?), string? cardExpiryMm = default(string?), string? cardExpiryYy = default(string?), string? cardCvv = default(string?), string? cardNetwork = default(string?), string? cardType = default(string?)) + { + this.channel = channel; + this.card_number = cardNumber; + this.card_holder_name = cardHolderName; + this.card_expiry_mm = cardExpiryMm; + this.card_expiry_yy = cardExpiryYy; + this.card_cvv = cardCvv; + this.card_network = cardNetwork; + this.card_type = cardType; + } + + /// + /// Channel. can be link + /// + /// Channel. can be link + [DataMember(Name = "channel", EmitDefaultValue = false)] + public string? channel { get; set; } + + /// + /// Card number + /// + /// Card number + [DataMember(Name = "card_number", EmitDefaultValue = false)] + public string? card_number { get; set; } + + /// + /// Card holder name + /// + /// Card holder name + [DataMember(Name = "card_holder_name", EmitDefaultValue = false)] + public string? card_holder_name { get; set; } + + /// + /// Card expiry month + /// + /// Card expiry month + [DataMember(Name = "card_expiry_mm", EmitDefaultValue = false)] + public string? card_expiry_mm { get; set; } + + /// + /// Card expiry year + /// + /// Card expiry year + [DataMember(Name = "card_expiry_yy", EmitDefaultValue = false)] + public string? card_expiry_yy { get; set; } + + /// + /// Card CVV + /// + /// Card CVV + [DataMember(Name = "card_cvv", EmitDefaultValue = false)] + public string? card_cvv { get; set; } + + /// + /// Card network + /// + /// Card network + [DataMember(Name = "card_network", EmitDefaultValue = false)] + public string? card_network { get; set; } + + /// + /// Card type + /// + /// Card type + [DataMember(Name = "card_type", EmitDefaultValue = false)] + public string? card_type { 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 CARD {\n"); + sb.Append(" channel: ").Append(channel).Append("\n"); + sb.Append(" card_number: ").Append(card_number).Append("\n"); + sb.Append(" card_holder_name: ").Append(card_holder_name).Append("\n"); + sb.Append(" card_expiry_mm: ").Append(card_expiry_mm).Append("\n"); + sb.Append(" card_expiry_yy: ").Append(card_expiry_yy).Append("\n"); + sb.Append(" card_cvv: ").Append(card_cvv).Append("\n"); + sb.Append(" card_network: ").Append(card_network).Append("\n"); + sb.Append(" card_type: ").Append(card_type).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 CARD); + } + + /// + /// Returns true if CARD instances are equal + /// + /// Instance of CARD to be compared + /// Boolean + public bool Equals(CARD input) + { + if (input == null) + { + return false; + } + return + ( + this.channel == input.channel || + (this.channel != null && + this.channel.Equals(input.channel)) + ) && + ( + this.card_number == input.card_number || + (this.card_number != null && + this.card_number.Equals(input.card_number)) + ) && + ( + this.card_holder_name == input.card_holder_name || + (this.card_holder_name != null && + this.card_holder_name.Equals(input.card_holder_name)) + ) && + ( + this.card_expiry_mm == input.card_expiry_mm || + (this.card_expiry_mm != null && + this.card_expiry_mm.Equals(input.card_expiry_mm)) + ) && + ( + this.card_expiry_yy == input.card_expiry_yy || + (this.card_expiry_yy != null && + this.card_expiry_yy.Equals(input.card_expiry_yy)) + ) && + ( + this.card_cvv == input.card_cvv || + (this.card_cvv != null && + this.card_cvv.Equals(input.card_cvv)) + ) && + ( + this.card_network == input.card_network || + (this.card_network != null && + this.card_network.Equals(input.card_network)) + ) && + ( + this.card_type == input.card_type || + (this.card_type != null && + this.card_type.Equals(input.card_type)) + ); + } + + 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.card_number != null) + { + hashCode = (hashCode * 59) + this.card_number.GetHashCode(); + } + if (this.card_holder_name != null) + { + hashCode = (hashCode * 59) + this.card_holder_name.GetHashCode(); + } + if (this.card_expiry_mm != null) + { + hashCode = (hashCode * 59) + this.card_expiry_mm.GetHashCode(); + } + if (this.card_expiry_yy != null) + { + hashCode = (hashCode * 59) + this.card_expiry_yy.GetHashCode(); + } + if (this.card_cvv != null) + { + hashCode = (hashCode * 59) + this.card_cvv.GetHashCode(); + } + if (this.card_network != null) + { + hashCode = (hashCode * 59) + this.card_network.GetHashCode(); + } + if (this.card_type != null) + { + hashCode = (hashCode * 59) + this.card_type.GetHashCode(); + } + 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/CreateSubscriptionPaymentRequest.cs b/src/cashfree_pg/Model/CreateSubscriptionPaymentRequest.cs index 17cc957..a333de3 100644 --- a/src/cashfree_pg/Model/CreateSubscriptionPaymentRequest.cs +++ b/src/cashfree_pg/Model/CreateSubscriptionPaymentRequest.cs @@ -47,8 +47,8 @@ protected CreateSubscriptionPaymentRequest() { } /// The date on which the payment is scheduled to be processed. Required for UPI and CARD payment modes.. /// Payment remarks.. /// Payment type. Can be AUTH or CHARGE. (required). - /// Payment method. Can be one of [\"upi\", \"enach\", \"pnach\", \"card\"]. - public CreateSubscriptionPaymentRequest(string subscriptionId = default(string), string? subscriptionSessionId = default(string?), string paymentId = default(string), decimal? paymentAmount = default(decimal?), string? paymentScheduleDate = default(string?), string? paymentRemarks = default(string?), string paymentType = default(string), Object? paymentMethod = default(Object?)) + /// paymentMethod. + public CreateSubscriptionPaymentRequest(string subscriptionId = default(string), string? subscriptionSessionId = default(string?), string paymentId = default(string), decimal? paymentAmount = default(decimal?), string? paymentScheduleDate = default(string?), string? paymentRemarks = default(string?), string paymentType = default(string), CreateSubscriptionPaymentRequestPaymentMethod? paymentMethod = default(CreateSubscriptionPaymentRequestPaymentMethod?)) { // to ensure "subscriptionId" is required (not null) if (subscriptionId == null) @@ -125,11 +125,10 @@ protected CreateSubscriptionPaymentRequest() { } public string payment_type { get; set; } /// - /// Payment method. Can be one of [\"upi\", \"enach\", \"pnach\", \"card\"] + /// Gets or Sets payment_method /// - /// Payment method. Can be one of [\"upi\", \"enach\", \"pnach\", \"card\"] [DataMember(Name = "payment_method", EmitDefaultValue = false)] - public Object? payment_method { get; set; } + public CreateSubscriptionPaymentRequestPaymentMethod? payment_method { get; set; } /// /// Returns the string presentation of the object diff --git a/src/cashfree_pg/Model/CreateSubscriptionPaymentRequestPaymentMethod.cs b/src/cashfree_pg/Model/CreateSubscriptionPaymentRequestPaymentMethod.cs new file mode 100644 index 0000000..e2415bc --- /dev/null +++ b/src/cashfree_pg/Model/CreateSubscriptionPaymentRequestPaymentMethod.cs @@ -0,0 +1,414 @@ +/* + * 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; +using System.Reflection; + +namespace cashfree_pg.Model +{ + /// + /// Payment method. Can be one of [\"upi\", \"enach\", \"pnach\", \"card\"] + /// + [JsonConverter(typeof(CreateSubscriptionPaymentRequestPaymentMethodJsonConverter))] + [DataContract(Name = "CreateSubscriptionPaymentRequest_payment_method")] + public class CreateSubscriptionPaymentRequestPaymentMethod : AbstractOpenAPISchema, IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of UPI. + public CreateSubscriptionPaymentRequestPaymentMethod(UPI actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + 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 ENACH. + public CreateSubscriptionPaymentRequestPaymentMethod(ENACH actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + 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 PNACH. + public CreateSubscriptionPaymentRequestPaymentMethod(PNACH actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + 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 CARD. + public CreateSubscriptionPaymentRequestPaymentMethod(CARD actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + + private Object _actualInstance; + + /// + /// Gets or Sets ActualInstance + /// + public override Object ActualInstance + { + get + { + return _actualInstance; + } + set + { + if (value.GetType() == typeof(CARD)) + { + this._actualInstance = value; + } + else if (value.GetType() == typeof(ENACH)) + { + this._actualInstance = value; + } + else if (value.GetType() == typeof(PNACH)) + { + this._actualInstance = value; + } + else if (value.GetType() == typeof(UPI)) + { + this._actualInstance = value; + } + else + { + throw new ArgumentException("Invalid instance found. Must be the following types: CARD, ENACH, PNACH, UPI"); + } + } + } + + /// + /// Get the actual instance of `UPI`. If the actual instance is not `UPI`, + /// the InvalidClassException will be thrown + /// + /// An instance of UPI + public UPI GetUPI() + { + return (UPI)this.ActualInstance; + } + + /// + /// Get the actual instance of `ENACH`. If the actual instance is not `ENACH`, + /// the InvalidClassException will be thrown + /// + /// An instance of ENACH + public ENACH GetENACH() + { + return (ENACH)this.ActualInstance; + } + + /// + /// Get the actual instance of `PNACH`. If the actual instance is not `PNACH`, + /// the InvalidClassException will be thrown + /// + /// An instance of PNACH + public PNACH GetPNACH() + { + return (PNACH)this.ActualInstance; + } + + /// + /// Get the actual instance of `CARD`. If the actual instance is not `CARD`, + /// the InvalidClassException will be thrown + /// + /// An instance of CARD + public CARD GetCARD() + { + return (CARD)this.ActualInstance; + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CreateSubscriptionPaymentRequestPaymentMethod {\n"); + sb.Append(" ActualInstance: ").Append(this.ActualInstance).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public override string ToJson() + { + return JsonConvert.SerializeObject(this.ActualInstance, CreateSubscriptionPaymentRequestPaymentMethod.SerializerSettings); + } + + /// + /// Converts the JSON string into an instance of CreateSubscriptionPaymentRequestPaymentMethod + /// + /// JSON string + /// An instance of CreateSubscriptionPaymentRequestPaymentMethod + public static CreateSubscriptionPaymentRequestPaymentMethod FromJson(string jsonString) + { + CreateSubscriptionPaymentRequestPaymentMethod newCreateSubscriptionPaymentRequestPaymentMethod = null; + + if (string.IsNullOrEmpty(jsonString)) + { + return newCreateSubscriptionPaymentRequestPaymentMethod; + } + int match = 0; + List matchedTypes = new List(); + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(CARD).GetProperty("AdditionalProperties") == null) + { + if(CARD.checkPresenceOfKey(jsonString)) { + dynamic data = JsonConvert.DeserializeObject(jsonString, CreateSubscriptionPaymentRequestPaymentMethod.AdditionalPropertiesSerializerSettings); + newCreateSubscriptionPaymentRequestPaymentMethod = new CreateSubscriptionPaymentRequestPaymentMethod(data); + return newCreateSubscriptionPaymentRequestPaymentMethod; + } + } + else + { + if(CARD.checkPresenceOfKey(jsonString)) { + dynamic data = JsonConvert.DeserializeObject(jsonString, CreateSubscriptionPaymentRequestPaymentMethod.AdditionalPropertiesSerializerSettings); + newCreateSubscriptionPaymentRequestPaymentMethod = new CreateSubscriptionPaymentRequestPaymentMethod(data); + return newCreateSubscriptionPaymentRequestPaymentMethod; + } + } + matchedTypes.Add("CARD"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into CARD: {1}", jsonString, exception.ToString())); + } + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(ENACH).GetProperty("AdditionalProperties") == null) + { + if(ENACH.checkPresenceOfKey(jsonString)) { + dynamic data = JsonConvert.DeserializeObject(jsonString, CreateSubscriptionPaymentRequestPaymentMethod.AdditionalPropertiesSerializerSettings); + newCreateSubscriptionPaymentRequestPaymentMethod = new CreateSubscriptionPaymentRequestPaymentMethod(data); + return newCreateSubscriptionPaymentRequestPaymentMethod; + } + } + else + { + if(ENACH.checkPresenceOfKey(jsonString)) { + dynamic data = JsonConvert.DeserializeObject(jsonString, CreateSubscriptionPaymentRequestPaymentMethod.AdditionalPropertiesSerializerSettings); + newCreateSubscriptionPaymentRequestPaymentMethod = new CreateSubscriptionPaymentRequestPaymentMethod(data); + return newCreateSubscriptionPaymentRequestPaymentMethod; + } + } + matchedTypes.Add("ENACH"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into ENACH: {1}", jsonString, exception.ToString())); + } + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(PNACH).GetProperty("AdditionalProperties") == null) + { + if(PNACH.checkPresenceOfKey(jsonString)) { + dynamic data = JsonConvert.DeserializeObject(jsonString, CreateSubscriptionPaymentRequestPaymentMethod.AdditionalPropertiesSerializerSettings); + newCreateSubscriptionPaymentRequestPaymentMethod = new CreateSubscriptionPaymentRequestPaymentMethod(data); + return newCreateSubscriptionPaymentRequestPaymentMethod; + } + } + else + { + if(PNACH.checkPresenceOfKey(jsonString)) { + dynamic data = JsonConvert.DeserializeObject(jsonString, CreateSubscriptionPaymentRequestPaymentMethod.AdditionalPropertiesSerializerSettings); + newCreateSubscriptionPaymentRequestPaymentMethod = new CreateSubscriptionPaymentRequestPaymentMethod(data); + return newCreateSubscriptionPaymentRequestPaymentMethod; + } + } + matchedTypes.Add("PNACH"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into PNACH: {1}", jsonString, exception.ToString())); + } + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(UPI).GetProperty("AdditionalProperties") == null) + { + if(UPI.checkPresenceOfKey(jsonString)) { + dynamic data = JsonConvert.DeserializeObject(jsonString, CreateSubscriptionPaymentRequestPaymentMethod.AdditionalPropertiesSerializerSettings); + newCreateSubscriptionPaymentRequestPaymentMethod = new CreateSubscriptionPaymentRequestPaymentMethod(data); + return newCreateSubscriptionPaymentRequestPaymentMethod; + } + } + else + { + if(UPI.checkPresenceOfKey(jsonString)) { + dynamic data = JsonConvert.DeserializeObject(jsonString, CreateSubscriptionPaymentRequestPaymentMethod.AdditionalPropertiesSerializerSettings); + newCreateSubscriptionPaymentRequestPaymentMethod = new CreateSubscriptionPaymentRequestPaymentMethod(data); + return newCreateSubscriptionPaymentRequestPaymentMethod; + } + } + matchedTypes.Add("UPI"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into UPI: {1}", jsonString, exception.ToString())); + } + + if (match == 0) + { + throw new InvalidDataException("The JSON string `" + jsonString + "` cannot be deserialized into any schema defined."); + } + else if (match > 1) + { + throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes); + } + + // deserialization is considered successful at this point if no exception has been thrown. + return newCreateSubscriptionPaymentRequestPaymentMethod; + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CreateSubscriptionPaymentRequestPaymentMethod); + } + + /// + /// Returns true if CreateSubscriptionPaymentRequestPaymentMethod instances are equal + /// + /// Instance of CreateSubscriptionPaymentRequestPaymentMethod to be compared + /// Boolean + public bool Equals(CreateSubscriptionPaymentRequestPaymentMethod input) + { + if (input == null) + return false; + + return this.ActualInstance.Equals(input.ActualInstance); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ActualInstance != null) + hashCode = hashCode * 59 + this.ActualInstance.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + + /// + /// Custom JSON converter for CreateSubscriptionPaymentRequestPaymentMethod + /// + public class CreateSubscriptionPaymentRequestPaymentMethodJsonConverter : JsonConverter + { + /// + /// To write the JSON string + /// + /// JSON writer + /// Object to be converted into a JSON string + /// JSON Serializer + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteRawValue((string)(typeof(CreateSubscriptionPaymentRequestPaymentMethod).GetMethod("ToJson").Invoke(value, null))); + } + + /// + /// To convert a JSON string into an object + /// + /// JSON reader + /// Object type + /// Existing value + /// JSON Serializer + /// The object converted from the JSON string + public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) + { + if(reader.TokenType != JsonToken.Null) + { + return CreateSubscriptionPaymentRequestPaymentMethod.FromJson(JObject.Load(reader).ToString(Formatting.None)); + } + return null; + } + + /// + /// Check if the object can be converted + /// + /// Object type + /// True if the object can be converted + public override bool CanConvert(Type objectType) + { + return false; + } + } + +} diff --git a/src/cashfree_pg/Model/CreateSubscriptionPaymentResponse.cs b/src/cashfree_pg/Model/CreateSubscriptionPaymentResponse.cs new file mode 100644 index 0000000..4dde6bc --- /dev/null +++ b/src/cashfree_pg/Model/CreateSubscriptionPaymentResponse.cs @@ -0,0 +1,305 @@ +/* + * 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 +{ + /// + /// The response returned is Create Subscription Auth or Charge APIs. + /// + [DataContract(Name = "CreateSubscriptionPaymentResponse")] + public class CreateSubscriptionPaymentResponse : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Cashfree subscription payment reference number. + /// failureDetails. + /// The charge amount of the payment.. + /// A unique ID passed by merchant for identifying the transaction.. + /// The date on which the payment was initiated.. + /// Status of the payment.. + /// Payment type. Can be AUTH or CHARGE.. + /// A unique ID passed by merchant for identifying the subscription.. + /// Contains a payload for auth app links in case of AUTH. For charge, the payload is empty.. + /// Payment method used for the authorization.. + public CreateSubscriptionPaymentResponse(string? cfPaymentId = default(string?), SubscriptionPaymentEntityFailureDetails? failureDetails = default(SubscriptionPaymentEntityFailureDetails?), decimal? paymentAmount = default(decimal?), string? paymentId = default(string?), string? paymentInitiatedDate = default(string?), string? paymentStatus = default(string?), string? paymentType = default(string?), string? subscriptionId = default(string?), Object? data = default(Object?), string? paymentMethod = default(string?)) + { + this.cf_payment_id = cfPaymentId; + this.failure_details = failureDetails; + this.payment_amount = paymentAmount; + this.payment_id = paymentId; + this.payment_initiated_date = paymentInitiatedDate; + this.payment_status = paymentStatus; + this.payment_type = paymentType; + this.subscription_id = subscriptionId; + this.data = data; + this.payment_method = paymentMethod; + } + + /// + /// Cashfree subscription payment reference number + /// + /// Cashfree subscription payment reference number + [DataMember(Name = "cf_payment_id", EmitDefaultValue = false)] + public string? cf_payment_id { get; set; } + + /// + /// Gets or Sets failure_details + /// + [DataMember(Name = "failure_details", EmitDefaultValue = false)] + public SubscriptionPaymentEntityFailureDetails? failure_details { get; set; } + + /// + /// The charge amount of the payment. + /// + /// The charge amount of the payment. + [DataMember(Name = "payment_amount", EmitDefaultValue = false)] + public decimal? payment_amount { get; set; } + + /// + /// A unique ID passed by merchant for identifying the transaction. + /// + /// A unique ID passed by merchant for identifying the transaction. + [DataMember(Name = "payment_id", EmitDefaultValue = false)] + public string? payment_id { get; set; } + + /// + /// The date on which the payment was initiated. + /// + /// The date on which the payment was initiated. + [DataMember(Name = "payment_initiated_date", EmitDefaultValue = false)] + public string? payment_initiated_date { get; set; } + + /// + /// Status of the payment. + /// + /// Status of the payment. + [DataMember(Name = "payment_status", EmitDefaultValue = false)] + public string? payment_status { get; set; } + + /// + /// Payment type. Can be AUTH or CHARGE. + /// + /// Payment type. Can be AUTH or CHARGE. + /// CHARGE + [DataMember(Name = "payment_type", EmitDefaultValue = false)] + public string? payment_type { get; set; } + + /// + /// A unique ID passed by merchant for identifying the subscription. + /// + /// A unique ID passed by merchant for identifying the subscription. + [DataMember(Name = "subscription_id", EmitDefaultValue = false)] + public string? subscription_id { get; set; } + + /// + /// Contains a payload for auth app links in case of AUTH. For charge, the payload is empty. + /// + /// Contains a payload for auth app links in case of AUTH. For charge, the payload is empty. + [DataMember(Name = "data", EmitDefaultValue = false)] + public Object? data { get; set; } + + /// + /// Payment method used for the authorization. + /// + /// Payment method used for the authorization. + [DataMember(Name = "payment_method", EmitDefaultValue = false)] + public string? 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 CreateSubscriptionPaymentResponse {\n"); + sb.Append(" cf_payment_id: ").Append(cf_payment_id).Append("\n"); + sb.Append(" failure_details: ").Append(failure_details).Append("\n"); + sb.Append(" payment_amount: ").Append(payment_amount).Append("\n"); + sb.Append(" payment_id: ").Append(payment_id).Append("\n"); + sb.Append(" payment_initiated_date: ").Append(payment_initiated_date).Append("\n"); + sb.Append(" payment_status: ").Append(payment_status).Append("\n"); + sb.Append(" payment_type: ").Append(payment_type).Append("\n"); + sb.Append(" subscription_id: ").Append(subscription_id).Append("\n"); + sb.Append(" data: ").Append(data).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 CreateSubscriptionPaymentResponse); + } + + /// + /// Returns true if CreateSubscriptionPaymentResponse instances are equal + /// + /// Instance of CreateSubscriptionPaymentResponse to be compared + /// Boolean + public bool Equals(CreateSubscriptionPaymentResponse 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.failure_details == input.failure_details || + (this.failure_details != null && + this.failure_details.Equals(input.failure_details)) + ) && + ( + this.payment_amount == input.payment_amount || + this.payment_amount.Equals(input.payment_amount) + ) && + ( + this.payment_id == input.payment_id || + (this.payment_id != null && + this.payment_id.Equals(input.payment_id)) + ) && + ( + this.payment_initiated_date == input.payment_initiated_date || + (this.payment_initiated_date != null && + this.payment_initiated_date.Equals(input.payment_initiated_date)) + ) && + ( + this.payment_status == input.payment_status || + (this.payment_status != null && + this.payment_status.Equals(input.payment_status)) + ) && + ( + this.payment_type == input.payment_type || + (this.payment_type != null && + this.payment_type.Equals(input.payment_type)) + ) && + ( + this.subscription_id == input.subscription_id || + (this.subscription_id != null && + this.subscription_id.Equals(input.subscription_id)) + ) && + ( + this.data == input.data || + (this.data != null && + this.data.Equals(input.data)) + ) && + ( + 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.failure_details != null) + { + hashCode = (hashCode * 59) + this.failure_details.GetHashCode(); + } + hashCode = (hashCode * 59) + this.payment_amount.GetHashCode(); + if (this.payment_id != null) + { + hashCode = (hashCode * 59) + this.payment_id.GetHashCode(); + } + if (this.payment_initiated_date != null) + { + hashCode = (hashCode * 59) + this.payment_initiated_date.GetHashCode(); + } + if (this.payment_status != null) + { + hashCode = (hashCode * 59) + this.payment_status.GetHashCode(); + } + if (this.payment_type != null) + { + hashCode = (hashCode * 59) + this.payment_type.GetHashCode(); + } + if (this.subscription_id != null) + { + hashCode = (hashCode * 59) + this.subscription_id.GetHashCode(); + } + if (this.data != null) + { + hashCode = (hashCode * 59) + this.data.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/CreateVendorRequest.cs b/src/cashfree_pg/Model/CreateVendorRequest.cs index e7d6307..81e930e 100644 --- a/src/cashfree_pg/Model/CreateVendorRequest.cs +++ b/src/cashfree_pg/Model/CreateVendorRequest.cs @@ -47,7 +47,7 @@ protected CreateVendorRequest() { } /// 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 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). @@ -146,9 +146,9 @@ protected CreateVendorRequest() { } 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. /// - /// 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; } diff --git a/src/cashfree_pg/Model/CustomerDetails.cs b/src/cashfree_pg/Model/CustomerDetails.cs index 7428510..91548b7 100644 --- a/src/cashfree_pg/Model/CustomerDetails.cs +++ b/src/cashfree_pg/Model/CustomerDetails.cs @@ -27,7 +27,7 @@ namespace cashfree_pg.Model { /// - /// The customer details that are necessary. + /// The customer details that are necessary. Note that you can pass dummy details if your use case does not require the customer details. /// [DataContract(Name = "CustomerDetails")] public class CustomerDetails : IEquatable, IValidatableObject diff --git a/src/cashfree_pg/Model/CustomerDetailsResponse.cs b/src/cashfree_pg/Model/CustomerDetailsResponse.cs index f3088a2..e8506db 100644 --- a/src/cashfree_pg/Model/CustomerDetailsResponse.cs +++ b/src/cashfree_pg/Model/CustomerDetailsResponse.cs @@ -42,7 +42,7 @@ public class CustomerDetailsResponse : IEquatable, IVal /// Customer bank account. Required if you want to do a bank account check (TPV). /// Customer bank IFSC. Required if you want to do a bank account check (TPV). /// Customer bank code. Required for net banking payments, if you want to do a bank account check (TPV). - /// Customer identifier at Cashfree. You will get this when you create/get customer . + /// Customer identifier at Cashfree. You will get this when you create/get customer. public CustomerDetailsResponse(string? customerId = default(string?), string? customerEmail = default(string?), string? customerPhone = default(string?), string? customerName = default(string?), string? customerBankAccountNumber = default(string?), string? customerBankIfsc = default(string?), decimal? customerBankCode = default(decimal?), string? customerUid = default(string?)) { this.customer_id = customerId; @@ -105,9 +105,9 @@ public class CustomerDetailsResponse : IEquatable, IVal public decimal? customer_bank_code { get; set; } /// - /// Customer identifier at Cashfree. You will get this when you create/get customer + /// Customer identifier at Cashfree. You will get this when you create/get customer /// - /// Customer identifier at Cashfree. You will get this when you create/get customer + /// Customer identifier at Cashfree. You will get this when you create/get customer [DataMember(Name = "customer_uid", EmitDefaultValue = false)] public string? customer_uid { get; set; } diff --git a/src/cashfree_pg/Model/ENACH.cs b/src/cashfree_pg/Model/ENACH.cs new file mode 100644 index 0000000..014c116 --- /dev/null +++ b/src/cashfree_pg/Model/ENACH.cs @@ -0,0 +1,252 @@ +/* + * 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 enach. + /// + [DataContract(Name = "ENACH")] + public class ENACH : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Channel. can be link. + /// Authentication mode. can be debit_card, aadhaar, or net_banking. + /// Account holder name. + /// Account number. + /// Account bank code (required without AccountIFSC). + /// Account type. + /// Account IFSC. + public ENACH(string? channel = default(string?), string? authMode = default(string?), string? accountHolderName = default(string?), string? accountNumber = default(string?), string? accountBankCode = default(string?), string? accountType = default(string?), string? accountIfsc = default(string?)) + { + this.channel = channel; + this.auth_mode = authMode; + this.account_holder_name = accountHolderName; + this.account_number = accountNumber; + this.account_bank_code = accountBankCode; + this.account_type = accountType; + this.account_ifsc = accountIfsc; + } + + /// + /// Channel. can be link + /// + /// Channel. can be link + [DataMember(Name = "channel", EmitDefaultValue = false)] + public string? channel { get; set; } + + /// + /// Authentication mode. can be debit_card, aadhaar, or net_banking + /// + /// Authentication mode. can be debit_card, aadhaar, or net_banking + [DataMember(Name = "auth_mode", EmitDefaultValue = false)] + public string? auth_mode { get; set; } + + /// + /// Account holder name + /// + /// Account holder name + [DataMember(Name = "account_holder_name", EmitDefaultValue = false)] + public string? account_holder_name { get; set; } + + /// + /// Account number + /// + /// Account number + [DataMember(Name = "account_number", EmitDefaultValue = false)] + public string? account_number { get; set; } + + /// + /// Account bank code (required without AccountIFSC) + /// + /// Account bank code (required without AccountIFSC) + [DataMember(Name = "account_bank_code", EmitDefaultValue = false)] + public string? account_bank_code { get; set; } + + /// + /// Account type + /// + /// Account type + [DataMember(Name = "account_type", EmitDefaultValue = false)] + public string? account_type { get; set; } + + /// + /// Account IFSC + /// + /// Account IFSC + [DataMember(Name = "account_ifsc", EmitDefaultValue = false)] + public string? account_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 ENACH {\n"); + sb.Append(" channel: ").Append(channel).Append("\n"); + sb.Append(" auth_mode: ").Append(auth_mode).Append("\n"); + sb.Append(" account_holder_name: ").Append(account_holder_name).Append("\n"); + sb.Append(" account_number: ").Append(account_number).Append("\n"); + sb.Append(" account_bank_code: ").Append(account_bank_code).Append("\n"); + sb.Append(" account_type: ").Append(account_type).Append("\n"); + sb.Append(" account_ifsc: ").Append(account_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 ENACH); + } + + /// + /// Returns true if ENACH instances are equal + /// + /// Instance of ENACH to be compared + /// Boolean + public bool Equals(ENACH input) + { + if (input == null) + { + return false; + } + return + ( + this.channel == input.channel || + (this.channel != null && + this.channel.Equals(input.channel)) + ) && + ( + this.auth_mode == input.auth_mode || + (this.auth_mode != null && + this.auth_mode.Equals(input.auth_mode)) + ) && + ( + this.account_holder_name == input.account_holder_name || + (this.account_holder_name != null && + this.account_holder_name.Equals(input.account_holder_name)) + ) && + ( + this.account_number == input.account_number || + (this.account_number != null && + this.account_number.Equals(input.account_number)) + ) && + ( + this.account_bank_code == input.account_bank_code || + (this.account_bank_code != null && + this.account_bank_code.Equals(input.account_bank_code)) + ) && + ( + this.account_type == input.account_type || + (this.account_type != null && + this.account_type.Equals(input.account_type)) + ) && + ( + this.account_ifsc == input.account_ifsc || + (this.account_ifsc != null && + this.account_ifsc.Equals(input.account_ifsc)) + ); + } + + 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.auth_mode != null) + { + hashCode = (hashCode * 59) + this.auth_mode.GetHashCode(); + } + if (this.account_holder_name != null) + { + hashCode = (hashCode * 59) + this.account_holder_name.GetHashCode(); + } + if (this.account_number != null) + { + hashCode = (hashCode * 59) + this.account_number.GetHashCode(); + } + if (this.account_bank_code != null) + { + hashCode = (hashCode * 59) + this.account_bank_code.GetHashCode(); + } + if (this.account_type != null) + { + hashCode = (hashCode * 59) + this.account_type.GetHashCode(); + } + if (this.account_ifsc != null) + { + hashCode = (hashCode * 59) + this.account_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/PNACH.cs b/src/cashfree_pg/Model/PNACH.cs new file mode 100644 index 0000000..bb0cb09 --- /dev/null +++ b/src/cashfree_pg/Model/PNACH.cs @@ -0,0 +1,271 @@ +/* + * 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 pnach. + /// + [DataContract(Name = "PNACH")] + public class PNACH : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Channel. can be post. + /// Account holder name. + /// Account number. + /// Account bank code. + /// Account type. + /// Account IFSC. + /// Mandate creation date. + /// Mandate start date. + public PNACH(string? channel = default(string?), string? accountHolderName = default(string?), string? accountNumber = default(string?), string? accountBankCode = default(string?), string? accountType = default(string?), string? accountIfsc = default(string?), string? mandateCreationDate = default(string?), string? mandateStartDate = default(string?)) + { + this.channel = channel; + this.account_holder_name = accountHolderName; + this.account_number = accountNumber; + this.account_bank_code = accountBankCode; + this.account_type = accountType; + this.account_ifsc = accountIfsc; + this.mandate_creation_date = mandateCreationDate; + this.mandate_start_date = mandateStartDate; + } + + /// + /// Channel. can be post + /// + /// Channel. can be post + [DataMember(Name = "channel", EmitDefaultValue = false)] + public string? channel { get; set; } + + /// + /// Account holder name + /// + /// Account holder name + [DataMember(Name = "account_holder_name", EmitDefaultValue = false)] + public string? account_holder_name { get; set; } + + /// + /// Account number + /// + /// Account number + [DataMember(Name = "account_number", EmitDefaultValue = false)] + public string? account_number { get; set; } + + /// + /// Account bank code + /// + /// Account bank code + [DataMember(Name = "account_bank_code", EmitDefaultValue = false)] + public string? account_bank_code { get; set; } + + /// + /// Account type + /// + /// Account type + [DataMember(Name = "account_type", EmitDefaultValue = false)] + public string? account_type { get; set; } + + /// + /// Account IFSC + /// + /// Account IFSC + [DataMember(Name = "account_ifsc", EmitDefaultValue = false)] + public string? account_ifsc { get; set; } + + /// + /// Mandate creation date + /// + /// Mandate creation date + [DataMember(Name = "mandate_creation_date", EmitDefaultValue = false)] + public string? mandate_creation_date { get; set; } + + /// + /// Mandate start date + /// + /// Mandate start date + [DataMember(Name = "mandate_start_date", EmitDefaultValue = false)] + public string? mandate_start_date { 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 PNACH {\n"); + sb.Append(" channel: ").Append(channel).Append("\n"); + sb.Append(" account_holder_name: ").Append(account_holder_name).Append("\n"); + sb.Append(" account_number: ").Append(account_number).Append("\n"); + sb.Append(" account_bank_code: ").Append(account_bank_code).Append("\n"); + sb.Append(" account_type: ").Append(account_type).Append("\n"); + sb.Append(" account_ifsc: ").Append(account_ifsc).Append("\n"); + sb.Append(" mandate_creation_date: ").Append(mandate_creation_date).Append("\n"); + sb.Append(" mandate_start_date: ").Append(mandate_start_date).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 PNACH); + } + + /// + /// Returns true if PNACH instances are equal + /// + /// Instance of PNACH to be compared + /// Boolean + public bool Equals(PNACH input) + { + if (input == null) + { + return false; + } + return + ( + this.channel == input.channel || + (this.channel != null && + this.channel.Equals(input.channel)) + ) && + ( + this.account_holder_name == input.account_holder_name || + (this.account_holder_name != null && + this.account_holder_name.Equals(input.account_holder_name)) + ) && + ( + this.account_number == input.account_number || + (this.account_number != null && + this.account_number.Equals(input.account_number)) + ) && + ( + this.account_bank_code == input.account_bank_code || + (this.account_bank_code != null && + this.account_bank_code.Equals(input.account_bank_code)) + ) && + ( + this.account_type == input.account_type || + (this.account_type != null && + this.account_type.Equals(input.account_type)) + ) && + ( + this.account_ifsc == input.account_ifsc || + (this.account_ifsc != null && + this.account_ifsc.Equals(input.account_ifsc)) + ) && + ( + this.mandate_creation_date == input.mandate_creation_date || + (this.mandate_creation_date != null && + this.mandate_creation_date.Equals(input.mandate_creation_date)) + ) && + ( + this.mandate_start_date == input.mandate_start_date || + (this.mandate_start_date != null && + this.mandate_start_date.Equals(input.mandate_start_date)) + ); + } + + 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.account_holder_name != null) + { + hashCode = (hashCode * 59) + this.account_holder_name.GetHashCode(); + } + if (this.account_number != null) + { + hashCode = (hashCode * 59) + this.account_number.GetHashCode(); + } + if (this.account_bank_code != null) + { + hashCode = (hashCode * 59) + this.account_bank_code.GetHashCode(); + } + if (this.account_type != null) + { + hashCode = (hashCode * 59) + this.account_type.GetHashCode(); + } + if (this.account_ifsc != null) + { + hashCode = (hashCode * 59) + this.account_ifsc.GetHashCode(); + } + if (this.mandate_creation_date != null) + { + hashCode = (hashCode * 59) + this.mandate_creation_date.GetHashCode(); + } + if (this.mandate_start_date != null) + { + hashCode = (hashCode * 59) + this.mandate_start_date.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/SubscriptionPaymentEntity.cs b/src/cashfree_pg/Model/SubscriptionPaymentEntity.cs index 173adae..8bb8625 100644 --- a/src/cashfree_pg/Model/SubscriptionPaymentEntity.cs +++ b/src/cashfree_pg/Model/SubscriptionPaymentEntity.cs @@ -50,7 +50,7 @@ public class SubscriptionPaymentEntity : IEquatable, /// Payment type. Can be AUTH or CHARGE.. /// Retry attempts.. /// A unique ID passed by merchant for identifying the subscription.. - public SubscriptionPaymentEntity(AuthorizationDetails? authorizationDetails = default(AuthorizationDetails?), string? cfPaymentId = default(string?), string? cfSubscriptionId = default(string?), string? cfTxnId = default(string?), string? cfOrderId = default(string?), CreateSubscriptionPaymentAuthResponseFailureDetails? failureDetails = default(CreateSubscriptionPaymentAuthResponseFailureDetails?), decimal? paymentAmount = default(decimal?), string? paymentId = default(string?), string? paymentInitiatedDate = default(string?), string? paymentRemarks = default(string?), string? paymentScheduleDate = default(string?), string? paymentStatus = default(string?), string? paymentType = default(string?), int? retryAttempts = default(int?), string? subscriptionId = default(string?)) + public SubscriptionPaymentEntity(AuthorizationDetails? authorizationDetails = default(AuthorizationDetails?), string? cfPaymentId = default(string?), string? cfSubscriptionId = default(string?), string? cfTxnId = default(string?), string? cfOrderId = default(string?), SubscriptionPaymentEntityFailureDetails? failureDetails = default(SubscriptionPaymentEntityFailureDetails?), decimal? paymentAmount = default(decimal?), string? paymentId = default(string?), string? paymentInitiatedDate = default(string?), string? paymentRemarks = default(string?), string? paymentScheduleDate = default(string?), string? paymentStatus = default(string?), string? paymentType = default(string?), int? retryAttempts = default(int?), string? subscriptionId = default(string?)) { this.authorization_details = authorizationDetails; this.cf_payment_id = cfPaymentId; @@ -107,7 +107,7 @@ public class SubscriptionPaymentEntity : IEquatable, /// Gets or Sets failure_details /// [DataMember(Name = "failure_details", EmitDefaultValue = false)] - public CreateSubscriptionPaymentAuthResponseFailureDetails? failure_details { get; set; } + public SubscriptionPaymentEntityFailureDetails? failure_details { get; set; } /// /// The charge amount of the payment. diff --git a/src/cashfree_pg/Model/SubscriptionPaymentEntityFailureDetails.cs b/src/cashfree_pg/Model/SubscriptionPaymentEntityFailureDetails.cs new file mode 100644 index 0000000..07b51c0 --- /dev/null +++ b/src/cashfree_pg/Model/SubscriptionPaymentEntityFailureDetails.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 +{ + /// + /// SubscriptionPaymentEntityFailureDetails + /// + [DataContract(Name = "SubscriptionPaymentEntity_failure_details")] + public class SubscriptionPaymentEntityFailureDetails : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Failure reason of the payment if the payment_status is failed.. + public SubscriptionPaymentEntityFailureDetails(string? failureReason = default(string?)) + { + this.failure_reason = failureReason; + } + + /// + /// Failure reason of the payment if the payment_status is failed. + /// + /// Failure reason of the payment if the payment_status is failed. + [DataMember(Name = "failure_reason", EmitDefaultValue = false)] + public string? failure_reason { 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 SubscriptionPaymentEntityFailureDetails {\n"); + sb.Append(" failure_reason: ").Append(failure_reason).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 SubscriptionPaymentEntityFailureDetails); + } + + /// + /// Returns true if SubscriptionPaymentEntityFailureDetails instances are equal + /// + /// Instance of SubscriptionPaymentEntityFailureDetails to be compared + /// Boolean + public bool Equals(SubscriptionPaymentEntityFailureDetails input) + { + if (input == null) + { + return false; + } + return + ( + this.failure_reason == input.failure_reason || + (this.failure_reason != null && + this.failure_reason.Equals(input.failure_reason)) + ); + } + + public static Boolean checkPresenceOfKey(string jsonStringfailure_reason) { + dynamic deserializedJsonString = JsonConvert.DeserializeObject(jsonStringfailure_reason); + if (deserializedJsonString.ContainsKey("failure_reason")) { + 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.failure_reason != null) + { + hashCode = (hashCode * 59) + this.failure_reason.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/UPI.cs b/src/cashfree_pg/Model/UPI.cs new file mode 100644 index 0000000..a17ac09 --- /dev/null +++ b/src/cashfree_pg/Model/UPI.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 +{ + /// + /// payment method upi. + /// + [DataContract(Name = "UPI")] + public class UPI : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// upiId. + /// Channel. can be link, qrcode, or collect. + public UPI(string? upiId = default(string?), string? channel = default(string?)) + { + this.upi_id = upiId; + this.channel = channel; + } + + /// + /// Gets or Sets upi_id + /// + [DataMember(Name = "upi_id", EmitDefaultValue = false)] + public string? upi_id { get; set; } + + /// + /// Channel. can be link, qrcode, or collect + /// + /// Channel. can be link, qrcode, or collect + [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 UPI {\n"); + sb.Append(" upi_id: ").Append(upi_id).Append("\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 UPI); + } + + /// + /// Returns true if UPI instances are equal + /// + /// Instance of UPI to be compared + /// Boolean + public bool Equals(UPI input) + { + if (input == null) + { + return false; + } + return + ( + this.upi_id == input.upi_id || + (this.upi_id != null && + this.upi_id.Equals(input.upi_id)) + ) && + ( + this.channel == input.channel || + (this.channel != null && + this.channel.Equals(input.channel)) + ); + } + + public static Boolean checkPresenceOfKey(string jsonStringupi_id) { + dynamic deserializedJsonString = JsonConvert.DeserializeObject(jsonStringupi_id); + if (deserializedJsonString.ContainsKey("upi_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.upi_id != null) + { + hashCode = (hashCode * 59) + this.upi_id.GetHashCode(); + } + 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/UpdateVendorRequest.cs b/src/cashfree_pg/Model/UpdateVendorRequest.cs index a01792f..b3d577d 100644 --- a/src/cashfree_pg/Model/UpdateVendorRequest.cs +++ b/src/cashfree_pg/Model/UpdateVendorRequest.cs @@ -46,7 +46,7 @@ protected UpdateVendorRequest() { } /// 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 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). @@ -132,9 +132,9 @@ protected UpdateVendorRequest() { } 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. /// - /// 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; } diff --git a/src/cashfree_pg/Model/UpdateVendorResponse.cs b/src/cashfree_pg/Model/UpdateVendorResponse.cs index f7da56d..fa4a241 100644 --- a/src/cashfree_pg/Model/UpdateVendorResponse.cs +++ b/src/cashfree_pg/Model/UpdateVendorResponse.cs @@ -52,7 +52,7 @@ public class UpdateVendorResponse : IEquatable, IValidatab /// 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?)) + 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; @@ -173,7 +173,7 @@ public class UpdateVendorResponse : IEquatable, IValidatab /// Gets or Sets related_docs /// [DataMember(Name = "related_docs", EmitDefaultValue = false)] - public List? related_docs { get; set; } + public List? related_docs { get; set; } /// /// Returns the string presentation of the object diff --git a/src/cashfree_pg/Model/VendorDocumentsResponse.cs b/src/cashfree_pg/Model/VendorDocumentsResponse.cs index 2e41c9b..3e376c2 100644 --- a/src/cashfree_pg/Model/VendorDocumentsResponse.cs +++ b/src/cashfree_pg/Model/VendorDocumentsResponse.cs @@ -36,7 +36,7 @@ public class VendorDocumentsResponse : IEquatable, IVal /// Initializes a new instance of the class. /// /// documents. - public VendorDocumentsResponse(List? documents = default(List?)) + public VendorDocumentsResponse(List? documents = default(List?)) { this.documents = documents; } @@ -45,7 +45,7 @@ public class VendorDocumentsResponse : IEquatable, IVal /// Gets or Sets documents /// [DataMember(Name = "documents", EmitDefaultValue = false)] - public List? documents { get; set; } + public List? documents { get; set; } /// /// Returns the string presentation of the object diff --git a/src/cashfree_pg/Model/VendorEntity.cs b/src/cashfree_pg/Model/VendorEntity.cs index 94a762f..871d78c 100644 --- a/src/cashfree_pg/Model/VendorEntity.cs +++ b/src/cashfree_pg/Model/VendorEntity.cs @@ -50,7 +50,7 @@ public class VendorEntity : IEquatable, IValidatableObject /// businessType. /// remarks. /// 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?), string? remarks = default(string?), List? relatedDocs = default(List?)) + 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?), string? remarks = default(string?), List? relatedDocs = default(List?)) { this.email = email; this.status = status; @@ -157,7 +157,7 @@ public class VendorEntity : IEquatable, IValidatableObject /// Gets or Sets related_docs /// [DataMember(Name = "related_docs", EmitDefaultValue = false)] - public List? related_docs { get; set; } + public List? related_docs { get; set; } /// /// Returns the string presentation of the object diff --git a/src/cashfree_pg/cashfree_pg.csproj b/src/cashfree_pg/cashfree_pg.csproj index 8a49560..6a80e61 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.2.0 + 4.2.2 LICENSE.md bin\$(Configuration)\$(TargetFramework)\cashfree_pg.xml https://github.com/cashfree/cashfree-pg-sdk-dotnet.git