src/main/java/net/authorize/api/contract/v1/LineItemType.java
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2021.01.27 at 04:18:12 PM GMT+05:30
//
package net.authorize.api.contract.v1;
import java.math.BigDecimal;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for lineItemType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="lineItemType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="itemId">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <minLength value="1"/>
* <maxLength value="31"/>
* </restriction>
* </simpleType>
* </element>
* <element name="name">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <minLength value="1"/>
* <maxLength value="31"/>
* </restriction>
* </simpleType>
* </element>
* <element name="description" minOccurs="0">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <maxLength value="255"/>
* </restriction>
* </simpleType>
* </element>
* <element name="quantity">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}decimal">
* <minInclusive value="0.00"/>
* <fractionDigits value="4"/>
* </restriction>
* </simpleType>
* </element>
* <element name="unitPrice">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}decimal">
* <minInclusive value="0.00"/>
* <fractionDigits value="4"/>
* </restriction>
* </simpleType>
* </element>
* <element name="taxable" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
* <element name="unitOfMeasure" minOccurs="0">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <maxLength value="12"/>
* </restriction>
* </simpleType>
* </element>
* <element name="typeOfSupply" minOccurs="0">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <maxLength value="2"/>
* </restriction>
* </simpleType>
* </element>
* <element name="taxRate" minOccurs="0">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}decimal">
* <totalDigits value="5"/>
* <fractionDigits value="5"/>
* </restriction>
* </simpleType>
* </element>
* <element name="taxAmount" type="{http://www.w3.org/2001/XMLSchema}decimal" minOccurs="0"/>
* <element name="nationalTax" type="{http://www.w3.org/2001/XMLSchema}decimal" minOccurs="0"/>
* <element name="localTax" type="{http://www.w3.org/2001/XMLSchema}decimal" minOccurs="0"/>
* <element name="vatRate" minOccurs="0">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}decimal">
* <totalDigits value="5"/>
* <fractionDigits value="5"/>
* </restriction>
* </simpleType>
* </element>
* <element name="alternateTaxId" minOccurs="0">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <maxLength value="20"/>
* </restriction>
* </simpleType>
* </element>
* <element name="alternateTaxType" minOccurs="0">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <maxLength value="4"/>
* </restriction>
* </simpleType>
* </element>
* <element name="alternateTaxTypeApplied" minOccurs="0">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <maxLength value="4"/>
* </restriction>
* </simpleType>
* </element>
* <element name="alternateTaxRate" minOccurs="0">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}decimal">
* <totalDigits value="5"/>
* <fractionDigits value="5"/>
* </restriction>
* </simpleType>
* </element>
* <element name="alternateTaxAmount" type="{http://www.w3.org/2001/XMLSchema}decimal" minOccurs="0"/>
* <element name="totalAmount" type="{http://www.w3.org/2001/XMLSchema}decimal" minOccurs="0"/>
* <element name="commodityCode" minOccurs="0">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <maxLength value="15"/>
* </restriction>
* </simpleType>
* </element>
* <element name="productCode" minOccurs="0">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <maxLength value="30"/>
* </restriction>
* </simpleType>
* </element>
* <element name="productSKU" minOccurs="0">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <maxLength value="30"/>
* </restriction>
* </simpleType>
* </element>
* <element name="discountRate" minOccurs="0">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}decimal">
* <totalDigits value="5"/>
* <fractionDigits value="5"/>
* </restriction>
* </simpleType>
* </element>
* <element name="discountAmount" type="{http://www.w3.org/2001/XMLSchema}decimal" minOccurs="0"/>
* <element name="taxIncludedInTotal" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
* <element name="taxIsAfterDiscount" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "lineItemType", propOrder = {
"itemId",
"name",
"description",
"quantity",
"unitPrice",
"taxable",
"unitOfMeasure",
"typeOfSupply",
"taxRate",
"taxAmount",
"nationalTax",
"localTax",
"vatRate",
"alternateTaxId",
"alternateTaxType",
"alternateTaxTypeApplied",
"alternateTaxRate",
"alternateTaxAmount",
"totalAmount",
"commodityCode",
"productCode",
"productSKU",
"discountRate",
"discountAmount",
"taxIncludedInTotal",
"taxIsAfterDiscount"
})
public class LineItemType {
@XmlElement(required = true)
protected String itemId;
@XmlElement(required = true)
protected String name;
protected String description;
@XmlElement(required = true)
protected BigDecimal quantity;
@XmlElement(required = true)
protected BigDecimal unitPrice;
protected Boolean taxable;
protected String unitOfMeasure;
protected String typeOfSupply;
protected BigDecimal taxRate;
protected BigDecimal taxAmount;
protected BigDecimal nationalTax;
protected BigDecimal localTax;
protected BigDecimal vatRate;
protected String alternateTaxId;
protected String alternateTaxType;
protected String alternateTaxTypeApplied;
protected BigDecimal alternateTaxRate;
protected BigDecimal alternateTaxAmount;
protected BigDecimal totalAmount;
protected String commodityCode;
protected String productCode;
protected String productSKU;
protected BigDecimal discountRate;
protected BigDecimal discountAmount;
protected Boolean taxIncludedInTotal;
protected Boolean taxIsAfterDiscount;
/**
* Gets the value of the itemId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getItemId() {
return itemId;
}
/**
* Sets the value of the itemId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setItemId(String value) {
this.itemId = 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 description property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDescription() {
return description;
}
/**
* Sets the value of the description property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDescription(String value) {
this.description = value;
}
/**
* Gets the value of the quantity property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getQuantity() {
return quantity;
}
/**
* Sets the value of the quantity property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setQuantity(BigDecimal value) {
this.quantity = value;
}
/**
* Gets the value of the unitPrice property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getUnitPrice() {
return unitPrice;
}
/**
* Sets the value of the unitPrice property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setUnitPrice(BigDecimal value) {
this.unitPrice = value;
}
/**
* Gets the value of the taxable property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isTaxable() {
return taxable;
}
/**
* Sets the value of the taxable property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setTaxable(Boolean value) {
this.taxable = value;
}
/**
* Gets the value of the unitOfMeasure property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getUnitOfMeasure() {
return unitOfMeasure;
}
/**
* Sets the value of the unitOfMeasure property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setUnitOfMeasure(String value) {
this.unitOfMeasure = value;
}
/**
* Gets the value of the typeOfSupply property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTypeOfSupply() {
return typeOfSupply;
}
/**
* Sets the value of the typeOfSupply property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTypeOfSupply(String value) {
this.typeOfSupply = value;
}
/**
* Gets the value of the taxRate property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getTaxRate() {
return taxRate;
}
/**
* Sets the value of the taxRate property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setTaxRate(BigDecimal value) {
this.taxRate = value;
}
/**
* Gets the value of the taxAmount property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getTaxAmount() {
return taxAmount;
}
/**
* Sets the value of the taxAmount property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setTaxAmount(BigDecimal value) {
this.taxAmount = value;
}
/**
* Gets the value of the nationalTax property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getNationalTax() {
return nationalTax;
}
/**
* Sets the value of the nationalTax property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setNationalTax(BigDecimal value) {
this.nationalTax = value;
}
/**
* Gets the value of the localTax property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getLocalTax() {
return localTax;
}
/**
* Sets the value of the localTax property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setLocalTax(BigDecimal value) {
this.localTax = value;
}
/**
* Gets the value of the vatRate property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getVatRate() {
return vatRate;
}
/**
* Sets the value of the vatRate property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setVatRate(BigDecimal value) {
this.vatRate = value;
}
/**
* Gets the value of the alternateTaxId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getAlternateTaxId() {
return alternateTaxId;
}
/**
* Sets the value of the alternateTaxId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setAlternateTaxId(String value) {
this.alternateTaxId = value;
}
/**
* Gets the value of the alternateTaxType property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getAlternateTaxType() {
return alternateTaxType;
}
/**
* Sets the value of the alternateTaxType property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setAlternateTaxType(String value) {
this.alternateTaxType = value;
}
/**
* Gets the value of the alternateTaxTypeApplied property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getAlternateTaxTypeApplied() {
return alternateTaxTypeApplied;
}
/**
* Sets the value of the alternateTaxTypeApplied property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setAlternateTaxTypeApplied(String value) {
this.alternateTaxTypeApplied = value;
}
/**
* Gets the value of the alternateTaxRate property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getAlternateTaxRate() {
return alternateTaxRate;
}
/**
* Sets the value of the alternateTaxRate property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setAlternateTaxRate(BigDecimal value) {
this.alternateTaxRate = value;
}
/**
* Gets the value of the alternateTaxAmount property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getAlternateTaxAmount() {
return alternateTaxAmount;
}
/**
* Sets the value of the alternateTaxAmount property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setAlternateTaxAmount(BigDecimal value) {
this.alternateTaxAmount = value;
}
/**
* Gets the value of the totalAmount property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getTotalAmount() {
return totalAmount;
}
/**
* Sets the value of the totalAmount property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setTotalAmount(BigDecimal value) {
this.totalAmount = value;
}
/**
* Gets the value of the commodityCode property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCommodityCode() {
return commodityCode;
}
/**
* Sets the value of the commodityCode property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCommodityCode(String value) {
this.commodityCode = value;
}
/**
* Gets the value of the productCode property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProductCode() {
return productCode;
}
/**
* Sets the value of the productCode property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProductCode(String value) {
this.productCode = value;
}
/**
* Gets the value of the productSKU property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProductSKU() {
return productSKU;
}
/**
* Sets the value of the productSKU property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProductSKU(String value) {
this.productSKU = value;
}
/**
* Gets the value of the discountRate property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getDiscountRate() {
return discountRate;
}
/**
* Sets the value of the discountRate property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setDiscountRate(BigDecimal value) {
this.discountRate = value;
}
/**
* Gets the value of the discountAmount property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getDiscountAmount() {
return discountAmount;
}
/**
* Sets the value of the discountAmount property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setDiscountAmount(BigDecimal value) {
this.discountAmount = value;
}
/**
* Gets the value of the taxIncludedInTotal property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isTaxIncludedInTotal() {
return taxIncludedInTotal;
}
/**
* Sets the value of the taxIncludedInTotal property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setTaxIncludedInTotal(Boolean value) {
this.taxIncludedInTotal = value;
}
/**
* Gets the value of the taxIsAfterDiscount property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isTaxIsAfterDiscount() {
return taxIsAfterDiscount;
}
/**
* Sets the value of the taxIsAfterDiscount property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setTaxIsAfterDiscount(Boolean value) {
this.taxIsAfterDiscount = value;
}
}