/*
* 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.bill;
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.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
import javax.xml.datatype.XMLGregorianCalendar;
import ru.roskazna.xsd.charge.ChargeType;
import ru.roskazna.xsd.organization.Organization;
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Bill", propOrder = {
"billDate",
"validUntil",
"supplierOrgInfo",
"billFor",
"totalAmount",
"url",
"additionalData"
})
@XmlSeeAlso({
ChargeType.class
})
public class Bill {
@XmlElement(name = "BillDate", required = true)
@XmlSchemaType(name = "date")
protected XMLGregorianCalendar billDate;
@XmlElement(name = "ValidUntil")
@XmlSchemaType(name = "date")
protected XMLGregorianCalendar validUntil;
@XmlElement(name = "SupplierOrgInfo", required = true)
protected Organization supplierOrgInfo;
@XmlElement(name = "BillFor", required = true, nillable = true)
protected String billFor;
@XmlElement(name = "TotalAmount")
protected long totalAmount;
@XmlElement(name = "URL")
protected String url;
@XmlElement(name = "AdditionalData")
protected List<Bill.AdditionalData> additionalData;
@XmlAttribute(name = "SupplierBillID", required = true)
protected String supplierBillID;
@XmlAttribute(name = "MainSupplierBillID")
protected String mainSupplierBillID;
@XmlAttribute(name = "Version")
protected String version;
/**
* Gets the value of the billDate property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getBillDate() {
return billDate;
}
/**
* Sets the value of the billDate property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public void setBillDate(XMLGregorianCalendar value) {
this.billDate = value;
}
/**
* Gets the value of the validUntil property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getValidUntil() {
return validUntil;
}
/**
* Sets the value of the validUntil property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public void setValidUntil(XMLGregorianCalendar value) {
this.validUntil = value;
}
/**
* Gets the value of the supplierOrgInfo property.
*
* @return
* possible object is
* {@link ru.roskazna.xsd.organization.Organization }
*
*/
public Organization getSupplierOrgInfo() {
return supplierOrgInfo;
}
/**
* Sets the value of the supplierOrgInfo property.
*
* @param value
* allowed object is
* {@link ru.roskazna.xsd.organization.Organization }
*
*/
public void setSupplierOrgInfo(Organization value) {
this.supplierOrgInfo = value;
}
/**
* Gets the value of the billFor property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getBillFor() {
return billFor;
}
/**
* Sets the value of the billFor property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setBillFor(String value) {
this.billFor = value;
}
/**
* Gets the value of the totalAmount property.
*
*/
public long getTotalAmount() {
return totalAmount;
}
/**
* Sets the value of the totalAmount property.
*
*/
public void setTotalAmount(long value) {
this.totalAmount = 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;
}
/**
* 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 Bill.AdditionalData }
*
*
*/
public List<Bill.AdditionalData> getAdditionalData() {
if (additionalData == null) {
additionalData = new ArrayList<Bill.AdditionalData>();
}
return this.additionalData;
}
/**
* 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 mainSupplierBillID property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getMainSupplierBillID() {
return mainSupplierBillID;
}
/**
* Sets the value of the mainSupplierBillID property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setMainSupplierBillID(String value) {
this.mainSupplierBillID = value;
}
/**
* Gets the value of the version property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getVersion() {
return version;
}
/**
* Sets the value of the version property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setVersion(String value) {
this.version = 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;
}
}
}