Skip to content

Commit

Permalink
Merge pull request #29 from cashfree/3.2.11
Browse files Browse the repository at this point in the history
3.2.11
  • Loading branch information
suhas-cashfree authored Jan 29, 2024
2 parents 2ec4865 + 93b5126 commit a20151b
Show file tree
Hide file tree
Showing 147 changed files with 1,307 additions and 238 deletions.
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", "{F123BC72-862D-4E67-B1BE-5DBBCDF5AD57}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "cashfree_pg", "src\cashfree_pg\cashfree_pg.csproj", "{A15B7B42-5491-4B2A-972B-DE6CADE4F5A5}"
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
{F123BC72-862D-4E67-B1BE-5DBBCDF5AD57}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F123BC72-862D-4E67-B1BE-5DBBCDF5AD57}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F123BC72-862D-4E67-B1BE-5DBBCDF5AD57}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F123BC72-862D-4E67-B1BE-5DBBCDF5AD57}.Release|Any CPU.Build.0 = Release|Any CPU
{A15B7B42-5491-4B2A-972B-DE6CADE4F5A5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A15B7B42-5491-4B2A-972B-DE6CADE4F5A5}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A15B7B42-5491-4B2A-972B-DE6CADE4F5A5}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A15B7B42-5491-4B2A-972B-DE6CADE4F5A5}.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
4 changes: 2 additions & 2 deletions docs/CashbackDetails.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ Cashback detail boject
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**cashback_type** | **string** | Type of discount |
**cashback_value** | **string** | Value of Discount. |
**max_cashback_amount** | **string** | Maximum Value of Cashback allowed. |
**cashback_value** | **decimal** | Value of Discount. |
**max_cashback_amount** | **decimal** | Maximum Value of Cashback allowed. |

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

4 changes: 2 additions & 2 deletions docs/DiscountDetails.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ detils of the discount object of offer
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**discount_type** | **string** | Type of discount |
**discount_value** | **string** | Value of Discount. |
**max_discount_amount** | **string** | Maximum Value of Discount allowed. |
**discount_value** | **decimal** | Value of Discount. |
**max_discount_amount** | **decimal** | Maximum Value of Discount allowed. |

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

128 changes: 64 additions & 64 deletions src/cashfree_pg/Client/ApiClient.cs

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions src/cashfree_pg/Client/Configuration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class Configuration : IReadableConfiguration
/// Version of the package.
/// </summary>
/// <value>Version of the package.</value>
public const string Version = "3.2.3";
public const string Version = "3.2.11";

/// <summary>
/// Identifier for ISO 8601 DateTime Format
Expand Down Expand Up @@ -113,7 +113,7 @@ public class Configuration : IReadableConfiguration
public Configuration()
{
Proxy = null;
UserAgent = WebUtility.UrlEncode("OpenAPI-Generator/3.2.3/csharp");
UserAgent = WebUtility.UrlEncode("OpenAPI-Generator/3.2.11/csharp");
BasePath = "https://sandbox.cashfree.com/pg";
DefaultHeaders = new ConcurrentDictionary<string, string>();
ApiKey = new ConcurrentDictionary<string, string>();
Expand Down Expand Up @@ -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: 2022-09-01\n";
report += " SDK Package Version: 3.2.3\n";
report += " SDK Package Version: 3.2.11\n";

return report;
}
Expand Down
8 changes: 8 additions & 0 deletions src/cashfree_pg/Model/ApiError.cs
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,14 @@ public bool Equals(ApiError input)
);
}

public static Boolean checkPresenceOfKey(string jsonStringmessage) {
dynamic deserializedJsonString = JsonConvert.DeserializeObject<dynamic>(jsonStringmessage);
if (deserializedJsonString.ContainsKey("message")) {
return true;
}
return false;
}

/// <summary>
/// Gets the hash code
/// </summary>
Expand Down
8 changes: 8 additions & 0 deletions src/cashfree_pg/Model/ApiError404.cs
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,14 @@ public bool Equals(ApiError404 input)
);
}

