/* * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * Copyright (c) 2013, MPL CodeInside http://codeinside.ru */ package ru.roskazna.xsd.paymentinfo; import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.*; import javax.xml.datatype.XMLGregorianCalendar; import ru.roskazna.xsd.budgetindex.BudgetIndex; import ru.roskazna.xsd.organization.Account; @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "PaymentType", propOrder = { "supplierBillID", "applicationID", "narrative", "amount", "paymentDate", "budgetIndex", "paymentIdentificationData", "payerIdentifier", "payerPA", "additionalData", "payeeBankAcc" }) @XmlSeeAlso({ PaymentInfoType.class }) @XmlRootElement public class PaymentType { @XmlElement(name = "SupplierBillID", required = true) protected String supplierBillID; @XmlElement(name = "ApplicationID") protected String applicationID; @XmlElement(name = "Narrative", required = true, nillable = true) protected String narrative; @XmlElement(name = "Amount") protected long amount; @XmlElement(name = "PaymentDate", required = true) @XmlSchemaType(name = "date") protected XMLGregorianCalendar paymentDate; @XmlElement(name = "BudgetIndex", required = true) protected BudgetIndex budgetIndex; @XmlElement(name = "PaymentIdentificationData", required = true) protected PaymentIdentificationDataType paymentIdentificationData; @XmlElement(name = "PayerIdentifier", required = true) protected String payerIdentifier; @XmlElement(name = "PayerPA") protected String payerPA; @XmlElement(name = "AdditionalData") protected List<PaymentType.AdditionalData> additionalData; @XmlElement(name = "PayeeBankAcc", required = true) protected Account payeeBankAcc; /** * Gets the value of the supplierBillID property. * * @return * possible object is * {@link String } * */ public String getSupplierBillID() { return supplierBillID; } /** * Sets the value of the supplierBillID property. * * @param value * allowed object is * {@link String } * */ public void setSupplierBillID(String value) { this.supplierBillID = value; } /** * Gets the value of the applicationID property. * * @return * possible object is * {@link String } * */ public String getApplicationID() { return applicationID; } /** * Sets the value of the applicationID property. * * @param value * allowed object is * {@link String } * */ public void setApplicationID(String value) { this.applicationID = value; } /** * Gets the value of the narrative property. * * @return * possible object is * {@link String } * */ public String getNarrative() { return narrative; } /** * Sets the value of the narrative property. * * @param value * allowed object is * {@link String } * */ public void setNarrative(String value) { this.narrative = value; } /** * Gets the value of the amount property. * */ public long getAmount() { return amount; } /** * Sets the value of the amount property. * */ public void setAmount(long value) { this.amount = value; } /** * Gets the value of the paymentDate property. * * @return * possible object is * {@link XMLGregorianCalendar } * */ public XMLGregorianCalendar getPaymentDate() { return paymentDate; } /** * Sets the value of the paymentDate property. * * @param value * allowed object is * {@link XMLGregorianCalendar } * */ public void setPaymentDate(XMLGregorianCalendar value) { this.paymentDate = value; } /** * Gets the value of the budgetIndex property. * * @return * possible object is * {@link ru.roskazna.xsd.budgetindex.BudgetIndex } * */ public BudgetIndex getBudgetIndex() { return budgetIndex; } /** * Sets the value of the budgetIndex property. * * @param value * allowed object is * {@link ru.roskazna.xsd.budgetindex.BudgetIndex } * */ public void setBudgetIndex(BudgetIndex value) { this.budgetIndex = value; } /** * Gets the value of the paymentIdentificationData property. * * @return * possible object is * {@link PaymentIdentificationDataType } * */ public PaymentIdentificationDataType getPaymentIdentificationData() { return paymentIdentificationData; } /** * Sets the value of the paymentIdentificationData property. * * @param value * allowed object is * {@link PaymentIdentificationDataType } * */ public void setPaymentIdentificationData(PaymentIdentificationDataType value) { this.paymentIdentificationData = value; } /** * Gets the value of the payerIdentifier property. * * @return * possible object is * {@link String } * */ public String getPayerIdentifier() { return payerIdentifier; } /** * Sets the value of the payerIdentifier property. * * @param value * allowed object is * {@link String } * */ public void setPayerIdentifier(String value) { this.payerIdentifier = value; } /** * Gets the value of the payerPA property. * * @return * possible object is * {@link String } * */ public String getPayerPA() { return payerPA; } /** * Sets the value of the payerPA property. * * @param value * allowed object is * {@link String } * */ public void setPayerPA(String value) { this.payerPA = value; } /** * Gets the value of the additionalData 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 JAXB object. * This is why there is not a <CODE>set</CODE> method for the additionalData property. * * <p> * For example, to add a new item, do as follows: * <pre> * getAdditionalData().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link PaymentType.AdditionalData } * * */ public List<PaymentType.AdditionalData> getAdditionalData() { if (additionalData == null) { additionalData = new ArrayList<PaymentType.AdditionalData>(); } return this.additionalData; } /** * Gets the value of the payeeBankAcc property. * * @return * possible object is * {@link ru.roskazna.xsd.organization.Account } * */ public Account getPayeeBankAcc() { return payeeBankAcc; } /** * Sets the value of the payeeBankAcc property. * * @param value * allowed object is * {@link ru.roskazna.xsd.organization.Account } * */ public void setPayeeBankAcc(Account value) { this.payeeBankAcc = value; } /** * <p>Java class for anonymous complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element name="Name"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> * <minLength value="1"/> * <maxLength value="100"/> * </restriction> * </simpleType> * </element> * <element name="Value"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> * <minLength value="1"/> * <maxLength value="255"/> * </restriction> * </simpleType> * </element> * </sequence> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "name", "value" }) public static class AdditionalData { @XmlElement(name = "Name", required = true) protected String name; @XmlElement(name = "Value", required = true) protected String value; /** * Gets the value of the name property. * * @return * possible object is * {@link String } * */ public String getName() { return name; } /** * Sets the value of the name property. * * @param value * allowed object is * {@link String } * */ public void setName(String value) { this.name = value; } /** * Gets the value of the value property. * * @return * possible object is * {@link String } * */ public String getValue() { return value; } /** * Sets the value of the value property. * * @param value * allowed object is * {@link String } * */ public void setValue(String value) { this.value = value; } } }