AIM Web Services

<back to all web services

DeliveryTicketsRequest

DeliveryTickets
Requires active-e 3rd Party E-Commerce or active-e Vortx E-Commerce.

The following routes are available for this service:
GET/api/DeliveryTickets
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    /**
    * DeliveryTicketsRequires active-e 3rd Party E-Commerce or active-e Vortx E-Commerce.
    */
    @DataContract
    public static class DeliveryTicketsRequest extends BaseSecureRequest
    {
        @DataMember
        public Date DateFrom = null;

        @DataMember
        public Date DateTo = null;

        @DataMember
        public String District = null;

        @DataMember
        public String School = null;

        @DataMember
        public Long LocationId = null;

        /**
        * Type of Ticket. Valid types are Service Ticket, Sales Invoice, Layaway, Loaner, Short Term Rental, Contract, Delayed Delivery, and Approval
        */
        @DataMember
        @ApiMember(DataType="string", Description="Type of Ticket. Valid types are Service Ticket, Sales Invoice, Layaway, Loaner, Short Term Rental, Contract, Delayed Delivery, and Approval", IsRequired=true, Name="TicketType", ParameterType="query")
        public String TicketType = null;

        @DataMember
        public String EmployeeLanId = null;

        @DataMember
        public String DeliveryEmployeeLanId = null;

        @DataMember
        public String RefNumber = null;

        @DataMember
        public Boolean IncludeItems = null;
        
        public Date getDateFrom() { return DateFrom; }
        public DeliveryTicketsRequest setDateFrom(Date value) { this.DateFrom = value; return this; }
        public Date getDateTo() { return DateTo; }
        public DeliveryTicketsRequest setDateTo(Date value) { this.DateTo = value; return this; }
        public String getDistrict() { return District; }
        public DeliveryTicketsRequest setDistrict(String value) { this.District = value; return this; }
        public String getSchool() { return School; }
        public DeliveryTicketsRequest setSchool(String value) { this.School = value; return this; }
        public Long getLocationId() { return LocationId; }
        public DeliveryTicketsRequest setLocationId(Long value) { this.LocationId = value; return this; }
        public String getTicketType() { return TicketType; }
        public DeliveryTicketsRequest setTicketType(String value) { this.TicketType = value; return this; }
        public String getEmployeeLanId() { return EmployeeLanId; }
        public DeliveryTicketsRequest setEmployeeLanId(String value) { this.EmployeeLanId = value; return this; }
        public String getDeliveryEmployeeLanId() { return DeliveryEmployeeLanId; }
        public DeliveryTicketsRequest setDeliveryEmployeeLanId(String value) { this.DeliveryEmployeeLanId = value; return this; }
        public String getRefNumber() { return RefNumber; }
        public DeliveryTicketsRequest setRefNumber(String value) { this.RefNumber = value; return this; }
        public Boolean isIncludeItems() { return IncludeItems; }
        public DeliveryTicketsRequest setIncludeItems(Boolean value) { this.IncludeItems = value; return this; }
    }

    @DataContract
    public static class BaseSecureRequest extends BaseRequest
    {
        /**
        * 
        */
        @DataMember
        @ApiMember(DataType="string", Description="", Name="Token", ParameterType="Header")
        public String Token = null;

        /**
        * 
        */
        @DataMember
        @ApiMember(DataType="string", Description="", Name="DeviceId", ParameterType="Header")
        public String DeviceId = null;

        /**
        * 
        */
        @DataMember
        @ApiMember(DataType="string", Description="", IsRequired=true, Name="AppId", ParameterType="Header")
        public String AppId = null;
        
        public String getToken() { return Token; }
        public BaseSecureRequest setToken(String value) { this.Token = value; return this; }
        public String getDeviceId() { return DeviceId; }
        public BaseSecureRequest setDeviceId(String value) { this.DeviceId = value; return this; }
        public String getAppId() { return AppId; }
        public BaseSecureRequest setAppId(String value) { this.AppId = value; return this; }
    }

    @DataContract
    public static class BaseRequest
    {
        /**
        * This is your AIM API Key provided by Tri-Tech
        */
        @DataMember
        @ApiMember(DataType="string", Description="This is your AIM API Key provided by Tri-Tech", IsRequired=true, Name="ApiKey", ParameterType="header")
        public String ApiKey = null;

        @DataMember
        @ApiMember(DataType="string", Name="OAuthToken", ParameterType="header")
        public String OAuthToken = null;
        
        public String getApiKey() { return ApiKey; }
        public BaseRequest setApiKey(String value) { this.ApiKey = value; return this; }
        public String getOAuthToken() { return OAuthToken; }
        public BaseRequest setOAuthToken(String value) { this.OAuthToken = value; return this; }
    }

    @DataContract
    public static class DeliveryTicketsResponse extends BaseResponse
    {
        @DataMember
        public ArrayList<DeliveryTicket> Tickets = null;
        
        public ArrayList<DeliveryTicket> getTickets() { return Tickets; }
        public DeliveryTicketsResponse setTickets(ArrayList<DeliveryTicket> value) { this.Tickets = value; return this; }
    }

    @DataContract
    public static class BaseResponse
    {
        /**
        * 
        */
        @DataMember
        @ApiMember(DataType="BaseResponseResult", Description="", Name="Status", ParameterType="body")
        public BaseResponseResult Status = null;
        
        public BaseResponseResult getStatus() { return Status; }
        public BaseResponse setStatus(BaseResponseResult value) { this.Status = value; return this; }
    }

    @DataContract
    public static class BaseResponseResult
    {
        /**
        * 
        */
        @DataMember
        @ApiMember(DataType="string", Description="", Name="StatusCode", ParameterType="body")
        public String StatusCode = null;

        /**
        * 
        */
        @DataMember
        @ApiMember(DataType="string", Description="", Name="Login", ParameterType="body")
        public String Login = null;

        /**
        * 
        */
        @DataMember
        @ApiMember(DataType="string", Description="", Name="ErrorCode", ParameterType="body")
        public String ErrorCode = null;

        /**
        * 
        */
        @DataMember
        @ApiMember(DataType="string", Description="", Name="ErrorDisplayText", ParameterType="body")
        public String ErrorDisplayText = null;

        /**
        * 
        */
        @DataMember
        @ApiMember(DataType="string", Description="", Name="ErrorMessage", ParameterType="body")
        public String ErrorMessage = null;

        /**
        * 
        */
        @DataMember
        @ApiMember(DataType="string", Description="", ExcludeInSchema=true, Name="DomainName", ParameterType="body")
        public String DomainName = null;

        /**
        * 
        */
        @DataMember
        @ApiMember(DataType="string", Description="", ExcludeInSchema=true, Name="IPAddress", ParameterType="body")
        public String IpAddress = null;
        
        public String getStatusCode() { return StatusCode; }
        public BaseResponseResult setStatusCode(String value) { this.StatusCode = value; return this; }
        public String getLogin() { return Login; }
        public BaseResponseResult setLogin(String value) { this.Login = value; return this; }
        public String getErrorCode() { return ErrorCode; }
        public BaseResponseResult setErrorCode(String value) { this.ErrorCode = value; return this; }
        public String getErrorDisplayText() { return ErrorDisplayText; }
        public BaseResponseResult setErrorDisplayText(String value) { this.ErrorDisplayText = value; return this; }
        public String getErrorMessage() { return ErrorMessage; }
        public BaseResponseResult setErrorMessage(String value) { this.ErrorMessage = value; return this; }
        public String getDomainName() { return DomainName; }
        public BaseResponseResult setDomainName(String value) { this.DomainName = value; return this; }
        public String getIpAddress() { return IpAddress; }
        public BaseResponseResult setIpAddress(String value) { this.IpAddress = value; return this; }
    }

    @DataContract
    public static class DeliveryTicket
    {
        @DataMember
        public String RefNumber = null;

        @DataMember
        public Date Date = null;

        @DataMember
        public Integer AccountNumber = null;

        @DataMember
        public String Name = null;

        @DataMember
        public String Address = null;

        @DataMember
        public String Address2 = null;

        @DataMember
        public String City = null;

        @DataMember
        public String State = null;

        @DataMember
        public String ZipCode = null;

        @DataMember
        public String Student = null;

        @DataMember
        public String Contact = null;

        @DataMember
        public Boolean Delivered = null;

        @DataMember
        public String District = null;

        @DataMember
        public String School = null;

        @DataMember
        public String DeliveryEmployee = null;

        @DataMember
        public String TimeFrame = null;

        @DataMember
        public Date CreatedDate = null;

        @DataMember
        public ArrayList<DependentAttribute> DependentAttributes = null;

        @DataMember
        public String TicketType = null;

        @DataMember
        public Boolean HasImages = null;

        @DataMember
        public Boolean HasSignature = null;

        @DataMember
        public String Base64Signature = null;

        @DataMember
        public String Notes = null;

        @DataMember
        public ArrayList<Base64Image> Images = null;

        @DataMember
        public ArrayList<DeliveryItem> DeliveryItems = null;
        
        public String getRefNumber() { return RefNumber; }
        public DeliveryTicket setRefNumber(String value) { this.RefNumber = value; return this; }
        public Date getDate() { return Date; }
        public DeliveryTicket setDate(Date value) { this.Date = value; return this; }
        public Integer getAccountNumber() { return AccountNumber; }
        public DeliveryTicket setAccountNumber(Integer value) { this.AccountNumber = value; return this; }
        public String getName() { return Name; }
        public DeliveryTicket setName(String value) { this.Name = value; return this; }
        public String getAddress() { return Address; }
        public DeliveryTicket setAddress(String value) { this.Address = value; return this; }
        public String getAddress2() { return Address2; }
        public DeliveryTicket setAddress2(String value) { this.Address2 = value; return this; }
        public String getCity() { return City; }
        public DeliveryTicket setCity(String value) { this.City = value; return this; }
        public String getState() { return State; }
        public DeliveryTicket setState(String value) { this.State = value; return this; }
        public String getZipCode() { return ZipCode; }
        public DeliveryTicket setZipCode(String value) { this.ZipCode = value; return this; }
        public String getStudent() { return Student; }
        public DeliveryTicket setStudent(String value) { this.Student = value; return this; }
        public String getContact() { return Contact; }
        public DeliveryTicket setContact(String value) { this.Contact = value; return this; }
        public Boolean isDelivered() { return Delivered; }
        public DeliveryTicket setDelivered(Boolean value) { this.Delivered = value; return this; }
        public String getDistrict() { return District; }
        public DeliveryTicket setDistrict(String value) { this.District = value; return this; }
        public String getSchool() { return School; }
        public DeliveryTicket setSchool(String value) { this.School = value; return this; }
        public String getDeliveryEmployee() { return DeliveryEmployee; }
        public DeliveryTicket setDeliveryEmployee(String value) { this.DeliveryEmployee = value; return this; }
        public String getTimeFrame() { return TimeFrame; }
        public DeliveryTicket setTimeFrame(String value) { this.TimeFrame = value; return this; }
        public Date getCreatedDate() { return CreatedDate; }
        public DeliveryTicket setCreatedDate(Date value) { this.CreatedDate = value; return this; }
        public ArrayList<DependentAttribute> getDependentAttributes() { return DependentAttributes; }
        public DeliveryTicket setDependentAttributes(ArrayList<DependentAttribute> value) { this.DependentAttributes = value; return this; }
        public String getTicketType() { return TicketType; }
        public DeliveryTicket setTicketType(String value) { this.TicketType = value; return this; }
        public Boolean isHasImages() { return HasImages; }
        public DeliveryTicket setHasImages(Boolean value) { this.HasImages = value; return this; }
        public Boolean isHasSignature() { return HasSignature; }
        public DeliveryTicket setHasSignature(Boolean value) { this.HasSignature = value; return this; }
        public String getBase64Signature() { return Base64Signature; }
        public DeliveryTicket setBase64Signature(String value) { this.Base64Signature = value; return this; }
        public String getNotes() { return Notes; }
        public DeliveryTicket setNotes(String value) { this.Notes = value; return this; }
        public ArrayList<Base64Image> getImages() { return Images; }
        public DeliveryTicket setImages(ArrayList<Base64Image> value) { this.Images = value; return this; }
        public ArrayList<DeliveryItem> getDeliveryItems() { return DeliveryItems; }
        public DeliveryTicket setDeliveryItems(ArrayList<DeliveryItem> value) { this.DeliveryItems = value; return this; }
    }

    @DataContract
    public static class DependentAttribute
    {
        @DataMember
        public String Attribute = null;

        @DataMember
        public String AttributeValue = null;
        
        public String getAttribute() { return Attribute; }
        public DependentAttribute setAttribute(String value) { this.Attribute = value; return this; }
        public String getAttributeValue() { return AttributeValue; }
        public DependentAttribute setAttributeValue(String value) { this.AttributeValue = value; return this; }
    }

    @DataContract
    public static class Base64Image
    {
        @DataMember
        public String Data = null;

        @DataMember
        public String FileName = null;
        
        public String getData() { return Data; }
        public Base64Image setData(String value) { this.Data = value; return this; }
        public String getFileName() { return FileName; }
        public Base64Image setFileName(String value) { this.FileName = value; return this; }
    }

    @DataContract
    public static class DeliveryItem
    {
        @DataMember
        public BigDecimal Quantity = null;

        @DataMember
        public String Item = null;

        @DataMember
        public String Description = null;
        
        public BigDecimal getQuantity() { return Quantity; }
        public DeliveryItem setQuantity(BigDecimal value) { this.Quantity = value; return this; }
        public String getItem() { return Item; }
        public DeliveryItem setItem(String value) { this.Item = value; return this; }
        public String getDescription() { return Description; }
        public DeliveryItem setDescription(String value) { this.Description = value; return this; }
    }

}