public static Boolean checkPresenceOfKey(string jsonStringmessage) {
dynamic deserializedJsonString = JsonConvert.DeserializeObject<dynamic>(jsonStringmessage);
if (deserializedJsonString.ContainsKey("message")) {
return true;
}
return false;
}

/// <summary>
/// Gets the hash code
/// </summary>
Expand Down
8 changes: 8 additions & 0 deletions src/cashfree_pg/Model/ApiError409.cs
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,14 @@ public bool Equals(ApiError409 input)
);
}

public static Boolean checkPresenceOfKey(string jsonStringmessage) {
dynamic deserializedJsonString = JsonConvert.DeserializeObject<dynamic>(jsonStringmessage);
if (deserializedJsonString.ContainsKey("message")) {
return true;
}
return false;
}

/// <summary>
/// Gets the hash code
/// </summary>
Expand Down
8 changes: 8 additions & 0 deletions src/cashfree_pg/Model/ApiError502.cs
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,14 @@ public bool Equals(ApiError502 input)
);
}

public static Boolean checkPresenceOfKey(string jsonStringmessage) {
dynamic deserializedJsonString = JsonConvert.DeserializeObject<dynamic>(jsonStringmessage);
if (deserializedJsonString.ContainsKey("message")) {
return true;
}
return false;
}

/// <summary>
/// Gets the hash code
/// </summary>
Expand Down
8 changes: 8 additions & 0 deletions src/cashfree_pg/Model/App.cs
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,14 @@ public bool Equals(App input)
);
}

public static Boolean checkPresenceOfKey(string jsonStringchannel) {
dynamic deserializedJsonString = JsonConvert.DeserializeObject<dynamic>(jsonStringchannel);
if (deserializedJsonString.ContainsKey("channel")) {
return true;
}
return false;
}

/// <summary>
/// Gets the hash code
/// </summary>
Expand Down
8 changes: 8 additions & 0 deletions src/cashfree_pg/Model/AppPaymentMethod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,14 @@ public bool Equals(AppPaymentMethod input)
);
}

public static Boolean checkPresenceOfKey(string jsonStringapp) {
dynamic deserializedJsonString = JsonConvert.DeserializeObject<dynamic>(jsonStringapp);
if (deserializedJsonString.ContainsKey("app")) {
return true;
}
return false;
}

/// <summary>
/// Gets the hash code
/// </summary>
Expand Down
8 changes: 8 additions & 0 deletions src/cashfree_pg/Model/AuthenticationError.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,14 @@ public bool Equals(AuthenticationError input)
);
}

public static Boolean checkPresenceOfKey(string jsonStringmessage) {
dynamic deserializedJsonString = JsonConvert.DeserializeObject<dynamic>(jsonStringmessage);
if (deserializedJsonString.ContainsKey("message")) {
return true;
}
return false;
}

/// <summary>
/// Gets the hash code
/// </summary>
Expand Down
1 change: 1 addition & 0 deletions src/cashfree_pg/Model/AuthorizationInPaymentsEntity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ public bool Equals(AuthorizationInPaymentsEntity input)
);
}


/// <summary>
/// Gets the hash code
/// </summary>
Expand Down
1 change: 1 addition & 0 deletions src/cashfree_pg/Model/AuthorizeOrderRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ public bool Equals(AuthorizeOrderRequest input)
);
}


/// <summary>
/// Gets the hash code
/// </summary>
Expand Down
8 changes: 8 additions & 0 deletions src/cashfree_pg/Model/BadRequestError.cs
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,14 @@ public bool Equals(BadRequestError input)
);
}

public static Boolean checkPresenceOfKey(string jsonStringmessage) {
dynamic deserializedJsonString = JsonConvert.DeserializeObject<dynamic>(jsonStringmessage);
if (deserializedJsonString.ContainsKey("message")) {
return true;
}
return false;
}

/// <summary>
/// Gets the hash code
/// </summary>
Expand Down
1 change: 1 addition & 0 deletions src/cashfree_pg/Model/Card.cs
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,7 @@ public bool Equals(Card input)
);
}


/// <summary>
/// Gets the hash code
/// </summary>
Expand Down
8 changes: 8 additions & 0 deletions src/cashfree_pg/Model/CardEMI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,14 @@ public bool Equals(CardEMI input)
);
}

