Skip to content

Commit

Permalink
Merge pull request #55 from cashfree/4.3.3
Browse files Browse the repository at this point in the history
4.3.3
  • Loading branch information
suhas-cashfree authored Nov 17, 2024
2 parents a91fdde + 1da9c7f commit 889218d
Show file tree
Hide file tree
Showing 11 changed files with 1,582 additions and 249 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", "{8D1D63AE-C14F-439B-A8D2-8F334F0F6F75}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "cashfree_pg", "src\cashfree_pg\cashfree_pg.csproj", "{55100CDD-A01C-4226-ADF4-11450E9EAC74}"
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
{8D1D63AE-C14F-439B-A8D2-8F334F0F6F75}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8D1D63AE-C14F-439B-A8D2-8F334F0F6F75}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8D1D63AE-C14F-439B-A8D2-8F334F0F6F75}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8D1D63AE-C14F-439B-A8D2-8F334F0F6F75}.Release|Any CPU.Build.0 = Release|Any CPU
{55100CDD-A01C-4226-ADF4-11450E9EAC74}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{55100CDD-A01C-4226-ADF4-11450E9EAC74}.Debug|Any CPU.Build.0 = Debug|Any CPU
{55100CDD-A01C-4226-ADF4-11450E9EAC74}.Release|Any CPU.ActiveCfg = Release|Any CPU
{55100CDD-A01C-4226-ADF4-11450E9EAC74}.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
2 changes: 1 addition & 1 deletion docs/LinkMetaResponseEntity.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Payment link meta information object
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**notify_url** | **string** | Notification URL for server-server communication. It should be an https URL. | [optional]
**upi_intent** | **bool** | If \"true\", link will directly open UPI Intent flow on mobile, and normal link flow elsewhere | [optional]
**upi_intent** | **string** | If \"true\", link will directly open UPI Intent flow on mobile, and normal link flow elsewhere | [optional]
**return_url** | **string** | The URL to which user will be redirected to after the payment is done on the link. Maximum length: 250. | [optional]
**payment_methods** | **string** | Allowed payment modes for this link. Pass comma-separated values among following options - \"cc\", \"dc\", \"ccc\", \"ppc\", \"nb\", \"upi\", \"paypal\", \"app\". Leave it blank to show all available payment methods | [optional]

Expand Down
2 changes: 1 addition & 1 deletion docs/TerminalEntity.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Name | Type | Description | Notes
**terminal_note** | **string** | | [optional]
**terminal_phone_no** | **string** | | [optional]
**terminal_status** | **string** | | [optional]
**terminal_meta** | **string** | | [optional]
**terminal_meta** | [**CreateTerminalRequestTerminalMeta**](CreateTerminalRequestTerminalMeta.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)

2 changes: 1 addition & 1 deletion docs/UpdateTerminalEntity.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Name | Type | Description | Notes
**terminal_note** | **string** | | [optional]
**terminal_phone_no** | **string** | | [optional]
**terminal_status** | **string** | | [optional]
**terminal_meta** | **string** | | [optional]
**terminal_meta** | [**CreateTerminalRequestTerminalMeta**](CreateTerminalRequestTerminalMeta.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)

1,740 changes: 1,542 additions & 198 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 = "4.2.5";
public const string Version = "4.3.3";

