POST api/Setting/JQ_MPZL_TO_DZ/AddOrUpdate
添加或修改脱机验票分发关系设置。 设置后,对应的票型在执行售票、退票、印制时会根据系统规则向分发阶列中置入数据,这些数据将同步到离线验票的设备上。
Request Information
URI Parameters
None.
Body Parameters
JQ_MPLX_TO_DZSettingAddParm| Name | Description | Type | Additional information |
|---|---|---|---|
| TicketTypeId |
票型的ID。 |
globally unique identifier |
Required |
| StartDate |
起始日期,格式YYYYMMDD。 |
string |
Required Max length: 8 Min length: 8 |
| Forever |
是否永久,永久表示50年,‘1’是,‘0’否。 |
string |
Required Max length: 1 Min length: 1 |
| EndDate |
截止日期,格式YYYYMMDD,当Forever=1时,此值没有含义,当Forever为0时,此值必填。 |
string |
Max length: 8 |
| JQ_Parm_Gates |
道闸的清单,必填,不能为空数组。 |
Collection of string |
Required |
Request Formats
application/json, text/json
Sample:
{
"TicketTypeId": "d9ff7a75-28ab-4cc7-81e2-2e15ac6f53da",
"StartDate": "sample string 2",
"Forever": "sample string 3",
"EndDate": "sample string 4",
"JQ_Parm_Gates": [
"sample string 1",
"sample string 2"
]
}
application/xml, text/xml
Sample:
<JQ_MPLX_TO_DZSettingAddParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Parm">
<EndDate>sample string 4</EndDate>
<Forever>sample string 3</Forever>
<JQ_Parm_Gates xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</JQ_Parm_Gates>
<StartDate>sample string 2</StartDate>
<TicketTypeId>d9ff7a75-28ab-4cc7-81e2-2e15ac6f53da</TicketTypeId>
</JQ_MPLX_TO_DZSettingAddParm>
application/x-www-form-urlencoded
Sample:
Sample not available.
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.
Response Information
Resource Description
添加或修改脱机验票分发关系设置。 设置后,对应的票型在执行售票、退票、印制时会根据系统规则向分发阶列中置入数据,这些数据将同步到离线验票的设备上。
CommonOperationResult| Name | Description | Type | Additional information |
|---|---|---|---|
| errcode |
错误代码,通常0表示成功,其他值表示错误。 |
integer |
None. |
| errmsg |
错误描述,当errcode不为零时,此值可以用于呈现给用户。 |
string |
None. |
| tag |
操作同时,服务器端需要返回的其他值。 |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"errcode": 1,
"errmsg": "sample string 2",
"tag": "sample string 3"
}
application/xml, text/xml
Sample:
<CommonOperationResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer"> <errcode>1</errcode> <errmsg>sample string 2</errmsg> <tag>sample string 3</tag> </CommonOperationResult>
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.