Skip to content

Commit 8c050f0

Browse files
authored
Merge pull request #1168 from Adyen/v32.1.0-transactionwebhooks
Generate Transaction webhooks
2 parents 7a32830 + 222bda6 commit 8c050f0

File tree

3 files changed

+153
-6
lines changed

3 files changed

+153
-6
lines changed

Adyen/Model/TransactionWebhooks/BankCategoryData.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ namespace Adyen.Model.TransactionWebhooks
3333
public partial class BankCategoryData : IEquatable<BankCategoryData>, IValidatableObject
3434
{
3535
/// <summary>
36-
/// The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with &#x60;category&#x60; **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN).
36+
/// The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with &#x60;category&#x60; **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN).
3737
/// </summary>
38-
/// <value>The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with &#x60;category&#x60; **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN).</value>
38+
/// <value>The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with &#x60;category&#x60; **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN).</value>
3939
[JsonConverter(typeof(StringEnumConverter))]
4040
public enum PriorityEnum
4141
{
@@ -79,9 +79,9 @@ public enum PriorityEnum
7979

8080

8181
/// <summary>
82-
/// The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with &#x60;category&#x60; **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN).
82+
/// The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with &#x60;category&#x60; **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN).
8383
/// </summary>
84-
/// <value>The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with &#x60;category&#x60; **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN).</value>
84+
/// <value>The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with &#x60;category&#x60; **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN).</value>
8585
[DataMember(Name = "priority", EmitDefaultValue = false)]
8686
public PriorityEnum? Priority { get; set; }
8787
/// <summary>
@@ -109,7 +109,7 @@ public enum TypeEnum
109109
/// <summary>
110110
/// Initializes a new instance of the <see cref="BankCategoryData" /> class.
111111
/// </summary>
112-
/// <param name="priority">The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with &#x60;category&#x60; **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN)..</param>
112+
/// <param name="priority">The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with &#x60;category&#x60; **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN)..</param>
113113
/// <param name="type">**bank** (default to TypeEnum.Bank).</param>
114114
public BankCategoryData(PriorityEnum? priority = default(PriorityEnum?), TypeEnum? type = TypeEnum.Bank)
115115
{

Adyen/Model/TransactionWebhooks/IssuedCard.cs

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,16 +185,18 @@ public enum TypeEnum
185185
/// <param name="relayedAuthorisationData">relayedAuthorisationData.</param>
186186
/// <param name="schemeTraceId">The identifier of the original payment. This ID is provided by the scheme and can be alphanumeric or numeric, depending on the scheme. The &#x60;schemeTraceID&#x60; should refer to an original &#x60;schemeUniqueTransactionID&#x60; provided in an earlier payment (not necessarily processed by Adyen). A &#x60;schemeTraceId&#x60; is typically available for authorization adjustments or recurring payments..</param>
187187
/// <param name="schemeUniqueTransactionId">The unique identifier created by the scheme. This ID can be alphanumeric or numeric depending on the scheme..</param>
188+
/// <param name="threeDSecure">threeDSecure.</param>
188189
/// <param name="type">**issuedCard** (default to TypeEnum.IssuedCard).</param>
189190
/// <param name="validationFacts">The evaluation of the validation facts. See [validation checks](https://docs.adyen.com/issuing/validation-checks) for more information..</param>
190-
public IssuedCard(string authorisationType = default(string), PanEntryModeEnum? panEntryMode = default(PanEntryModeEnum?), ProcessingTypeEnum? processingType = default(ProcessingTypeEnum?), RelayedAuthorisationData relayedAuthorisationData = default(RelayedAuthorisationData), string schemeTraceId = default(string), string schemeUniqueTransactionId = default(string), TypeEnum? type = TypeEnum.IssuedCard, List<TransferNotificationValidationFact> validationFacts = default(List<TransferNotificationValidationFact>))
191+
public IssuedCard(string authorisationType = default(string), PanEntryModeEnum? panEntryMode = default(PanEntryModeEnum?), ProcessingTypeEnum? processingType = default(ProcessingTypeEnum?), RelayedAuthorisationData relayedAuthorisationData = default(RelayedAuthorisationData), string schemeTraceId = default(string), string schemeUniqueTransactionId = default(string), ThreeDSecure threeDSecure = default(ThreeDSecure), TypeEnum? type = TypeEnum.IssuedCard, List<TransferNotificationValidationFact> validationFacts = default(List<TransferNotificationValidationFact>))
191192
{
192193
this.AuthorisationType = authorisationType;
193194
this.PanEntryMode = panEntryMode;
194195
this.ProcessingType = processingType;
195196
this.RelayedAuthorisationData = relayedAuthorisationData;
196197
this.SchemeTraceId = schemeTraceId;
197198
this.SchemeUniqueTransactionId = schemeUniqueTransactionId;
199+
this.ThreeDSecure = threeDSecure;
198200
this.Type = type;
199201
this.ValidationFacts = validationFacts;
200202
}
@@ -226,6 +228,12 @@ public enum TypeEnum
226228
[DataMember(Name = "schemeUniqueTransactionId", EmitDefaultValue = false)]
227229
public string SchemeUniqueTransactionId { get; set; }
228230

231+
/// <summary>
232+
/// Gets or Sets ThreeDSecure
233+
/// </summary>
234+
[DataMember(Name = "threeDSecure", EmitDefaultValue = false)]
235+
public ThreeDSecure ThreeDSecure { get; set; }
236+
229237
/// <summary>
230238
/// The evaluation of the validation facts. See [validation checks](https://docs.adyen.com/issuing/validation-checks) for more information.
231239
/// </summary>
@@ -247,6 +255,7 @@ public override string ToString()
247255
sb.Append(" RelayedAuthorisationData: ").Append(RelayedAuthorisationData).Append("\n");
248256
sb.Append(" SchemeTraceId: ").Append(SchemeTraceId).Append("\n");
249257
sb.Append(" SchemeUniqueTransactionId: ").Append(SchemeUniqueTransactionId).Append("\n");
258+
sb.Append(" ThreeDSecure: ").Append(ThreeDSecure).Append("\n");
250259
sb.Append(" Type: ").Append(Type).Append("\n");
251260
sb.Append(" ValidationFacts: ").Append(ValidationFacts).Append("\n");
252261
sb.Append("}\n");
@@ -312,6 +321,11 @@ public bool Equals(IssuedCard input)
312321
(this.SchemeUniqueTransactionId != null &&
313322
this.SchemeUniqueTransactionId.Equals(input.SchemeUniqueTransactionId))
314323
) &&
324+
(
325+
this.ThreeDSecure == input.ThreeDSecure ||
326+
(this.ThreeDSecure != null &&
327+
this.ThreeDSecure.Equals(input.ThreeDSecure))
328+
) &&
315329
(
316330
this.Type == input.Type ||
317331
this.Type.Equals(input.Type)
@@ -351,6 +365,10 @@ public override int GetHashCode()
351365
{
352366
hashCode = (hashCode * 59) + this.SchemeUniqueTransactionId.GetHashCode();
353367
}
368+
if (this.ThreeDSecure != null)
369+
{
370+
hashCode = (hashCode * 59) + this.ThreeDSecure.GetHashCode();
371+
}
354372
hashCode = (hashCode * 59) + this.Type.GetHashCode();
355373
if (this.ValidationFacts != null)
356374
{
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)