uk.org.openbanking.datamodel.payment.OBWriteInternational2DataInitiation 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.
*/
/*
* Payment Initiation API
* Swagger for Payment Initiation 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.payment;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
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;
/**
* The Initiation payload is sent by the initiating party to the ASPSP. It is used to request movement of funds from the debtor account to a creditor for a single international payment.
*/
@ApiModel(description = "The Initiation payload is sent by the initiating party to the ASPSP. It is used to request movement of funds from the debtor account to a creditor for a single international payment.")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-06-13T16:03:12.161+01:00")
public class OBWriteInternational2DataInitiation {
@JsonProperty("InstructionIdentification")
private String instructionIdentification = null;
@JsonProperty("EndToEndIdentification")
private String endToEndIdentification = null;
@JsonProperty("LocalInstrument")
private String localInstrument = null;
@JsonProperty("InstructionPriority")
private InstructionPriorityEnum instructionPriority = null;
@JsonProperty("Purpose")
private String purpose = null;
@JsonProperty("ChargeBearer")
private OBChargeBearerType1Code chargeBearer = null;
@JsonProperty("CurrencyOfTransfer")
private String currencyOfTransfer = null;
@JsonProperty("InstructedAmount")
private OBWriteDomestic2DataInitiationInstructedAmount instructedAmount = null;
@JsonProperty("ExchangeRateInformation")
private OBWriteInternational2DataInitiationExchangeRateInformation exchangeRateInformation = null;
@JsonProperty("DebtorAccount")
private OBWriteDomestic2DataInitiationDebtorAccount debtorAccount = null;
@JsonProperty("Creditor")
private OBWriteInternational2DataInitiationCreditor creditor = null;
@JsonProperty("CreditorAgent")
private OBWriteInternational2DataInitiationCreditorAgent creditorAgent = null;
@JsonProperty("CreditorAccount")
private OBWriteDomestic2DataInitiationCreditorAccount creditorAccount = null;
@JsonProperty("RemittanceInformation")
private OBWriteDomestic2DataInitiationRemittanceInformation remittanceInformation = null;
@JsonProperty("SupplementaryData")
private OBSupplementaryData1 supplementaryData = null;
public OBWriteInternational2DataInitiation instructionIdentification(String instructionIdentification) {
this.instructionIdentification = instructionIdentification;
return this;
}
/**
* Unique identification as assigned by an instructing party for an instructed party to unambiguously identify the instruction. Usage: the instruction identification is a point to point reference that can be used between the instructing party and the instructed party to refer to the individual instruction. It can be included in several messages related to the instruction.
*
* @return instructionIdentification
**/
@NotNull
@Size(min = 1, max = 35)
@ApiModelProperty(required = true, value = "Unique identification as assigned by an instructing party for an instructed party to unambiguously identify the instruction. Usage: the instruction identification is a point to point reference that can be used between the instructing party and the instructed party to refer to the individual instruction. It can be included in several messages related to the instruction.")
public String getInstructionIdentification() {
return instructionIdentification;
}
public void setInstructionIdentification(String instructionIdentification) {
this.instructionIdentification = instructionIdentification;
}
public OBWriteInternational2DataInitiation endToEndIdentification(String endToEndIdentification) {
this.endToEndIdentification = endToEndIdentification;
return this;
}
/**
* Unique identification assigned by the initiating party to unambiguously identify the transaction. This identification is passed on, unchanged, throughout the entire end-to-end chain. Usage: The end-to-end identification can be used for reconciliation or to link tasks relating to the transaction. It can be included in several messages related to the transaction. OB: The Faster Payments Scheme can only access 31 characters for the EndToEndIdentification field.
*
* @return endToEndIdentification
**/
@NotNull
@Size(min = 1, max = 35)
@ApiModelProperty(required = true, value = "Unique identification assigned by the initiating party to unambiguously identify the transaction. This identification is passed on, unchanged, throughout the entire end-to-end chain. Usage: The end-to-end identification can be used for reconciliation or to link tasks relating to the transaction. It can be included in several messages related to the transaction. OB: The Faster Payments Scheme can only access 31 characters for the EndToEndIdentification field.")
public String getEndToEndIdentification() {
return endToEndIdentification;
}
public void setEndToEndIdentification(String endToEndIdentification) {
this.endToEndIdentification = endToEndIdentification;
}
public OBWriteInternational2DataInitiation localInstrument(String localInstrument) {
this.localInstrument = localInstrument;
return this;
}
/**
* Get localInstrument
*
* @return localInstrument
**/
@ApiModelProperty(value = "")
public String getLocalInstrument() {
return localInstrument;
}
public void setLocalInstrument(String localInstrument) {
this.localInstrument = localInstrument;
}
public OBWriteInternational2DataInitiation instructionPriority(InstructionPriorityEnum instructionPriority) {
this.instructionPriority = instructionPriority;
return this;
}
/**
* Indicator of the urgency or order of importance that the instructing party would like the instructed party to apply to the processing of the instruction.
*
* @return instructionPriority
**/
@ApiModelProperty(value = "Indicator of the urgency or order of importance that the instructing party would like the instructed party to apply to the processing of the instruction.")
public InstructionPriorityEnum getInstructionPriority() {
return instructionPriority;
}
public void setInstructionPriority(InstructionPriorityEnum instructionPriority) {
this.instructionPriority = instructionPriority;
}
public OBWriteInternational2DataInitiation purpose(String purpose) {
this.purpose = purpose;
return this;
}
/**
* Specifies the external purpose code in the format of character string with a maximum length of 4 characters. The list of valid codes is an external code list published separately. External code sets can be downloaded from www.iso20022.org.
*
* @return purpose
**/
@ApiModelProperty(value = "Specifies the external purpose code in the format of character string with a maximum length of 4 characters. The list of valid codes is an external code list published separately. External code sets can be downloaded from www.iso20022.org.")
public String getPurpose() {
return purpose;
}
public void setPurpose(String purpose) {
this.purpose = purpose;
}
public OBWriteInternational2DataInitiation chargeBearer(OBChargeBearerType1Code chargeBearer) {
this.chargeBearer = chargeBearer;
return this;
}
/**
* Get chargeBearer
*
* @return chargeBearer
**/
@Valid
@ApiModelProperty(value = "")
public OBChargeBearerType1Code getChargeBearer() {
return chargeBearer;
}
public void setChargeBearer(OBChargeBearerType1Code chargeBearer) {
this.chargeBearer = chargeBearer;
}
public OBWriteInternational2DataInitiation currencyOfTransfer(String currencyOfTransfer) {
this.currencyOfTransfer = currencyOfTransfer;
return this;
}
/**
* Specifies the currency of the to be transferred amount, which is different from the currency of the debtor's account.
*
* @return currencyOfTransfer
**/
@NotNull
@Pattern(regexp = "^[A-Z]{3,3}$")
@ApiModelProperty(required = true, value = "Specifies the currency of the to be transferred amount, which is different from the currency of the debtor's account.")
public String getCurrencyOfTransfer() {
return currencyOfTransfer;
}
public void setCurrencyOfTransfer(String currencyOfTransfer) {
this.currencyOfTransfer = currencyOfTransfer;
}
public OBWriteInternational2DataInitiation instructedAmount(OBWriteDomestic2DataInitiationInstructedAmount instructedAmount) {
this.instructedAmount = instructedAmount;
return this;
}
/**
* Get instructedAmount
*
* @return instructedAmount
**/
@NotNull
@Valid
@ApiModelProperty(required = true, value = "")
public OBWriteDomestic2DataInitiationInstructedAmount getInstructedAmount() {
return instructedAmount;
}
public void setInstructedAmount(OBWriteDomestic2DataInitiationInstructedAmount instructedAmount) {
this.instructedAmount = instructedAmount;
}
public OBWriteInternational2DataInitiation exchangeRateInformation(OBWriteInternational2DataInitiationExchangeRateInformation exchangeRateInformation) {
this.exchangeRateInformation = exchangeRateInformation;
return this;
}
/**
* Get exchangeRateInformation
*
* @return exchangeRateInformation
**/
@Valid
@ApiModelProperty(value = "")
public OBWriteInternational2DataInitiationExchangeRateInformation getExchangeRateInformation() {
return exchangeRateInformation;
}
public void setExchangeRateInformation(OBWriteInternational2DataInitiationExchangeRateInformation exchangeRateInformation) {
this.exchangeRateInformation = exchangeRateInformation;
}
public OBWriteInternational2DataInitiation debtorAccount(OBWriteDomestic2DataInitiationDebtorAccount debtorAccount) {
this.debtorAccount = debtorAccount;
return this;
}
/**
* Get debtorAccount
*
* @return debtorAccount
**/
@Valid
@ApiModelProperty(value = "")
public OBWriteDomestic2DataInitiationDebtorAccount getDebtorAccount() {
return debtorAccount;
}
public void setDebtorAccount(OBWriteDomestic2DataInitiationDebtorAccount debtorAccount) {
this.debtorAccount = debtorAccount;
}
public OBWriteInternational2DataInitiation creditor(OBWriteInternational2DataInitiationCreditor creditor) {
this.creditor = creditor;
return this;
}
/**
* Get creditor
*
* @return creditor
**/
@Valid
@ApiModelProperty(value = "")
public OBWriteInternational2DataInitiationCreditor getCreditor() {
return creditor;
}
public void setCreditor(OBWriteInternational2DataInitiationCreditor creditor) {
this.creditor = creditor;
}
public OBWriteInternational2DataInitiation creditorAgent(OBWriteInternational2DataInitiationCreditorAgent creditorAgent) {
this.creditorAgent = creditorAgent;
return this;
}
/**
* Get creditorAgent
*
* @return creditorAgent
**/
@Valid
@ApiModelProperty(value = "")
public OBWriteInternational2DataInitiationCreditorAgent getCreditorAgent() {
return creditorAgent;
}
public void setCreditorAgent(OBWriteInternational2DataInitiationCreditorAgent creditorAgent) {
this.creditorAgent = creditorAgent;
}
public OBWriteInternational2DataInitiation creditorAccount(OBWriteDomestic2DataInitiationCreditorAccount creditorAccount) {
this.creditorAccount = creditorAccount;
return this;
}
/**
* Get creditorAccount
*
* @return creditorAccount
**/
@NotNull
@Valid
@ApiModelProperty(required = true, value = "")
public OBWriteDomestic2DataInitiationCreditorAccount getCreditorAccount() {
return creditorAccount;
}
public void setCreditorAccount(OBWriteDomestic2DataInitiationCreditorAccount creditorAccount) {
this.creditorAccount = creditorAccount;
}
public OBWriteInternational2DataInitiation remittanceInformation(OBWriteDomestic2DataInitiationRemittanceInformation remittanceInformation) {
this.remittanceInformation = remittanceInformation;
return this;
}
/**
* Get remittanceInformation
*
* @return remittanceInformation
**/
@Valid
@ApiModelProperty(value = "")
public OBWriteDomestic2DataInitiationRemittanceInformation getRemittanceInformation() {
return remittanceInformation;
}
public void setRemittanceInformation(OBWriteDomestic2DataInitiationRemittanceInformation remittanceInformation) {
this.remittanceInformation = remittanceInformation;
}
public OBWriteInternational2DataInitiation 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;
}
OBWriteInternational2DataInitiation obWriteInternational2DataInitiation = (OBWriteInternational2DataInitiation) o;
return Objects.equals(this.instructionIdentification, obWriteInternational2DataInitiation.instructionIdentification) &&
Objects.equals(this.endToEndIdentification, obWriteInternational2DataInitiation.endToEndIdentification) &&
Objects.equals(this.localInstrument, obWriteInternational2DataInitiation.localInstrument) &&
Objects.equals(this.instructionPriority, obWriteInternational2DataInitiation.instructionPriority) &&
Objects.equals(this.purpose, obWriteInternational2DataInitiation.purpose) &&
Objects.equals(this.chargeBearer, obWriteInternational2DataInitiation.chargeBearer) &&
Objects.equals(this.currencyOfTransfer, obWriteInternational2DataInitiation.currencyOfTransfer) &&
Objects.equals(this.instructedAmount, obWriteInternational2DataInitiation.instructedAmount) &&
Objects.equals(this.exchangeRateInformation, obWriteInternational2DataInitiation.exchangeRateInformation) &&
Objects.equals(this.debtorAccount, obWriteInternational2DataInitiation.debtorAccount) &&
Objects.equals(this.creditor, obWriteInternational2DataInitiation.creditor) &&
Objects.equals(this.creditorAgent, obWriteInternational2DataInitiation.creditorAgent) &&
Objects.equals(this.creditorAccount, obWriteInternational2DataInitiation.creditorAccount) &&
Objects.equals(this.remittanceInformation, obWriteInternational2DataInitiation.remittanceInformation) &&
Objects.equals(this.supplementaryData, obWriteInternational2DataInitiation.supplementaryData);
}
@Override
public int hashCode() {
return Objects.hash(instructionIdentification, endToEndIdentification, localInstrument, instructionPriority, purpose, chargeBearer, currencyOfTransfer, instructedAmount, exchangeRateInformation, debtorAccount, creditor, creditorAgent, creditorAccount, remittanceInformation, supplementaryData);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class OBWriteInternational2DataInitiation {\n");
sb.append(" instructionIdentification: ").append(toIndentedString(instructionIdentification)).append("\n");
sb.append(" endToEndIdentification: ").append(toIndentedString(endToEndIdentification)).append("\n");
sb.append(" localInstrument: ").append(toIndentedString(localInstrument)).append("\n");
sb.append(" instructionPriority: ").append(toIndentedString(instructionPriority)).append("\n");
sb.append(" purpose: ").append(toIndentedString(purpose)).append("\n");
sb.append(" chargeBearer: ").append(toIndentedString(chargeBearer)).append("\n");
sb.append(" currencyOfTransfer: ").append(toIndentedString(currencyOfTransfer)).append("\n");
sb.append(" instructedAmount: ").append(toIndentedString(instructedAmount)).append("\n");
sb.append(" exchangeRateInformation: ").append(toIndentedString(exchangeRateInformation)).append("\n");
sb.append(" debtorAccount: ").append(toIndentedString(debtorAccount)).append("\n");
sb.append(" creditor: ").append(toIndentedString(creditor)).append("\n");
sb.append(" creditorAgent: ").append(toIndentedString(creditorAgent)).append("\n");
sb.append(" creditorAccount: ").append(toIndentedString(creditorAccount)).append("\n");
sb.append(" remittanceInformation: ").append(toIndentedString(remittanceInformation)).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 ");
}
/**
* Indicator of the urgency or order of importance that the instructing party would like the instructed party to apply to the processing of the instruction.
*/
public enum InstructionPriorityEnum {
NORMAL("Normal"),
URGENT("Urgent");
private String value;
InstructionPriorityEnum(String value) {
this.value = value;
}
@JsonCreator
public static InstructionPriorityEnum fromValue(String text) {
for (InstructionPriorityEnum b : InstructionPriorityEnum.values()) {
if (String.valueOf(b.value).equals(text)) {
return b;
}
}
return null;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
}
}