xhotel

package
v1.2.0 Latest Latest
Warning

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

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

Documentation

Overview

酒店API model

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adsslrservicedatalist

type Adsslrservicedatalist struct {
	// 查无订单数
	NoOrdCnt1d int64 `json:"no_ord_cnt1d,omitempty" xml:"no_ord_cnt1d,omitempty"`
	// 国际平均响应时长
	RespDurationOverseas int64 `json:"resp_duration_overseas,omitempty" xml:"resp_duration_overseas,omitempty"`
	// 90天销量
	SalesCountIn90days int64 `json:"sales_count_in90days,omitempty" xml:"sales_count_in90days,omitempty"`
	// 到店无房订单数
	NoRoomCnt1d int64 `json:"no_room_cnt1d,omitempty" xml:"no_room_cnt1d,omitempty"`
	// 每日订单数
	SalesCountInDay int64 `json:"sales_count_in_day,omitempty" xml:"sales_count_in_day,omitempty"`
	// 国内预订成功率
	BookingSuccRateDomesticDouble string `json:"booking_succ_rate_domestic_double,omitempty" xml:"booking_succ_rate_domestic_double,omitempty"`
	// 查无订单率
	NoOrdCnt1dRateDouble string `json:"no_ord_cnt1d_rate_double,omitempty" xml:"no_ord_cnt1d_rate_double,omitempty"`
	// 退款率
	PreRefundCnt1mRateDouble string `json:"pre_refund_cnt1m_rate_double,omitempty" xml:"pre_refund_cnt1m_rate_double,omitempty"`
	// 查询日期
	ReportDate string `json:"report_date,omitempty" xml:"report_date,omitempty"`
	// 预订成功率国际
	BookingSuccRateOverseasDouble string `json:"booking_succ_rate_overseas_double,omitempty" xml:"booking_succ_rate_overseas_double,omitempty"`
	// 到店无房率
	NoRoomCnt1dRateDouble string `json:"no_room_cnt1d_rate_double,omitempty" xml:"no_room_cnt1d_rate_double,omitempty"`
	// 卖家原因退款率
	PreSlrRefundCnt1mRateDouble string `json:"pre_slr_refund_cnt1m_rate_double,omitempty" xml:"pre_slr_refund_cnt1m_rate_double,omitempty"`
}

Adsslrservicedatalist

type AlitripXhotelChannelOrderCreateResQueryAPIRequest

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

分销订单查询订单创建结果 API请求 alitrip.xhotel.channel.order.create.res.query

针对分销渠道订单,在调用创建订单接口失败1分钟后,调用此接口,用以确认订单是否创建成功。

func NewAlitripXhotelChannelOrderCreateResQueryRequest

func NewAlitripXhotelChannelOrderCreateResQueryRequest() *AlitripXhotelChannelOrderCreateResQueryAPIRequest

初始化AlitripXhotelChannelOrderCreateResQueryAPIRequest对象

func (AlitripXhotelChannelOrderCreateResQueryAPIRequest) GetApiMethodName

IRequest interface 方法, 获取Api method

