| GET | /App/{UserId}/OrderList |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
import com.google.gson.annotations.*;
import com.google.gson.reflect.*;
public class dtos
{
@DataContract
public static class GetOrderList extends Eras2AppServiceModelBase
{
}
@DataContract
public static class Eras2AppServiceModelBase
{
@DataMember(Name="UserId")
@SerializedName("UserId")
public UUID userId = null;
public UUID getUserId() { return userId; }
public Eras2AppServiceModelBase setUserId(UUID value) { this.userId = value; return this; }
}
public static class GetOrderListResponse
{
@DataMember(Name="Orders")
@SerializedName("Orders")
public ArrayList<Order> orders = null;
public ResponseStatus responseStatus = null;
public ArrayList<Order> getOrders() { return orders; }
public GetOrderListResponse setOrders(ArrayList<Order> value) { this.orders = value; return this; }
public ResponseStatus getResponseStatus() { return responseStatus; }
public GetOrderListResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
}
@DataContract
public static class Order
{
@DataMember(Name="Guid")
@SerializedName("Guid")
public UUID guid = null;
@DataMember(Name="LastModified")
@SerializedName("LastModified")
public Date lastModified = null;
@DataMember(Name="AbrechnungseinheitGuid")
@SerializedName("AbrechnungseinheitGuid")
public UUID abrechnungseinheitGuid = null;
@DataMember(Name="AuftragNummer")
@SerializedName("AuftragNummer")
public String number = null;
@DataMember(Name="Bezeichnung")
@SerializedName("Bezeichnung")
public String label = null;
@DataMember(Name="Anmerkung")
@SerializedName("Anmerkung")
public String note = null;
@DataMember(Name="UnterschriftBenoetigt")
@SerializedName("UnterschriftBenoetigt")
public Boolean isSignatureRequired = null;
@DataMember(Name="Erstellungsdatum")
@SerializedName("Erstellungsdatum")
public Date createdDate = null;
@DataMember(Name="AuftragZustand")
@SerializedName("AuftragZustand")
public OrderState orderState = null;
@DataMember(Name="Termine")
@SerializedName("Termine")
public IList<Appointment> appointments = null;
@DataMember(Name="AuftragsPositionen")
@SerializedName("AuftragsPositionen")
public IList<OrderPosition> orderPositions = null;
@DataMember(Name="NutzeinheitZustaende")
@SerializedName("NutzeinheitZustaende")
public IList<NutzeinheitOrderState> nutzeinheitOrderStates = null;
@DataMember(Name="GeraeteZustaende")
@SerializedName("GeraeteZustaende")
public IList<DeviceOrderState> deviceOrderStates = null;
@DataMember(Name="Auftraggeber")
@SerializedName("Auftraggeber")
public Orderer orderer = null;
@DataMember(Name="Unterschriften")
@SerializedName("Unterschriften")
public IList<Signature> signatures = null;
public UUID getGuid() { return guid; }
public Order setGuid(UUID value) { this.guid = value; return this; }
public Date getLastModified() { return lastModified; }
public Order setLastModified(Date value) { this.lastModified = value; return this; }
public UUID getAbrechnungseinheitGuid() { return abrechnungseinheitGuid; }
public Order setAbrechnungseinheitGuid(UUID value) { this.abrechnungseinheitGuid = value; return this; }
public String getNumber() { return number; }
public Order setNumber(String value) { this.number = value; return this; }
public String getLabel() { return label; }
public Order setLabel(String value) { this.label = value; return this; }
public String getNote() { return note; }
public Order setNote(String value) { this.note = value; return this; }
public Boolean getIsSignatureRequired() { return isSignatureRequired; }
public Order setIsSignatureRequired(Boolean value) { this.isSignatureRequired = value; return this; }
public Date getCreatedDate() { return createdDate; }
public Order setCreatedDate(Date value) { this.createdDate = value; return this; }
public OrderState getOrderState() { return orderState; }
public Order setOrderState(OrderState value) { this.orderState = value; return this; }
public IList<Appointment> getAppointments() { return appointments; }
public Order setAppointments(IList<Appointment> value) { this.appointments = value; return this; }
public IList<OrderPosition> getOrderPositions() { return orderPositions; }
public Order setOrderPositions(IList<OrderPosition> value) { this.orderPositions = value; return this; }
public IList<NutzeinheitOrderState> getNutzeinheitOrderStates() { return nutzeinheitOrderStates; }
public Order setNutzeinheitOrderStates(IList<NutzeinheitOrderState> value) { this.nutzeinheitOrderStates = value; return this; }
public IList<DeviceOrderState> getDeviceOrderStates() { return deviceOrderStates; }
public Order setDeviceOrderStates(IList<DeviceOrderState> value) { this.deviceOrderStates = value; return this; }
public Orderer getOrderer() { return orderer; }
public Order setOrderer(Orderer value) { this.orderer = value; return this; }
public IList<Signature> getSignatures() { return signatures; }
public Order setSignatures(IList<Signature> value) { this.signatures = value; return this; }
}
@DataContract
public static class OrderState
{
@DataMember(Name="LastModified")
@SerializedName("LastModified")
public Date lastModified = null;
@DataMember(Name="AuftragArten")
@SerializedName("AuftragArten")
public IList<OrderKind> kinds = null;
@DataMember(Name="Bearbeitungsstatus")
@SerializedName("Bearbeitungsstatus")
public ProcessState processState = null;
@DataMember(Name="AbgeschlossenDatum")
@SerializedName("AbgeschlossenDatum")
public Date completedDate = null;
public Date getLastModified() { return lastModified; }
public OrderState setLastModified(Date value) { this.lastModified = value; return this; }
public IList<OrderKind> getKinds() { return kinds; }
public OrderState setKinds(IList<OrderKind> value) { this.kinds = value; return this; }
public ProcessState getProcessState() { return processState; }
public OrderState setProcessState(ProcessState value) { this.processState = value; return this; }
public Date getCompletedDate() { return completedDate; }
public OrderState setCompletedDate(Date value) { this.completedDate = value; return this; }
}
public static enum ProcessState
{
InProgress,
Updating,
Creating,
Completed;
}
@DataContract
public static class Appointment
{
@DataMember(Name="Guid")
@SerializedName("Guid")
public UUID guid = null;
@DataMember(Name="Von")
@SerializedName("Von")
public Date from = null;
@DataMember(Name="Bis")
@SerializedName("Bis")
public Date to = null;
@DataMember(Name="Monteure")
@SerializedName("Monteure")
public IList<AppointmentStoreUser> appointmentStoreUsers = null;
@DataMember(Name="Nutzeinheiten")
@SerializedName("Nutzeinheiten")
public IList<AppointmentNutzeinheit> appointmentNutzeinheiten = null;
public UUID getGuid() { return guid; }
public Appointment setGuid(UUID value) { this.guid = value; return this; }
public Date getFrom() { return from; }
public Appointment setFrom(Date value) { this.from = value; return this; }
public Date getTo() { return to; }
public Appointment setTo(Date value) { this.to = value; return this; }
public IList<AppointmentStoreUser> getAppointmentStoreUsers() { return appointmentStoreUsers; }
public Appointment setAppointmentStoreUsers(IList<AppointmentStoreUser> value) { this.appointmentStoreUsers = value; return this; }
public IList<AppointmentNutzeinheit> getAppointmentNutzeinheiten() { return appointmentNutzeinheiten; }
public Appointment setAppointmentNutzeinheiten(IList<AppointmentNutzeinheit> value) { this.appointmentNutzeinheiten = value; return this; }
}
@DataContract
public static class AppointmentStoreUser
{
@DataMember(Name="MonteurGuid")
@SerializedName("MonteurGuid")
public UUID storeUserId = null;
public UUID getStoreUserId() { return storeUserId; }
public AppointmentStoreUser setStoreUserId(UUID value) { this.storeUserId = value; return this; }
}
@DataContract
public static class AppointmentNutzeinheit
{
@DataMember(Name="NutzeinheitGuid")
@SerializedName("NutzeinheitGuid")
public UUID nutzeinheitGuid = null;
public UUID getNutzeinheitGuid() { return nutzeinheitGuid; }
public AppointmentNutzeinheit setNutzeinheitGuid(UUID value) { this.nutzeinheitGuid = value; return this; }
}
@DataContract
public static class OrderPosition
{
@DataMember(Name="Guid")
@SerializedName("Guid")
public UUID guid = null;
@DataMember(Name="LastModified")
@SerializedName("LastModified")
public Date lastModified = null;
@DataMember(Name="Anmerkung")
@SerializedName("Anmerkung")
public String note = null;
@DataMember(Name="SollMenge")
@SerializedName("SollMenge")
public Integer requiredQuantity = null;
@DataMember(Name="IstMenge")
@SerializedName("IstMenge")
public Integer actualQuantity = null;
@DataMember(Name="NutzeinheitOrderPositions")
@SerializedName("NutzeinheitOrderPositions")
public IList<NutzeinheitOrderPosition> nutzeinheitOrderPositions = null;
@DataMember(Name="ArtikelGuid")
@SerializedName("ArtikelGuid")
public UUID articleGuid = null;
public UUID getGuid() { return guid; }
public OrderPosition setGuid(UUID value) { this.guid = value; return this; }
public Date getLastModified() { return lastModified; }
public OrderPosition setLastModified(Date value) { this.lastModified = value; return this; }
public String getNote() { return note; }
public OrderPosition setNote(String value) { this.note = value; return this; }
public Integer getRequiredQuantity() { return requiredQuantity; }
public OrderPosition setRequiredQuantity(Integer value) { this.requiredQuantity = value; return this; }
public Integer getActualQuantity() { return actualQuantity; }
public OrderPosition setActualQuantity(Integer value) { this.actualQuantity = value; return this; }
public IList<NutzeinheitOrderPosition> getNutzeinheitOrderPositions() { return nutzeinheitOrderPositions; }
public OrderPosition setNutzeinheitOrderPositions(IList<NutzeinheitOrderPosition> value) { this.nutzeinheitOrderPositions = value; return this; }
public UUID getArticleGuid() { return articleGuid; }
public OrderPosition setArticleGuid(UUID value) { this.articleGuid = value; return this; }
}
@DataContract
public static class NutzeinheitOrderPosition
{
@DataMember(Name="NutzeinheitGuid")
@SerializedName("NutzeinheitGuid")
public UUID nutzeinheitGuid = null;
public UUID getNutzeinheitGuid() { return nutzeinheitGuid; }
public NutzeinheitOrderPosition setNutzeinheitGuid(UUID value) { this.nutzeinheitGuid = value; return this; }
}
@DataContract
public static class NutzeinheitOrderState
{
@DataMember(Name="NutzeinheitGuid")
@SerializedName("NutzeinheitGuid")
public UUID nutzeinheitGuid = null;
@DataMember(Name="LastModified")
@SerializedName("LastModified")
public Date lastModified = null;
@DataMember(Name="AuftragArten")
@SerializedName("AuftragArten")
public IList<NutzeinheitOrderKind> orderKinds = null;
@DataMember(Name="Bearbeitungsstatus")
@SerializedName("Bearbeitungsstatus")
public ProcessState processState = null;
@DataMember(Name="AbgeschlossenDatum")
@SerializedName("AbgeschlossenDatum")
public Date completedDate = null;
@DataMember(Name="OsVersion")
@SerializedName("OsVersion")
public String osVersion = null;
@DataMember(Name="AppVersion")
@SerializedName("AppVersion")
public String appVersion = null;
@DataMember(Name="OsPlatform")
@SerializedName("OsPlatform")
public String osPlatform = null;
@DataMember(Name="AppGeraeteNummmer")
@SerializedName("AppGeraeteNummmer")
public String appDeviceNumber = null;
@DataMember(Name="AmwInfoKeyGuid")
@SerializedName("AmwInfoKeyGuid")
public UUID amwInfoKeyGuid = null;
public UUID getNutzeinheitGuid() { return nutzeinheitGuid; }
public NutzeinheitOrderState setNutzeinheitGuid(UUID value) { this.nutzeinheitGuid = value; return this; }
public Date getLastModified() { return lastModified; }
public NutzeinheitOrderState setLastModified(Date value) { this.lastModified = value; return this; }
public IList<NutzeinheitOrderKind> getOrderKinds() { return orderKinds; }
public NutzeinheitOrderState setOrderKinds(IList<NutzeinheitOrderKind> value) { this.orderKinds = value; return this; }
public ProcessState getProcessState() { return processState; }
public NutzeinheitOrderState setProcessState(ProcessState value) { this.processState = value; return this; }
public Date getCompletedDate() { return completedDate; }
public NutzeinheitOrderState setCompletedDate(Date value) { this.completedDate = value; return this; }
public String getOsVersion() { return osVersion; }
public NutzeinheitOrderState setOsVersion(String value) { this.osVersion = value; return this; }
public String getAppVersion() { return appVersion; }
public NutzeinheitOrderState setAppVersion(String value) { this.appVersion = value; return this; }
public String getOsPlatform() { return osPlatform; }
public NutzeinheitOrderState setOsPlatform(String value) { this.osPlatform = value; return this; }
public String getAppDeviceNumber() { return appDeviceNumber; }
public NutzeinheitOrderState setAppDeviceNumber(String value) { this.appDeviceNumber = value; return this; }
public UUID getAmwInfoKeyGuid() { return amwInfoKeyGuid; }
public NutzeinheitOrderState setAmwInfoKeyGuid(UUID value) { this.amwInfoKeyGuid = value; return this; }
}
@DataContract
public static class DeviceOrderState
{
@DataMember(Name="GeraeteGuid")
@SerializedName("GeraeteGuid")
public UUID deviceGuid = null;
@DataMember(Name="AuftragGuid")
@SerializedName("AuftragGuid")
public UUID orderGuid = null;
@DataMember(Name="AuftragArt")
@SerializedName("AuftragArt")
public DeviceOrderKind orderKind = null;
@DataMember(Name="Bearbeitungsstatus")
@SerializedName("Bearbeitungsstatus")
public ProcessState processState = null;
@DataMember(Name="AbgeschlossenDatum")
@SerializedName("AbgeschlossenDatum")
public Date completedDate = null;
@DataMember(Name="AmwInfo")
@SerializedName("AmwInfo")
public String amwInfo = null;
public UUID getDeviceGuid() { return deviceGuid; }
public DeviceOrderState setDeviceGuid(UUID value) { this.deviceGuid = value; return this; }
public UUID getOrderGuid() { return orderGuid; }
public DeviceOrderState setOrderGuid(UUID value) { this.orderGuid = value; return this; }
public DeviceOrderKind getOrderKind() { return orderKind; }
public DeviceOrderState setOrderKind(DeviceOrderKind value) { this.orderKind = value; return this; }
public ProcessState getProcessState() { return processState; }
public DeviceOrderState setProcessState(ProcessState value) { this.processState = value; return this; }
public Date getCompletedDate() { return completedDate; }
public DeviceOrderState setCompletedDate(Date value) { this.completedDate = value; return this; }
public String getAmwInfo() { return amwInfo; }
public DeviceOrderState setAmwInfo(String value) { this.amwInfo = value; return this; }
}
public static enum DeviceOrderKind
{
Assembly,
Maintenance,
Exchange,
Reading,
Inspection,
MainReading;
}
@DataContract
public static class Orderer
{
@DataMember(Name="Guid")
@SerializedName("Guid")
public UUID guid = null;
@DataMember(Name="Person")
@SerializedName("Person")
public Person person = null;
@DataMember(Name="BetrieblichePosition")
@SerializedName("BetrieblichePosition")
public String businessPosition = null;
public UUID getGuid() { return guid; }
public Orderer setGuid(UUID value) { this.guid = value; return this; }
public Person getPerson() { return person; }
public Orderer setPerson(Person value) { this.person = value; return this; }
public String getBusinessPosition() { return businessPosition; }
public Orderer setBusinessPosition(String value) { this.businessPosition = value; return this; }
}
@DataContract
public static class Person
{
@DataMember(Name="Guid")
@SerializedName("Guid")
public UUID guid = null;
@DataMember(Name="LastModified")
@SerializedName("LastModified")
public Date lastModified = null;
@DataMember(Name="Nachname1")
@SerializedName("Nachname1")
public String lastname1 = null;
@DataMember(Name="Nachname2")
@SerializedName("Nachname2")
public String lastname2 = null;
@DataMember(Name="Nachname3")
@SerializedName("Nachname3")
public String lastname3 = null;
@DataMember(Name="Vorname1")
@SerializedName("Vorname1")
public String firstname1 = null;
@DataMember(Name="Vorname2")
@SerializedName("Vorname2")
public String firstname2 = null;
@DataMember(Name="Anmerkung")
@SerializedName("Anmerkung")
public String note = null;
@DataMember(Name="Anrede")
@SerializedName("Anrede")
public String salutation = null;
@DataMember(Name="Titel")
@SerializedName("Titel")
public String title = null;
@DataMember(Name="PersonKommunikationen")
@SerializedName("PersonKommunikationen")
public ArrayList<PersonCommunication> personCommunications = null;
public UUID getGuid() { return guid; }
public Person setGuid(UUID value) { this.guid = value; return this; }
public Date getLastModified() { return lastModified; }
public Person setLastModified(Date value) { this.lastModified = value; return this; }
public String getLastname1() { return lastname1; }
public Person setLastname1(String value) { this.lastname1 = value; return this; }
public String getLastname2() { return lastname2; }
public Person setLastname2(String value) { this.lastname2 = value; return this; }
public String getLastname3() { return lastname3; }
public Person setLastname3(String value) { this.lastname3 = value; return this; }
public String getFirstname1() { return firstname1; }
public Person setFirstname1(String value) { this.firstname1 = value; return this; }
public String getFirstname2() { return firstname2; }
public Person setFirstname2(String value) { this.firstname2 = value; return this; }
public String getNote() { return note; }
public Person setNote(String value) { this.note = value; return this; }
public String getSalutation() { return salutation; }
public Person setSalutation(String value) { this.salutation = value; return this; }
public String getTitle() { return title; }
public Person setTitle(String value) { this.title = value; return this; }
public ArrayList<PersonCommunication> getPersonCommunications() { return personCommunications; }
public Person setPersonCommunications(ArrayList<PersonCommunication> value) { this.personCommunications = value; return this; }
}
@DataContract
public static class PersonCommunication
{
@DataMember(Name="Guid")
@SerializedName("Guid")
public UUID guid = null;
@DataMember(Name="LastModified")
@SerializedName("LastModified")
public Date lastModified = null;
@DataMember(Name="Adresse")
@SerializedName("Adresse")
public String address = null;
@DataMember(Name="Anmerkung")
@SerializedName("Anmerkung")
public String note = null;
@DataMember(Name="KommunikationsFunktionGuid")
@SerializedName("KommunikationsFunktionGuid")
public UUID communicationFeatureGuid = null;
public UUID getGuid() { return guid; }
public PersonCommunication setGuid(UUID value) { this.guid = value; return this; }
public Date getLastModified() { return lastModified; }
public PersonCommunication setLastModified(Date value) { this.lastModified = value; return this; }
public String getAddress() { return address; }
public PersonCommunication setAddress(String value) { this.address = value; return this; }
public String getNote() { return note; }
public PersonCommunication setNote(String value) { this.note = value; return this; }
public UUID getCommunicationFeatureGuid() { return communicationFeatureGuid; }
public PersonCommunication setCommunicationFeatureGuid(UUID value) { this.communicationFeatureGuid = value; return this; }
}
@DataContract
public static class Signature
{
@DataMember(Name="Guid")
@SerializedName("Guid")
public UUID guid = null;
@DataMember(Name="Timestamp")
@SerializedName("Timestamp")
public Date recordedDate = null;
@DataMember(Name="UnterschriftArt")
@SerializedName("UnterschriftArt")
public SignatureKind kind = null;
@DataMember(Name="NutzeinheitGuid")
@SerializedName("NutzeinheitGuid")
public UUID nutzeinheitGuid = null;
public UUID getGuid() { return guid; }
public Signature setGuid(UUID value) { this.guid = value; return this; }
public Date getRecordedDate() { return recordedDate; }
public Signature setRecordedDate(Date value) { this.recordedDate = value; return this; }
public SignatureKind getKind() { return kind; }
public Signature setKind(SignatureKind value) { this.kind = value; return this; }
public UUID getNutzeinheitGuid() { return nutzeinheitGuid; }
public Signature setNutzeinheitGuid(UUID value) { this.nutzeinheitGuid = value; return this; }
}
public static enum SignatureKind
{
Nutzer,
Technician;
}
}
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 /App/{UserId}/OrderList HTTP/1.1
Host: andreiuologmbh-servamw.eras-online.de
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Orders:
[
{
Guid: 00000000000000000000000000000000,
LastModified: 0001-01-01T00:00:00Z,
AbrechnungseinheitGuid: 00000000000000000000000000000000,
AuftragNummer: String,
Bezeichnung: String,
Anmerkung: String,
UnterschriftBenoetigt: False,
Erstellungsdatum: 0001-01-01T00:00:00Z,
AuftragZustand:
{
LastModified: 0001-01-01T00:00:00Z,
Bearbeitungsstatus: InProgress,
AbgeschlossenDatum: 0001-01-01T00:00:00Z
},
Auftraggeber:
{
Guid: 00000000000000000000000000000000,
Person:
{
Guid: 00000000000000000000000000000000,
LastModified: 0001-01-01T00:00:00Z,
Nachname1: String,
Nachname2: String,
Nachname3: String,
Vorname1: String,
Vorname2: String,
Anmerkung: String,
Anrede: String,
Titel: String
},
BetrieblichePosition: String
}
}
],
responseStatus:
{
errorCode: String,
message: String,
stackTrace: String,
errors:
[
{
errorCode: String,
fieldName: String,
message: String,
meta:
{
String: String
}
}
],
meta:
{
String: String
}
}
}