|
1 |
| -/* |
2 |
| - * Cashfree Payment Gateway APIs |
3 |
| - * |
4 |
| - * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. |
5 |
| - * |
6 |
| - * The version of the OpenAPI document: 2023-08-01 |
7 |
| - |
8 |
| - * Generated by: https://github.com/openapitools/openapi-generator.git |
9 |
| - */ |
10 | 1 |
|
11 |
| - |
12 |
| -using System; |
13 |
| -using System.Collections; |
14 |
| -using System.Collections.Generic; |
15 |
| -using System.Collections.ObjectModel; |
16 |
| -using System.Linq; |
17 |
| -using System.IO; |
18 |
| -using System.Runtime.Serialization; |
19 |
| -using System.Text; |
20 |
| -using System.Text.RegularExpressions; |
21 |
| -using Newtonsoft.Json; |
22 |
| -using Newtonsoft.Json.Converters; |
23 |
| -using Newtonsoft.Json.Linq; |
24 |
| -using System.ComponentModel.DataAnnotations; |
25 |
| -using OpenAPIDateConverter = cashfree_pg.Client.OpenAPIDateConverter; |
26 |
| - |
27 |
| -namespace cashfree_pg.Model |
28 |
| -{ |
29 |
| - /// <summary> |
30 |
| - /// SplitAfterPaymentRequestSplitInnerTagsInner |
31 |
| - /// </summary> |
32 |
| - [DataContract(Name = "SplitAfterPaymentRequest_split_inner_tags_inner")] |
33 |
| - public class SplitAfterPaymentRequestSplitInnerTagsInner : IEquatable<SplitAfterPaymentRequestSplitInnerTagsInner>, IValidatableObject |
34 |
| - { |
35 |
| - /// <summary> |
36 |
| - /// Initializes a new instance of the <see cref="SplitAfterPaymentRequestSplitInnerTagsInner" /> class. |
37 |
| - /// </summary> |
38 |
| - /// <param name="keyValue1">keyValue1.</param> |
39 |
| - /// <param name="keyValue2">keyValue2.</param> |
40 |
| - public SplitAfterPaymentRequestSplitInnerTagsInner(string keyValue1 = default(string), string keyValue2 = default(string)) |
41 |
| - { |
42 |
| - this.Key_Value_1 = keyValue1; |
43 |
| - this.Key_Value_2 = keyValue2; |
44 |
| - } |
45 |
| - |
46 |
| - /// <summary> |
47 |
| - /// Gets or Sets Key_Value_1 |
48 |
| - /// </summary> |
49 |
| - [DataMember(Name = "Key Value 1", EmitDefaultValue = false)] |
50 |
| - public string Key_Value_1 { get; set; } |
51 |
| - |
52 |
| - /// <summary> |
53 |
| - /// Gets or Sets Key_Value_2 |
54 |
| - /// </summary> |
55 |
| - [DataMember(Name = "Key Value 2", EmitDefaultValue = false)] |
56 |
| - public string Key_Value_2 { get; set; } |
57 |
| - |
58 |
| - /// <summary> |
59 |
| - /// Returns the string presentation of the object |
60 |
| - /// </summary> |
61 |
| - /// <returns>String presentation of the object</returns> |
62 |
| - public override string ToString() |
63 |
| - { |
64 |
| - StringBuilder sb = new StringBuilder(); |
65 |
| - sb.Append("class SplitAfterPaymentRequestSplitInnerTagsInner {\n"); |
66 |
| - sb.Append(" Key_Value_1: ").Append(Key_Value_1).Append("\n"); |
67 |
| - sb.Append(" Key_Value_2: ").Append(Key_Value_2).Append("\n"); |
68 |
| - sb.Append("}\n"); |
69 |
| - return sb.ToString(); |
70 |
| - } |
71 |
| - |
72 |
| - /// <summary> |
73 |
| - /// Returns the JSON string presentation of the object |
74 |
| - /// </summary> |
75 |
| - /// <returns>JSON string presentation of the object</returns> |
76 |
| - public virtual string ToJson() |
77 |
| - { |
78 |
| - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); |
79 |
| - } |
80 |
| - |
81 |
| - /// <summary> |
82 |
| - /// Returns true if objects are equal |
83 |
| - /// </summary> |
84 |
| - /// <param name="input">Object to be compared</param> |
85 |
| - /// <returns>Boolean</returns> |
86 |
| - public override bool Equals(object input) |
87 |
| - { |
88 |
| - return this.Equals(input as SplitAfterPaymentRequestSplitInnerTagsInner); |
89 |
| - } |
90 |
| - |
91 |
| - /// <summary> |
92 |
| - /// Returns true if SplitAfterPaymentRequestSplitInnerTagsInner instances are equal |
93 |
| - /// </summary> |
94 |
| - /// <param name="input">Instance of SplitAfterPaymentRequestSplitInnerTagsInner to be compared</param> |
95 |
| - /// <returns>Boolean</returns> |
96 |
| - public bool Equals(SplitAfterPaymentRequestSplitInnerTagsInner input) |
97 |
| - { |
98 |
| - if (input == null) |
99 |
| - { |
100 |
| - return false; |
101 |
| - } |
102 |
| - return |
103 |
| - ( |
104 |
| - this.Key_Value_1 == input.Key_Value_1 || |
105 |
| - (this.Key_Value_1 != null && |
106 |
| - this.Key_Value_1.Equals(input.Key_Value_1)) |
107 |
| - ) && |
108 |
| - ( |
109 |
| - this.Key_Value_2 == input.Key_Value_2 || |
110 |
| - (this.Key_Value_2 != null && |
111 |
| - this.Key_Value_2.Equals(input.Key_Value_2)) |
112 |
| - ); |
113 |
| - } |
114 |
| - |
115 |
| - public static Boolean checkPresenceOfKey(string jsonStringKey Value 1) { |
116 |
| - dynamic deserializedJsonString = JsonConvert.DeserializeObject<dynamic>(jsonStringKey Value 1); |
117 |
| - if (deserializedJsonString.ContainsKey("Key Value 1")) { |
118 |
| - return true; |
119 |
| - } |
120 |
| - return false; |
121 |
| - } |
122 |
| - |
123 |
| - /// <summary> |
124 |
| - /// Gets the hash code |
125 |
| - /// </summary> |
126 |
| - /// <returns>Hash code</returns> |
127 |
| - public override int GetHashCode() |
128 |
| - { |
129 |
| - unchecked // Overflow is fine, just wrap |
130 |
| - { |
131 |
| - int hashCode = 41; |
132 |
| - if (this.Key_Value_1 != null) |
133 |
| - { |
134 |
| - hashCode = (hashCode * 59) + this.Key_Value_1.GetHashCode(); |
135 |
| - } |
136 |
| - if (this.Key_Value_2 != null) |
137 |
| - { |
138 |
| - hashCode = (hashCode * 59) + this.Key_Value_2.GetHashCode(); |
139 |
| - } |
140 |
| - return hashCode; |
141 |
| - } |
142 |
| - } |
143 |
| - |
144 |
| - /// <summary> |
145 |
| - /// To validate all properties of the instance |
146 |
| - /// </summary> |
147 |
| - /// <param name="validationContext">Validation context</param> |
148 |
| - /// <returns>Validation Result</returns> |
149 |
| - IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext) |
150 |
| - { |
151 |
| - yield break; |
152 |
| - } |
153 |
| - } |
154 |
| - |
155 |
| -} |
0 commit comments