
uk.org.openbanking.datamodel.account.OBStandingOrder4Basic Maven / Gradle / Ivy
/**
*
* The contents of this file are subject to the terms of the Common Development and
* Distribution License (the License). You may not use this file except in compliance with the
* License.
*
* You can obtain a copy of the License at https://forgerock.org/cddlv1-0/. See the License for the
* specific language governing permission and limitations under the License.
*
* When distributing Covered Software, include this CDDL Header Notice in each file and include
* the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
* Header, with the fields enclosed by brackets [] replaced by your own identifying
* information: "Portions copyright [year] [name of copyright owner]".
*
* Copyright 2019 ForgeRock AS.
*/
/*
* Account and Transaction API Specification
* Swagger for Account and Transaction API Specification
*
* OpenAPI spec version: v3.1.2-RC1
* Contact: [email protected]
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package uk.org.openbanking.datamodel.account;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import java.util.Objects;
/**
* OBStandingOrder4Basic
*/
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-13T15:59:01.633+01:00")
public class OBStandingOrder4Basic {
@JsonProperty("AccountId")
private String accountId = null;
@JsonProperty("StandingOrderId")
private String standingOrderId = null;
@JsonProperty("Frequency")
private String frequency = null;
@JsonProperty("Reference")
private String reference = null;
@JsonProperty("FirstPaymentDateTime")
private String firstPaymentDateTime = null;
@JsonProperty("NextPaymentDateTime")
private String nextPaymentDateTime = null;
@JsonProperty("FinalPaymentDateTime")
private String finalPaymentDateTime = null;
@JsonProperty("StandingOrderStatusCode")
private OBExternalStandingOrderStatus1Code standingOrderStatusCode = null;
@JsonProperty("FirstPaymentAmount")
private OBActiveOrHistoricCurrencyAndAmount0 firstPaymentAmount = null;
@JsonProperty("NextPaymentAmount")
private OBActiveOrHistoricCurrencyAndAmount1 nextPaymentAmount = null;
@JsonProperty("FinalPaymentAmount")
private OBActiveOrHistoricCurrencyAndAmount2 finalPaymentAmount = null;
@JsonProperty("SupplementaryData")
private OBSupplementaryData1 supplementaryData = null;
public OBStandingOrder4Basic accountId(String accountId) {
this.accountId = accountId;
return this;
}
/**
* Get accountId
*
* @return accountId
**/
@NotNull
@Size(min = 1, max = 40)
@ApiModelProperty(required = true, value = "")
public String getAccountId() {
return accountId;
}
public void setAccountId(String accountId) {
this.accountId = accountId;
}
public OBStandingOrder4Basic standingOrderId(String standingOrderId) {
this.standingOrderId = standingOrderId;
return this;
}
/**
* Get standingOrderId
*
* @return standingOrderId
**/
@Size(min = 1, max = 40)
@ApiModelProperty(value = "")
public String getStandingOrderId() {
return standingOrderId;
}
public void setStandingOrderId(String standingOrderId) {
this.standingOrderId = standingOrderId;
}
public OBStandingOrder4Basic frequency(String frequency) {
this.frequency = frequency;
return this;
}
/**
* Get frequency
*
* @return frequency
**/
@NotNull
@Pattern(regexp = "^(EvryDay)$|^(EvryWorkgDay)$|^(IntrvlWkDay:0[1-9]:0[1-7])$|^(WkInMnthDay:0[1-5]:0[1-7])$|^(IntrvlMnthDay:(0[1-6]|12|24):(-0[1-5]|0[1-9]|[12][0-9]|3[01]))$|^(QtrDay:(ENGLISH|SCOTTISH|RECEIVED))$")
@ApiModelProperty(required = true, value = "")
public String getFrequency() {
return frequency;
}
public void setFrequency(String frequency) {
this.frequency = frequency;
}
public OBStandingOrder4Basic reference(String reference) {
this.reference = reference;
return this;
}
/**
* Get reference
*
* @return reference
**/
@Size(min = 1, max = 35)
@ApiModelProperty(value = "")
public String getReference() {
return reference;
}
public void setReference(String reference) {
this.reference = reference;
}
public OBStandingOrder4Basic firstPaymentDateTime(String firstPaymentDateTime) {
this.firstPaymentDateTime = firstPaymentDateTime;
return this;
}
/**
* Get firstPaymentDateTime
*
* @return firstPaymentDateTime
**/
@ApiModelProperty(value = "")
public String getFirstPaymentDateTime() {
return firstPaymentDateTime;
}
public void setFirstPaymentDateTime(String firstPaymentDateTime) {
this.firstPaymentDateTime = firstPaymentDateTime;
}
public OBStandingOrder4Basic nextPaymentDateTime(String nextPaymentDateTime) {
this.nextPaymentDateTime = nextPaymentDateTime;
return this;
}
/**
* Get nextPaymentDateTime
*
* @return nextPaymentDateTime
**/
@ApiModelProperty(value = "")
public String getNextPaymentDateTime() {
return nextPaymentDateTime;
}
public void setNextPaymentDateTime(String nextPaymentDateTime) {
this.nextPaymentDateTime = nextPaymentDateTime;
}
public OBStandingOrder4Basic finalPaymentDateTime(String finalPaymentDateTime) {
this.finalPaymentDateTime = finalPaymentDateTime;
return this;
}
/**
* Get finalPaymentDateTime
*
* @return finalPaymentDateTime
**/
@ApiModelProperty(value = "")
public String getFinalPaymentDateTime() {
return finalPaymentDateTime;
}
public void setFinalPaymentDateTime(String finalPaymentDateTime) {
this.finalPaymentDateTime = finalPaymentDateTime;
}
public OBStandingOrder4Basic standingOrderStatusCode(OBExternalStandingOrderStatus1Code standingOrderStatusCode) {
this.standingOrderStatusCode = standingOrderStatusCode;
return this;
}
/**
* Get standingOrderStatusCode
*
* @return standingOrderStatusCode
**/
@Valid
@ApiModelProperty(value = "")
public OBExternalStandingOrderStatus1Code getStandingOrderStatusCode() {
return standingOrderStatusCode;
}
public void setStandingOrderStatusCode(OBExternalStandingOrderStatus1Code standingOrderStatusCode) {
this.standingOrderStatusCode = standingOrderStatusCode;
}
public OBStandingOrder4Basic firstPaymentAmount(OBActiveOrHistoricCurrencyAndAmount0 firstPaymentAmount) {
this.firstPaymentAmount = firstPaymentAmount;
return this;
}
/**
* Get firstPaymentAmount
*
* @return firstPaymentAmount
**/
@Valid
@ApiModelProperty(value = "")
public OBActiveOrHistoricCurrencyAndAmount0 getFirstPaymentAmount() {
return firstPaymentAmount;
}
public void setFirstPaymentAmount(OBActiveOrHistoricCurrencyAndAmount0 firstPaymentAmount) {
this.firstPaymentAmount = firstPaymentAmount;
}
public OBStandingOrder4Basic nextPaymentAmount(OBActiveOrHistoricCurrencyAndAmount1 nextPaymentAmount) {
this.nextPaymentAmount = nextPaymentAmount;
return this;
}
/**
* Get nextPaymentAmount
*
* @return nextPaymentAmount
**/
@Valid
@ApiModelProperty(value = "")
public OBActiveOrHistoricCurrencyAndAmount1 getNextPaymentAmount() {
return nextPaymentAmount;
}
public void setNextPaymentAmount(OBActiveOrHistoricCurrencyAndAmount1 nextPaymentAmount) {
this.nextPaymentAmount = nextPaymentAmount;
}
public OBStandingOrder4Basic finalPaymentAmount(OBActiveOrHistoricCurrencyAndAmount2 finalPaymentAmount) {
this.finalPaymentAmount = finalPaymentAmount;
return this;
}
/**
* Get finalPaymentAmount
*
* @return finalPaymentAmount
**/
@Valid
@ApiModelProperty(value = "")
public OBActiveOrHistoricCurrencyAndAmount2 getFinalPaymentAmount() {
return finalPaymentAmount;
}
public void setFinalPaymentAmount(OBActiveOrHistoricCurrencyAndAmount2 finalPaymentAmount) {
this.finalPaymentAmount = finalPaymentAmount;
}
public OBStandingOrder4Basic supplementaryData(OBSupplementaryData1 supplementaryData) {
this.supplementaryData = supplementaryData;
return this;
}
/**
* Get supplementaryData
*
* @return supplementaryData
**/
@Valid
@ApiModelProperty(value = "")
public OBSupplementaryData1 getSupplementaryData() {
return supplementaryData;
}
public void setSupplementaryData(OBSupplementaryData1 supplementaryData) {
this.supplementaryData = supplementaryData;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
OBStandingOrder4Basic obStandingOrder4Basic = (OBStandingOrder4Basic) o;
return Objects.equals(this.accountId, obStandingOrder4Basic.accountId) &&
Objects.equals(this.standingOrderId, obStandingOrder4Basic.standingOrderId) &&
Objects.equals(this.frequency, obStandingOrder4Basic.frequency) &&
Objects.equals(this.reference, obStandingOrder4Basic.reference) &&
Objects.equals(this.firstPaymentDateTime, obStandingOrder4Basic.firstPaymentDateTime) &&
Objects.equals(this.nextPaymentDateTime, obStandingOrder4Basic.nextPaymentDateTime) &&
Objects.equals(this.finalPaymentDateTime, obStandingOrder4Basic.finalPaymentDateTime) &&
Objects.equals(this.standingOrderStatusCode, obStandingOrder4Basic.standingOrderStatusCode) &&
Objects.equals(this.firstPaymentAmount, obStandingOrder4Basic.firstPaymentAmount) &&
Objects.equals(this.nextPaymentAmount, obStandingOrder4Basic.nextPaymentAmount) &&
Objects.equals(this.finalPaymentAmount, obStandingOrder4Basic.finalPaymentAmount) &&
Objects.equals(this.supplementaryData, obStandingOrder4Basic.supplementaryData);
}
@Override
public int hashCode() {
return Objects.hash(accountId, standingOrderId, frequency, reference, firstPaymentDateTime, nextPaymentDateTime, finalPaymentDateTime, standingOrderStatusCode, firstPaymentAmount, nextPaymentAmount, finalPaymentAmount, supplementaryData);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class OBStandingOrder4Basic {\n");
sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n");
sb.append(" standingOrderId: ").append(toIndentedString(standingOrderId)).append("\n");
sb.append(" frequency: ").append(toIndentedString(frequency)).append("\n");
sb.append(" reference: ").append(toIndentedString(reference)).append("\n");
sb.append(" firstPaymentDateTime: ").append(toIndentedString(firstPaymentDateTime)).append("\n");
sb.append(" nextPaymentDateTime: ").append(toIndentedString(nextPaymentDateTime)).append("\n");
sb.append(" finalPaymentDateTime: ").append(toIndentedString(finalPaymentDateTime)).append("\n");
sb.append(" standingOrderStatusCode: ").append(toIndentedString(standingOrderStatusCode)).append("\n");
sb.append(" firstPaymentAmount: ").append(toIndentedString(firstPaymentAmount)).append("\n");
sb.append(" nextPaymentAmount: ").append(toIndentedString(nextPaymentAmount)).append("\n");
sb.append(" finalPaymentAmount: ").append(toIndentedString(finalPaymentAmount)).append("\n");
sb.append(" supplementaryData: ").append(toIndentedString(supplementaryData)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy