com.tools20022.repository.msg.EquivalentAmount2 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tools20022-api-payments Show documentation
Show all versions of tools20022-api-payments Show documentation
Java API for ISO 20022 - Payments business domain
/* Tools20022 - API for ISO 20022
* Copyright (C) 2017 Tools20022.com - László Bukodi
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
package com.tools20022.repository.msg;
import com.tools20022.metamodel.MMMessageAttribute;
import com.tools20022.metamodel.MMMessageComponent;
import com.tools20022.metamodel.MMRegistrationStatus;
import com.tools20022.repository.codeset.ActiveOrHistoricCurrencyCode;
import com.tools20022.repository.datatype.ActiveOrHistoricCurrencyAndAmount;
import com.tools20022.repository.entity.Payment;
import com.tools20022.repository.GeneratedRepository;
import java.util.Arrays;
import java.util.concurrent.atomic.AtomicReference;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* Amount of money to be moved between the debtor and creditor, expressed in the
* currency of the debtor's account, and the currency in which the amount is to
* be moved.
*
* Constant fields:
*
* -
* {@linkplain com.tools20022.metamodel.MMMessageElementContainer#getMessageElement
* messageElement} =
*
* - {@linkplain com.tools20022.repository.msg.EquivalentAmount2#mmAmount
* EquivalentAmount2.mmAmount}
* -
* {@linkplain com.tools20022.repository.msg.EquivalentAmount2#mmCurrencyOfTransfer
* EquivalentAmount2.mmCurrencyOfTransfer}
*
*
* - {@linkplain com.tools20022.metamodel.MMMessageComponentType#getTrace
* trace} = {@linkplain com.tools20022.repository.entity.Payment Payment}
* -
* {@linkplain com.tools20022.metamodel.MMTopLevelDictionaryEntry#getDataDictionary
* dataDictionary} =
* {@linkplain com.tools20022.repository.GeneratedRepository#mmdataDict
* GeneratedRepository.mmdataDict}
* -
* {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getRegistrationStatus
* registrationStatus} =
* com.tools20022.metamodel.MMRegistrationStatus.REGISTERED
* - {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getName name} =
* "EquivalentAmount2"
* - {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getDefinition
* definition} =
* "Amount of money to be moved between the debtor and creditor, expressed in the currency of the debtor's account, and the currency in which the amount is to be moved."
*
*
*/
@XmlAccessorType(XmlAccessType.PROPERTY)
@XmlType(name = "EquivalentAmount2", propOrder = {"amount", "currencyOfTransfer"})
public class EquivalentAmount2 {
final static private AtomicReference mmObject_lazy = new AtomicReference<>();
protected ActiveOrHistoricCurrencyAndAmount amount;
/**
* Amount of money to be moved between debtor and creditor, before deduction
* of charges, expressed in the currency of the debtor's account, and to be
* moved in a different currency. Usage: The first agent will convert the
* equivalent amount into the amount to be moved.
*
* Constant fields:
*
* -
* {@linkplain com.tools20022.metamodel.MMMessageAttribute#getSimpleType
* simpleType} =
* {@linkplain com.tools20022.repository.datatype.ActiveOrHistoricCurrencyAndAmount
* ActiveOrHistoricCurrencyAndAmount}
* -
* {@linkplain com.tools20022.metamodel.MMMessageElement#getBusinessElementTrace
* businessElementTrace} =
* {@linkplain com.tools20022.repository.entity.Payment#mmEquivalentAmount
* Payment.mmEquivalentAmount}
* -
* {@linkplain com.tools20022.metamodel.MMMessageElement#getComponentContext
* componentContext} =
* {@linkplain com.tools20022.repository.msg.EquivalentAmount2
* EquivalentAmount2}
* - {@linkplain com.tools20022.metamodel.MMMessageConstruct#getXmlTag
* xmlTag} = "Amt"
* -
* {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getRegistrationStatus
* registrationStatus} =
* com.tools20022.metamodel.MMRegistrationStatus.PROVISIONALLY_REGISTERED
* - {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getName
* name} = "Amount"
* -
* {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getDefinition
* definition} =
* "Amount of money to be moved between debtor and creditor, before deduction of charges, expressed in the currency of the debtor's account, and to be moved in a different currency.\nUsage: The first agent will convert the equivalent amount into the amount to be moved."
*
*
*/
public static final MMMessageAttribute mmAmount = new MMMessageAttribute() {
{
businessElementTrace_lazy = () -> Payment.mmEquivalentAmount;
componentContext_lazy = () -> EquivalentAmount2.mmObject();
isDerived = false;
xmlTag = "Amt";
registrationStatus = MMRegistrationStatus.PROVISIONALLY_REGISTERED;
name = "Amount";
definition = "Amount of money to be moved between debtor and creditor, before deduction of charges, expressed in the currency of the debtor's account, and to be moved in a different currency.\nUsage: The first agent will convert the equivalent amount into the amount to be moved.";
maxOccurs = 1;
minOccurs = 1;
simpleType_lazy = () -> ActiveOrHistoricCurrencyAndAmount.mmObject();
}
};
protected ActiveOrHistoricCurrencyCode currencyOfTransfer;
/**
* Specifies the currency of the to be transferred amount, which is
* different from the currency of the debtor's account.
*
* Constant fields:
*
* -
* {@linkplain com.tools20022.metamodel.MMMessageAttribute#getSimpleType
* simpleType} =
* {@linkplain com.tools20022.repository.codeset.ActiveOrHistoricCurrencyCode
* ActiveOrHistoricCurrencyCode}
* -
* {@linkplain com.tools20022.metamodel.MMMessageElement#getBusinessElementTrace
* businessElementTrace} =
* {@linkplain com.tools20022.repository.entity.Payment#mmCurrencyOfTransfer
* Payment.mmCurrencyOfTransfer}
* -
* {@linkplain com.tools20022.metamodel.MMMessageElement#getComponentContext
* componentContext} =
* {@linkplain com.tools20022.repository.msg.EquivalentAmount2
* EquivalentAmount2}
* - {@linkplain com.tools20022.metamodel.MMMessageConstruct#getXmlTag
* xmlTag} = "CcyOfTrf"
* -
* {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getRegistrationStatus
* registrationStatus} =
* com.tools20022.metamodel.MMRegistrationStatus.PROVISIONALLY_REGISTERED
* - {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getName
* name} = "CurrencyOfTransfer"
* -
* {@linkplain com.tools20022.metamodel.MMRepositoryConcept#getDefinition
* definition} =
* "Specifies the currency of the to be transferred amount, which is different from the currency of the debtor's account."
*
*
*/
public static final MMMessageAttribute mmCurrencyOfTransfer = new MMMessageAttribute() {
{
businessElementTrace_lazy = () -> Payment.mmCurrencyOfTransfer;
componentContext_lazy = () -> EquivalentAmount2.mmObject();
isDerived = false;
xmlTag = "CcyOfTrf";
registrationStatus = MMRegistrationStatus.PROVISIONALLY_REGISTERED;
name = "CurrencyOfTransfer";
definition = "Specifies the currency of the to be transferred amount, which is different from the currency of the debtor's account.";
maxOccurs = 1;
minOccurs = 1;
simpleType_lazy = () -> ActiveOrHistoricCurrencyCode.mmObject();
}
};
final static public MMMessageComponent mmObject() {
mmObject_lazy.compareAndSet(null, new MMMessageComponent() {
{
messageElement_lazy = () -> Arrays.asList(EquivalentAmount2.mmAmount, EquivalentAmount2.mmCurrencyOfTransfer);
trace_lazy = () -> Payment.mmObject();
dataDictionary_lazy = () -> GeneratedRepository.mmdataDict;
registrationStatus = MMRegistrationStatus.REGISTERED;
name = "EquivalentAmount2";
definition = "Amount of money to be moved between the debtor and creditor, expressed in the currency of the debtor's account, and the currency in which the amount is to be moved.";
}
});
return mmObject_lazy.get();
}
@XmlElement(name = "Amt", required = true)
public ActiveOrHistoricCurrencyAndAmount getAmount() {
return amount;
}
public void setAmount(ActiveOrHistoricCurrencyAndAmount amount) {
this.amount = amount;
}
@XmlElement(name = "CcyOfTrf", required = true)
public ActiveOrHistoricCurrencyCode getCurrencyOfTransfer() {
return currencyOfTransfer;
}
public void setCurrencyOfTransfer(ActiveOrHistoricCurrencyCode currencyOfTransfer) {
this.currencyOfTransfer = currencyOfTransfer;
}
}