| GET,OPTIONS | /v1/BusinessCardStatus |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class BusinessCardStatusRequest
{
public ArrayList<BusinessCard> BusinessCard = new ArrayList<BusinessCard>();
public ArrayList<BusinessCard> getBusinessCard() { return BusinessCard; }
public BusinessCardStatusRequest setBusinessCard(ArrayList<BusinessCard> value) { this.BusinessCard = value; return this; }
}
public static class BusinessCard
{
public Integer CardId = null;
public Integer AgentId = null;
public Short NumRows = null;
public String Name = null;
public String Title = null;
public String Phone = null;
public String Fax = null;
public String Cell = null;
public String Email = null;
public String Address = null;
public String License = null;
public Date SubmittedDate = null;
public Date OrderedDate = null;
public Date ProofApprovedDate = null;
public String AdminApproved = null;
public Date AdminApprovedDate = null;
public Integer Quantity = null;
public String Notes = null;
public Integer ShippingAddressId = null;
public Integer BusinessCardFrontTypeId = null;
public Integer BusinessCardBackTypeId = null;
public String ArtURL = null;
public String OrderedURL = null;
public Address OrderedAddress = null;
public String OrderedUser = null;
public Integer getCardId() { return CardId; }
public BusinessCard setCardId(Integer value) { this.CardId = value; return this; }
public Integer getAgentId() { return AgentId; }
public BusinessCard setAgentId(Integer value) { this.AgentId = value; return this; }
public Short getNumRows() { return NumRows; }
public BusinessCard setNumRows(Short value) { this.NumRows = value; return this; }
public String getName() { return Name; }
public BusinessCard setName(String value) { this.Name = value; return this; }
public String getTitle() { return Title; }
public BusinessCard setTitle(String value) { this.Title = value; return this; }
public String getPhone() { return Phone; }
public BusinessCard setPhone(String value) { this.Phone = value; return this; }
public String getFax() { return Fax; }
public BusinessCard setFax(String value) { this.Fax = value; return this; }
public String getCell() { return Cell; }
public BusinessCard setCell(String value) { this.Cell = value; return this; }
public String getEmail() { return Email; }
public BusinessCard setEmail(String value) { this.Email = value; return this; }
public String getAddress() { return Address; }
public BusinessCard setAddress(String value) { this.Address = value; return this; }
public String getLicense() { return License; }
public BusinessCard setLicense(String value) { this.License = value; return this; }
public Date getSubmittedDate() { return SubmittedDate; }
public BusinessCard setSubmittedDate(Date value) { this.SubmittedDate = value; return this; }
public Date getOrderedDate() { return OrderedDate; }
public BusinessCard setOrderedDate(Date value) { this.OrderedDate = value; return this; }
public Date getProofApprovedDate() { return ProofApprovedDate; }
public BusinessCard setProofApprovedDate(Date value) { this.ProofApprovedDate = value; return this; }
public String getAdminApproved() { return AdminApproved; }
public BusinessCard setAdminApproved(String value) { this.AdminApproved = value; return this; }
public Date getAdminApprovedDate() { return AdminApprovedDate; }
public BusinessCard setAdminApprovedDate(Date value) { this.AdminApprovedDate = value; return this; }
public Integer getQuantity() { return Quantity; }
public BusinessCard setQuantity(Integer value) { this.Quantity = value; return this; }
public String getNotes() { return Notes; }
public BusinessCard setNotes(String value) { this.Notes = value; return this; }
public Integer getShippingAddressId() { return ShippingAddressId; }
public BusinessCard setShippingAddressId(Integer value) { this.ShippingAddressId = value; return this; }
public Integer getBusinessCardFrontTypeId() { return BusinessCardFrontTypeId; }
public BusinessCard setBusinessCardFrontTypeId(Integer value) { this.BusinessCardFrontTypeId = value; return this; }
public Integer getBusinessCardBackTypeId() { return BusinessCardBackTypeId; }
public BusinessCard setBusinessCardBackTypeId(Integer value) { this.BusinessCardBackTypeId = value; return this; }
public String getArtURL() { return ArtURL; }
public BusinessCard setArtURL(String value) { this.ArtURL = value; return this; }
public String getOrderedURL() { return OrderedURL; }
public BusinessCard setOrderedURL(String value) { this.OrderedURL = value; return this; }
public Address getOrderedAddress() { return OrderedAddress; }
public BusinessCard setOrderedAddress(Address value) { this.OrderedAddress = value; return this; }
public String getOrderedUser() { return OrderedUser; }
public BusinessCard setOrderedUser(String value) { this.OrderedUser = value; return this; }
}
public static class Address
{
public Integer ID = null;
public Short AddressTypeID = null;
public String AddressContact = null;
public String AttentionTo = null;
public String AddressLine1 = null;
public String AddressLine2 = null;
public String AddressLine3 = null;
public String AddressCity = null;
public String AddressState = null;
public String AddressZip = null;
public String AddressCountry = null;
public String PhoneNumber = null;
public String FaxNumber = null;
public UUID UID = null;
public String Name = null;
public Integer getId() { return ID; }
public Address setId(Integer value) { this.ID = value; return this; }
public Short getAddressTypeID() { return AddressTypeID; }
public Address setAddressTypeID(Short value) { this.AddressTypeID = value; return this; }
public String getAddressContact() { return AddressContact; }
public Address setAddressContact(String value) { this.AddressContact = value; return this; }
public String getAttentionTo() { return AttentionTo; }
public Address setAttentionTo(String value) { this.AttentionTo = value; return this; }
public String getAddressLine1() { return AddressLine1; }
public Address setAddressLine1(String value) { this.AddressLine1 = value; return this; }
public String getAddressLine2() { return AddressLine2; }
public Address setAddressLine2(String value) { this.AddressLine2 = value; return this; }
public String getAddressLine3() { return AddressLine3; }
public Address setAddressLine3(String value) { this.AddressLine3 = value; return this; }
public String getAddressCity() { return AddressCity; }
public Address setAddressCity(String value) { this.AddressCity = value; return this; }
public String getAddressState() { return AddressState; }
public Address setAddressState(String value) { this.AddressState = value; return this; }
public String getAddressZip() { return AddressZip; }
public Address setAddressZip(String value) { this.AddressZip = value; return this; }
public String getAddressCountry() { return AddressCountry; }
public Address setAddressCountry(String value) { this.AddressCountry = value; return this; }
public String getPhoneNumber() { return PhoneNumber; }
public Address setPhoneNumber(String value) { this.PhoneNumber = value; return this; }
public String getFaxNumber() { return FaxNumber; }
public Address setFaxNumber(String value) { this.FaxNumber = value; return this; }
public UUID getUid() { return UID; }
public Address setUid(UUID value) { this.UID = value; return this; }
public String getName() { return Name; }
public Address setName(String value) { this.Name = value; return this; }
}
public static class BusinessCardResponse
{
public ResponseStatus ResponseStatus = null;
public ArrayList<BusinessCard> BusinessCard = new ArrayList<BusinessCard>();
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public BusinessCardResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
public ArrayList<BusinessCard> getBusinessCard() { return BusinessCard; }
public BusinessCardResponse setBusinessCard(ArrayList<BusinessCard> value) { this.BusinessCard = value; return this; }
}
}
Java BusinessCardStatusRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/BusinessCardStatus HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
},
BusinessCard:
[
{
CardId: 0,
AgentId: 0,
NumRows: 0,
Name: String,
Title: String,
Phone: String,
Fax: String,
Cell: String,
Email: String,
Address: String,
License: String,
SubmittedDate: 0001-01-01,
OrderedDate: 0001-01-01,
ProofApprovedDate: 0001-01-01,
AdminApproved: String,
AdminApprovedDate: 0001-01-01,
Quantity: 0,
Notes: String,
ShippingAddressId: 0,
BusinessCardFrontTypeId: 0,
BusinessCardBackTypeId: 0,
ArtURL: String,
OrderedURL: String,
OrderedAddress:
{
ID: 0,
AddressTypeID: 0,
AddressContact: String,
AttentionTo: String,
AddressLine1: String,
AddressLine2: String,
AddressLine3: String,
AddressCity: String,
AddressState: String,
AddressZip: String,
AddressCountry: String,
PhoneNumber: String,
FaxNumber: String,
UID: 00000000000000000000000000000000,
Name: String
},
OrderedUser: String
}
]
}