Skip to content

Commit 480cdfb

Browse files
committed
Generate Configuration Webhooks
1 parent ecbc5b7 commit 480cdfb

12 files changed

+1677
-22
lines changed

Adyen/Model/ConfigurationWebhooks/Card.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ protected Card() { }
8686
/// <param name="formFactor">The form factor of the card. Possible values: **virtual**, **physical**. (required).</param>
8787
/// <param name="lastFour">Last last four digits of the card number..</param>
8888
/// <param name="number">The primary account number (PAN) of the card. &gt; The PAN is masked by default and returned only for single-use virtual cards. (required).</param>
89-
/// <param name="threeDSecure">Allocates a specific product range for either a physical or a virtual card. Possible values: **fullySupported**, **secureCorporate**. &gt;Reach out to your Adyen contact to get the values relevant for your integration..</param>
89+
/// <param name="threeDSecure">The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**, **secureCorporate**. &gt; Reach out to your Adyen contact to get the values relevant for your integration..</param>
9090
public Card(Authentication authentication = default(Authentication), string bin = default(string), string brand = default(string), string brandVariant = default(string), string cardholderName = default(string), CardConfiguration configuration = default(CardConfiguration), string cvc = default(string), DeliveryContact deliveryContact = default(DeliveryContact), Expiry expiration = default(Expiry), FormFactorEnum formFactor = default(FormFactorEnum), string lastFour = default(string), string number = default(string), string threeDSecure = default(string))
9191
{
9292
this.Brand = brand;
@@ -178,9 +178,9 @@ protected Card() { }
178178
public string Number { get; set; }
179179

180180
/// <summary>
181-
/// Allocates a specific product range for either a physical or a virtual card. Possible values: **fullySupported**, **secureCorporate**. &gt;Reach out to your Adyen contact to get the values relevant for your integration.
181+
/// The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**, **secureCorporate**. &gt; Reach out to your Adyen contact to get the values relevant for your integration.
182182
/// </summary>
183-
/// <value>Allocates a specific product range for either a physical or a virtual card. Possible values: **fullySupported**, **secureCorporate**. &gt;Reach out to your Adyen contact to get the values relevant for your integration.</value>
183+
/// <value>The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**, **secureCorporate**. &gt; Reach out to your Adyen contact to get the values relevant for your integration.</value>
184184
[DataMember(Name = "threeDSecure", EmitDefaultValue = false)]
185185
public string ThreeDSecure { get; set; }
186186

Lines changed: 148 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,148 @@
1+
/*
2+
* Configuration webhooks
3+
*
4+
*
5+
* The version of the OpenAPI document: 2
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.ConfigurationWebhooks
28+
{
29+
/// <summary>
30+
/// Device
31+
/// </summary>
32+
[DataContract(Name = "Device")]
33+
public partial class Device : IEquatable<Device>, IValidatableObject
34+
{
35+
/// <summary>
36+
/// Initializes a new instance of the <see cref="Device" /> class.
37+
/// </summary>
38+
/// <param name="formFactor">The type of the device used for provisioning the network token. For example, **phone**, **mobile_phone**, **watch**, **mobilephone_or_tablet**, etc.</param>
39+
/// <param name="osName">The operating system of the device used for provisioning the network token..</param>
40+
public Device(string formFactor = default(string), string osName = default(string))
41+
{
42+
this.FormFactor = formFactor;
43+
this.OsName = osName;
44+
}
45+
46+
/// <summary>
47+
/// The type of the device used for provisioning the network token. For example, **phone**, **mobile_phone**, **watch**, **mobilephone_or_tablet**, etc
48+
/// </summary>
49+
/// <value>The type of the device used for provisioning the network token. For example, **phone**, **mobile_phone**, **watch**, **mobilephone_or_tablet**, etc</value>
50+
[DataMember(Name = "formFactor", EmitDefaultValue = false)]
51+
public string FormFactor { get; set; }
52+
53+
/// <summary>
54+
/// The operating system of the device used for provisioning the network token.
55+
/// </summary>
56+
/// <value>The operating system of the device used for provisioning the network token.</value>
57+
[DataMember(Name = "osName", EmitDefaultValue = false)]
58+
public string OsName { get; set; }
59+
60+
/// <summary>
61+
/// Returns the string presentation of the object
62+
/// </summary>
63+
/// <returns>String presentation of the object</returns>
64+
public override string ToString()
65+
{
66+
StringBuilder sb = new StringBuilder();
67+
sb.Append("class Device {\n");
68+
sb.Append(" FormFactor: ").Append(FormFactor).Append("\n");
69+
sb.Append(" OsName: ").Append(OsName).Append("\n");
70+
sb.Append("}\n");
71+
return sb.ToString();
72+
}
73+
74+
/// <summary>
75+
/// Returns the JSON string presentation of the object
76+
/// </summary>
77+
/// <returns>JSON string presentation of the object</returns>
78+
public virtual string ToJson()
79+
{
80+
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
81+
}
82+
83+
/// <summary>
84+
/// Returns true if objects are equal
85+
/// </summary>
86+
/// <param name="input">Object to be compared</param>
87+
/// <returns>Boolean</returns>
88+
public override bool Equals(object input)
89+
{
90+
return this.Equals(input as Device);
91+
}
92+
93+
/// <summary>
94+
/// Returns true if Device instances are equal
95+
/// </summary>
96+
/// <param name="input">Instance of Device to be compared</param>
97+
/// <returns>Boolean</returns>
98+
public bool Equals(Device input)
99+
{
100+
if (input == null)
101+
{
102+
return false;
103+
}
104+
return
105+
(
106+
this.FormFactor == input.FormFactor ||
107+
(this.FormFactor != null &&
108+
this.FormFactor.Equals(input.FormFactor))
109+
) &&
110+
(
111+
this.OsName == input.OsName ||
112+
(this.OsName != null &&
113+
this.OsName.Equals(input.OsName))
114+
);
115+
}
116+
117+
/// <summary>
118+
/// Gets the hash code
119+
/// </summary>
120+
/// <returns>Hash code</returns>
121+
public override int GetHashCode()
122+
{
123+
unchecked // Overflow is fine, just wrap
124+
{
125+
int hashCode = 41;
126+
if (this.FormFactor != null)
127+
{
128+
hashCode = (hashCode * 59) + this.FormFactor.GetHashCode();
129+
}
130+
if (this.OsName != null)
131+
{
132+
hashCode = (hashCode * 59) + this.OsName.GetHashCode();
133+
}
134+
return hashCode;
135+
}
136+
}
137+
/// <summary>
138+
/// To validate all properties of the instance
139+
/// </summary>
140+
/// <param name="validationContext">Validation context</param>
141+
/// <returns>Validation Result</returns>
142+
public IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> Validate(ValidationContext validationContext)
143+
{
144+
yield break;
145+
}
146+
}
147+
148+
}

0 commit comments

Comments
 (0)