Skip to content

Commit

Permalink
[create-pull-request] automated change
Browse files Browse the repository at this point in the history
  • Loading branch information
AdyenAutomationBot committed Nov 14, 2023
1 parent fce0f4a commit 3cea110
Show file tree
Hide file tree
Showing 19 changed files with 1,362 additions and 129 deletions.
42 changes: 40 additions & 2 deletions Adyen/Model/BalancePlatform/AddressRequirement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,44 @@ namespace Adyen.Model.BalancePlatform
[DataContract(Name = "AddressRequirement")]
public partial class AddressRequirement : IEquatable<AddressRequirement>, IValidatableObject
{
/// <summary>
/// Defines RequiredAddressFields
/// </summary>
[JsonConverter(typeof(StringEnumConverter))]
public enum RequiredAddressFieldsEnum
{
/// <summary>
/// Enum City for value: city
/// </summary>
[EnumMember(Value = "city")]
City = 1,

/// <summary>
/// Enum Country for value: country
/// </summary>
[EnumMember(Value = "country")]
Country = 2,

/// <summary>
/// Enum Line1 for value: line1
/// </summary>
[EnumMember(Value = "line1")]
Line1 = 3,

/// <summary>
/// Enum PostalCode for value: postalCode
/// </summary>
[EnumMember(Value = "postalCode")]
PostalCode = 4,

/// <summary>
/// Enum StateOrProvince for value: stateOrProvince
/// </summary>
[EnumMember(Value = "stateOrProvince")]
StateOrProvince = 5

}

/// <summary>
/// **addressRequirement**
/// </summary>
Expand Down Expand Up @@ -65,7 +103,7 @@ protected AddressRequirement() { }
/// <param name="description">Specifies the required address related fields for a particular route..</param>
/// <param name="requiredAddressFields">List of address fields..</param>
/// <param name="type">**addressRequirement** (required) (default to TypeEnum.AddressRequirement).</param>
public AddressRequirement(string description = default(string), List<string> requiredAddressFields = default(List<string>), TypeEnum type = TypeEnum.AddressRequirement)
public AddressRequirement(string description = default(string), List<RequiredAddressFieldsEnum> requiredAddressFields = default(List<RequiredAddressFieldsEnum>), TypeEnum type = TypeEnum.AddressRequirement)
{
this.Type = type;
this.Description = description;
Expand All @@ -84,7 +122,7 @@ protected AddressRequirement() { }
/// </summary>
/// <value>List of address fields.</value>
[DataMember(Name = "requiredAddressFields", EmitDefaultValue = false)]
public List<string> RequiredAddressFields { get; set; }
public List<AddressRequirement.RequiredAddressFieldsEnum> RequiredAddressFields { get; set; }

/// <summary>
/// Returns the string presentation of the object
Expand Down
4 changes: 2 additions & 2 deletions Adyen/Model/BalancePlatform/RestServiceError.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ protected RestServiceError() { }
/// <param name="status">The HTTP status code. (required).</param>
/// <param name="title">A short, human-readable summary of the problem type. (required).</param>
/// <param name="type">A URI that identifies the problem type, pointing to human-readable documentation on this problem type. (required).</param>
public RestServiceError(string detail = default(string), string errorCode = default(string), string instance = default(string), List<InvalidField> invalidFields = default(List<InvalidField>), string requestId = default(string), JSONObject response = default(JSONObject), int? status = default(int?), string title = default(string), string type = default(string))
public RestServiceError(string detail = default(string), string errorCode = default(string), string instance = default(string), List<InvalidField> invalidFields = default(List<InvalidField>), string requestId = default(string), Object response = default(Object), int? status = default(int?), string title = default(string), string type = default(string))
{
this.Detail = detail;
this.ErrorCode = errorCode;
Expand Down Expand Up @@ -101,7 +101,7 @@ protected RestServiceError() { }
/// Gets or Sets Response
/// </summary>
[DataMember(Name = "response", EmitDefaultValue = false)]
public JSONObject Response { get; set; }
public Object Response { get; set; }

/// <summary>
/// The HTTP status code.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,33 +27,39 @@
namespace Adyen.Model.BalancePlatform
{
/// <summary>
/// JSONObject
/// SameAmountRestriction
/// </summary>
[DataContract(Name = "JSONObject")]
public partial class JSONObject : IEquatable<JSONObject>, IValidatableObject
[DataContract(Name = "SameAmountRestriction")]
public partial class SameAmountRestriction : IEquatable<SameAmountRestriction>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="JSONObject" /> class.
/// Initializes a new instance of the <see cref="SameAmountRestriction" /> class.
/// </summary>
/// <param name="paths">paths.</param>
/// <param name="rootPath">rootPath.</param>
public JSONObject(List<JSONPath> paths = default(List<JSONPath>), JSONPath rootPath = default(JSONPath))
[JsonConstructorAttribute]
protected SameAmountRestriction() { }
/// <summary>
/// Initializes a new instance of the <see cref="SameAmountRestriction" /> class.
/// </summary>
/// <param name="operation">Defines how the condition must be evaluated. (required).</param>
/// <param name="value">value.</param>
public SameAmountRestriction(string operation = default(string), bool? value = default(bool?))
{
this.Paths = paths;
this.RootPath = rootPath;
this.Operation = operation;
this.Value = value;
}

/// <summary>
/// Gets or Sets Paths
/// Defines how the condition must be evaluated.
/// </summary>
[DataMember(Name = "paths", EmitDefaultValue = false)]
public List<JSONPath> Paths { get; set; }
/// <value>Defines how the condition must be evaluated.</value>
[DataMember(Name = "operation", IsRequired = false, EmitDefaultValue = false)]
public string Operation { get; set; }

/// <summary>
/// Gets or Sets RootPath
/// Gets or Sets Value
/// </summary>
[DataMember(Name = "rootPath", EmitDefaultValue = false)]
public JSONPath RootPath { get; set; }
[DataMember(Name = "value", EmitDefaultValue = false)]
public bool? Value { get; set; }

/// <summary>
/// Returns the string presentation of the object
Expand All @@ -62,9 +68,9 @@ public partial class JSONObject : IEquatable<JSONObject>, IValidatableObject
public override string ToString()
{
StringBuilder sb = new StringBuilder();
sb.Append("class JSONObject {\n");
sb.Append(" Paths: ").Append(Paths).Append("\n");
sb.Append(" RootPath: ").Append(RootPath).Append("\n");
sb.Append("class SameAmountRestriction {\n");
sb.Append(" Operation: ").Append(Operation).Append("\n");
sb.Append(" Value: ").Append(Value).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
Expand All @@ -85,31 +91,29 @@ public virtual string ToJson()
/// <returns>Boolean</returns>
public override bool Equals(object input)
{
return this.Equals(input as JSONObject);
return this.Equals(input as SameAmountRestriction);
}

/// <summary>
/// Returns true if JSONObject instances are equal
/// Returns true if SameAmountRestriction instances are equal
/// </summary>
/// <param name="input">Instance of JSONObject to be compared</param>
/// <param name="input">Instance of SameAmountRestriction to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(JSONObject input)
public bool Equals(SameAmountRestriction input)
{
if (input == null)
{
return false;
}
return
(
this.Paths == input.Paths ||
this.Paths != null &&
input.Paths != null &&
this.Paths.SequenceEqual(input.Paths)
this.Operation == input.Operation ||
(this.Operation != null &&
this.Operation.Equals(input.Operation))
) &&
(
this.RootPath == input.RootPath ||
(this.RootPath != null &&
this.RootPath.Equals(input.RootPath))
this.Value == input.Value ||
this.Value.Equals(input.Value)
);
}

Expand All @@ -122,14 +126,11 @@ public override int GetHashCode()
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.Paths != null)
{
hashCode = (hashCode * 59) + this.Paths.GetHashCode();
}
if (this.RootPath != null)
if (this.Operation != null)
{
hashCode = (hashCode * 59) + this.RootPath.GetHashCode();
hashCode = (hashCode * 59) + this.Operation.GetHashCode();
}
hashCode = (hashCode * 59) + this.Value.GetHashCode();
return hashCode;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,25 +27,39 @@
namespace Adyen.Model.BalancePlatform
{
/// <summary>
/// JSONPath
/// SameCounterpartyRestriction
/// </summary>
[DataContract(Name = "JSONPath")]
public partial class JSONPath : IEquatable<JSONPath>, IValidatableObject
[DataContract(Name = "SameCounterpartyRestriction")]
public partial class SameCounterpartyRestriction : IEquatable<SameCounterpartyRestriction>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="JSONPath" /> class.
/// Initializes a new instance of the <see cref="SameCounterpartyRestriction" /> class.
/// </summary>
/// <param name="content">content.</param>
public JSONPath(List<string> content = default(List<string>))
[JsonConstructorAttribute]
protected SameCounterpartyRestriction() { }
/// <summary>
/// Initializes a new instance of the <see cref="SameCounterpartyRestriction" /> class.
/// </summary>
/// <param name="operation">Defines how the condition must be evaluated. (required).</param>
/// <param name="value">value.</param>
public SameCounterpartyRestriction(string operation = default(string), bool? value = default(bool?))
{
this.Content = content;
this.Operation = operation;
this.Value = value;
}

/// <summary>
/// Gets or Sets Content
/// Defines how the condition must be evaluated.
/// </summary>
/// <value>Defines how the condition must be evaluated.</value>
[DataMember(Name = "operation", IsRequired = false, EmitDefaultValue = false)]
public string Operation { get; set; }

/// <summary>
/// Gets or Sets Value
/// </summary>
[DataMember(Name = "content", EmitDefaultValue = false)]
public List<string> Content { get; set; }
[DataMember(Name = "value", EmitDefaultValue = false)]
public bool? Value { get; set; }

/// <summary>
/// Returns the string presentation of the object
Expand All @@ -54,8 +68,9 @@ public partial class JSONPath : IEquatable<JSONPath>, IValidatableObject
public override string ToString()
{
StringBuilder sb = new StringBuilder();
sb.Append("class JSONPath {\n");
sb.Append(" Content: ").Append(Content).Append("\n");
sb.Append("class SameCounterpartyRestriction {\n");
sb.Append(" Operation: ").Append(Operation).Append("\n");
sb.Append(" Value: ").Append(Value).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
Expand All @@ -76,26 +91,29 @@ public virtual string ToJson()
/// <returns>Boolean</returns>
public override bool Equals(object input)
{
return this.Equals(input as JSONPath);
return this.Equals(input as SameCounterpartyRestriction);
}

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

Expand All @@ -108,10 +126,11 @@ public override int GetHashCode()
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.Content != null)
if (this.Operation != null)
{
hashCode = (hashCode * 59) + this.Content.GetHashCode();
hashCode = (hashCode * 59) + this.Operation.GetHashCode();
}
hashCode = (hashCode * 59) + this.Value.GetHashCode();
return hashCode;
}
}
Expand Down
Loading

0 comments on commit 3cea110

Please sign in to comment.