train

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 1, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

火车票API model

https://open.taobao.com/API.htm?docId=24270&docType=2

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountParam

type AccountParam struct {
	// 代理商ID
	AgentId int64 `json:"agent_id,omitempty" xml:"agent_id,omitempty"`
	// 主订单号
	OrderId int64 `json:"order_id,omitempty" xml:"order_id,omitempty"`
	// 12306账户名
	AccountName string `json:"account_name,omitempty" xml:"account_name,omitempty"`
	// 12306账户密码
	AccountPassword string `json:"account_password,omitempty" xml:"account_password,omitempty"`
}

AccountParam

type AgentAgreeChangeParam

type AgentAgreeChangeParam struct {
	// 申请单id
	ApplyId int64 `json:"apply_id,omitempty" xml:"apply_id,omitempty"`
	// 支付宝交易流水号
	AlipayTradeNo string `json:"alipay_trade_no,omitempty" xml:"alipay_trade_no,omitempty"`
	// 扩展参数
	ExtendParam string `json:"extend_param,omitempty" xml:"extend_param,omitempty"`
	// 备注
	Remark string `json:"remark,omitempty" xml:"remark,omitempty"`
	// 代理商id
	SellerId int64 `json:"seller_id,omitempty" xml:"seller_id,omitempty"`
	// 主订单
	MainBizOrderId int64 `json:"main_biz_order_id,omitempty" xml:"main_biz_order_id,omitempty"`
	// 代理商改签票信息
	Tickets []ChangeTicketInfo `json:"tickets,omitempty" xml:"tickets>change_ticket_info,omitempty"`
	// 支付宝账号
	AlipayAccount string `json:"alipay_account,omitempty" xml:"alipay_account,omitempty"`
}

AgentAgreeChangeParam

type AgentPayOrderParam

type AgentPayOrderParam struct {
	// 改签单号
	ApplyId int64 `json:"apply_id,omitempty" xml:"apply_id,omitempty"`
	// 12306票号
	SequenceNo string `json:"sequence_no,omitempty" xml:"sequence_no,omitempty"`
	// 12306支付url
	PayUrl string `json:"pay_url,omitempty" xml:"pay_url,omitempty"`
	// 主订单号
	MainOrderId int64 `json:"main_order_id,omitempty" xml:"main_order_id,omitempty"`
}

AgentPayOrderParam

type AgentRefuseChangeParam

type AgentRefuseChangeParam struct {
	// 改签申请单id
	ApplyId int64 `json:"apply_id,omitempty" xml:"apply_id,omitempty"`
	// 扩展参数
	ExtendParam string `json:"extend_param,omitempty" xml:"extend_param,omitempty"`
	// 拒绝原因类型,0 其他、1 余票不足、2 已取票、3 已线下退票
	RefuseType int64 `json:"refuse_type,omitempty" xml:"refuse_type,omitempty"`
	// 备注
	Remark string `json:"remark,omitempty" xml:"remark,omitempty"`
	// 代理商id
	SellerId int64 `json:"seller_id,omitempty" xml:"seller_id,omitempty"`
	// 订单id
	MainBizOrderId int64 `json:"main_biz_order_id,omitempty" xml:"main_biz_order_id,omitempty"`
}

AgentRefuseChangeParam

type ApplyOrderInfoDo

type ApplyOrderInfoDo struct {
	// 退款金额(单位分)
	RefundFee int64 `json:"refund_fee,omitempty" xml:"refund_fee,omitempty"`
	// 订单号
	OrderId int64 `json:"order_id,omitempty" xml:"order_id,omitempty"`
	// 乘车人信息
	PassengerList []TrainPassengerInfoDto `json:"passenger_list,omitempty" xml:"passenger_list>train_passenger_info_dto,omitempty"`
	// 支付url
	PayUrl string `json:"pay_url,omitempty" xml:"pay_url,omitempty"`
	// 是否可以退改 true:支持 false:不支持
	CanRefund bool `json:"can_refund,omitempty" xml:"can_refund,omitempty"`
	// 改签单号
	ApplyId int64 `json:"apply_id,omitempty" xml:"apply_id,omitempty"`
	// 改签支付url有效期
	LimitAlipayTime string `json:"limit_alipay_time,omitempty" xml:"limit_alipay_time,omitempty"`
	// 取票号
	TicketNo string `json:"ticket_no,omitempty" xml:"ticket_no,omitempty"`
	// 改签手续费(单位分)
	HandFee int64 `json:"hand_fee,omitempty" xml:"hand_fee,omitempty"`
	// 支付超时时间
	LimitPayTime string `json:"limit_pay_time,omitempty" xml:"limit_pay_time,omitempty"`
}

ApplyOrderInfoDo

type ChangeHoldSeatParam

type ChangeHoldSeatParam struct {
	// 改签占座失败错误码
	ErrorCode int64 `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// 改签单信息
	ApplyOrderBaseDo *ApplyOrderInfoDo `json:"apply_order_base_do,omitempty" xml:"apply_order_base_do,omitempty"`
	// 占座结果 true:占座成功 false:占座失败
	HoldSeatStatus bool `json:"hold_seat_status,omitempty" xml:"hold_seat_status,omitempty"`
}

ChangeHoldSeatParam

type ChangeTicketInfo

type ChangeTicketInfo struct {
	// 改签费
	ChangeFee int64 `json:"change_fee,omitempty" xml:"change_fee,omitempty"`
	// 扩展参数
	ExtendParam string `json:"extend_param,omitempty" xml:"extend_param,omitempty"`
	// 座位信息
	ChooseSeat string `json:"choose_seat,omitempty" xml:"choose_seat,omitempty"`
	// 子订单
	SubBizOrderId int64 `json:"sub_biz_order_id,omitempty" xml:"sub_biz_order_id,omitempty"`
	// 备注
	Remark string `json:"remark,omitempty" xml:"remark,omitempty"`
	// 真实坐席
	RealSeat int64 `json:"real_seat,omitempty" xml:"real_seat,omitempty"`
	// 高改低手续费
	HandingFee int64 `json:"handing_fee,omitempty" xml:"handing_fee,omitempty"`
	// 是否支持在线退改签
	CanChange bool `json:"can_change,omitempty" xml:"can_change,omitempty"`
}

ChangeTicketInfo

type CompensateParam

type CompensateParam struct {
	// 代理商id
	AgentId int64 `json:"agent_id,omitempty" xml:"agent_id,omitempty"`
	// 订单id
	OrderId int64 `json:"order_id,omitempty" xml:"order_id,omitempty"`
	// 改签单id
	ApplyId int64 `json:"apply_id,omitempty" xml:"apply_id,omitempty"`
}

CompensateParam

type HoldSeatParam

type HoldSeatParam struct {
	// 订单类型
	OrderType int64 `json:"order_type,omitempty" xml:"order_type,omitempty"`
	// 和出票失败错误码回填相同,666666代表占座失败转后占座
	ErrorCode int64 `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// 订单信息
	OrderBase *OrderInfoDto `json:"order_base,omitempty" xml:"order_base,omitempty"`
	// 是否占座成功
	HoldSeatStatus bool `json:"hold_seat_status,omitempty" xml:"hold_seat_status,omitempty"`
	// 代理商id
	AgentId int64 `json:"agent_id,omitempty" xml:"agent_id,omitempty"`
}

HoldSeatParam

type OrderInfoDto

type OrderInfoDto struct {
	// 乘车人信息
	PassengerList []TrainPassengerInfoDto `json:"passenger_list,omitempty" xml:"passenger_list>train_passenger_info_dto,omitempty"`
	// 是否联程
	IsMultiTrip bool `json:"is_multi_trip,omitempty" xml:"is_multi_trip,omitempty"`
	// 是否可以退改
	CanRefund bool `json:"can_refund,omitempty" xml:"can_refund,omitempty"`
	// 12306支付截止时间
	LimitPayTime string `json:"limit_pay_time,omitempty" xml:"limit_pay_time,omitempty"`
	// 票号
	TicketNo string `json:"ticket_no,omitempty" xml:"ticket_no,omitempty"`
	// 失败子订单号
	FailSubOrderId int64 `json:"fail_sub_order_id,omitempty" xml:"fail_sub_order_id,omitempty"`
	// 主订单号
	OrderId int64 `json:"order_id,omitempty" xml:"order_id,omitempty"`
	// 支付url
	PayUrl string `json:"pay_url,omitempty" xml:"pay_url,omitempty"`
	// 车次信息
	BaseDo *TrainBaseDto `json:"base_do,omitempty" xml:"base_do,omitempty"`
}

OrderInfoDto

type OrderTicketInfo

type OrderTicketInfo struct {
	// ttp子单ID
	TtpSubOrderId int64 `json:"ttp_sub_order_id,omitempty" xml:"ttp_sub_order_id,omitempty"`
	// 真实票价
	RealTicketPrice int64 `json:"real_ticket_price,omitempty" xml:"real_ticket_price,omitempty"`
	// 真实坐席
	RealSeat int64 `json:"real_seat,omitempty" xml:"real_seat,omitempty"`
	// 座位号
	SeatNum string `json:"seat_num,omitempty" xml:"seat_num,omitempty"`
	// 车次
	TrainNo string `json:"train_no,omitempty" xml:"train_no,omitempty"`
	// 乘客姓名
	PassengerName string `json:"passenger_name,omitempty" xml:"passenger_name,omitempty"`
	// 证件类型
	CertType string `json:"cert_type,omitempty" xml:"cert_type,omitempty"`
	// 证件号
	CertificateNum string `json:"certificate_num,omitempty" xml:"certificate_num,omitempty"`
	// 保险支付金额
	InsurancePayPrice int64 `json:"insurance_pay_price,omitempty" xml:"insurance_pay_price,omitempty"`
	// 定制票出票结果 1:定制票出票 0:非定制票出票
	VipCustomResult int64 `json:"vip_custom_result,omitempty" xml:"vip_custom_result,omitempty"`
	// 12306票号
	TicketNo string `json:"ticket_no,omitempty" xml:"ticket_no,omitempty"`
}

OrderTicketInfo

type StationPassInfo

type StationPassInfo struct {
	// 到达时间
	Atime string `json:"atime,omitempty" xml:"atime,omitempty"`
	// 驶离时间
	Ltime string `json:"ltime,omitempty" xml:"ltime,omitempty"`
	// 当前站点索引,从1开始
	Sid int64 `json:"sid,omitempty" xml:"sid,omitempty"`
	// 站点名称
	Snm string `json:"snm,omitempty" xml:"snm,omitempty"`
	// 停留时间分钟
	Stime int64 `json:"stime,omitempty" xml:"stime,omitempty"`
}

StationPassInfo

type StudentInfo

type StudentInfo struct {
	// demo
	Card string `json:"card,omitempty" xml:"card,omitempty"`
	// demo
	Classes string `json:"classes,omitempty" xml:"classes,omitempty"`
	// demo
	DepartMent string `json:"depart_ment,omitempty" xml:"depart_ment,omitempty"`
	// demo
	EductionalSystem string `json:"eductional_system,omitempty" xml:"eductional_system,omitempty"`
	// demo
	EntranceYear string `json:"entrance_year,omitempty" xml:"entrance_year,omitempty"`
	// demo
	FromCity string `json:"from_city,omitempty" xml:"from_city,omitempty"`
	// demo
	SchoolName string `json:"school_name,omitempty" xml:"school_name,omitempty"`
	// demo
	SchoolProvince string `json:"school_province,omitempty" xml:"school_province,omitempty"`
	// demo
	StudentNo string `json:"student_no,omitempty" xml:"student_no,omitempty"`
	// demo
	ToCity string `json:"to_city,omitempty" xml:"to_city,omitempty"`
}

StudentInfo

type TaobaoTrainAgentBookordersGetAPIRequest added in v1.2.0

type TaobaoTrainAgentBookordersGetAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

代理商获取待出票订单列表 API请求 taobao.train.agent.bookorders.get

代理商获取待出票订单列表,只返回订单号

func NewTaobaoTrainAgentBookordersGetRequest

func NewTaobaoTrainAgentBookordersGetRequest() *TaobaoTrainAgentBookordersGetAPIRequest

初始化TaobaoTrainAgentBookordersGetAPIRequest对象

func (TaobaoTrainAgentBookordersGetAPIRequest) GetAgentId added in v1.2.0

AgentId Getter

func (TaobaoTrainAgentBookordersGetAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoTrainAgentBookordersGetAPIRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoTrainAgentBookordersGetAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

func (*TaobaoTrainAgentBookordersGetAPIRequest) SetAgentId added in v1.2.0

func (r *TaobaoTrainAgentBookordersGetAPIRequest) SetAgentId(_agentId int64) error

AgentId Setter 代理商id

type TaobaoTrainAgentBookordersGetAPIResponse

type TaobaoTrainAgentBookordersGetAPIResponse struct {
	model.CommonResponse
	TaobaoTrainAgentBookordersGetAPIResponseModel
}

代理商获取待出票订单列表 API返回值 taobao.train.agent.bookorders.get

代理商获取待出票订单列表,只返回订单号

type TaobaoTrainAgentBookordersGetAPIResponseModel added in v1.2.0

type TaobaoTrainAgentBookordersGetAPIResponseModel struct {
	XMLName xml.Name `xml:"train_agent_bookorders_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 待处理订单总数
	OrderCount int64 `json:"order_count,omitempty" xml:"order_count,omitempty"`
	// 订单号集合,用半角逗号(,)连接,只会返回固定数量
	OrderIds string `json:"order_ids,omitempty" xml:"order_ids,omitempty"`
	// 错误描述
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
}

代理商获取待出票订单列表 成功返回结果

type TaobaoTrainAgentBookordersGetVtwoAPIRequest added in v1.2.0

type TaobaoTrainAgentBookordersGetVtwoAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

代理商获取待出票订单列表v2--增加鉴权校验 API请求 taobao.train.agent.bookorders.get.vtwo

代理商获取待出票订单列表,只返回订单号

func NewTaobaoTrainAgentBookordersGetVtwoRequest

func NewTaobaoTrainAgentBookordersGetVtwoRequest() *TaobaoTrainAgentBookordersGetVtwoAPIRequest

初始化TaobaoTrainAgentBookordersGetVtwoAPIRequest对象

func (TaobaoTrainAgentBookordersGetVtwoAPIRequest) GetAgentId added in v1.2.0

AgentId Getter

func (TaobaoTrainAgentBookordersGetVtwoAPIRequest) GetApiMethodName added in v1.2.0

IRequest interface 方法, 获取Api method

func (TaobaoTrainAgentBookordersGetVtwoAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

func (*TaobaoTrainAgentBookordersGetVtwoAPIRequest) SetAgentId added in v1.2.0

AgentId Setter 代理商id

type TaobaoTrainAgentBookordersGetVtwoAPIResponse

type TaobaoTrainAgentBookordersGetVtwoAPIResponse struct {
	model.CommonResponse
	TaobaoTrainAgentBookordersGetVtwoAPIResponseModel
}

代理商获取待出票订单列表v2--增加鉴权校验 API返回值 taobao.train.agent.bookorders.get.vtwo

代理商获取待出票订单列表,只返回订单号

type TaobaoTrainAgentBookordersGetVtwoAPIResponseModel added in v1.2.0

type TaobaoTrainAgentBookordersGetVtwoAPIResponseModel struct {
	XMLName xml.Name `xml:"train_agent_bookorders_get_vtwo_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 待处理订单总数
	OrderCount int64 `json:"order_count,omitempty" xml:"order_count,omitempty"`
	// 订单号集合,用半角逗号(,)连接,只会返回固定数量
	OrderIds string `json:"order_ids,omitempty" xml:"order_ids,omitempty"`
	// 错误描述
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
}

代理商获取待出票订单列表v2--增加鉴权校验 成功返回结果

type TaobaoTrainAgentBookticketConfirmAPIRequest added in v1.2.0

type TaobaoTrainAgentBookticketConfirmAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

火车票代理商接口——确认出票是否成功 API请求 taobao.train.agent.bookticket.confirm

火车票代理商接口——确认出票是否成功

func NewTaobaoTrainAgentBookticketConfirmRequest

func NewTaobaoTrainAgentBookticketConfirmRequest() *TaobaoTrainAgentBookticketConfirmAPIRequest

初始化TaobaoTrainAgentBookticketConfirmAPIRequest对象

func (TaobaoTrainAgentBookticketConfirmAPIRequest) GetAgentId added in v1.2.0

AgentId Getter

func (TaobaoTrainAgentBookticketConfirmAPIRequest) GetAlipayAccount added in v1.2.0

AlipayAccount Getter

func (TaobaoTrainAgentBookticketConfirmAPIRequest) GetAlipayTradeNo added in v1.2.0

AlipayTradeNo Getter

func (TaobaoTrainAgentBookticketConfirmAPIRequest) GetApiMethodName added in v1.2.0

IRequest interface 方法, 获取Api method

func (TaobaoTrainAgentBookticketConfirmAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

func (TaobaoTrainAgentBookticketConfirmAPIRequest) GetArriveDate added in v1.2.0

ArriveDate Getter

func (TaobaoTrainAgentBookticketConfirmAPIRequest) GetBoardingGates added in v1.2.0

BoardingGates Getter

func (TaobaoTrainAgentBookticketConfirmAPIRequest) GetCanChange added in v1.2.0

CanChange Getter

func (TaobaoTrainAgentBookticketConfirmAPIRequest) GetDepDate added in v1.2.0

DepDate Getter

func (TaobaoTrainAgentBookticketConfirmAPIRequest) GetFailMsg added in v1.2.0

FailMsg Getter

func (TaobaoTrainAgentBookticketConfirmAPIRequest) GetFromStationName added in v1.2.0

func (r TaobaoTrainAgentBookticketConfirmAPIRequest) GetFromStationName() string

FromStationName Getter

func (TaobaoTrainAgentBookticketConfirmAPIRequest) GetMainOrderId added in v1.2.0

MainOrderId Getter

func (TaobaoTrainAgentBookticketConfirmAPIRequest) GetOrderType added in v1.2.0

OrderType Getter

func (TaobaoTrainAgentBookticketConfirmAPIRequest) GetStatus added in v1.2.0

Status Getter

func (TaobaoTrainAgentBookticketConfirmAPIRequest) GetSubOrderId added in v1.2.0

SubOrderId Getter

func (TaobaoTrainAgentBookticketConfirmAPIRequest) GetTicket12306Id added in v1.2.0

Ticket12306Id Getter

func (TaobaoTrainAgentBookticketConfirmAPIRequest) GetTicketNum added in v1.2.0

TicketNum Getter

func (TaobaoTrainAgentBookticketConfirmAPIRequest) GetTickets added in v1.2.0

Tickets Getter

func (TaobaoTrainAgentBookticketConfirmAPIRequest) GetToStationName added in v1.2.0

ToStationName Getter

func (*TaobaoTrainAgentBookticketConfirmAPIRequest) SetAgentId added in v1.2.0

AgentId Setter 代理商id

func (*TaobaoTrainAgentBookticketConfirmAPIRequest) SetAlipayAccount added in v1.2.0

func (r *TaobaoTrainAgentBookticketConfirmAPIRequest) SetAlipayAccount(_alipayAccount string) error

AlipayAccount Setter 支付宝账号

func (*TaobaoTrainAgentBookticketConfirmAPIRequest) SetAlipayTradeNo added in v1.2.0

func (r *TaobaoTrainAgentBookticketConfirmAPIRequest) SetAlipayTradeNo(_alipayTradeNo string) error

AlipayTradeNo Setter 支付宝交易流水号

func (*TaobaoTrainAgentBookticketConfirmAPIRequest) SetArriveDate added in v1.2.0

func (r *TaobaoTrainAgentBookticketConfirmAPIRequest) SetArriveDate(_arriveDate string) error

ArriveDate Setter 到达时间

func (*TaobaoTrainAgentBookticketConfirmAPIRequest) SetBoardingGates added in v1.2.0

func (r *TaobaoTrainAgentBookticketConfirmAPIRequest) SetBoardingGates(_boardingGates string) error

BoardingGates Setter 检票口

func (*TaobaoTrainAgentBookticketConfirmAPIRequest) SetCanChange added in v1.2.0

func (r *TaobaoTrainAgentBookticketConfirmAPIRequest) SetCanChange(_canChange bool) error

CanChange Setter 是否支持在线退改签

func (*TaobaoTrainAgentBookticketConfirmAPIRequest) SetDepDate added in v1.2.0

DepDate Setter 出发时间

func (*TaobaoTrainAgentBookticketConfirmAPIRequest) SetFailMsg added in v1.2.0

FailMsg Setter 记录失败原因,传数字,1:票已售完,2:票价变动,3:乘车人已购相同车票,4:出票超时,5:乘车人证件未通过铁路局核验,6:发车时间变动,7:车次信息变更,8:12306故障,9:学生票信息有误,10:身份冒用,11:被限制高消费,12:坐票已售完,13:行程冲突,14:预售期变更,15:用户12306账号登录失败,16:12306账号存在未支付订单,17:用户常旅客已满,18:乘客信息有误,19:非法席别,20:车次停运,21:session登陆失败,22:账户已在其他地方登陆,23:帐号手机未核验,24:取消订单次数达到上限,25:帐号持有人身份未核验,26:邮寄地址无法保证及时送达,27:无法满足用户定制需求,28:您主动要求取消,0:未知原因

func (*TaobaoTrainAgentBookticketConfirmAPIRequest) SetFromStationName added in v1.2.0

func (r *TaobaoTrainAgentBookticketConfirmAPIRequest) SetFromStationName(_fromStationName string) error

FromStationName Setter 出发站

func (*TaobaoTrainAgentBookticketConfirmAPIRequest) SetMainOrderId added in v1.2.0

func (r *TaobaoTrainAgentBookticketConfirmAPIRequest) SetMainOrderId(_mainOrderId int64) error

MainOrderId Setter 主订单id

func (*TaobaoTrainAgentBookticketConfirmAPIRequest) SetOrderType added in v1.2.0

func (r *TaobaoTrainAgentBookticketConfirmAPIRequest) SetOrderType(_orderType int64) error

OrderType Setter 订单类型 0 代购 1直购 3抢票

func (*TaobaoTrainAgentBookticketConfirmAPIRequest) SetStatus added in v1.2.0

Status Setter 是否成功

func (*TaobaoTrainAgentBookticketConfirmAPIRequest) SetSubOrderId added in v1.2.0

func (r *TaobaoTrainAgentBookticketConfirmAPIRequest) SetSubOrderId(_subOrderId string) error

SubOrderId Setter 错误的子订单号123434,123432

func (*TaobaoTrainAgentBookticketConfirmAPIRequest) SetTicket12306Id added in v1.2.0

func (r *TaobaoTrainAgentBookticketConfirmAPIRequest) SetTicket12306Id(_ticket12306Id string) error

Ticket12306Id Setter 12306成功出票id

func (*TaobaoTrainAgentBookticketConfirmAPIRequest) SetTicketNum added in v1.2.0

func (r *TaobaoTrainAgentBookticketConfirmAPIRequest) SetTicketNum(_ticketNum int64) error

TicketNum Setter 订单中包含的票数量

func (*TaobaoTrainAgentBookticketConfirmAPIRequest) SetTickets added in v1.2.0

func (r *TaobaoTrainAgentBookticketConfirmAPIRequest) SetTickets(_tickets []string) error

Tickets Setter 火车票子订单id;单价;坐席;座次号;车次;乘车人姓名;证件类型;证件号码;保单号;保单价格 (座次号格式:坐席_车厢号_座位号,eg1:硬卧_09_03号下铺 eg2:硬座_02_03c ,注意:票价、保险价格必须到分)

func (*TaobaoTrainAgentBookticketConfirmAPIRequest) SetToStationName added in v1.2.0

func (r *TaobaoTrainAgentBookticketConfirmAPIRequest) SetToStationName(_toStationName string) error

ToStationName Setter 到达站

type TaobaoTrainAgentBookticketConfirmAPIResponse

type TaobaoTrainAgentBookticketConfirmAPIResponse struct {
	model.CommonResponse
	TaobaoTrainAgentBookticketConfirmAPIResponseModel
}

火车票代理商接口——确认出票是否成功 API返回值 taobao.train.agent.bookticket.confirm

火车票代理商接口——确认出票是否成功

type TaobaoTrainAgentBookticketConfirmAPIResponseModel added in v1.2.0

type TaobaoTrainAgentBookticketConfirmAPIResponseModel struct {
	XMLName xml.Name `xml:"train_agent_bookticket_confirm_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 是否成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

火车票代理商接口——确认出票是否成功 成功返回结果

type TaobaoTrainAgentBookticketConfirmVtwoAPIRequest added in v1.2.0

type TaobaoTrainAgentBookticketConfirmVtwoAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

火车票代理商接口——确认出票是否成功v2--增加鉴权校验 API请求 taobao.train.agent.bookticket.confirm.vtwo

火车票代理商接口——确认出票是否成功

func NewTaobaoTrainAgentBookticketConfirmVtwoRequest

func NewTaobaoTrainAgentBookticketConfirmVtwoRequest() *TaobaoTrainAgentBookticketConfirmVtwoAPIRequest

初始化TaobaoTrainAgentBookticketConfirmVtwoAPIRequest对象

func (TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) GetAgentId added in v1.2.0

AgentId Getter

func (TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) GetAlipayAccount added in v1.2.0

AlipayAccount Getter

func (TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) GetAlipayTradeNo added in v1.2.0

AlipayTradeNo Getter

func (TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) GetApiMethodName added in v1.2.0

IRequest interface 方法, 获取Api method

func (TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

func (TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) GetArriveDate added in v1.2.0

ArriveDate Getter

func (TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) GetBoardingGates added in v1.2.0

BoardingGates Getter

func (TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) GetCanChange added in v1.2.0

CanChange Getter

func (TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) GetDepDate added in v1.2.0

DepDate Getter

func (TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) GetExpectDeliveryTime added in v1.2.0

func (r TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) GetExpectDeliveryTime() string

ExpectDeliveryTime Getter

func (TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) GetExtendParams added in v1.2.0

ExtendParams Getter

func (TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) GetFailMsg added in v1.2.0

FailMsg Getter

func (TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) GetFromStationName added in v1.2.0

FromStationName Getter

func (TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) GetMainOrderId added in v1.2.0

MainOrderId Getter

func (TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) GetOrderType added in v1.2.0

OrderType Getter

func (TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) GetStatus added in v1.2.0

Status Getter

func (TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) GetSubOrderId added in v1.2.0

SubOrderId Getter

func (TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) GetTicket12306Id added in v1.2.0

Ticket12306Id Getter

func (TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) GetTicketInfoList added in v1.2.0

TicketInfoList Getter

func (TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) GetTicketNum added in v1.2.0

TicketNum Getter

func (TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) GetTickets added in v1.2.0

Tickets Getter

func (TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) GetToStationName added in v1.2.0

ToStationName Getter

func (*TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetAgentId added in v1.2.0

AgentId Setter 代理商id

func (*TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetAlipayAccount added in v1.2.0

func (r *TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetAlipayAccount(_alipayAccount string) error

AlipayAccount Setter 支付宝账号

func (*TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetAlipayTradeNo added in v1.2.0

func (r *TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetAlipayTradeNo(_alipayTradeNo string) error

AlipayTradeNo Setter 支付宝交易流水号

func (*TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetArriveDate added in v1.2.0

func (r *TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetArriveDate(_arriveDate string) error

ArriveDate Setter 到达时间

func (*TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetBoardingGates added in v1.2.0

func (r *TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetBoardingGates(_boardingGates string) error

BoardingGates Setter 检票口

func (*TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetCanChange added in v1.2.0

func (r *TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetCanChange(_canChange bool) error

CanChange Setter 是否支持在线退改签

func (*TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetDepDate added in v1.2.0

DepDate Setter 出发时间

func (*TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetExpectDeliveryTime added in v1.2.0

func (r *TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetExpectDeliveryTime(_expectDeliveryTime string) error

ExpectDeliveryTime Setter 送票上门预计派送时间

func (*TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetExtendParams added in v1.2.0

func (r *TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetExtendParams(_extendParams string) error

ExtendParams Setter 扩展字段

func (*TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetFailMsg added in v1.2.0

FailMsg Setter 记录失败原因,传数字,1、票已售完,出票失败全额退款,2、票价变动,出票失败全额退款,3、乘车人已购买相同车票,出票失败全额退款, 4、出票超时,出票失败全额退款,5、乘车人证件未通过铁路局审核,需到售票窗口办理, 6、发车时间变动,出票失败全额退款,7、车次信息错误,出票失败全额退款,8、12306故障,出票失败全额退款, 0、出票失败全额退款

func (*TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetFromStationName added in v1.2.0

func (r *TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetFromStationName(_fromStationName string) error

FromStationName Setter 出发站

func (*TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetMainOrderId added in v1.2.0

func (r *TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetMainOrderId(_mainOrderId int64) error

MainOrderId Setter 主订单id

func (*TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetOrderType added in v1.2.0

func (r *TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetOrderType(_orderType int64) error

OrderType Setter 订单类型0 代购 1直购 3抢票

func (*TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetStatus added in v1.2.0

Status Setter 是否成功

func (*TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetSubOrderId added in v1.2.0

func (r *TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetSubOrderId(_subOrderId string) error

SubOrderId Setter 错误的子订单号123434,123432

func (*TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetTicket12306Id added in v1.2.0

func (r *TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetTicket12306Id(_ticket12306Id string) error

Ticket12306Id Setter 12306成功出票id

func (*TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetTicketInfoList added in v1.2.0

func (r *TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetTicketInfoList(_ticketInfoList []OrderTicketInfo) error

TicketInfoList Setter 票信息列表

func (*TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetTicketNum added in v1.2.0

func (r *TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetTicketNum(_ticketNum int64) error

TicketNum Setter 订单中包含的票数量

func (*TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetTickets added in v1.2.0

Tickets Setter 火车票id;单价;坐席;座次号;车次;乘车人姓名;证件类型;证件号码;保单号;保单价格特别注意:票价、保险价格必须到分,例如10元,输入为1000.

func (*TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetToStationName added in v1.2.0

func (r *TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetToStationName(_toStationName string) error

ToStationName Setter 到达站

type TaobaoTrainAgentBookticketConfirmVtwoAPIResponse

type TaobaoTrainAgentBookticketConfirmVtwoAPIResponse struct {
	model.CommonResponse
	TaobaoTrainAgentBookticketConfirmVtwoAPIResponseModel
}

火车票代理商接口——确认出票是否成功v2--增加鉴权校验 API返回值 taobao.train.agent.bookticket.confirm.vtwo

火车票代理商接口——确认出票是否成功

type TaobaoTrainAgentBookticketConfirmVtwoAPIResponseModel added in v1.2.0

type TaobaoTrainAgentBookticketConfirmVtwoAPIResponseModel struct {
	XMLName xml.Name `xml:"train_agent_bookticket_confirm_vtwo_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 是否成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

火车票代理商接口——确认出票是否成功v2--增加鉴权校验 成功返回结果

type TaobaoTrainAgentChangeAgreeVtwoAPIRequest added in v1.2.0

type TaobaoTrainAgentChangeAgreeVtwoAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

代理商同意改签v2--增加鉴权校验 API请求 taobao.train.agent.change.agree.vtwo

代理商同意改签接口服务

func NewTaobaoTrainAgentChangeAgreeVtwoRequest

func NewTaobaoTrainAgentChangeAgreeVtwoRequest() *TaobaoTrainAgentChangeAgreeVtwoAPIRequest

初始化TaobaoTrainAgentChangeAgreeVtwoAPIRequest对象

func (TaobaoTrainAgentChangeAgreeVtwoAPIRequest) GetApiMethodName added in v1.2.0

IRequest interface 方法, 获取Api method

func (TaobaoTrainAgentChangeAgreeVtwoAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

func (TaobaoTrainAgentChangeAgreeVtwoAPIRequest) GetParam added in v1.2.0

Param Getter

func (*TaobaoTrainAgentChangeAgreeVtwoAPIRequest) SetParam added in v1.2.0

Param Setter 代理商同意改签参数

type TaobaoTrainAgentChangeAgreeVtwoAPIResponse

type TaobaoTrainAgentChangeAgreeVtwoAPIResponse struct {
	model.CommonResponse
	TaobaoTrainAgentChangeAgreeVtwoAPIResponseModel
}

代理商同意改签v2--增加鉴权校验 API返回值 taobao.train.agent.change.agree.vtwo

代理商同意改签接口服务

type TaobaoTrainAgentChangeAgreeVtwoAPIResponseModel added in v1.2.0

type TaobaoTrainAgentChangeAgreeVtwoAPIResponseModel struct {
	XMLName xml.Name `xml:"train_agent_change_agree_vtwo_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 是否成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

代理商同意改签v2--增加鉴权校验 成功返回结果

type TaobaoTrainAgentChangeGetVtwoAPIRequest added in v1.2.0

type TaobaoTrainAgentChangeGetVtwoAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

获取改签单详情v2--增加鉴权校验 API请求 taobao.train.agent.change.get.vtwo

卖家获取待处理的改签单详情

func NewTaobaoTrainAgentChangeGetVtwoRequest

func NewTaobaoTrainAgentChangeGetVtwoRequest() *TaobaoTrainAgentChangeGetVtwoAPIRequest

初始化TaobaoTrainAgentChangeGetVtwoAPIRequest对象

func (TaobaoTrainAgentChangeGetVtwoAPIRequest) GetAgentId added in v1.2.0

AgentId Getter

func (TaobaoTrainAgentChangeGetVtwoAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoTrainAgentChangeGetVtwoAPIRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoTrainAgentChangeGetVtwoAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

func (TaobaoTrainAgentChangeGetVtwoAPIRequest) GetApplyId added in v1.2.0

ApplyId Getter

func (*TaobaoTrainAgentChangeGetVtwoAPIRequest) SetAgentId added in v1.2.0

func (r *TaobaoTrainAgentChangeGetVtwoAPIRequest) SetAgentId(_agentId int64) error

AgentId Setter 代理商id

func (*TaobaoTrainAgentChangeGetVtwoAPIRequest) SetApplyId added in v1.2.0

func (r *TaobaoTrainAgentChangeGetVtwoAPIRequest) SetApplyId(_applyId int64) error

ApplyId Setter 申请单id

type TaobaoTrainAgentChangeGetVtwoAPIResponse

type TaobaoTrainAgentChangeGetVtwoAPIResponse struct {
	model.CommonResponse
	TaobaoTrainAgentChangeGetVtwoAPIResponseModel
}

获取改签单详情v2--增加鉴权校验 API返回值 taobao.train.agent.change.get.vtwo

卖家获取待处理的改签单详情

type TaobaoTrainAgentChangeGetVtwoAPIResponseModel added in v1.2.0

type TaobaoTrainAgentChangeGetVtwoAPIResponseModel struct {
	XMLName xml.Name `xml:"train_agent_change_get_vtwo_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 扩展参数
	ExtendParam string `json:"extend_param,omitempty" xml:"extend_param,omitempty"`
	// 1
	Tickets []ChangeTicketInfo `json:"tickets,omitempty" xml:"tickets>change_ticket_info,omitempty"`
	// 坐席
	SeatName int64 `json:"seat_name,omitempty" xml:"seat_name,omitempty"`
	// 申请单
	ApplyId int64 `json:"apply_id,omitempty" xml:"apply_id,omitempty"`
	// 状态,1 待支付、2 待改签、3 已改签、4 改签失败
	Status int64 `json:"status,omitempty" xml:"status,omitempty"`
	// 总改签费
	TotalChangeFee int64 `json:"total_change_fee,omitempty" xml:"total_change_fee,omitempty"`
	// 车次
	TrainNum string `json:"train_num,omitempty" xml:"train_num,omitempty"`
	// 出发站
	FromStationName string `json:"from_station_name,omitempty" xml:"from_station_name,omitempty"`
	// 最晚改签时间
	LatestChangeTime string `json:"latest_change_time,omitempty" xml:"latest_change_time,omitempty"`
	// 发车时间
	FromTime string `json:"from_time,omitempty" xml:"from_time,omitempty"`
	// 主订单
	MainBizOrderId int64 `json:"main_biz_order_id,omitempty" xml:"main_biz_order_id,omitempty"`
	// 到达时间
	ToTime string `json:"to_time,omitempty" xml:"to_time,omitempty"`
	// 到达站
	ToStationName string `json:"to_station_name,omitempty" xml:"to_station_name,omitempty"`
}

获取改签单详情v2--增加鉴权校验 成功返回结果

type TaobaoTrainAgentChangeHoldseatConfirmAPIRequest added in v1.2.0

type TaobaoTrainAgentChangeHoldseatConfirmAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

火车票代理商接口——确认改签占座是否成功 API请求 taobao.train.agent.change.holdseat.confirm

火车票代理商接口——确认改签占座是否成功

func NewTaobaoTrainAgentChangeHoldseatConfirmRequest

func NewTaobaoTrainAgentChangeHoldseatConfirmRequest() *TaobaoTrainAgentChangeHoldseatConfirmAPIRequest

初始化TaobaoTrainAgentChangeHoldseatConfirmAPIRequest对象

func (TaobaoTrainAgentChangeHoldseatConfirmAPIRequest) GetApiMethodName added in v1.2.0

IRequest interface 方法, 获取Api method

func (TaobaoTrainAgentChangeHoldseatConfirmAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

func (TaobaoTrainAgentChangeHoldseatConfirmAPIRequest) GetChangeHoldSeatParam added in v1.2.0

ChangeHoldSeatParam Getter

func (*TaobaoTrainAgentChangeHoldseatConfirmAPIRequest) SetChangeHoldSeatParam added in v1.2.0

func (r *TaobaoTrainAgentChangeHoldseatConfirmAPIRequest) SetChangeHoldSeatParam(_changeHoldSeatParam *ChangeHoldSeatParam) error

ChangeHoldSeatParam Setter 改签占座入参

type TaobaoTrainAgentChangeHoldseatConfirmAPIResponse

type TaobaoTrainAgentChangeHoldseatConfirmAPIResponse struct {
	model.CommonResponse
	TaobaoTrainAgentChangeHoldseatConfirmAPIResponseModel
}

火车票代理商接口——确认改签占座是否成功 API返回值 taobao.train.agent.change.holdseat.confirm

火车票代理商接口——确认改签占座是否成功

type TaobaoTrainAgentChangeHoldseatConfirmAPIResponseModel added in v1.2.0

type TaobaoTrainAgentChangeHoldseatConfirmAPIResponseModel struct {
	XMLName xml.Name `xml:"train_agent_change_holdseat_confirm_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 是否成功标记
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
	// errorCode
	ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"`
	// errorMsg
	ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"`
}

火车票代理商接口——确认改签占座是否成功 成功返回结果

type TaobaoTrainAgentChangeRefuseVtwoAPIRequest added in v1.2.0

type TaobaoTrainAgentChangeRefuseVtwoAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

代理商拒绝改签v2--增加鉴权校验 API请求 taobao.train.agent.change.refuse.vtwo

代理商拒绝火车票改签服务

func NewTaobaoTrainAgentChangeRefuseVtwoRequest

func NewTaobaoTrainAgentChangeRefuseVtwoRequest() *TaobaoTrainAgentChangeRefuseVtwoAPIRequest

初始化TaobaoTrainAgentChangeRefuseVtwoAPIRequest对象

func (TaobaoTrainAgentChangeRefuseVtwoAPIRequest) GetApiMethodName added in v1.2.0

IRequest interface 方法, 获取Api method

func (TaobaoTrainAgentChangeRefuseVtwoAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

func (TaobaoTrainAgentChangeRefuseVtwoAPIRequest) GetParam added in v1.2.0

Param Getter

func (*TaobaoTrainAgentChangeRefuseVtwoAPIRequest) SetParam added in v1.2.0

Param Setter 代理商拒绝改签参数

type TaobaoTrainAgentChangeRefuseVtwoAPIResponse

type TaobaoTrainAgentChangeRefuseVtwoAPIResponse struct {
	model.CommonResponse
	TaobaoTrainAgentChangeRefuseVtwoAPIResponseModel
}

代理商拒绝改签v2--增加鉴权校验 API返回值 taobao.train.agent.change.refuse.vtwo

代理商拒绝火车票改签服务

type TaobaoTrainAgentChangeRefuseVtwoAPIResponseModel added in v1.2.0

type TaobaoTrainAgentChangeRefuseVtwoAPIResponseModel struct {
	XMLName xml.Name `xml:"train_agent_change_refuse_vtwo_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 是否成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

代理商拒绝改签v2--增加鉴权校验 成功返回结果

type TaobaoTrainAgentChangeordersGetAPIRequest added in v1.2.0

type TaobaoTrainAgentChangeordersGetAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

获取待改签订单 API请求 taobao.train.agent.changeorders.get

代理商用来获取待改签的订单列表及数量,防止代理商掉单。

func NewTaobaoTrainAgentChangeordersGetRequest

func NewTaobaoTrainAgentChangeordersGetRequest() *TaobaoTrainAgentChangeordersGetAPIRequest

初始化TaobaoTrainAgentChangeordersGetAPIRequest对象

func (TaobaoTrainAgentChangeordersGetAPIRequest) GetAgentId added in v1.2.0

AgentId Getter

func (TaobaoTrainAgentChangeordersGetAPIRequest) GetApiMethodName added in v1.2.0

IRequest interface 方法, 获取Api method

func (TaobaoTrainAgentChangeordersGetAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

func (*TaobaoTrainAgentChangeordersGetAPIRequest) SetAgentId added in v1.2.0

func (r *TaobaoTrainAgentChangeordersGetAPIRequest) SetAgentId(_agentId int64) error

AgentId Setter 卖家id

type TaobaoTrainAgentChangeordersGetAPIResponse

type TaobaoTrainAgentChangeordersGetAPIResponse struct {
	model.CommonResponse
	TaobaoTrainAgentChangeordersGetAPIResponseModel
}

获取待改签订单 API返回值 taobao.train.agent.changeorders.get

代理商用来获取待改签的订单列表及数量,防止代理商掉单。

type TaobaoTrainAgentChangeordersGetAPIResponseModel added in v1.2.0

type TaobaoTrainAgentChangeordersGetAPIResponseModel struct {
	XMLName xml.Name `xml:"train_agent_changeorders_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 待处理订单总数量
	ApplyCount int64 `json:"apply_count,omitempty" xml:"apply_count,omitempty"`
	// 逗号连接的多个改签单id
	ApplyIds string `json:"apply_ids,omitempty" xml:"apply_ids,omitempty"`
}

获取待改签订单 成功返回结果

type TaobaoTrainAgentChangeordersGetVtwoAPIRequest added in v1.2.0

type TaobaoTrainAgentChangeordersGetVtwoAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

获取待改签订单v2--增加鉴权校验 API请求 taobao.train.agent.changeorders.get.vtwo

代理商用来获取待改签的订单列表及数量,防止代理商掉单。

func NewTaobaoTrainAgentChangeordersGetVtwoRequest

func NewTaobaoTrainAgentChangeordersGetVtwoRequest() *TaobaoTrainAgentChangeordersGetVtwoAPIRequest

初始化TaobaoTrainAgentChangeordersGetVtwoAPIRequest对象

func (TaobaoTrainAgentChangeordersGetVtwoAPIRequest) GetAgentId added in v1.2.0

AgentId Getter

func (TaobaoTrainAgentChangeordersGetVtwoAPIRequest) GetApiMethodName added in v1.2.0

IRequest interface 方法, 获取Api method

func (TaobaoTrainAgentChangeordersGetVtwoAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

func (*TaobaoTrainAgentChangeordersGetVtwoAPIRequest) SetAgentId added in v1.2.0

AgentId Setter 卖家id

type TaobaoTrainAgentChangeordersGetVtwoAPIResponse

type TaobaoTrainAgentChangeordersGetVtwoAPIResponse struct {
	model.CommonResponse
	TaobaoTrainAgentChangeordersGetVtwoAPIResponseModel
}

获取待改签订单v2--增加鉴权校验 API返回值 taobao.train.agent.changeorders.get.vtwo

代理商用来获取待改签的订单列表及数量,防止代理商掉单。

type TaobaoTrainAgentChangeordersGetVtwoAPIResponseModel added in v1.2.0

type TaobaoTrainAgentChangeordersGetVtwoAPIResponseModel struct {
	XMLName xml.Name `xml:"train_agent_changeorders_get_vtwo_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 待处理订单总数量
	ApplyCount int64 `json:"apply_count,omitempty" xml:"apply_count,omitempty"`
	// 逗号连接的多个改签单id
	ApplyIds string `json:"apply_ids,omitempty" xml:"apply_ids,omitempty"`
}

获取待改签订单v2--增加鉴权校验 成功返回结果

type TaobaoTrainAgentDirectCompensateAPIRequest added in v1.2.0

type TaobaoTrainAgentDirectCompensateAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

火车票代理商接口——订单关闭实际出票成功审计接口 API请求 taobao.train.agent.direct.compensate

代购直连订单平台关单但是代理商出票成功补偿接口

func NewTaobaoTrainAgentDirectCompensateRequest

func NewTaobaoTrainAgentDirectCompensateRequest() *TaobaoTrainAgentDirectCompensateAPIRequest

初始化TaobaoTrainAgentDirectCompensateAPIRequest对象

func (TaobaoTrainAgentDirectCompensateAPIRequest) GetApiMethodName added in v1.2.0

IRequest interface 方法, 获取Api method

func (TaobaoTrainAgentDirectCompensateAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

func (TaobaoTrainAgentDirectCompensateAPIRequest) GetCompensateParam added in v1.2.0

CompensateParam Getter

func (*TaobaoTrainAgentDirectCompensateAPIRequest) SetCompensateParam added in v1.2.0

func (r *TaobaoTrainAgentDirectCompensateAPIRequest) SetCompensateParam(_compensateParam *CompensateParam) error

CompensateParam Setter 出票成功补偿入参

type TaobaoTrainAgentDirectCompensateAPIResponse

type TaobaoTrainAgentDirectCompensateAPIResponse struct {
	model.CommonResponse
	TaobaoTrainAgentDirectCompensateAPIResponseModel
}

火车票代理商接口——订单关闭实际出票成功审计接口 API返回值 taobao.train.agent.direct.compensate

代购直连订单平台关单但是代理商出票成功补偿接口

type TaobaoTrainAgentDirectCompensateAPIResponseModel added in v1.2.0

type TaobaoTrainAgentDirectCompensateAPIResponseModel struct {
	XMLName xml.Name `xml:"train_agent_direct_compensate_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 是否成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
	// resultCode
	ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"`
	// resultMsg
	ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"`
}

火车票代理商接口——订单关闭实际出票成功审计接口 成功返回结果

type TaobaoTrainAgentExpressSetAPIRequest added in v1.2.0

type TaobaoTrainAgentExpressSetAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

线下票回填物流信息 API请求 taobao.train.agent.express.set

线下票回填物流信息服务

func NewTaobaoTrainAgentExpressSetRequest

func NewTaobaoTrainAgentExpressSetRequest() *TaobaoTrainAgentExpressSetAPIRequest

初始化TaobaoTrainAgentExpressSetAPIRequest对象

func (TaobaoTrainAgentExpressSetAPIRequest) GetAddr added in v1.2.0

Addr Getter

func (TaobaoTrainAgentExpressSetAPIRequest) GetAgentId added in v1.2.0

AgentId Getter

func (TaobaoTrainAgentExpressSetAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoTrainAgentExpressSetAPIRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoTrainAgentExpressSetAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

func (TaobaoTrainAgentExpressSetAPIRequest) GetExpressId added in v1.2.0

ExpressId Getter

func (TaobaoTrainAgentExpressSetAPIRequest) GetExpressName added in v1.2.0

func (r TaobaoTrainAgentExpressSetAPIRequest) GetExpressName() string

ExpressName Getter

func (TaobaoTrainAgentExpressSetAPIRequest) GetMainOrderId added in v1.2.0

func (r TaobaoTrainAgentExpressSetAPIRequest) GetMainOrderId() int64

MainOrderId Getter

func (TaobaoTrainAgentExpressSetAPIRequest) GetMobile added in v1.2.0

Mobile Getter

func (*TaobaoTrainAgentExpressSetAPIRequest) SetAddr added in v1.2.0

Addr Setter 发货地址

func (*TaobaoTrainAgentExpressSetAPIRequest) SetAgentId added in v1.2.0

func (r *TaobaoTrainAgentExpressSetAPIRequest) SetAgentId(_agentId int64) error

AgentId Setter 代理商id

func (*TaobaoTrainAgentExpressSetAPIRequest) SetExpressId added in v1.2.0

func (r *TaobaoTrainAgentExpressSetAPIRequest) SetExpressId(_expressId string) error

ExpressId Setter 物流单号

func (*TaobaoTrainAgentExpressSetAPIRequest) SetExpressName added in v1.2.0

func (r *TaobaoTrainAgentExpressSetAPIRequest) SetExpressName(_expressName string) error

ExpressName Setter 物流公司:SF,EMS

func (*TaobaoTrainAgentExpressSetAPIRequest) SetMainOrderId added in v1.2.0

func (r *TaobaoTrainAgentExpressSetAPIRequest) SetMainOrderId(_mainOrderId int64) error

MainOrderId Setter 订单号

func (*TaobaoTrainAgentExpressSetAPIRequest) SetMobile added in v1.2.0

func (r *TaobaoTrainAgentExpressSetAPIRequest) SetMobile(_mobile string) error

Mobile Setter 手机号

type TaobaoTrainAgentExpressSetAPIResponse

type TaobaoTrainAgentExpressSetAPIResponse struct {
	model.CommonResponse
	TaobaoTrainAgentExpressSetAPIResponseModel
}

线下票回填物流信息 API返回值 taobao.train.agent.express.set

线下票回填物流信息服务

type TaobaoTrainAgentExpressSetAPIResponseModel added in v1.2.0

type TaobaoTrainAgentExpressSetAPIResponseModel struct {
	XMLName xml.Name `xml:"train_agent_express_set_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 错误码
	ErrorMsgCode string `json:"error_msg_code,omitempty" xml:"error_msg_code,omitempty"`
	// 错误描述
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
	// 扩展参数
	ExtendParams string `json:"extend_params,omitempty" xml:"extend_params,omitempty"`
	// 是否成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

线下票回填物流信息 成功返回结果

type TaobaoTrainAgentExpressSetVtwoAPIRequest added in v1.2.0

type TaobaoTrainAgentExpressSetVtwoAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

线下票回填物流信息v2--增加鉴权校验 API请求 taobao.train.agent.express.set.vtwo

线下票回填物流信息服务

func NewTaobaoTrainAgentExpressSetVtwoRequest

func NewTaobaoTrainAgentExpressSetVtwoRequest() *TaobaoTrainAgentExpressSetVtwoAPIRequest

初始化TaobaoTrainAgentExpressSetVtwoAPIRequest对象

func (TaobaoTrainAgentExpressSetVtwoAPIRequest) GetAddr added in v1.2.0

Addr Getter

func (TaobaoTrainAgentExpressSetVtwoAPIRequest) GetAgentId added in v1.2.0

AgentId Getter

func (TaobaoTrainAgentExpressSetVtwoAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoTrainAgentExpressSetVtwoAPIRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoTrainAgentExpressSetVtwoAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

func (TaobaoTrainAgentExpressSetVtwoAPIRequest) GetExpressId added in v1.2.0

ExpressId Getter

func (TaobaoTrainAgentExpressSetVtwoAPIRequest) GetExpressName added in v1.2.0

ExpressName Getter

func (TaobaoTrainAgentExpressSetVtwoAPIRequest) GetMainOrderId added in v1.2.0

MainOrderId Getter

func (TaobaoTrainAgentExpressSetVtwoAPIRequest) GetMobile added in v1.2.0

Mobile Getter

func (*TaobaoTrainAgentExpressSetVtwoAPIRequest) SetAddr added in v1.2.0

Addr Setter 发货地址

func (*TaobaoTrainAgentExpressSetVtwoAPIRequest) SetAgentId added in v1.2.0

func (r *TaobaoTrainAgentExpressSetVtwoAPIRequest) SetAgentId(_agentId int64) error

AgentId Setter 代理商id

func (*TaobaoTrainAgentExpressSetVtwoAPIRequest) SetExpressId added in v1.2.0

func (r *TaobaoTrainAgentExpressSetVtwoAPIRequest) SetExpressId(_expressId string) error

ExpressId Setter 物流单号

func (*TaobaoTrainAgentExpressSetVtwoAPIRequest) SetExpressName added in v1.2.0

func (r *TaobaoTrainAgentExpressSetVtwoAPIRequest) SetExpressName(_expressName string) error

ExpressName Setter 物流公司:SF,EMS

func (*TaobaoTrainAgentExpressSetVtwoAPIRequest) SetMainOrderId added in v1.2.0

func (r *TaobaoTrainAgentExpressSetVtwoAPIRequest) SetMainOrderId(_mainOrderId int64) error

MainOrderId Setter 订单号

func (*TaobaoTrainAgentExpressSetVtwoAPIRequest) SetMobile added in v1.2.0

Mobile Setter 手机号

type TaobaoTrainAgentExpressSetVtwoAPIResponse

type TaobaoTrainAgentExpressSetVtwoAPIResponse struct {
	model.CommonResponse
	TaobaoTrainAgentExpressSetVtwoAPIResponseModel
}

线下票回填物流信息v2--增加鉴权校验 API返回值 taobao.train.agent.express.set.vtwo

线下票回填物流信息服务

type TaobaoTrainAgentExpressSetVtwoAPIResponseModel added in v1.2.0

type TaobaoTrainAgentExpressSetVtwoAPIResponseModel struct {
	XMLName xml.Name `xml:"train_agent_express_set_vtwo_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 错误码
	ErrorMsgCode string `json:"error_msg_code,omitempty" xml:"error_msg_code,omitempty"`
	// 错误描述
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
	// 扩展参数
	ExtendParams string `json:"extend_params,omitempty" xml:"extend_params,omitempty"`
	// 是否成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

线下票回填物流信息v2--增加鉴权校验 成功返回结果

type TaobaoTrainAgentGetRefundAPIRequest added in v1.2.0

type TaobaoTrainAgentGetRefundAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

代理商获取订单退票信息 API请求 taobao.train.agent.get.refund

代理商获取订单信息回调API

func NewTaobaoTrainAgentGetRefundRequest

func NewTaobaoTrainAgentGetRefundRequest() *TaobaoTrainAgentGetRefundAPIRequest

初始化TaobaoTrainAgentGetRefundAPIRequest对象

func (TaobaoTrainAgentGetRefundAPIRequest) GetAgentId added in v1.2.0

AgentId Getter

func (TaobaoTrainAgentGetRefundAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoTrainAgentGetRefundAPIRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoTrainAgentGetRefundAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

func (TaobaoTrainAgentGetRefundAPIRequest) GetMainOrderId added in v1.2.0

func (r TaobaoTrainAgentGetRefundAPIRequest) GetMainOrderId() int64

MainOrderId Getter

func (*TaobaoTrainAgentGetRefundAPIRequest) SetAgentId added in v1.2.0

func (r *TaobaoTrainAgentGetRefundAPIRequest) SetAgentId(_agentId int64) error

AgentId Setter 代理商id

func (*TaobaoTrainAgentGetRefundAPIRequest) SetMainOrderId added in v1.2.0

func (r *TaobaoTrainAgentGetRefundAPIRequest) SetMainOrderId(_mainOrderId int64) error

MainOrderId Setter 淘宝的主订单号

type TaobaoTrainAgentGetRefundAPIResponse

type TaobaoTrainAgentGetRefundAPIResponse struct {
	model.CommonResponse
	TaobaoTrainAgentGetRefundAPIResponseModel
}

代理商获取订单退票信息 API返回值 taobao.train.agent.get.refund

代理商获取订单信息回调API

type TaobaoTrainAgentGetRefundAPIResponseModel added in v1.2.0

type TaobaoTrainAgentGetRefundAPIResponseModel struct {
	XMLName xml.Name `xml:"train_agent_get_refund_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 系统自动生成
	TopRefundApplyList string `json:"top_refund_apply_list,omitempty" xml:"top_refund_apply_list,omitempty"`
}

代理商获取订单退票信息 成功返回结果

type TaobaoTrainAgentGrabAccountAPIRequest added in v1.2.0

type TaobaoTrainAgentGrabAccountAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

代购抢代理商回传12306账号 API请求 taobao.train.agent.grab.account

火车票业务代购抢功能,代理商回传12306账号,用于自营抢票链路出票

func NewTaobaoTrainAgentGrabAccountRequest

func NewTaobaoTrainAgentGrabAccountRequest() *TaobaoTrainAgentGrabAccountAPIRequest

初始化TaobaoTrainAgentGrabAccountAPIRequest对象

func (TaobaoTrainAgentGrabAccountAPIRequest) GetAccountParam added in v1.2.0

AccountParam Getter

func (TaobaoTrainAgentGrabAccountAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoTrainAgentGrabAccountAPIRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoTrainAgentGrabAccountAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

func (*TaobaoTrainAgentGrabAccountAPIRequest) SetAccountParam added in v1.2.0

func (r *TaobaoTrainAgentGrabAccountAPIRequest) SetAccountParam(_accountParam *AccountParam) error

AccountParam Setter 12306账户信息

type TaobaoTrainAgentGrabAccountAPIResponse

type TaobaoTrainAgentGrabAccountAPIResponse struct {
	model.CommonResponse
	TaobaoTrainAgentGrabAccountAPIResponseModel
}

代购抢代理商回传12306账号 API返回值 taobao.train.agent.grab.account

火车票业务代购抢功能,代理商回传12306账号,用于自营抢票链路出票

type TaobaoTrainAgentGrabAccountAPIResponseModel added in v1.2.0

type TaobaoTrainAgentGrabAccountAPIResponseModel struct {
	XMLName xml.Name `xml:"train_agent_grab_account_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// resultMsg
	ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"`
	// resultCode
	ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"`
	// success
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

代购抢代理商回传12306账号 成功返回结果

type TaobaoTrainAgentHandleticketConfirmAPIRequest added in v1.2.0

type TaobaoTrainAgentHandleticketConfirmAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

代理商出票中 API请求 taobao.train.agent.handleticket.confirm

代理商出票中

func NewTaobaoTrainAgentHandleticketConfirmRequest

func NewTaobaoTrainAgentHandleticketConfirmRequest() *TaobaoTrainAgentHandleticketConfirmAPIRequest

初始化TaobaoTrainAgentHandleticketConfirmAPIRequest对象

func (TaobaoTrainAgentHandleticketConfirmAPIRequest) GetApiMethodName added in v1.2.0

IRequest interface 方法, 获取Api method

func (TaobaoTrainAgentHandleticketConfirmAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

func (TaobaoTrainAgentHandleticketConfirmAPIRequest) GetExtendParams added in v1.2.0

ExtendParams Getter

func (TaobaoTrainAgentHandleticketConfirmAPIRequest) GetMainOrderId added in v1.2.0

MainOrderId Getter

func (TaobaoTrainAgentHandleticketConfirmAPIRequest) GetSellerId added in v1.2.0

SellerId Getter

func (*TaobaoTrainAgentHandleticketConfirmAPIRequest) SetExtendParams added in v1.2.0

func (r *TaobaoTrainAgentHandleticketConfirmAPIRequest) SetExtendParams(_extendParams string) error

ExtendParams Setter 扩展参数

func (*TaobaoTrainAgentHandleticketConfirmAPIRequest) SetMainOrderId added in v1.2.0

func (r *TaobaoTrainAgentHandleticketConfirmAPIRequest) SetMainOrderId(_mainOrderId int64) error

MainOrderId Setter 主站id

func (*TaobaoTrainAgentHandleticketConfirmAPIRequest) SetSellerId added in v1.2.0

func (r *TaobaoTrainAgentHandleticketConfirmAPIRequest) SetSellerId(_sellerId int64) error

SellerId Setter 代理商id

type TaobaoTrainAgentHandleticketConfirmAPIResponse

type TaobaoTrainAgentHandleticketConfirmAPIResponse struct {
	model.CommonResponse
	TaobaoTrainAgentHandleticketConfirmAPIResponseModel
}

代理商出票中 API返回值 taobao.train.agent.handleticket.confirm

代理商出票中

type TaobaoTrainAgentHandleticketConfirmAPIResponseModel added in v1.2.0

type TaobaoTrainAgentHandleticketConfirmAPIResponseModel struct {
	XMLName xml.Name `xml:"train_agent_handleticket_confirm_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 是否成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
	// 错误码
	TrainErrorCode string `json:"train_error_code,omitempty" xml:"train_error_code,omitempty"`
	// 错误信息
	TrainErrorMsg string `json:"train_error_msg,omitempty" xml:"train_error_msg,omitempty"`
	// 暂无
	ExtendParams string `json:"extend_params,omitempty" xml:"extend_params,omitempty"`
}

代理商出票中 成功返回结果

type TaobaoTrainAgentHandleticketConfirmVtwoAPIRequest added in v1.2.0

type TaobaoTrainAgentHandleticketConfirmVtwoAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

代理商出票中v2--增加鉴权校验 API请求 taobao.train.agent.handleticket.confirm.vtwo

代理商出票中

func NewTaobaoTrainAgentHandleticketConfirmVtwoRequest

func NewTaobaoTrainAgentHandleticketConfirmVtwoRequest() *TaobaoTrainAgentHandleticketConfirmVtwoAPIRequest

初始化TaobaoTrainAgentHandleticketConfirmVtwoAPIRequest对象

func (TaobaoTrainAgentHandleticketConfirmVtwoAPIRequest) GetApiMethodName added in v1.2.0

IRequest interface 方法, 获取Api method

func (TaobaoTrainAgentHandleticketConfirmVtwoAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

func (TaobaoTrainAgentHandleticketConfirmVtwoAPIRequest) GetExtendParams added in v1.2.0

ExtendParams Getter

func (TaobaoTrainAgentHandleticketConfirmVtwoAPIRequest) GetMainOrderId added in v1.2.0

MainOrderId Getter

func (TaobaoTrainAgentHandleticketConfirmVtwoAPIRequest) GetSellerId added in v1.2.0

SellerId Getter

func (*TaobaoTrainAgentHandleticketConfirmVtwoAPIRequest) SetExtendParams added in v1.2.0

func (r *TaobaoTrainAgentHandleticketConfirmVtwoAPIRequest) SetExtendParams(_extendParams string) error

ExtendParams Setter 扩展参数

func (*TaobaoTrainAgentHandleticketConfirmVtwoAPIRequest) SetMainOrderId added in v1.2.0

func (r *TaobaoTrainAgentHandleticketConfirmVtwoAPIRequest) SetMainOrderId(_mainOrderId int64) error

MainOrderId Setter 主站id

func (*TaobaoTrainAgentHandleticketConfirmVtwoAPIRequest) SetSellerId added in v1.2.0

SellerId Setter 代理商id

type TaobaoTrainAgentHandleticketConfirmVtwoAPIResponse

type TaobaoTrainAgentHandleticketConfirmVtwoAPIResponse struct {
	model.CommonResponse
	TaobaoTrainAgentHandleticketConfirmVtwoAPIResponseModel
}

代理商出票中v2--增加鉴权校验 API返回值 taobao.train.agent.handleticket.confirm.vtwo

代理商出票中

type TaobaoTrainAgentHandleticketConfirmVtwoAPIResponseModel added in v1.2.0

type TaobaoTrainAgentHandleticketConfirmVtwoAPIResponseModel struct {
	XMLName xml.Name `xml:"train_agent_handleticket_confirm_vtwo_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 是否成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
	// 错误码
	TrainErrorCode string `json:"train_error_code,omitempty" xml:"train_error_code,omitempty"`
	// 错误信息
	TrainErrorMsg string `json:"train_error_msg,omitempty" xml:"train_error_msg,omitempty"`
	// 暂无
	ExtendParams string `json:"extend_params,omitempty" xml:"extend_params,omitempty"`
}

代理商出票中v2--增加鉴权校验 成功返回结果

type TaobaoTrainAgentHandrefundRefundfeeAPIRequest added in v1.2.0

type TaobaoTrainAgentHandrefundRefundfeeAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

代理商手动退款接口 API请求 taobao.train.agent.handrefund.refundfee

火车票代理商手动退款接口

func NewTaobaoTrainAgentHandrefundRefundfeeRequest

func NewTaobaoTrainAgentHandrefundRefundfeeRequest() *TaobaoTrainAgentHandrefundRefundfeeAPIRequest

初始化TaobaoTrainAgentHandrefundRefundfeeAPIRequest对象

func (TaobaoTrainAgentHandrefundRefundfeeAPIRequest) GetApiMethodName added in v1.2.0

IRequest interface 方法, 获取Api method

func (TaobaoTrainAgentHandrefundRefundfeeAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

func (TaobaoTrainAgentHandrefundRefundfeeAPIRequest) GetMainBizOrderId added in v1.2.0

MainBizOrderId Getter

func (TaobaoTrainAgentHandrefundRefundfeeAPIRequest) GetOutTradeNo added in v1.2.0

OutTradeNo Getter

func (TaobaoTrainAgentHandrefundRefundfeeAPIRequest) GetRefundFee added in v1.2.0

RefundFee Getter

func (*TaobaoTrainAgentHandrefundRefundfeeAPIRequest) SetMainBizOrderId added in v1.2.0

func (r *TaobaoTrainAgentHandrefundRefundfeeAPIRequest) SetMainBizOrderId(_mainBizOrderId int64) error

MainBizOrderId Setter 主订单id

func (*TaobaoTrainAgentHandrefundRefundfeeAPIRequest) SetOutTradeNo added in v1.2.0

func (r *TaobaoTrainAgentHandrefundRefundfeeAPIRequest) SetOutTradeNo(_outTradeNo string) error

OutTradeNo Setter 外部订单号

func (*TaobaoTrainAgentHandrefundRefundfeeAPIRequest) SetRefundFee added in v1.2.0

func (r *TaobaoTrainAgentHandrefundRefundfeeAPIRequest) SetRefundFee(_refundFee int64) error

RefundFee Setter 退款金额,单位为分

type TaobaoTrainAgentHandrefundRefundfeeAPIResponse

type TaobaoTrainAgentHandrefundRefundfeeAPIResponse struct {
	model.CommonResponse
	TaobaoTrainAgentHandrefundRefundfeeAPIResponseModel
}

代理商手动退款接口 API返回值 taobao.train.agent.handrefund.refundfee

火车票代理商手动退款接口

type TaobaoTrainAgentHandrefundRefundfeeAPIResponseModel added in v1.2.0

type TaobaoTrainAgentHandrefundRefundfeeAPIResponseModel struct {
	XMLName xml.Name `xml:"train_agent_handrefund_refundfee_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 是否成功标记
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
	// 失败code
	ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"`
	// 失败文案
	ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"`
}

代理商手动退款接口 成功返回结果

type TaobaoTrainAgentHoldseatConfirmAPIRequest added in v1.2.0

type TaobaoTrainAgentHoldseatConfirmAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

火车票代理商接口——确认占座是否成功 API请求 taobao.train.agent.holdseat.confirm

火车票代理商接口——确认占座是否成功

func NewTaobaoTrainAgentHoldseatConfirmRequest

func NewTaobaoTrainAgentHoldseatConfirmRequest() *TaobaoTrainAgentHoldseatConfirmAPIRequest

初始化TaobaoTrainAgentHoldseatConfirmAPIRequest对象

func (TaobaoTrainAgentHoldseatConfirmAPIRequest) GetApiMethodName added in v1.2.0

IRequest interface 方法, 获取Api method

func (TaobaoTrainAgentHoldseatConfirmAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

func (TaobaoTrainAgentHoldseatConfirmAPIRequest) GetHoldSeatParam added in v1.2.0

HoldSeatParam Getter

func (*TaobaoTrainAgentHoldseatConfirmAPIRequest) SetHoldSeatParam added in v1.2.0

func (r *TaobaoTrainAgentHoldseatConfirmAPIRequest) SetHoldSeatParam(_holdSeatParam *HoldSeatParam) error

HoldSeatParam Setter 占座入参

type TaobaoTrainAgentHoldseatConfirmAPIResponse

type TaobaoTrainAgentHoldseatConfirmAPIResponse struct {
	model.CommonResponse
	TaobaoTrainAgentHoldseatConfirmAPIResponseModel
}

火车票代理商接口——确认占座是否成功 API返回值 taobao.train.agent.holdseat.confirm

火车票代理商接口——确认占座是否成功

type TaobaoTrainAgentHoldseatConfirmAPIResponseModel added in v1.2.0

type TaobaoTrainAgentHoldseatConfirmAPIResponseModel struct {
	XMLName xml.Name `xml:"train_agent_holdseat_confirm_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// resultMsg
	ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"`
	// resultCode
	ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"`
	// success
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

火车票代理商接口——确认占座是否成功 成功返回结果

type TaobaoTrainAgentOrderGetAPIRequest added in v1.2.0

type TaobaoTrainAgentOrderGetAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

代理商获取订单信息回调API API请求 taobao.train.agent.order.get

代理商获取订单信息回调API

func NewTaobaoTrainAgentOrderGetRequest

func NewTaobaoTrainAgentOrderGetRequest() *TaobaoTrainAgentOrderGetAPIRequest

初始化TaobaoTrainAgentOrderGetAPIRequest对象

func (TaobaoTrainAgentOrderGetAPIRequest) GetAgentId added in v1.2.0

AgentId Getter

func (TaobaoTrainAgentOrderGetAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoTrainAgentOrderGetAPIRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoTrainAgentOrderGetAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

func (TaobaoTrainAgentOrderGetAPIRequest) GetMainOrderId added in v1.2.0

func (r TaobaoTrainAgentOrderGetAPIRequest) GetMainOrderId() int64

MainOrderId Getter

func (*TaobaoTrainAgentOrderGetAPIRequest) SetAgentId added in v1.2.0

func (r *TaobaoTrainAgentOrderGetAPIRequest) SetAgentId(_agentId int64) error

AgentId Setter 代理商id

func (*TaobaoTrainAgentOrderGetAPIRequest) SetMainOrderId added in v1.2.0

func (r *TaobaoTrainAgentOrderGetAPIRequest) SetMainOrderId(_mainOrderId int64) error

MainOrderId Setter 淘宝的主订单号

type TaobaoTrainAgentOrderGetAPIResponse

type TaobaoTrainAgentOrderGetAPIResponse struct {
	model.CommonResponse
	TaobaoTrainAgentOrderGetAPIResponseModel
}

代理商获取订单信息回调API API返回值 taobao.train.agent.order.get

代理商获取订单信息回调API

type TaobaoTrainAgentOrderGetAPIResponseModel added in v1.2.0

type TaobaoTrainAgentOrderGetAPIResponseModel struct {
	XMLName xml.Name `xml:"train_agent_order_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// ttp_order_id
	TtpOrderId int64 `json:"ttp_order_id,omitempty" xml:"ttp_order_id,omitempty"`
	// 返回错误。
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
	// 主订单id
	MainOrderId int64 `json:"main_order_id,omitempty" xml:"main_order_id,omitempty"`
	// 火车票信息。
	Tickets []ToAgentTicketInfo `json:"tickets,omitempty" xml:"tickets>to_agent_ticket_info,omitempty"`
	// 整个订单的总价,包括每张票价及保险价格,价格精确到分,例如100元,输出为10000.
	TotalPrice int64 `json:"total_price,omitempty" xml:"total_price,omitempty"`
	// 移动电话
	Telephone string `json:"telephone,omitempty" xml:"telephone,omitempty"`
	// 是否需要保险邮件地址
	Mailing bool `json:"mailing,omitempty" xml:"mailing,omitempty"`
	// 保险邮件地址
	Address string `json:"address,omitempty" xml:"address,omitempty"`
	// 联系人姓名
	RelationName string `json:"relation_name,omitempty" xml:"relation_name,omitempty"`
	// 如果是公司发票,需要公司名称,如果不需要公司名称,返回no
	CompanyName string `json:"company_name,omitempty" xml:"company_name,omitempty"`
	// 1-已付款,2-关闭,3-成功
	OrderStatus int64 `json:"order_status,omitempty" xml:"order_status,omitempty"`
	// 最晚出票时间
	LatestIssueTime string `json:"latest_issue_time,omitempty" xml:"latest_issue_time,omitempty"`
	// 订单类型0:默认订单类型走代理商账号;1:走12306客户绑定的账号;2:线下邮寄票
	OrderType int64 `json:"order_type,omitempty" xml:"order_type,omitempty"`
	// 纸质票类型: 1 靠窗,2 连坐,3 上铺,4 中铺,5 下铺,6 是否同包厢
	PaperType int64 `json:"paper_type,omitempty" xml:"paper_type,omitempty"`
	// 当下铺/靠窗/连坐无票时,是否支持非下铺/非靠窗/非连坐(0不接受,1接受)
	PaperBackup int64 `json:"paper_backup,omitempty" xml:"paper_backup,omitempty"`
	// 至少接受下铺/靠窗/连坐数量
	PaperLowSeatCount int64 `json:"paper_low_seat_count,omitempty" xml:"paper_low_seat_count,omitempty"`
	// 线下票收件人姓名
	TransportName string `json:"transport_name,omitempty" xml:"transport_name,omitempty"`
	// 线下票收件人手机号
	TransportPhone string `json:"transport_phone,omitempty" xml:"transport_phone,omitempty"`
	// 线下票收件人地址
	TransportAddress string `json:"transport_address,omitempty" xml:"transport_address,omitempty"`
	// 快递费(分)
	TransportPrice int64 `json:"transport_price,omitempty" xml:"transport_price,omitempty"`
	// 手续费总价(分)
	ServicePrice int64 `json:"service_price,omitempty" xml:"service_price,omitempty"`
	// 扩展字段
	ExtendParams string `json:"extend_params,omitempty" xml:"extend_params,omitempty"`
}

代理商获取订单信息回调API 成功返回结果

type TaobaoTrainAgentOrderGetVtwoAPIRequest added in v1.2.0

type TaobaoTrainAgentOrderGetVtwoAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

代理商获取订单信息回调APIv2--增加鉴权校验 API请求 taobao.train.agent.order.get.vtwo

代理商获取订单信息回调API

func NewTaobaoTrainAgentOrderGetVtwoRequest

func NewTaobaoTrainAgentOrderGetVtwoRequest() *TaobaoTrainAgentOrderGetVtwoAPIRequest

初始化TaobaoTrainAgentOrderGetVtwoAPIRequest对象

func (TaobaoTrainAgentOrderGetVtwoAPIRequest) GetAgentId added in v1.2.0

AgentId Getter

func (TaobaoTrainAgentOrderGetVtwoAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoTrainAgentOrderGetVtwoAPIRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoTrainAgentOrderGetVtwoAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

func (TaobaoTrainAgentOrderGetVtwoAPIRequest) GetMainOrderId added in v1.2.0

func (r TaobaoTrainAgentOrderGetVtwoAPIRequest) GetMainOrderId() int64

MainOrderId Getter

func (*TaobaoTrainAgentOrderGetVtwoAPIRequest) SetAgentId added in v1.2.0

func (r *TaobaoTrainAgentOrderGetVtwoAPIRequest) SetAgentId(_agentId int64) error

AgentId Setter 代理商id

func (*TaobaoTrainAgentOrderGetVtwoAPIRequest) SetMainOrderId added in v1.2.0

func (r *TaobaoTrainAgentOrderGetVtwoAPIRequest) SetMainOrderId(_mainOrderId int64) error

MainOrderId Setter 淘宝的主订单号

type TaobaoTrainAgentOrderGetVtwoAPIResponse

type TaobaoTrainAgentOrderGetVtwoAPIResponse struct {
	model.CommonResponse
	TaobaoTrainAgentOrderGetVtwoAPIResponseModel
}

代理商获取订单信息回调APIv2--增加鉴权校验 API返回值 taobao.train.agent.order.get.vtwo

代理商获取订单信息回调API

type TaobaoTrainAgentOrderGetVtwoAPIResponseModel added in v1.2.0

type TaobaoTrainAgentOrderGetVtwoAPIResponseModel struct {
	XMLName xml.Name `xml:"train_agent_order_get_vtwo_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// ttp_order_id
	TtpOrderId int64 `json:"ttp_order_id,omitempty" xml:"ttp_order_id,omitempty"`
	// 返回错误。
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
	// 主订单id
	MainOrderId int64 `json:"main_order_id,omitempty" xml:"main_order_id,omitempty"`
	// 火车票信息。
	Tickets []ToAgentTicketInfo `json:"tickets,omitempty" xml:"tickets>to_agent_ticket_info,omitempty"`
	// 整个订单的总价,包括每张票价及保险价格,价格精确到分,例如100元,输出为10000.
	TotalPrice int64 `json:"total_price,omitempty" xml:"total_price,omitempty"`
	// 移动电话
	Telephone string `json:"telephone,omitempty" xml:"telephone,omitempty"`
	// 是否需要保险邮件地址
	Mailing bool `json:"mailing,omitempty" xml:"mailing,omitempty"`
	// 保险邮件地址
	Address string `json:"address,omitempty" xml:"address,omitempty"`
	// 联系人姓名
	RelationName string `json:"relation_name,omitempty" xml:"relation_name,omitempty"`
	// 如果是公司发票,需要公司名称,如果不需要公司名称,返回no
	CompanyName string `json:"company_name,omitempty" xml:"company_name,omitempty"`
	// 1-已付款,2-关闭,3-成功
	OrderStatus int64 `json:"order_status,omitempty" xml:"order_status,omitempty"`
	// 最晚出票时间
	LatestIssueTime string `json:"latest_issue_time,omitempty" xml:"latest_issue_time,omitempty"`
	// 订单类型0:默认订单类型走代理商账号;1:走12306客户绑定的账号;2:线下邮寄票
	OrderType int64 `json:"order_type,omitempty" xml:"order_type,omitempty"`
	// 纸质票类型: 1 靠窗,2 连坐,3 上铺,4 中铺,5 下铺,6 是否同包厢
	PaperType int64 `json:"paper_type,omitempty" xml:"paper_type,omitempty"`
	// 当下铺/靠窗/连坐无票时,是否支持非下铺/非靠窗/非连坐(0不接受,1接受)
	PaperBackup int64 `json:"paper_backup,omitempty" xml:"paper_backup,omitempty"`
	// 至少接受下铺/靠窗/连坐数量
	PaperLowSeatCount int64 `json:"paper_low_seat_count,omitempty" xml:"paper_low_seat_count,omitempty"`
	// 线下票收件人姓名
	TransportName string `json:"transport_name,omitempty" xml:"transport_name,omitempty"`
	// 线下票收件人手机号
	TransportPhone string `json:"transport_phone,omitempty" xml:"transport_phone,omitempty"`
	// 线下票收件人地址
	TransportAddress string `json:"transport_address,omitempty" xml:"transport_address,omitempty"`
	// 快递费(分)
	TransportPrice int64 `json:"transport_price,omitempty" xml:"transport_price,omitempty"`
	// 手续费总价(分)
	ServicePrice int64 `json:"service_price,omitempty" xml:"service_price,omitempty"`
	// 扩展字段
	ExtendParams string `json:"extend_params,omitempty" xml:"extend_params,omitempty"`
	// 1A2B
	OnlineBookSeat string `json:"online_book_seat,omitempty" xml:"online_book_seat,omitempty"`
	// interchangeStation
	InterchangeStation string `json:"interchange_station,omitempty" xml:"interchange_station,omitempty"`
	// isMultiTrip
	IsMultiTrip string `json:"is_multi_trip,omitempty" xml:"is_multi_trip,omitempty"`
	// 是否需要发票
	NeedReceipt bool `json:"need_receipt,omitempty" xml:"need_receipt,omitempty"`
	// 是否接受非定制坐席 1:是 0:否
	AcceptNoVipCustom int64 `json:"accept_no_vip_custom,omitempty" xml:"accept_no_vip_custom,omitempty"`
	// 用户可接受的最少定制票数量
	VipCustomMinSeatCount int64 `json:"vip_custom_min_seat_count,omitempty" xml:"vip_custom_min_seat_count,omitempty"`
	// 定制票类型 1:下铺 2:下铺or中铺 3:过道 4:靠窗
	VipCustomType int64 `json:"vip_custom_type,omitempty" xml:"vip_custom_type,omitempty"`
}

代理商获取订单信息回调APIv2--增加鉴权校验 成功返回结果

type TaobaoTrainAgentOrderPayAPIRequest added in v1.2.0

type TaobaoTrainAgentOrderPayAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

代购订单代付接口 API请求 taobao.train.agent.order.pay

代购订单代付接口

func NewTaobaoTrainAgentOrderPayRequest

func NewTaobaoTrainAgentOrderPayRequest() *TaobaoTrainAgentOrderPayAPIRequest

初始化TaobaoTrainAgentOrderPayAPIRequest对象

func (TaobaoTrainAgentOrderPayAPIRequest) GetAgentPayOrderParam added in v1.2.0

func (r TaobaoTrainAgentOrderPayAPIRequest) GetAgentPayOrderParam() *AgentPayOrderParam

AgentPayOrderParam Getter

func (TaobaoTrainAgentOrderPayAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoTrainAgentOrderPayAPIRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoTrainAgentOrderPayAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

func (*TaobaoTrainAgentOrderPayAPIRequest) SetAgentPayOrderParam added in v1.2.0

func (r *TaobaoTrainAgentOrderPayAPIRequest) SetAgentPayOrderParam(_agentPayOrderParam *AgentPayOrderParam) error

AgentPayOrderParam Setter 入参对象

type TaobaoTrainAgentOrderPayAPIResponse

type TaobaoTrainAgentOrderPayAPIResponse struct {
	model.CommonResponse
	TaobaoTrainAgentOrderPayAPIResponseModel
}

代购订单代付接口 API返回值 taobao.train.agent.order.pay

代购订单代付接口

type TaobaoTrainAgentOrderPayAPIResponseModel added in v1.2.0

type TaobaoTrainAgentOrderPayAPIResponseModel struct {
	XMLName xml.Name `xml:"train_agent_order_pay_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 成功返回
	ExtendParams string `json:"extend_params,omitempty" xml:"extend_params,omitempty"`
}

代购订单代付接口 成功返回结果

type TaobaoTrainAgentReturnordersGetVtwoAPIRequest added in v1.2.0

type TaobaoTrainAgentReturnordersGetVtwoAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

获取待退票的订单v2--增加鉴权校验 API请求 taobao.train.agent.returnorders.get.vtwo

代理商用来获取待退票的订单列表及数量,防止代理商掉单。

func NewTaobaoTrainAgentReturnordersGetVtwoRequest

func NewTaobaoTrainAgentReturnordersGetVtwoRequest() *TaobaoTrainAgentReturnordersGetVtwoAPIRequest

初始化TaobaoTrainAgentReturnordersGetVtwoAPIRequest对象

func (TaobaoTrainAgentReturnordersGetVtwoAPIRequest) GetAgentId added in v1.2.0

AgentId Getter

func (TaobaoTrainAgentReturnordersGetVtwoAPIRequest) GetApiMethodName added in v1.2.0

IRequest interface 方法, 获取Api method

func (TaobaoTrainAgentReturnordersGetVtwoAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

func (TaobaoTrainAgentReturnordersGetVtwoAPIRequest) GetOffline added in v1.2.0

Offline Getter

func (*TaobaoTrainAgentReturnordersGetVtwoAPIRequest) SetAgentId added in v1.2.0

AgentId Setter 卖家ID

func (*TaobaoTrainAgentReturnordersGetVtwoAPIRequest) SetOffline added in v1.2.0

Offline Setter 0 线上退票 1线下退票

type TaobaoTrainAgentReturnordersGetVtwoAPIResponse

type TaobaoTrainAgentReturnordersGetVtwoAPIResponse struct {
	model.CommonResponse
	TaobaoTrainAgentReturnordersGetVtwoAPIResponseModel
}

获取待退票的订单v2--增加鉴权校验 API返回值 taobao.train.agent.returnorders.get.vtwo

代理商用来获取待退票的订单列表及数量,防止代理商掉单。

type TaobaoTrainAgentReturnordersGetVtwoAPIResponseModel added in v1.2.0

type TaobaoTrainAgentReturnordersGetVtwoAPIResponseModel struct {
	XMLName xml.Name `xml:"train_agent_returnorders_get_vtwo_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 待退票的订单数
	OrderCount int64 `json:"order_count,omitempty" xml:"order_count,omitempty"`
	// 子订单号字符串,每个订单以逗号分隔
	OrderIds string `json:"order_ids,omitempty" xml:"order_ids,omitempty"`
	// 错误描述
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
	// 主订单id列表
	MainOrderIds string `json:"main_order_ids,omitempty" xml:"main_order_ids,omitempty"`
	// 申请时间,每个时间以逗号分隔
	RefundApplyTimes string `json:"refund_apply_times,omitempty" xml:"refund_apply_times,omitempty"`
}

获取待退票的订单v2--增加鉴权校验 成功返回结果

type TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest added in v1.2.0

type TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

退票通知 API请求 taobao.train.agent.returnticket.confirm.vtwo

火车票代理商接口——退票通知回调

func NewTaobaoTrainAgentReturnticketConfirmVtwoRequest

func NewTaobaoTrainAgentReturnticketConfirmVtwoRequest() *TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest

初始化TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest对象

func (TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest) GetAgentId added in v1.2.0

AgentId Getter

func (TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest) GetAgreeReturn added in v1.2.0

AgreeReturn Getter

func (TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest) GetApiMethodName added in v1.2.0

IRequest interface 方法, 获取Api method

func (TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

func (TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest) GetBuyerId added in v1.2.0

BuyerId Getter

func (TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest) GetCloseRefundNotify added in v1.2.0

CloseRefundNotify Getter

func (TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest) GetMainBizOrderId added in v1.2.0

MainBizOrderId Getter

func (TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest) GetRefundFee added in v1.2.0

RefundFee Getter

func (TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest) GetRefuseReturnReason added in v1.2.0

RefuseReturnReason Getter

func (TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest) GetSubBizOrderId added in v1.2.0

SubBizOrderId Getter

func (*TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest) SetAgentId added in v1.2.0

AgentId Setter 代理商id

func (*TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest) SetAgreeReturn added in v1.2.0

func (r *TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest) SetAgreeReturn(_agreeReturn bool) error

AgreeReturn Setter 是否同意退票

func (*TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest) SetBuyerId added in v1.2.0

BuyerId Setter 用户id

func (*TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest) SetCloseRefundNotify added in v1.2.0

func (r *TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest) SetCloseRefundNotify(_closeRefundNotify bool) error

CloseRefundNotify Setter 关闭通知用户 true:关闭 false:不关闭

func (*TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest) SetMainBizOrderId added in v1.2.0

func (r *TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest) SetMainBizOrderId(_mainBizOrderId int64) error

MainBizOrderId Setter 淘宝主订单id

func (*TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest) SetRefundFee added in v1.2.0

RefundFee Setter 退票金额,单位分

func (*TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest) SetRefuseReturnReason added in v1.2.0

func (r *TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest) SetRefuseReturnReason(_refuseReturnReason string) error

RefuseReturnReason Setter 拒绝退票原因

func (*TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest) SetSubBizOrderId added in v1.2.0

func (r *TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest) SetSubBizOrderId(_subBizOrderId int64) error

SubBizOrderId Setter 淘宝子订单id

type TaobaoTrainAgentReturnticketConfirmVtwoAPIResponse

type TaobaoTrainAgentReturnticketConfirmVtwoAPIResponse struct {
	model.CommonResponse
	TaobaoTrainAgentReturnticketConfirmVtwoAPIResponseModel
}

退票通知 API返回值 taobao.train.agent.returnticket.confirm.vtwo

火车票代理商接口——退票通知回调

type TaobaoTrainAgentReturnticketConfirmVtwoAPIResponseModel added in v1.2.0

type TaobaoTrainAgentReturnticketConfirmVtwoAPIResponseModel struct {
	XMLName xml.Name `xml:"train_agent_returnticket_confirm_vtwo_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// resultCode
	ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"`
	// success
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
	// resultMsg
	ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"`
}

退票通知 成功返回结果

type TaobaoTrainAgentTostationConfirmAPIRequest added in v1.2.0

type TaobaoTrainAgentTostationConfirmAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

线下票确认送票至车站服务 API请求 taobao.train.agent.tostation.confirm

送票至车站的订单,代理商确认配送到站

func NewTaobaoTrainAgentTostationConfirmRequest

func NewTaobaoTrainAgentTostationConfirmRequest() *TaobaoTrainAgentTostationConfirmAPIRequest

初始化TaobaoTrainAgentTostationConfirmAPIRequest对象

func (TaobaoTrainAgentTostationConfirmAPIRequest) GetAgentId added in v1.2.0

AgentId Getter

func (TaobaoTrainAgentTostationConfirmAPIRequest) GetApiMethodName added in v1.2.0

IRequest interface 方法, 获取Api method

func (TaobaoTrainAgentTostationConfirmAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

func (TaobaoTrainAgentTostationConfirmAPIRequest) GetMainOrderId added in v1.2.0

MainOrderId Getter

func (*TaobaoTrainAgentTostationConfirmAPIRequest) SetAgentId added in v1.2.0

func (r *TaobaoTrainAgentTostationConfirmAPIRequest) SetAgentId(_agentId int64) error

AgentId Setter 代理商id

func (*TaobaoTrainAgentTostationConfirmAPIRequest) SetMainOrderId added in v1.2.0

func (r *TaobaoTrainAgentTostationConfirmAPIRequest) SetMainOrderId(_mainOrderId int64) error

MainOrderId Setter 淘宝的主订单号

type TaobaoTrainAgentTostationConfirmAPIResponse

type TaobaoTrainAgentTostationConfirmAPIResponse struct {
	model.CommonResponse
	TaobaoTrainAgentTostationConfirmAPIResponseModel
}

线下票确认送票至车站服务 API返回值 taobao.train.agent.tostation.confirm

送票至车站的订单,代理商确认配送到站

type TaobaoTrainAgentTostationConfirmAPIResponseModel added in v1.2.0

type TaobaoTrainAgentTostationConfirmAPIResponseModel struct {
	XMLName xml.Name `xml:"train_agent_tostation_confirm_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 错误码
	ErrorMsgCode string `json:"error_msg_code,omitempty" xml:"error_msg_code,omitempty"`
	// 扩展参数
	ExtendParams string `json:"extend_params,omitempty" xml:"extend_params,omitempty"`
	// 错误描述
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
	// 是否成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

线下票确认送票至车站服务 成功返回结果

type TaobaoTrainAgentTostationReceiveAPIRequest added in v1.2.0

type TaobaoTrainAgentTostationReceiveAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

线下票送票至车站代理商确认用户已取票服务 API请求 taobao.train.agent.tostation.receive

送票至车站的订单,代理商确认用户已取票

func NewTaobaoTrainAgentTostationReceiveRequest

func NewTaobaoTrainAgentTostationReceiveRequest() *TaobaoTrainAgentTostationReceiveAPIRequest

初始化TaobaoTrainAgentTostationReceiveAPIRequest对象

func (TaobaoTrainAgentTostationReceiveAPIRequest) GetAgentId added in v1.2.0

AgentId Getter

func (TaobaoTrainAgentTostationReceiveAPIRequest) GetApiMethodName added in v1.2.0

IRequest interface 方法, 获取Api method

func (TaobaoTrainAgentTostationReceiveAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

func (TaobaoTrainAgentTostationReceiveAPIRequest) GetMainOrderId added in v1.2.0

MainOrderId Getter

func (*TaobaoTrainAgentTostationReceiveAPIRequest) SetAgentId added in v1.2.0

func (r *TaobaoTrainAgentTostationReceiveAPIRequest) SetAgentId(_agentId int64) error

AgentId Setter 代理商id

func (*TaobaoTrainAgentTostationReceiveAPIRequest) SetMainOrderId added in v1.2.0

func (r *TaobaoTrainAgentTostationReceiveAPIRequest) SetMainOrderId(_mainOrderId int64) error

MainOrderId Setter 淘宝的主订单号

type TaobaoTrainAgentTostationReceiveAPIResponse

type TaobaoTrainAgentTostationReceiveAPIResponse struct {
	model.CommonResponse
	TaobaoTrainAgentTostationReceiveAPIResponseModel
}

线下票送票至车站代理商确认用户已取票服务 API返回值 taobao.train.agent.tostation.receive

送票至车站的订单,代理商确认用户已取票

type TaobaoTrainAgentTostationReceiveAPIResponseModel added in v1.2.0

type TaobaoTrainAgentTostationReceiveAPIResponseModel struct {
	XMLName xml.Name `xml:"train_agent_tostation_receive_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 错误码
	ErrorMsgCode string `json:"error_msg_code,omitempty" xml:"error_msg_code,omitempty"`
	// 扩展参数
	ExtendParams string `json:"extend_params,omitempty" xml:"extend_params,omitempty"`
	// 错误描述
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
	// 是否成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

线下票送票至车站代理商确认用户已取票服务 成功返回结果

type TaobaoTrainMomentGetAPIRequest added in v1.2.0

type TaobaoTrainMomentGetAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

火车票时刻表 API请求 taobao.train.moment.get

查询火车票车次时刻表

func NewTaobaoTrainMomentGetRequest

func NewTaobaoTrainMomentGetRequest() *TaobaoTrainMomentGetAPIRequest

初始化TaobaoTrainMomentGetAPIRequest对象

func (TaobaoTrainMomentGetAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoTrainMomentGetAPIRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoTrainMomentGetAPIRequest) GetApiParams added in v1.2.0

func (r TaobaoTrainMomentGetAPIRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (TaobaoTrainMomentGetAPIRequest) GetParam added in v1.2.0

Param Getter

func (*TaobaoTrainMomentGetAPIRequest) SetParam added in v1.2.0

Param Setter 出参

type TaobaoTrainMomentGetAPIResponse

type TaobaoTrainMomentGetAPIResponse struct {
	model.CommonResponse
	TaobaoTrainMomentGetAPIResponseModel
}

火车票时刻表 API返回值 taobao.train.moment.get

查询火车票车次时刻表

type TaobaoTrainMomentGetAPIResponseModel added in v1.2.0

type TaobaoTrainMomentGetAPIResponseModel struct {
	XMLName xml.Name `xml:"train_moment_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 出发到达对应时刻表索引
	Bindex string `json:"bindex,omitempty" xml:"bindex,omitempty"`
	// 错误码
	ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"`
	// 错误信息
	ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"`
	// 经停站
	Stations []StationPassInfo `json:"stations,omitempty" xml:"stations>station_pass_info,omitempty"`
	// 是否成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

火车票时刻表 成功返回结果

type ToAgentTicketInfo

type ToAgentTicketInfo struct {
	// 学生信息
	StudentInfo *StudentInfo `json:"student_info,omitempty" xml:"student_info,omitempty"`
	// 淘宝火车票子订单id.
	SubOrderId string `json:"sub_order_id,omitempty" xml:"sub_order_id,omitempty"`
	// 出发站
	FromStation string `json:"from_station,omitempty" xml:"from_station,omitempty"`
	// 出发时间
	FromTime string `json:"from_time,omitempty" xml:"from_time,omitempty"`
	// 到达站
	ToStation string `json:"to_station,omitempty" xml:"to_station,omitempty"`
	// 坐席
	Seat int64 `json:"seat,omitempty" xml:"seat,omitempty"`
	// 车次
	TrainNum string `json:"train_num,omitempty" xml:"train_num,omitempty"`
	// 乘客姓名
	PassengerName string `json:"passenger_name,omitempty" xml:"passenger_name,omitempty"`
	// 证件编号
	CertificateNum string `json:"certificate_num,omitempty" xml:"certificate_num,omitempty"`
	// 证件类型,0:身份证 1:护照 4:港澳通行证 5:台湾通行证
	CertificateType string `json:"certificate_type,omitempty" xml:"certificate_type,omitempty"`
	// 保险价格,精确到分,例如10元,输入1000。
	InsurancePrice int64 `json:"insurance_price,omitempty" xml:"insurance_price,omitempty"`
	// 单张票价(不包含保险价格),例如100元,输出为10000,精确到分.
	TicketPrice int64 `json:"ticket_price,omitempty" xml:"ticket_price,omitempty"`
	// 乘客生日
	Birthday string `json:"birthday,omitempty" xml:"birthday,omitempty"`
	// 到站时间
	ToTime string `json:"to_time,omitempty" xml:"to_time,omitempty"`
	// 1:单程票
	Tag int64 `json:"tag,omitempty" xml:"tag,omitempty"`
	// 保险的单一价格
	InsuranceUnitPrice int64 `json:"insurance_unit_price,omitempty" xml:"insurance_unit_price,omitempty"`
	// 0:成人 1:儿童 2:学生
	PassengerType int64 `json:"passenger_type,omitempty" xml:"passenger_type,omitempty"`
	// segmentIndex
	SegmentIndex int64 `json:"segment_index,omitempty" xml:"segment_index,omitempty"`
	// 国籍
	Nationality string `json:"nationality,omitempty" xml:"nationality,omitempty"`
	// 国籍代码
	NationalityCode string `json:"nationality_code,omitempty" xml:"nationality_code,omitempty"`
	// 证件有效期
	ValidUntil string `json:"valid_until,omitempty" xml:"valid_until,omitempty"`
	// 性别  1:男  0:女
	Gender string `json:"gender,omitempty" xml:"gender,omitempty"`
	// 联系人电话
	Telephone string `json:"telephone,omitempty" xml:"telephone,omitempty"`
	//
	RealTicketPrice int64 `json:"real_ticket_price,omitempty" xml:"real_ticket_price,omitempty"`
}

ToAgentTicketInfo

type TrainBaseDto

type TrainBaseDto struct {
	// 车次号
	TrainNumber string `json:"train_number,omitempty" xml:"train_number,omitempty"`
	// 车次类型
	TrainType int64 `json:"train_type,omitempty" xml:"train_type,omitempty"`
	// 运行时长
	RunTime string `json:"run_time,omitempty" xml:"run_time,omitempty"`
	// 到达时间
	ToStationTime string `json:"to_station_time,omitempty" xml:"to_station_time,omitempty"`
	// 到达站
	ToStationName string `json:"to_station_name,omitempty" xml:"to_station_name,omitempty"`
	// 出发时间
	FromStationTime string `json:"from_station_time,omitempty" xml:"from_station_time,omitempty"`
	// 出发站
	FromStationName string `json:"from_station_name,omitempty" xml:"from_station_name,omitempty"`
	// 坐席类型
	SeatType string `json:"seat_type,omitempty" xml:"seat_type,omitempty"`
}

TrainBaseDto

type TrainMomentTopParam

type TrainMomentTopParam struct {
	// 到达站
	ArrStation string `json:"arr_station,omitempty" xml:"arr_station,omitempty"`
	// 出发日期
	DepDate string `json:"dep_date,omitempty" xml:"dep_date,omitempty"`
	// 出发站
	DepStation string `json:"dep_station,omitempty" xml:"dep_station,omitempty"`
	// 车次号
	TrainNo string `json:"train_no,omitempty" xml:"train_no,omitempty"`
	// 长车次号
	TrainNoLong string `json:"train_no_long,omitempty" xml:"train_no_long,omitempty"`
	// 渠道标识
	Ttid string `json:"ttid,omitempty" xml:"ttid,omitempty"`
}

TrainMomentTopParam

type TrainPassengerInfoDto

type TrainPassengerInfoDto struct {
	// 实际出票价格(单位分)
	PayPrice int64 `json:"pay_price,omitempty" xml:"pay_price,omitempty"`
	// 子订单号
	SubOrderId int64 `json:"sub_order_id,omitempty" xml:"sub_order_id,omitempty"`
	// 改签手续费(单位分)
	HandFee int64 `json:"hand_fee,omitempty" xml:"hand_fee,omitempty"`
	// 座位号
	SeatNum string `json:"seat_num,omitempty" xml:"seat_num,omitempty"`
	// 真实坐席信息
	RealSeat int64 `json:"real_seat,omitempty" xml:"real_seat,omitempty"`
	// 旅客类型
	PassengerType int64 `json:"passenger_type,omitempty" xml:"passenger_type,omitempty"`
	// 乘客名称
	PassengerName string `json:"passenger_name,omitempty" xml:"passenger_name,omitempty"`
	// 证件编号
	CertificateNum string `json:"certificate_num,omitempty" xml:"certificate_num,omitempty"`
	// 证件类型
	CertificateType int64 `json:"certificate_type,omitempty" xml:"certificate_type,omitempty"`
	// 儿童跟随,为成人的证件号
	ChdFollowAdtId string `json:"chd_follow_adt_id,omitempty" xml:"chd_follow_adt_id,omitempty"`
}

TrainPassengerInfoDto

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL