alitripcar

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package alitripcar 包含飞猪-综合交通api相关结构体

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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

GetRawParams IRequest interface 方法, 获取API原始参数

func (AlitripCarInvoiceConfirmAPIRequest) GetReceiptDo added in v1.2.0

GetReceiptDo ReceiptDo Getter

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

飞猪发票回调接口

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 发票确认接口 成功返回结果

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 结构体

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 结构体

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 NewTaobaoAlitripCarOrderAgentCancelRequest

func NewTaobaoAlitripCarOrderAgentCancelRequest() *TaobaoAlitripCarOrderAgentCancelAPIRequest

NewTaobaoAlitripCarOrderAgentCancelRequest 初始化TaobaoAlitripCarOrderAgentCancelAPIRequest对象

func (TaobaoAlitripCarOrderAgentCancelAPIRequest) GetApiMethodName added in v1.2.0

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

GetParamOrderCancel ParamOrderCancel Getter

func (TaobaoAlitripCarOrderAgentCancelAPIRequest) GetRawParams added in v1.2.8

GetRawParams IRequest interface 方法, 获取API原始参数

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

司机或客服取消订单后通知飞猪订单取消

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 司机或客服取消订单 成功返回结果

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

GetRawParams IRequest interface 方法, 获取API原始参数

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

用户投诉后,供应商客服与客户沟通达成一致后通知飞猪给客户退款。退款金额以接口回调金额为准。

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 用户投诉达成一致后给用户退款 成功返回结果

Jump to

Keyboard shortcuts

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