| GET | /workflow/{WorkflowId}/advanced-info |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class GetAdvancedWorkflowInfoRequest
{
public Integer workflowId = null;
public Integer getWorkflowId() { return workflowId; }
public GetAdvancedWorkflowInfoRequest setWorkflowId(Integer value) { this.workflowId = value; return this; }
}
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> 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<PurchaseHistory> getPurchaseHistory() { return purchaseHistory; }
public AdvancedWorkflowInfoData setPurchaseHistory(ArrayList<PurchaseHistory> value) { this.purchaseHistory = 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; }
}
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 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 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; }
}
}
Java GetAdvancedWorkflowInfoRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /workflow/{WorkflowId}/advanced-info HTTP/1.1
Host: etc-api.vsmlab.vn
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"code":0,"message":"String","data":{"provider":{"id":0,"name":"String","taxCode":"String","address":"String","email":"String","phone":"String","additionalInfo":"String","providerType":0,"createdAt":"0001-01-01T00:00:00.0000000+07:06","createdBy":0},"contract":{"id":0,"workflowId":0,"contractNo":"String","contractDate":"String","serviceName":"String","contractType":"String","objective":"String","location":"String","createdAt":"0001-01-01T00:00:00.0000000+07:06","createdBy":0},"estimate":{"id":0,"workflowId":0,"valueBeforeTax":0,"taxAmount":0,"totalAmount":0,"createdAt":"0001-01-01T00:00:00.0000000+07:06","createdBy":0},"purchaseHistory":[{"id":0,"workflowId":0,"sequenceNo":0,"detail":"String","unit":"String","quantity":0,"unitPrice":0,"amount":0,"note":"String","createdAt":"0001-01-01T00:00:00.0000000+07:06","createdBy":0}]}}