train

package
v1.2.7 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package train 包含火车票API相关结构体

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountParam

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

AccountParam 结构体

type AgentPayOrderParam

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

AgentPayOrderParam 结构体

type BookTicketConfirmRq added in v1.2.7

type BookTicketConfirmRq struct {
	// 票信息
	Tickets []TicketDto `json:"tickets,omitempty" xml:"tickets>ticket_dto,omitempty"`
	// 支付宝交易流水号
	AliPayTradeNo string `json:"ali_pay_trade_no,omitempty" xml:"ali_pay_trade_no,omitempty"`
	// 支付宝账号
	AliPayAccount string `json:"ali_pay_account,omitempty" xml:"ali_pay_account,omitempty"`
	// 检票口信息
	FlatMsg string `json:"flat_msg,omitempty" xml:"flat_msg,omitempty"`
	// 主单号
	TtpOrderId int64 `json:"ttp_order_id,omitempty" xml:"ttp_order_id,omitempty"`
	// 支付方式 CASH(0),ELECTRONIC(1)
	VipSettlementModeCode int64 `json:"vip_settlement_mode_code,omitempty" xml:"vip_settlement_mode_code,omitempty"`
	// 是否支持线上退改签
	CanChange bool `json:"can_change,omitempty" xml:"can_change,omitempty"`
}

BookTicketConfirmRq 结构体

type BookTicketFailRq added in v1.2.7

type BookTicketFailRq struct {
	// 出票失败原因
	FailReason string `json:"fail_reason,omitempty" xml:"fail_reason,omitempty"`
	// 子订单号
	SubOrderId int64 `json:"sub_order_id,omitempty" xml:"sub_order_id,omitempty"`
	// 主单号
	TtpOrderId int64 `json:"ttp_order_id,omitempty" xml:"ttp_order_id,omitempty"`
}

BookTicketFailRq 结构体

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 IgnoreOrderRq added in v1.2.7

type IgnoreOrderRq struct {
	// 子单号 (不填默认全部忽略)
	SubOrderId []int64 `json:"sub_order_id,omitempty" xml:"sub_order_id>int64,omitempty"`
	// 主单号
	TtpOrderId int64 `json:"ttp_order_id,omitempty" xml:"ttp_order_id,omitempty"`
}

IgnoreOrderRq 结构体

type LockOrderRq added in v1.2.7

type LockOrderRq struct {
	// 票信息
	Tickets []TicketDto `json:"tickets,omitempty" xml:"tickets>ticket_dto,omitempty"`
	// 主单号
	TtpOrderId int64 `json:"ttp_order_id,omitempty" xml:"ttp_order_id,omitempty"`
}

LockOrderRq 结构体

type LockOrderRs added in v1.2.5

type LockOrderRs struct {
	// 票信息
	TicketInfos []TicketInfoDto `json:"ticket_infos,omitempty" xml:"ticket_infos>ticket_info_dto,omitempty"`
	// 锁单最晚有效时间
	LockLastTime string `json:"lock_last_time,omitempty" xml:"lock_last_time,omitempty"`
	// 乘车人余留联系方式
	ContactMobileNo string `json:"contact_mobile_no,omitempty" xml:"contact_mobile_no,omitempty"`
}

LockOrderRs 结构体

type OrderTicketInfo

type OrderTicketInfo struct {
	// 座位号
	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"`
	// 12306票号
	TicketNo string `json:"ticket_no,omitempty" xml:"ticket_no,omitempty"`
	// 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"`
	// 保险支付金额
	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"`
}

OrderTicketInfo 结构体

type QueryOrderRq added in v1.2.7

type QueryOrderRq struct {
	// 主单号
	TtpOrderId int64 `json:"ttp_order_id,omitempty" xml:"ttp_order_id,omitempty"`
}

QueryOrderRq 结构体

type QueryOrderRs added in v1.2.5

type QueryOrderRs struct {
	// 票详情
	TicketInfos []TicketInfoDto `json:"ticket_infos,omitempty" xml:"ticket_infos>ticket_info_dto,omitempty"`
	// 子单详情
	TapSubOrders []TapSubOrderVo `json:"tap_sub_orders,omitempty" xml:"tap_sub_orders>tap_sub_order_vo,omitempty"`
	// 主单详情
	TapOrder *TapOrderVo `json:"tap_order,omitempty" xml:"tap_order,omitempty"`
}

QueryOrderRs 结构体

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 TaobaoTrainAgentBookordersGetVtwoAPIRequest added in v1.2.0

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

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

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

func NewTaobaoTrainAgentBookordersGetVtwoRequest

func NewTaobaoTrainAgentBookordersGetVtwoRequest() *TaobaoTrainAgentBookordersGetVtwoAPIRequest

NewTaobaoTrainAgentBookordersGetVtwoRequest 初始化TaobaoTrainAgentBookordersGetVtwoAPIRequest对象

func (TaobaoTrainAgentBookordersGetVtwoAPIRequest) GetAgentId added in v1.2.0

GetAgentId AgentId Getter

func (TaobaoTrainAgentBookordersGetVtwoAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoTrainAgentBookordersGetVtwoAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (*TaobaoTrainAgentBookordersGetVtwoAPIRequest) SetAgentId added in v1.2.0

SetAgentId is AgentId Setter 代理商id

type TaobaoTrainAgentBookordersGetVtwoAPIResponse

type TaobaoTrainAgentBookordersGetVtwoAPIResponse struct {
	model.CommonResponse
	TaobaoTrainAgentBookordersGetVtwoAPIResponseModel
}

TaobaoTrainAgentBookordersGetVtwoAPIResponse 代理商获取待出票订单列表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"`
	// 订单号集合,用半角逗号(,)连接,只会返回固定数量
	OrderIds string `json:"order_ids,omitempty" xml:"order_ids,omitempty"`
	// 错误描述
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
	// 待处理订单总数
	OrderCount int64 `json:"order_count,omitempty" xml:"order_count,omitempty"`
}

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

type TaobaoTrainAgentBookticketConfirmVtwoAPIRequest added in v1.2.0

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

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

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

func NewTaobaoTrainAgentBookticketConfirmVtwoRequest

func NewTaobaoTrainAgentBookticketConfirmVtwoRequest() *TaobaoTrainAgentBookticketConfirmVtwoAPIRequest

NewTaobaoTrainAgentBookticketConfirmVtwoRequest 初始化TaobaoTrainAgentBookticketConfirmVtwoAPIRequest对象

func (TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) GetAgentId added in v1.2.0

GetAgentId AgentId Getter

func (TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) GetAlipayAccount added in v1.2.0

GetAlipayAccount AlipayAccount Getter

func (TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) GetAlipayTradeNo added in v1.2.0

GetAlipayTradeNo AlipayTradeNo Getter

func (TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) GetArriveDate added in v1.2.0

GetArriveDate ArriveDate Getter

func (TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) GetBoardingGates added in v1.2.0

GetBoardingGates BoardingGates Getter

func (TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) GetCanChange added in v1.2.0

GetCanChange CanChange Getter

func (TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) GetDepDate added in v1.2.0

GetDepDate DepDate Getter

func (TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) GetExpectDeliveryTime added in v1.2.0

func (r TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) GetExpectDeliveryTime() string

GetExpectDeliveryTime ExpectDeliveryTime Getter

func (TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) GetExtendParams added in v1.2.0

GetExtendParams ExtendParams Getter

func (TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) GetFailMsg added in v1.2.0

GetFailMsg FailMsg Getter

func (TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) GetFromStationName added in v1.2.0

GetFromStationName FromStationName Getter

func (TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) GetMainOrderId added in v1.2.0

GetMainOrderId MainOrderId Getter

func (TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) GetOrderType added in v1.2.0

GetOrderType OrderType Getter

func (TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) GetStatus added in v1.2.0

GetStatus Status Getter

func (TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) GetSubOrderId added in v1.2.0

GetSubOrderId SubOrderId Getter

func (TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) GetTicket12306Id added in v1.2.0

GetTicket12306Id Ticket12306Id Getter

func (TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) GetTicketInfoList added in v1.2.0

GetTicketInfoList TicketInfoList Getter

func (TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) GetTicketNum added in v1.2.0

GetTicketNum TicketNum Getter

func (TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) GetTickets added in v1.2.0

GetTickets Tickets Getter

func (TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) GetToStationName added in v1.2.0

GetToStationName ToStationName Getter

