All Downloads are FREE. Search and download functionalities are using the official Maven repository.

uk.org.openbanking.datamodel.account.OBLoanInterestTierBandSet1 Maven / Gradle / Ivy

Go to download

A Java SDK to help implementing the Open Banking standard : https://www.openbanking.org.uk/read-write-apis/

There is a newer version: 3.1.2.5
Show newest version
/**
 *
 * 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.1
 * 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.util.ArrayList;
import java.util.List;
import java.util.Objects;

/**
 * The group of tiers or bands for which debit interest can be applied.
 */
@ApiModel(description = "The group of tiers or bands for which debit interest can be applied.")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-05-23T11:27:41.089+01:00")
public class OBLoanInterestTierBandSet1 {
    @JsonProperty("TierBandMethod")
    private OBTierBandType1Code tierBandMethod = null;

    @JsonProperty("Identification")
    private String identification = null;

    @JsonProperty("CalculationMethod")
    private OBInterestCalculationMethod1Code calculationMethod = null;

    @JsonProperty("Notes")
    private List notes = null;

    @JsonProperty("OtherCalculationMethod")
    private OBOtherCodeType1 otherCalculationMethod = null;

    @JsonProperty("LoanInterestTierBand")
    private List loanInterestTierBand = new ArrayList();

    @JsonProperty("LoanInterestFeesCharges")
    private List loanInterestFeesCharges = null;

    public OBLoanInterestTierBandSet1 tierBandMethod(OBTierBandType1Code tierBandMethod) {
        this.tierBandMethod = tierBandMethod;
        return this;
    }

    /**
     * Get tierBandMethod
     *
     * @return tierBandMethod
     **/
    @NotNull
    @Valid
    @ApiModelProperty(required = true, value = "")
    public OBTierBandType1Code getTierBandMethod() {
        return tierBandMethod;
    }

    public void setTierBandMethod(OBTierBandType1Code tierBandMethod) {
        this.tierBandMethod = tierBandMethod;
    }

    public OBLoanInterestTierBandSet1 identification(String identification) {
        this.identification = identification;
        return this;
    }

    /**
     * Loan interest tierbandset identification. Used by  loan providers for internal use purpose.
     *
     * @return identification
     **/
    @Size(min = 1, max = 35)
    @ApiModelProperty(value = "Loan interest tierbandset identification. Used by  loan providers for internal use purpose.")
    public String getIdentification() {
        return identification;
    }

    public void setIdentification(String identification) {
        this.identification = identification;
    }

    public OBLoanInterestTierBandSet1 calculationMethod(OBInterestCalculationMethod1Code calculationMethod) {
        this.calculationMethod = calculationMethod;
        return this;
    }

    /**
     * Get calculationMethod
     *
     * @return calculationMethod
     **/
    @NotNull
    @Valid
    @ApiModelProperty(required = true, value = "")
    public OBInterestCalculationMethod1Code getCalculationMethod() {
        return calculationMethod;
    }

    public void setCalculationMethod(OBInterestCalculationMethod1Code calculationMethod) {
        this.calculationMethod = calculationMethod;
    }

    public OBLoanInterestTierBandSet1 notes(List notes) {
        this.notes = notes;
        return this;
    }

    public OBLoanInterestTierBandSet1 addNotesItem(String notesItem) {
        if (this.notes == null) {
            this.notes = new ArrayList();
        }
        this.notes.add(notesItem);
        return this;
    }

    /**
     * Optional additional notes to supplement the Tier Band Set details
     *
     * @return notes
     **/
    @ApiModelProperty(value = "Optional additional notes to supplement the Tier Band Set details")
    public List getNotes() {
        return notes;
    }

    public void setNotes(List notes) {
        this.notes = notes;
    }

    public OBLoanInterestTierBandSet1 otherCalculationMethod(OBOtherCodeType1 otherCalculationMethod) {
        this.otherCalculationMethod = otherCalculationMethod;
        return this;
    }

    /**
     * Get otherCalculationMethod
     *
     * @return otherCalculationMethod
     **/
    @Valid
    @ApiModelProperty(value = "")
    public OBOtherCodeType1 getOtherCalculationMethod() {
        return otherCalculationMethod;
    }

