tvpl.api

<back to all web services

GetAdvancedWorkflowInfoRequest

Requires Authentication
The following routes are available for this service:
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 .xml suffix or ?format=xml

HTTP + XML

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: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<AdvancedWorkflowInfoResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/tvpl.api.ServiceModel">
  <Code>0</Code>
  <Data>
    <Contract xmlns:d3p1="http://schemas.datacontract.org/2004/07/tvpl.data.Models">
      <d3p1:ContractDate>String</d3p1:ContractDate>
      <d3p1:ContractNo>String</d3p1:ContractNo>
      <d3p1:ContractType>String</d3p1:ContractType>
      <d3p1:CreatedAt>0001-01-01T00:00:00</d3p1:CreatedAt>
      <d3p1:CreatedBy>0</d3p1:CreatedBy>
      <d3p1:Id>0</d3p1:Id>
      <d3p1:Location>String</d3p1:Location>
      <d3p1:Objective>String</d3p1:Objective>
      <d3p1:ServiceName>String</d3p1:ServiceName>
      <d3p1:WorkflowId>0</d3p1:WorkflowId>
    </Contract>
    <Estimate xmlns:d3p1="http://schemas.datacontract.org/2004/07/tvpl.data.Models">
      <d3p1:CreatedAt>0001-01-01T00:00:00</d3p1:CreatedAt>
      <d3p1:CreatedBy>0</d3p1:CreatedBy>
      <d3p1:Id>0</d3p1:Id>
      <d3p1:TaxAmount>0</d3p1:TaxAmount>
      <d3p1:TotalAmount>0</d3p1:TotalAmount>
      <d3p1:ValueBeforeTax>0</d3p1:ValueBeforeTax>
      <d3p1:WorkflowId>0</d3p1:WorkflowId>
    </Estimate>
    <Provider xmlns:d3p1="http://schemas.datacontract.org/2004/07/tvpl.data.Models">
      <d3p1:AdditionalInfo>String</d3p1:AdditionalInfo>
      <d3p1:Address>String</d3p1:Address>
      <d3p1:CreatedAt>0001-01-01T00:00:00</d3p1:CreatedAt>
      <d3p1:CreatedBy>0</d3p1:CreatedBy>
      <d3p1:DeletedAt>0001-01-01T00:00:00</d3p1:DeletedAt>
      <d3p1:DeletedBy>0</d3p1:DeletedBy>
      <d3p1:Email>String</d3p1:Email>
      <d3p1:Id>0</d3p1:Id>
      <d3p1:IsDeleted>false</d3p1:IsDeleted>
      <d3p1:Name>String</d3p1:Name>
      <d3p1:Phone>String</d3p1:Phone>
      <d3p1:ProviderType>0</d3p1:ProviderType>
      <d3p1:TaxCode>String</d3p1:TaxCode>
    </Provider>
    <PurchaseHistory xmlns:d3p1="http://schemas.datacontract.org/2004/07/tvpl.data.Models">
      <d3p1:PurchaseHistory>
        <d3p1:Amount>0</d3p1:Amount>
        <d3p1:CreatedAt>0001-01-01T00:00:00</d3p1:CreatedAt>
        <d3p1:CreatedBy>0</d3p1:CreatedBy>
        <d3p1:Detail>String</d3p1:Detail>
        <d3p1:Id>0</d3p1:Id>
        <d3p1:Note>String</d3p1:Note>
        <d3p1:Quantity>0</d3p1:Quantity>
        <d3p1:SequenceNo>0</d3p1:SequenceNo>
        <d3p1:Unit>String</d3p1:Unit>
        <d3p1:UnitPrice>0</d3p1:UnitPrice>
        <d3p1:WorkflowId>0</d3p1:WorkflowId>
      </d3p1:PurchaseHistory>
    </PurchaseHistory>
  </Data>
  <Message>String</Message>
</AdvancedWorkflowInfoResponse>