
uk.org.openbanking.datamodel.account.OBStatement2StatementInterest 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.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.math.BigDecimal;
import java.util.Objects;
/**
* Set of elements used to provide details of a generic interest amount related to the statement resource.
*/
@ApiModel(description = "Set of elements used to provide details of a generic interest amount related to the statement resource.")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-13T15:59:01.633+01:00")
public class OBStatement2StatementInterest {
@JsonProperty("Description")
private String description = null;
@JsonProperty("CreditDebitIndicator")
private OBCreditDebitCode0 creditDebitIndicator = null;
@JsonProperty("Type")
private String type = null;
@JsonProperty("Rate")
private BigDecimal rate = null;
@JsonProperty("RateType")
private String rateType = null;
@JsonProperty("Frequency")
private String frequency = null;
@JsonProperty("Amount")
private OBActiveOrHistoricCurrencyAndAmount5 amount = null;
public OBStatement2StatementInterest description(String description) {
this.description = description;
return this;
}
/**
* Get description
*
* @return description
**/
@Size(min = 1, max = 128)
@ApiModelProperty(value = "")
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public OBStatement2StatementInterest creditDebitIndicator(OBCreditDebitCode0 creditDebitIndicator) {
this.creditDebitIndicator = creditDebitIndicator;
return this;
}
/**
* Get creditDebitIndicator
*
* @return creditDebitIndicator
**/
@NotNull
@Valid
@ApiModelProperty(required = true, value = "")
public OBCreditDebitCode0 getCreditDebitIndicator() {
return creditDebitIndicator;
}
public void setCreditDebitIndicator(OBCreditDebitCode0 creditDebitIndicator) {
this.creditDebitIndicator = creditDebitIndicator;
}
public OBStatement2StatementInterest type(String type) {
this.type = type;
return this;
}
/**
* Get type
*
* @return type
**/
@NotNull
@ApiModelProperty(required = true, value = "")
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public OBStatement2StatementInterest rate(BigDecimal rate) {
this.rate = rate;
return this;
}
/**
* Get rate
*
* @return rate
**/
@Valid
@ApiModelProperty(value = "")
public BigDecimal getRate() {
return rate;
}
public void setRate(BigDecimal rate) {
this.rate = rate;
}
public OBStatement2StatementInterest rateType(String rateType) {
this.rateType = rateType;
return this;
}
/**
* Get rateType
*
* @return rateType
**/
@ApiModelProperty(value = "")
public String getRateType() {
return rateType;
}
public void setRateType(String rateType) {
this.rateType = rateType;
}
public OBStatement2StatementInterest frequency(String frequency) {
this.frequency = frequency;
return this;
}
/**
* Get frequency
*
* @return frequency
**/
@ApiModelProperty(value = "")
public String getFrequency() {
return frequency;
}
public void setFrequency(String frequency) {
this.frequency = frequency;
}
public OBStatement2StatementInterest amount(OBActiveOrHistoricCurrencyAndAmount5 amount) {
this.amount = amount;
return this;
}
/**
* Get amount
*
* @return amount
**/
@NotNull
@Valid
@ApiModelProperty(required = true, value = "")
public OBActiveOrHistoricCurrencyAndAmount5 getAmount() {
return amount;
}
public void setAmount(OBActiveOrHistoricCurrencyAndAmount5 amount) {
this.amount = amount;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
OBStatement2StatementInterest obStatement2StatementInterest = (OBStatement2StatementInterest) o;
return Objects.equals(this.description, obStatement2StatementInterest.description) &&
Objects.equals(this.creditDebitIndicator, obStatement2StatementInterest.creditDebitIndicator) &&
Objects.equals(this.type, obStatement2StatementInterest.type) &&
Objects.equals(this.rate, obStatement2StatementInterest.rate) &&
Objects.equals(this.rateType, obStatement2StatementInterest.rateType) &&
Objects.equals(this.frequency, obStatement2StatementInterest.frequency) &&
Objects.equals(this.amount, obStatement2StatementInterest.amount);
}
@Override
public int hashCode() {
return Objects.hash(description, creditDebitIndicator, type, rate, rateType, frequency, amount);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class OBStatement2StatementInterest {\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" creditDebitIndicator: ").append(toIndentedString(creditDebitIndicator)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" rate: ").append(toIndentedString(rate)).append("\n");
sb.append(" rateType: ").append(toIndentedString(rateType)).append("\n");
sb.append(" frequency: ").append(toIndentedString(frequency)).append("\n");
sb.append(" amount: ").append(toIndentedString(amount)).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