/// <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/4.2.5/csharp");
UserAgent = WebUtility.UrlEncode("OpenAPI-Generator/4.3.3/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: 2023-08-01\n";
report += " SDK Package Version: 4.2.5\n";
report += " SDK Package Version: 4.3.3\n";

return report;
}
Expand Down
14 changes: 9 additions & 5 deletions src/cashfree_pg/Model/LinkMetaResponseEntity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public class LinkMetaResponseEntity : IEquatable<LinkMetaResponseEntity>, IValid
/// <param name="upiIntent">If \&quot;true\&quot;, link will directly open UPI Intent flow on mobile, and normal link flow elsewhere.</param>
/// <param name="returnUrl">The URL to which user will be redirected to after the payment is done on the link. Maximum length: 250..</param>
/// <param name="paymentMethods">Allowed payment modes for this link. Pass comma-separated values among following options - \&quot;cc\&quot;, \&quot;dc\&quot;, \&quot;ccc\&quot;, \&quot;ppc\&quot;, \&quot;nb\&quot;, \&quot;upi\&quot;, \&quot;paypal\&quot;, \&quot;app\&quot;. Leave it blank to show all available payment methods.</param>
public LinkMetaResponseEntity(string? notifyUrl = default(string?), bool? upiIntent = default(bool?), string? returnUrl = default(string?), string? paymentMethods = default(string?))
public LinkMetaResponseEntity(string? notifyUrl = default(string?), string? upiIntent = default(string?), string? returnUrl = default(string?), string? paymentMethods = default(string?))
{
this.notify_url = notifyUrl;
this.upi_intent = upiIntent;
Expand All @@ -58,8 +58,8 @@ public class LinkMetaResponseEntity : IEquatable<LinkMetaResponseEntity>, IValid
/// If \&quot;true\&quot;, link will directly open UPI Intent flow on mobile, and normal link flow elsewhere
/// </summary>
/// <value>If \&quot;true\&quot;, link will directly open UPI Intent flow on mobile, and normal link flow elsewhere</value>
[DataMember(Name = "upi_intent", EmitDefaultValue = true)]
public bool? upi_intent { get; set; }
[DataMember(Name = "upi_intent", EmitDefaultValue = false)]
public string? upi_intent { get; set; }

/// <summary>
/// The URL to which user will be redirected to after the payment is done on the link. Maximum length: 250.
Expand Down Expand Up @@ -129,7 +129,8 @@ public bool Equals(LinkMetaResponseEntity input)
) &&
(
this.upi_intent == input.upi_intent ||
this.upi_intent.Equals(input.upi_intent)
(this.upi_intent != null &&
this.upi_intent.Equals(input.upi_intent))
) &&
(
this.return_url == input.return_url ||
Expand Down Expand Up @@ -164,7 +165,10 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.notify_url.GetHashCode();
}
hashCode = (hashCode * 59) + this.upi_intent.GetHashCode();
if (this.upi_intent != null)
{
hashCode = (hashCode * 59) + this.upi_intent.GetHashCode();
}
if (this.return_url != null)
{
hashCode = (hashCode * 59) + this.return_url.GetHashCode();
Expand Down
44 changes: 14 additions & 30 deletions src/cashfree_pg/Model/RefundEntity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -126,33 +126,6 @@ public enum RefundTypeEnum
[DataMember(Name = "refund_type", EmitDefaultValue = false)]
public RefundTypeEnum? refund_type { get; set; }
/// <summary>
/// Method or speed of processing refund
/// </summary>
/// <value>Method or speed of processing refund</value>
[JsonConverter(typeof(StringEnumConverter))]
public enum RefundModeEnum
{
/// <summary>
/// Enum STANDARD for value: STANDARD
/// </summary>
[EnumMember(Value = "STANDARD")]
STANDARD = 1,

/// <summary>
/// Enum INSTANT for value: INSTANT
/// </summary>
[EnumMember(Value = "INSTANT")]
INSTANT = 2
}


/// <summary>
/// Method or speed of processing refund
/// </summary>
/// <value>Method or speed of processing refund</value>
[DataMember(Name = "refund_mode", EmitDefaultValue = false)]
public RefundModeEnum? refund_mode { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="RefundEntity" /> class.
/// </summary>
/// <param name="cfPaymentId">Cashfree Payments ID of the payment for which refund is initiated.</param>
Expand All @@ -174,7 +147,7 @@ public enum RefundModeEnum
/// <param name="createdAt">Time of refund creation.</param>
/// <param name="processedAt">Time when refund was processed successfully.</param>
/// <param name="refundSpeed">refundSpeed.</param>
public RefundEntity(string? cfPaymentId = default(string?), string? cfRefundId = default(string?), string? orderId = default(string?), string? refundId = default(string?), EntityEnum? entity = default(EntityEnum?), decimal? refundAmount = default(decimal?), string? refundCurrency = default(string?), string? refundNote = default(string?), RefundStatusEnum? refundStatus = default(RefundStatusEnum?), string? refundArn = default(string?), decimal? refundCharge = default(decimal?), string? statusDescription = default(string?), Object? metadata = default(Object?), List<VendorSplit>? refundSplits = default(List<VendorSplit>?), RefundTypeEnum? refundType = default(RefundTypeEnum?), RefundModeEnum? refundMode = default(RefundModeEnum?), string? createdAt = default(string?), string? processedAt = default(string?), RefundSpeed? refundSpeed = default(RefundSpeed?))
public RefundEntity(string? cfPaymentId = default(string?), string? cfRefundId = default(string?), string? orderId = default(string?), string? refundId = default(string?), EntityEnum? entity = default(EntityEnum?), decimal? refundAmount = default(decimal?), string? refundCurrency = default(string?), string? refundNote = default(string?), RefundStatusEnum? refundStatus = default(RefundStatusEnum?), string? refundArn = default(string?), decimal? refundCharge = default(decimal?), string? statusDescription = default(string?), Object? metadata = default(Object?), List<VendorSplit>? refundSplits = default(List<VendorSplit>?), RefundTypeEnum? refundType = default(RefundTypeEnum?), string? refundMode = default(string?), string? createdAt = default(string?), string? processedAt = default(string?), RefundSpeed? refundSpeed = default(RefundSpeed?))
{
this.cf_payment_id = cfPaymentId;
this.cf_refund_id = cfRefundId;
Expand Down Expand Up @@ -280,6 +253,13 @@ public enum RefundModeEnum
[DataMember(Name = "refund_splits", EmitDefaultValue = false)]
public List<VendorSplit>? refund_splits { get; set; }

/// <summary>
/// Method or speed of processing refund
/// </summary>
/// <value>Method or speed of processing refund</value>
[DataMember(Name = "refund_mode", EmitDefaultValue = false)]
public string? refund_mode { get; set; }

/// <summary>
/// Time of refund creation
/// </summary>
Expand Down Expand Up @@ -435,7 +415,8 @@ public bool Equals(RefundEntity input)
) &&
(
this.refund_mode == input.refund_mode ||
this.refund_mode.Equals(input.refund_mode)
(this.refund_mode != null &&
this.refund_mode.Equals(input.refund_mode))
) &&
(
this.created_at == input.created_at ||
Expand Down Expand Up @@ -516,7 +497,10 @@ public override int GetHashCode()
hashCode = (hashCode * 59) + this.refund_splits.GetHashCode();
}
hashCode = (hashCode * 59) + this.refund_type.GetHashCode();
hashCode = (hashCode * 59) + this.refund_mode.GetHashCode();
if (this.refund_mode != null)
{
hashCode = (hashCode * 59) + this.refund_mode.GetHashCode();
}
if (this.created_at != null)
{
hashCode = (hashCode * 59) + this.created_at.GetHashCode();
Expand Down
4 changes: 2 additions & 2 deletions src/cashfree_pg/Model/TerminalEntity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public class TerminalEntity : IEquatable<TerminalEntity>, IValidatableObject
/// <param name="terminalPhoneNo">terminalPhoneNo.</param>
/// <param name="terminalStatus">terminalStatus.</param>
/// <param name="terminalMeta">terminalMeta.</param>
public TerminalEntity(string? addedOn = default(string?), int? cfTerminalId = default(int?), string? lastUpdatedOn = default(string?), string? terminalAddress = default(string?), string? terminalEmail = default(string?), string? terminalType = default(string?), string? teminalId = default(string?), string? terminalName = default(string?), string? terminalNote = default(string?), string? terminalPhoneNo = default(string?), string? terminalStatus = default(string?), string? terminalMeta = default(string?))
public TerminalEntity(string? addedOn = default(string?), int? cfTerminalId = default(int?), string? lastUpdatedOn = default(string?), string? terminalAddress = default(string?), string? terminalEmail = default(string?), string? terminalType = default(string?), string? teminalId = default(string?), string? terminalName = default(string?), string? terminalNote = default(string?), string? terminalPhoneNo = default(string?), string? terminalStatus = default(string?), CreateTerminalRequestTerminalMeta? terminalMeta = default(CreateTerminalRequestTerminalMeta?))
{
this.added_on = addedOn;
this.cf_terminal_id = cfTerminalId;
Expand Down Expand Up @@ -133,7 +133,7 @@ public class TerminalEntity : IEquatable<TerminalEntity>, IValidatableObject
/// Gets or Sets terminal_meta
/// </summary>
[DataMember(Name = "terminal_meta", EmitDefaultValue = false)]
public string? terminal_meta { get; set; }
public CreateTerminalRequestTerminalMeta? terminal_meta { get; set; }

/// <summary>
/// Returns the string presentation of the object
Expand Down
4 changes: 2 additions & 2 deletions src/cashfree_pg/Model/UpdateTerminalEntity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public class UpdateTerminalEntity : IEquatable<UpdateTerminalEntity>, IValidatab
/// <param name="terminalPhoneNo">terminalPhoneNo.</param>
/// <param name="terminalStatus">terminalStatus.</param>
/// <param name="terminalMeta">terminalMeta.</param>
public UpdateTerminalEntity(string? addedOn = default(string?), int? cfTerminalId = default(int?), string? lastUpdatedOn = default(string?), string? terminalAddress = default(string?), string? terminalEmail = default(string?), string? terminalType = default(string?), string? teminalId = default(string?), string? terminalName = default(string?), string? terminalNote = default(string?), string? terminalPhoneNo = default(string?), string? terminalStatus = default(string?), string? terminalMeta = default(string?))
public UpdateTerminalEntity(string? addedOn = default(string?), int? cfTerminalId = default(int?), string? lastUpdatedOn = default(string?), string? terminalAddress = default(string?), string? terminalEmail = default(string?), string? terminalType = default(string?), string? teminalId = default(string?), string? terminalName = default(string?), string? terminalNote = default(string?), string? terminalPhoneNo = default(string?), string? terminalStatus = default(string?), CreateTerminalRequestTerminalMeta? terminalMeta = default(CreateTerminalRequestTerminalMeta?))
{
this.added_on = addedOn;
this.cf_terminal_id = cfTerminalId;
Expand Down Expand Up @@ -133,7 +133,7 @@ public class UpdateTerminalEntity : IEquatable<UpdateTerminalEntity>, IValidatab
/// Gets or Sets terminal_meta
/// </summary>
[DataMember(Name = "terminal_meta", EmitDefaultValue = false)]
public string? terminal_meta { get; set; }
public CreateTerminalRequestTerminalMeta? terminal_meta { get; set; }

/// <summary>
/// Returns the string presentation of the object
Expand Down
3 changes: 2 additions & 1 deletion src/cashfree_pg/cashfree_pg.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<Description>Cashfree&#39;s Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.</Description>
<Copyright>© 2023 Cashfree Payments India Private Limited</Copyright>
<RootNamespace>com.cashfree</RootNamespace>
<Version>4.2.5</Version>
<Version>4.3.3</Version>
<PackageLicenseFile>LICENSE.md</PackageLicenseFile>
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\cashfree_pg.xml</DocumentationFile>
<RepositoryUrl>https://github.com/cashfree/cashfree-pg-sdk-dotnet.git</RepositoryUrl>
Expand All @@ -26,6 +26,7 @@
<ItemGroup>
<None Include="LICENSE.md" Pack="true" PackagePath=""/>
<None Include="README.md" Pack="true" PackagePath="\"/>
<PackageReference Include="Sentry" Version="3.41.0" />
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
<PackageReference Include="JsonSubTypes" Version="2.0.1" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
Expand Down

0 comments on commit 889218d

Please sign in to comment.