ship

package
v1.1.5 Latest Latest
Warning

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

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

Documentation

Overview

船票API model

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlitripShipOrderNotifyAPIResponse

type AlitripShipOrderNotifyAPIResponse struct {
	model.CommonResponse
	AlitripShipOrderNotifyResponse
}

订单信息回填(出票回调) API返回值 alitrip.ship.order.notify

此接口为接入商调用飞猪旅行接口回填票号、密码(验证码)等订单信息。接口根据alitripOrderId幂等。若第一次调用失败,后续调用仍然可以回填票号、密码(验证码)成功。第一次调用成功后,后续调用会直接返回第一次的调用结果,不会再产生更新操作。多张票同时出票回填时,保证原子性,只允许全部成功或者全部失败,不能存在部分成功或者失败

type AlitripShipOrderNotifyRequest

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

订单信息回填(出票回调) API请求 alitrip.ship.order.notify

此接口为接入商调用飞猪旅行接口回填票号、密码(验证码)等订单信息。接口根据alitripOrderId幂等。若第一次调用失败,后续调用仍然可以回填票号、密码(验证码)成功。第一次调用成功后,后续调用会直接返回第一次的调用结果,不会再产生更新操作。多张票同时出票回填时,保证原子性,只允许全部成功或者全部失败,不能存在部分成功或者失败

func NewAlitripShipOrderNotifyRequest

func NewAlitripShipOrderNotifyRequest() *AlitripShipOrderNotifyRequest

初始化AlitripShipOrderNotifyRequest对象

func (AlitripShipOrderNotifyRequest) GetApiMethodName

func (r AlitripShipOrderNotifyRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (AlitripShipOrderNotifyRequest) GetApiParams

func (r AlitripShipOrderNotifyRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (AlitripShipOrderNotifyRequest) GetConfirmBookRQ

ConfirmBookRQ Getter

func (*AlitripShipOrderNotifyRequest) SetConfirmBookRQ

func (r *AlitripShipOrderNotifyRequest) SetConfirmBookRQ(confirmBookRQ *ShipAgentConfirmBookRq) error

ConfirmBookRQ Setter 出票入参

type AlitripShipOrderNotifyResponse

type AlitripShipOrderNotifyResponse struct {
	XMLName xml.Name `xml:"alitrip_ship_order_notify_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 错误码
	RetCode string `json:"ret_code,omitempty" xml:"ret_code,omitempty"`
	// 错误描述
	RetMsg string `json:"ret_msg,omitempty" xml:"ret_msg,omitempty"`
	// 是否成功
	RetSuccess bool `json:"ret_success,omitempty" xml:"ret_success,omitempty"`
}

订单信息回填(出票回调) 成功返回结果

type AlitripShipProductSyncbaseAPIResponse

type AlitripShipProductSyncbaseAPIResponse struct {
	model.CommonResponse
	AlitripShipProductSyncbaseResponse
}

基础信息修改回调 API返回值 alitrip.ship.product.syncbase

基础信息修改回调

type AlitripShipProductSyncbaseRequest

type AlitripShipProductSyncbaseRequest struct {
	model.Params
}

基础信息修改回调 API请求 alitrip.ship.product.syncbase

基础信息修改回调

func NewAlitripShipProductSyncbaseRequest

func NewAlitripShipProductSyncbaseRequest() *AlitripShipProductSyncbaseRequest

初始化AlitripShipProductSyncbaseRequest对象

func (AlitripShipProductSyncbaseRequest) GetApiMethodName

func (r AlitripShipProductSyncbaseRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (AlitripShipProductSyncbaseRequest) GetApiParams

func (r AlitripShipProductSyncbaseRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

type AlitripShipProductSyncbaseResponse

type AlitripShipProductSyncbaseResponse struct {
	XMLName xml.Name `xml:"alitrip_ship_product_syncbase_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 错误码
	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"`
}

基础信息修改回调 成功返回结果

type AlitripShipProductSynccallAPIResponse

type AlitripShipProductSynccallAPIResponse struct {
	model.CommonResponse
	AlitripShipProductSynccallResponse
}

全量同步回调 API返回值 alitrip.ship.product.synccall

全量同步接口

type AlitripShipProductSynccallRequest

type AlitripShipProductSynccallRequest struct {
	model.Params
}

全量同步回调 API请求 alitrip.ship.product.synccall

全量同步接口

func NewAlitripShipProductSynccallRequest

func NewAlitripShipProductSynccallRequest() *AlitripShipProductSynccallRequest

初始化AlitripShipProductSynccallRequest对象

func (AlitripShipProductSynccallRequest) GetApiMethodName

func (r AlitripShipProductSynccallRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (AlitripShipProductSynccallRequest) GetApiParams

func (r AlitripShipProductSynccallRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

type AlitripShipProductSynccallResponse

type AlitripShipProductSynccallResponse struct {
	XMLName xml.Name `xml:"alitrip_ship_product_synccall_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 错误描述
	ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"`
	// 错误码
	ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"`
	// 成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

全量同步回调 成功返回结果

type AlitripShipProductSyncnunberAPIResponse

type AlitripShipProductSyncnunberAPIResponse struct {
	model.CommonResponse
	AlitripShipProductSyncnunberResponse
}

船票班次变更回调 API返回值 alitrip.ship.product.syncnunber

船票班次变更回调

type AlitripShipProductSyncnunberRequest

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

船票班次变更回调 API请求 alitrip.ship.product.syncnunber

船票班次变更回调

func NewAlitripShipProductSyncnunberRequest

func NewAlitripShipProductSyncnunberRequest() *AlitripShipProductSyncnunberRequest

初始化AlitripShipProductSyncnunberRequest对象

func (AlitripShipProductSyncnunberRequest) GetApiMethodName

func (r AlitripShipProductSyncnunberRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (AlitripShipProductSyncnunberRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (AlitripShipProductSyncnunberRequest) GetCityCode

CityCode Getter

func (AlitripShipProductSyncnunberRequest) GetCityName

CityName Getter

func (AlitripShipProductSyncnunberRequest) GetFromStationCode

func (r AlitripShipProductSyncnunberRequest) GetFromStationCode() string

FromStationCode Getter

func (AlitripShipProductSyncnunberRequest) GetFromStationName

func (r AlitripShipProductSyncnunberRequest) GetFromStationName() string

FromStationName Getter

func (*AlitripShipProductSyncnunberRequest) SetCityCode

func (r *AlitripShipProductSyncnunberRequest) SetCityCode(cityCode string) error

CityCode Setter 出发城市code

func (*AlitripShipProductSyncnunberRequest) SetCityName

func (r *AlitripShipProductSyncnunberRequest) SetCityName(cityName string) error

CityName Setter 出发城市

func (*AlitripShipProductSyncnunberRequest) SetFromStationCode

func (r *AlitripShipProductSyncnunberRequest) SetFromStationCode(fromStationCode string) error

FromStationCode Setter 出发港口编号

func (*AlitripShipProductSyncnunberRequest) SetFromStationName

func (r *AlitripShipProductSyncnunberRequest) SetFromStationName(fromStationName string) error

FromStationName Setter 出发港口

type AlitripShipProductSyncnunberResponse

type AlitripShipProductSyncnunberResponse struct {
	XMLName xml.Name `xml:"alitrip_ship_product_syncnunber_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 错误码
	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"`
}

船票班次变更回调 成功返回结果

type AlitripShipReturnNotifyAPIResponse

type AlitripShipReturnNotifyAPIResponse struct {
	model.CommonResponse
	AlitripShipReturnNotifyResponse
}

船票退票退款回填接口 API返回值 alitrip.ship.return.notify

此接口为接入商调用飞猪接口回填退票状态,飞猪平台给用户进行退票退款。飞猪平台保证数据幂等。

type AlitripShipReturnNotifyRequest

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

船票退票退款回填接口 API请求 alitrip.ship.return.notify

此接口为接入商调用飞猪接口回填退票状态,飞猪平台给用户进行退票退款。飞猪平台保证数据幂等。

func NewAlitripShipReturnNotifyRequest

func NewAlitripShipReturnNotifyRequest() *AlitripShipReturnNotifyRequest

初始化AlitripShipReturnNotifyRequest对象

func (AlitripShipReturnNotifyRequest) GetApiMethodName

func (r AlitripShipReturnNotifyRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (AlitripShipReturnNotifyRequest) GetApiParams

func (r AlitripShipReturnNotifyRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (AlitripShipReturnNotifyRequest) GetConfirmRefundRQ

ConfirmRefundRQ Getter

func (*AlitripShipReturnNotifyRequest) SetConfirmRefundRQ

func (r *AlitripShipReturnNotifyRequest) SetConfirmRefundRQ(confirmRefundRQ *ShipAgentConfirmRefundRq) error

ConfirmRefundRQ Setter 退票请求入参

type AlitripShipReturnNotifyResponse

type AlitripShipReturnNotifyResponse struct {
	XMLName xml.Name `xml:"alitrip_ship_return_notify_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 错误码
	RetCode string `json:"ret_code,omitempty" xml:"ret_code,omitempty"`
	// 错误描述
	RetMsg string `json:"ret_msg,omitempty" xml:"ret_msg,omitempty"`
	// 结果
	RetSuccess bool `json:"ret_success,omitempty" xml:"ret_success,omitempty"`
}

船票退票退款回填接口 成功返回结果

type ShipAgentConfirmBookPassengerInfo

type ShipAgentConfirmBookPassengerInfo struct {
	// 乘客证件号
	PassengerCertNo string `json:"passenger_cert_no,omitempty" xml:"passenger_cert_no,omitempty"`
	// 乘客证件类型
	PassengerCertType string `json:"passenger_cert_type,omitempty" xml:"passenger_cert_type,omitempty"`
	// 乘客id
	PassengerId string `json:"passenger_id,omitempty" xml:"passenger_id,omitempty"`
	// 乘客姓名
	PassengerName string `json:"passenger_name,omitempty" xml:"passenger_name,omitempty"`
	// 票信息
	TicketList []ShipAgentConfirmBookTicketInfo `json:"ticket_list,omitempty" xml:"ticket_list>ship_agent_confirm_book_ticket_info,omitempty"`
}

ShipAgentConfirmBookPassengerInfo

type ShipAgentConfirmBookRq

type ShipAgentConfirmBookRq struct {
	// 商家订单id
	AgentOrderId string `json:"agent_order_id,omitempty" xml:"agent_order_id,omitempty"`
	// 飞猪订单id
	AlitripOrderId string `json:"alitrip_order_id,omitempty" xml:"alitrip_order_id,omitempty"`
	// 取票地址信息
	FetchTicketsAddress string `json:"fetch_tickets_address,omitempty" xml:"fetch_tickets_address,omitempty"`
	// 取票号
	FetchTicketsNumber string `json:"fetch_tickets_number,omitempty" xml:"fetch_tickets_number,omitempty"`
	// 取票密码
	FetchTicketsPwd string `json:"fetch_tickets_pwd,omitempty" xml:"fetch_tickets_pwd,omitempty"`
	// 淘宝订单Id
	MainBizOrderId int64 `json:"main_biz_order_id,omitempty" xml:"main_biz_order_id,omitempty"`
	// 取票短信内容
	Message string `json:"message,omitempty" xml:"message,omitempty"`
	// 扩展属性
	OrderAttr string `json:"order_attr,omitempty" xml:"order_attr,omitempty"`
	// 乘客列表
	PassengerList []ShipAgentConfirmBookPassengerInfo `json:"passenger_list,omitempty" xml:"passenger_list>ship_agent_confirm_book_passenger_info,omitempty"`
	// 出票结果
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
	// 票数
	TicketCount int64 `json:"ticket_count,omitempty" xml:"ticket_count,omitempty"`
	// 检票口
	TicketWicket string `json:"ticket_wicket,omitempty" xml:"ticket_wicket,omitempty"`
	// 总价
	TotalPrice int64 `json:"total_price,omitempty" xml:"total_price,omitempty"`
	// 出票失败错误码
	FailedCode string `json:"failed_code,omitempty" xml:"failed_code,omitempty"`
}

ShipAgentConfirmBookRq

type ShipAgentConfirmBookTicketInfo

type ShipAgentConfirmBookTicketInfo struct {
	// 电子票号
	ETicketNo string `json:"e_ticket_no,omitempty" xml:"e_ticket_no,omitempty"`
	// 票描述
	TicketDesc string `json:"ticket_desc,omitempty" xml:"ticket_desc,omitempty"`
	// 票Id
	TicketId string `json:"ticket_id,omitempty" xml:"ticket_id,omitempty"`
	// 票号
	TicketNo string `json:"ticket_no,omitempty" xml:"ticket_no,omitempty"`
	// 票价格(分)
	TicketPrice int64 `json:"ticket_price,omitempty" xml:"ticket_price,omitempty"`
	// 取票密码
	TicketPwd string `json:"ticket_pwd,omitempty" xml:"ticket_pwd,omitempty"`
	// 座位号
	TicketSeatNo string `json:"ticket_seat_no,omitempty" xml:"ticket_seat_no,omitempty"`
	// 票状态:1-出票中2-已出票3-无票4-退票中5-已退票6-退票失败
	TicketStatus string `json:"ticket_status,omitempty" xml:"ticket_status,omitempty"`
	// 子票种类型11-去程;12-往返;21普通门票;31酒店
	TicketSubType string `json:"ticket_sub_type,omitempty" xml:"ticket_sub_type,omitempty"`
	// 票标题
	TicketTitle string `json:"ticket_title,omitempty" xml:"ticket_title,omitempty"`
	// 票种类别1-船票;2-门票;3-酒店;4-其他
	TicketType string `json:"ticket_type,omitempty" xml:"ticket_type,omitempty"`
	// 扩展属性数据
	ExtAttr string `json:"ext_attr,omitempty" xml:"ext_attr,omitempty"`
	// 过期时间
	ExpireTime string `json:"expire_time,omitempty" xml:"expire_time,omitempty"`
}

ShipAgentConfirmBookTicketInfo

type ShipAgentConfirmRefundRq

type ShipAgentConfirmRefundRq struct {
	// 扩展属性
	AgentExtAttr string `json:"agent_ext_attr,omitempty" xml:"agent_ext_attr,omitempty"`
	// 商家订单id
	AgentOrderId string `json:"agent_order_id,omitempty" xml:"agent_order_id,omitempty"`
	// 退款金额(分)
	AgentRefundAmount int64 `json:"agent_refund_amount,omitempty" xml:"agent_refund_amount,omitempty"`
	// 退款资金号唯一ID
	AgentRefundTransId string `json:"agent_refund_trans_id,omitempty" xml:"agent_refund_trans_id,omitempty"`
	// offline:线下退票;online:线上退票
	AgentReturnMode string `json:"agent_return_mode,omitempty" xml:"agent_return_mode,omitempty"`
	// 退票结果编码,(退票失败时必填,参考标准错误码)
	AgentReturnTicketCode int64 `json:"agent_return_ticket_code,omitempty" xml:"agent_return_ticket_code,omitempty"`
	// 商家退票状态;1-成功,2-失败
	AgentReturnTicketStatus int64 `json:"agent_return_ticket_status,omitempty" xml:"agent_return_ticket_status,omitempty"`
	// 商家退票类型;0-按票退,1-按单退
	AgentReturnTicketType int64 `json:"agent_return_ticket_type,omitempty" xml:"agent_return_ticket_type,omitempty"`
	// 退票时间
	AgentReturnTime string `json:"agent_return_time,omitempty" xml:"agent_return_time,omitempty"`
	// 按票的维度进行退票时,商家票号或者乘客Id必填一个,按单退填写订单号
	AgentTicketId string `json:"agent_ticket_id,omitempty" xml:"agent_ticket_id,omitempty"`
	// 飞猪订单号
	AlitripOrderId int64 `json:"alitrip_order_id,omitempty" xml:"alitrip_order_id,omitempty"`
	// 乘客Id
	PassengerId string `json:"passenger_id,omitempty" xml:"passenger_id,omitempty"`
}

ShipAgentConfirmRefundRq

Jump to

Keyboard shortcuts

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