Java DeliveryTicketsRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /api/DeliveryTickets HTTP/1.1 
Host: active-ewebservice.biz 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<DeliveryTicketsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AIM.WebService">
  <Status>
    <DomainName>String</DomainName>
    <ErrorCode>String</ErrorCode>
    <ErrorDisplayText>String</ErrorDisplayText>
    <ErrorMessage>String</ErrorMessage>
    <IpAddress>String</IpAddress>
    <Login>String</Login>
    <StatusCode>String</StatusCode>
  </Status>
  <Tickets>
    <DeliveryTicket>
      <AccountNumber>0</AccountNumber>
      <Address>String</Address>
      <Address2>String</Address2>
      <Base64Signature>String</Base64Signature>
      <City>String</City>
      <Contact>String</Contact>
      <CreatedDate>0001-01-01T00:00:00</CreatedDate>
      <Date>0001-01-01T00:00:00</Date>
      <Delivered>false</Delivered>
      <DeliveryEmployee>String</DeliveryEmployee>
      <DeliveryItems>
        <DeliveryItem>
          <Description>String</Description>
          <Item>String</Item>
          <Quantity>0</Quantity>
        </DeliveryItem>
      </DeliveryItems>
      <DependentAttributes>
        <DependentAttribute>
          <Attribute>String</Attribute>
          <AttributeValue>String</AttributeValue>
        </DependentAttribute>
      </DependentAttributes>
      <District>String</District>
      <HasImages>false</HasImages>
      <HasSignature>false</HasSignature>
      <Images>
        <Base64Image>
          <Data>String</Data>
          <FileName>String</FileName>
        </Base64Image>
      </Images>
      <Name>String</Name>
      <Notes>String</Notes>
      <RefNumber>String</RefNumber>
      <School>String</School>
      <State>String</State>
      <Student>String</Student>
      <TicketType>String</TicketType>
      <TimeFrame>String</TimeFrame>
      <ZipCode>String</ZipCode>
    </DeliveryTicket>
  </Tickets>
</DeliveryTicketsResponse>