diff --git a/src/main/java/com/adyen/model/balanceplatform/CreateSweepConfigurationV2.java b/src/main/java/com/adyen/model/balanceplatform/CreateSweepConfigurationV2.java index 9d9e20f82..e74bf4c8d 100644 --- a/src/main/java/com/adyen/model/balanceplatform/CreateSweepConfigurationV2.java +++ b/src/main/java/com/adyen/model/balanceplatform/CreateSweepConfigurationV2.java @@ -42,6 +42,7 @@ CreateSweepConfigurationV2.JSON_PROPERTY_DESCRIPTION, CreateSweepConfigurationV2.JSON_PROPERTY_PRIORITIES, CreateSweepConfigurationV2.JSON_PROPERTY_REASON, + CreateSweepConfigurationV2.JSON_PROPERTY_REASON_DETAIL, CreateSweepConfigurationV2.JSON_PROPERTY_REFERENCE, CreateSweepConfigurationV2.JSON_PROPERTY_REFERENCE_FOR_BENEFICIARY, CreateSweepConfigurationV2.JSON_PROPERTY_SCHEDULE, @@ -228,6 +229,9 @@ public static ReasonEnum fromValue(String value) { public static final String JSON_PROPERTY_REASON = "reason"; private ReasonEnum reason; + public static final String JSON_PROPERTY_REASON_DETAIL = "reasonDetail"; + private String reasonDetail; + public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; @@ -531,6 +535,39 @@ public void setReason(ReasonEnum reason) { this.reason = reason; } + /** + * The human readable reason for disabling the sweep. + * + * @param reasonDetail + * @return the current {@code CreateSweepConfigurationV2} instance, allowing for method chaining + */ + public CreateSweepConfigurationV2 reasonDetail(String reasonDetail) { + this.reasonDetail = reasonDetail; + return this; + } + + /** + * The human readable reason for disabling the sweep. + * @return reasonDetail + */ + @ApiModelProperty(value = "The human readable reason for disabling the sweep.") + @JsonProperty(JSON_PROPERTY_REASON_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getReasonDetail() { + return reasonDetail; + } + + /** + * The human readable reason for disabling the sweep. + * + * @param reasonDetail + */ + @JsonProperty(JSON_PROPERTY_REASON_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setReasonDetail(String reasonDetail) { + this.reasonDetail = reasonDetail; + } + /** * Your reference for the sweep configuration. * @@ -813,6 +850,7 @@ public boolean equals(Object o) { Objects.equals(this.description, createSweepConfigurationV2.description) && Objects.equals(this.priorities, createSweepConfigurationV2.priorities) && Objects.equals(this.reason, createSweepConfigurationV2.reason) && + Objects.equals(this.reasonDetail, createSweepConfigurationV2.reasonDetail) && Objects.equals(this.reference, createSweepConfigurationV2.reference) && Objects.equals(this.referenceForBeneficiary, createSweepConfigurationV2.referenceForBeneficiary) && Objects.equals(this.schedule, createSweepConfigurationV2.schedule) && @@ -825,7 +863,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(category, counterparty, currency, description, priorities, reason, reference, referenceForBeneficiary, schedule, status, sweepAmount, targetAmount, triggerAmount, type); + return Objects.hash(category, counterparty, currency, description, priorities, reason, reasonDetail, reference, referenceForBeneficiary, schedule, status, sweepAmount, targetAmount, triggerAmount, type); } @Override @@ -838,6 +876,7 @@ public String toString() { sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" priorities: ").append(toIndentedString(priorities)).append("\n"); sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); + sb.append(" reasonDetail: ").append(toIndentedString(reasonDetail)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" referenceForBeneficiary: ").append(toIndentedString(referenceForBeneficiary)).append("\n"); sb.append(" schedule: ").append(toIndentedString(schedule)).append("\n"); diff --git a/src/main/java/com/adyen/model/balanceplatform/SweepConfigurationV2.java b/src/main/java/com/adyen/model/balanceplatform/SweepConfigurationV2.java index 347a942a6..21ade0743 100644 --- a/src/main/java/com/adyen/model/balanceplatform/SweepConfigurationV2.java +++ b/src/main/java/com/adyen/model/balanceplatform/SweepConfigurationV2.java @@ -43,6 +43,7 @@ SweepConfigurationV2.JSON_PROPERTY_ID, SweepConfigurationV2.JSON_PROPERTY_PRIORITIES, SweepConfigurationV2.JSON_PROPERTY_REASON, + SweepConfigurationV2.JSON_PROPERTY_REASON_DETAIL, SweepConfigurationV2.JSON_PROPERTY_REFERENCE, SweepConfigurationV2.JSON_PROPERTY_REFERENCE_FOR_BENEFICIARY, SweepConfigurationV2.JSON_PROPERTY_SCHEDULE, @@ -232,6 +233,9 @@ public static ReasonEnum fromValue(String value) { public static final String JSON_PROPERTY_REASON = "reason"; private ReasonEnum reason; + public static final String JSON_PROPERTY_REASON_DETAIL = "reasonDetail"; + private String reasonDetail; + public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; @@ -568,6 +572,39 @@ public void setReason(ReasonEnum reason) { this.reason = reason; } + /** + * The human readable reason for disabling the sweep. + * + * @param reasonDetail + * @return the current {@code SweepConfigurationV2} instance, allowing for method chaining + */ + public SweepConfigurationV2 reasonDetail(String reasonDetail) { + this.reasonDetail = reasonDetail; + return this; + } + + /** + * The human readable reason for disabling the sweep. + * @return reasonDetail + */ + @ApiModelProperty(value = "The human readable reason for disabling the sweep.") + @JsonProperty(JSON_PROPERTY_REASON_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getReasonDetail() { + return reasonDetail; + } + + /** + * The human readable reason for disabling the sweep. + * + * @param reasonDetail + */ + @JsonProperty(JSON_PROPERTY_REASON_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setReasonDetail(String reasonDetail) { + this.reasonDetail = reasonDetail; + } + /** * Your reference for the sweep configuration. * @@ -851,6 +888,7 @@ public boolean equals(Object o) { Objects.equals(this.id, sweepConfigurationV2.id) && Objects.equals(this.priorities, sweepConfigurationV2.priorities) && Objects.equals(this.reason, sweepConfigurationV2.reason) && + Objects.equals(this.reasonDetail, sweepConfigurationV2.reasonDetail) && Objects.equals(this.reference, sweepConfigurationV2.reference) && Objects.equals(this.referenceForBeneficiary, sweepConfigurationV2.referenceForBeneficiary) && Objects.equals(this.schedule, sweepConfigurationV2.schedule) && @@ -863,7 +901,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(category, counterparty, currency, description, id, priorities, reason, reference, referenceForBeneficiary, schedule, status, sweepAmount, targetAmount, triggerAmount, type); + return Objects.hash(category, counterparty, currency, description, id, priorities, reason, reasonDetail, reference, referenceForBeneficiary, schedule, status, sweepAmount, targetAmount, triggerAmount, type); } @Override @@ -877,6 +915,7 @@ public String toString() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" priorities: ").append(toIndentedString(priorities)).append("\n"); sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); + sb.append(" reasonDetail: ").append(toIndentedString(reasonDetail)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" referenceForBeneficiary: ").append(toIndentedString(referenceForBeneficiary)).append("\n"); sb.append(" schedule: ").append(toIndentedString(schedule)).append("\n"); diff --git a/src/main/java/com/adyen/model/balanceplatform/UpdateSweepConfigurationV2.java b/src/main/java/com/adyen/model/balanceplatform/UpdateSweepConfigurationV2.java index 46155fc39..ee72cfcab 100644 --- a/src/main/java/com/adyen/model/balanceplatform/UpdateSweepConfigurationV2.java +++ b/src/main/java/com/adyen/model/balanceplatform/UpdateSweepConfigurationV2.java @@ -43,6 +43,7 @@ UpdateSweepConfigurationV2.JSON_PROPERTY_ID, UpdateSweepConfigurationV2.JSON_PROPERTY_PRIORITIES, UpdateSweepConfigurationV2.JSON_PROPERTY_REASON, + UpdateSweepConfigurationV2.JSON_PROPERTY_REASON_DETAIL, UpdateSweepConfigurationV2.JSON_PROPERTY_REFERENCE, UpdateSweepConfigurationV2.JSON_PROPERTY_REFERENCE_FOR_BENEFICIARY, UpdateSweepConfigurationV2.JSON_PROPERTY_SCHEDULE, @@ -232,6 +233,9 @@ public static ReasonEnum fromValue(String value) { public static final String JSON_PROPERTY_REASON = "reason"; private ReasonEnum reason; + public static final String JSON_PROPERTY_REASON_DETAIL = "reasonDetail"; + private String reasonDetail; + public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; @@ -568,6 +572,39 @@ public void setReason(ReasonEnum reason) { this.reason = reason; } + /** + * The human readable reason for disabling the sweep. + * + * @param reasonDetail + * @return the current {@code UpdateSweepConfigurationV2} instance, allowing for method chaining + */ + public UpdateSweepConfigurationV2 reasonDetail(String reasonDetail) { + this.reasonDetail = reasonDetail; + return this; + } + + /** + * The human readable reason for disabling the sweep. + * @return reasonDetail + */ + @ApiModelProperty(value = "The human readable reason for disabling the sweep.") + @JsonProperty(JSON_PROPERTY_REASON_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getReasonDetail() { + return reasonDetail; + } + + /** + * The human readable reason for disabling the sweep. + * + * @param reasonDetail + */ + @JsonProperty(JSON_PROPERTY_REASON_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setReasonDetail(String reasonDetail) { + this.reasonDetail = reasonDetail; + } + /** * Your reference for the sweep configuration. * @@ -851,6 +888,7 @@ public boolean equals(Object o) { Objects.equals(this.id, updateSweepConfigurationV2.id) && Objects.equals(this.priorities, updateSweepConfigurationV2.priorities) && Objects.equals(this.reason, updateSweepConfigurationV2.reason) && + Objects.equals(this.reasonDetail, updateSweepConfigurationV2.reasonDetail) && Objects.equals(this.reference, updateSweepConfigurationV2.reference) && Objects.equals(this.referenceForBeneficiary, updateSweepConfigurationV2.referenceForBeneficiary) && Objects.equals(this.schedule, updateSweepConfigurationV2.schedule) && @@ -863,7 +901,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(category, counterparty, currency, description, id, priorities, reason, reference, referenceForBeneficiary, schedule, status, sweepAmount, targetAmount, triggerAmount, type); + return Objects.hash(category, counterparty, currency, description, id, priorities, reason, reasonDetail, reference, referenceForBeneficiary, schedule, status, sweepAmount, targetAmount, triggerAmount, type); } @Override @@ -877,6 +915,7 @@ public String toString() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" priorities: ").append(toIndentedString(priorities)).append("\n"); sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); + sb.append(" reasonDetail: ").append(toIndentedString(reasonDetail)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" referenceForBeneficiary: ").append(toIndentedString(referenceForBeneficiary)).append("\n"); sb.append(" schedule: ").append(toIndentedString(schedule)).append("\n"); diff --git a/src/main/java/com/adyen/model/configurationwebhooks/SweepConfigurationV2.java b/src/main/java/com/adyen/model/configurationwebhooks/SweepConfigurationV2.java index e82875d92..89b86254a 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/SweepConfigurationV2.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/SweepConfigurationV2.java @@ -43,6 +43,7 @@ SweepConfigurationV2.JSON_PROPERTY_ID, SweepConfigurationV2.JSON_PROPERTY_PRIORITIES, SweepConfigurationV2.JSON_PROPERTY_REASON, + SweepConfigurationV2.JSON_PROPERTY_REASON_DETAIL, SweepConfigurationV2.JSON_PROPERTY_REFERENCE, SweepConfigurationV2.JSON_PROPERTY_REFERENCE_FOR_BENEFICIARY, SweepConfigurationV2.JSON_PROPERTY_SCHEDULE, @@ -232,6 +233,9 @@ public static ReasonEnum fromValue(String value) { public static final String JSON_PROPERTY_REASON = "reason"; private ReasonEnum reason; + public static final String JSON_PROPERTY_REASON_DETAIL = "reasonDetail"; + private String reasonDetail; + public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; @@ -568,6 +572,39 @@ public void setReason(ReasonEnum reason) { this.reason = reason; } + /** + * The human readable reason for disabling the sweep. + * + * @param reasonDetail + * @return the current {@code SweepConfigurationV2} instance, allowing for method chaining + */ + public SweepConfigurationV2 reasonDetail(String reasonDetail) { + this.reasonDetail = reasonDetail; + return this; + } + + /** + * The human readable reason for disabling the sweep. + * @return reasonDetail + */ + @ApiModelProperty(value = "The human readable reason for disabling the sweep.") + @JsonProperty(JSON_PROPERTY_REASON_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getReasonDetail() { + return reasonDetail; + } + + /** + * The human readable reason for disabling the sweep. + * + * @param reasonDetail + */ + @JsonProperty(JSON_PROPERTY_REASON_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setReasonDetail(String reasonDetail) { + this.reasonDetail = reasonDetail; + } + /** * Your reference for the sweep configuration. * @@ -851,6 +888,7 @@ public boolean equals(Object o) { Objects.equals(this.id, sweepConfigurationV2.id) && Objects.equals(this.priorities, sweepConfigurationV2.priorities) && Objects.equals(this.reason, sweepConfigurationV2.reason) && + Objects.equals(this.reasonDetail, sweepConfigurationV2.reasonDetail) && Objects.equals(this.reference, sweepConfigurationV2.reference) && Objects.equals(this.referenceForBeneficiary, sweepConfigurationV2.referenceForBeneficiary) && Objects.equals(this.schedule, sweepConfigurationV2.schedule) && @@ -863,7 +901,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(category, counterparty, currency, description, id, priorities, reason, reference, referenceForBeneficiary, schedule, status, sweepAmount, targetAmount, triggerAmount, type); + return Objects.hash(category, counterparty, currency, description, id, priorities, reason, reasonDetail, reference, referenceForBeneficiary, schedule, status, sweepAmount, targetAmount, triggerAmount, type); } @Override @@ -877,6 +915,7 @@ public String toString() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" priorities: ").append(toIndentedString(priorities)).append("\n"); sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); + sb.append(" reasonDetail: ").append(toIndentedString(reasonDetail)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" referenceForBeneficiary: ").append(toIndentedString(referenceForBeneficiary)).append("\n"); sb.append(" schedule: ").append(toIndentedString(schedule)).append("\n");