/* Options: Date: 2026-09-09 09:27:12 Version: 10.08 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://services.acct.2service.nl //Package: //GlobalNamespace: dtos //AddPropertyAccessors: True //SettersReturnThis: True //AddServiceStackTypes: True //AddResponseStatus: False //AddDescriptionAsComments: True //AddImplicitVersion: IncludeTypes: PostNewOrder.* //ExcludeTypes: //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,java.io.InputStream,net.servicestack.client.* */ import java.math.*; import java.util.*; import java.io.InputStream; import net.servicestack.client.*; public class dtos { @Route(Path="/dealers/order", Verbs="POST") public static class PostNewOrder extends AuthenticatedRequest implements IReturn { /** * Items to order. */ @ApiMember(Description="Items to order.", IsRequired=true, ParameterType="body") public NewOrderItemList Items = null; /** * Dropshipment indication. */ @ApiMember(Description="Dropshipment indication.", ParameterType="body") public Boolean UseDropshipment = null; /** * Delivery address. */ @ApiMember(Description="Delivery address.", ParameterType="body") public NewOrderAddress DeliveryAddress = null; public NewOrderItemList getItems() { return Items; } public PostNewOrder setItems(NewOrderItemList value) { this.Items = value; return this; } public Boolean isUseDropshipment() { return UseDropshipment; } public PostNewOrder setUseDropshipment(Boolean value) { this.UseDropshipment = value; return this; } public NewOrderAddress getDeliveryAddress() { return DeliveryAddress; } public PostNewOrder setDeliveryAddress(NewOrderAddress value) { this.DeliveryAddress = value; return this; } private static Object responseType = NewOrderResponse.class; public Object getResponseType() { return responseType; } } public static class NewOrderResponse extends OperationResult_1 { } public static class NewOrderItemList extends ArrayList { } public static class NewOrderAddress implements IAddress { /** * Company name. */ @ApiMember(Description="Company name.", ParameterType="body") public String CompanyName = null; /** * First name. */ @ApiMember(Description="First name.", ParameterType="body") public String FirstName = null; /** * Last name. */ @ApiMember(Description="Last name.", ParameterType="body") public String LastName = null; /** * Street name. */ @ApiMember(Description="Street name.", IsRequired=true, ParameterType="body") public String StreetName = null; /** * House number. */ @ApiMember(Description="House number.", IsRequired=true, ParameterType="body") public String HouseNumber = null; /** * House number addition. */ @ApiMember(Description="House number addition.", ParameterType="body") public String HouseNumberAddition = null; /** * Postal code. */ @ApiMember(Description="Postal code.", IsRequired=true, ParameterType="body") public String PostalCode = null; /** * City. */ @ApiMember(Description="City.", IsRequired=true, ParameterType="body") public String City = null; /** * Country code. */ @ApiMember(Description="Country code.", IsRequired=true, ParameterType="body") public String CountryCode = null; /** * Telephone number. */ @ApiMember(Description="Telephone number.", ParameterType="body") public String TelephoneNumber = null; public String getCompanyName() { return CompanyName; } public NewOrderAddress setCompanyName(String value) { this.CompanyName = value; return this; } public String getFirstName() { return FirstName; } public NewOrderAddress setFirstName(String value) { this.FirstName = value; return this; } public String getLastName() { return LastName; } public NewOrderAddress setLastName(String value) { this.LastName = value; return this; } public String getStreetName() { return StreetName; } public NewOrderAddress setStreetName(String value) { this.StreetName = value; return this; } public String getHouseNumber() { return HouseNumber; } public NewOrderAddress setHouseNumber(String value) { this.HouseNumber = value; return this; } public String getHouseNumberAddition() { return HouseNumberAddition; } public NewOrderAddress setHouseNumberAddition(String value) { this.HouseNumberAddition = value; return this; } public String getPostalCode() { return PostalCode; } public NewOrderAddress setPostalCode(String value) { this.PostalCode = value; return this; } public String getCity() { return City; } public NewOrderAddress setCity(String value) { this.City = value; return this; } public String getCountryCode() { return CountryCode; } public NewOrderAddress setCountryCode(String value) { this.CountryCode = value; return this; } public String getTelephoneNumber() { return TelephoneNumber; } public NewOrderAddress setTelephoneNumber(String value) { this.TelephoneNumber = value; return this; } } public static class AuthenticatedRequest { /** * Session token received from successful authentication. */ @ApiMember(Description="Session token received from successful authentication.", IsRequired=true, ParameterType="query") public String SessionToken = null; public String getSessionToken() { return SessionToken; } public AuthenticatedRequest setSessionToken(String value) { this.SessionToken = value; return this; } } public static class NewOrderResult { /** * Number for the order that has been placed. */ @ApiMember(Description="Number for the order that has been placed.", ParameterType="model") public String OrderNumber = null; public String getOrderNumber() { return OrderNumber; } public NewOrderResult setOrderNumber(String value) { this.OrderNumber = value; return this; } } public static class OperationResult_1 extends OperationResult { /** * Result value */ @ApiMember(Description="Result value", ParameterType="model") public T Result = null; public T getResult() { return Result; } public OperationResult_1 setResult(T value) { this.Result = value; return this; } } public static class OperationResult { /** * Specifies if the operation was successful. */ @ApiMember(Description="Specifies if the operation was successful.", ParameterType="model") public Boolean IsSuccessful = null; /** * States error message in case of unsuccessful operation. */ @ApiMember(Description="States error message in case of unsuccessful operation.", ParameterType="model") public String ErrorMessage = null; public Boolean getIsSuccessful() { return IsSuccessful; } public OperationResult setIsSuccessful(Boolean value) { this.IsSuccessful = value; return this; } public String getErrorMessage() { return ErrorMessage; } public OperationResult setErrorMessage(String value) { this.ErrorMessage = value; return this; } } public static class NewOrderItem { /** * Unique ID for the part. */ @ApiMember(Description="Unique ID for the part.", IsRequired=true, ParameterType="body") public Integer PartId = null; /** * Quantity to order. */ @ApiMember(Description="Quantity to order.", IsRequired=true, ParameterType="body") public Integer Quantity = null; /** * Custom reference. */ @ApiMember(Description="Custom reference.", ParameterType="body") public String Reference = null; public Integer getPartId() { return PartId; } public NewOrderItem setPartId(Integer value) { this.PartId = value; return this; } public Integer getQuantity() { return Quantity; } public NewOrderItem setQuantity(Integer value) { this.Quantity = value; return this; } public String getReference() { return Reference; } public NewOrderItem setReference(String value) { this.Reference = value; return this; } } public static interface IAddress implements ITaxRateContainer { public Integer Id = null; public Integer CustomerId = null; public AddressType Type = null; public String CompanyName = null; public String FirstName = null; public String LastName = null; public String StreetName = null; public String HouseNumber = null; public String HouseNumberAddition = null; public String PostalCode = null; public String City = null; public String CountryCode = null; public String TelephoneNumber = null; } public static interface ITaxRateContainer { public BigDecimal TaxRate = null; } public static enum AddressType { Invoice, Delivery, Dropshipment; } }