    public void setOtherCalculationMethod(OBOtherCodeType1 otherCalculationMethod) {
        this.otherCalculationMethod = otherCalculationMethod;
    }

    public OBLoanInterestTierBandSet1 loanInterestTierBand(List loanInterestTierBand) {
        this.loanInterestTierBand = loanInterestTierBand;
        return this;
    }

    public OBLoanInterestTierBandSet1 addLoanInterestTierBandItem(OBLoanInterestTierBand1 loanInterestTierBandItem) {
        this.loanInterestTierBand.add(loanInterestTierBandItem);
        return this;
    }

    /**
     * Tier Band Details
     *
     * @return loanInterestTierBand
     **/
    @NotNull
    @Valid
    @Size(min = 1)
    @ApiModelProperty(required = true, value = "Tier Band Details")
    public List getLoanInterestTierBand() {
        return loanInterestTierBand;
    }

    public void setLoanInterestTierBand(List loanInterestTierBand) {
        this.loanInterestTierBand = loanInterestTierBand;
    }

    public OBLoanInterestTierBandSet1 loanInterestFeesCharges(List loanInterestFeesCharges) {
        this.loanInterestFeesCharges = loanInterestFeesCharges;
        return this;
    }

    public OBLoanInterestTierBandSet1 addLoanInterestFeesChargesItem(OBLoanInterestFeesCharges1 loanInterestFeesChargesItem) {
        if (this.loanInterestFeesCharges == null) {
            this.loanInterestFeesCharges = new ArrayList();
        }
        this.loanInterestFeesCharges.add(loanInterestFeesChargesItem);
        return this;
    }

    /**
     * Contains details of fees and charges which are not associated with either LoanRepayment or features/benefits
     *
     * @return loanInterestFeesCharges
     **/
    @Valid
    @ApiModelProperty(value = "Contains details of fees and charges which are not associated with either LoanRepayment or features/benefits")
    public List getLoanInterestFeesCharges() {
        return loanInterestFeesCharges;
    }

    public void setLoanInterestFeesCharges(List loanInterestFeesCharges) {
        this.loanInterestFeesCharges = loanInterestFeesCharges;
    }


    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        OBLoanInterestTierBandSet1 obLoanInterestTierBandSet1 = (OBLoanInterestTierBandSet1) o;
        return Objects.equals(this.tierBandMethod, obLoanInterestTierBandSet1.tierBandMethod) &&
                Objects.equals(this.identification, obLoanInterestTierBandSet1.identification) &&
                Objects.equals(this.calculationMethod, obLoanInterestTierBandSet1.calculationMethod) &&
                Objects.equals(this.notes, obLoanInterestTierBandSet1.notes) &&
                Objects.equals(this.otherCalculationMethod, obLoanInterestTierBandSet1.otherCalculationMethod) &&
                Objects.equals(this.loanInterestTierBand, obLoanInterestTierBandSet1.loanInterestTierBand) &&
                Objects.equals(this.loanInterestFeesCharges, obLoanInterestTierBandSet1.loanInterestFeesCharges);
    }

    @Override
    public int hashCode() {
        return Objects.hash(tierBandMethod, identification, calculationMethod, notes, otherCalculationMethod, loanInterestTierBand, loanInterestFeesCharges);
    }


    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("class OBLoanInterestTierBandSet1 {\n");

        sb.append("    tierBandMethod: ").append(toIndentedString(tierBandMethod)).append("\n");
        sb.append("    identification: ").append(toIndentedString(identification)).append("\n");
        sb.append("    calculationMethod: ").append(toIndentedString(calculationMethod)).append("\n");
        sb.append("    notes: ").append(toIndentedString(notes)).append("\n");
        sb.append("    otherCalculationMethod: ").append(toIndentedString(otherCalculationMethod)).append("\n");
        sb.append("    loanInterestTierBand: ").append(toIndentedString(loanInterestTierBand)).append("\n");
        sb.append("    loanInterestFeesCharges: ").append(toIndentedString(loanInterestFeesCharges)).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 - 2024 Weber Informatics LLC | Privacy Policy