Skip to content

Commit

Permalink
false[adyen-sdk-automation] automated change
Browse files Browse the repository at this point in the history
  • Loading branch information
AdyenAutomationBot committed Dec 20, 2023
1 parent 777e44e commit 4212080
Show file tree
Hide file tree
Showing 14 changed files with 587 additions and 61 deletions.
59 changes: 58 additions & 1 deletion Adyen/Model/TransferWebhooks/IssuedCard.cs
Original file line number Diff line number Diff line change
Expand Up @@ -179,26 +179,53 @@ public enum TypeEnum
/// <summary>
/// Initializes a new instance of the <see cref="IssuedCard" /> class.
/// </summary>
/// <param name="authorisationType">The authorisation type. For example, **defaultAuthorisation**, **preAuthorisation**, **finalAuthorisation**.</param>
/// <param name="panEntryMode">Indicates the method used for entering the PAN to initiate a transaction. Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**..</param>
/// <param name="processingType">Contains information about how the payment was processed. For example, **ecommerce** for online or **pos** for in-person payments..</param>
/// <param name="relayedAuthorisationData">relayedAuthorisationData.</param>
/// <param name="schemeTraceId">The identifier of the original payment provided by the scheme. The Id could be alphanumeric or numeric depending on the scheme. The schemeTraceID should be referring to an original schemeUniqueTransactionID provided in an earlier payment (not necessarily processed by Adyen). Instances of available schemeTraceId is authAdjustment or recurring payments..</param>
/// <param name="schemeUniqueTransactionId">The unique identifier created by the scheme. The ID could be alphanumeric or numeric depending on the scheme..</param>
/// <param name="type">**issuedCard** (default to TypeEnum.IssuedCard).</param>
/// <param name="validationFacts">The evaluation of the validation facts. See [validation checks](https://docs.adyen.com/issuing/validation-checks) for more information..</param>
public IssuedCard(PanEntryModeEnum? panEntryMode = default(PanEntryModeEnum?), ProcessingTypeEnum? processingType = default(ProcessingTypeEnum?), RelayedAuthorisationData relayedAuthorisationData = default(RelayedAuthorisationData), TypeEnum? type = TypeEnum.IssuedCard, List<TransferNotificationValidationFact> validationFacts = default(List<TransferNotificationValidationFact>))
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>))
{
this.AuthorisationType = authorisationType;
this.PanEntryMode = panEntryMode;
this.ProcessingType = processingType;
this.RelayedAuthorisationData = relayedAuthorisationData;
this.SchemeTraceId = schemeTraceId;
this.SchemeUniqueTransactionId = schemeUniqueTransactionId;
this.Type = type;
this.ValidationFacts = validationFacts;
}

/// <summary>
/// The authorisation type. For example, **defaultAuthorisation**, **preAuthorisation**, **finalAuthorisation**
/// </summary>
/// <value>The authorisation type. For example, **defaultAuthorisation**, **preAuthorisation**, **finalAuthorisation**</value>
[DataMember(Name = "authorisationType", EmitDefaultValue = false)]
public string AuthorisationType { get; set; }

/// <summary>
/// Gets or Sets RelayedAuthorisationData
/// </summary>
[DataMember(Name = "relayedAuthorisationData", EmitDefaultValue = false)]
public RelayedAuthorisationData RelayedAuthorisationData { get; set; }

/// <summary>
/// The identifier of the original payment provided by the scheme. The Id could be alphanumeric or numeric depending on the scheme. The schemeTraceID should be referring to an original schemeUniqueTransactionID provided in an earlier payment (not necessarily processed by Adyen). Instances of available schemeTraceId is authAdjustment or recurring payments.
/// </summary>
/// <value>The identifier of the original payment provided by the scheme. The Id could be alphanumeric or numeric depending on the scheme. The schemeTraceID should be referring to an original schemeUniqueTransactionID provided in an earlier payment (not necessarily processed by Adyen). Instances of available schemeTraceId is authAdjustment or recurring payments.</value>
[DataMember(Name = "schemeTraceId", EmitDefaultValue = false)]
public string SchemeTraceId { get; set; }

