Documentation ¶
Overview ¶
Package alitripcar 包含飞猪-综合交通api相关结构体
Index ¶
- func ReleaseAlitripCarInvoiceConfirmAPIRequest(v *AlitripCarInvoiceConfirmAPIRequest)
- func ReleaseAlitripCarInvoiceConfirmAPIResponse(v *AlitripCarInvoiceConfirmAPIResponse)
- func ReleaseOrderCancel(v *OrderCancel)
- func ReleaseOrderRefund(v *OrderRefund)
- func ReleaseReceiptDo(v *ReceiptDo)
- func ReleaseTaobaoAlitripCarOrderAgentCancelAPIRequest(v *TaobaoAlitripCarOrderAgentCancelAPIRequest)
- func ReleaseTaobaoAlitripCarOrderAgentCancelAPIResponse(v *TaobaoAlitripCarOrderAgentCancelAPIResponse)
- func ReleaseTaobaoAlitripCarOrderRefundAPIRequest(v *TaobaoAlitripCarOrderRefundAPIRequest)
- func ReleaseTaobaoAlitripCarOrderRefundAPIResponse(v *TaobaoAlitripCarOrderRefundAPIResponse)
- type AlitripCarInvoiceConfirmAPIRequest
- func (r AlitripCarInvoiceConfirmAPIRequest) GetApiMethodName() string
- func (r AlitripCarInvoiceConfirmAPIRequest) GetApiParams(params url.Values)
- func (r AlitripCarInvoiceConfirmAPIRequest) GetRawParams() model.Params
- func (r AlitripCarInvoiceConfirmAPIRequest) GetReceiptDo() *ReceiptDo
- func (r *AlitripCarInvoiceConfirmAPIRequest) Reset()
- func (r *AlitripCarInvoiceConfirmAPIRequest) SetReceiptDo(_receiptDo *ReceiptDo) error
- type AlitripCarInvoiceConfirmAPIResponse
- type AlitripCarInvoiceConfirmAPIResponseModel
- type OrderCancel
- type OrderRefund
- type ReceiptDo
- type TaobaoAlitripCarOrderAgentCancelAPIRequest
- func (r TaobaoAlitripCarOrderAgentCancelAPIRequest) GetApiMethodName() string
- func (r TaobaoAlitripCarOrderAgentCancelAPIRequest) GetApiParams(params url.Values)
- func (r TaobaoAlitripCarOrderAgentCancelAPIRequest) GetParamOrderCancel() *OrderCancel
- func (r TaobaoAlitripCarOrderAgentCancelAPIRequest) GetRawParams() model.Params
- func (r *TaobaoAlitripCarOrderAgentCancelAPIRequest) Reset()
- func (r *TaobaoAlitripCarOrderAgentCancelAPIRequest) SetParamOrderCancel(_paramOrderCancel *OrderCancel) error
- type TaobaoAlitripCarOrderAgentCancelAPIResponse
- type TaobaoAlitripCarOrderAgentCancelAPIResponseModel
- type TaobaoAlitripCarOrderRefundAPIRequest
- func (r TaobaoAlitripCarOrderRefundAPIRequest) GetApiMethodName() string
- func (r TaobaoAlitripCarOrderRefundAPIRequest) GetApiParams(params url.Values)
- func (r TaobaoAlitripCarOrderRefundAPIRequest) GetParamOrderRefund() *OrderRefund
- func (r TaobaoAlitripCarOrderRefundAPIRequest) GetRawParams() model.Params
- func (r *TaobaoAlitripCarOrderRefundAPIRequest) Reset()
- func (r *TaobaoAlitripCarOrderRefundAPIRequest) SetParamOrderRefund(_paramOrderRefund *OrderRefund) error
- type TaobaoAlitripCarOrderRefundAPIResponse
- type TaobaoAlitripCarOrderRefundAPIResponseModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReleaseAlitripCarInvoiceConfirmAPIRequest ¶ added in v1.3.4
func ReleaseAlitripCarInvoiceConfirmAPIRequest(v *AlitripCarInvoiceConfirmAPIRequest)
ReleaseAlitripCarInvoiceConfirmAPIRequest 将 AlitripCarInvoiceConfirmAPIRequest 放入 sync.Pool
func ReleaseAlitripCarInvoiceConfirmAPIResponse ¶ added in v1.3.4
func ReleaseAlitripCarInvoiceConfirmAPIResponse(v *AlitripCarInvoiceConfirmAPIResponse)
ReleaseAlitripCarInvoiceConfirmAPIResponse 将 AlitripCarInvoiceConfirmAPIResponse 保存到 sync.Pool
func ReleaseOrderCancel ¶ added in v1.3.4
func ReleaseOrderCancel(v *OrderCancel)
ReleaseOrderCancel 释放OrderCancel
func ReleaseOrderRefund ¶ added in v1.3.4
func ReleaseOrderRefund(v *OrderRefund)
ReleaseOrderRefund 释放OrderRefund
func ReleaseReceiptDo ¶ added in v1.3.4
func ReleaseReceiptDo(v *ReceiptDo)
ReleaseReceiptDo 释放ReceiptDo
func ReleaseTaobaoAlitripCarOrderAgentCancelAPIRequest ¶ added in v1.3.4
func ReleaseTaobaoAlitripCarOrderAgentCancelAPIRequest(v *TaobaoAlitripCarOrderAgentCancelAPIRequest)
ReleaseTaobaoAlitripCarOrderAgentCancelAPIRequest 将 TaobaoAlitripCarOrderAgentCancelAPIRequest 放入 sync.Pool
func ReleaseTaobaoAlitripCarOrderAgentCancelAPIResponse ¶ added in v1.3.4
func ReleaseTaobaoAlitripCarOrderAgentCancelAPIResponse(v *TaobaoAlitripCarOrderAgentCancelAPIResponse)
ReleaseTaobaoAlitripCarOrderAgentCancelAPIResponse 将 TaobaoAlitripCarOrderAgentCancelAPIResponse 保存到 sync.Pool
func ReleaseTaobaoAlitripCarOrderRefundAPIRequest ¶ added in v1.3.4
func ReleaseTaobaoAlitripCarOrderRefundAPIRequest(v *TaobaoAlitripCarOrderRefundAPIRequest)
ReleaseTaobaoAlitripCarOrderRefundAPIRequest 将 TaobaoAlitripCarOrderRefundAPIRequest 放入 sync.Pool
func ReleaseTaobaoAlitripCarOrderRefundAPIResponse ¶ added in v1.3.4
func ReleaseTaobaoAlitripCarOrderRefundAPIResponse(v *TaobaoAlitripCarOrderRefundAPIResponse)
ReleaseTaobaoAlitripCarOrderRefundAPIResponse 将 TaobaoAlitripCarOrderRefundAPIResponse 保存到 sync.Pool
Types ¶
type AlitripCarInvoiceConfirmAPIRequest ¶ added in v1.2.0
type AlitripCarInvoiceConfirmAPIRequest struct { model.Params // contains filtered or unexported fields }
AlitripCarInvoiceConfirmAPIRequest 发票确认接口 API请求 alitrip.car.invoice.confirm
飞猪发票回调接口
func GetAlitripCarInvoiceConfirmAPIRequest ¶ added in v1.3.4
func GetAlitripCarInvoiceConfirmAPIRequest() *AlitripCarInvoiceConfirmAPIRequest
GetAlitripCarInvoiceConfirmRequest 从 sync.Pool 获取 AlitripCarInvoiceConfirmAPIRequest
func NewAlitripCarInvoiceConfirmRequest ¶
func NewAlitripCarInvoiceConfirmRequest() *AlitripCarInvoiceConfirmAPIRequest
NewAlitripCarInvoiceConfirmRequest 初始化AlitripCarInvoiceConfirmAPIRequest对象
func (AlitripCarInvoiceConfirmAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r AlitripCarInvoiceConfirmAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AlitripCarInvoiceConfirmAPIRequest) GetApiParams ¶ added in v1.2.0
func (r AlitripCarInvoiceConfirmAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (AlitripCarInvoiceConfirmAPIRequest) GetRawParams ¶ added in v1.2.8
func (r AlitripCarInvoiceConfirmAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (AlitripCarInvoiceConfirmAPIRequest) GetReceiptDo ¶ added in v1.2.0
func (r AlitripCarInvoiceConfirmAPIRequest) GetReceiptDo() *ReceiptDo
GetReceiptDo ReceiptDo Getter
func (*AlitripCarInvoiceConfirmAPIRequest) Reset ¶ added in v1.3.4
func (r *AlitripCarInvoiceConfirmAPIRequest) Reset()
Reset IRequest interface 方法, 清空结构体
func (*AlitripCarInvoiceConfirmAPIRequest) SetReceiptDo ¶ added in v1.2.0
func (r *AlitripCarInvoiceConfirmAPIRequest) SetReceiptDo(_receiptDo *ReceiptDo) error
SetReceiptDo is ReceiptDo Setter 入参对象
type AlitripCarInvoiceConfirmAPIResponse ¶
type AlitripCarInvoiceConfirmAPIResponse struct { model.CommonResponse AlitripCarInvoiceConfirmAPIResponseModel }
AlitripCarInvoiceConfirmAPIResponse 发票确认接口 API返回值 alitrip.car.invoice.confirm
飞猪发票回调接口
func GetAlitripCarInvoiceConfirmAPIResponse ¶ added in v1.3.4
func GetAlitripCarInvoiceConfirmAPIResponse() *AlitripCarInvoiceConfirmAPIResponse
GetAlitripCarInvoiceConfirmAPIResponse 从 sync.Pool 获取 AlitripCarInvoiceConfirmAPIResponse
func (*AlitripCarInvoiceConfirmAPIResponse) Reset ¶ added in v1.3.4
func (m *AlitripCarInvoiceConfirmAPIResponse) Reset()
Reset 清空结构体
type AlitripCarInvoiceConfirmAPIResponseModel ¶ added in v1.2.0
type AlitripCarInvoiceConfirmAPIResponseModel struct { XMLName xml.Name `xml:"alitrip_car_invoice_confirm_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 错误消息 Message string `json:"message,omitempty" xml:"message,omitempty"` // 错误码 MessageCode int64 `json:"message_code,omitempty" xml:"message_code,omitempty"` // 结果对象 Model bool `json:"model,omitempty" xml:"model,omitempty"` }
AlitripCarInvoiceConfirmAPIResponseModel is 发票确认接口 成功返回结果
func (*AlitripCarInvoiceConfirmAPIResponseModel) Reset ¶ added in v1.3.4
func (m *AlitripCarInvoiceConfirmAPIResponseModel) Reset()
Reset 清空结构体
type OrderCancel ¶
type OrderCancel struct { // 飞猪订单id OrderId string `json:"order_id,omitempty" xml:"order_id,omitempty"` // 服务商ID 平台分配 ProviderId string `json:"provider_id,omitempty" xml:"provider_id,omitempty"` // 服务商订单id ThirdOrderId string `json:"third_order_id,omitempty" xml:"third_order_id,omitempty"` // 取消原因 CancelReason string `json:"cancel_reason,omitempty" xml:"cancel_reason,omitempty"` // 取消类别(14:司机取消订单 15:商家客服取消订单) CancelCategory int64 `json:"cancel_category,omitempty" xml:"cancel_category,omitempty"` }
OrderCancel 结构体
func GetOrderCancel ¶ added in v1.3.4
func GetOrderCancel() *OrderCancel
GetOrderCancel() 从对象池中获取OrderCancel
type OrderRefund ¶
type OrderRefund struct { // 退款金额(单位:分) RefundFee string `json:"refund_fee,omitempty" xml:"refund_fee,omitempty"` // 订单原始金额(单位:分) OriginalPrice string `json:"original_price,omitempty" xml:"original_price,omitempty"` // 服务商订单id ThirdOrderId string `json:"third_order_id,omitempty" xml:"third_order_id,omitempty"` // 飞猪订单id OrderId string `json:"order_id,omitempty" xml:"order_id,omitempty"` // 商家退款唯一标识(密等对账使用) AgentUniqKey string `json:"agent_uniq_key,omitempty" xml:"agent_uniq_key,omitempty"` // 供应商编号 ProviderId string `json:"provider_id,omitempty" xml:"provider_id,omitempty"` }
OrderRefund 结构体
func GetOrderRefund ¶ added in v1.3.4
func GetOrderRefund() *OrderRefund
GetOrderRefund() 从对象池中获取OrderRefund
type ReceiptDo ¶
type ReceiptDo struct { // 供应商编号 ProviderId string `json:"provider_id,omitempty" xml:"provider_id,omitempty"` // 错误码 FailCode string `json:"fail_code,omitempty" xml:"fail_code,omitempty"` // 失败原因.status为0时必填 FailReason string `json:"fail_reason,omitempty" xml:"fail_reason,omitempty"` // 发票链接.status为1时需要填 ReceiptUrl string `json:"receipt_url,omitempty" xml:"receipt_url,omitempty"` // 开票时间 ReceiptDateTime string `json:"receipt_date_time,omitempty" xml:"receipt_date_time,omitempty"` // 发票流水号。成功时必填 ReceiptNumber string `json:"receipt_number,omitempty" xml:"receipt_number,omitempty"` // 供应商订单号 OutOrderId string `json:"out_order_id,omitempty" xml:"out_order_id,omitempty"` // 发票金额,单位分 ReceiptAmount int64 `json:"receipt_amount,omitempty" xml:"receipt_amount,omitempty"` // 业务类型编号(1:?国内机票,2:国际机票,3:火车票,4:汽车票,5:酒店,6:门票度假,7:打车,8:用车,9:套餐,10:欧铁,11:辅营,12:辅营保险) BizType int64 `json:"biz_type,omitempty" xml:"biz_type,omitempty"` // 飞猪订单号 OrderId int64 `json:"order_id,omitempty" xml:"order_id,omitempty"` // 发票状态1成功0失败-1取消订单 ReceiptStatus int64 `json:"receipt_status,omitempty" xml:"receipt_status,omitempty"` }
ReceiptDo 结构体
type TaobaoAlitripCarOrderAgentCancelAPIRequest ¶ added in v1.2.0
type TaobaoAlitripCarOrderAgentCancelAPIRequest struct { model.Params // contains filtered or unexported fields }
TaobaoAlitripCarOrderAgentCancelAPIRequest 司机或客服取消订单 API请求 taobao.alitrip.car.order.agent.cancel
司机或客服取消订单后通知飞猪订单取消
func GetTaobaoAlitripCarOrderAgentCancelAPIRequest ¶ added in v1.3.4
func GetTaobaoAlitripCarOrderAgentCancelAPIRequest() *TaobaoAlitripCarOrderAgentCancelAPIRequest
GetTaobaoAlitripCarOrderAgentCancelRequest 从 sync.Pool 获取 TaobaoAlitripCarOrderAgentCancelAPIRequest
func NewTaobaoAlitripCarOrderAgentCancelRequest ¶
func NewTaobaoAlitripCarOrderAgentCancelRequest() *TaobaoAlitripCarOrderAgentCancelAPIRequest
NewTaobaoAlitripCarOrderAgentCancelRequest 初始化TaobaoAlitripCarOrderAgentCancelAPIRequest对象
func (TaobaoAlitripCarOrderAgentCancelAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r TaobaoAlitripCarOrderAgentCancelAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TaobaoAlitripCarOrderAgentCancelAPIRequest) GetApiParams ¶ added in v1.2.0
func (r TaobaoAlitripCarOrderAgentCancelAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (TaobaoAlitripCarOrderAgentCancelAPIRequest) GetParamOrderCancel ¶ added in v1.2.0
func (r TaobaoAlitripCarOrderAgentCancelAPIRequest) GetParamOrderCancel() *OrderCancel
GetParamOrderCancel ParamOrderCancel Getter
func (TaobaoAlitripCarOrderAgentCancelAPIRequest) GetRawParams ¶ added in v1.2.8
func (r TaobaoAlitripCarOrderAgentCancelAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (*TaobaoAlitripCarOrderAgentCancelAPIRequest) Reset ¶ added in v1.3.4
func (r *TaobaoAlitripCarOrderAgentCancelAPIRequest) Reset()
Reset IRequest interface 方法, 清空结构体
func (*TaobaoAlitripCarOrderAgentCancelAPIRequest) SetParamOrderCancel ¶ added in v1.2.0
func (r *TaobaoAlitripCarOrderAgentCancelAPIRequest) SetParamOrderCancel(_paramOrderCancel *OrderCancel) error
SetParamOrderCancel is ParamOrderCancel Setter 取消对象
type TaobaoAlitripCarOrderAgentCancelAPIResponse ¶
type TaobaoAlitripCarOrderAgentCancelAPIResponse struct { model.CommonResponse TaobaoAlitripCarOrderAgentCancelAPIResponseModel }
TaobaoAlitripCarOrderAgentCancelAPIResponse 司机或客服取消订单 API返回值 taobao.alitrip.car.order.agent.cancel
司机或客服取消订单后通知飞猪订单取消
func GetTaobaoAlitripCarOrderAgentCancelAPIResponse ¶ added in v1.3.4
func GetTaobaoAlitripCarOrderAgentCancelAPIResponse() *TaobaoAlitripCarOrderAgentCancelAPIResponse
GetTaobaoAlitripCarOrderAgentCancelAPIResponse 从 sync.Pool 获取 TaobaoAlitripCarOrderAgentCancelAPIResponse
func (*TaobaoAlitripCarOrderAgentCancelAPIResponse) Reset ¶ added in v1.3.4
func (m *TaobaoAlitripCarOrderAgentCancelAPIResponse) Reset()
Reset 清空结构体
type TaobaoAlitripCarOrderAgentCancelAPIResponseModel ¶ added in v1.2.0
type TaobaoAlitripCarOrderAgentCancelAPIResponseModel struct { XMLName xml.Name `xml:"alitrip_car_order_agent_cancel_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 错误消息 Message string `json:"message,omitempty" xml:"message,omitempty"` // 错误码 MessageCode int64 `json:"message_code,omitempty" xml:"message_code,omitempty"` // 结果对象 Model bool `json:"model,omitempty" xml:"model,omitempty"` }
TaobaoAlitripCarOrderAgentCancelAPIResponseModel is 司机或客服取消订单 成功返回结果
func (*TaobaoAlitripCarOrderAgentCancelAPIResponseModel) Reset ¶ added in v1.3.4
func (m *TaobaoAlitripCarOrderAgentCancelAPIResponseModel) Reset()
Reset 清空结构体
type TaobaoAlitripCarOrderRefundAPIRequest ¶ added in v1.2.0
type TaobaoAlitripCarOrderRefundAPIRequest struct { model.Params // contains filtered or unexported fields }
TaobaoAlitripCarOrderRefundAPIRequest 用户投诉达成一致后给用户退款 API请求 taobao.alitrip.car.order.refund
用户投诉后,供应商客服与客户沟通达成一致后通知飞猪给客户退款。退款金额以接口回调金额为准。
func GetTaobaoAlitripCarOrderRefundAPIRequest ¶ added in v1.3.4
func GetTaobaoAlitripCarOrderRefundAPIRequest() *TaobaoAlitripCarOrderRefundAPIRequest
GetTaobaoAlitripCarOrderRefundRequest 从 sync.Pool 获取 TaobaoAlitripCarOrderRefundAPIRequest
func NewTaobaoAlitripCarOrderRefundRequest ¶
func NewTaobaoAlitripCarOrderRefundRequest() *TaobaoAlitripCarOrderRefundAPIRequest
NewTaobaoAlitripCarOrderRefundRequest 初始化TaobaoAlitripCarOrderRefundAPIRequest对象
func (TaobaoAlitripCarOrderRefundAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r TaobaoAlitripCarOrderRefundAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TaobaoAlitripCarOrderRefundAPIRequest) GetApiParams ¶ added in v1.2.0
func (r TaobaoAlitripCarOrderRefundAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (TaobaoAlitripCarOrderRefundAPIRequest) GetParamOrderRefund ¶ added in v1.2.0
func (r TaobaoAlitripCarOrderRefundAPIRequest) GetParamOrderRefund() *OrderRefund
GetParamOrderRefund ParamOrderRefund Getter
func (TaobaoAlitripCarOrderRefundAPIRequest) GetRawParams ¶ added in v1.2.8
func (r TaobaoAlitripCarOrderRefundAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (*TaobaoAlitripCarOrderRefundAPIRequest) Reset ¶ added in v1.3.4
func (r *TaobaoAlitripCarOrderRefundAPIRequest) Reset()
Reset IRequest interface 方法, 清空结构体
func (*TaobaoAlitripCarOrderRefundAPIRequest) SetParamOrderRefund ¶ added in v1.2.0
func (r *TaobaoAlitripCarOrderRefundAPIRequest) SetParamOrderRefund(_paramOrderRefund *OrderRefund) error
SetParamOrderRefund is ParamOrderRefund Setter 退款对象
type TaobaoAlitripCarOrderRefundAPIResponse ¶
type TaobaoAlitripCarOrderRefundAPIResponse struct { model.CommonResponse TaobaoAlitripCarOrderRefundAPIResponseModel }
TaobaoAlitripCarOrderRefundAPIResponse 用户投诉达成一致后给用户退款 API返回值 taobao.alitrip.car.order.refund
用户投诉后,供应商客服与客户沟通达成一致后通知飞猪给客户退款。退款金额以接口回调金额为准。
func GetTaobaoAlitripCarOrderRefundAPIResponse ¶ added in v1.3.4
func GetTaobaoAlitripCarOrderRefundAPIResponse() *TaobaoAlitripCarOrderRefundAPIResponse
GetTaobaoAlitripCarOrderRefundAPIResponse 从 sync.Pool 获取 TaobaoAlitripCarOrderRefundAPIResponse
func (*TaobaoAlitripCarOrderRefundAPIResponse) Reset ¶ added in v1.3.4
func (m *TaobaoAlitripCarOrderRefundAPIResponse) Reset()
Reset 清空结构体
type TaobaoAlitripCarOrderRefundAPIResponseModel ¶ added in v1.2.0
type TaobaoAlitripCarOrderRefundAPIResponseModel struct { XMLName xml.Name `xml:"alitrip_car_order_refund_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 错误消息 Message string `json:"message,omitempty" xml:"message,omitempty"` // 错误码 MessageCode int64 `json:"message_code,omitempty" xml:"message_code,omitempty"` // 结果对象 Model bool `json:"model,omitempty" xml:"model,omitempty"` }
TaobaoAlitripCarOrderRefundAPIResponseModel is 用户投诉达成一致后给用户退款 成功返回结果
func (*TaobaoAlitripCarOrderRefundAPIResponseModel) Reset ¶ added in v1.3.4
func (m *TaobaoAlitripCarOrderRefundAPIResponseModel) Reset()
Reset 清空结构体
Source Files ¶
- AlitripCarInvoiceConfirmAPIRequest.go
- AlitripCarInvoiceConfirmAPIResponse.go
- OrderCancel.go
- OrderRefund.go
- ReceiptDo.go
- TaobaoAlitripCarOrderAgentCancelAPIRequest.go
- TaobaoAlitripCarOrderAgentCancelAPIResponse.go
- TaobaoAlitripCarOrderRefundAPIRequest.go
- TaobaoAlitripCarOrderRefundAPIResponse.go
- doc.go