uk.org.openbanking.datamodel.account.OBBeneficiary3Basic Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openbanking-sdk Show documentation
Show all versions of openbanking-sdk Show documentation
A Java SDK to help implementing the Open Banking standard : https://www.openbanking.org.uk/read-write-apis/
/**
*
* 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.ApiModelProperty;
import javax.validation.constraints.Size;
import java.util.Objects;
/**
* OBBeneficiary3Basic
*/
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-05-23T11:27:41.089+01:00")
public class OBBeneficiary3Basic {
@JsonProperty("AccountId")
private String accountId = null;
@JsonProperty("BeneficiaryId")
private String beneficiaryId = null;
@JsonProperty("Reference")
private String reference = null;
public OBBeneficiary3Basic accountId(String accountId) {
this.accountId = accountId;
return this;
}
/**
* Get accountId
*
* @return accountId
**/
@Size(min = 1, max = 40)
@ApiModelProperty(value = "")
public String getAccountId() {
return accountId;
}
public void setAccountId(String accountId) {
this.accountId = accountId;
}
public OBBeneficiary3Basic 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
**/
@Size(min = 1, max = 40)
@ApiModelProperty(value = "A unique and immutable identifier used to identify the beneficiary resource. This identifier has no meaning to the account owner.")
public String getBeneficiaryId() {
return beneficiaryId;
}
public void setBeneficiaryId(String beneficiaryId) {
this.beneficiaryId = beneficiaryId;
}
public OBBeneficiary3Basic 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
**/
@Size(min = 1, max = 35)
@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.")
public String getReference() {
return reference;
}
public void setReference(String reference) {
this.reference = reference;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
OBBeneficiary3Basic obBeneficiary3Basic = (OBBeneficiary3Basic) o;
return Objects.equals(this.accountId, obBeneficiary3Basic.accountId) &&
Objects.equals(this.beneficiaryId, obBeneficiary3Basic.beneficiaryId) &&
Objects.equals(this.reference, obBeneficiary3Basic.reference);
}
@Override
public int hashCode() {
return Objects.hash(accountId, beneficiaryId, reference);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class OBBeneficiary3Basic {\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("}");
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 ");
}
}