-
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.
Update SplitAfterPaymentRequestSplitInnerTagsInner.cs
- Loading branch information
1 parent
4dcc050
commit 94217b7
Showing
1 changed file
with
0 additions
and
154 deletions.
There are no files selected for viewing
154 changes: 0 additions & 154 deletions
154
src/cashfree_pg/Model/SplitAfterPaymentRequestSplitInnerTagsInner.cs
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 |
---|---|---|
@@ -1,155 +1 @@ | ||
/* | ||
* Cashfree Payment Gateway APIs | ||
* | ||
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. | ||
* | ||
* The version of the OpenAPI document: 2023-08-01 | ||
* Contact: developers@cashfree.com | ||
* Generated by: https://github.com/openapitools/openapi-generator.git | ||
*/ | ||
|
||
|
||
using System; | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using System.Collections.ObjectModel; | ||
using System.Linq; | ||
using System.IO; | ||
using System.Runtime.Serialization; | ||
using System.Text; | ||
using System.Text.RegularExpressions; | ||
using Newtonsoft.Json; | ||
using Newtonsoft.Json.Converters; | ||
using Newtonsoft.Json.Linq; | ||
using System.ComponentModel.DataAnnotations; | ||
using OpenAPIDateConverter = cashfree_pg.Client.OpenAPIDateConverter; | ||
|
||
namespace cashfree_pg.Model | ||
{ | ||
/// <summary> | ||
/// SplitAfterPaymentRequestSplitInnerTagsInner | ||
/// </summary> | ||
[DataContract(Name = "SplitAfterPaymentRequest_split_inner_tags_inner")] | ||
public class SplitAfterPaymentRequestSplitInnerTagsInner : IEquatable<SplitAfterPaymentRequestSplitInnerTagsInner>, IValidatableObject | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="SplitAfterPaymentRequestSplitInnerTagsInner" /> class. | ||
/// </summary> | ||
/// <param name="keyValue1">keyValue1.</param> | ||
/// <param name="keyValue2">keyValue2.</param> | ||
public SplitAfterPaymentRequestSplitInnerTagsInner(string keyValue1 = default(string), string keyValue2 = default(string)) | ||
{ | ||
this.Key_Value_1 = keyValue1; | ||
this.Key_Value_2 = keyValue2; | ||
} | ||
|
||
/// <summary> | ||
/// Gets or Sets Key_Value_1 | ||
/// </summary> | ||
[DataMember(Name = "Key Value 1", EmitDefaultValue = false)] | ||
public string Key_Value_1 { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or Sets Key_Value_2 | ||
/// </summary> | ||
[DataMember(Name = "Key Value 2", EmitDefaultValue = false)] | ||
public string Key_Value_2 { get; set; } | ||
|
||
/// <summary> | ||
/// Returns the string presentation of the object | ||
/// </summary> | ||
/// <returns>String presentation of the object</returns> | ||
public override string ToString() | ||
{ | ||
StringBuilder sb = new StringBuilder(); | ||
sb.Append("class SplitAfterPaymentRequestSplitInnerTagsInner {\n"); | ||
sb.Append(" Key_Value_1: ").Append(Key_Value_1).Append("\n"); | ||
sb.Append(" Key_Value_2: ").Append(Key_Value_2).Append("\n"); | ||
sb.Append("}\n"); | ||
return sb.ToString(); | ||
} | ||
|
||
/// <summary> | ||
/// Returns the JSON string presentation of the object | ||
/// </summary> | ||
/// <returns>JSON string presentation of the object</returns> | ||
public virtual string ToJson() | ||
{ | ||
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); | ||
} | ||
|
||
/// <summary> | ||
/// Returns true if objects are equal | ||
/// </summary> | ||
/// <param name="input">Object to be compared</param> | ||
/// <returns>Boolean</returns> | ||
public override bool Equals(object input) | ||
{ | ||
return this.Equals(input as SplitAfterPaymentRequestSplitInnerTagsInner); | ||
} | ||
|
||
/// <summary> | ||
/// Returns true if SplitAfterPaymentRequestSplitInnerTagsInner instances are equal | ||
/// </summary> | ||
/// <param name="input">Instance of SplitAfterPaymentRequestSplitInnerTagsInner to be compared</param> | ||
/// <returns>Boolean</returns> | ||
public bool Equals(SplitAfterPaymentRequestSplitInnerTagsInner input) | ||
{ | ||
if (input == null) | ||
{ | ||
return false; | ||
} | ||
return | ||
( | ||
this.Key_Value_1 == input.Key_Value_1 || | ||
(this.Key_Value_1 != null && | ||
this.Key_Value_1.Equals(input.Key_Value_1)) | ||
) && | ||
( | ||
this.Key_Value_2 == input.Key_Value_2 || | ||
(this.Key_Value_2 != null && | ||
this.Key_Value_2.Equals(input.Key_Value_2)) | ||
); | ||
} | ||
|
||
public static Boolean checkPresenceOfKey(string jsonStringKey Value 1) { | ||
dynamic deserializedJsonString = JsonConvert.DeserializeObject<dynamic>(jsonStringKey Value 1); | ||
if (deserializedJsonString.ContainsKey("Key Value 1")) { | ||
return true; | ||
} | ||
return false; | ||
} | ||
|
||
/// <summary> | ||
/// Gets the hash code | ||
/// </summary> | ||
/// <returns>Hash code</returns> | ||
public override int GetHashCode() | ||
{ | ||
unchecked // Overflow is fine, just wrap | ||
{ | ||
int hashCode = 41; | ||
if (this.Key_Value_1 != null) | ||
{ | ||
hashCode = (hashCode * 59) + this.Key_Value_1.GetHashCode(); | ||
} | ||
if (this.Key_Value_2 != null) | ||
{ | ||
hashCode = (hashCode * 59) + this.Key_Value_2.GetHashCode(); | ||
} | ||
return hashCode; | ||
} | ||
} | ||
|
||
/// <summary> | ||
/// To validate all properties of the instance | ||
/// </summary> | ||
/// <param name="validationContext">Validation context</param> | ||
/// <returns>Validation Result</returns> | ||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext) | ||
{ | ||
yield break; | ||
} | ||
} | ||
|
||
} |