Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code generation: update services and models #1104

Merged
merged 1 commit into from
Jan 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions Adyen/Model/Checkout/AdditionalDataAirline.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,14 @@ protected AdditionalDataAirline() { }
/// <param name="airlinePassengerDateOfBirth">The passenger&#39;s date of birth. Date format: &#x60;yyyy-MM-dd&#x60; * minLength: 10 * maxLength: 10.</param>
/// <param name="airlinePassengerFirstName">The passenger&#39;s first name. &gt; This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII.</param>
/// <param name="airlinePassengerLastName">The passenger&#39;s last name. &gt; This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII.</param>
/// <param name="airlinePassengerTelephoneNumber">The passenger&#39;s telephone number, including country code. This is an alphanumeric field that can include the &#39;+&#39; and &#39;-&#39; signs. * Encoding: ASCII * minLength: 3 characters * maxLength: 30 characters.</param>
/// <param name="airlinePassengerPhoneNumber">The passenger&#39;s phone number, including country code. This is an alphanumeric field that can include the &#39;+&#39; and &#39;-&#39; signs. * Encoding: ASCII * minLength: 3 characters * maxLength: 30 characters.</param>
/// <param name="airlinePassengerTravellerType">The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 characters * maxLength: 6 characters.</param>
/// <param name="airlinePassengerName">The passenger&#39;s name, initials, and title. * Format: last name + first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * Must not be all spaces *Must not be all zeros. (required).</param>
/// <param name="airlineTicketIssueAddress">The address of the organization that issued the ticket. * minLength: 0 characters * maxLength: 16 characters.</param>
/// <param name="airlineTicketNumber">The ticket&#39;s unique identifier. * minLength: 1 character * maxLength: 15 characters * Must not be all spaces *Must not be all zeros..</param>
/// <param name="airlineTravelAgencyCode">The unique identifier from IATA or ARC for the travel agency that issues the ticket. * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not be all spaces *Must not be all zeros..</param>
/// <param name="airlineTravelAgencyName">The name of the travel agency. * Encoding: ASCII * minLength: 1 character * maxLength: 25 characters * Must not be all spaces *Must not be all zeros..</param>
public AdditionalDataAirline(string airlineAgencyInvoiceNumber = default(string), string airlineAgencyPlanName = default(string), string airlineAirlineCode = default(string), string airlineAirlineDesignatorCode = default(string), string airlineBoardingFee = default(string), string airlineComputerizedReservationSystem = default(string), string airlineCustomerReferenceNumber = default(string), string airlineDocumentType = default(string), string airlineFlightDate = default(string), string airlineIssueDate = default(string), string airlineLegCarrierCode = default(string), string airlineLegClassOfTravel = default(string), string airlineLegDateOfTravel = default(string), string airlineLegDepartAirport = default(string), string airlineLegDepartTax = default(string), string airlineLegDestinationCode = default(string), string airlineLegFareBaseCode = default(string), string airlineLegFlightNumber = default(string), string airlineLegStopOverCode = default(string), string airlinePassengerDateOfBirth = default(string), string airlinePassengerFirstName = default(string), string airlinePassengerLastName = default(string), string airlinePassengerTelephoneNumber = default(string), string airlinePassengerTravellerType = default(string), string airlinePassengerName = default(string), string airlineTicketIssueAddress = default(string), string airlineTicketNumber = default(string), string airlineTravelAgencyCode = default(string), string airlineTravelAgencyName = default(string))
public AdditionalDataAirline(string airlineAgencyInvoiceNumber = default(string), string airlineAgencyPlanName = default(string), string airlineAirlineCode = default(string), string airlineAirlineDesignatorCode = default(string), string airlineBoardingFee = default(string), string airlineComputerizedReservationSystem = default(string), string airlineCustomerReferenceNumber = default(string), string airlineDocumentType = default(string), string airlineFlightDate = default(string), string airlineIssueDate = default(string), string airlineLegCarrierCode = default(string), string airlineLegClassOfTravel = default(string), string airlineLegDateOfTravel = default(string), string airlineLegDepartAirport = default(string), string airlineLegDepartTax = default(string), string airlineLegDestinationCode = default(string), string airlineLegFareBaseCode = default(string), string airlineLegFlightNumber = default(string), string airlineLegStopOverCode = default(string), string airlinePassengerDateOfBirth = default(string), string airlinePassengerFirstName = default(string), string airlinePassengerLastName = default(string), string airlinePassengerPhoneNumber = default(string), string airlinePassengerTravellerType = default(string), string airlinePassengerName = default(string), string airlineTicketIssueAddress = default(string), string airlineTicketNumber = default(string), string airlineTravelAgencyCode = default(string), string airlineTravelAgencyName = default(string))
{
this.AirlinePassengerName = airlinePassengerName;
this.AirlineAgencyInvoiceNumber = airlineAgencyInvoiceNumber;
Expand All @@ -94,7 +94,7 @@ protected AdditionalDataAirline() { }
this.AirlinePassengerDateOfBirth = airlinePassengerDateOfBirth;
this.AirlinePassengerFirstName = airlinePassengerFirstName;
this.AirlinePassengerLastName = airlinePassengerLastName;
this.AirlinePassengerTelephoneNumber = airlinePassengerTelephoneNumber;
this.AirlinePassengerPhoneNumber = airlinePassengerPhoneNumber;
this.AirlinePassengerTravellerType = airlinePassengerTravellerType;
this.AirlineTicketIssueAddress = airlineTicketIssueAddress;
this.AirlineTicketNumber = airlineTicketNumber;
Expand Down Expand Up @@ -257,11 +257,11 @@ protected AdditionalDataAirline() { }
public string AirlinePassengerLastName { get; set; }

/// <summary>
/// The passenger&#39;s telephone number, including country code. This is an alphanumeric field that can include the &#39;+&#39; and &#39;-&#39; signs. * Encoding: ASCII * minLength: 3 characters * maxLength: 30 characters
/// The passenger&#39;s phone number, including country code. This is an alphanumeric field that can include the &#39;+&#39; and &#39;-&#39; signs. * Encoding: ASCII * minLength: 3 characters * maxLength: 30 characters
/// </summary>
/// <value>The passenger&#39;s telephone number, including country code. This is an alphanumeric field that can include the &#39;+&#39; and &#39;-&#39; signs. * Encoding: ASCII * minLength: 3 characters * maxLength: 30 characters</value>
[DataMember(Name = "airline.passenger.telephone_number", EmitDefaultValue = false)]
public string AirlinePassengerTelephoneNumber { get; set; }
/// <value>The passenger&#39;s phone number, including country code. This is an alphanumeric field that can include the &#39;+&#39; and &#39;-&#39; signs. * Encoding: ASCII * minLength: 3 characters * maxLength: 30 characters</value>
[DataMember(Name = "airline.passenger.phone_number", EmitDefaultValue = false)]
public string AirlinePassengerPhoneNumber { get; set; }

/// <summary>
/// The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 characters * maxLength: 6 characters
Expand Down Expand Up @@ -335,7 +335,7 @@ public override string ToString()
sb.Append(" AirlinePassengerDateOfBirth: ").Append(AirlinePassengerDateOfBirth).Append("\n");
sb.Append(" AirlinePassengerFirstName: ").Append(AirlinePassengerFirstName).Append("\n");
sb.Append(" AirlinePassengerLastName: ").Append(AirlinePassengerLastName).Append("\n");
sb.Append(" AirlinePassengerTelephoneNumber: ").Append(AirlinePassengerTelephoneNumber).Append("\n");
sb.Append(" AirlinePassengerPhoneNumber: ").Append(AirlinePassengerPhoneNumber).Append("\n");
sb.Append(" AirlinePassengerTravellerType: ").Append(AirlinePassengerTravellerType).Append("\n");
sb.Append(" AirlinePassengerName: ").Append(AirlinePassengerName).Append("\n");
sb.Append(" AirlineTicketIssueAddress: ").Append(AirlineTicketIssueAddress).Append("\n");
Expand Down Expand Up @@ -488,9 +488,9 @@ public bool Equals(AdditionalDataAirline input)
this.AirlinePassengerLastName.Equals(input.AirlinePassengerLastName))
) &&
(
this.AirlinePassengerTelephoneNumber == input.AirlinePassengerTelephoneNumber ||
(this.AirlinePassengerTelephoneNumber != null &&
this.AirlinePassengerTelephoneNumber.Equals(input.AirlinePassengerTelephoneNumber))
this.AirlinePassengerPhoneNumber == input.AirlinePassengerPhoneNumber ||
(this.AirlinePassengerPhoneNumber != null &&
this.AirlinePassengerPhoneNumber.Equals(input.AirlinePassengerPhoneNumber))
) &&
(
this.AirlinePassengerTravellerType == input.AirlinePassengerTravellerType ||
Expand Down Expand Up @@ -621,9 +621,9 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.AirlinePassengerLastName.GetHashCode();
}
if (this.AirlinePassengerTelephoneNumber != null)
if (this.AirlinePassengerPhoneNumber != null)
{
hashCode = (hashCode * 59) + this.AirlinePassengerTelephoneNumber.GetHashCode();
hashCode = (hashCode * 59) + this.AirlinePassengerPhoneNumber.GetHashCode();
}
if (this.AirlinePassengerTravellerType != null)
{
Expand Down
159 changes: 159 additions & 0 deletions Adyen/Model/Checkout/AffirmDetails.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,159 @@
/*
* Adyen Checkout API
*
*
* The version of the OpenAPI document: 71
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/

using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.IO;
using System.Runtime.Serialization;
using System.Text;
using System.Text.RegularExpressions;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Linq;
using System.ComponentModel.DataAnnotations;
using OpenAPIDateConverter = Adyen.ApiSerialization.OpenAPIDateConverter;

namespace Adyen.Model.Checkout
{
/// <summary>
/// AffirmDetails
/// </summary>
[DataContract(Name = "AffirmDetails")]
public partial class AffirmDetails : IEquatable<AffirmDetails>, IValidatableObject
{
/// <summary>
/// **affirm**
/// </summary>
/// <value>**affirm**</value>
[JsonConverter(typeof(StringEnumConverter))]
public enum TypeEnum
{
/// <summary>
/// Enum Affirm for value: affirm
/// </summary>
[EnumMember(Value = "affirm")]
Affirm = 1

}


/// <summary>
/// **affirm**
/// </summary>
/// <value>**affirm**</value>
[DataMember(Name = "type", EmitDefaultValue = false)]
public TypeEnum? Type { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="AffirmDetails" /> class.
/// </summary>
/// <param name="checkoutAttemptId">The checkout attempt identifier..</param>
/// <param name="type">**affirm** (default to TypeEnum.Affirm).</param>
public AffirmDetails(string checkoutAttemptId = default(string), TypeEnum? type = TypeEnum.Affirm)
{
this.CheckoutAttemptId = checkoutAttemptId;
this.Type = type;
}

/// <summary>
/// The checkout attempt identifier.
/// </summary>
/// <value>The checkout attempt identifier.</value>
[DataMember(Name = "checkoutAttemptId", EmitDefaultValue = false)]
public string CheckoutAttemptId { get; set; }

/// <summary>
/// Returns the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString()
{
StringBuilder sb = new StringBuilder();
sb.Append("class AffirmDetails {\n");
sb.Append(" CheckoutAttemptId: ").Append(CheckoutAttemptId).Append("\n");
sb.Append(" Type: ").Append(Type).Append("\n");
sb.Append("}\n");
return sb.ToString();
}

/// <summary>
/// Returns the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public virtual string ToJson()
{
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
}

/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="input">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object input)
{
return this.Equals(input as AffirmDetails);
}

/// <summary>
/// Returns true if AffirmDetails instances are equal
/// </summary>
/// <param name="input">Instance of AffirmDetails to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(AffirmDetails input)
{
if (input == null)
{
return false;
}
return
(
this.CheckoutAttemptId == input.CheckoutAttemptId ||
(this.CheckoutAttemptId != null &&
this.CheckoutAttemptId.Equals(input.CheckoutAttemptId))
) &&
(
this.Type == input.Type ||
this.Type.Equals(input.Type)
);
}

/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.CheckoutAttemptId != null)
{
hashCode = (hashCode * 59) + this.CheckoutAttemptId.GetHashCode();
}
hashCode = (hashCode * 59) + this.Type.GetHashCode();
return hashCode;
}
}
/// <summary>
/// To validate all properties of the instance
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
public IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> Validate(ValidationContext validationContext)
{
yield break;
}
}

}
Loading
Loading