| GET | /workflow/{WorkflowId}/advanced-info |
|---|
import java.math.*
import java.util.*
import net.servicestack.client.*
import com.google.gson.annotations.*
import com.google.gson.reflect.*
open class GetAdvancedWorkflowInfoRequest
{
var workflowId:Int? = null
}
open class AdvancedWorkflowInfoResponse
{
var code:Int? = null
var message:String? = null
@SerializedName("data") var Data:AdvancedWorkflowInfoData? = null
}
open class AdvancedWorkflowInfoData
{
var provider:Provider? = null
var contract:Contract? = null
var estimate:Estimate? = null
var purchaseHistory:ArrayList<PurchaseHistory> = ArrayList<PurchaseHistory>()
}
open class Provider
{
var id:Int? = null
var name:String? = null
var taxCode:String? = null
var address:String? = null
var email:String? = null
var phone:String? = null
var additionalInfo:String? = null
var providerType:Int? = null
var createdAt:Date? = null
var createdBy:Int? = null
}
open class Contract
{
var id:Int? = null
@Required()
var workflowId:Int? = null
@StringLength(100)
var contractNo:String? = null
@StringLength(100)
var contractDate:String? = null
var serviceName:String? = null
@StringLength(100)
var contractType:String? = null
var objective:String? = null
var location:String? = null
var createdAt:Date? = null
@Required()
var createdBy:Int? = null
}
open class Estimate
{
var id:Int? = null
@Required()
var workflowId:Int? = null
var valueBeforeTax:Int? = null
var taxAmount:Int? = null
var totalAmount:Int? = null
var createdAt:Date? = null
@Required()
var createdBy:Int? = null
}
open class PurchaseHistory
{
var id:Int? = null
@Required()
var workflowId:Int? = null
var sequenceNo:Int? = null
var detail:String? = null
@StringLength(150)
var unit:String? = null
var quantity:Int? = null
var unitPrice:Int? = null
var amount:Int? = null
var note:String? = null
var createdAt:Date? = null
@Required()
var createdBy:Int? = null
}
Kotlin GetAdvancedWorkflowInfoRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
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/json
HTTP/1.1 200 OK
Content-Type: application/json
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}]}}