
uk.org.openbanking.datamodel.account.OBBeneficiary1 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.
*/
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.Size;
import java.util.Objects;
/**
* Beneficiary
*/
@ApiModel(description = "Beneficiary")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2017-10-16T08:37:28.078Z")
public class OBBeneficiary1 {
@JsonProperty("AccountId")
private String accountId = null;
@JsonProperty("BeneficiaryId")
private String beneficiaryId = null;
@JsonProperty("Reference")
private String reference = null;
@JsonProperty("Servicer")
private OBBranchAndFinancialInstitutionIdentification2 servicer = null;
@JsonProperty("CreditorAccount")
private OBCashAccount1 creditorAccount = null;
public OBBeneficiary1 accountId(String accountId) {
this.accountId = accountId;
return this;
}
/**
* A unique and immutable identifier used to identify the account resource. This identifier has no meaning to the account owner.
* @return accountId
**/
@ApiModelProperty(value = "A unique and immutable identifier used to identify the account resource. This identifier has no meaning to the account owner.")
@Size(min=1,max=40)
public String getAccountId() {
return accountId;
}
public void setAccountId(String accountId) {
this.accountId = accountId;
}
public OBBeneficiary1 beneficiaryId(String beneficiaryId) {
this.beneficiaryId = beneficiaryId;
return this;
}
/**
* A unique and immutable identifier used to identify the beneficiary resource. This identifier has no meaning to the account owner.
* @return beneficiaryId
**/
@ApiModelProperty(value = "A unique and immutable identifier used to identify the beneficiary resource. This identifier has no meaning to the account owner.")
@Size(min=1,max=40)
public String getBeneficiaryId() {
return beneficiaryId;
}
public void setBeneficiaryId(String beneficiaryId) {
this.beneficiaryId = beneficiaryId;
}
public OBBeneficiary1 reference(String reference) {
this.reference = reference;
return this;
}
/**
* Unique reference, as assigned by the creditor, to unambiguously refer to the payment transaction. Usage: If available, the initiating party should provide this reference in the structured remittance information, to enable reconciliation by the creditor upon receipt of the amount of money. If the business context requires the use of a creditor reference or a payment remit identification, and only one identifier can be passed through the end-to-end chain, the creditor's reference or payment remittance identification should be quoted in the end-to-end transaction identification.
* @return reference
**/
@ApiModelProperty(value = "Unique reference, as assigned by the creditor, to unambiguously refer to the payment transaction. Usage: If available, the initiating party should provide this reference in the structured remittance information, to enable reconciliation by the creditor upon receipt of the amount of money. If the business context requires the use of a creditor reference or a payment remit identification, and only one identifier can be passed through the end-to-end chain, the creditor's reference or payment remittance identification should be quoted in the end-to-end transaction identification.")
@Size(min=1,max=35)
public String getReference() {
return reference;
}
public void setReference(String reference) {
this.reference = reference;
}
public OBBeneficiary1 servicer(OBBranchAndFinancialInstitutionIdentification2 servicer) {
this.servicer = servicer;
return this;
}
/**
* Get servicer
* @return servicer
**/
@ApiModelProperty(value = "")
@Valid
public OBBranchAndFinancialInstitutionIdentification2 getServicer() {
return servicer;
}
public void setServicer(OBBranchAndFinancialInstitutionIdentification2 servicer) {
this.servicer = servicer;
}
public OBBeneficiary1 creditorAccount(OBCashAccount1 creditorAccount) {
this.creditorAccount = creditorAccount;
return this;
}
/**
* Get creditorAccount
* @return creditorAccount
**/
@ApiModelProperty(value = "")
@Valid
public OBCashAccount1 getCreditorAccount() {
return creditorAccount;
}
public void setCreditorAccount(OBCashAccount1 creditorAccount) {
this.creditorAccount = creditorAccount;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
OBBeneficiary1 beneficiary = (OBBeneficiary1) o;
return Objects.equals(this.accountId, beneficiary.accountId) &&
Objects.equals(this.beneficiaryId, beneficiary.beneficiaryId) &&
Objects.equals(this.reference, beneficiary.reference) &&
Objects.equals(this.servicer, beneficiary.servicer) &&
Objects.equals(this.creditorAccount, beneficiary.creditorAccount);
}
@Override
public int hashCode() {
return Objects.hash(accountId, beneficiaryId, reference, servicer, creditorAccount);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Beneficiary {\n");
sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n");
sb.append(" beneficiaryId: ").append(toIndentedString(beneficiaryId)).append("\n");
sb.append(" reference: ").append(toIndentedString(reference)).append("\n");
sb.append(" servicer: ").append(toIndentedString(servicer)).append("\n");
sb.append(" creditorAccount: ").append(toIndentedString(creditorAccount)).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