/**
* Mule Coupa Cloud Connector
*
* Copyright (c) MuleSoft, Inc. All rights reserved. http://www.mulesoft.com
*
* The software in this package is published under the terms of the CPAL v1.0
* license, a copy of which has been included with this distribution in the
* LICENSE.txt file.
*
* Coupa Connector com.coupa package contains portions of code based on Coupa4j
* http://code.google.com/p/coupa4j/, under a MIT license:
* http://www.opensource.org/licenses/mit-license.php.
*/
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-833
// 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: 2012.01.11 at 10:56:43 AM ART
//
package com.coupa.resources;
import java.math.BigDecimal;
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.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.datatype.XMLGregorianCalendar;
/**
* <p>Java class for contract complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="contract">
* <complexContent>
* <extension base="{}resource">
* <sequence>
* <element name="created-at" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
* <element name="updated-at" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
* <element name="name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="number" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="version" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
* <element name="start-date" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
* <element name="end-date" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
* <element name="status" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="minimum-value" type="{http://www.w3.org/2001/XMLSchema}float" minOccurs="0"/>
* <element name="maximum-value" type="{http://www.w3.org/2001/XMLSchema}float" minOccurs="0"/>
* <element name="terms" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="preferred" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="savings-pct" type="{http://www.w3.org/2001/XMLSchema}decimal" minOccurs="0"/>
* <element name="supplier" type="{}supplier-summary" minOccurs="0"/>
* <element name="currency" type="{}currency-summary" minOccurs="0"/>
* <element name="business-groups" minOccurs="0">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="business-group" type="{}business-group-summary" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* <element name="created-by" type="{}user-summary" minOccurs="0"/>
* <element name="updated-by" type="{}user-summary" minOccurs="0"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "contract", propOrder = {
"createdAt",
"updatedAt",
"name",
"number",
"version",
"startDate",
"endDate",
"status",
"minimumValue",
"maximumValue",
"terms",
"preferred",
"savingsPct",
"supplier",
"currency",
"businessGroups",
"createdBy",
"updatedBy"
})
@XmlRootElement
public class Contract
extends Resource
{
@XmlElement(name = "created-at")
@XmlSchemaType(name = "dateTime")
protected XMLGregorianCalendar createdAt;
@XmlElement(name = "updated-at")
@XmlSchemaType(name = "dateTime")
protected XMLGregorianCalendar updatedAt;
protected String name;
protected String number;
protected BigInteger version;
@XmlElement(name = "start-date")
@XmlSchemaType(name = "dateTime")
protected XMLGregorianCalendar startDate;
@XmlElement(name = "end-date")
@XmlSchemaType(name = "dateTime")
protected XMLGregorianCalendar endDate;
protected String status;
@XmlElement(name = "minimum-value")
protected Float minimumValue;
@XmlElement(name = "maximum-value")
protected Float maximumValue;
protected String terms;
protected String preferred;
@XmlElement(name = "savings-pct")
protected BigDecimal savingsPct;
protected SupplierSummary supplier;
protected CurrencySummary currency;
@XmlElement(name = "business-groups")
protected Contract.BusinessGroups businessGroups;
@XmlElement(name = "created-by")
protected UserSummary createdBy;
@XmlElement(name = "updated-by")
protected UserSummary updatedBy;
/**
* Gets the value of the createdAt property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getCreatedAt() {
return createdAt;
}
/**
* Sets the value of the createdAt property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public void setCreatedAt(XMLGregorianCalendar value) {
this.createdAt = value;
}
/**
* Gets the value of the updatedAt property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getUpdatedAt() {
return updatedAt;
}
/**
* Sets the value of the updatedAt property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public void setUpdatedAt(XMLGregorianCalendar value) {
this.updatedAt = 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 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 version property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getVersion() {
return version;
}
/**
* Sets the value of the version property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setVersion(BigInteger value) {
this.version = value;
}
/**
* Gets the value of the startDate property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getStartDate() {
return startDate;
}
/**
* Sets the value of the startDate property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public void setStartDate(XMLGregorianCalendar value) {
this.startDate = value;
}
/**
* Gets the value of the endDate property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getEndDate() {
return endDate;
}
/**
* Sets the value of the endDate property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public void setEndDate(XMLGregorianCalendar value) {
this.endDate = value;
}
/**
* Gets the value of the status property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getStatus() {
return status;
}
/**
* Sets the value of the status property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setStatus(String value) {
this.status = value;
}
/**
* Gets the value of the minimumValue property.
*
* @return
* possible object is
* {@link Float }
*
*/
public Float getMinimumValue() {
return minimumValue;
}
/**
* Sets the value of the minimumValue property.
*
* @param value
* allowed object is
* {@link Float }
*
*/
public void setMinimumValue(Float value) {
this.minimumValue = value;
}
/**
* Gets the value of the maximumValue property.
*
* @return
* possible object is
* {@link Float }
*
*/
public Float getMaximumValue() {
return maximumValue;
}
/**
* Sets the value of the maximumValue property.
*
* @param value
* allowed object is
* {@link Float }
*
*/
public void setMaximumValue(Float value) {
this.maximumValue = value;
}
/**
* Gets the value of the terms property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTerms() {
return terms;
}
/**
* Sets the value of the terms property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTerms(String value) {
this.terms = value;
}
/**
* Gets the value of the preferred property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPreferred() {
return preferred;
}
/**
* Sets the value of the preferred property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setPreferred(String value) {
this.preferred = value;
}
/**
* Gets the value of the savingsPct property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getSavingsPct() {
return savingsPct;
}
/**
* Sets the value of the savingsPct property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setSavingsPct(BigDecimal value) {
this.savingsPct = value;
}
/**
* Gets the value of the supplier property.
*
* @return
* possible object is
* {@link SupplierSummary }
*
*/
public SupplierSummary getSupplier() {
return supplier;
}
/**
* Sets the value of the supplier property.
*
* @param value
* allowed object is
* {@link SupplierSummary }
*
*/
public void setSupplier(SupplierSummary value) {
this.supplier = value;
}
/**
* Gets the value of the currency property.
*
* @return
* possible object is
* {@link CurrencySummary }
*
*/
public CurrencySummary getCurrency() {
return currency;
}
/**
* Sets the value of the currency property.
*
* @param value
* allowed object is
* {@link CurrencySummary }
*
*/
public void setCurrency(CurrencySummary value) {
this.currency = value;
}
/**
* Gets the value of the businessGroups property.
*
* @return
* possible object is
* {@link Contract.BusinessGroups }
*
*/
public Contract.BusinessGroups getBusinessGroups() {
return businessGroups;
}
/**
* Sets the value of the businessGroups property.
*
* @param value
* allowed object is
* {@link Contract.BusinessGroups }
*
*/
public void setBusinessGroups(Contract.BusinessGroups value) {
this.businessGroups = value;
}
/**
* Gets the value of the createdBy property.
*
* @return
* possible object is
* {@link UserSummary }
*
*/
public UserSummary getCreatedBy() {
return createdBy;
}
/**
* Sets the value of the createdBy property.
*
* @param value
* allowed object is
* {@link UserSummary }
*
*/
public void setCreatedBy(UserSummary value) {
this.createdBy = value;
}
/**
* Gets the value of the updatedBy property.
*
* @return
* possible object is
* {@link UserSummary }
*
*/
public UserSummary getUpdatedBy() {
return updatedBy;
}
/**
* Sets the value of the updatedBy property.
*
* @param value
* allowed object is
* {@link UserSummary }
*
*/
public void setUpdatedBy(UserSummary value) {
this.updatedBy = 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="business-group" type="{}business-group-summary" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"businessGroup"
})
public static class BusinessGroups {
@XmlElement(name = "business-group")
protected List<BusinessGroupSummary> businessGroup;
/**
* Gets the value of the businessGroup 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 businessGroup property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getBusinessGroup().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link BusinessGroupSummary }
*
*
*/
public List<BusinessGroupSummary> getBusinessGroup() {
if (businessGroup == null) {
businessGroup = new ArrayList<BusinessGroupSummary>();
}
return this.businessGroup;
}
}
}