Skip to content

Commit b56f5ad

Browse files
Merge pull request #56 from cashfree/4.3.5
4.3.5
2 parents 889218d + 2951348 commit b56f5ad

File tree

89 files changed

+12298
-787
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+12298
-787
lines changed

.openapi-generator/FILES

Lines changed: 102 additions & 0 deletions
Large diffs are not rendered by default.

cashfree_pg.sln

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
22
# Visual Studio 14
33
VisualStudioVersion = 14.0.25420.1
44
MinimumVisualStudioVersion = 10.0.40219.1
5-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "cashfree_pg", "src\cashfree_pg\cashfree_pg.csproj", "{55100CDD-A01C-4226-ADF4-11450E9EAC74}"
5+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "cashfree_pg", "src\cashfree_pg\cashfree_pg.csproj", "{5362BB7E-8184-4695-8748-E3561DC2E5B0}"
66
EndProject
77
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "cashfree_pg.Test", "src\cashfree_pg.Test\cashfree_pg.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}"
88
EndProject
@@ -12,10 +12,10 @@ Global
1212
Release|Any CPU = Release|Any CPU
1313
EndGlobalSection
1414
GlobalSection(ProjectConfigurationPlatforms) = postSolution
15-
{55100CDD-A01C-4226-ADF4-11450E9EAC74}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
16-
{55100CDD-A01C-4226-ADF4-11450E9EAC74}.Debug|Any CPU.Build.0 = Debug|Any CPU
17-
{55100CDD-A01C-4226-ADF4-11450E9EAC74}.Release|Any CPU.ActiveCfg = Release|Any CPU
18-
{55100CDD-A01C-4226-ADF4-11450E9EAC74}.Release|Any CPU.Build.0 = Release|Any CPU
15+
{5362BB7E-8184-4695-8748-E3561DC2E5B0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
16+
{5362BB7E-8184-4695-8748-E3561DC2E5B0}.Debug|Any CPU.Build.0 = Debug|Any CPU
17+
{5362BB7E-8184-4695-8748-E3561DC2E5B0}.Release|Any CPU.ActiveCfg = Release|Any CPU
18+
{5362BB7E-8184-4695-8748-E3561DC2E5B0}.Release|Any CPU.Build.0 = Release|Any CPU
1919
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
2020
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU
2121
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU

docs/AddressDetails.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# cashfree_pg.Model.AddressDetails
2+
Address associated with the customer.
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**name** | **string** | Full Name of the customer associated with the address. | [optional]
9+
**address_line_one** | **string** | First line of the address. | [optional]
10+
**address_line_two** | **string** | Second line of the address. | [optional]
11+
**country** | **string** | Country Name. | [optional]
12+
**country_code** | **string** | Country Code. | [optional]
13+
**state** | **string** | State Name. | [optional]
14+
**state_code** | **string** | State Code. | [optional]
15+
**city** | **string** | City Name. | [optional]
16+
**pin_code** | **string** | Pin Code/Zip Code. | [optional]
17+
**phone** | **string** | Customer Phone Number. | [optional]
18+
**email** | **string** | Cutomer Email Address. | [optional]
19+
20+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
21+

docs/CartDetails.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# cashfree_pg.Model.CartDetails
2+
The cart details that are necessary like shipping address, billing address and more.
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**shipping_charge** | **double** | | [optional]
9+
**cart_name** | **string** | Name of the cart. | [optional]
10+
**cart_items** | [**List<CartItem>**](CartItem.md) | | [optional]
11+
12+
[[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+

docs/CartDetailsEntity.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# cashfree_pg.Model.CartDetailsEntity
2+
Cart Details in the Order Entity Response
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**cart_id** | **string** | ID of the cart that was created | [optional]
9+
10+
[[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+

docs/CartItem.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# cashfree_pg.Model.CartItem
2+
Each item in the cart.
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**item_id** | **string** | Unique identifier of the item | [optional]
9+
**item_name** | **string** | Name of the item | [optional]
10+
**item_description** | **string** | Description of the item | [optional]
11+
**item_tags** | **List<string>** | Tags attached to that item | [optional]
12+
**item_details_url** | **string** | Item details url | [optional]
13+
**item_image_url** | **string** | Item image url | [optional]
14+
**item_original_unit_price** | **double** | Original price | [optional]
15+
**item_discounted_unit_price** | **double** | Discounted Price | [optional]
16+
**item_currency** | **string** | Currency of the item. | [optional]
17+
**item_quantity** | **decimal** | Quantity if that item | [optional]
18+
19+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
20+

docs/ChargesEntity.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# cashfree_pg.Model.ChargesEntity
2+
Charges accociated with the order
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**shipping_charges** | **decimal** | Shipping charge of the order | [optional]
9+
**cod_handling_charges** | **decimal** | COD handling fee for order | [optional]
10+
11+
[[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+

docs/CreateOrderRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
88
**order_id** | **string** | Order identifier present in your system. Alphanumeric, '_' and '-' only | [optional]
99
**order_amount** | **double** | Bill amount for the order. Provide upto two decimals. 10.15 means Rs 10 and 15 paisa |
1010
**order_currency** | **string** | Currency for the order. INR if left empty. Contact [email protected] to enable new currencies. |
11+
**cart_details** | [**CartDetails**](CartDetails.md) | | [optional]
1112
**customer_details** | [**CustomerDetails**](CustomerDetails.md) | |
1213
**terminal** | [**TerminalDetails**](TerminalDetails.md) | | [optional]
1314
**order_meta** | [**OrderMeta**](OrderMeta.md) | | [optional]

docs/CreatePartnerVpaRequest.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# cashfree_pg.Model.CreatePartnerVpaRequest
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**vpa_count** | **int** | count of vpa , to create in bulk, max limit:50 |
8+
9+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
10+

docs/CreateSubscriptionRequestAuthorizationDetails.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**authorization_amount** | **decimal** | Authorization amount for the auth payment. | [optional]
88
**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]
9+
**payment_methods** | **List<string>** | Payment methods for the subscription. enach, pnach, upi, card are possible values. | [optional]
910

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# cashfree_pg.Model.CustomerDetailsInDisputesEntity
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**customer_name** | **string** | | [optional]
8+
**customer_phone** | **string** | | [optional]
9+
**customer_email** | **string** | | [optional]
10+
11+
[[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+

docs/DefaultApi.md

Lines changed: 189 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,189 @@
1+
# cashfree_pg.Api.DefaultApi
2+
3+
All URIs are relative to *https://sandbox.cashfree.com/pg*
4+
5+
| Method | HTTP request | Description |
6+
|--------|--------------|-------------|
7+
| [**TerminalCreateQRCodes**](DefaultApi.md#terminalcreateqrcodes) | **POST** /partners/merchant/qrcodes | Create Pre-Activated Vpas for partner |
8+
| [**TerminalGetQRCodes**](DefaultApi.md#terminalgetqrcodes) | **GET** /partners/merchant/qrcodes | Get Pre-Activated Vpas for partner |
9+
10+
<a id="terminalcreateqrcodes"></a>
11+
# **TerminalCreateQRCodes**
12+
> List&lt;StaticQrResponseEntity&gt; TerminalCreateQRCodes (string xApiVersion, string? xRequestId = null, Guid? xIdempotencyKey = null, CreatePartnerVpaRequest? createPartnerVpaRequest = null)
13+
14+
Create Pre-Activated Vpas for partner
15+
16+
Use this API to create a pre-activated vpa for partner.
17+
18+
### Example
19+
```csharp
20+
using System.Collections.Generic;
21+
using System.Diagnostics;
22+
using cashfree_pg.Client;
23+
using cashfree_pg.Model;
24+
25+
namespace Example
26+
{
27+
public class TerminalCreateQRCodesExample
28+
{
29+
public static void Main()
30+
{
31+
// Configuration
32+
Cashfree.XClientId = "<x-client-id>";
33+
Cashfree.XClientSecret = "<x-client-secret>";
34+
Cashfree.XEnvironment = Cashfree.SANDBOX;
35+
36+
// Instance of Cashfree
37+
var cashfree = new Cashfree();
38+
39+
40+
var xApiVersion = 2023-08-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2023-08-01")
41+
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)
42+
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)
43+
var createPartnerVpaRequest = new CreatePartnerVpaRequest?(); // CreatePartnerVpaRequest? | (optional)
44+
45+
try
46+
{
47+
// Create Pre-Activated Vpas for partner
48+
List<StaticQrResponseEntity> result = cashfree.TerminalCreateQRCodes(xApiVersion, xRequestId, xIdempotencyKey, createPartnerVpaRequest);
49+
Debug.WriteLine(result);
50+
}
51+
catch (ApiException e)
52+
{
53+
Debug.Print("Exception when calling DefaultApi.TerminalCreateQRCodes: " + e.Message);
54+
Debug.Print("Status Code: " + e.ErrorCode);
55+
Debug.Print(e.StackTrace);
56+
}
57+
}
58+
}
59+
}
60+
```
61+
62+
### Parameters
63+
64+
| Name | Type | Description | Notes |
65+
|------|------|-------------|-------|
66+
| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to &quot;2023-08-01&quot;] |
67+
| **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] |
68+
| **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] |
69+
| **createPartnerVpaRequest** | [**CreatePartnerVpaRequest?**](CreatePartnerVpaRequest?.md) | | [optional] |
70+
71+
### Return type
72+
73+
[**List&lt;StaticQrResponseEntity&gt;**](StaticQrResponseEntity.md)
74+
75+
### Authorization
76+
77+
No authorization required
78+
79+
### HTTP request headers
80+
81+
- **Content-Type**: application/json
82+
- **Accept**: application/json
83+
84+
85+
### HTTP response details
86+
| Status code | Description | Response headers |
87+
|-------------|-------------|------------------|
88+
| **200** | OK | - |
89+
| **401** | Invalid Partner API Key | - |
90+
| **400** | Bad request error | * x-api-version - <br> * x-ratelimit-limit - <br> * x-ratelimit-remaining - <br> * x-ratelimit-retry - <br> * x-ratelimit-type - <br> * x-request-id - <br> * x-idempotency-key - <br> * x-idempotency-replayed - <br> |
91+
| **404** | Resource Not found | * x-api-version - <br> * x-ratelimit-limit - <br> * x-ratelimit-remaining - <br> * x-ratelimit-retry - <br> * x-ratelimit-type - <br> * x-request-id - <br> * x-idempotency-key - <br> * x-idempotency-replayed - <br> |
92+
| **409** | Resource already present | * x-api-version - <br> * x-ratelimit-limit - <br> * x-ratelimit-remaining - <br> * x-ratelimit-retry - <br> * x-ratelimit-type - <br> * x-request-id - <br> * x-idempotency-key - <br> * x-idempotency-replayed - <br> |
93+
| **422** | Idempotency error | * x-api-version - <br> * x-ratelimit-limit - <br> * x-ratelimit-remaining - <br> * x-ratelimit-retry - <br> * x-ratelimit-type - <br> * x-request-id - <br> * x-idempotency-key - <br> * x-idempotency-replayed - <br> |
94+
| **429** | Rate Limit Error | * x-api-version - <br> * x-ratelimit-limit - <br> * x-ratelimit-remaining - <br> * x-ratelimit-retry - <br> * x-ratelimit-type - <br> * x-request-id - <br> * x-idempotency-key - <br> * x-idempotency-replayed - <br> |
95+
| **500** | API related Error | * x-api-version - <br> * x-ratelimit-limit - <br> * x-ratelimit-remaining - <br> * x-ratelimit-retry - <br> * x-ratelimit-type - <br> * x-request-id - <br> * x-idempotency-key - <br> * x-idempotency-replayed - <br> |
96+
97+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
98+
99+
<a id="terminalgetqrcodes"></a>
100+
# **TerminalGetQRCodes**
101+
> List&lt;StaticQrResponseEntity&gt; TerminalGetQRCodes (string xApiVersion, string status, string cfTerminalId, string? xRequestId = null, Guid? xIdempotencyKey = null)
102+
103+
Get Pre-Activated Vpas for partner
104+
105+
Use this API to get a pre-activated vpa for partner.
106+
107+
### Example
108+
```csharp
109+
using System.Collections.Generic;
110+
using System.Diagnostics;
111+
using cashfree_pg.Client;
112+
using cashfree_pg.Model;
113+
114+
namespace Example
115+
{
116+
public class TerminalGetQRCodesExample
117+
{
118+
public static void Main()
119+
{
120+
// Configuration
121+
Cashfree.XClientId = "<x-client-id>";
122+
Cashfree.XClientSecret = "<x-client-secret>";
123+
Cashfree.XEnvironment = Cashfree.SANDBOX;
124+
125+
// Instance of Cashfree
126+
var cashfree = new Cashfree();
127+
128+
129+
var xApiVersion = 2023-08-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2023-08-01")
130+
var status = MAPPED; // string | Status of pre-created Qr.
131+
var cfTerminalId = 123344; // string | Cashfree terminal id for which you want to get pre-generated staticQRs.
132+
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)
133+
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)
134+
135+
try
136+
{
137+
// Get Pre-Activated Vpas for partner
138+
List<StaticQrResponseEntity> result = cashfree.TerminalGetQRCodes(xApiVersion, status, cfTerminalId, xRequestId, xIdempotencyKey);
139+
Debug.WriteLine(result);
140+
}
141+
catch (ApiException e)
142+
{
143+
Debug.Print("Exception when calling DefaultApi.TerminalGetQRCodes: " + e.Message);
144+
Debug.Print("Status Code: " + e.ErrorCode);
145+
Debug.Print(e.StackTrace);
146+
}
147+
}
148+
}
149+
}
150+
```
151+
152+
### Parameters
153+
154+
| Name | Type | Description | Notes |
155+
|------|------|-------------|-------|
156+
| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to &quot;2023-08-01&quot;] |
157+
| **status** | **string** | Status of pre-created Qr. | |
158+
| **cfTerminalId** | **string** | Cashfree terminal id for which you want to get pre-generated staticQRs. | |
159+
| **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] |
160+
| **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] |
161+
162+
### Return type
163+
164+
[**List&lt;StaticQrResponseEntity&gt;**](StaticQrResponseEntity.md)
165+
166+
### Authorization
167+
168+
No authorization required
169+
170+
### HTTP request headers
171+
172+
- **Content-Type**: Not defined
173+
- **Accept**: application/json
174+
175+
176+
### HTTP response details
177+
| Status code | Description | Response headers |
178+
|-------------|-------------|------------------|
179+
| **200** | OK | - |
180+
| **401** | Invalid Partner API Key | - |
181+
| **400** | Bad request error | * x-api-version - <br> * x-ratelimit-limit - <br> * x-ratelimit-remaining - <br> * x-ratelimit-retry - <br> * x-ratelimit-type - <br> * x-request-id - <br> * x-idempotency-key - <br> * x-idempotency-replayed - <br> |
182+
| **404** | Resource Not found | * x-api-version - <br> * x-ratelimit-limit - <br> * x-ratelimit-remaining - <br> * x-ratelimit-retry - <br> * x-ratelimit-type - <br> * x-request-id - <br> * x-idempotency-key - <br> * x-idempotency-replayed - <br> |
183+
| **409** | Resource already present | * x-api-version - <br> * x-ratelimit-limit - <br> * x-ratelimit-remaining - <br> * x-ratelimit-retry - <br> * x-ratelimit-type - <br> * x-request-id - <br> * x-idempotency-key - <br> * x-idempotency-replayed - <br> |
184+
| **422** | Idempotency error | * x-api-version - <br> * x-ratelimit-limit - <br> * x-ratelimit-remaining - <br> * x-ratelimit-retry - <br> * x-ratelimit-type - <br> * x-request-id - <br> * x-idempotency-key - <br> * x-idempotency-replayed - <br> |
185+
| **429** | Rate Limit Error | * x-api-version - <br> * x-ratelimit-limit - <br> * x-ratelimit-remaining - <br> * x-ratelimit-retry - <br> * x-ratelimit-type - <br> * x-request-id - <br> * x-idempotency-key - <br> * x-idempotency-replayed - <br> |
186+
| **500** | API related Error | * x-api-version - <br> * x-ratelimit-limit - <br> * x-ratelimit-remaining - <br> * x-ratelimit-retry - <br> * x-ratelimit-type - <br> * x-request-id - <br> * x-idempotency-key - <br> * x-idempotency-replayed - <br> |
187+
188+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
189+

docs/DemapSoundboxVpaRequest.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# cashfree_pg.Model.DemapSoundboxVpaRequest
2+
Request body to demap soundbox vpa
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**cf_terminal_id** | **string** | cashfree terminal id. |
9+
**device_serial_no** | **string** | Device Serial No of soundbox that need to demap. |
10+
11+
[[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+

docs/DisputeEvidence.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# cashfree_pg.Model.DisputeEvidence
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
8+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
9+

0 commit comments

Comments
 (0)