func (AlitripXhotelChannelOrderCreateResQueryAPIRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (AlitripXhotelChannelOrderCreateResQueryAPIRequest) GetOutSourceOrderId

OutSourceOrderId Getter

func (*AlitripXhotelChannelOrderCreateResQueryAPIRequest) SetOutSourceOrderId

func (r *AlitripXhotelChannelOrderCreateResQueryAPIRequest) SetOutSourceOrderId(_outSourceOrderId string) error

OutSourceOrderId Setter 外部渠道订单号

type AlitripXhotelChannelOrderCreateResQueryAPIResponse

type AlitripXhotelChannelOrderCreateResQueryAPIResponse struct {
	model.CommonResponse
	AlitripXhotelChannelOrderCreateResQueryAPIResponseModel
}

分销订单查询订单创建结果 API返回值 alitrip.xhotel.channel.order.create.res.query

针对分销渠道订单,在调用创建订单接口失败1分钟后,调用此接口,用以确认订单是否创建成功。

type AlitripXhotelChannelOrderCreateResQueryAPIResponseModel

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

分销订单查询订单创建结果 成功返回结果

type DchotelSignDo

type DchotelSignDo struct {
	// hid
	Hid int64 `json:"hid,omitempty" xml:"hid,omitempty"`
	// pid
	Pid int64 `json:"pid,omitempty" xml:"pid,omitempty"`
	// signStatus
	SignStatus int64 `json:"sign_status,omitempty" xml:"sign_status,omitempty"`
	// isKezhanSign
	IsKezhanSign int64 `json:"is_kezhan_sign,omitempty" xml:"is_kezhan_sign,omitempty"`
	// name
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// email
	Email string `json:"email,omitempty" xml:"email,omitempty"`
	// phone
	Phone string `json:"phone,omitempty" xml:"phone,omitempty"`
	// payType
	PayType int64 `json:"pay_type,omitempty" xml:"pay_type,omitempty"`
	// qlfType
	QlfType int64 `json:"qlf_type,omitempty" xml:"qlf_type,omitempty"`
	// idConfirmLetterStatus
	IdConfirmLetterStatus int64 `json:"id_confirm_letter_status,omitempty" xml:"id_confirm_letter_status,omitempty"`
	// taccAuthLetterAllowDate
	TaccAuthLetterAllowDate string `json:"tacc_auth_letter_allow_date,omitempty" xml:"tacc_auth_letter_allow_date,omitempty"`
	// stlStatus
	StlStatus int64 `json:"stl_status,omitempty" xml:"stl_status,omitempty"`
	// hotelierIdStatus
	HotelierIdStatus int64 `json:"hotelier_id_status,omitempty" xml:"hotelier_id_status,omitempty"`
	// commLetterStatus
	CommLetterStatus int64 `json:"comm_letter_status,omitempty" xml:"comm_letter_status,omitempty"`
	// hotelPicturesStatus
	HotelPicturesStatus int64 `json:"hotel_pictures_status,omitempty" xml:"hotel_pictures_status,omitempty"`
	// hotelAccount
	HotelAccount string `json:"hotel_account,omitempty" xml:"hotel_account,omitempty"`
	// toDcHotelStatus
	ToDcHotelStatus int64 `json:"to_dc_hotel_status,omitempty" xml:"to_dc_hotel_status,omitempty"`
	// intentAchieveDate
	IntentAchieveDate string `json:"intent_achieve_date,omitempty" xml:"intent_achieve_date,omitempty"`
	// privateReceiptAccountStatus
	PrivateReceiptAccountStatus int64 `json:"private_receipt_account_status,omitempty" xml:"private_receipt_account_status,omitempty"`
	// blStatus
	BlStatus int64 `json:"bl_status,omitempty" xml:"bl_status,omitempty"`
}

DchotelSignDo

type DsNhotelInfoDo

type DsNhotelInfoDo struct {
	// onlineStatus
	OnlineStatus int64 `json:"online_status,omitempty" xml:"online_status,omitempty"`
	// onlineDate
	OnlineDate string `json:"online_date,omitempty" xml:"online_date,omitempty"`
	// qualificationType
	QualificationType int64 `json:"qualification_type,omitempty" xml:"qualification_type,omitempty"`
	// accountType
	AccountType int64 `json:"account_type,omitempty" xml:"account_type,omitempty"`
	// trainStatus
	TrainStatus int64 `json:"train_status,omitempty" xml:"train_status,omitempty"`
	// commLetterStatus
	CommLetterStatus int64 `json:"comm_letter_status,omitempty" xml:"comm_letter_status,omitempty"`
	// privateReceiptAccountStatus
	PrivateReceiptAccountStatus int64 `json:"private_receipt_account_status,omitempty" xml:"private_receipt_account_status,omitempty"`
	// hotelierIdStatus
	HotelierIdStatus int64 `json:"hotelier_id_status,omitempty" xml:"hotelier_id_status,omitempty"`
	// srlStatus
	SrlStatus int64 `json:"srl_status,omitempty" xml:"srl_status,omitempty"`
	// businessLicenseStatus
	BusinessLicenseStatus int64 `json:"business_license_status,omitempty" xml:"business_license_status,omitempty"`
	// idConfirmLetterStatus
	IdConfirmLetterStatus int64 `json:"id_confirm_letter_status,omitempty" xml:"id_confirm_letter_status,omitempty"`
	// signDate
	SignDate string `json:"sign_date,omitempty" xml:"sign_date,omitempty"`
	// isSigned
	IsSigned int64 `json:"is_signed,omitempty" xml:"is_signed,omitempty"`
	// isAccountApply
	IsAccountApply int64 `json:"is_account_apply,omitempty" xml:"is_account_apply,omitempty"`
	// name
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// hid
	Hid int64 `json:"hid,omitempty" xml:"hid,omitempty"`
	// outerId
	OuterId string `json:"outer_id,omitempty" xml:"outer_id,omitempty"`
	// isKezhan
	IsKezhan int64 `json:"is_kezhan,omitempty" xml:"is_kezhan,omitempty"`
	// hotelPicturesStatus
	HotelPicturesStatus int64 `json:"hotel_pictures_status,omitempty" xml:"hotel_pictures_status,omitempty"`
	// canSellStatus
	CanSellStatus int64 `json:"can_sell_status,omitempty" xml:"can_sell_status,omitempty"`
	// canSellDate
	CanSellDate string `json:"can_sell_date,omitempty" xml:"can_sell_date,omitempty"`
}

DsNhotelInfoDo

type HbsResult

type HbsResult struct {
	// 错误信息
	ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"`
	// 飞猪平台订单号
	Module int64 `json:"module,omitempty" xml:"module,omitempty"`
	// 结果码
	ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"`
	// 给开发用的错误信息
	ResultMsg4Dev string `json:"result_msg4_dev,omitempty" xml:"result_msg4_dev,omitempty"`
	// 订单是否创建成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

HbsResult

type TaobaoXhotelDataServiceHotelServiceindexAPIRequest

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

酒店服务指数 API请求 taobao.xhotel.data.service.hotel.serviceindex

酒店服务指数

func NewTaobaoXhotelDataServiceHotelServiceindexRequest

func NewTaobaoXhotelDataServiceHotelServiceindexRequest() *TaobaoXhotelDataServiceHotelServiceindexAPIRequest

初始化TaobaoXhotelDataServiceHotelServiceindexAPIRequest对象

func (TaobaoXhotelDataServiceHotelServiceindexAPIRequest) GetApiMethodName

IRequest interface 方法, 获取Api method

func (TaobaoXhotelDataServiceHotelServiceindexAPIRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (TaobaoXhotelDataServiceHotelServiceindexAPIRequest) GetHid

Hid Getter

func (TaobaoXhotelDataServiceHotelServiceindexAPIRequest) GetPageSize

PageSize Getter

func (TaobaoXhotelDataServiceHotelServiceindexAPIRequest) GetReportEndDate

ReportEndDate Getter

func (TaobaoXhotelDataServiceHotelServiceindexAPIRequest) GetReportStartDate

ReportStartDate Getter

func (TaobaoXhotelDataServiceHotelServiceindexAPIRequest) GetStartRow

StartRow Getter

func (TaobaoXhotelDataServiceHotelServiceindexAPIRequest) GetSupplier

Supplier Getter

func (TaobaoXhotelDataServiceHotelServiceindexAPIRequest) GetVendor

Vendor Getter

func (*TaobaoXhotelDataServiceHotelServiceindexAPIRequest) SetHid

Hid Setter 酒店id

func (*TaobaoXhotelDataServiceHotelServiceindexAPIRequest) SetPageSize

PageSize Setter 10

func (*TaobaoXhotelDataServiceHotelServiceindexAPIRequest) SetReportEndDate

func (r *TaobaoXhotelDataServiceHotelServiceindexAPIRequest) SetReportEndDate(_reportEndDate string) error

ReportEndDate Setter 查询时间段结束

func (*TaobaoXhotelDataServiceHotelServiceindexAPIRequest) SetReportStartDate

func (r *TaobaoXhotelDataServiceHotelServiceindexAPIRequest) SetReportStartDate(_reportStartDate string) error

ReportStartDate Setter 查询时间段开始

func (*TaobaoXhotelDataServiceHotelServiceindexAPIRequest) SetStartRow

StartRow Setter 1

func (*TaobaoXhotelDataServiceHotelServiceindexAPIRequest) SetSupplier

Supplier Setter 供应商名称

func (*TaobaoXhotelDataServiceHotelServiceindexAPIRequest) SetVendor

Vendor Setter 渠道商名称

type TaobaoXhotelDataServiceHotelServiceindexAPIResponse

type TaobaoXhotelDataServiceHotelServiceindexAPIResponse struct {
	model.CommonResponse
	TaobaoXhotelDataServiceHotelServiceindexAPIResponseModel
}

酒店服务指数 API返回值 taobao.xhotel.data.service.hotel.serviceindex

酒店服务指数

type TaobaoXhotelDataServiceHotelServiceindexAPIResponseModel

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

酒店服务指数 成功返回结果

type TaobaoXhotelDataServiceHotelServiceindexResultSet

type TaobaoXhotelDataServiceHotelServiceindexResultSet struct {
	// firstResult
	FirstResult *TopAdsHtlDataQueryResult `json:"first_result,omitempty" xml:"first_result,omitempty"`
	// errorMsg
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
	// errorCode
	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// success
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

TaobaoXhotelDataServiceHotelServiceindexResultSet

type TaobaoXhotelDataServiceOrderDetailAPIRequest

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

服务订单详情 API请求 taobao.xhotel.data.service.order.detail

服务订单详情top接口构建

func NewTaobaoXhotelDataServiceOrderDetailRequest

func NewTaobaoXhotelDataServiceOrderDetailRequest() *TaobaoXhotelDataServiceOrderDetailAPIRequest

初始化TaobaoXhotelDataServiceOrderDetailAPIRequest对象

func (TaobaoXhotelDataServiceOrderDetailAPIRequest) GetApiMethodName

IRequest interface 方法, 获取Api method

func (TaobaoXhotelDataServiceOrderDetailAPIRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (TaobaoXhotelDataServiceOrderDetailAPIRequest) GetEndDate

EndDate Getter

func (TaobaoXhotelDataServiceOrderDetailAPIRequest) GetHid

Hid Getter

func (TaobaoXhotelDataServiceOrderDetailAPIRequest) GetIsCallNoOrder

IsCallNoOrder Getter

func (TaobaoXhotelDataServiceOrderDetailAPIRequest) GetIsNoRoomCompen

IsNoRoomCompen Getter

func (TaobaoXhotelDataServiceOrderDetailAPIRequest) GetIsSellerDeny

IsSellerDeny Getter

func (TaobaoXhotelDataServiceOrderDetailAPIRequest) GetIsSellerRefund

IsSellerRefund Getter

func (TaobaoXhotelDataServiceOrderDetailAPIRequest) GetIsSpecTimeOrder

func (r TaobaoXhotelDataServiceOrderDetailAPIRequest) GetIsSpecTimeOrder() int64

IsSpecTimeOrder Getter

func (TaobaoXhotelDataServiceOrderDetailAPIRequest) GetPageSize

PageSize Getter

func (TaobaoXhotelDataServiceOrderDetailAPIRequest) GetStartDate

StartDate Getter

func (TaobaoXhotelDataServiceOrderDetailAPIRequest) GetStartRow

StartRow Getter

func (TaobaoXhotelDataServiceOrderDetailAPIRequest) GetSupplier

Supplier Getter

func (TaobaoXhotelDataServiceOrderDetailAPIRequest) GetVendor

Vendor Getter

func (*TaobaoXhotelDataServiceOrderDetailAPIRequest) SetEndDate

EndDate Setter 查询结束时间

func (*TaobaoXhotelDataServiceOrderDetailAPIRequest) SetHid

Hid Setter 酒店id

func (*TaobaoXhotelDataServiceOrderDetailAPIRequest) SetIsCallNoOrder

func (r *TaobaoXhotelDataServiceOrderDetailAPIRequest) SetIsCallNoOrder(_isCallNoOrder int64) error

IsCallNoOrder Setter 是否查无订单 1:是 0:否

func (*TaobaoXhotelDataServiceOrderDetailAPIRequest) SetIsNoRoomCompen

func (r *TaobaoXhotelDataServiceOrderDetailAPIRequest) SetIsNoRoomCompen(_isNoRoomCompen int64) error

IsNoRoomCompen Setter 是否到店无房 1:是

func (*TaobaoXhotelDataServiceOrderDetailAPIRequest) SetIsSellerDeny

func (r *TaobaoXhotelDataServiceOrderDetailAPIRequest) SetIsSellerDeny(_isSellerDeny int64) error

IsSellerDeny Setter 是否拒单 1:是 0:否

func (*TaobaoXhotelDataServiceOrderDetailAPIRequest) SetIsSellerRefund

func (r *TaobaoXhotelDataServiceOrderDetailAPIRequest) SetIsSellerRefund(_isSellerRefund int64) error

IsSellerRefund Setter 是否卖家原因退款 1:是 0:否

func (*TaobaoXhotelDataServiceOrderDetailAPIRequest) SetIsSpecTimeOrder

func (r *TaobaoXhotelDataServiceOrderDetailAPIRequest) SetIsSpecTimeOrder(_isSpecTimeOrder int64) error

IsSpecTimeOrder Setter 是否特殊时段订单 1:是 0:否

func (*TaobaoXhotelDataServiceOrderDetailAPIRequest) SetPageSize

func (r *TaobaoXhotelDataServiceOrderDetailAPIRequest) SetPageSize(_pageSize int64) error

PageSize Setter 分页大小

func (*TaobaoXhotelDataServiceOrderDetailAPIRequest) SetStartDate

func (r *TaobaoXhotelDataServiceOrderDetailAPIRequest) SetStartDate(_startDate string) error

StartDate Setter 查询开始日期

func (*TaobaoXhotelDataServiceOrderDetailAPIRequest) SetStartRow

func (r *TaobaoXhotelDataServiceOrderDetailAPIRequest) SetStartRow(_startRow int64) error

StartRow Setter 分页参数

func (*TaobaoXhotelDataServiceOrderDetailAPIRequest) SetSupplier

func (r *TaobaoXhotelDataServiceOrderDetailAPIRequest) SetSupplier(_supplier string) error

Supplier Setter 供应商名称

func (*TaobaoXhotelDataServiceOrderDetailAPIRequest) SetVendor

Vendor Setter 渠道商名称

type TaobaoXhotelDataServiceOrderDetailAPIResponse

type TaobaoXhotelDataServiceOrderDetailAPIResponse struct {
	model.CommonResponse
	TaobaoXhotelDataServiceOrderDetailAPIResponseModel
}

服务订单详情 API返回值 taobao.xhotel.data.service.order.detail

服务订单详情top接口构建

type TaobaoXhotelDataServiceOrderDetailAPIResponseModel

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

服务订单详情 成功返回结果

type TaobaoXhotelDataServiceOrderDetailResultSet

type TaobaoXhotelDataServiceOrderDetailResultSet struct {
	// firstResult
	FirstResult *TopAdsTripSvcQueryResult `json:"first_result,omitempty" xml:"first_result,omitempty"`
	// errorCode
	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// errorMsg
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
}

TaobaoXhotelDataServiceOrderDetailResultSet

type TaobaoXhotelDataServiceSellerServiceindexAPIRequest

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

卖家服务指数查询 API请求 taobao.xhotel.data.service.seller.serviceindex

卖家服务指数查询

func NewTaobaoXhotelDataServiceSellerServiceindexRequest

func NewTaobaoXhotelDataServiceSellerServiceindexRequest() *TaobaoXhotelDataServiceSellerServiceindexAPIRequest

初始化TaobaoXhotelDataServiceSellerServiceindexAPIRequest对象

func (TaobaoXhotelDataServiceSellerServiceindexAPIRequest) GetApiMethodName

IRequest interface 方法, 获取Api method

func (TaobaoXhotelDataServiceSellerServiceindexAPIRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (TaobaoXhotelDataServiceSellerServiceindexAPIRequest) GetPageSize

PageSize Getter

func (TaobaoXhotelDataServiceSellerServiceindexAPIRequest) GetReportEndDate

ReportEndDate Getter

func (TaobaoXhotelDataServiceSellerServiceindexAPIRequest) GetReportStartDate

ReportStartDate Getter

func (TaobaoXhotelDataServiceSellerServiceindexAPIRequest) GetStartRow

StartRow Getter

func (TaobaoXhotelDataServiceSellerServiceindexAPIRequest) GetVendor

Vendor Getter

func (*TaobaoXhotelDataServiceSellerServiceindexAPIRequest) SetPageSize

PageSize Setter 分页参数

func (*TaobaoXhotelDataServiceSellerServiceindexAPIRequest) SetReportEndDate

func (r *TaobaoXhotelDataServiceSellerServiceindexAPIRequest) SetReportEndDate(_reportEndDate string) error

ReportEndDate Setter 查询截止日期

func (*TaobaoXhotelDataServiceSellerServiceindexAPIRequest) SetReportStartDate

func (r *TaobaoXhotelDataServiceSellerServiceindexAPIRequest) SetReportStartDate(_reportStartDate string) error

ReportStartDate Setter 查询开始日期

func (*TaobaoXhotelDataServiceSellerServiceindexAPIRequest) SetStartRow

StartRow Setter 分页参数

func (*TaobaoXhotelDataServiceSellerServiceindexAPIRequest) SetVendor

Vendor Setter 渠道商名称

type TaobaoXhotelDataServiceSellerServiceindexAPIResponse

type TaobaoXhotelDataServiceSellerServiceindexAPIResponse struct {
	model.CommonResponse
	TaobaoXhotelDataServiceSellerServiceindexAPIResponseModel
}

卖家服务指数查询 API返回值 taobao.xhotel.data.service.seller.serviceindex

卖家服务指数查询

type TaobaoXhotelDataServiceSellerServiceindexAPIResponseModel

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

卖家服务指数查询 成功返回结果

type TaobaoXhotelDataServiceSellerServiceindexResultSet

type TaobaoXhotelDataServiceSellerServiceindexResultSet struct {
	// firstResult
	FirstResult *TopAdsSlrQueryResult `json:"first_result,omitempty" xml:"first_result,omitempty"`
	// 错误信息
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
	// 是否成功
	Success string `json:"success,omitempty" xml:"success,omitempty"`
	// 错误码
	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
}

TaobaoXhotelDataServiceSellerServiceindexResultSet

type TaobaoXhotelOrderHotelsignQueryAPIRequest

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

获取直连酒店(客栈)签约上线进度信息 API请求 taobao.xhotel.order.hotelsign.query

获取直连酒店(客栈)签约上线进度信息

func NewTaobaoXhotelOrderHotelsignQueryRequest

func NewTaobaoXhotelOrderHotelsignQueryRequest() *TaobaoXhotelOrderHotelsignQueryAPIRequest

初始化TaobaoXhotelOrderHotelsignQueryAPIRequest对象

func (TaobaoXhotelOrderHotelsignQueryAPIRequest) GetApiMethodName

IRequest interface 方法, 获取Api method

func (TaobaoXhotelOrderHotelsignQueryAPIRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (TaobaoXhotelOrderHotelsignQueryAPIRequest) GetHotelCode

HotelCode Getter

func (TaobaoXhotelOrderHotelsignQueryAPIRequest) GetOutUuid

OutUuid Getter

func (TaobaoXhotelOrderHotelsignQueryAPIRequest) GetPageNo

PageNo Getter

func (TaobaoXhotelOrderHotelsignQueryAPIRequest) GetType

Type Getter

func (TaobaoXhotelOrderHotelsignQueryAPIRequest) GetVendor

Vendor Getter

func (*TaobaoXhotelOrderHotelsignQueryAPIRequest) SetHotelCode

func (r *TaobaoXhotelOrderHotelsignQueryAPIRequest) SetHotelCode(_hotelCode string) error

HotelCode Setter 商家酒店编码

func (*TaobaoXhotelOrderHotelsignQueryAPIRequest) SetOutUuid

func (r *TaobaoXhotelOrderHotelsignQueryAPIRequest) SetOutUuid(_outUuid string) error

OutUuid Setter 请求流水

func (*TaobaoXhotelOrderHotelsignQueryAPIRequest) SetPageNo

PageNo Setter 页码

func (*TaobaoXhotelOrderHotelsignQueryAPIRequest) SetType

Type Setter 1

func (*TaobaoXhotelOrderHotelsignQueryAPIRequest) SetVendor

Vendor Setter 商家vendor

type TaobaoXhotelOrderHotelsignQueryAPIResponse

type TaobaoXhotelOrderHotelsignQueryAPIResponse struct {
	model.CommonResponse
	TaobaoXhotelOrderHotelsignQueryAPIResponseModel
}

获取直连酒店(客栈)签约上线进度信息 API返回值 taobao.xhotel.order.hotelsign.query

获取直连酒店(客栈)签约上线进度信息

type TaobaoXhotelOrderHotelsignQueryAPIResponseModel

type TaobaoXhotelOrderHotelsignQueryAPIResponseModel struct {
	XMLName xml.Name `xml:"xhotel_order_hotelsign_query_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// outUuid
	OutUuid string `json:"out_uuid,omitempty" xml:"out_uuid,omitempty"`
	// hotelSignInfo,当入参中包含hotelcode和vendor的时候,返回该对象
	HotelSignInfo *DchotelSignDo `json:"hotel_sign_info,omitempty" xml:"hotel_sign_info,omitempty"`
	// dsNhotelInfoDOList,当入参不包含hotelcode的时候,只有vendor的时候返回该对象
	DsNhotelInfoDOList []DsNhotelInfoDo `json:"ds_nhotel_info_d_o_list,omitempty" xml:"ds_nhotel_info_d_o_list>ds_nhotel_info_do,omitempty"`
}

获取直连酒店(客栈)签约上线进度信息 成功返回结果

type TaobaoXhotelOrderOfficialQualificationGetAPIRequest

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

官网信用住用户资质校验 API请求 taobao.xhotel.order.official.qualification.get

官网信用住在下单前对用户进行资质校验,资质校验通过才能进行信用支付

func NewTaobaoXhotelOrderOfficialQualificationGetRequest

func NewTaobaoXhotelOrderOfficialQualificationGetRequest() *TaobaoXhotelOrderOfficialQualificationGetAPIRequest

初始化TaobaoXhotelOrderOfficialQualificationGetAPIRequest对象

func (TaobaoXhotelOrderOfficialQualificationGetAPIRequest) GetAlipayAccount

AlipayAccount Getter

func (TaobaoXhotelOrderOfficialQualificationGetAPIRequest) GetApiMethodName

IRequest interface 方法, 获取Api method

func (TaobaoXhotelOrderOfficialQualificationGetAPIRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (TaobaoXhotelOrderOfficialQualificationGetAPIRequest) GetCheckIn

CheckIn Getter

func (TaobaoXhotelOrderOfficialQualificationGetAPIRequest) GetCheckOut

CheckOut Getter

func (TaobaoXhotelOrderOfficialQualificationGetAPIRequest) GetDailyPriceInfo

DailyPriceInfo Getter

func (TaobaoXhotelOrderOfficialQualificationGetAPIRequest) GetEncryptType

EncryptType Getter

func (TaobaoXhotelOrderOfficialQualificationGetAPIRequest) GetExtendAttrs

ExtendAttrs Getter

func (TaobaoXhotelOrderOfficialQualificationGetAPIRequest) GetGuestName

GuestName Getter

func (TaobaoXhotelOrderOfficialQualificationGetAPIRequest) GetHotelCode

HotelCode Getter

func (TaobaoXhotelOrderOfficialQualificationGetAPIRequest) GetIdNumber

IdNumber Getter

func (TaobaoXhotelOrderOfficialQualificationGetAPIRequest) GetIdType

IdType Getter

func (TaobaoXhotelOrderOfficialQualificationGetAPIRequest) GetMobileNo

MobileNo Getter

func (TaobaoXhotelOrderOfficialQualificationGetAPIRequest) GetNotifyUrl

NotifyUrl Getter

func (TaobaoXhotelOrderOfficialQualificationGetAPIRequest) GetOutMemberAccount

OutMemberAccount Getter

func (TaobaoXhotelOrderOfficialQualificationGetAPIRequest) GetOutOid

OutOid Getter

func (TaobaoXhotelOrderOfficialQualificationGetAPIRequest) GetOutUUID

OutUUID Getter

func (TaobaoXhotelOrderOfficialQualificationGetAPIRequest) GetReturnUrl

ReturnUrl Getter

func (TaobaoXhotelOrderOfficialQualificationGetAPIRequest) GetRoomNum

RoomNum Getter

func (TaobaoXhotelOrderOfficialQualificationGetAPIRequest) GetTotalFee

TotalFee Getter

func (TaobaoXhotelOrderOfficialQualificationGetAPIRequest) GetVendor

Vendor Getter

func (*TaobaoXhotelOrderOfficialQualificationGetAPIRequest) SetAlipayAccount

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

AlipayAccount Setter 用户支付宝唯一识别码(可选)

func (*TaobaoXhotelOrderOfficialQualificationGetAPIRequest) SetCheckIn

CheckIn Setter 客人入住日期

func (*TaobaoXhotelOrderOfficialQualificationGetAPIRequest) SetCheckOut

CheckOut Setter 客人离店日期, 最多支持9间夜

func (*TaobaoXhotelOrderOfficialQualificationGetAPIRequest) SetDailyPriceInfo

func (r *TaobaoXhotelOrderOfficialQualificationGetAPIRequest) SetDailyPriceInfo(_dailyPriceInfo string) error

DailyPriceInfo Setter 每日房价,json格式 ,如果是多间房,则是每日多间房总房价(可选) * eg:{"day":"2015-08-12","price":48800}, {"day":"2015-08-13","price":48800}

func (*TaobaoXhotelOrderOfficialQualificationGetAPIRequest) SetEncryptType

func (r *TaobaoXhotelOrderOfficialQualificationGetAPIRequest) SetEncryptType(_encryptType int64) error

EncryptType Setter 加密方式, 默认0: 不加密, 信息会通过淘宝开放平台传输, 阿里旅行可以获取到具体信息; * 目前只支持不加密

func (*TaobaoXhotelOrderOfficialQualificationGetAPIRequest) SetExtendAttrs

func (r *TaobaoXhotelOrderOfficialQualificationGetAPIRequest) SetExtendAttrs(_extendAttrs string) error

ExtendAttrs Setter 扩展字段,json串,用户后续的营销、统计、定制等需求,目前已有key列表: is_new_user:是否是卖家新用户,1-是,0或者key为null,表示不是 is_first_stay:是否是卖家首住,1-是,0或者key为null,表示不是 (已有列表必须传递)

func (*TaobaoXhotelOrderOfficialQualificationGetAPIRequest) SetGuestName

GuestName Setter 入住人姓名(必选)

func (*TaobaoXhotelOrderOfficialQualificationGetAPIRequest) SetHotelCode

HotelCode Setter 酒店外部编码

func (*TaobaoXhotelOrderOfficialQualificationGetAPIRequest) SetIdNumber

IdNumber Setter 身份证号,必选

func (*TaobaoXhotelOrderOfficialQualificationGetAPIRequest) SetIdType

IdType Setter 证件类型, 默认0:身份证; 1: 护照; 2:警官证; 3:士兵证; 4: 回乡证。目前只支持身份证

func (*TaobaoXhotelOrderOfficialQualificationGetAPIRequest) SetMobileNo

MobileNo Setter 用户手机号(可选)

func (*TaobaoXhotelOrderOfficialQualificationGetAPIRequest) SetNotifyUrl

NotifyUrl Setter 卖家接收阿里旅行订单状态变更的服务地址(需要实现阿里旅行提供的服务通知规范)

func (*TaobaoXhotelOrderOfficialQualificationGetAPIRequest) SetOutMemberAccount

func (r *TaobaoXhotelOrderOfficialQualificationGetAPIRequest) SetOutMemberAccount(_outMemberAccount string) error

OutMemberAccount Setter 外部会员账号(必选)

func (*TaobaoXhotelOrderOfficialQualificationGetAPIRequest) SetOutOid

OutOid Setter 外部订单号(必选),阿里旅行会根据此值进行幂等性校验

func (*TaobaoXhotelOrderOfficialQualificationGetAPIRequest) SetOutUUID

OutUUID Setter 外部请求序列表号\流水号,单次请求的唯一标识(必须)

func (*TaobaoXhotelOrderOfficialQualificationGetAPIRequest) SetReturnUrl

ReturnUrl Setter 阿里旅行支付(下单)结束后跳转卖家的页面地址(必须)

func (*TaobaoXhotelOrderOfficialQualificationGetAPIRequest) SetRoomNum

RoomNum Setter 房间数

func (*TaobaoXhotelOrderOfficialQualificationGetAPIRequest) SetTotalFee

TotalFee Setter 总的收费金额,单位为分(必须)

func (*TaobaoXhotelOrderOfficialQualificationGetAPIRequest) SetVendor

Vendor Setter 商家在淘宝给分配的渠道名(建议填充较好)

type TaobaoXhotelOrderOfficialQualificationGetAPIResponse

type TaobaoXhotelOrderOfficialQualificationGetAPIResponse struct {
	model.CommonResponse
	TaobaoXhotelOrderOfficialQualificationGetAPIResponseModel
}

官网信用住用户资质校验 API返回值 taobao.xhotel.order.official.qualification.get

官网信用住在下单前对用户进行资质校验,资质校验通过才能进行信用支付

type TaobaoXhotelOrderOfficialQualificationGetAPIResponseModel

type TaobaoXhotelOrderOfficialQualificationGetAPIResponseModel struct {
	XMLName xml.Name `xml:"xhotel_order_official_qualification_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 阿里旅行中间调用URL
	TransferUrl string `json:"transfer_url,omitempty" xml:"transfer_url,omitempty"`
	// 无资格原因提示信息
	Reason string `json:"reason,omitempty" xml:"reason,omitempty"`
	// 资质校验是否成功,有资格返回true, 无资格返回false
	MatchCondition bool `json:"match_condition,omitempty" xml:"match_condition,omitempty"`
	// 入参信息回传, 用于校验的证件号码
	IdNumber string `json:"id_number,omitempty" xml:"id_number,omitempty"`
	// 入参信息回传,用于校验的外部会员账号
	OutMemeberAccount string `json:"out_memeber_account,omitempty" xml:"out_memeber_account,omitempty"`
	// * 外部请求序列表号回传\流水号(如果外部订单号唯一,建议外部订单号,这样容易核对问题),用于区别一次请求和排查问题,阿里旅行不做任何格式校验(必须)
	OutUUID string `json:"out_u_u_i_d,omitempty" xml:"out_u_u_i_d,omitempty"`
	// 扩展字段,json串,后续留用
	ExtendAttrs string `json:"extend_attrs,omitempty" xml:"extend_attrs,omitempty"`
}

官网信用住用户资质校验 成功返回结果

type TaobaoXhotelOrderOfflineSettleCancelAPIRequest

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

线下信用住取消结账专用接口 API请求 taobao.xhotel.order.offline.settle.cancel

线下信用住取消结账专用接口

func NewTaobaoXhotelOrderOfflineSettleCancelRequest

func NewTaobaoXhotelOrderOfflineSettleCancelRequest() *TaobaoXhotelOrderOfflineSettleCancelAPIRequest

初始化TaobaoXhotelOrderOfflineSettleCancelAPIRequest对象

func (TaobaoXhotelOrderOfflineSettleCancelAPIRequest) GetApiMethodName

IRequest interface 方法, 获取Api method

func (TaobaoXhotelOrderOfflineSettleCancelAPIRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (TaobaoXhotelOrderOfflineSettleCancelAPIRequest) GetNotifyUrl

NotifyUrl Getter

func (TaobaoXhotelOrderOfflineSettleCancelAPIRequest) GetOutId

OutId Getter

func (TaobaoXhotelOrderOfflineSettleCancelAPIRequest) GetOutUuid

OutUuid Getter

func (TaobaoXhotelOrderOfflineSettleCancelAPIRequest) GetReason

Reason Getter

func (TaobaoXhotelOrderOfflineSettleCancelAPIRequest) GetTid

Tid Getter

func (*TaobaoXhotelOrderOfflineSettleCancelAPIRequest) SetNotifyUrl

func (r *TaobaoXhotelOrderOfflineSettleCancelAPIRequest) SetNotifyUrl(_notifyUrl string) error

NotifyUrl Setter 暂时无意义,无需传入

func (*TaobaoXhotelOrderOfflineSettleCancelAPIRequest) SetOutId

OutId Setter 外部订单号,和tid二选一必填(建议都写入)

func (*TaobaoXhotelOrderOfflineSettleCancelAPIRequest) SetOutUuid

OutUuid Setter 请求流水号

func (*TaobaoXhotelOrderOfflineSettleCancelAPIRequest) SetReason

Reason Setter 取消结账的原因

func (*TaobaoXhotelOrderOfflineSettleCancelAPIRequest) SetTid

Tid Setter 阿里旅行订单号,淘宝订单号或外部订单号二选一必填

type TaobaoXhotelOrderOfflineSettleCancelAPIResponse

type TaobaoXhotelOrderOfflineSettleCancelAPIResponse struct {
	model.CommonResponse
	TaobaoXhotelOrderOfflineSettleCancelAPIResponseModel
}

线下信用住取消结账专用接口 API返回值 taobao.xhotel.order.offline.settle.cancel

线下信用住取消结账专用接口

type TaobaoXhotelOrderOfflineSettleCancelAPIResponseModel

type TaobaoXhotelOrderOfflineSettleCancelAPIResponseModel struct {
	XMLName xml.Name `xml:"xhotel_order_offline_settle_cancel_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回信息
	Result string `json:"result,omitempty" xml:"result,omitempty"`
}

线下信用住取消结账专用接口 成功返回结果

type TopAdsHtlDataQueryResult

type TopAdsHtlDataQueryResult struct {
	// 数量
	Count int64 `json:"count,omitempty" xml:"count,omitempty"`
	// topAdsHtlServiceDataList
	TopAdsHtlServiceDataList []Topadshtlservicedatalist `json:"top_ads_htl_service_data_list,omitempty" xml:"top_ads_htl_service_data_list>topadshtlservicedatalist,omitempty"`
}

TopAdsHtlDataQueryResult

type TopAdsSlrQueryResult

type TopAdsSlrQueryResult struct {
	// 数据记录条数
	Count int64 `json:"count,omitempty" xml:"count,omitempty"`
	// adsSlrServiceDataList
	AdsSlrServiceDataList []Adsslrservicedatalist `json:"ads_slr_service_data_list,omitempty" xml:"ads_slr_service_data_list>adsslrservicedatalist,omitempty"`
}

TopAdsSlrQueryResult

type TopAdsTripSvcQueryResult

type TopAdsTripSvcQueryResult struct {
	// topAdsHtlServiceDataList
	TopAdsHtlServiceDataList []Topadshtlservicedatalist `json:"top_ads_htl_service_data_list,omitempty" xml:"top_ads_htl_service_data_list>topadshtlservicedatalist,omitempty"`
	// count
	Count int64 `json:"count,omitempty" xml:"count,omitempty"`
}

TopAdsTripSvcQueryResult

type Topadshtlservicedatalist

type Topadshtlservicedatalist struct {
	// 酒店id
	Hid int64 `json:"hid,omitempty" xml:"hid,omitempty"`
	// 渠道名称
	Vendor string `json:"vendor,omitempty" xml:"vendor,omitempty"`
	// 电话
	Tel string `json:"tel,omitempty" xml:"tel,omitempty"`
	// 有效订单数
	SalesCountInCycle int64 `json:"sales_count_in_cycle,omitempty" xml:"sales_count_in_cycle,omitempty"`
	// 预定成功率
	BookingSuccRateStr string `json:"booking_succ_rate_str,omitempty" xml:"booking_succ_rate_str,omitempty"`
	// 关闭订单数
	ClosedCountInCycle int64 `json:"closed_count_in_cycle,omitempty" xml:"closed_count_in_cycle,omitempty"`
	// 查无订单数
	NoOrdCntInCycle int64 `json:"no_ord_cnt_in_cycle,omitempty" xml:"no_ord_cnt_in_cycle,omitempty"`
	// 酒店名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 统计时间
	ReportDate string `json:"report_date,omitempty" xml:"report_date,omitempty"`
	// 到店无房数量
	NoRoomCntInCycle int64 `json:"no_room_cnt_in_cycle,omitempty" xml:"no_room_cnt_in_cycle,omitempty"`
	// 酒店外部编码
	OuterId string `json:"outer_id,omitempty" xml:"outer_id,omitempty"`
	// 是否查无订单 N:否  Y:是
	IsCallNoOrder string `json:"is_call_no_order,omitempty" xml:"is_call_no_order,omitempty"`
	// 是否特殊时段订单 N:否  Y:是
	IsSpecTimeOrder string `json:"is_spec_time_order,omitempty" xml:"is_spec_time_order,omitempty"`
	// 入住时间
	CheckinDate string `json:"checkin_date,omitempty" xml:"checkin_date,omitempty"`
	// 是否到店无房订单  1:是
	IsNoRoomCompen string `json:"is_no_room_compen,omitempty" xml:"is_no_room_compen,omitempty"`
	// 酒店名称
	HotelName string `json:"hotel_name,omitempty" xml:"hotel_name,omitempty"`
	// 确认时长
	ConfirmDuration int64 `json:"confirm_duration,omitempty" xml:"confirm_duration,omitempty"`
	// 是否拒单 N:否  Y:是
	IsSellerDeny string `json:"is_seller_deny,omitempty" xml:"is_seller_deny,omitempty"`
	// 离店时间
	CheckoutDate string `json:"checkout_date,omitempty" xml:"checkout_date,omitempty"`
	// 是否卖家原因退款 N:否  Y:是
	IsSellerRefund string `json:"is_seller_refund,omitempty" xml:"is_seller_refund,omitempty"`
	// 供应商名称
	Supplier string `json:"supplier,omitempty" xml:"supplier,omitempty"`
	// 订单id
	Tid int64 `json:"tid,omitempty" xml:"tid,omitempty"`
}

Topadshtlservicedatalist

Jump to

Keyboard shortcuts

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