/* Options: Date: 2025-05-05 17:17:05 Version: 8.61 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://prod-api-agency-orch-mb-dhc.rapp-customers.co.uk //Package: //GlobalNamespace: dtos //AddPropertyAccessors: True //SettersReturnThis: True //AddServiceStackTypes: True //AddResponseStatus: False //AddDescriptionAsComments: True //AddImplicitVersion: IncludeTypes: CreateOneAdminOrderRequest.* //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="/v1/oneAdmin/order", Verbs="POST") public static class CreateOneAdminOrderRequest extends CreateOrderBase implements IReturn, IGet { public Integer CustomerLocationId = null; public Integer getCustomerLocationId() { return CustomerLocationId; } public CreateOneAdminOrderRequest setCustomerLocationId(Integer value) { this.CustomerLocationId = value; return this; } private static Object responseType = CreateOrderResponse.class; public Object getResponseType() { return responseType; } } public static class CreateOrderResponse { public String Guid = null; public String Reference = null; public ResponseStatus ResponseStatus = null; public String BackOrderReference = null; public String getGuid() { return Guid; } public CreateOrderResponse setGuid(String value) { this.Guid = value; return this; } public String getReference() { return Reference; } public CreateOrderResponse setReference(String value) { this.Reference = value; return this; } public ResponseStatus getResponseStatus() { return ResponseStatus; } public CreateOrderResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; } public String getBackOrderReference() { return BackOrderReference; } public CreateOrderResponse setBackOrderReference(String value) { this.BackOrderReference = value; return this; } } public static enum Source { OnlineShowroom(1), OneAdmin(2); private final int value; Source(final int intValue) { value = intValue; } public int getValue() { return value; } } public static class Customer extends SalesforceCustomer { public UUID ProfileId = null; public Preferences Preferences = null; public UUID getProfileId() { return ProfileId; } public Customer setProfileId(UUID value) { this.ProfileId = value; return this; } public Preferences getPreferences() { return Preferences; } public Customer setPreferences(Preferences value) { this.Preferences = value; return this; } } public static class OutrightPurchase { public Boolean IsOutrightPurchase = null; public String Reference = null; public BigDecimal DiscountRate = null; public String Bm7NST = null; public Boolean IsBackOrder = null; public Boolean IsCOPConverter = null; public Boolean getIsOutrightPurchase() { return IsOutrightPurchase; } public OutrightPurchase setIsOutrightPurchase(Boolean value) { this.IsOutrightPurchase = value; return this; } public String getReference() { return Reference; } public OutrightPurchase setReference(String value) { this.Reference = value; return this; } public BigDecimal getDiscountRate() { return DiscountRate; } public OutrightPurchase setDiscountRate(BigDecimal value) { this.DiscountRate = value; return this; } public String getBm7NST() { return Bm7NST; } public OutrightPurchase setBm7NST(String value) { this.Bm7NST = value; return this; } public Boolean getIsBackOrder() { return IsBackOrder; } public OutrightPurchase setIsBackOrder(Boolean value) { this.IsBackOrder = value; return this; } public Boolean getIsCOPConverter() { return IsCOPConverter; } public OutrightPurchase setIsCOPConverter(Boolean value) { this.IsCOPConverter = value; return this; } } public static class Vehicle { public String Vin = null; public String getVin() { return Vin; } public Vehicle setVin(String value) { this.Vin = value; return this; } } public static class FinanceCriteria { public String Key = null; public String Name = null; public String Type = null; public Boolean IsDefault = null; public Term Term = null; public Deposit Deposit = null; public Mileage Mileage = null; public AdvanceRentals AdvanceRentals = null; public Boolean IsPersonalised = null; public String RegularPayment = null; public String PartExchange = null; public String Settlement = null; public String CustomerType = null; public VehicleType VehicleType = null; public String getKey() { return Key; } public FinanceCriteria setKey(String value) { this.Key = value; return this; } public String getName() { return Name; } public FinanceCriteria setName(String value) { this.Name = value; return this; } public String getType() { return Type; } public FinanceCriteria setType(String value) { this.Type = value; return this; } public Boolean getIsDefault() { return IsDefault; } public FinanceCriteria setIsDefault(Boolean value) { this.IsDefault = value; return this; } public Term getTerm() { return Term; } public FinanceCriteria setTerm(Term value) { this.Term = value; return this; } public Deposit getDeposit() { return Deposit; } public FinanceCriteria setDeposit(Deposit value) { this.Deposit = value; return this; } public Mileage getMileage() { return Mileage; } public FinanceCriteria setMileage(Mileage value) { this.Mileage = value; return this; } public AdvanceRentals getAdvanceRentals() { return AdvanceRentals; } public FinanceCriteria setAdvanceRentals(AdvanceRentals value) { this.AdvanceRentals = value; return this; } public Boolean getIsPersonalised() { return IsPersonalised; } public FinanceCriteria setIsPersonalised(Boolean value) { this.IsPersonalised = value; return this; } public String getRegularPayment() { return RegularPayment; } public FinanceCriteria setRegularPayment(String value) { this.RegularPayment = value; return this; } public String getPartExchange() { return PartExchange; } public FinanceCriteria setPartExchange(String value) { this.PartExchange = value; return this; } public String getSettlement() { return Settlement; } public FinanceCriteria setSettlement(String value) { this.Settlement = value; return this; } public String getCustomerType() { return CustomerType; } public FinanceCriteria setCustomerType(String value) { this.CustomerType = value; return this; } public VehicleType getVehicleType() { return VehicleType; } public FinanceCriteria setVehicleType(VehicleType value) { this.VehicleType = value; return this; } } public static enum MotabilityType { Pip(1), Wpms(2), Unassigned(3); private final int value; MotabilityType(final int intValue) { value = intValue; } public int getValue() { return value; } } public static class CreateOrderBase { public Source Source = null; public String GssnId = null; public String AdditionalInformation = null; public Boolean Cash = null; public Boolean Finance = null; public Customer Customer = null; public Vehicle Vehicle = null; public FinanceCriteria FinanceCriteria = null; public UUID BackOrderGuid = null; public String TagUrl = null; public OutrightPurchase OutrightPurchase = null; public Boolean Motability = null; public Integer MotabilityPricingId = null; public String FinanceApplicationReference = null; public Boolean Specialist = null; public String GasId = null; public ArrayList PersonalisedItemOfferIds = null; public String SuggestedVin = null; public String NonOptimumReason = null; public MotabilityType MotabilityType = null; public String EstimatedHandoverDate = null; public Source getSource() { return Source; } public CreateOrderBase setSource(Source value) { this.Source = value; return this; } public String getGssnId() { return GssnId; } public CreateOrderBase setGssnId(String value) { this.GssnId = value; return this; } public String getAdditionalInformation() { return AdditionalInformation; } public CreateOrderBase setAdditionalInformation(String value) { this.AdditionalInformation = value; return this; } public Boolean isCash() { return Cash; } public CreateOrderBase setCash(Boolean value) { this.Cash = value; return this; } public Boolean isFinance() { return Finance; } public CreateOrderBase setFinance(Boolean value) { this.Finance = value; return this; } public Customer getCustomer() { return Customer; } public CreateOrderBase setCustomer(Customer value) { this.Customer = value; return this; } public Vehicle getVehicle() { return Vehicle; } public CreateOrderBase setVehicle(Vehicle value) { this.Vehicle = value; return this; } public FinanceCriteria getFinanceCriteria() { return FinanceCriteria; } public CreateOrderBase setFinanceCriteria(FinanceCriteria value) { this.FinanceCriteria = value; return this; } public UUID getBackOrderGuid() { return BackOrderGuid; } public CreateOrderBase setBackOrderGuid(UUID value) { this.BackOrderGuid = value; return this; } public String getTagUrl() { return TagUrl; } public CreateOrderBase setTagUrl(String value) { this.TagUrl = value; return this; } public OutrightPurchase getOutrightPurchase() { return OutrightPurchase; } public CreateOrderBase setOutrightPurchase(OutrightPurchase value) { this.OutrightPurchase = value; return this; } public Boolean isMotability() { return Motability; } public CreateOrderBase setMotability(Boolean value) { this.Motability = value; return this; } public Integer getMotabilityPricingId() { return MotabilityPricingId; } public CreateOrderBase setMotabilityPricingId(Integer value) { this.MotabilityPricingId = value; return this; } public String getFinanceApplicationReference() { return FinanceApplicationReference; } public CreateOrderBase setFinanceApplicationReference(String value) { this.FinanceApplicationReference = value; return this; } public Boolean isSpecialist() { return Specialist; } public CreateOrderBase setSpecialist(Boolean value) { this.Specialist = value; return this; } public String getGasId() { return GasId; } public CreateOrderBase setGasId(String value) { this.GasId = value; return this; } public ArrayList getPersonalisedItemOfferIds() { return PersonalisedItemOfferIds; } public CreateOrderBase setPersonalisedItemOfferIds(ArrayList value) { this.PersonalisedItemOfferIds = value; return this; } public String getSuggestedVin() { return SuggestedVin; } public CreateOrderBase setSuggestedVin(String value) { this.SuggestedVin = value; return this; } public String getNonOptimumReason() { return NonOptimumReason; } public CreateOrderBase setNonOptimumReason(String value) { this.NonOptimumReason = value; return this; } public MotabilityType getMotabilityType() { return MotabilityType; } public CreateOrderBase setMotabilityType(MotabilityType value) { this.MotabilityType = value; return this; } public String getEstimatedHandoverDate() { return EstimatedHandoverDate; } public CreateOrderBase setEstimatedHandoverDate(String value) { this.EstimatedHandoverDate = value; return this; } } public static class Address { public String Property = null; public String Street = null; public String Town = null; public String County = null; public String Locality = null; public String Postcode = null; public String getProperty() { return Property; } public Address setProperty(String value) { this.Property = value; return this; } public String getStreet() { return Street; } public Address setStreet(String value) { this.Street = value; return this; } public String getTown() { return Town; } public Address setTown(String value) { this.Town = value; return this; } public String getCounty() { return County; } public Address setCounty(String value) { this.County = value; return this; } public String getLocality() { return Locality; } public Address setLocality(String value) { this.Locality = value; return this; } public String getPostcode() { return Postcode; } public Address setPostcode(String value) { this.Postcode = value; return this; } } public static class Preferences { public Boolean OptinEmail = null; public Boolean OptinPost = null; public Boolean OptinSMS = null; public Boolean OptinTelephone = null; public Boolean isOptinEmail() { return OptinEmail; } public Preferences setOptinEmail(Boolean value) { this.OptinEmail = value; return this; } public Boolean isOptinPost() { return OptinPost; } public Preferences setOptinPost(Boolean value) { this.OptinPost = value; return this; } public Boolean isOptinSMS() { return OptinSMS; } public Preferences setOptinSMS(Boolean value) { this.OptinSMS = value; return this; } public Boolean isOptinTelephone() { return OptinTelephone; } public Preferences setOptinTelephone(Boolean value) { this.OptinTelephone = value; return this; } } public static enum CustomerMode { Private(1), Business(2), Motability(3); private final int value; CustomerMode(final int intValue) { value = intValue; } public int getValue() { return value; } } public static class SalesforceCustomer implements ICustomer { public String CustomerId = null; public Boolean IsCiam = null; public String CompanyName = null; public String Title = null; public String Firstname = null; public String Surname = null; public String EmailAddress = null; public String Telephone = null; public Address Address = null; public CustomerMode Mode = null; public String getCustomerId() { return CustomerId; } public SalesforceCustomer setCustomerId(String value) { this.CustomerId = value; return this; } public Boolean getIsCiam() { return IsCiam; } public SalesforceCustomer setIsCiam(Boolean value) { this.IsCiam = value; return this; } public String getCompanyName() { return CompanyName; } public SalesforceCustomer setCompanyName(String value) { this.CompanyName = value; return this; } public String getTitle() { return Title; } public SalesforceCustomer setTitle(String value) { this.Title = value; return this; } public String getFirstname() { return Firstname; } public SalesforceCustomer setFirstname(String value) { this.Firstname = value; return this; } public String getSurname() { return Surname; } public SalesforceCustomer setSurname(String value) { this.Surname = value; return this; } public String getEmailAddress() { return EmailAddress; } public SalesforceCustomer setEmailAddress(String value) { this.EmailAddress = value; return this; } public String getTelephone() { return Telephone; } public SalesforceCustomer setTelephone(String value) { this.Telephone = value; return this; } public Address getAddress() { return Address; } public SalesforceCustomer setAddress(Address value) { this.Address = value; return this; } public CustomerMode getMode() { return Mode; } public SalesforceCustomer setMode(CustomerMode value) { this.Mode = value; return this; } } public static interface ICustomer { public Address Address = null; public String CompanyName = null; public String CustomerId = null; public String EmailAddress = null; public String Firstname = null; public Boolean IsCiam = null; public CustomerMode Mode = null; public String Surname = null; public String Telephone = null; public String Title = null; } public static class Term { public ArrayList