/** * 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.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 requisition-header complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType name="requisition-header"> * <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="buyer-note" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="justification" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="need-by-date" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/> * <element name="reject-reason-comment" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="status" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="submitted-at" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/> * <element name="exported" type="{}restBoolean" minOccurs="0"/> * <element name="ship-to-attention" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="total" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="department" type="{}department-summary" minOccurs="0"/> * <element name="requested-by" type="{}user-summary" minOccurs="0"/> * <element name="ship-to-address" type="{}address-summary" minOccurs="0"/> * <element name="attachments" minOccurs="0"> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element name="attachment" type="{}attachment-summary" maxOccurs="unbounded" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> * </complexType> * </element> * <element name="requisition-lines" minOccurs="0"> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element name="requisition-line" type="{}requisition-line-summary" maxOccurs="unbounded" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> * </complexType> * </element> * <element name="approvals" minOccurs="0"> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element name="approval" type="{}approval-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"/> * <element name="custom-field-1" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="custom-field-2" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * </sequence> * </extension> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "requisition-header", propOrder = { "createdAt", "updatedAt", "buyerNote", "justification", "needByDate", "rejectReasonComment", "status", "submittedAt", "exported", "shipToAttention", "total", "department", "requestedBy", "shipToAddress", "attachments", "requisitionLines", "approvals", "createdBy", "updatedBy", "customField1", "customField2" }) @XmlRootElement public class RequisitionHeader extends Resource { @XmlElement(name = "created-at") @XmlSchemaType(name = "dateTime") protected XMLGregorianCalendar createdAt; @XmlElement(name = "updated-at") @XmlSchemaType(name = "dateTime") protected XMLGregorianCalendar updatedAt; @XmlElement(name = "buyer-note") protected String buyerNote; protected String justification; @XmlElement(name = "need-by-date") @XmlSchemaType(name = "dateTime") protected XMLGregorianCalendar needByDate; @XmlElement(name = "reject-reason-comment") protected String rejectReasonComment; protected String status; @XmlElement(name = "submitted-at") @XmlSchemaType(name = "dateTime") protected XMLGregorianCalendar submittedAt; protected RestBoolean exported; @XmlElement(name = "ship-to-attention") protected String shipToAttention; protected String total; protected DepartmentSummary department; @XmlElement(name = "requested-by") protected UserSummary requestedBy; @XmlElement(name = "ship-to-address") protected AddressSummary shipToAddress; protected RequisitionHeader.Attachments attachments; @XmlElement(name = "requisition-lines") protected RequisitionHeader.RequisitionLines requisitionLines; protected RequisitionHeader.Approvals approvals; @XmlElement(name = "created-by") protected UserSummary createdBy; @XmlElement(name = "updated-by") protected UserSummary updatedBy; @XmlElement(name = "custom-field-1") protected String customField1; @XmlElement(name = "custom-field-2") protected String customField2; /** * 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 buyerNote property. * * @return * possible object is * {@link String } * */ public String getBuyerNote() { return buyerNote; } /** * Sets the value of the buyerNote property. * * @param value * allowed object is * {@link String } * */ public void setBuyerNote(String value) { this.buyerNote = value; } /** * Gets the value of the justification property. * * @return * possible object is * {@link String } * */ public String getJustification() { return justification; } /** * Sets the value of the justification property. * * @param value * allowed object is * {@link String } * */ public void setJustification(String value) { this.justification = value; } /** * Gets the value of the needByDate property. * * @return * possible object is * {@link XMLGregorianCalendar } * */ public XMLGregorianCalendar getNeedByDate() { return needByDate; } /** * Sets the value of the needByDate property. * * @param value * allowed object is * {@link XMLGregorianCalendar } * */ public void setNeedByDate(XMLGregorianCalendar value) { this.needByDate = value; } /** * Gets the value of the rejectReasonComment property. * * @return * possible object is * {@link String } * */ public String getRejectReasonComment() { return rejectReasonComment; } /** * Sets the value of the rejectReasonComment property. * * @param value * allowed object is * {@link String } * */ public void setRejectReasonComment(String value) { this.rejectReasonComment = 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 submittedAt property. * * @return * possible object is * {@link XMLGregorianCalendar } * */ public XMLGregorianCalendar getSubmittedAt() { return submittedAt; } /** * Sets the value of the submittedAt property. * * @param value * allowed object is * {@link XMLGregorianCalendar } * */ public void setSubmittedAt(XMLGregorianCalendar value) { this.submittedAt = value; } /** * Gets the value of the exported property. * * @return * possible object is * {@link RestBoolean } * */ public RestBoolean getExported() { return exported; } /** * Sets the value of the exported property. * * @param value * allowed object is * {@link RestBoolean } * */ public void setExported(RestBoolean value) { this.exported = value; } /** * Gets the value of the shipToAttention property. * * @return * possible object is * {@link String } * */ public String getShipToAttention() { return shipToAttention; } /** * Sets the value of the shipToAttention property. * * @param value * allowed object is * {@link String } * */ public void setShipToAttention(String value) { this.shipToAttention = value; } /** * Gets the value of the total property. * * @return * possible object is * {@link String } * */ public String getTotal() { return total; } /** * Sets the value of the total property. * * @param value * allowed object is * {@link String } * */ public void setTotal(String value) { this.total = value; } /** * Gets the value of the department property. * * @return * possible object is * {@link DepartmentSummary } * */ public DepartmentSummary getDepartment() { return department; } /** * Sets the value of the department property. * * @param value * allowed object is * {@link DepartmentSummary } * */ public void setDepartment(DepartmentSummary value) { this.department = value; } /** * Gets the value of the requestedBy property. * * @return * possible object is * {@link UserSummary } * */ public UserSummary getRequestedBy() { return requestedBy; } /** * Sets the value of the requestedBy property. * * @param value * allowed object is * {@link UserSummary } * */ public void setRequestedBy(UserSummary value) { this.requestedBy = value; } /** * Gets the value of the shipToAddress property. * * @return * possible object is * {@link AddressSummary } * */ public AddressSummary getShipToAddress() { return shipToAddress; } /** * Sets the value of the shipToAddress property. * * @param value * allowed object is * {@link AddressSummary } * */ public void setShipToAddress(AddressSummary value) { this.shipToAddress = value; } /** * Gets the value of the attachments property. * * @return * possible object is * {@link RequisitionHeader.Attachments } * */ public RequisitionHeader.Attachments getAttachments() { return attachments; } /** * Sets the value of the attachments property. * * @param value * allowed object is * {@link RequisitionHeader.Attachments } * */ public void setAttachments(RequisitionHeader.Attachments value) { this.attachments = value; } /** * Gets the value of the requisitionLines property. * * @return * possible object is * {@link RequisitionHeader.RequisitionLines } * */ public RequisitionHeader.RequisitionLines getRequisitionLines() { return requisitionLines; } /** * Sets the value of the requisitionLines property. * * @param value * allowed object is * {@link RequisitionHeader.RequisitionLines } * */ public void setRequisitionLines(RequisitionHeader.RequisitionLines value) { this.requisitionLines = value; } /** * Gets the value of the approvals property. * * @return * possible object is * {@link RequisitionHeader.Approvals } * */ public RequisitionHeader.Approvals getApprovals() { return approvals; } /** * Sets the value of the approvals property. * * @param value * allowed object is * {@link RequisitionHeader.Approvals } * */ public void setApprovals(RequisitionHeader.Approvals value) { this.approvals = 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; } /** * Gets the value of the customField1 property. * * @return * possible object is * {@link String } * */ public String getCustomField1() { return customField1; } /** * Sets the value of the customField1 property. * * @param value * allowed object is * {@link String } * */ public void setCustomField1(String value) { this.customField1 = value; } /** * Gets the value of the customField2 property. * * @return * possible object is * {@link String } * */ public String getCustomField2() { return customField2; } /** * Sets the value of the customField2 property. * * @param value * allowed object is * {@link String } * */ public void setCustomField2(String value) { this.customField2 = 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="approval" type="{}approval-summary" maxOccurs="unbounded" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "approval" }) public static class Approvals { protected List<ApprovalSummary> approval; /** * Gets the value of the approval 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 approval property. * * <p> * For example, to add a new item, do as follows: * <pre> * getApproval().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link ApprovalSummary } * * */ public List<ApprovalSummary> getApproval() { if (approval == null) { approval = new ArrayList<ApprovalSummary>(); } return this.approval; } } /** * <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="attachment" type="{}attachment-summary" maxOccurs="unbounded" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "attachment" }) public static class Attachments { protected List<AttachmentSummary> attachment; /** * Gets the value of the attachment 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 attachment property. * * <p> * For example, to add a new item, do as follows: * <pre> * getAttachment().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link AttachmentSummary } * * */ public List<AttachmentSummary> getAttachment() { if (attachment == null) { attachment = new ArrayList<AttachmentSummary>(); } return this.attachment; } } /** * <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="requisition-line" type="{}requisition-line-summary" maxOccurs="unbounded" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "requisitionLine" }) public static class RequisitionLines { @XmlElement(name = "requisition-line") protected List<RequisitionLineSummary> requisitionLine; /** * Gets the value of the requisitionLine 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 requisitionLine property. * * <p> * For example, to add a new item, do as follows: * <pre> * getRequisitionLine().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link RequisitionLineSummary } * * */ public List<RequisitionLineSummary> getRequisitionLine() { if (requisitionLine == null) { requisitionLine = new ArrayList<RequisitionLineSummary>(); } return this.requisitionLine; } } }