/* Options: Date: 2025-05-10 02:34:27 Version: 8.40 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://active-ewebservice.biz/aeservices30/api //Package: //GlobalNamespace: dtos //AddPropertyAccessors: True //SettersReturnThis: True //AddServiceStackTypes: True //AddResponseStatus: False //AddDescriptionAsComments: True //AddImplicitVersion: IncludeTypes: ContractFulfillmentRequest.* //ExcludeTypes: //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.* */ import java.math.*; import java.util.*; import net.servicestack.client.*; public class dtos { /** * ContractFulfillmentRequires active-e Contracts Service.This API call used to be named C2BSetContractSerial. */ @Route(Path="/ContractFulfillment", Verbs="POST") // @Route(Path="/C2BSetContractSerial", Verbs="POST") @DataContract public static class ContractFulfillmentRequest extends BaseSecureRequest implements IReturn { @DataMember public String Ref = null; @DataMember public String Serial = null; @DataMember public Long SerialPk = null; @DataMember public BigDecimal CashPrice = null; @DataMember public String NewStatus = null; @DataMember public String Notes = null; @DataMember public Date DeliveryDate = null; @DataMember public ArrayList DeliveredAccessories = null; @DataMember public ArrayList DeletedAccessoryIds = null; @DataMember public ArrayList AddedAccessories = null; @DataMember public Date FirstDue = null; @DataMember public Integer CustomerAcct = null; @DataMember public Boolean Unlock = null; @DataMember public ArrayList MassUpdateItems = null; public String getRef() { return Ref; } public ContractFulfillmentRequest setRef(String value) { this.Ref = value; return this; } public String getSerial() { return Serial; } public ContractFulfillmentRequest setSerial(String value) { this.Serial = value; return this; } public Long getSerialPk() { return SerialPk; } public ContractFulfillmentRequest setSerialPk(Long value) { this.SerialPk = value; return this; } public BigDecimal getCashPrice() { return CashPrice; } public ContractFulfillmentRequest setCashPrice(BigDecimal value) { this.CashPrice = value; return this; } public String getNewStatus() { return NewStatus; } public ContractFulfillmentRequest setNewStatus(String value) { this.NewStatus = value; return this; } public String getNotes() { return Notes; } public ContractFulfillmentRequest setNotes(String value) { this.Notes = value; return this; } public Date getDeliveryDate() { return DeliveryDate; } public ContractFulfillmentRequest setDeliveryDate(Date value) { this.DeliveryDate = value; return this; } public ArrayList getDeliveredAccessories() { return DeliveredAccessories; } public ContractFulfillmentRequest setDeliveredAccessories(ArrayList value) { this.DeliveredAccessories = value; return this; } public ArrayList getDeletedAccessoryIds() { return DeletedAccessoryIds; } public ContractFulfillmentRequest setDeletedAccessoryIds(ArrayList value) { this.DeletedAccessoryIds = value; return this; } public ArrayList getAddedAccessories() { return AddedAccessories; } public ContractFulfillmentRequest setAddedAccessories(ArrayList value) { this.AddedAccessories = value; return this; } public Date getFirstDue() { return FirstDue; } public ContractFulfillmentRequest setFirstDue(Date value) { this.FirstDue = value; return this; } public Integer getCustomerAcct() { return CustomerAcct; } public ContractFulfillmentRequest setCustomerAcct(Integer value) { this.CustomerAcct = value; return this; } public Boolean isUnlock() { return Unlock; } public ContractFulfillmentRequest setUnlock(Boolean value) { this.Unlock = value; return this; } public ArrayList getMassUpdateItems() { return MassUpdateItems; } public ContractFulfillmentRequest setMassUpdateItems(ArrayList value) { this.MassUpdateItems = value; return this; } private static Object responseType = ContractFulfillmentResponse.class; public Object getResponseType() { return responseType; } } @DataContract public static class ContractFulfillmentResponse extends BaseResponse { @DataMember public ArrayList MassUpdateErrors = null; public ArrayList getMassUpdateErrors() { return MassUpdateErrors; } public ContractFulfillmentResponse setMassUpdateErrors(ArrayList value) { this.MassUpdateErrors = 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 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 DeliveredAccessory { @DataMember public Long Id = null; @DataMember public Boolean Delivered = null; public Long getId() { return Id; } public DeliveredAccessory setId(Long value) { this.Id = value; return this; } public Boolean isDelivered() { return Delivered; } public DeliveredAccessory setDelivered(Boolean value) { this.Delivered = value; return this; } } @DataContract(Name="Accessory") public static class Accessory { @DataMember public String Desc = null; @DataMember public BigDecimal Price = null; @DataMember public String Type = null; @DataMember public Integer CatNum = null; @DataMember public String Sku = null; @DataMember public Boolean Report = null; public String getDesc() { return Desc; } public Accessory setDesc(String value) { this.Desc = value; return this; } public BigDecimal getPrice() { return Price; } public Accessory setPrice(BigDecimal value) { this.Price = value; return this; } public String getType() { return Type; } public Accessory setType(String value) { this.Type = value; return this; } public Integer getCatNum() { return CatNum; } public Accessory setCatNum(Integer value) { this.CatNum = value; return this; } public String getSku() { return Sku; } public Accessory setSku(String value) { this.Sku = value; return this; } public Boolean isReport() { return Report; } public Accessory setReport(Boolean value) { this.Report = value; return this; } } @DataContract public static class UpdateContractObj { @DataMember public String Ref = null; @DataMember public String Serial = null; @DataMember public Long SerialPk = null; @DataMember public BigDecimal CashPrice = null; @DataMember public String NewStatus = null; @DataMember public String Notes = null; @DataMember public Date DeliveryDate = null; @DataMember public ArrayList DeliveredAccessories = null; @DataMember public ArrayList DeletedAccessoryIds = null; @DataMember public ArrayList AddedAccessories = null; @DataMember public Date FirstDue = null; @DataMember public Integer NewCustomerAcct = null; @DataMember public Boolean Unlock = null; public String getRef() { return Ref; } public UpdateContractObj setRef(String value) { this.Ref = value; return this; } public String getSerial() { return Serial; } public UpdateContractObj setSerial(String value) { this.Serial = value; return this; } public Long getSerialPk() { return SerialPk; } public UpdateContractObj setSerialPk(Long value) { this.SerialPk = value; return this; } public BigDecimal getCashPrice() { return CashPrice; } public UpdateContractObj setCashPrice(BigDecimal value) { this.CashPrice = value; return this; } public String getNewStatus() { return NewStatus; } public UpdateContractObj setNewStatus(String value) { this.NewStatus = value; return this; } public String getNotes() { return Notes; } public UpdateContractObj setNotes(String value) { this.Notes = value; return this; } public Date getDeliveryDate() { return DeliveryDate; } public UpdateContractObj setDeliveryDate(Date value) { this.DeliveryDate = value; return this; } public ArrayList getDeliveredAccessories() { return DeliveredAccessories; } public UpdateContractObj setDeliveredAccessories(ArrayList value) { this.DeliveredAccessories = value; return this; } public ArrayList getDeletedAccessoryIds() { return DeletedAccessoryIds; } public UpdateContractObj setDeletedAccessoryIds(ArrayList value) { this.DeletedAccessoryIds = value; return this; } public ArrayList getAddedAccessories() { return AddedAccessories; } public UpdateContractObj setAddedAccessories(ArrayList value) { this.AddedAccessories = value; return this; } public Date getFirstDue() { return FirstDue; } public UpdateContractObj setFirstDue(Date value) { this.FirstDue = value; return this; } public Integer getNewCustomerAcct() { return NewCustomerAcct; } public UpdateContractObj setNewCustomerAcct(Integer value) { this.NewCustomerAcct = value; return this; } public Boolean isUnlock() { return Unlock; } public UpdateContractObj setUnlock(Boolean value) { this.Unlock = value; return this; } } @DataContract public static class UpdateContractErrorObj { @DataMember public String Ref = null; @DataMember public String ErrorMessage = null; public String getRef() { return Ref; } public UpdateContractErrorObj setRef(String value) { this.Ref = value; return this; } public String getErrorMessage() { return ErrorMessage; } public UpdateContractErrorObj setErrorMessage(String value) { this.ErrorMessage = 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; } } }