func (*TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetAgentId added in v1.2.0

SetAgentId is AgentId Setter 代理商id

func (*TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetAlipayAccount added in v1.2.0

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

SetAlipayAccount is AlipayAccount Setter 支付宝账号

func (*TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetAlipayTradeNo added in v1.2.0

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

SetAlipayTradeNo is AlipayTradeNo Setter 支付宝交易流水号

func (*TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetArriveDate added in v1.2.0

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

SetArriveDate is ArriveDate Setter 到达时间

func (*TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetBoardingGates added in v1.2.0

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

SetBoardingGates is BoardingGates Setter 检票口

func (*TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetCanChange added in v1.2.0

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

SetCanChange is CanChange Setter 是否支持在线退改签

func (*TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetDepDate added in v1.2.0

SetDepDate is DepDate Setter 出发时间

func (*TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetExpectDeliveryTime added in v1.2.0

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

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

func (*TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetExtendParams added in v1.2.0

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

SetExtendParams is ExtendParams Setter 扩展字段

func (*TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetFailMsg added in v1.2.0

SetFailMsg is 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

SetFromStationName is FromStationName Setter 出发站

func (*TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetMainOrderId added in v1.2.0

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

SetMainOrderId is MainOrderId Setter 主订单id

func (*TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetOrderType added in v1.2.0

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

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

func (*TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetStatus added in v1.2.0

SetStatus is Status Setter 是否成功

func (*TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetSubOrderId added in v1.2.0

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

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

func (*TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetTicket12306Id added in v1.2.0

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

SetTicket12306Id is Ticket12306Id Setter 12306成功出票id

func (*TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetTicketInfoList added in v1.2.0

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

SetTicketInfoList is TicketInfoList Setter 票信息列表

func (*TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetTicketNum added in v1.2.0

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

SetTicketNum is TicketNum Setter 订单中包含的票数量

func (*TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetTickets added in v1.2.0

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

func (*TaobaoTrainAgentBookticketConfirmVtwoAPIRequest) SetToStationName added in v1.2.0

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

SetToStationName is ToStationName Setter 到达站

type TaobaoTrainAgentBookticketConfirmVtwoAPIResponse

type TaobaoTrainAgentBookticketConfirmVtwoAPIResponse struct {
	model.CommonResponse
	TaobaoTrainAgentBookticketConfirmVtwoAPIResponseModel
}

TaobaoTrainAgentBookticketConfirmVtwoAPIResponse 火车票代理商接口——确认出票是否成功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"`
}

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

type TaobaoTrainAgentDirectCompensateAPIRequest added in v1.2.0

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

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

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

func NewTaobaoTrainAgentDirectCompensateRequest

func NewTaobaoTrainAgentDirectCompensateRequest() *TaobaoTrainAgentDirectCompensateAPIRequest

NewTaobaoTrainAgentDirectCompensateRequest 初始化TaobaoTrainAgentDirectCompensateAPIRequest对象

func (TaobaoTrainAgentDirectCompensateAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoTrainAgentDirectCompensateAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoTrainAgentDirectCompensateAPIRequest) GetCompensateParam added in v1.2.0

GetCompensateParam CompensateParam Getter

func (*TaobaoTrainAgentDirectCompensateAPIRequest) SetCompensateParam added in v1.2.0

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

SetCompensateParam is CompensateParam Setter 出票成功补偿入参

type TaobaoTrainAgentDirectCompensateAPIResponse

type TaobaoTrainAgentDirectCompensateAPIResponse struct {
	model.CommonResponse
	TaobaoTrainAgentDirectCompensateAPIResponseModel
}

TaobaoTrainAgentDirectCompensateAPIResponse 火车票代理商接口——订单关闭实际出票成功审计接口 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"`
	// resultCode
	ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"`
	// resultMsg
	ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"`
	// 是否成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

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

type TaobaoTrainAgentExpressSetAPIRequest added in v1.2.0

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

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

线下票回填物流信息服务

func NewTaobaoTrainAgentExpressSetRequest

func NewTaobaoTrainAgentExpressSetRequest() *TaobaoTrainAgentExpressSetAPIRequest

NewTaobaoTrainAgentExpressSetRequest 初始化TaobaoTrainAgentExpressSetAPIRequest对象

func (TaobaoTrainAgentExpressSetAPIRequest) GetAddr added in v1.2.0

GetAddr Addr Getter

func (TaobaoTrainAgentExpressSetAPIRequest) GetAgentId added in v1.2.0

GetAgentId AgentId Getter

func (TaobaoTrainAgentExpressSetAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoTrainAgentExpressSetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoTrainAgentExpressSetAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoTrainAgentExpressSetAPIRequest) GetExpressId added in v1.2.0

GetExpressId ExpressId Getter

func (TaobaoTrainAgentExpressSetAPIRequest) GetExpressName added in v1.2.0

func (r TaobaoTrainAgentExpressSetAPIRequest) GetExpressName() string

GetExpressName ExpressName Getter

func (TaobaoTrainAgentExpressSetAPIRequest) GetMainOrderId added in v1.2.0

func (r TaobaoTrainAgentExpressSetAPIRequest) GetMainOrderId() int64

GetMainOrderId MainOrderId Getter

func (TaobaoTrainAgentExpressSetAPIRequest) GetMobile added in v1.2.0

GetMobile Mobile Getter

func (*TaobaoTrainAgentExpressSetAPIRequest) SetAddr added in v1.2.0

SetAddr is Addr Setter 发货地址

func (*TaobaoTrainAgentExpressSetAPIRequest) SetAgentId added in v1.2.0

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

SetAgentId is AgentId Setter 代理商id

func (*TaobaoTrainAgentExpressSetAPIRequest) SetExpressId added in v1.2.0

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

SetExpressId is ExpressId Setter 物流单号

func (*TaobaoTrainAgentExpressSetAPIRequest) SetExpressName added in v1.2.0

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

SetExpressName is ExpressName Setter 物流公司:SF,EMS

func (*TaobaoTrainAgentExpressSetAPIRequest) SetMainOrderId added in v1.2.0

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

SetMainOrderId is MainOrderId Setter 订单号

func (*TaobaoTrainAgentExpressSetAPIRequest) SetMobile added in v1.2.0

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

SetMobile is Mobile Setter 手机号

type TaobaoTrainAgentExpressSetAPIResponse

type TaobaoTrainAgentExpressSetAPIResponse struct {
	model.CommonResponse
	TaobaoTrainAgentExpressSetAPIResponseModel
}

TaobaoTrainAgentExpressSetAPIResponse 线下票回填物流信息 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"`
}

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

type TaobaoTrainAgentExpressSetVtwoAPIRequest added in v1.2.0

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

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

线下票回填物流信息服务

func NewTaobaoTrainAgentExpressSetVtwoRequest

func NewTaobaoTrainAgentExpressSetVtwoRequest() *TaobaoTrainAgentExpressSetVtwoAPIRequest

NewTaobaoTrainAgentExpressSetVtwoRequest 初始化TaobaoTrainAgentExpressSetVtwoAPIRequest对象

func (TaobaoTrainAgentExpressSetVtwoAPIRequest) GetAddr added in v1.2.0

GetAddr Addr Getter

func (TaobaoTrainAgentExpressSetVtwoAPIRequest) GetAgentId added in v1.2.0

GetAgentId AgentId Getter

func (TaobaoTrainAgentExpressSetVtwoAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoTrainAgentExpressSetVtwoAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoTrainAgentExpressSetVtwoAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoTrainAgentExpressSetVtwoAPIRequest) GetExpressId added in v1.2.0

GetExpressId ExpressId Getter

func (TaobaoTrainAgentExpressSetVtwoAPIRequest) GetExpressName added in v1.2.0

GetExpressName ExpressName Getter

func (TaobaoTrainAgentExpressSetVtwoAPIRequest) GetMainOrderId added in v1.2.0

GetMainOrderId MainOrderId Getter

func (TaobaoTrainAgentExpressSetVtwoAPIRequest) GetMobile added in v1.2.0

GetMobile Mobile Getter

func (*TaobaoTrainAgentExpressSetVtwoAPIRequest) SetAddr added in v1.2.0

SetAddr is Addr Setter 发货地址

func (*TaobaoTrainAgentExpressSetVtwoAPIRequest) SetAgentId added in v1.2.0

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

SetAgentId is AgentId Setter 代理商id

func (*TaobaoTrainAgentExpressSetVtwoAPIRequest) SetExpressId added in v1.2.0

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

SetExpressId is ExpressId Setter 物流单号

func (*TaobaoTrainAgentExpressSetVtwoAPIRequest) SetExpressName added in v1.2.0

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

SetExpressName is ExpressName Setter 物流公司:SF,EMS

func (*TaobaoTrainAgentExpressSetVtwoAPIRequest) SetMainOrderId added in v1.2.0

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

SetMainOrderId is MainOrderId Setter 订单号

func (*TaobaoTrainAgentExpressSetVtwoAPIRequest) SetMobile added in v1.2.0

SetMobile is Mobile Setter 手机号

type TaobaoTrainAgentExpressSetVtwoAPIResponse

type TaobaoTrainAgentExpressSetVtwoAPIResponse struct {
	model.CommonResponse
	TaobaoTrainAgentExpressSetVtwoAPIResponseModel
}

TaobaoTrainAgentExpressSetVtwoAPIResponse 线下票回填物流信息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"`
}

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

type TaobaoTrainAgentGetRefundAPIRequest added in v1.2.0

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

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

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

func NewTaobaoTrainAgentGetRefundRequest

func NewTaobaoTrainAgentGetRefundRequest() *TaobaoTrainAgentGetRefundAPIRequest

NewTaobaoTrainAgentGetRefundRequest 初始化TaobaoTrainAgentGetRefundAPIRequest对象

func (TaobaoTrainAgentGetRefundAPIRequest) GetAgentId added in v1.2.0

GetAgentId AgentId Getter

func (TaobaoTrainAgentGetRefundAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoTrainAgentGetRefundAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoTrainAgentGetRefundAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoTrainAgentGetRefundAPIRequest) GetMainOrderId added in v1.2.0

func (r TaobaoTrainAgentGetRefundAPIRequest) GetMainOrderId() int64

GetMainOrderId MainOrderId Getter

func (*TaobaoTrainAgentGetRefundAPIRequest) SetAgentId added in v1.2.0

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

SetAgentId is AgentId Setter 代理商id

func (*TaobaoTrainAgentGetRefundAPIRequest) SetMainOrderId added in v1.2.0

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

SetMainOrderId is MainOrderId Setter 淘宝的主订单号

type TaobaoTrainAgentGetRefundAPIResponse

type TaobaoTrainAgentGetRefundAPIResponse struct {
	model.CommonResponse
	TaobaoTrainAgentGetRefundAPIResponseModel
}

TaobaoTrainAgentGetRefundAPIResponse 代理商获取订单退票信息 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"`
}

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

type TaobaoTrainAgentGrabAccountAPIRequest added in v1.2.0

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

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

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

func NewTaobaoTrainAgentGrabAccountRequest

func NewTaobaoTrainAgentGrabAccountRequest() *TaobaoTrainAgentGrabAccountAPIRequest

NewTaobaoTrainAgentGrabAccountRequest 初始化TaobaoTrainAgentGrabAccountAPIRequest对象

func (TaobaoTrainAgentGrabAccountAPIRequest) GetAccountParam added in v1.2.0

GetAccountParam AccountParam Getter

func (TaobaoTrainAgentGrabAccountAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoTrainAgentGrabAccountAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoTrainAgentGrabAccountAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (*TaobaoTrainAgentGrabAccountAPIRequest) SetAccountParam added in v1.2.0

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

SetAccountParam is AccountParam Setter 12306账户信息

type TaobaoTrainAgentGrabAccountAPIResponse

type TaobaoTrainAgentGrabAccountAPIResponse struct {
	model.CommonResponse
	TaobaoTrainAgentGrabAccountAPIResponseModel
}

TaobaoTrainAgentGrabAccountAPIResponse 代购抢代理商回传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"`
	// resultCode
	ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"`
	// resultMsg
	ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"`
	// success
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

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

type TaobaoTrainAgentHandleticketConfirmVtwoAPIRequest added in v1.2.0

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

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

代理商出票中

func NewTaobaoTrainAgentHandleticketConfirmVtwoRequest

func NewTaobaoTrainAgentHandleticketConfirmVtwoRequest() *TaobaoTrainAgentHandleticketConfirmVtwoAPIRequest

NewTaobaoTrainAgentHandleticketConfirmVtwoRequest 初始化TaobaoTrainAgentHandleticketConfirmVtwoAPIRequest对象

func (TaobaoTrainAgentHandleticketConfirmVtwoAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoTrainAgentHandleticketConfirmVtwoAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoTrainAgentHandleticketConfirmVtwoAPIRequest) GetExtendParams added in v1.2.0

GetExtendParams ExtendParams Getter

func (TaobaoTrainAgentHandleticketConfirmVtwoAPIRequest) GetMainOrderId added in v1.2.0

GetMainOrderId MainOrderId Getter

func (TaobaoTrainAgentHandleticketConfirmVtwoAPIRequest) GetSellerId added in v1.2.0

GetSellerId SellerId Getter

func (*TaobaoTrainAgentHandleticketConfirmVtwoAPIRequest) SetExtendParams added in v1.2.0

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

SetExtendParams is ExtendParams Setter 扩展参数

func (*TaobaoTrainAgentHandleticketConfirmVtwoAPIRequest) SetMainOrderId added in v1.2.0

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

SetMainOrderId is MainOrderId Setter 主站id

func (*TaobaoTrainAgentHandleticketConfirmVtwoAPIRequest) SetSellerId added in v1.2.0

SetSellerId is SellerId Setter 代理商id

type TaobaoTrainAgentHandleticketConfirmVtwoAPIResponse

type TaobaoTrainAgentHandleticketConfirmVtwoAPIResponse struct {
	model.CommonResponse
	TaobaoTrainAgentHandleticketConfirmVtwoAPIResponseModel
}

TaobaoTrainAgentHandleticketConfirmVtwoAPIResponse 代理商出票中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"`
	// 错误码
	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"`
	// 是否成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

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

type TaobaoTrainAgentHandrefundRefundfeeAPIRequest added in v1.2.0

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

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

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

func NewTaobaoTrainAgentHandrefundRefundfeeRequest

func NewTaobaoTrainAgentHandrefundRefundfeeRequest() *TaobaoTrainAgentHandrefundRefundfeeAPIRequest

NewTaobaoTrainAgentHandrefundRefundfeeRequest 初始化TaobaoTrainAgentHandrefundRefundfeeAPIRequest对象

func (TaobaoTrainAgentHandrefundRefundfeeAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoTrainAgentHandrefundRefundfeeAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoTrainAgentHandrefundRefundfeeAPIRequest) GetMainBizOrderId added in v1.2.0

GetMainBizOrderId MainBizOrderId Getter

func (TaobaoTrainAgentHandrefundRefundfeeAPIRequest) GetOutTradeNo added in v1.2.0

GetOutTradeNo OutTradeNo Getter

func (TaobaoTrainAgentHandrefundRefundfeeAPIRequest) GetRefundFee added in v1.2.0

GetRefundFee RefundFee Getter

func (TaobaoTrainAgentHandrefundRefundfeeAPIRequest) GetSubOrderId added in v1.2.5

GetSubOrderId SubOrderId Getter

func (*TaobaoTrainAgentHandrefundRefundfeeAPIRequest) SetMainBizOrderId added in v1.2.0

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

SetMainBizOrderId is MainBizOrderId Setter 主订单id

func (*TaobaoTrainAgentHandrefundRefundfeeAPIRequest) SetOutTradeNo added in v1.2.0

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

SetOutTradeNo is OutTradeNo Setter 外部订单号

func (*TaobaoTrainAgentHandrefundRefundfeeAPIRequest) SetRefundFee added in v1.2.0

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

SetRefundFee is RefundFee Setter 退款金额,单位为分

func (*TaobaoTrainAgentHandrefundRefundfeeAPIRequest) SetSubOrderId added in v1.2.5

func (r *TaobaoTrainAgentHandrefundRefundfeeAPIRequest) SetSubOrderId(_subOrderId int64) error

SetSubOrderId is SubOrderId Setter 子订单号

type TaobaoTrainAgentHandrefundRefundfeeAPIResponse

type TaobaoTrainAgentHandrefundRefundfeeAPIResponse struct {
	model.CommonResponse
	TaobaoTrainAgentHandrefundRefundfeeAPIResponseModel
}

TaobaoTrainAgentHandrefundRefundfeeAPIResponse 代理商手动退款接口 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"`
	// 失败code
	ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"`
	// 失败文案
	ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"`
	// 是否成功标记
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

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

type TaobaoTrainAgentOrderConfirmAPIRequest added in v1.2.5

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

TaobaoTrainAgentOrderConfirmAPIRequest 确认出票 API请求 taobao.train.agent.order.confirm

确认出票

func NewTaobaoTrainAgentOrderConfirmRequest added in v1.2.5

func NewTaobaoTrainAgentOrderConfirmRequest() *TaobaoTrainAgentOrderConfirmAPIRequest

NewTaobaoTrainAgentOrderConfirmRequest 初始化TaobaoTrainAgentOrderConfirmAPIRequest对象

func (TaobaoTrainAgentOrderConfirmAPIRequest) GetApiMethodName added in v1.2.5

func (r TaobaoTrainAgentOrderConfirmAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoTrainAgentOrderConfirmAPIRequest) GetApiParams added in v1.2.5

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoTrainAgentOrderConfirmAPIRequest) GetParam added in v1.2.5

GetParam Param Getter

func (*TaobaoTrainAgentOrderConfirmAPIRequest) SetParam added in v1.2.5

SetParam is Param Setter 入参

type TaobaoTrainAgentOrderConfirmAPIResponse added in v1.2.5

type TaobaoTrainAgentOrderConfirmAPIResponse struct {
	model.CommonResponse
	TaobaoTrainAgentOrderConfirmAPIResponseModel
}

TaobaoTrainAgentOrderConfirmAPIResponse 确认出票 API返回值 taobao.train.agent.order.confirm

确认出票

type TaobaoTrainAgentOrderConfirmAPIResponseModel added in v1.2.5

type TaobaoTrainAgentOrderConfirmAPIResponseModel struct {
	XMLName xml.Name `xml:"train_agent_order_confirm_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// rs
	Result *TapResult `json:"result,omitempty" xml:"result,omitempty"`
}

TaobaoTrainAgentOrderConfirmAPIResponseModel is 确认出票 成功返回结果

type TaobaoTrainAgentOrderFailAPIRequest added in v1.2.5

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

TaobaoTrainAgentOrderFailAPIRequest 出票失败 API请求 taobao.train.agent.order.fail

出票失败

func NewTaobaoTrainAgentOrderFailRequest added in v1.2.5

func NewTaobaoTrainAgentOrderFailRequest() *TaobaoTrainAgentOrderFailAPIRequest

NewTaobaoTrainAgentOrderFailRequest 初始化TaobaoTrainAgentOrderFailAPIRequest对象

func (TaobaoTrainAgentOrderFailAPIRequest) GetApiMethodName added in v1.2.5

func (r TaobaoTrainAgentOrderFailAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoTrainAgentOrderFailAPIRequest) GetApiParams added in v1.2.5

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoTrainAgentOrderFailAPIRequest) GetParam added in v1.2.5

GetParam Param Getter

func (*TaobaoTrainAgentOrderFailAPIRequest) SetParam added in v1.2.5

SetParam is Param Setter rq

type TaobaoTrainAgentOrderFailAPIResponse added in v1.2.5

type TaobaoTrainAgentOrderFailAPIResponse struct {
	model.CommonResponse
	TaobaoTrainAgentOrderFailAPIResponseModel
}

TaobaoTrainAgentOrderFailAPIResponse 出票失败 API返回值 taobao.train.agent.order.fail

出票失败

type TaobaoTrainAgentOrderFailAPIResponseModel added in v1.2.5

type TaobaoTrainAgentOrderFailAPIResponseModel struct {
	XMLName xml.Name `xml:"train_agent_order_fail_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// rs
	Result *TapResult `json:"result,omitempty" xml:"result,omitempty"`
}

TaobaoTrainAgentOrderFailAPIResponseModel is 出票失败 成功返回结果

type TaobaoTrainAgentOrderGetAPIRequest added in v1.2.0

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

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

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

func NewTaobaoTrainAgentOrderGetRequest

func NewTaobaoTrainAgentOrderGetRequest() *TaobaoTrainAgentOrderGetAPIRequest

NewTaobaoTrainAgentOrderGetRequest 初始化TaobaoTrainAgentOrderGetAPIRequest对象

func (TaobaoTrainAgentOrderGetAPIRequest) GetAgentId added in v1.2.0

GetAgentId AgentId Getter

func (TaobaoTrainAgentOrderGetAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoTrainAgentOrderGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoTrainAgentOrderGetAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoTrainAgentOrderGetAPIRequest) GetMainOrderId added in v1.2.0

func (r TaobaoTrainAgentOrderGetAPIRequest) GetMainOrderId() int64

GetMainOrderId MainOrderId Getter

func (*TaobaoTrainAgentOrderGetAPIRequest) SetAgentId added in v1.2.0

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

SetAgentId is AgentId Setter 代理商id

func (*TaobaoTrainAgentOrderGetAPIRequest) SetMainOrderId added in v1.2.0

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

SetMainOrderId is MainOrderId Setter 淘宝的主订单号

type TaobaoTrainAgentOrderGetAPIResponse

type TaobaoTrainAgentOrderGetAPIResponse struct {
	model.CommonResponse
	TaobaoTrainAgentOrderGetAPIResponseModel
}

TaobaoTrainAgentOrderGetAPIResponse 代理商获取订单信息回调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"`
	// 火车票信息。
	Tickets []ToAgentTicketInfo `json:"tickets,omitempty" xml:"tickets>to_agent_ticket_info,omitempty"`
	// 移动电话
	Telephone string `json:"telephone,omitempty" xml:"telephone,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"`
	// 最晚出票时间
	LatestIssueTime string `json:"latest_issue_time,omitempty" xml:"latest_issue_time,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"`
	// 扩展字段
	ExtendParams string `json:"extend_params,omitempty" xml:"extend_params,omitempty"`
	// ttp_order_id
	TtpOrderId int64 `json:"ttp_order_id,omitempty" xml:"ttp_order_id,omitempty"`
	// 主订单id
	MainOrderId int64 `json:"main_order_id,omitempty" xml:"main_order_id,omitempty"`
	// 整个订单的总价,包括每张票价及保险价格,价格精确到分,例如100元,输出为10000.
	TotalPrice int64 `json:"total_price,omitempty" xml:"total_price,omitempty"`
	// 1-已付款,2-关闭,3-成功
	OrderStatus int64 `json:"order_status,omitempty" xml:"order_status,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"`
	// 快递费(分)
	TransportPrice int64 `json:"transport_price,omitempty" xml:"transport_price,omitempty"`
	// 手续费总价(分)
	ServicePrice int64 `json:"service_price,omitempty" xml:"service_price,omitempty"`
	// 返回错误。
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
	// 是否需要保险邮件地址
	Mailing bool `json:"mailing,omitempty" xml:"mailing,omitempty"`
}

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

type TaobaoTrainAgentOrderGetVtwoAPIRequest added in v1.2.0

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

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

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

func NewTaobaoTrainAgentOrderGetVtwoRequest

func NewTaobaoTrainAgentOrderGetVtwoRequest() *TaobaoTrainAgentOrderGetVtwoAPIRequest

NewTaobaoTrainAgentOrderGetVtwoRequest 初始化TaobaoTrainAgentOrderGetVtwoAPIRequest对象

func (TaobaoTrainAgentOrderGetVtwoAPIRequest) GetAgentId added in v1.2.0

GetAgentId AgentId Getter

func (TaobaoTrainAgentOrderGetVtwoAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoTrainAgentOrderGetVtwoAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoTrainAgentOrderGetVtwoAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoTrainAgentOrderGetVtwoAPIRequest) GetMainOrderId added in v1.2.0

func (r TaobaoTrainAgentOrderGetVtwoAPIRequest) GetMainOrderId() int64

GetMainOrderId MainOrderId Getter

func (*TaobaoTrainAgentOrderGetVtwoAPIRequest) SetAgentId added in v1.2.0

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

SetAgentId is AgentId Setter 代理商id

func (*TaobaoTrainAgentOrderGetVtwoAPIRequest) SetMainOrderId added in v1.2.0

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

SetMainOrderId is MainOrderId Setter 淘宝的主订单号

type TaobaoTrainAgentOrderGetVtwoAPIResponse

type TaobaoTrainAgentOrderGetVtwoAPIResponse struct {
	model.CommonResponse
	TaobaoTrainAgentOrderGetVtwoAPIResponseModel
}

TaobaoTrainAgentOrderGetVtwoAPIResponse 代理商获取订单信息回调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"`
	// 火车票信息。
	Tickets []ToAgentTicketInfo `json:"tickets,omitempty" xml:"tickets>to_agent_ticket_info,omitempty"`
	// 移动电话
	Telephone string `json:"telephone,omitempty" xml:"telephone,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"`
	// 最晚出票时间
	LatestIssueTime string `json:"latest_issue_time,omitempty" xml:"latest_issue_time,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"`
	// 扩展字段
	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"`
	// ttp_order_id
	TtpOrderId int64 `json:"ttp_order_id,omitempty" xml:"ttp_order_id,omitempty"`
	// 主订单id
	MainOrderId int64 `json:"main_order_id,omitempty" xml:"main_order_id,omitempty"`
	// 整个订单的总价,包括每张票价及保险价格,价格精确到分,例如100元,输出为10000.
	TotalPrice int64 `json:"total_price,omitempty" xml:"total_price,omitempty"`
	// 1-已付款,2-关闭,3-成功
	OrderStatus int64 `json:"order_status,omitempty" xml:"order_status,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"`
	// 快递费(分)
	TransportPrice int64 `json:"transport_price,omitempty" xml:"transport_price,omitempty"`
	// 手续费总价(分)
	ServicePrice int64 `json:"service_price,omitempty" xml:"service_price,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"`
	// 返回错误。
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
	// 是否需要保险邮件地址
	Mailing bool `json:"mailing,omitempty" xml:"mailing,omitempty"`
	// 是否需要发票
	NeedReceipt bool `json:"need_receipt,omitempty" xml:"need_receipt,omitempty"`
	// 是否需要乘车人退款 true:需要 false:不需要
	RefundByPassenger bool `json:"refund_by_passenger,omitempty" xml:"refund_by_passenger,omitempty"`
}

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

type TaobaoTrainAgentOrderIgnoreAPIRequest added in v1.2.5

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

TaobaoTrainAgentOrderIgnoreAPIRequest 忽略订单 API请求 taobao.train.agent.order.ignore

忽略订单

func NewTaobaoTrainAgentOrderIgnoreRequest added in v1.2.5

func NewTaobaoTrainAgentOrderIgnoreRequest() *TaobaoTrainAgentOrderIgnoreAPIRequest

NewTaobaoTrainAgentOrderIgnoreRequest 初始化TaobaoTrainAgentOrderIgnoreAPIRequest对象

func (TaobaoTrainAgentOrderIgnoreAPIRequest) GetApiMethodName added in v1.2.5

func (r TaobaoTrainAgentOrderIgnoreAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoTrainAgentOrderIgnoreAPIRequest) GetApiParams added in v1.2.5

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoTrainAgentOrderIgnoreAPIRequest) GetParam0 added in v1.2.5

GetParam0 Param0 Getter

func (*TaobaoTrainAgentOrderIgnoreAPIRequest) SetParam0 added in v1.2.5

SetParam0 is Param0 Setter rq

type TaobaoTrainAgentOrderIgnoreAPIResponse added in v1.2.5

type TaobaoTrainAgentOrderIgnoreAPIResponse struct {
	model.CommonResponse
	TaobaoTrainAgentOrderIgnoreAPIResponseModel
}

TaobaoTrainAgentOrderIgnoreAPIResponse 忽略订单 API返回值 taobao.train.agent.order.ignore

忽略订单

type TaobaoTrainAgentOrderIgnoreAPIResponseModel added in v1.2.5

type TaobaoTrainAgentOrderIgnoreAPIResponseModel struct {
	XMLName xml.Name `xml:"train_agent_order_ignore_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// rs
	Result *TapResult `json:"result,omitempty" xml:"result,omitempty"`
}

TaobaoTrainAgentOrderIgnoreAPIResponseModel is 忽略订单 成功返回结果

type TaobaoTrainAgentOrderLockAPIRequest added in v1.2.5

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

TaobaoTrainAgentOrderLockAPIRequest 锁单 API请求 taobao.train.agent.order.lock

锁单

func NewTaobaoTrainAgentOrderLockRequest added in v1.2.5

func NewTaobaoTrainAgentOrderLockRequest() *TaobaoTrainAgentOrderLockAPIRequest

NewTaobaoTrainAgentOrderLockRequest 初始化TaobaoTrainAgentOrderLockAPIRequest对象

func (TaobaoTrainAgentOrderLockAPIRequest) GetApiMethodName added in v1.2.5

func (r TaobaoTrainAgentOrderLockAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoTrainAgentOrderLockAPIRequest) GetApiParams added in v1.2.5

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoTrainAgentOrderLockAPIRequest) GetParam added in v1.2.5

GetParam Param Getter

func (*TaobaoTrainAgentOrderLockAPIRequest) SetParam added in v1.2.5

SetParam is Param Setter 入参

type TaobaoTrainAgentOrderLockAPIResponse added in v1.2.5

type TaobaoTrainAgentOrderLockAPIResponse struct {
	model.CommonResponse
	TaobaoTrainAgentOrderLockAPIResponseModel
}

TaobaoTrainAgentOrderLockAPIResponse 锁单 API返回值 taobao.train.agent.order.lock

锁单

type TaobaoTrainAgentOrderLockAPIResponseModel added in v1.2.5

type TaobaoTrainAgentOrderLockAPIResponseModel struct {
	XMLName xml.Name `xml:"train_agent_order_lock_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// rs
	Result *TapResult `json:"result,omitempty" xml:"result,omitempty"`
}

TaobaoTrainAgentOrderLockAPIResponseModel is 锁单 成功返回结果

type TaobaoTrainAgentOrderPayAPIRequest added in v1.2.0

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

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

代购订单代付接口

func NewTaobaoTrainAgentOrderPayRequest

func NewTaobaoTrainAgentOrderPayRequest() *TaobaoTrainAgentOrderPayAPIRequest

NewTaobaoTrainAgentOrderPayRequest 初始化TaobaoTrainAgentOrderPayAPIRequest对象

func (TaobaoTrainAgentOrderPayAPIRequest) GetAgentPayOrderParam added in v1.2.0

func (r TaobaoTrainAgentOrderPayAPIRequest) GetAgentPayOrderParam() *AgentPayOrderParam

GetAgentPayOrderParam AgentPayOrderParam Getter

func (TaobaoTrainAgentOrderPayAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoTrainAgentOrderPayAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoTrainAgentOrderPayAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (*TaobaoTrainAgentOrderPayAPIRequest) SetAgentPayOrderParam added in v1.2.0

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

SetAgentPayOrderParam is AgentPayOrderParam Setter 入参对象

type TaobaoTrainAgentOrderPayAPIResponse

type TaobaoTrainAgentOrderPayAPIResponse struct {
	model.CommonResponse
	TaobaoTrainAgentOrderPayAPIResponseModel
}

TaobaoTrainAgentOrderPayAPIResponse 代购订单代付接口 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"`
}

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

type TaobaoTrainAgentOrderQueryAPIRequest added in v1.2.5

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

TaobaoTrainAgentOrderQueryAPIRequest 订单详情查询 API请求 taobao.train.agent.order.query

订单详情查询接口

func NewTaobaoTrainAgentOrderQueryRequest added in v1.2.5

func NewTaobaoTrainAgentOrderQueryRequest() *TaobaoTrainAgentOrderQueryAPIRequest

NewTaobaoTrainAgentOrderQueryRequest 初始化TaobaoTrainAgentOrderQueryAPIRequest对象

func (TaobaoTrainAgentOrderQueryAPIRequest) GetApiMethodName added in v1.2.5

func (r TaobaoTrainAgentOrderQueryAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoTrainAgentOrderQueryAPIRequest) GetApiParams added in v1.2.5

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoTrainAgentOrderQueryAPIRequest) GetParam0 added in v1.2.5

GetParam0 Param0 Getter

func (*TaobaoTrainAgentOrderQueryAPIRequest) SetParam0 added in v1.2.5

SetParam0 is Param0 Setter rq

type TaobaoTrainAgentOrderQueryAPIResponse added in v1.2.5

type TaobaoTrainAgentOrderQueryAPIResponse struct {
	model.CommonResponse
	TaobaoTrainAgentOrderQueryAPIResponseModel
}

TaobaoTrainAgentOrderQueryAPIResponse 订单详情查询 API返回值 taobao.train.agent.order.query

订单详情查询接口

type TaobaoTrainAgentOrderQueryAPIResponseModel added in v1.2.5

type TaobaoTrainAgentOrderQueryAPIResponseModel struct {
	XMLName xml.Name `xml:"train_agent_order_query_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// rs
	Result *TapResult `json:"result,omitempty" xml:"result,omitempty"`
}

TaobaoTrainAgentOrderQueryAPIResponseModel is 订单详情查询 成功返回结果

type TaobaoTrainAgentReturnordersGetVtwoAPIRequest added in v1.2.0

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

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

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

func NewTaobaoTrainAgentReturnordersGetVtwoRequest

func NewTaobaoTrainAgentReturnordersGetVtwoRequest() *TaobaoTrainAgentReturnordersGetVtwoAPIRequest

NewTaobaoTrainAgentReturnordersGetVtwoRequest 初始化TaobaoTrainAgentReturnordersGetVtwoAPIRequest对象

func (TaobaoTrainAgentReturnordersGetVtwoAPIRequest) GetAgentId added in v1.2.0

GetAgentId AgentId Getter

func (TaobaoTrainAgentReturnordersGetVtwoAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoTrainAgentReturnordersGetVtwoAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoTrainAgentReturnordersGetVtwoAPIRequest) GetOffline added in v1.2.0

GetOffline Offline Getter

func (*TaobaoTrainAgentReturnordersGetVtwoAPIRequest) SetAgentId added in v1.2.0

SetAgentId is AgentId Setter 卖家ID

func (*TaobaoTrainAgentReturnordersGetVtwoAPIRequest) SetOffline added in v1.2.0

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

type TaobaoTrainAgentReturnordersGetVtwoAPIResponse

type TaobaoTrainAgentReturnordersGetVtwoAPIResponse struct {
	model.CommonResponse
	TaobaoTrainAgentReturnordersGetVtwoAPIResponseModel
}

TaobaoTrainAgentReturnordersGetVtwoAPIResponse 获取待退票的订单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"`
	// 子订单号字符串,每个订单以逗号分隔
	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"`
	// 待退票的订单数
	OrderCount int64 `json:"order_count,omitempty" xml:"order_count,omitempty"`
}

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

type TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest added in v1.2.0

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

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

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

func NewTaobaoTrainAgentReturnticketConfirmVtwoRequest

func NewTaobaoTrainAgentReturnticketConfirmVtwoRequest() *TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest

NewTaobaoTrainAgentReturnticketConfirmVtwoRequest 初始化TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest对象

func (TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest) GetAgentId added in v1.2.0

GetAgentId AgentId Getter

func (TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest) GetAgreeReturn added in v1.2.0

GetAgreeReturn AgreeReturn Getter

func (TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest) GetBuyerId added in v1.2.0

GetBuyerId BuyerId Getter

func (TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest) GetCloseRefundNotify added in v1.2.0

GetCloseRefundNotify CloseRefundNotify Getter

func (TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest) GetMainBizOrderId added in v1.2.0

GetMainBizOrderId MainBizOrderId Getter

func (TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest) GetRefundFee added in v1.2.0

GetRefundFee RefundFee Getter

func (TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest) GetRefuseReturnReason added in v1.2.0

GetRefuseReturnReason RefuseReturnReason Getter

func (TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest) GetSubBizOrderId added in v1.2.0

GetSubBizOrderId SubBizOrderId Getter

func (*TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest) SetAgentId added in v1.2.0

SetAgentId is AgentId Setter 代理商id

func (*TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest) SetAgreeReturn added in v1.2.0

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

SetAgreeReturn is AgreeReturn Setter 是否同意退票

func (*TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest) SetBuyerId added in v1.2.0

SetBuyerId is BuyerId Setter 用户id

func (*TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest) SetCloseRefundNotify added in v1.2.0

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

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

func (*TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest) SetMainBizOrderId added in v1.2.0

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

SetMainBizOrderId is MainBizOrderId Setter 淘宝主订单id

func (*TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest) SetRefundFee added in v1.2.0

SetRefundFee is RefundFee Setter 退票金额,单位分

func (*TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest) SetRefuseReturnReason added in v1.2.0

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

SetRefuseReturnReason is RefuseReturnReason Setter 拒绝退票原因

func (*TaobaoTrainAgentReturnticketConfirmVtwoAPIRequest) SetSubBizOrderId added in v1.2.0

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

SetSubBizOrderId is SubBizOrderId Setter 淘宝子订单id

type TaobaoTrainAgentReturnticketConfirmVtwoAPIResponse

type TaobaoTrainAgentReturnticketConfirmVtwoAPIResponse struct {
	model.CommonResponse
	TaobaoTrainAgentReturnticketConfirmVtwoAPIResponseModel
}

TaobaoTrainAgentReturnticketConfirmVtwoAPIResponse 退票通知 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"`
	// resultMsg
	ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"`
	// success
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

TaobaoTrainAgentReturnticketConfirmVtwoAPIResponseModel is 退票通知 成功返回结果

type TaobaoTrainAgentReturnticketinfoGetVtwoAPIRequest added in v1.2.5

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

TaobaoTrainAgentReturnticketinfoGetVtwoAPIRequest 代理商获取退票详情回调 API请求 taobao.train.agent.returnticketinfo.get.vtwo

代理商获取退票详情回调

func NewTaobaoTrainAgentReturnticketinfoGetVtwoRequest added in v1.2.5

func NewTaobaoTrainAgentReturnticketinfoGetVtwoRequest() *TaobaoTrainAgentReturnticketinfoGetVtwoAPIRequest

NewTaobaoTrainAgentReturnticketinfoGetVtwoRequest 初始化TaobaoTrainAgentReturnticketinfoGetVtwoAPIRequest对象

func (TaobaoTrainAgentReturnticketinfoGetVtwoAPIRequest) GetAgentId added in v1.2.5

GetAgentId AgentId Getter

func (TaobaoTrainAgentReturnticketinfoGetVtwoAPIRequest) GetApiMethodName added in v1.2.5

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoTrainAgentReturnticketinfoGetVtwoAPIRequest) GetApiParams added in v1.2.5

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoTrainAgentReturnticketinfoGetVtwoAPIRequest) GetMainOrderId added in v1.2.5

GetMainOrderId MainOrderId Getter

func (TaobaoTrainAgentReturnticketinfoGetVtwoAPIRequest) GetSubOrderId added in v1.2.5

GetSubOrderId SubOrderId Getter

func (*TaobaoTrainAgentReturnticketinfoGetVtwoAPIRequest) SetAgentId added in v1.2.5

SetAgentId is AgentId Setter 代理商id

func (*TaobaoTrainAgentReturnticketinfoGetVtwoAPIRequest) SetMainOrderId added in v1.2.5

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

SetMainOrderId is MainOrderId Setter 淘宝主订单号

func (*TaobaoTrainAgentReturnticketinfoGetVtwoAPIRequest) SetSubOrderId added in v1.2.5

func (r *TaobaoTrainAgentReturnticketinfoGetVtwoAPIRequest) SetSubOrderId(_subOrderId int64) error

SetSubOrderId is SubOrderId Setter 淘宝子订单号

type TaobaoTrainAgentReturnticketinfoGetVtwoAPIResponse added in v1.2.5

type TaobaoTrainAgentReturnticketinfoGetVtwoAPIResponse struct {
	model.CommonResponse
	TaobaoTrainAgentReturnticketinfoGetVtwoAPIResponseModel
}

TaobaoTrainAgentReturnticketinfoGetVtwoAPIResponse 代理商获取退票详情回调 API返回值 taobao.train.agent.returnticketinfo.get.vtwo

代理商获取退票详情回调

type TaobaoTrainAgentReturnticketinfoGetVtwoAPIResponseModel added in v1.2.5

type TaobaoTrainAgentReturnticketinfoGetVtwoAPIResponseModel struct {
	XMLName xml.Name `xml:"train_agent_returnticketinfo_get_vtwo_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 证件照图片列表
	CertificateUrlList []string `json:"certificate_url_list,omitempty" xml:"certificate_url_list>string,omitempty"`
	// 错误信息
	ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"`
	// 错误码
	ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"`
	// 退票处理截止时间
	RefundDeadline string `json:"refund_deadline,omitempty" xml:"refund_deadline,omitempty"`
	// 预留字段
	Attribute string `json:"attribute,omitempty" xml:"attribute,omitempty"`
	// 退票类型:10:跑腿退
	OfflineRefundType int64 `json:"offline_refund_type,omitempty" xml:"offline_refund_type,omitempty"`
	// 淘宝子订单号
	SubOrderId int64 `json:"sub_order_id,omitempty" xml:"sub_order_id,omitempty"`
	// 淘宝主订单号
	MainOrderId int64 `json:"main_order_id,omitempty" xml:"main_order_id,omitempty"`
	// 证件类型
	CertificateType int64 `json:"certificate_type,omitempty" xml:"certificate_type,omitempty"`
	// 线下票跑腿费
	VipErrandReturnPrice int64 `json:"vip_errand_return_price,omitempty" xml:"vip_errand_return_price,omitempty"`
	// 是否线下票退票
	OfflineReturn bool `json:"offline_return,omitempty" xml:"offline_return,omitempty"`
	// 查询返回状态
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

TaobaoTrainAgentReturnticketinfoGetVtwoAPIResponseModel is 代理商获取退票详情回调 成功返回结果

type TaobaoTrainAgentTicketStatusCallbackAPIRequest added in v1.2.5

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

TaobaoTrainAgentTicketStatusCallbackAPIRequest 代理商票状态查询回调 API请求 taobao.train.agent.ticket.status.callback

代理商票状态查询结果回调

func NewTaobaoTrainAgentTicketStatusCallbackRequest added in v1.2.5

func NewTaobaoTrainAgentTicketStatusCallbackRequest() *TaobaoTrainAgentTicketStatusCallbackAPIRequest

NewTaobaoTrainAgentTicketStatusCallbackRequest 初始化TaobaoTrainAgentTicketStatusCallbackAPIRequest对象

func (TaobaoTrainAgentTicketStatusCallbackAPIRequest) GetApiMethodName added in v1.2.5

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoTrainAgentTicketStatusCallbackAPIRequest) GetApiParams added in v1.2.5

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoTrainAgentTicketStatusCallbackAPIRequest) GetId added in v1.2.5

GetId Id Getter

func (TaobaoTrainAgentTicketStatusCallbackAPIRequest) GetMsg added in v1.2.5

GetMsg Msg Getter

func (TaobaoTrainAgentTicketStatusCallbackAPIRequest) GetTicketStatus added in v1.2.5

GetTicketStatus TicketStatus Getter

func (*TaobaoTrainAgentTicketStatusCallbackAPIRequest) SetId added in v1.2.5

SetId is Id Setter 唯一编号

func (*TaobaoTrainAgentTicketStatusCallbackAPIRequest) SetMsg added in v1.2.5

SetMsg is Msg Setter 描述信息

func (*TaobaoTrainAgentTicketStatusCallbackAPIRequest) SetTicketStatus added in v1.2.5

func (r *TaobaoTrainAgentTicketStatusCallbackAPIRequest) SetTicketStatus(_ticketStatus int64) error

SetTicketStatus is TicketStatus Setter 车票状态

type TaobaoTrainAgentTicketStatusCallbackAPIResponse added in v1.2.5

type TaobaoTrainAgentTicketStatusCallbackAPIResponse struct {
	model.CommonResponse
	TaobaoTrainAgentTicketStatusCallbackAPIResponseModel
}

TaobaoTrainAgentTicketStatusCallbackAPIResponse 代理商票状态查询回调 API返回值 taobao.train.agent.ticket.status.callback

代理商票状态查询结果回调

type TaobaoTrainAgentTicketStatusCallbackAPIResponseModel added in v1.2.5

type TaobaoTrainAgentTicketStatusCallbackAPIResponseModel struct {
	XMLName xml.Name `xml:"train_agent_ticket_status_callback_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 错误描述
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
	// 是否成功调用
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

TaobaoTrainAgentTicketStatusCallbackAPIResponseModel is 代理商票状态查询回调 成功返回结果

type TaobaoTrainAgentTostationConfirmAPIRequest added in v1.2.0

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

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

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

func NewTaobaoTrainAgentTostationConfirmRequest

func NewTaobaoTrainAgentTostationConfirmRequest() *TaobaoTrainAgentTostationConfirmAPIRequest

NewTaobaoTrainAgentTostationConfirmRequest 初始化TaobaoTrainAgentTostationConfirmAPIRequest对象

func (TaobaoTrainAgentTostationConfirmAPIRequest) GetAgentId added in v1.2.0

GetAgentId AgentId Getter

func (TaobaoTrainAgentTostationConfirmAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoTrainAgentTostationConfirmAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoTrainAgentTostationConfirmAPIRequest) GetMainOrderId added in v1.2.0

GetMainOrderId MainOrderId Getter

func (*TaobaoTrainAgentTostationConfirmAPIRequest) SetAgentId added in v1.2.0

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

SetAgentId is AgentId Setter 代理商id

func (*TaobaoTrainAgentTostationConfirmAPIRequest) SetMainOrderId added in v1.2.0

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

SetMainOrderId is MainOrderId Setter 淘宝的主订单号

type TaobaoTrainAgentTostationConfirmAPIResponse

type TaobaoTrainAgentTostationConfirmAPIResponse struct {
	model.CommonResponse
	TaobaoTrainAgentTostationConfirmAPIResponseModel
}

TaobaoTrainAgentTostationConfirmAPIResponse 线下票确认送票至车站服务 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"`
}

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

type TaobaoTrainAgentTostationReceiveAPIRequest added in v1.2.0

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

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

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

func NewTaobaoTrainAgentTostationReceiveRequest

func NewTaobaoTrainAgentTostationReceiveRequest() *TaobaoTrainAgentTostationReceiveAPIRequest

NewTaobaoTrainAgentTostationReceiveRequest 初始化TaobaoTrainAgentTostationReceiveAPIRequest对象

func (TaobaoTrainAgentTostationReceiveAPIRequest) GetAgentId added in v1.2.0

GetAgentId AgentId Getter

func (TaobaoTrainAgentTostationReceiveAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoTrainAgentTostationReceiveAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoTrainAgentTostationReceiveAPIRequest) GetMainOrderId added in v1.2.0

GetMainOrderId MainOrderId Getter

func (*TaobaoTrainAgentTostationReceiveAPIRequest) SetAgentId added in v1.2.0

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

SetAgentId is AgentId Setter 代理商id

func (*TaobaoTrainAgentTostationReceiveAPIRequest) SetMainOrderId added in v1.2.0

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

SetMainOrderId is MainOrderId Setter 淘宝的主订单号

type TaobaoTrainAgentTostationReceiveAPIResponse

type TaobaoTrainAgentTostationReceiveAPIResponse struct {
	model.CommonResponse
	TaobaoTrainAgentTostationReceiveAPIResponseModel
}

TaobaoTrainAgentTostationReceiveAPIResponse 线下票送票至车站代理商确认用户已取票服务 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"`
}

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

type TaobaoTrainStopAgentCallbackAPIRequest added in v1.2.5

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

TaobaoTrainStopAgentCallbackAPIRequest 火车票车次停运信息商家回调 API请求 taobao.train.stop.agent.callback

火车票车次停运信息商家回调接口

func NewTaobaoTrainStopAgentCallbackRequest added in v1.2.5

func NewTaobaoTrainStopAgentCallbackRequest() *TaobaoTrainStopAgentCallbackAPIRequest

NewTaobaoTrainStopAgentCallbackRequest 初始化TaobaoTrainStopAgentCallbackAPIRequest对象

func (TaobaoTrainStopAgentCallbackAPIRequest) GetApiMethodName added in v1.2.5

func (r TaobaoTrainStopAgentCallbackAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoTrainStopAgentCallbackAPIRequest) GetApiParams added in v1.2.5

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoTrainStopAgentCallbackAPIRequest) GetTrainAgentStopInfo added in v1.2.5

GetTrainAgentStopInfo TrainAgentStopInfo Getter

func (*TaobaoTrainStopAgentCallbackAPIRequest) SetTrainAgentStopInfo added in v1.2.5

func (r *TaobaoTrainStopAgentCallbackAPIRequest) SetTrainAgentStopInfo(_trainAgentStopInfo *TrainAgentStopInfo) error

SetTrainAgentStopInfo is TrainAgentStopInfo Setter 代理商车次停运信息

type TaobaoTrainStopAgentCallbackAPIResponse added in v1.2.5

type TaobaoTrainStopAgentCallbackAPIResponse struct {
	model.CommonResponse
	TaobaoTrainStopAgentCallbackAPIResponseModel
}

TaobaoTrainStopAgentCallbackAPIResponse 火车票车次停运信息商家回调 API返回值 taobao.train.stop.agent.callback

火车票车次停运信息商家回调接口

type TaobaoTrainStopAgentCallbackAPIResponseModel added in v1.2.5

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

TaobaoTrainStopAgentCallbackAPIResponseModel is 火车票车次停运信息商家回调 成功返回结果

type TapOrderVo added in v1.2.7

type TapOrderVo struct {
	// 最晚出票时间
	LastIssueTime string `json:"last_issue_time,omitempty" xml:"last_issue_time,omitempty"`
	// 主单状态
	OrderStatusName string `json:"order_status_name,omitempty" xml:"order_status_name,omitempty"`
	// 主单号
	TtpOrderId int64 `json:"ttp_order_id,omitempty" xml:"ttp_order_id,omitempty"`
	// 票数
	TicketNum int64 `json:"ticket_num,omitempty" xml:"ticket_num,omitempty"`
	// 支付方式(0 现金 1 电子支付)
	VipSettleMode int64 `json:"vip_settle_mode,omitempty" xml:"vip_settle_mode,omitempty"`
	// 退改订单号
	TpOrderId int64 `json:"tp_order_id,omitempty" xml:"tp_order_id,omitempty"`
	// 是否为紧急单
	Emergency bool `json:"emergency,omitempty" xml:"emergency,omitempty"`
}

TapOrderVo 结构体

type TapResult added in v1.2.5

type TapResult struct {
	// 返回code
	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// 返回msg
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
	// 锁单rs
	Module *LockOrderRs `json:"module,omitempty" xml:"module,omitempty"`
	// success
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

TapResult 结构体

type TapSubOrderVo added in v1.2.7

type TapSubOrderVo struct {
	// 出发站
	FromStationName string `json:"from_station_name,omitempty" xml:"from_station_name,omitempty"`
	// 出发站三字码
	FromStationTelecode string `json:"from_station_telecode,omitempty" xml:"from_station_telecode,omitempty"`
	// 到达站
	ToStationName string `json:"to_station_name,omitempty" xml:"to_station_name,omitempty"`
	// 到达站三字码
	ToStationTelecode string `json:"to_station_telecode,omitempty" xml:"to_station_telecode,omitempty"`
	// 发车日期
	TrainDate string `json:"train_date,omitempty" xml:"train_date,omitempty"`
	// 车次编号
	TrainCode string `json:"train_code,omitempty" xml:"train_code,omitempty"`
	// 座席编号
	SeatTypeCode string `json:"seat_type_code,omitempty" xml:"seat_type_code,omitempty"`
	// 座席名称
	SeatTypeName string `json:"seat_type_name,omitempty" xml:"seat_type_name,omitempty"`
	// 在线选座参数(GDC支持在线选座,此坐席为优选坐席,出票员可以优先保证此字段解析的坐席)
	OnlineBookSeat string `json:"online_book_seat,omitempty" xml:"online_book_seat,omitempty"`
	// 中转站三字码
	InterChangeStationTelecode string `json:"inter_change_station_telecode,omitempty" xml:"inter_change_station_telecode,omitempty"`
	// 中转站名称
	InterChangeStationName string `json:"inter_change_station_name,omitempty" xml:"inter_change_station_name,omitempty"`
	// 出发时间
	FromTime string `json:"from_time,omitempty" xml:"from_time,omitempty"`
	// 到达时间
	ToTime string `json:"to_time,omitempty" xml:"to_time,omitempty"`
	// 子单状态
	StatusName string `json:"status_name,omitempty" xml:"status_name,omitempty"`
	// 子单出票截止时间(yyyy-MM-dd HH:mm:ss)
	LastIssueTime string `json:"last_issue_time,omitempty" xml:"last_issue_time,omitempty"`
	// 主订单号
	TtpOrderId int64 `json:"ttp_order_id,omitempty" xml:"ttp_order_id,omitempty"`
	// 子订单号
	SubOrderId int64 `json:"sub_order_id,omitempty" xml:"sub_order_id,omitempty"`
	// 票价(单位 分)
	TicketPrice int64 `json:"ticket_price,omitempty" xml:"ticket_price,omitempty"`
	// 定制票类型(0:不指定坐席 1:下铺 2:下铺or中铺 3:过道 4:靠窗)
	VipCustomType int64 `json:"vip_custom_type,omitempty" xml:"vip_custom_type,omitempty"`
	// 程id
	SegmentId int64 `json:"segment_id,omitempty" xml:"segment_id,omitempty"`
	// 程 序号(区分中转一、二程)
	SegmentIndex int64 `json:"segment_index,omitempty" xml:"segment_index,omitempty"`
	// 是否为紧急单
	Emergency bool `json:"emergency,omitempty" xml:"emergency,omitempty"`
}

TapSubOrderVo 结构体

type TicketDto added in v1.2.5

type TicketDto struct {
	// 12306订单号
	SequenceNo string `json:"sequence_no,omitempty" xml:"sequence_no,omitempty"`
	// 座席号
	SeatNo string `json:"seat_no,omitempty" xml:"seat_no,omitempty"`
	// 车厢号
	CoachNo string `json:"coach_no,omitempty" xml:"coach_no,omitempty"`
	// 批次号
	BatchNo string `json:"batch_no,omitempty" xml:"batch_no,omitempty"`
	// 票类型(1 成人票 2 儿童 3 学生 4 残、军)
	TicketTypeCode string `json:"ticket_type_code,omitempty" xml:"ticket_type_code,omitempty"`
	// 真实座席编码
	RealSeatTypeCode string `json:"real_seat_type_code,omitempty" xml:"real_seat_type_code,omitempty"`
	// 出发站名称
	FromStationName string `json:"from_station_name,omitempty" xml:"from_station_name,omitempty"`
	// 中转站编码
	InterChangeStationTelecode string `json:"inter_change_station_telecode,omitempty" xml:"inter_change_station_telecode,omitempty"`
	// 中转站名称
	InterChangeStationName string `json:"inter_change_station_name,omitempty" xml:"inter_change_station_name,omitempty"`
	// 车次编码
	TrainCode string `json:"train_code,omitempty" xml:"train_code,omitempty"`
	// 坐席编码
	SeatTypeCode string `json:"seat_type_code,omitempty" xml:"seat_type_code,omitempty"`
	// 座席名称
	SeatTypeName string `json:"seat_type_name,omitempty" xml:"seat_type_name,omitempty"`
	// 到达站名称
	ToStationName string `json:"to_station_name,omitempty" xml:"to_station_name,omitempty"`
	// 出发站编码
	FromStationTelecode string `json:"from_station_telecode,omitempty" xml:"from_station_telecode,omitempty"`
	// 车次日期
	TrainDate string `json:"train_date,omitempty" xml:"train_date,omitempty"`
	// 出发时间
	FromTime string `json:"from_time,omitempty" xml:"from_time,omitempty"`
	// 到达站编码
	ToStationTelecode string `json:"to_station_telecode,omitempty" xml:"to_station_telecode,omitempty"`
	// 到达时间
	ToTime string `json:"to_time,omitempty" xml:"to_time,omitempty"`
	// 主单号
	TtpOrderId int64 `json:"ttp_order_id,omitempty" xml:"ttp_order_id,omitempty"`
	// 子单号
	SubOrderId int64 `json:"sub_order_id,omitempty" xml:"sub_order_id,omitempty"`
	// ttp子单号
	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"`
	// 定制票类型(0:不指定坐席 1:下铺 2:下铺or中铺 3:过道 4:靠窗)
	VipCustomType int64 `json:"vip_custom_type,omitempty" xml:"vip_custom_type,omitempty"`
	// 程ID
	SegmentId int64 `json:"segment_id,omitempty" xml:"segment_id,omitempty"`
	// 程 序号
	SegmentIndex int64 `json:"segment_index,omitempty" xml:"segment_index,omitempty"`
}

TicketDto 结构体

type TicketInfoDto added in v1.2.5

type TicketInfoDto struct {
	// 乘车人姓名
	PassengerName string `json:"passenger_name,omitempty" xml:"passenger_name,omitempty"`
	// 乘车人类型编码(1 成人 2 儿童 3 学生 4 残、军)
	PassengerTypeCode string `json:"passenger_type_code,omitempty" xml:"passenger_type_code,omitempty"`
	// 证件类型(1 身份证 C 港澳通行证 G 台胞证 B 护照)
	CertificateTypeCode string `json:"certificate_type_code,omitempty" xml:"certificate_type_code,omitempty"`
	// 证件号
	CertificateNo string `json:"certificate_no,omitempty" xml:"certificate_no,omitempty"`
	// 手机号
	MobileNo string `json:"mobile_no,omitempty" xml:"mobile_no,omitempty"`
	// ttp子单号
	TtpSubOrderId int64 `json:"ttp_sub_order_id,omitempty" xml:"ttp_sub_order_id,omitempty"`
}

TicketInfoDto 结构体

type ToAgentTicketInfo

type ToAgentTicketInfo struct {
	// 淘宝火车票子订单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"`
	// 车次
	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"`
	// 乘客生日
	Birthday string `json:"birthday,omitempty" xml:"birthday,omitempty"`
	// 到站时间
	ToTime string `json:"to_time,omitempty" xml:"to_time,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"`
	// 学生信息
	StudentInfo *StudentInfo `json:"student_info,omitempty" xml:"student_info,omitempty"`
	// 坐席
	Seat int64 `json:"seat,omitempty" xml:"seat,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"`
	// 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"`
	//
	RealTicketPrice int64 `json:"real_ticket_price,omitempty" xml:"real_ticket_price,omitempty"`
}

ToAgentTicketInfo 结构体

type TrainAgentStopInfo added in v1.2.5

type TrainAgentStopInfo struct {
	// 车次号
	TrainNo string `json:"train_no,omitempty" xml:"train_no,omitempty"`
	// 发车时间
	DepTime string `json:"dep_time,omitempty" xml:"dep_time,omitempty"`
	// 出发车站
	FromStation string `json:"from_station,omitempty" xml:"from_station,omitempty"`
	// 到达车站
	ToStation string `json:"to_station,omitempty" xml:"to_station,omitempty"`
	// 车次状态:STOP 停运、NORMAL 正常开行、NO_TRAIN 无车次、UN_KNOWN未知状态
	TrainStatus string `json:"train_status,omitempty" xml:"train_status,omitempty"`
	// uuid唯一标识
	Uuid string `json:"uuid,omitempty" xml:"uuid,omitempty"`
}

TrainAgentStopInfo 结构体

Source Files

Jump to

Keyboard shortcuts

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