public static Boolean checkPresenceOfKey(string jsonStringchannel) {
dynamic deserializedJsonString = JsonConvert.DeserializeObject<dynamic>(jsonStringchannel);
if (deserializedJsonString.ContainsKey("channel")) {
return true;
}
return false;
}

/// <summary>
/// Gets the hash code
/// </summary>
Expand Down
8 changes: 8 additions & 0 deletions src/cashfree_pg/Model/CardEMIPaymentMethod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,14 @@ public bool Equals(CardEMIPaymentMethod input)
);
}

public static Boolean checkPresenceOfKey(string jsonStringemi) {
dynamic deserializedJsonString = JsonConvert.DeserializeObject<dynamic>(jsonStringemi);
if (deserializedJsonString.ContainsKey("emi")) {
return true;
}
return false;
}

/// <summary>
/// Gets the hash code
/// </summary>
Expand Down
8 changes: 8 additions & 0 deletions src/cashfree_pg/Model/CardOffer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,14 @@ public bool Equals(CardOffer input)
);
}

public static Boolean checkPresenceOfKey(string jsonStringtype) {
dynamic deserializedJsonString = JsonConvert.DeserializeObject<dynamic>(jsonStringtype);
if (deserializedJsonString.ContainsKey("type")) {
return true;
}
return false;
}

/// <summary>
/// Gets the hash code
/// </summary>
Expand Down
8 changes: 8 additions & 0 deletions src/cashfree_pg/Model/CardPaymentMethod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,14 @@ public bool Equals(CardPaymentMethod input)
);
}

public static Boolean checkPresenceOfKey(string jsonStringcard) {
dynamic deserializedJsonString = JsonConvert.DeserializeObject<dynamic>(jsonStringcard);
if (deserializedJsonString.ContainsKey("card")) {
return true;
}
return false;
}

/// <summary>
/// Gets the hash code
/// </summary>
Expand Down
8 changes: 8 additions & 0 deletions src/cashfree_pg/Model/CardlessEMI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,14 @@ public bool Equals(CardlessEMI input)
);
}

public static Boolean checkPresenceOfKey(string jsonStringchannel) {
dynamic deserializedJsonString = JsonConvert.DeserializeObject<dynamic>(jsonStringchannel);
if (deserializedJsonString.ContainsKey("channel")) {
return true;
}
return false;
}

/// <summary>
/// Gets the hash code
/// </summary>
Expand Down
8 changes: 8 additions & 0 deletions src/cashfree_pg/Model/CardlessEMIEntity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,14 @@ public bool Equals(CardlessEMIEntity input)
);
}

public static Boolean checkPresenceOfKey(string jsonStringpayment_method) {
dynamic deserializedJsonString = JsonConvert.DeserializeObject<dynamic>(jsonStringpayment_method);
if (deserializedJsonString.ContainsKey("payment_method")) {
return true;
}
return false;
}

/// <summary>
/// Gets the hash code
/// </summary>
Expand Down
8 changes: 8 additions & 0 deletions src/cashfree_pg/Model/CardlessEMIPaymentMethod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,14 @@ public bool Equals(CardlessEMIPaymentMethod input)
);
}

public static Boolean checkPresenceOfKey(string jsonStringcardless_emi) {
dynamic deserializedJsonString = JsonConvert.DeserializeObject<dynamic>(jsonStringcardless_emi);
if (deserializedJsonString.ContainsKey("cardless_emi")) {
return true;
}
return false;
}

/// <summary>
/// Gets the hash code
/// </summary>
Expand Down
8 changes: 8 additions & 0 deletions src/cashfree_pg/Model/CardlessEMIQueries.cs
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,14 @@ public bool Equals(CardlessEMIQueries input)
);
}

public static Boolean checkPresenceOfKey(string jsonStringorder_id) {
dynamic deserializedJsonString = JsonConvert.DeserializeObject<dynamic>(jsonStringorder_id);
if (deserializedJsonString.ContainsKey("order_id")) {
return true;
}
return false;
}

/// <summary>
/// Gets the hash code
/// </summary>
Expand Down
Loading

0 comments on commit a20151b

Please sign in to comment.