com.prowidesoftware.swift.model.mx.dic.SponsoredMerchant2 Maven / Gradle / Ivy
Show all versions of pw-iso20022 Show documentation
package com.prowidesoftware.swift.model.mx.dic;
import java.util.ArrayList;
import java.util.List;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlType;
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;
/**
* Merchant using the payment services of the card acceptor. The sponsored merchant is not acting as the card acceptor; the latter remaining the only party liable for the transaction vis-à-vis the acquirer.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "SponsoredMerchant2", propOrder = {
"id",
"cmonNm",
"lglCorpNm",
"adr",
"addtlAdrInf",
"geogcLctn",
"addtlData",
"lclData"
})
public class SponsoredMerchant2 {
@XmlElement(name = "Id", required = true)
protected PartyIdentification262 id;
@XmlElement(name = "CmonNm")
protected String cmonNm;
@XmlElement(name = "LglCorpNm")
protected String lglCorpNm;
@XmlElement(name = "Adr")
protected Address2 adr;
@XmlElement(name = "AddtlAdrInf")
protected String addtlAdrInf;
@XmlElement(name = "GeogcLctn")
protected String geogcLctn;
@XmlElement(name = "AddtlData")
protected List addtlData;
@XmlElement(name = "LclData")
protected LocalData5 lclData;
/**
* Gets the value of the id property.
*
* @return
* possible object is
* {@link PartyIdentification262 }
*
*/
public PartyIdentification262 getId() {
return id;
}
/**
* Sets the value of the id property.
*
* @param value
* allowed object is
* {@link PartyIdentification262 }
*
*/
public SponsoredMerchant2 setId(PartyIdentification262 value) {
this.id = value;
return this;
}
/**
* Gets the value of the cmonNm property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCmonNm() {
return cmonNm;
}
/**
* Sets the value of the cmonNm property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public SponsoredMerchant2 setCmonNm(String value) {
this.cmonNm = value;
return this;
}
/**
* Gets the value of the lglCorpNm property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getLglCorpNm() {
return lglCorpNm;
}
/**
* Sets the value of the lglCorpNm property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public SponsoredMerchant2 setLglCorpNm(String value) {
this.lglCorpNm = value;
return this;
}
/**
* Gets the value of the adr property.
*
* @return
* possible object is
* {@link Address2 }
*
*/
public Address2 getAdr() {
return adr;
}
/**
* Sets the value of the adr property.
*
* @param value
* allowed object is
* {@link Address2 }
*
*/
public SponsoredMerchant2 setAdr(Address2 value) {
this.adr = value;
return this;
}
/**
* Gets the value of the addtlAdrInf property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getAddtlAdrInf() {
return addtlAdrInf;
}
/**
* Sets the value of the addtlAdrInf property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public SponsoredMerchant2 setAddtlAdrInf(String value) {
this.addtlAdrInf = value;
return this;
}
/**
* Gets the value of the geogcLctn property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getGeogcLctn() {
return geogcLctn;
}
/**
* Sets the value of the geogcLctn property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public SponsoredMerchant2 setGeogcLctn(String value) {
this.geogcLctn = value;
return this;
}
/**
* Gets the value of the addtlData property.
*
*
* 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 addtlData property.
*
*
* For example, to add a new item, do as follows:
*
* getAddtlData().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link AdditionalData1 }
*
*
* @return
* The value of the addtlData property.
*/
public List getAddtlData() {
if (addtlData == null) {
addtlData = new ArrayList<>();
}
return this.addtlData;
}
/**
* Gets the value of the lclData property.
*
* @return
* possible object is
* {@link LocalData5 }
*
*/
public LocalData5 getLclData() {
return lclData;
}
/**
* Sets the value of the lclData property.
*
* @param value
* allowed object is
* {@link LocalData5 }
*
*/
public SponsoredMerchant2 setLclData(LocalData5 value) {
this.lclData = 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);
}
/**
* Adds a new item to the addtlData list.
* @see #getAddtlData()
*
*/
public SponsoredMerchant2 addAddtlData(AdditionalData1 addtlData) {
getAddtlData().add(addtlData);
return this;
}
}