Skip to content

Commit 50afbe4

Browse files
committed
Generate Transaction webhooks
1 parent 7a32830 commit 50afbe4

File tree

2 files changed

+24
-6
lines changed

2 files changed

+24
-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
{

0 commit comments

Comments
 (0)