Portal

<back to all web services

BrowseContractVersion

Requires Authentication
The following routes are available for this service:
GET/user/{supplieruserid}/contract/{contractid}/contractversion/{contractversionid}
import java.math.*
import java.util.*
import net.servicestack.client.*


open class BrowseContractVersion : ContractVersionBase(), IGet
{
}

open class ContractVersionBase : ContractBase()
{
    var ContractVersionId:Int? = null
}

open class ContractBase
{
    var SupplierUserId:Int? = null
    var ContractId:Int? = null
}

open class BrowseContractVersionResponse : ResponseBase()
{
    var ContractVersion:ContractVersionDetails? = null
}

open class ResponseBase
{
    var ResponseStatus:ResponseStatus? = null
}

open class ContractVersionDetails : ContractVersionSimple()
{
    var Meta:HashMap<String,String> = HashMap<String,String>()
    var ViewingDateTime:Date? = null
    var ReviewingDateTime:Date? = null
    var ContractFiles:ArrayList<ContractFileSimple> = ArrayList<ContractFileSimple>()
}

open class ContractVersionSimple
{
    var Id:Int? = null
    var ContractId:Int? = null
    var Version:Int? = null
    var IsViewed:Boolean? = null
    var Status:ReviewStatus? = null
}

enum class ReviewStatus(val value:Int)
{
    @SerializedName("0") Draft(0),
    @SerializedName("1") Commented(1),
    @SerializedName("2") Accepted(2),
}

open class ContractFileSimple : BrowseFileResponseBase()
{
    var ContractVersionId:Int? = null
    var DocumentType:ContractDocumentType? = null
}

open class BrowseFileResponseBase
{
    var Id:Int? = null
    var FileContentId:Int? = null
    var FileName:String? = null
    var Size:Long? = null
}

enum class ContractDocumentType(val value:Int)
{
    @SerializedName("0") Draft(0),
    @SerializedName("1") Comment(1),
}

Kotlin BrowseContractVersion DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /user/{supplieruserid}/contract/{contractid}/contractversion/{contractversionid} HTTP/1.1 
Host: szallitoiportal-be.veolia.hu 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	ContractVersion: 
	{
		Meta: 
		{
			String: String
		},
		ViewingDateTime: 0001-01-01,
		ReviewingDateTime: 0001-01-01,
		ContractFiles: 
		[
			{
				ContractVersionId: 0,
				DocumentType: 0,
				Id: 0,
				FileContentId: 0,
				FileName: String,
				Size: 0
			}
		],
		Id: 0,
		ContractId: 0,
		Version: 0,
		IsViewed: False,
		Status: 0
	},
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	}
}