alitripcar

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=53101&docType=2

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlitripCarInvoiceConfirmAPIResponse

type AlitripCarInvoiceConfirmAPIResponse struct {
	model.CommonResponse
	AlitripCarInvoiceConfirmResponse
}

发票确认接口 API返回值 alitrip.car.invoice.confirm

飞猪发票回调接口

type AlitripCarInvoiceConfirmRequest

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

发票确认接口 API请求 alitrip.car.invoice.confirm

飞猪发票回调接口

func NewAlitripCarInvoiceConfirmRequest

func NewAlitripCarInvoiceConfirmRequest() *AlitripCarInvoiceConfirmRequest

初始化AlitripCarInvoiceConfirmRequest对象

func (AlitripCarInvoiceConfirmRequest) GetApiMethodName

func (r AlitripCarInvoiceConfirmRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (AlitripCarInvoiceConfirmRequest) GetApiParams

func (r AlitripCarInvoiceConfirmRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (AlitripCarInvoiceConfirmRequest) GetReceiptDo

func (r AlitripCarInvoiceConfirmRequest) GetReceiptDo() *ReceiptDo

ReceiptDo Getter

func (*AlitripCarInvoiceConfirmRequest) SetReceiptDo

func (r *AlitripCarInvoiceConfirmRequest) SetReceiptDo(receiptDo *ReceiptDo) error

ReceiptDo Setter 入参对象

type AlitripCarInvoiceConfirmResponse

type AlitripCarInvoiceConfirmResponse struct {
	XMLName xml.Name `xml:"alitrip_car_invoice_confirm_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 结果对象
	Model bool `json:"model,omitempty" xml:"model,omitempty"`
	// 错误消息
	Message string `json:"message,omitempty" xml:"message,omitempty"`
	// 错误码
	MessageCode int64 `json:"message_code,omitempty" xml:"message_code,omitempty"`
}

发票确认接口 成功返回结果

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 {
	// 发票金额,单位分
	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"`
	// 错误码
	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"`
	// 发票状态1成功0失败-1取消订单
	ReceiptStatus int64 `json:"receipt_status,omitempty" xml:"receipt_status,omitempty"`
	// 供应商编号
	ProviderId string `json:"provider_id,omitempty" xml:"provider_id,omitempty"`
	// 飞猪订单号
	OrderId int64 `json:"order_id,omitempty" xml:"order_id,omitempty"`
	// 供应商订单号
	OutOrderId string `json:"out_order_id,omitempty" xml:"out_order_id,omitempty"`
}

ReceiptDo

type TaobaoAlitripCarOrderAgentCancelAPIResponse

type TaobaoAlitripCarOrderAgentCancelAPIResponse struct {
	model.CommonResponse
	TaobaoAlitripCarOrderAgentCancelResponse
}

司机或客服取消订单 API返回值 taobao.alitrip.car.order.agent.cancel

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

type TaobaoAlitripCarOrderAgentCancelRequest

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

司机或客服取消订单 API请求 taobao.alitrip.car.order.agent.cancel

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

func NewTaobaoAlitripCarOrderAgentCancelRequest

func NewTaobaoAlitripCarOrderAgentCancelRequest() *TaobaoAlitripCarOrderAgentCancelRequest

初始化TaobaoAlitripCarOrderAgentCancelRequest对象

func (TaobaoAlitripCarOrderAgentCancelRequest) GetApiMethodName

func (r TaobaoAlitripCarOrderAgentCancelRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoAlitripCarOrderAgentCancelRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (TaobaoAlitripCarOrderAgentCancelRequest) GetParamOrderCancel

func (r TaobaoAlitripCarOrderAgentCancelRequest) GetParamOrderCancel() *OrderCancel

ParamOrderCancel Getter

func (*TaobaoAlitripCarOrderAgentCancelRequest) SetParamOrderCancel

func (r *TaobaoAlitripCarOrderAgentCancelRequest) SetParamOrderCancel(paramOrderCancel *OrderCancel) error

ParamOrderCancel Setter 取消对象

type TaobaoAlitripCarOrderAgentCancelResponse

type TaobaoAlitripCarOrderAgentCancelResponse struct {
	XMLName xml.Name `xml:"alitrip_car_order_agent_cancel_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 结果对象
	Model bool `json:"model,omitempty" xml:"model,omitempty"`
	// 错误消息
	Message string `json:"message,omitempty" xml:"message,omitempty"`
	// 错误码
	MessageCode int64 `json:"message_code,omitempty" xml:"message_code,omitempty"`
}

司机或客服取消订单 成功返回结果

type TaobaoAlitripCarOrderRefundAPIResponse

type TaobaoAlitripCarOrderRefundAPIResponse struct {
	model.CommonResponse
	TaobaoAlitripCarOrderRefundResponse
}

用户投诉达成一致后给用户退款 API返回值 taobao.alitrip.car.order.refund

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

type TaobaoAlitripCarOrderRefundRequest

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

用户投诉达成一致后给用户退款 API请求 taobao.alitrip.car.order.refund

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

func NewTaobaoAlitripCarOrderRefundRequest

func NewTaobaoAlitripCarOrderRefundRequest() *TaobaoAlitripCarOrderRefundRequest

初始化TaobaoAlitripCarOrderRefundRequest对象

func (TaobaoAlitripCarOrderRefundRequest) GetApiMethodName

func (r TaobaoAlitripCarOrderRefundRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoAlitripCarOrderRefundRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (TaobaoAlitripCarOrderRefundRequest) GetParamOrderRefund

func (r TaobaoAlitripCarOrderRefundRequest) GetParamOrderRefund() *OrderRefund

ParamOrderRefund Getter

func (*TaobaoAlitripCarOrderRefundRequest) SetParamOrderRefund

func (r *TaobaoAlitripCarOrderRefundRequest) SetParamOrderRefund(paramOrderRefund *OrderRefund) error

ParamOrderRefund Setter 退款对象

type TaobaoAlitripCarOrderRefundResponse

type TaobaoAlitripCarOrderRefundResponse struct {
	XMLName xml.Name `xml:"alitrip_car_order_refund_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 结果对象
	Model bool `json:"model,omitempty" xml:"model,omitempty"`
	// 错误消息
	Message string `json:"message,omitempty" xml:"message,omitempty"`
	// 错误码
	MessageCode int64 `json:"message_code,omitempty" xml:"message_code,omitempty"`
}

用户投诉达成一致后给用户退款 成功返回结果

Jump to

Keyboard shortcuts

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