Commit 6d5972ab by gechengyang

1.提交camt05800108模型

2.提交pacs010、、pain002相关的Mx2ElementCreator类
parent 95a61e0a
...@@ -21,6 +21,8 @@ import com.brilliance.swift.mx2element.pacs003001.Mx2ElementPacs003001Creator; ...@@ -21,6 +21,8 @@ import com.brilliance.swift.mx2element.pacs003001.Mx2ElementPacs003001Creator;
import com.brilliance.swift.mx2element.pacs004001.Mx2ElementPacs004001Creator; import com.brilliance.swift.mx2element.pacs004001.Mx2ElementPacs004001Creator;
import com.brilliance.swift.mx2element.pacs008001.Mx2ElementPacs008001Creator; import com.brilliance.swift.mx2element.pacs008001.Mx2ElementPacs008001Creator;
import com.brilliance.swift.mx2element.pacs009001.Mx2ElementPacs009001Creator; import com.brilliance.swift.mx2element.pacs009001.Mx2ElementPacs009001Creator;
import com.brilliance.swift.mx2element.pacs010001.Mx2ElementPacs010001Creator;
import com.brilliance.swift.mx2element.pain002001.Mx2ElementPain002001Creator;
import com.brilliance.swift.mx2element.pain008001.Mx2ElementPain008001Creator; import com.brilliance.swift.mx2element.pain008001.Mx2ElementPain008001Creator;
import com.brilliance.swift.mx2element.xsys011001.Mx2ElementXsys011001Creator; import com.brilliance.swift.mx2element.xsys011001.Mx2ElementXsys011001Creator;
import com.brilliance.swift.mx2element.xsys01200101.Mx2ElementXsys012001Creator; import com.brilliance.swift.mx2element.xsys01200101.Mx2ElementXsys012001Creator;
...@@ -78,6 +80,8 @@ public class Mx2ElementCreatorManager { ...@@ -78,6 +80,8 @@ public class Mx2ElementCreatorManager {
return new Mx2ElementPacs008001Creator(); return new Mx2ElementPacs008001Creator();
} else if (messageType.matches("pacs009001[0-9]{2}")) { } else if (messageType.matches("pacs009001[0-9]{2}")) {
return new Mx2ElementPacs009001Creator(); return new Mx2ElementPacs009001Creator();
} else if (messageType.matches("pacs010001[0-9]{2}")) {
return new Mx2ElementPacs010001Creator();
} else if (messageType.matches("camt054001[0-9]{2}")) { } else if (messageType.matches("camt054001[0-9]{2}")) {
return new Mx2ElementCamt054001Creator(); return new Mx2ElementCamt054001Creator();
} else if (messageType.matches("camt053001[0-9]{2}")) { } else if (messageType.matches("camt053001[0-9]{2}")) {
...@@ -114,6 +118,8 @@ public class Mx2ElementCreatorManager { ...@@ -114,6 +118,8 @@ public class Mx2ElementCreatorManager {
return new Mx2ElementCamt111001Creator(); return new Mx2ElementCamt111001Creator();
}else if (messageType.matches("pain008001[0-9]{2}")) { }else if (messageType.matches("pain008001[0-9]{2}")) {
return new Mx2ElementPain008001Creator(); return new Mx2ElementPain008001Creator();
}else if (messageType.matches("pain002001[0-9]{2}")) {
return new Mx2ElementPain002001Creator();
} else if (messageType.matches("pacs003001[0-9]{2}")) { } else if (messageType.matches("pacs003001[0-9]{2}")) {
return new Mx2ElementPacs003001Creator(); return new Mx2ElementPacs003001Creator();
} else if (messageType.matches("xsys011001[0-9]{2}")) { } else if (messageType.matches("xsys011001[0-9]{2}")) {
......
package com.brilliance.swift.mx2element.pacs010001;
import com.brilliance.swift.exception.SwiftException;
import com.brilliance.swift.mx2element.AbstractMx2ElementCreator;
import com.brilliance.swift.util.XmlUtil;
import org.dom4j.Document;
import org.dom4j.DocumentException;
import org.dom4j.DocumentHelper;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
public class Mx2ElementPacs010001Creator extends AbstractMx2ElementCreator {
@Override
public Map<String, Object> buildElement() {
return super.buildElement();
}
}
package com.brilliance.swift.mx2element.pain002001;
import com.brilliance.swift.mx2element.AbstractMx2ElementCreator;
import java.util.Map;
public class Mx2ElementPain002001Creator extends AbstractMx2ElementCreator {
@Override
public Map<String, Object> buildElement() {
return super.buildElement();
}
}
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
<To> <To>
<FIId> <FIId>
<FinInstnId> <FinInstnId>
<BICFI>HSBCHKHHUSI</BICFI> <BICFI>PSBCCNBJXXX</BICFI>
</FinInstnId> </FinInstnId>
</FIId> </FIId>
</To> </To>
......
#APPLICATION HEADER
frBic=appHdr.fr.fiId.finInstnId.bicfi
toBic=appHdr.to.fiId.finInstnId.bicfi
\ No newline at end of file
#APPLICATION HEADER
frBic=appHdr.fr.fiId.finInstnId.bicfi
toBic=appHdr.to.fiId.finInstnId.bicfi
\ No newline at end of file
package com.prowidesoftware.swift.model.mx;
import com.prowidesoftware.swift.model.mx.dic.*;
import com.prowidesoftware.swift.model.mx.AbstractMX;
import com.prowidesoftware.swift.model.MxSwiftMessage;
import com.prowidesoftware.swift.model.mx.MxRead;
import com.prowidesoftware.swift.model.mx.MxReadConfiguration;
import javax.xml.bind.annotation.*;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* Class for camt.058.001.08 ISO 20022 message.
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Document", propOrder = {
"ntfctnToRcvCxlAdvc"
})
@XmlRootElement(name = "Document", namespace = "urn:iso:std:iso:20022:tech:xsd:camt.058.001.08")
public class MxCamt05800108
extends AbstractMX
{
@XmlElement(name = "NtfctnToRcvCxlAdvc", required = true)
protected NotificationToReceiveCancellationAdviceV08 ntfctnToRcvCxlAdvc;
public static final transient String BUSINESS_PROCESS = "camt";
public static final transient int FUNCTIONALITY = 58;
public static final transient int VARIANT = 1;
public static final transient int VERSION = 8;
@SuppressWarnings("rawtypes")
public static final transient Class[] _classes = new Class[] {AccountIdentification4Choice.class, AccountSchemeName1Choice.class, ActiveOrHistoricCurrencyAndAmount.class, AddressType2Code.class, AddressType3Choice.class, BranchAndFinancialInstitutionIdentification6 .class, BranchData3 .class, CashAccount40 .class, CashAccountType2Choice.class, ClearingSystemIdentification2Choice.class, ClearingSystemMemberIdentification2 .class, Contact4 .class, CreditDebitCode.class, CreditorReferenceInformation2 .class, CreditorReferenceType1Choice.class, CreditorReferenceType2 .class, DateAndPlaceOfBirth1 .class, DatePeriod2 .class, DiscountAmountAndType1 .class, DiscountAmountType1Choice.class, DocumentAdjustment1 .class, DocumentLineIdentification1 .class, DocumentLineInformation1 .class, DocumentLineType1 .class, DocumentLineType1Choice.class, DocumentType3Code.class, DocumentType6Code.class, FinancialIdentificationSchemeName1Choice.class, FinancialInstitutionIdentification18 .class, Garnishment3 .class, GarnishmentType1 .class, GarnishmentType1Choice.class, GenericAccountIdentification1 .class, GenericFinancialIdentification1 .class, GenericIdentification30 .class, GenericOrganisationIdentification1 .class, GenericPersonIdentification1 .class, GroupHeader77 .class, MxCamt05800108 .class, NameAndAddress16 .class, NamePrefix2Code.class, NotificationCancellationReason1 .class, NotificationCancellationReason1Choice.class, NotificationToReceiveCancellationAdviceV08 .class, OrganisationIdentification29 .class, OrganisationIdentificationSchemeName1Choice.class, OriginalItem7 .class, OriginalItemReference6 .class, OriginalNotification14 .class, OriginalNotificationReference12 .class, OtherContact1 .class, Party38Choice.class, Party40Choice.class, PartyIdentification135 .class, PersonIdentification13 .class, PersonIdentificationSchemeName1Choice.class, PostalAddress24 .class, PreferredContactMethod1Code.class, ProxyAccountIdentification1 .class, ProxyAccountType1Choice.class, Purpose2Choice.class, ReferredDocumentInformation7 .class, ReferredDocumentType3Choice.class, ReferredDocumentType4 .class, RemittanceAmount2 .class, RemittanceAmount3 .class, RemittanceInformation21 .class, RemittanceLocation7 .class, RemittanceLocationData1 .class, RemittanceLocationMethod2Code.class, StructuredRemittanceInformation17 .class, SupplementaryData1 .class, SupplementaryDataEnvelope1 .class, TaxAmount3 .class, TaxAmountAndType1 .class, TaxAmountType1Choice.class, TaxAuthorisation1 .class, TaxData1 .class, TaxParty1 .class, TaxParty2 .class, TaxPeriod3 .class, TaxRecord3 .class, TaxRecordDetails3 .class, TaxRecordPeriod1Code.class };
public static final transient String NAMESPACE = "urn:iso:std:iso:20022:tech:xsd:camt.058.001.08";
public MxCamt05800108() {
super();
}
/**
* Creates the MX object parsing the parameter String with the XML content
*
*/
public MxCamt05800108(final String xml) {
this();
MxCamt05800108 tmp = parse(xml);
ntfctnToRcvCxlAdvc = tmp.getNtfctnToRcvCxlAdvc();
}
/**
* Creates the MX object parsing the raw content from the parameter MxSwiftMessage
*
*/
public MxCamt05800108(final MxSwiftMessage mxSwiftMessage) {
this(mxSwiftMessage.message());
}
/**
* Gets the value of the ntfctnToRcvCxlAdvc property.
*
* @return
* possible object is
* {@link NotificationToReceiveCancellationAdviceV08 }
*
*/
public NotificationToReceiveCancellationAdviceV08 getNtfctnToRcvCxlAdvc() {
return ntfctnToRcvCxlAdvc;
}
/**
* Sets the value of the ntfctnToRcvCxlAdvc property.
*
* @param value
* allowed object is
* {@link NotificationToReceiveCancellationAdviceV08 }
*
*/
public MxCamt05800108 setNtfctnToRcvCxlAdvc(NotificationToReceiveCancellationAdviceV08 value) {
this.ntfctnToRcvCxlAdvc = value;
return this;
}
@Override
public String getBusinessProcess() {
return BUSINESS_PROCESS;
}
@Override
public int getFunctionality() {
return FUNCTIONALITY;
}
@Override
public int getVariant() {
return VARIANT;
}
@Override
public int getVersion() {
return VERSION;
}
/**
* Creates the MX object parsing the raw content from the parameter XML, using default unmarshalling options
*
*/
public static MxCamt05800108 parse(String xml) {
return ((MxCamt05800108) MxReadImpl.parse(MxCamt05800108 .class, xml, _classes, new MxReadParams()));
}
/**
* Creates the MX object parsing the raw content from the parameter XML, using the provided unmarshalling options
* @since 9.2.6
*
*/
public static MxCamt05800108 parse(String xml, MxReadConfiguration conf) {
return ((MxCamt05800108) MxReadImpl.parse(MxCamt05800108 .class, xml, _classes, new MxReadParams(conf)));
}
/**
* Creates the MX object parsing the raw content from the parameter XML with injected read implementation
* @since 9.0.1
*
* @param parserImpl an MX unmarshall implementation
*/
public static MxCamt05800108 parse(String xml, MxRead parserImpl) {
return ((MxCamt05800108) parserImpl.read(MxCamt05800108 .class, xml, _classes));
}
@Override
public String getNamespace() {
return NAMESPACE;
}
@Override
@SuppressWarnings("rawtypes")
public Class[] getClasses() {
return _classes;
}
/**
* Creates an MxCamt05800108 messages from its JSON representation.
* <p>
* For generic conversion of JSON into the corresponding MX instance
* see {@link AbstractMX#fromJson(String)}
*
* @since 7.10.2
*
* @param json a JSON representation of an MxCamt05800108 message
* @return
* a new instance of MxCamt05800108
*/
public static final MxCamt05800108 fromJson(String json) {
return AbstractMX.fromJson(json, MxCamt05800108 .class);
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
}
@Override
public boolean equals(Object that) {
return EqualsBuilder.reflectionEquals(this, that);
}
@Override
public int hashCode() {
return HashCodeBuilder.reflectionHashCode(this);
}
}
package com.prowidesoftware.swift.model.mx.dic;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.*;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* Provides further details on the reason of the cancellation request.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "NotificationCancellationReason1", propOrder = {
"orgtr",
"rsn",
"addtlInf"
})
public class NotificationCancellationReason1 {
@XmlElement(name = "Orgtr")
protected PartyIdentification135 orgtr;
@XmlElement(name = "Rsn")
protected NotificationCancellationReason1Choice rsn;
@XmlElement(name = "AddtlInf")
protected List<String> addtlInf;
/**
* Gets the value of the orgtr property.
*
* @return
* possible object is
* {@link PartyIdentification135 }
*
*/
public PartyIdentification135 getOrgtr() {
return orgtr;
}
/**
* Sets the value of the orgtr property.
*
* @param value
* allowed object is
* {@link PartyIdentification135 }
*
*/
public NotificationCancellationReason1 setOrgtr(PartyIdentification135 value) {
this.orgtr = value;
return this;
}
/**
* Gets the value of the rsn property.
*
* @return
* possible object is
* {@link NotificationCancellationReason1Choice }
*
*/
public NotificationCancellationReason1Choice getRsn() {
return rsn;
}
/**
* Sets the value of the rsn property.
*
* @param value
* allowed object is
* {@link NotificationCancellationReason1Choice }
*
*/
public NotificationCancellationReason1 setRsn(NotificationCancellationReason1Choice value) {
this.rsn = value;
return this;
}
/**
* Gets the value of the addtlInf property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the Jakarta XML Binding object.
* This is why there is not a {@code set} method for the addtlInf property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getAddtlInf().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link String }
*
*
* @return
* The value of the addtlInf property.
*/
public List<String> getAddtlInf() {
if (addtlInf == null) {
addtlInf = new ArrayList<>();
}
return this.addtlInf;
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
}
@Override
public boolean equals(Object that) {
return EqualsBuilder.reflectionEquals(this, that);
}
@Override
public int hashCode() {
return HashCodeBuilder.reflectionHashCode(this);
}
/**
* Adds a new item to the addtlInf list.
* @see #getAddtlInf()
*
*/
public NotificationCancellationReason1 addAddtlInf(String addtlInf) {
getAddtlInf().add(addtlInf);
return this;
}
}
package com.prowidesoftware.swift.model.mx.dic;
import javax.xml.bind.annotation.*;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* Specifies the reason for the cancellation request of a notification.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "NotificationCancellationReason1Choice", propOrder = {
"cd",
"prtry"
})
public class NotificationCancellationReason1Choice {
@XmlElement(name = "Cd")
protected String cd;
@XmlElement(name = "Prtry")
protected String prtry;
/**
* Gets the value of the cd property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCd() {
return cd;
}
/**
* Sets the value of the cd property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public NotificationCancellationReason1Choice setCd(String value) {
this.cd = value;
return this;
}
/**
* Gets the value of the prtry property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPrtry() {
return prtry;
}
/**
* Sets the value of the prtry property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public NotificationCancellationReason1Choice setPrtry(String value) {
this.prtry = value;
return this;
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
}
@Override
public boolean equals(Object that) {
return EqualsBuilder.reflectionEquals(this, that);
}
@Override
public int hashCode() {
return HashCodeBuilder.reflectionHashCode(this);
}
}
package com.prowidesoftware.swift.model.mx.dic;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.*;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* Scope
* The NotificationToReceiveCancellationAdvice message is sent by an account owner or by a party acting on the account owner's behalf to one of the account owner's account servicing institutions. It is used to advise the account servicing institution about the cancellation of one or more notifications in a previous NotificationToReceive message.
* Usage
* The NotificationToReceiveCancellationAdvice message is used to advise the account servicing institution that the funds are no longer expected. The message can be used in either a direct or a relay scenario.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "NotificationToReceiveCancellationAdviceV08", propOrder = {
"grpHdr",
"orgnlNtfctn",
"cxlRsn",
"splmtryData"
})
public class NotificationToReceiveCancellationAdviceV08 {
@XmlElement(name = "GrpHdr", required = true)
protected GroupHeader77 grpHdr;
@XmlElement(name = "OrgnlNtfctn", required = true)
protected OriginalNotification14 orgnlNtfctn;
@XmlElement(name = "CxlRsn")
protected NotificationCancellationReason1 cxlRsn;
@XmlElement(name = "SplmtryData")
protected List<SupplementaryData1> splmtryData;
/**
* Gets the value of the grpHdr property.
*
* @return
* possible object is
* {@link GroupHeader77 }
*
*/
public GroupHeader77 getGrpHdr() {
return grpHdr;
}
/**
* Sets the value of the grpHdr property.
*
* @param value
* allowed object is
* {@link GroupHeader77 }
*
*/
public NotificationToReceiveCancellationAdviceV08 setGrpHdr(GroupHeader77 value) {
this.grpHdr = value;
return this;
}
/**
* Gets the value of the orgnlNtfctn property.
*
* @return
* possible object is
* {@link OriginalNotification14 }
*
*/
public OriginalNotification14 getOrgnlNtfctn() {
return orgnlNtfctn;
}
/**
* Sets the value of the orgnlNtfctn property.
*
* @param value
* allowed object is
* {@link OriginalNotification14 }
*
*/
public NotificationToReceiveCancellationAdviceV08 setOrgnlNtfctn(OriginalNotification14 value) {
this.orgnlNtfctn = value;
return this;
}
/**
* Gets the value of the cxlRsn property.
*
* @return
* possible object is
* {@link NotificationCancellationReason1 }
*
*/
public NotificationCancellationReason1 getCxlRsn() {
return cxlRsn;
}
/**
* Sets the value of the cxlRsn property.
*
* @param value
* allowed object is
* {@link NotificationCancellationReason1 }
*
*/
public NotificationToReceiveCancellationAdviceV08 setCxlRsn(NotificationCancellationReason1 value) {
this.cxlRsn = value;
return this;
}
/**
* Gets the value of the splmtryData property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the Jakarta XML Binding object.
* This is why there is not a {@code set} method for the splmtryData property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getSplmtryData().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link SupplementaryData1 }
*
*
* @return
* The value of the splmtryData property.
*/
public List<SupplementaryData1> getSplmtryData() {
if (splmtryData == null) {
splmtryData = new ArrayList<>();
}
return this.splmtryData;
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
}
@Override
public boolean equals(Object that) {
return EqualsBuilder.reflectionEquals(this, that);
}
@Override
public int hashCode() {
return HashCodeBuilder.reflectionHashCode(this);
}
/**
* Adds a new item to the splmtryData list.
* @see #getSplmtryData()
*
*/
public NotificationToReceiveCancellationAdviceV08 addSplmtryData(SupplementaryData1 splmtryData) {
getSplmtryData().add(splmtryData);
return this;
}
}
package com.prowidesoftware.swift.model.mx.dic;
import java.time.LocalDate;
import javax.xml.bind.annotation.*;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import com.prowidesoftware.swift.model.mx.adapter.IsoDateAdapter;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* Identifies the original notification item, to which the cancellation advice refers.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "OriginalItem7", propOrder = {
"orgnlItmId",
"orgnlEndToEndId",
"uetr",
"amt",
"xpctdValDt",
"orgnlItmRef"
})
public class OriginalItem7 {
@XmlElement(name = "OrgnlItmId", required = true)
protected String orgnlItmId;
@XmlElement(name = "OrgnlEndToEndId")
protected String orgnlEndToEndId;
@XmlElement(name = "UETR")
protected String uetr;
@XmlElement(name = "Amt", required = true)
protected ActiveOrHistoricCurrencyAndAmount amt;
@XmlElement(name = "XpctdValDt", type = String.class)
@XmlJavaTypeAdapter(IsoDateAdapter.class)
@XmlSchemaType(name = "date")
protected LocalDate xpctdValDt;
@XmlElement(name = "OrgnlItmRef")
protected OriginalItemReference6 orgnlItmRef;
/**
* Gets the value of the orgnlItmId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getOrgnlItmId() {
return orgnlItmId;
}
/**
* Sets the value of the orgnlItmId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public OriginalItem7 setOrgnlItmId(String value) {
this.orgnlItmId = value;
return this;
}
/**
* Gets the value of the orgnlEndToEndId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getOrgnlEndToEndId() {
return orgnlEndToEndId;
}
/**
* Sets the value of the orgnlEndToEndId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public OriginalItem7 setOrgnlEndToEndId(String value) {
this.orgnlEndToEndId = value;
return this;
}
/**
* Gets the value of the uetr property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getUETR() {
return uetr;
}
/**
* Sets the value of the uetr property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public OriginalItem7 setUETR(String value) {
this.uetr = value;
return this;
}
/**
* Gets the value of the amt property.
*
* @return
* possible object is
* {@link ActiveOrHistoricCurrencyAndAmount }
*
*/
public ActiveOrHistoricCurrencyAndAmount getAmt() {
return amt;
}
/**
* Sets the value of the amt property.
*
* @param value
* allowed object is
* {@link ActiveOrHistoricCurrencyAndAmount }
*
*/
public OriginalItem7 setAmt(ActiveOrHistoricCurrencyAndAmount value) {
this.amt = value;
return this;
}
/**
* Gets the value of the xpctdValDt property.
*
* @return
* possible object is
* {@link String }
*
*/
public LocalDate getXpctdValDt() {
return xpctdValDt;
}
/**
* Sets the value of the xpctdValDt property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public OriginalItem7 setXpctdValDt(LocalDate value) {
this.xpctdValDt = value;
return this;
}
/**
* Gets the value of the orgnlItmRef property.
*
* @return
* possible object is
* {@link OriginalItemReference6 }
*
*/
public OriginalItemReference6 getOrgnlItmRef() {
return orgnlItmRef;
}
/**
* Sets the value of the orgnlItmRef property.
*
* @param value
* allowed object is
* {@link OriginalItemReference6 }
*
*/
public OriginalItem7 setOrgnlItmRef(OriginalItemReference6 value) {
this.orgnlItmRef = value;
return this;
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
}
@Override
public boolean equals(Object that) {
return EqualsBuilder.reflectionEquals(this, that);
}
@Override
public int hashCode() {
return HashCodeBuilder.reflectionHashCode(this);
}
}
package com.prowidesoftware.swift.model.mx.dic;
import javax.xml.bind.annotation.*;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* Provides further means of referencing a payment transaction.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "OriginalItemReference6", propOrder = {
"acct",
"acctOwnr",
"acctSvcr",
"rltdAcct",
"dbtr",
"dbtrAgt",
"intrmyAgt",
"purp",
"rltdRmtInf",
"rmtInf"
})
public class OriginalItemReference6 {
@XmlElement(name = "Acct")
protected CashAccount40 acct;
@XmlElement(name = "AcctOwnr")
protected Party40Choice acctOwnr;
@XmlElement(name = "AcctSvcr")
protected BranchAndFinancialInstitutionIdentification6 acctSvcr;
@XmlElement(name = "RltdAcct")
protected CashAccount40 rltdAcct;
@XmlElement(name = "Dbtr")
protected Party40Choice dbtr;
@XmlElement(name = "DbtrAgt")
protected BranchAndFinancialInstitutionIdentification6 dbtrAgt;
@XmlElement(name = "IntrmyAgt")
protected BranchAndFinancialInstitutionIdentification6 intrmyAgt;
@XmlElement(name = "Purp")
protected Purpose2Choice purp;
@XmlElement(name = "RltdRmtInf")
protected RemittanceLocation7 rltdRmtInf;
@XmlElement(name = "RmtInf")
protected RemittanceInformation21 rmtInf;
/**
* Gets the value of the acct property.
*
* @return
* possible object is
* {@link CashAccount40 }
*
*/
public CashAccount40 getAcct() {
return acct;
}
/**
* Sets the value of the acct property.
*
* @param value
* allowed object is
* {@link CashAccount40 }
*
*/
public OriginalItemReference6 setAcct(CashAccount40 value) {
this.acct = value;
return this;
}
/**
* Gets the value of the acctOwnr property.
*
* @return
* possible object is
* {@link Party40Choice }
*
*/
public Party40Choice getAcctOwnr() {
return acctOwnr;
}
/**
* Sets the value of the acctOwnr property.
*
* @param value
* allowed object is
* {@link Party40Choice }
*
*/
public OriginalItemReference6 setAcctOwnr(Party40Choice value) {
this.acctOwnr = value;
return this;
}
/**
* Gets the value of the acctSvcr property.
*
* @return
* possible object is
* {@link BranchAndFinancialInstitutionIdentification6 }
*
*/
public BranchAndFinancialInstitutionIdentification6 getAcctSvcr() {
return acctSvcr;
}
/**
* Sets the value of the acctSvcr property.
*
* @param value
* allowed object is
* {@link BranchAndFinancialInstitutionIdentification6 }
*
*/
public OriginalItemReference6 setAcctSvcr(BranchAndFinancialInstitutionIdentification6 value) {
this.acctSvcr = value;
return this;
}
/**
* Gets the value of the rltdAcct property.
*
* @return
* possible object is
* {@link CashAccount40 }
*
*/
public CashAccount40 getRltdAcct() {
return rltdAcct;
}
/**
* Sets the value of the rltdAcct property.
*
* @param value
* allowed object is
* {@link CashAccount40 }
*
*/
public OriginalItemReference6 setRltdAcct(CashAccount40 value) {
this.rltdAcct = value;
return this;
}
/**
* Gets the value of the dbtr property.
*
* @return
* possible object is
* {@link Party40Choice }
*
*/
public Party40Choice getDbtr() {
return dbtr;
}
/**
* Sets the value of the dbtr property.
*
* @param value
* allowed object is
* {@link Party40Choice }
*
*/
public OriginalItemReference6 setDbtr(Party40Choice value) {
this.dbtr = value;
return this;
}
/**
* Gets the value of the dbtrAgt property.
*
* @return
* possible object is
* {@link BranchAndFinancialInstitutionIdentification6 }
*
*/
public BranchAndFinancialInstitutionIdentification6 getDbtrAgt() {
return dbtrAgt;
}
/**
* Sets the value of the dbtrAgt property.
*
* @param value
* allowed object is
* {@link BranchAndFinancialInstitutionIdentification6 }
*
*/
public OriginalItemReference6 setDbtrAgt(BranchAndFinancialInstitutionIdentification6 value) {
this.dbtrAgt = value;
return this;
}
/**
* Gets the value of the intrmyAgt property.
*
* @return
* possible object is
* {@link BranchAndFinancialInstitutionIdentification6 }
*
*/
public BranchAndFinancialInstitutionIdentification6 getIntrmyAgt() {
return intrmyAgt;
}
/**
* Sets the value of the intrmyAgt property.
*
* @param value
* allowed object is
* {@link BranchAndFinancialInstitutionIdentification6 }
*
*/
public OriginalItemReference6 setIntrmyAgt(BranchAndFinancialInstitutionIdentification6 value) {
this.intrmyAgt = value;
return this;
}
/**
* Gets the value of the purp property.
*
* @return
* possible object is
* {@link Purpose2Choice }
*
*/
public Purpose2Choice getPurp() {
return purp;
}
/**
* Sets the value of the purp property.
*
* @param value
* allowed object is
* {@link Purpose2Choice }
*
*/
public OriginalItemReference6 setPurp(Purpose2Choice value) {
this.purp = value;
return this;
}
/**
* Gets the value of the rltdRmtInf property.
*
* @return
* possible object is
* {@link RemittanceLocation7 }
*
*/
public RemittanceLocation7 getRltdRmtInf() {
return rltdRmtInf;
}
/**
* Sets the value of the rltdRmtInf property.
*
* @param value
* allowed object is
* {@link RemittanceLocation7 }
*
*/
public OriginalItemReference6 setRltdRmtInf(RemittanceLocation7 value) {
this.rltdRmtInf = value;
return this;
}
/**
* Gets the value of the rmtInf property.
*
* @return
* possible object is
* {@link RemittanceInformation21 }
*
*/
public RemittanceInformation21 getRmtInf() {
return rmtInf;
}
/**
* Sets the value of the rmtInf property.
*
* @param value
* allowed object is
* {@link RemittanceInformation21 }
*
*/
public OriginalItemReference6 setRmtInf(RemittanceInformation21 value) {
this.rmtInf = value;
return this;
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
}
@Override
public boolean equals(Object that) {
return EqualsBuilder.reflectionEquals(this, that);
}
@Override
public int hashCode() {
return HashCodeBuilder.reflectionHashCode(this);
}
}
package com.prowidesoftware.swift.model.mx.dic;
import java.time.OffsetDateTime;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.*;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import com.prowidesoftware.swift.model.mx.adapter.IsoDateTimeAdapter;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* Identifies the original notification, to which the cancellation advice refers.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "OriginalNotification14", propOrder = {
"orgnlMsgId",
"orgnlCreDtTm",
"orgnlNtfctnId",
"ntfctnCxl",
"orgnlNtfctnRef"
})
public class OriginalNotification14 {
@XmlElement(name = "OrgnlMsgId", required = true)
protected String orgnlMsgId;
@XmlElement(name = "OrgnlCreDtTm", type = String.class)
@XmlJavaTypeAdapter(IsoDateTimeAdapter.class)
@XmlSchemaType(name = "dateTime")
protected OffsetDateTime orgnlCreDtTm;
@XmlElement(name = "OrgnlNtfctnId", required = true)
protected String orgnlNtfctnId;
@XmlElement(name = "NtfctnCxl")
protected Boolean ntfctnCxl;
@XmlElement(name = "OrgnlNtfctnRef")
protected List<OriginalNotificationReference12> orgnlNtfctnRef;
/**
* Gets the value of the orgnlMsgId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getOrgnlMsgId() {
return orgnlMsgId;
}
/**
* Sets the value of the orgnlMsgId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public OriginalNotification14 setOrgnlMsgId(String value) {
this.orgnlMsgId = value;
return this;
}
/**
* Gets the value of the orgnlCreDtTm property.
*
* @return
* possible object is
* {@link String }
*
*/
public OffsetDateTime getOrgnlCreDtTm() {
return orgnlCreDtTm;
}
/**
* Sets the value of the orgnlCreDtTm property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public OriginalNotification14 setOrgnlCreDtTm(OffsetDateTime value) {
this.orgnlCreDtTm = value;
return this;
}
/**
* Gets the value of the orgnlNtfctnId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getOrgnlNtfctnId() {
return orgnlNtfctnId;
}
/**
* Sets the value of the orgnlNtfctnId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public OriginalNotification14 setOrgnlNtfctnId(String value) {
this.orgnlNtfctnId = value;
return this;
}
/**
* Gets the value of the ntfctnCxl property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isNtfctnCxl() {
return ntfctnCxl;
}
/**
* Sets the value of the ntfctnCxl property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public OriginalNotification14 setNtfctnCxl(Boolean value) {
this.ntfctnCxl = value;
return this;
}
/**
* Gets the value of the orgnlNtfctnRef property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the Jakarta XML Binding object.
* This is why there is not a {@code set} method for the orgnlNtfctnRef property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getOrgnlNtfctnRef().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link OriginalNotificationReference12 }
*
*
* @return
* The value of the orgnlNtfctnRef property.
*/
public List<OriginalNotificationReference12> getOrgnlNtfctnRef() {
if (orgnlNtfctnRef == null) {
orgnlNtfctnRef = new ArrayList<>();
}
return this.orgnlNtfctnRef;
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
}
@Override
public boolean equals(Object that) {
return EqualsBuilder.reflectionEquals(this, that);
}
@Override
public int hashCode() {
return HashCodeBuilder.reflectionHashCode(this);
}
/**
* Adds a new item to the orgnlNtfctnRef list.
* @see #getOrgnlNtfctnRef()
*
*/
public OriginalNotification14 addOrgnlNtfctnRef(OriginalNotificationReference12 orgnlNtfctnRef) {
getOrgnlNtfctnRef().add(orgnlNtfctnRef);
return this;
}
}
package com.prowidesoftware.swift.model.mx.dic;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.*;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import com.prowidesoftware.swift.model.mx.adapter.IsoDateAdapter;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* Provides details on the account notification.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "OriginalNotificationReference12", propOrder = {
"acct",
"acctOwnr",
"acctSvcr",
"rltdAcct",
"ttlAmt",
"xpctdValDt",
"dbtr",
"dbtrAgt",
"intrmyAgt",
"orgnlItm"
})
public class OriginalNotificationReference12 {
@XmlElement(name = "Acct")
protected CashAccount40 acct;
@XmlElement(name = "AcctOwnr")
protected Party40Choice acctOwnr;
@XmlElement(name = "AcctSvcr")
protected BranchAndFinancialInstitutionIdentification6 acctSvcr;
@XmlElement(name = "RltdAcct")
protected CashAccount40 rltdAcct;
@XmlElement(name = "TtlAmt")
protected ActiveOrHistoricCurrencyAndAmount ttlAmt;
@XmlElement(name = "XpctdValDt", type = String.class)
@XmlJavaTypeAdapter(IsoDateAdapter.class)
@XmlSchemaType(name = "date")
protected LocalDate xpctdValDt;
@XmlElement(name = "Dbtr")
protected Party40Choice dbtr;
@XmlElement(name = "DbtrAgt")
protected BranchAndFinancialInstitutionIdentification6 dbtrAgt;
@XmlElement(name = "IntrmyAgt")
protected BranchAndFinancialInstitutionIdentification6 intrmyAgt;
@XmlElement(name = "OrgnlItm", required = true)
protected List<OriginalItem7> orgnlItm;
/**
* Gets the value of the acct property.
*
* @return
* possible object is
* {@link CashAccount40 }
*
*/
public CashAccount40 getAcct() {
return acct;
}
/**
* Sets the value of the acct property.
*
* @param value
* allowed object is
* {@link CashAccount40 }
*
*/
public OriginalNotificationReference12 setAcct(CashAccount40 value) {
this.acct = value;
return this;
}
/**
* Gets the value of the acctOwnr property.
*
* @return
* possible object is
* {@link Party40Choice }
*
*/
public Party40Choice getAcctOwnr() {
return acctOwnr;
}
/**
* Sets the value of the acctOwnr property.
*
* @param value
* allowed object is
* {@link Party40Choice }
*
*/
public OriginalNotificationReference12 setAcctOwnr(Party40Choice value) {
this.acctOwnr = value;
return this;
}
/**
* Gets the value of the acctSvcr property.
*
* @return
* possible object is
* {@link BranchAndFinancialInstitutionIdentification6 }
*
*/
public BranchAndFinancialInstitutionIdentification6 getAcctSvcr() {
return acctSvcr;
}
/**
* Sets the value of the acctSvcr property.
*
* @param value
* allowed object is
* {@link BranchAndFinancialInstitutionIdentification6 }
*
*/
public OriginalNotificationReference12 setAcctSvcr(BranchAndFinancialInstitutionIdentification6 value) {
this.acctSvcr = value;
return this;
}
/**
* Gets the value of the rltdAcct property.
*
* @return
* possible object is
* {@link CashAccount40 }
*
*/
public CashAccount40 getRltdAcct() {
return rltdAcct;
}
/**
* Sets the value of the rltdAcct property.
*
* @param value
* allowed object is
* {@link CashAccount40 }
*
*/
public OriginalNotificationReference12 setRltdAcct(CashAccount40 value) {
this.rltdAcct = value;
return this;
}
/**
* Gets the value of the ttlAmt property.
*
* @return
* possible object is
* {@link ActiveOrHistoricCurrencyAndAmount }
*
*/
public ActiveOrHistoricCurrencyAndAmount getTtlAmt() {
return ttlAmt;
}
/**
* Sets the value of the ttlAmt property.
*
* @param value
* allowed object is
* {@link ActiveOrHistoricCurrencyAndAmount }
*
*/
public OriginalNotificationReference12 setTtlAmt(ActiveOrHistoricCurrencyAndAmount value) {
this.ttlAmt = value;
return this;
}
/**
* Gets the value of the xpctdValDt property.
*
* @return
* possible object is
* {@link String }
*
*/
public LocalDate getXpctdValDt() {
return xpctdValDt;
}
/**
* Sets the value of the xpctdValDt property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public OriginalNotificationReference12 setXpctdValDt(LocalDate value) {
this.xpctdValDt = value;
return this;
}
/**
* Gets the value of the dbtr property.
*
* @return
* possible object is
* {@link Party40Choice }
*
*/
public Party40Choice getDbtr() {
return dbtr;
}
/**
* Sets the value of the dbtr property.
*
* @param value
* allowed object is
* {@link Party40Choice }
*
*/
public OriginalNotificationReference12 setDbtr(Party40Choice value) {
this.dbtr = value;
return this;
}
/**
* Gets the value of the dbtrAgt property.
*
* @return
* possible object is
* {@link BranchAndFinancialInstitutionIdentification6 }
*
*/
public BranchAndFinancialInstitutionIdentification6 getDbtrAgt() {
return dbtrAgt;
}
/**
* Sets the value of the dbtrAgt property.
*
* @param value
* allowed object is
* {@link BranchAndFinancialInstitutionIdentification6 }
*
*/
public OriginalNotificationReference12 setDbtrAgt(BranchAndFinancialInstitutionIdentification6 value) {
this.dbtrAgt = value;
return this;
}
/**
* Gets the value of the intrmyAgt property.
*
* @return
* possible object is
* {@link BranchAndFinancialInstitutionIdentification6 }
*
*/
public BranchAndFinancialInstitutionIdentification6 getIntrmyAgt() {
return intrmyAgt;
}
/**
* Sets the value of the intrmyAgt property.
*
* @param value
* allowed object is
* {@link BranchAndFinancialInstitutionIdentification6 }
*
*/
public OriginalNotificationReference12 setIntrmyAgt(BranchAndFinancialInstitutionIdentification6 value) {
this.intrmyAgt = value;
return this;
}
/**
* Gets the value of the orgnlItm property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the Jakarta XML Binding object.
* This is why there is not a {@code set} method for the orgnlItm property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getOrgnlItm().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link OriginalItem7 }
*
*
* @return
* The value of the orgnlItm property.
*/
public List<OriginalItem7> getOrgnlItm() {
if (orgnlItm == null) {
orgnlItm = new ArrayList<>();
}
return this.orgnlItm;
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
}
@Override
public boolean equals(Object that) {
return EqualsBuilder.reflectionEquals(this, that);
}
@Override
public int hashCode() {
return HashCodeBuilder.reflectionHashCode(this);
}
/**
* Adds a new item to the orgnlItm list.
* @see #getOrgnlItm()
*
*/
public OriginalNotificationReference12 addOrgnlItm(OriginalItem7 orgnlItm) {
getOrgnlItm().add(orgnlItm);
return this;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment