/* * 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.gkn; import java.math.BigInteger; import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlSchemaType; import javax.xml.bind.annotation.XmlType; import javax.xml.datatype.XMLGregorianCalendar; @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "tPayDocument", propOrder = { "docType", "number", "bic", "bankName", "okato", "settlementAccount", "date", "fioPayment", "sum", "images", "quantity" }) public class TPayDocument { @XmlElement(name = "Doc_Type", required = true) protected String docType; @XmlElement(name = "Number", required = true) protected String number; @XmlElement(name = "BIC") protected String bic; @XmlElement(name = "Bank_Name") protected String bankName; @XmlElement(name = "OKATO") protected String okato; @XmlElement(name = "Settlement_Account") protected String settlementAccount; @XmlElement(name = "Date", required = true) @XmlSchemaType(name = "date") protected XMLGregorianCalendar date; @XmlElement(name = "FIOPayment") protected String fioPayment; @XmlElement(name = "Sum", required = true) protected BigInteger sum; @XmlElement(name = "Images") protected TPayDocument.Images images; @XmlElement(name = "Quantity", required = true) protected TQuantity quantity; /** * Gets the value of the docType property. * * @return * possible object is * {@link String } * */ public String getDocType() { return docType; } /** * Sets the value of the docType property. * * @param value * allowed object is * {@link String } * */ public void setDocType(String value) { this.docType = value; } /** * Gets the value of the number property. * * @return * possible object is * {@link String } * */ public String getNumber() { return number; } /** * Sets the value of the number property. * * @param value * allowed object is * {@link String } * */ public void setNumber(String value) { this.number = value; } /** * Gets the value of the bic property. * * @return * possible object is * {@link String } * */ public String getBIC() { return bic; } /** * Sets the value of the bic property. * * @param value * allowed object is * {@link String } * */ public void setBIC(String value) { this.bic = value; } /** * Gets the value of the bankName property. * * @return * possible object is * {@link String } * */ public String getBankName() { return bankName; } /** * Sets the value of the bankName property. * * @param value * allowed object is * {@link String } * */ public void setBankName(String value) { this.bankName = value; } /** * Gets the value of the okato property. * * @return * possible object is * {@link String } * */ public String getOKATO() { return okato; } /** * Sets the value of the okato property. * * @param value * allowed object is * {@link String } * */ public void setOKATO(String value) { this.okato = value; } /** * Gets the value of the settlementAccount property. * * @return * possible object is * {@link String } * */ public String getSettlementAccount() { return settlementAccount; } /** * Sets the value of the settlementAccount property. * * @param value * allowed object is * {@link String } * */ public void setSettlementAccount(String value) { this.settlementAccount = value; } /** * Gets the value of the date property. * * @return * possible object is * {@link XMLGregorianCalendar } * */ public XMLGregorianCalendar getDate() { return date; } /** * Sets the value of the date property. * * @param value * allowed object is * {@link XMLGregorianCalendar } * */ public void setDate(XMLGregorianCalendar value) { this.date = value; } /** * Gets the value of the fioPayment property. * * @return * possible object is * {@link String } * */ public String getFIOPayment() { return fioPayment; } /** * Sets the value of the fioPayment property. * * @param value * allowed object is * {@link String } * */ public void setFIOPayment(String value) { this.fioPayment = value; } /** * Gets the value of the sum property. * * @return * possible object is * {@link BigInteger } * */ public BigInteger getSum() { return sum; } /** * Sets the value of the sum property. * * @param value * allowed object is * {@link BigInteger } * */ public void setSum(BigInteger value) { this.sum = value; } /** * Gets the value of the images property. * * @return * possible object is * {@link TPayDocument.Images } * */ public TPayDocument.Images getImages() { return images; } /** * Sets the value of the images property. * * @param value * allowed object is * {@link TPayDocument.Images } * */ public void setImages(TPayDocument.Images value) { this.images = value; } /** * Gets the value of the quantity property. * * @return * possible object is * {@link TQuantity } * */ public TQuantity getQuantity() { return quantity; } /** * Sets the value of the quantity property. * * @param value * allowed object is * {@link TQuantity } * */ public void setQuantity(TQuantity value) { this.quantity = 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="Image" maxOccurs="unbounded"> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <attribute name="Name"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> * <maxLength value="255"/> * </restriction> * </simpleType> * </attribute> * <attribute name="URL"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> * <maxLength value="255"/> * </restriction> * </simpleType> * </attribute> * </restriction> * </complexContent> * </complexType> * </element> * </sequence> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "image" }) public static class Images { @XmlElement(name = "Image", required = true) protected List<TPayDocument.Images.Image> image; /** * Gets the value of the image 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 image property. * * <p> * For example, to add a new item, do as follows: * <pre> * getImage().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link TPayDocument.Images.Image } * * */ public List<TPayDocument.Images.Image> getImage() { if (image == null) { image = new ArrayList<TPayDocument.Images.Image>(); } return this.image; } /** * <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"> * <attribute name="Name"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> * <maxLength value="255"/> * </restriction> * </simpleType> * </attribute> * <attribute name="URL"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> * <maxLength value="255"/> * </restriction> * </simpleType> * </attribute> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "") public static class Image { @XmlAttribute(name = "Name") protected String name; @XmlAttribute(name = "URL") protected String url; /** * 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 url property. * * @return * possible object is * {@link String } * */ public String getURL() { return url; } /** * Sets the value of the url property. * * @param value * allowed object is * {@link String } * */ public void setURL(String value) { this.url = value; } } } }