Skip to content

Commit

Permalink
Merge pull request #46 from cashfree/4.2.0
Browse files Browse the repository at this point in the history
4.2.0
  • Loading branch information
suhas-cashfree authored Jul 12, 2024
2 parents bef09ab + 2fd30bd commit 7af836d
Show file tree
Hide file tree
Showing 302 changed files with 21,138 additions and 306 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -366,5 +366,4 @@ src/cashfree_pg/Api/
src/cashfree_pg.Test/
.DS_Store
*/.DS_Store
*/*/.DS_Store
.idea/
*/*/.DS_Store
129 changes: 126 additions & 3 deletions .openapi-generator/FILES

Large diffs are not rendered by default.

24 changes: 2 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Cashfree PG .Net SDK
![GitHub](https://img.shields.io/github/license/cashfree/cashfree-pg-sdk-dotnet) ![Discord](https://img.shields.io/discord/931125665669972018?label=discord) ![GitHub last commit (branch)](https://img.shields.io/github/last-commit/cashfree/cashfree-pg-sdk-dotnet/master) ![GitHub release (with filter)](https://img.shields.io/github/v/release/cashfree/cashfree-pg-sdk-dotnet?label=latest) ![GitHub forks](https://img.shields.io/github/forks/cashfree/cashfree-pg-sdk-go)

The Cashfree PG .Net SDK offers a convenient solution to access [Cashfree PG APIs](https://docs.cashfree.com/reference/pg-new-apis-endpoint) from a server-side .Net applications.
The Cashfree PG .Net SDK offers a convenient solution to access [Cashfree PG APIs](https://docs.cashfree.com/reference/pg-new-apis-endpoint) from a server-side .Net applications.



Expand Down Expand Up @@ -32,7 +32,6 @@ var cashfree = new Cashfree();
var xApiVersion = "2022-09-01";
```


Generate your API keys (x-client-id , x-client-secret) from [Cashfree Merchant Dashboard](https://merchant.cashfree.com/merchants/login)

### Basic Usage
Expand All @@ -52,6 +51,7 @@ try {
Console.WriteLine(e.StackTrace);
}
```

Get Order
```csharp
try {
Expand All @@ -66,26 +66,6 @@ try {
}
```

## Supported Resources

- [Order](docs/Orders.md)

- [Payment](docs/Payments.md)

- [Refund](docs/Refunds.md)

- [Token Vault](docs/TokenVault.md)

- [Eligiblity](docs/Eligibility.md)

- [PaymentLink](docs/PaymentLink.md)

- [Settlements](docs/Settlements.md)

- [Offers](docs/Offers.md)

- [Reconciliation](docs/Reconciliation.md)

## Licence

Apache Licensed. See [LICENSE.md](LICENSE.md) for more details
10 changes: 5 additions & 5 deletions cashfree_pg.sln
Original file line number Diff line number Diff line change
Expand Up @@ -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", "{1D967077-686E-42D4-8AE4-522B6C70B780}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "cashfree_pg", "src\cashfree_pg\cashfree_pg.csproj", "{9F936ED6-7E5E-4306-8701-46614F05B721}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "cashfree_pg.Test", "src\cashfree_pg.Test\cashfree_pg.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}"
EndProject
Expand All @@ -12,10 +12,10 @@ Global
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{1D967077-686E-42D4-8AE4-522B6C70B780}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1D967077-686E-42D4-8AE4-522B6C70B780}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1D967077-686E-42D4-8AE4-522B6C70B780}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1D967077-686E-42D4-8AE4-522B6C70B780}.Release|Any CPU.Build.0 = Release|Any CPU
{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
{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
Expand Down
15 changes: 15 additions & 0 deletions docs/AdjustVendorBalanceRequest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# cashfree_pg.Model.AdjustVendorBalanceRequest
Adjust Vendor Balance Request

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**transfer_from** | **string** | Mention to whom you want to transfer the on demand balance. Possible values - MERCHANT, VENDOR. |
**transfer_type** | **string** | Mention the type of transfer. Possible values: ON_DEMAND. |
**transfer_amount** | **decimal** | Mention the on demand transfer amount. |
**remark** | **string** | Mention remarks if any for the on demand transfer. | [optional]
**tags** | **Object** | Provide additional data fields using tags. | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

14 changes: 14 additions & 0 deletions docs/AdjustVendorBalanceResponse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# cashfree_pg.Model.AdjustVendorBalanceResponse
Adjust Vendor Balance Response

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**settlement_id** | **decimal** | | [optional]
**transfer_details** | [**TransferDetails**](TransferDetails.md) | | [optional]
**balances** | [**BalanceDetails**](BalanceDetails.md) | | [optional]
**charges** | [**ChargesDetails**](ChargesDetails.md) | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

13 changes: 13 additions & 0 deletions docs/ApiError.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# cashfree_pg.Model.ApiError
Error at cashfree's server

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**message** | **string** | | [optional]
**code** | **string** | | [optional]
**type** | **string** | api_error | [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)

13 changes: 13 additions & 0 deletions docs/ApiError404.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# cashfree_pg.Model.ApiError404
Error when resource requested is not found

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**message** | **string** | | [optional]
**code** | **string** | | [optional]
**type** | **string** | invalid_request_error | [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)

13 changes: 13 additions & 0 deletions docs/ApiError409.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# cashfree_pg.Model.ApiError409
duplicate request

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**message** | **string** | | [optional]
**code** | **string** | | [optional]
**type** | **string** | invalid_request_error | [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)

13 changes: 13 additions & 0 deletions docs/ApiError502.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# cashfree_pg.Model.ApiError502
Error when there is error at partner bank

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**message** | **string** | | [optional]
**code** | **string** | `bank_processing_failure` will be returned here to denote failure at bank. | [optional]
**type** | **string** | api_error | [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)

13 changes: 13 additions & 0 deletions docs/App.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# cashfree_pg.Model.App
App payment method

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**channel** | **string** | Specify the channel through which the payment must be processed. |
**provider** | **string** | Specify the provider through which the payment must be processed. |
**phone** | **string** | Customer phone number associated with a wallet for payment. |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

11 changes: 11 additions & 0 deletions docs/AppPaymentMethod.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# cashfree_pg.Model.AppPaymentMethod
App payment method

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**app** | [**App**](App.md) | |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

13 changes: 13 additions & 0 deletions docs/AuthenticationError.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# cashfree_pg.Model.AuthenticationError
Error if api keys are wrong

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**message** | **string** | | [optional]
**code** | **string** | | [optional]
**type** | **string** | authentication_error | [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)

17 changes: 17 additions & 0 deletions docs/AuthorizationDetails.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# cashfree_pg.Model.AuthorizationDetails
Details of the authorization done for the subscription. Returned in Get subscription and auth payments.

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**authorization_amount** | **decimal** | Authorization amount for the auth payment. | [optional]
**authorization_amount_refund** | **bool** | Indicates whether the authorization amount should be refunded to the customer automatically. Merchants can use this field to specify if the authorized funds should be returned to the customer after authorization of the subscription. | [optional]
**authorization_reference** | **string** | Authorization reference. UMN for UPI, UMRN for EMandate/Physical Mandate and Enrollment ID for cards. | [optional]
**authorization_time** | **string** | Authorization time. | [optional]
**authorization_status** | **string** | Status of the authorization. | [optional]
**payment_id** | **string** | A unique ID passed by merchant for identifying the transaction. | [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)

18 changes: 18 additions & 0 deletions docs/AuthorizationInPaymentsEntity.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# cashfree_pg.Model.AuthorizationInPaymentsEntity
If preauth enabled for account you will get this body

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**action** | **string** | One of CAPTURE or VOID | [optional]
**status** | **string** | One of SUCCESS or PENDING | [optional]
**captured_amount** | **decimal** | The captured amount for this authorization request | [optional]
**start_time** | **string** | Start time of this authorization hold (only for UPI) | [optional]
**end_time** | **string** | End time of this authorization hold (only for UPI) | [optional]
**approve_by** | **string** | Approve by time as passed in the authorization request (only for UPI) | [optional]
**action_reference** | **string** | CAPTURE or VOID reference number based on action | [optional]
**action_time** | **string** | Time of action (CAPTURE or VOID) | [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)

12 changes: 12 additions & 0 deletions docs/AuthorizeOrderRequest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# cashfree_pg.Model.AuthorizeOrderRequest
Request to capture or void transaction

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**action** | **string** | Type of authorization to run. Can be one of 'CAPTURE' , 'VOID' | [optional]
**amount** | **decimal** | The amount if you are running a 'CAPTURE' | [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)

13 changes: 13 additions & 0 deletions docs/BadRequestError.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# cashfree_pg.Model.BadRequestError
Invalid request received from client

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**message** | **string** | | [optional]
**code** | **string** | | [optional]
**type** | **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)

13 changes: 13 additions & 0 deletions docs/BalanceDetails.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# cashfree_pg.Model.BalanceDetails

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**merchant_id** | **decimal** | | [optional]
**vendor_id** | **string** | | [optional]
**merchant_unsettled** | **decimal** | | [optional]
**vendor_unsettled** | **decimal** | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

12 changes: 12 additions & 0 deletions docs/BankDetails.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# cashfree_pg.Model.BankDetails

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**account_number** | **string** | | [optional]
**account_holder** | **string** | | [optional]
**ifsc** | **string** | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

11 changes: 11 additions & 0 deletions docs/Banktransfer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# cashfree_pg.Model.Banktransfer
Banktransfer payment method

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**channel** | **string** | The channel for cardless EMI is always `link` | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

11 changes: 11 additions & 0 deletions docs/BanktransferPaymentMethod.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# cashfree_pg.Model.BanktransferPaymentMethod
banktransfer payment method

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**banktransfer** | [**Banktransfer**](Banktransfer.md) | |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

25 changes: 25 additions & 0 deletions docs/Card.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# cashfree_pg.Model.Card
Card Payment method

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**channel** | **string** | The channel for card payments can be \"link\" or \"post\". Post is used for seamless OTP payments where merchant captures OTP on their own page. |
**card_number** | **string** | Customer card number for plain card transactions. Token pan number for tokenized card transactions. | [optional]
**card_holder_name** | **string** | Customer name mentioned on the card. | [optional]
**card_expiry_mm** | **string** | Card expiry month for plain card transactions. Token expiry month for tokenized card transactions. | [optional]
**card_expiry_yy** | **string** | Card expiry year for plain card transactions. Token expiry year for tokenized card transactions. | [optional]
**card_cvv** | **string** | CVV mentioned on the card. | [optional]
**instrument_id** | **string** | instrument id of saved card. Required only to make payment using saved instrument. | [optional]
**cryptogram** | **string** | cryptogram received from card network. Required only for tokenized card transactions. | [optional]
**token_requestor_id** | **string** | TRID issued by card networks. Required only for tokenized card transactions. | [optional]
**token_reference_id** | **string** | Token Reference Id provided by Diners for Guest Checkout Token. Required only for Diners cards. | [optional]
**token_type** | **string** | | [optional]
**card_display** | **string** | last 4 digits of original card number. Required only for tokenized card transactions. | [optional]
**card_alias** | **string** | Card alias as returned by Cashfree Vault API. | [optional]
**card_bank_name** | **string** | One of [\"Kotak\", \"ICICI\", \"RBL\", \"BOB\", \"Standard Chartered\"]. Card bank name, required for EMI payments. This is the bank user has selected for EMI | [optional]
**emi_tenure** | **int** | EMI tenure selected by the user | [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)

19 changes: 19 additions & 0 deletions docs/CardEMI.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# cashfree_pg.Model.CardEMI
Payment method for card emi

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**channel** | **string** | The channel for card payments will always be \"link\" |
**card_number** | **string** | Customer card number. |
**card_holder_name** | **string** | Customer name mentioned on the card. | [optional]
**card_expiry_mm** | **string** | Card expiry month. |
**card_expiry_yy** | **string** | Card expiry year. |
**card_cvv** | **string** | CVV mentioned on the card. |
**card_alias** | **string** | Card alias as returned by Cashfree Vault API | [optional]
**card_bank_name** | **string** | Card bank name, required for EMI payments. This is the bank user has selected for EMI. One of [\"hdfc, \"kotak\", \"icici\", \"rbl\", \"bob\", \"standard chartered\", \"axis\", \"au\", \"yes\", \"sbi\", \"fed\", \"hsbc\", \"citi\", \"amex\"] |
**emi_tenure** | **int** | EMI tenure selected by the user |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

11 changes: 11 additions & 0 deletions docs/CardEMIPaymentMethod.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# cashfree_pg.Model.CardEMIPaymentMethod
Complete card emi payment method

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**emi** | [**CardEMI**](CardEMI.md) | |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

12 changes: 12 additions & 0 deletions docs/CardOffer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# cashfree_pg.Model.CardOffer

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**type** | **List<string>** | |
**bank_name** | **string** | Bank Name of Card. |
**scheme_name** | **List<string>** | |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Loading

0 comments on commit 7af836d

Please sign in to comment.