Skip to content

Commit 222bda6

Browse files
committed
Add new class
1 parent 50afbe4 commit 222bda6

File tree

1 file changed

+129
-0
lines changed

1 file changed

+129
-0
lines changed
Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
/*
2+
* Transaction webhooks
3+
*
4+
*
5+
* The version of the OpenAPI document: 4
6+
*
7+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
8+
* https://openapi-generator.tech
9+
* Do not edit the class manually.
10+
*/
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 = Adyen.ApiSerialization.OpenAPIDateConverter;
26+
27+
namespace Adyen.Model.TransactionWebhooks
28+
{
29+
/// <summary>
30+
/// ThreeDSecure
31+
/// </summary>
32+
[DataContract(Name = "ThreeDSecure")]
33+
public partial class ThreeDSecure : IEquatable<ThreeDSecure>, IValidatableObject
34+
{
35+
/// <summary>
36+
/// Initializes a new instance of the <see cref="ThreeDSecure" /> class.
37+
/// </summary>
38+
/// <param name="acsTransactionId">The transaction identifier for the Access Control Server.</param>
39+
public ThreeDSecure(string acsTransactionId = default(string))
40+
{
41+
this.AcsTransactionId = acsTransactionId;
42+
}
43+
44+
/// <summary>
45+
/// The transaction identifier for the Access Control Server
46+
/// </summary>
47+
/// <value>The transaction identifier for the Access Control Server</value>
48+
[DataMember(Name = "acsTransactionId", EmitDefaultValue = false)]
49+
public string AcsTransactionId { get; set; }
50+
51+
/// <summary>
52+
/// Returns the string presentation of the object
53+
/// </summary>
54+
/// <returns>String presentation of the object</returns>
55+
public override string ToString()
56+
{
57+
StringBuilder sb = new StringBuilder();
58+
sb.Append("class ThreeDSecure {\n");
59+
sb.Append(" AcsTransactionId: ").Append(AcsTransactionId).Append("\n");
60+
sb.Append("}\n");
61+
return sb.ToString();
62+
}
63+
64+
/// <summary>
65+
/// Returns the JSON string presentation of the object
66+
/// </summary>
67+
/// <returns>JSON string presentation of the object</returns>
68+
public virtual string ToJson()
69+
{
70+
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
71+
}
72+
73+
/// <summary>
74+
/// Returns true if objects are equal
75+
/// </summary>
76+
/// <param name="input">Object to be compared</param>
77+
/// <returns>Boolean</returns>
78+
public override bool Equals(object input)
79+
{
80+
return this.Equals(input as ThreeDSecure);
81+
}
82+
83+
/// <summary>
84+
/// Returns true if ThreeDSecure instances are equal
85+
/// </summary>
86+
/// <param name="input">Instance of ThreeDSecure to be compared</param>
87+
/// <returns>Boolean</returns>
88+
public bool Equals(ThreeDSecure input)
89+
{
90+
if (input == null)
91+
{
92+
return false;
93+
}
94+
return
95+
(
96+
this.AcsTransactionId == input.AcsTransactionId ||
97+
(this.AcsTransactionId != null &&
98+
this.AcsTransactionId.Equals(input.AcsTransactionId))
99+
);
100+
}
101+
102+
/// <summary>
103+
/// Gets the hash code
104+
/// </summary>
105+
/// <returns>Hash code</returns>
106+
public override int GetHashCode()
107+
{
108+
unchecked // Overflow is fine, just wrap
109+
{
110+
int hashCode = 41;
111+
if (this.AcsTransactionId != null)
112+
{
113+
hashCode = (hashCode * 59) + this.AcsTransactionId.GetHashCode();
114+
}
115+
return hashCode;
116+
}
117+
}
118+
/// <summary>
119+
/// To validate all properties of the instance
120+
/// </summary>
121+
/// <param name="validationContext">Validation context</param>
122+
/// <returns>Validation Result</returns>
123+
public IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> Validate(ValidationContext validationContext)
124+
{
125+
yield break;
126+
}
127+
}
128+
129+
}

0 commit comments

Comments
 (0)