-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from cashfree/4.1.0
4.1.0
- Loading branch information
Showing
10 changed files
with
191 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,7 @@ Name | Type | Description | Notes | |
**link_auto_reminders** | **bool** | If \"true\", reminders will be sent to customers for collecting payments. | [optional] | ||
**link_notes** | **Dictionary<string, string>** | Key-value pair that can be used to store additional information about the entity. Maximum 5 key-value pairs | [optional] | ||
**link_meta** | [**LinkMetaResponseEntity**](LinkMetaResponseEntity.md) | | [optional] | ||
**order_splits** | [**List<VendorSplit>**](VendorSplit.md) | Use this option to split order amount and settle to Multiple Vendors. Contact [email protected] to enable this feature. | [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) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,7 +52,8 @@ protected CreateLinkRequest() { } | |
/// <param name="linkAutoReminders">If \"true\", reminders will be sent to customers for collecting payments..</param> | ||
/// <param name="linkNotes">Key-value pair that can be used to store additional information about the entity. Maximum 5 key-value pairs.</param> | ||
/// <param name="linkMeta">linkMeta.</param> | ||
public CreateLinkRequest(string linkId = default(string), double linkAmount = default(double), string linkCurrency = default(string), string linkPurpose = default(string), LinkCustomerDetailsEntity customerDetails = default(LinkCustomerDetailsEntity), bool linkPartialPayments = default(bool), double linkMinimumPartialAmount = default(double), string linkExpiryTime = default(string), LinkNotifyEntity linkNotify = default(LinkNotifyEntity), bool linkAutoReminders = default(bool), Dictionary<string, string> linkNotes = default(Dictionary<string, string>), LinkMetaResponseEntity linkMeta = default(LinkMetaResponseEntity)) | ||
/// <param name="orderSplits">Use this option to split order amount and settle to Multiple Vendors. Contact [email protected] to enable this feature..</param> | ||
public CreateLinkRequest(string linkId = default(string), double linkAmount = default(double), string linkCurrency = default(string), string linkPurpose = default(string), LinkCustomerDetailsEntity customerDetails = default(LinkCustomerDetailsEntity), bool linkPartialPayments = default(bool), double linkMinimumPartialAmount = default(double), string linkExpiryTime = default(string), LinkNotifyEntity linkNotify = default(LinkNotifyEntity), bool linkAutoReminders = default(bool), Dictionary<string, string> linkNotes = default(Dictionary<string, string>), LinkMetaResponseEntity linkMeta = default(LinkMetaResponseEntity), List<VendorSplit> orderSplits = default(List<VendorSplit>)) | ||
{ | ||
// to ensure "linkId" is required (not null) | ||
if (linkId == null) | ||
|
@@ -86,6 +87,7 @@ protected CreateLinkRequest() { } | |
this.link_auto_reminders = linkAutoReminders; | ||
this.link_notes = linkNotes; | ||
this.link_meta = linkMeta; | ||
this.order_splits = orderSplits; | ||
} | ||
|
||
/// <summary> | ||
|
@@ -170,6 +172,14 @@ protected CreateLinkRequest() { } | |
[DataMember(Name = "link_meta", EmitDefaultValue = false)] | ||
public LinkMetaResponseEntity link_meta { get; set; } | ||
|
||
/// <summary> | ||
/// Use this option to split order amount and settle to Multiple Vendors. Contact [email protected] to enable this feature. | ||
/// </summary> | ||
/// <value>Use this option to split order amount and settle to Multiple Vendors. Contact [email protected] to enable this feature.</value> | ||
/// <example>[{"amount":10,"vendor":"john"}]</example> | ||
[DataMember(Name = "order_splits", EmitDefaultValue = false)] | ||
public List<VendorSplit> order_splits { get; set; } | ||
|
||
/// <summary> | ||
/// Returns the string presentation of the object | ||
/// </summary> | ||
|
@@ -190,6 +200,7 @@ public override string ToString() | |
sb.Append(" link_auto_reminders: ").Append(link_auto_reminders).Append("\n"); | ||
sb.Append(" link_notes: ").Append(link_notes).Append("\n"); | ||
sb.Append(" link_meta: ").Append(link_meta).Append("\n"); | ||
sb.Append(" order_splits: ").Append(order_splits).Append("\n"); | ||
sb.Append("}\n"); | ||
return sb.ToString(); | ||
} | ||
|
@@ -281,6 +292,12 @@ public bool Equals(CreateLinkRequest input) | |
this.link_meta == input.link_meta || | ||
(this.link_meta != null && | ||
this.link_meta.Equals(input.link_meta)) | ||
) && | ||
( | ||
this.order_splits == input.order_splits || | ||
this.order_splits != null && | ||
input.order_splits != null && | ||
this.order_splits.SequenceEqual(input.order_splits) | ||
); | ||
} | ||
|
||
|
@@ -337,6 +354,10 @@ public override int GetHashCode() | |
{ | ||
hashCode = (hashCode * 59) + this.link_meta.GetHashCode(); | ||
} | ||
if (this.order_splits != null) | ||
{ | ||
hashCode = (hashCode * 59) + this.order_splits.GetHashCode(); | ||
} | ||
return hashCode; | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters