/* Options: Date: 2026-03-07 20:28:55 Version: 6.110 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://etc-api.vsmlab.vn //Package: //GlobalNamespace: dtos //AddPropertyAccessors: True //SettersReturnThis: True //AddServiceStackTypes: True //AddResponseStatus: False //AddDescriptionAsComments: True //AddImplicitVersion: IncludeTypes: GetAdvancedWorkflowInfoRequest.* //ExcludeTypes: //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.* */ import java.math.*; import java.util.*; import net.servicestack.client.*; public class dtos { @Route(Path="/workflow/{WorkflowId}/advanced-info", Verbs="GET") public static class GetAdvancedWorkflowInfoRequest implements IReturn { public Integer workflowId = null; public Integer getWorkflowId() { return workflowId; } public GetAdvancedWorkflowInfoRequest setWorkflowId(Integer value) { this.workflowId = value; return this; } private static Object responseType = AdvancedWorkflowInfoResponse.class; public Object getResponseType() { return responseType; } } public static class AdvancedWorkflowInfoResponse { public Integer code = null; public String message = null; public AdvancedWorkflowInfoData data = null; public Integer getCode() { return code; } public AdvancedWorkflowInfoResponse setCode(Integer value) { this.code = value; return this; } public String getMessage() { return message; } public AdvancedWorkflowInfoResponse setMessage(String value) { this.message = value; return this; } public AdvancedWorkflowInfoData getData() { return data; } public AdvancedWorkflowInfoResponse setData(AdvancedWorkflowInfoData value) { this.data = value; return this; } } public static class AdvancedWorkflowInfoData { public Provider provider = null; public Contract contract = null; public Estimate estimate = null; public ArrayList purchaseHistory = null; public Provider getProvider() { return provider; } public AdvancedWorkflowInfoData setProvider(Provider value) { this.provider = value; return this; } public Contract getContract() { return contract; } public AdvancedWorkflowInfoData setContract(Contract value) { this.contract = value; return this; } public Estimate getEstimate() { return estimate; } public AdvancedWorkflowInfoData setEstimate(Estimate value) { this.estimate = value; return this; } public ArrayList getPurchaseHistory() { return purchaseHistory; } public AdvancedWorkflowInfoData setPurchaseHistory(ArrayList value) { this.purchaseHistory = value; return this; } } public static class Contract { public Integer id = null; @Required() public Integer workflowId = null; @StringLength(100) public String contractNo = null; @StringLength(100) public String contractDate = null; public String serviceName = null; @StringLength(100) public String contractType = null; public String objective = null; public String location = null; public Date createdAt = null; @Required() public Integer createdBy = null; public Integer getId() { return id; } public Contract setId(Integer value) { this.id = value; return this; } public Integer getWorkflowId() { return workflowId; } public Contract setWorkflowId(Integer value) { this.workflowId = value; return this; } public String getContractNo() { return contractNo; } public Contract setContractNo(String value) { this.contractNo = value; return this; } public String getContractDate() { return contractDate; } public Contract setContractDate(String value) { this.contractDate = value; return this; } public String getServiceName() { return serviceName; } public Contract setServiceName(String value) { this.serviceName = value; return this; } public String getContractType() { return contractType; } public Contract setContractType(String value) { this.contractType = value; return this; } public String getObjective() { return objective; } public Contract setObjective(String value) { this.objective = value; return this; } public String getLocation() { return location; } public Contract setLocation(String value) { this.location = value; return this; } public Date getCreatedAt() { return createdAt; } public Contract setCreatedAt(Date value) { this.createdAt = value; return this; } public Integer getCreatedBy() { return createdBy; } public Contract setCreatedBy(Integer value) { this.createdBy = value; return this; } } public static class Estimate { public Integer id = null; @Required() public Integer workflowId = null; public Integer valueBeforeTax = null; public Integer taxAmount = null; public Integer totalAmount = null; public Date createdAt = null; @Required() public Integer createdBy = null; public Integer getId() { return id; } public Estimate setId(Integer value) { this.id = value; return this; } public Integer getWorkflowId() { return workflowId; } public Estimate setWorkflowId(Integer value) { this.workflowId = value; return this; } public Integer getValueBeforeTax() { return valueBeforeTax; } public Estimate setValueBeforeTax(Integer value) { this.valueBeforeTax = value; return this; } public Integer getTaxAmount() { return taxAmount; } public Estimate setTaxAmount(Integer value) { this.taxAmount = value; return this; } public Integer getTotalAmount() { return totalAmount; } public Estimate setTotalAmount(Integer value) { this.totalAmount = value; return this; } public Date getCreatedAt() { return createdAt; } public Estimate setCreatedAt(Date value) { this.createdAt = value; return this; } public Integer getCreatedBy() { return createdBy; } public Estimate setCreatedBy(Integer value) { this.createdBy = value; return this; } } public static class PurchaseHistory { public Integer id = null; @Required() public Integer workflowId = null; public Integer sequenceNo = null; public String detail = null; @StringLength(150) public String unit = null; public Integer quantity = null; public Integer unitPrice = null; public Integer amount = null; public String note = null; public String name = null; public String purpose = null; public Date createdAt = null; @Required() public Integer createdBy = null; public Integer getId() { return id; } public PurchaseHistory setId(Integer value) { this.id = value; return this; } public Integer getWorkflowId() { return workflowId; } public PurchaseHistory setWorkflowId(Integer value) { this.workflowId = value; return this; } public Integer getSequenceNo() { return sequenceNo; } public PurchaseHistory setSequenceNo(Integer value) { this.sequenceNo = value; return this; } public String getDetail() { return detail; } public PurchaseHistory setDetail(String value) { this.detail = value; return this; } public String getUnit() { return unit; } public PurchaseHistory setUnit(String value) { this.unit = value; return this; } public Integer getQuantity() { return quantity; } public PurchaseHistory setQuantity(Integer value) { this.quantity = value; return this; } public Integer getUnitPrice() { return unitPrice; } public PurchaseHistory setUnitPrice(Integer value) { this.unitPrice = value; return this; } public Integer getAmount() { return amount; } public PurchaseHistory setAmount(Integer value) { this.amount = value; return this; } public String getNote() { return note; } public PurchaseHistory setNote(String value) { this.note = value; return this; } public String getName() { return name; } public PurchaseHistory setName(String value) { this.name = value; return this; } public String getPurpose() { return purpose; } public PurchaseHistory setPurpose(String value) { this.purpose = value; return this; } public Date getCreatedAt() { return createdAt; } public PurchaseHistory setCreatedAt(Date value) { this.createdAt = value; return this; } public Integer getCreatedBy() { return createdBy; } public PurchaseHistory setCreatedBy(Integer value) { this.createdBy = value; return this; } } public static class Provider { public Integer id = null; public String name = null; public String taxCode = null; public String address = null; public String email = null; public String phone = null; public String additionalInfo = null; public Integer providerType = null; public Date createdAt = null; public Integer createdBy = null; public Integer getId() { return id; } public Provider setId(Integer value) { this.id = value; return this; } public String getName() { return name; } public Provider setName(String value) { this.name = value; return this; } public String getTaxCode() { return taxCode; } public Provider setTaxCode(String value) { this.taxCode = value; return this; } public String getAddress() { return address; } public Provider setAddress(String value) { this.address = value; return this; } public String getEmail() { return email; } public Provider setEmail(String value) { this.email = value; return this; } public String getPhone() { return phone; } public Provider setPhone(String value) { this.phone = value; return this; } public String getAdditionalInfo() { return additionalInfo; } public Provider setAdditionalInfo(String value) { this.additionalInfo = value; return this; } public Integer getProviderType() { return providerType; } public Provider setProviderType(Integer value) { this.providerType = value; return this; } public Date getCreatedAt() { return createdAt; } public Provider setCreatedAt(Date value) { this.createdAt = value; return this; } public Integer getCreatedBy() { return createdBy; } public Provider setCreatedBy(Integer value) { this.createdBy = value; return this; } } }