/// <summary>
/// The unique identifier created by the scheme. The ID could be alphanumeric or numeric depending on the scheme.
/// </summary>
/// <value>The unique identifier created by the scheme. The ID could be alphanumeric or numeric depending on the scheme.</value>
[DataMember(Name = "schemeUniqueTransactionId", EmitDefaultValue = false)]
public string SchemeUniqueTransactionId { get; set; }

/// <summary>
/// The evaluation of the validation facts. See [validation checks](https://docs.adyen.com/issuing/validation-checks) for more information.
/// </summary>
Expand All @@ -214,9 +241,12 @@ public override string ToString()
{
StringBuilder sb = new StringBuilder();
sb.Append("class IssuedCard {\n");
sb.Append(" AuthorisationType: ").Append(AuthorisationType).Append("\n");
sb.Append(" PanEntryMode: ").Append(PanEntryMode).Append("\n");
sb.Append(" ProcessingType: ").Append(ProcessingType).Append("\n");
sb.Append(" RelayedAuthorisationData: ").Append(RelayedAuthorisationData).Append("\n");
sb.Append(" SchemeTraceId: ").Append(SchemeTraceId).Append("\n");
sb.Append(" SchemeUniqueTransactionId: ").Append(SchemeUniqueTransactionId).Append("\n");
sb.Append(" Type: ").Append(Type).Append("\n");
sb.Append(" ValidationFacts: ").Append(ValidationFacts).Append("\n");
sb.Append("}\n");
Expand Down Expand Up @@ -254,6 +284,11 @@ public bool Equals(IssuedCard input)
return false;
}
return
(
this.AuthorisationType == input.AuthorisationType ||
(this.AuthorisationType != null &&
this.AuthorisationType.Equals(input.AuthorisationType))
) &&
(
this.PanEntryMode == input.PanEntryMode ||
this.PanEntryMode.Equals(input.PanEntryMode)
Expand All @@ -267,6 +302,16 @@ public bool Equals(IssuedCard input)
(this.RelayedAuthorisationData != null &&
this.RelayedAuthorisationData.Equals(input.RelayedAuthorisationData))
) &&
(
this.SchemeTraceId == input.SchemeTraceId ||
(this.SchemeTraceId != null &&
this.SchemeTraceId.Equals(input.SchemeTraceId))
) &&
(
this.SchemeUniqueTransactionId == input.SchemeUniqueTransactionId ||
(this.SchemeUniqueTransactionId != null &&
this.SchemeUniqueTransactionId.Equals(input.SchemeUniqueTransactionId))
) &&
(
this.Type == input.Type ||
this.Type.Equals(input.Type)
Expand All @@ -288,12 +333,24 @@ public override int GetHashCode()
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.AuthorisationType != null)
{
hashCode = (hashCode * 59) + this.AuthorisationType.GetHashCode();
}
hashCode = (hashCode * 59) + this.PanEntryMode.GetHashCode();
hashCode = (hashCode * 59) + this.ProcessingType.GetHashCode();
if (this.RelayedAuthorisationData != null)
{
hashCode = (hashCode * 59) + this.RelayedAuthorisationData.GetHashCode();
}
if (this.SchemeTraceId != null)
{
hashCode = (hashCode * 59) + this.SchemeTraceId.GetHashCode();
}
if (this.SchemeUniqueTransactionId != null)
{
hashCode = (hashCode * 59) + this.SchemeUniqueTransactionId.GetHashCode();
}
hashCode = (hashCode * 59) + this.Type.GetHashCode();
if (this.ValidationFacts != null)
{
Expand Down
6 changes: 6 additions & 0 deletions Adyen/Model/TransferWebhooks/PartyIdentification.cs
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,12 @@ public override int GetHashCode()
/// <returns>Validation Result</returns>
public IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> Validate(ValidationContext validationContext)
{
// Reference (string) maxLength
if (this.Reference != null && this.Reference.Length > 150)
{
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Reference, length must be less than 150.", new [] { "Reference" });
}

yield break;
}
}
Expand Down
4 changes: 2 additions & 2 deletions Adyen/Model/TransferWebhooks/TransferData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -862,7 +862,7 @@ protected TransferData() { }
/// <param name="tracking">tracking.</param>
/// <param name="transactionRulesResult">transactionRulesResult.</param>
/// <param name="type">The type of transfer or transaction. For example, **refund**, **payment**, **internalTransfer**, **bankTransfer**..</param>
public TransferData(ResourceReference accountHolder = default(ResourceReference), Amount amount = default(Amount), ResourceReference balanceAccount = default(ResourceReference), string balancePlatform = default(string), List<BalanceMutation> balances = default(List<BalanceMutation>), CategoryEnum category = default(CategoryEnum), TransferDataCategoryData categoryData = default(TransferDataCategoryData), CounterpartyV3 counterparty = default(CounterpartyV3), DateTime creationDate = default(DateTime), string description = default(string), DirectionEnum? direction = default(DirectionEnum?), List<TransferEvent> events = default(List<TransferEvent>), string id = default(string), PaymentInstrument paymentInstrument = default(PaymentInstrument), ReasonEnum? reason = default(ReasonEnum?), string reference = default(string), string referenceForBeneficiary = default(string), int? sequenceNumber = default(int?), StatusEnum status = default(StatusEnum), TransferNotificationTransferTracking tracking = default(TransferNotificationTransferTracking), TransactionRulesResult transactionRulesResult = default(TransactionRulesResult), TypeEnum? type = default(TypeEnum?))
public TransferData(ResourceReference accountHolder = default(ResourceReference), Amount amount = default(Amount), ResourceReference balanceAccount = default(ResourceReference), string balancePlatform = default(string), List<BalanceMutation> balances = default(List<BalanceMutation>), CategoryEnum category = default(CategoryEnum), TransferDataCategoryData categoryData = default(TransferDataCategoryData), TransferNotificationCounterParty counterparty = default(TransferNotificationCounterParty), DateTime creationDate = default(DateTime), string description = default(string), DirectionEnum? direction = default(DirectionEnum?), List<TransferEvent> events = default(List<TransferEvent>), string id = default(string), PaymentInstrument paymentInstrument = default(PaymentInstrument), ReasonEnum? reason = default(ReasonEnum?), string reference = default(string), string referenceForBeneficiary = default(string), int? sequenceNumber = default(int?), StatusEnum status = default(StatusEnum), TransferNotificationTransferTracking tracking = default(TransferNotificationTransferTracking), TransactionRulesResult transactionRulesResult = default(TransactionRulesResult), TypeEnum? type = default(TypeEnum?))
{
this.Amount = amount;
this.Category = category;
Expand Down Expand Up @@ -930,7 +930,7 @@ protected TransferData() { }
/// Gets or Sets Counterparty
/// </summary>
[DataMember(Name = "counterparty", EmitDefaultValue = false)]
public CounterpartyV3 Counterparty { get; set; }
public TransferNotificationCounterParty Counterparty { get; set; }

/// <summary>
/// The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**.
Expand Down
40 changes: 1 addition & 39 deletions Adyen/Model/TransferWebhooks/TransferEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -584,14 +584,12 @@ public enum TypeEnum
/// <param name="mutations">The list of the balance mutation per event..</param>
/// <param name="originalAmount">originalAmount.</param>
/// <param name="reason">The reason for the transfer status..</param>
/// <param name="schemeTraceID">SchemeTraceID retrieved from scheme..</param>
/// <param name="schemeUniqueTransactionID">SchemeUniqueTransactionID retrieved from scheme..</param>
/// <param name="status">The status of the transfer event..</param>
/// <param name="transactionId">The id of the transaction that is related to this accounting event. Only sent for events of type **accounting** where the balance changes..</param>
/// <param name="type">The type of the transfer event. Possible values: **accounting**, **tracking**..</param>
/// <param name="updateDate">The date when the tracking status was updated..</param>
/// <param name="valueDate">A future date, when the funds are expected to be deducted from or credited to the balance account..</param>
public TransferEvent(Amount amount = default(Amount), List<AmountAdjustment> amountAdjustments = default(List<AmountAdjustment>), DateTime bookingDate = default(DateTime), DateTime estimatedArrivalTime = default(DateTime), string id = default(string), Modification modification = default(Modification), List<BalanceMutation> mutations = default(List<BalanceMutation>), Amount originalAmount = default(Amount), ReasonEnum? reason = default(ReasonEnum?), string schemeTraceID = default(string), string schemeUniqueTransactionID = default(string), StatusEnum? status = default(StatusEnum?), string transactionId = default(string), TypeEnum? type = default(TypeEnum?), DateTime updateDate = default(DateTime), DateTime valueDate = default(DateTime))
public TransferEvent(Amount amount = default(Amount), List<AmountAdjustment> amountAdjustments = default(List<AmountAdjustment>), DateTime bookingDate = default(DateTime), DateTime estimatedArrivalTime = default(DateTime), string id = default(string), Modification modification = default(Modification), List<BalanceMutation> mutations = default(List<BalanceMutation>), Amount originalAmount = default(Amount), ReasonEnum? reason = default(ReasonEnum?), StatusEnum? status = default(StatusEnum?), string transactionId = default(string), TypeEnum? type = default(TypeEnum?), DateTime updateDate = default(DateTime), DateTime valueDate = default(DateTime))
{
this.Amount = amount;
this.AmountAdjustments = amountAdjustments;
Expand All @@ -602,8 +600,6 @@ public enum TypeEnum
this.Mutations = mutations;
this.OriginalAmount = originalAmount;
this.Reason = reason;
this.SchemeTraceID = schemeTraceID;
this.SchemeUniqueTransactionID = schemeUniqueTransactionID;
this.Status = status;
this.TransactionId = transactionId;
this.Type = type;
Expand Down Expand Up @@ -664,20 +660,6 @@ public enum TypeEnum
[DataMember(Name = "originalAmount", EmitDefaultValue = false)]
public Amount OriginalAmount { get; set; }

/// <summary>
/// SchemeTraceID retrieved from scheme.
/// </summary>
/// <value>SchemeTraceID retrieved from scheme.</value>
[DataMember(Name = "schemeTraceID", EmitDefaultValue = false)]
public string SchemeTraceID { get; set; }

/// <summary>
/// SchemeUniqueTransactionID retrieved from scheme.
/// </summary>
/// <value>SchemeUniqueTransactionID retrieved from scheme.</value>
[DataMember(Name = "schemeUniqueTransactionID", EmitDefaultValue = false)]
public string SchemeUniqueTransactionID { get; set; }

/// <summary>
/// The id of the transaction that is related to this accounting event. Only sent for events of type **accounting** where the balance changes.
/// </summary>
Expand Down Expand Up @@ -716,8 +698,6 @@ public override string ToString()
sb.Append(" Mutations: ").Append(Mutations).Append("\n");
sb.Append(" OriginalAmount: ").Append(OriginalAmount).Append("\n");
sb.Append(" Reason: ").Append(Reason).Append("\n");
sb.Append(" SchemeTraceID: ").Append(SchemeTraceID).Append("\n");
sb.Append(" SchemeUniqueTransactionID: ").Append(SchemeUniqueTransactionID).Append("\n");
sb.Append(" Status: ").Append(Status).Append("\n");
sb.Append(" TransactionId: ").Append(TransactionId).Append("\n");
sb.Append(" Type: ").Append(Type).Append("\n");
Expand Down Expand Up @@ -804,16 +784,6 @@ public bool Equals(TransferEvent input)
this.Reason == input.Reason ||
this.Reason.Equals(input.Reason)
) &&
(
this.SchemeTraceID == input.SchemeTraceID ||
(this.SchemeTraceID != null &&
this.SchemeTraceID.Equals(input.SchemeTraceID))
) &&
(
this.SchemeUniqueTransactionID == input.SchemeUniqueTransactionID ||
(this.SchemeUniqueTransactionID != null &&
this.SchemeUniqueTransactionID.Equals(input.SchemeUniqueTransactionID))
) &&
(
this.Status == input.Status ||
this.Status.Equals(input.Status)
Expand Down Expand Up @@ -881,14 +851,6 @@ public override int GetHashCode()
hashCode = (hashCode * 59) + this.OriginalAmount.GetHashCode();
}
hashCode = (hashCode * 59) + this.Reason.GetHashCode();
if (this.SchemeTraceID != null)
{
hashCode = (hashCode * 59) + this.SchemeTraceID.GetHashCode();
}
if (this.SchemeUniqueTransactionID != null)
{
hashCode = (hashCode * 59) + this.SchemeUniqueTransactionID.GetHashCode();
}
hashCode = (hashCode * 59) + this.Status.GetHashCode();
if (this.TransactionId != null)
{
Expand Down
Loading

0 comments on commit 4212080

Please sign in to comment.