hotelalliance

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

飞猪酒店签约中心 model

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlitripHotelAllianceHidGetAPIResponse

type AlitripHotelAllianceHidGetAPIResponse struct {
	model.CommonResponse
	AlitripHotelAllianceHidGetResponse
}

获取联盟hid API返回值 alitrip.hotel.alliance.hid.get

获取符合条件的菲住联盟hid,目前支持指定日期上线的菲住联盟hid查询

type AlitripHotelAllianceHidGetRequest

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

获取联盟hid API请求 alitrip.hotel.alliance.hid.get

获取符合条件的菲住联盟hid,目前支持指定日期上线的菲住联盟hid查询

func NewAlitripHotelAllianceHidGetRequest

func NewAlitripHotelAllianceHidGetRequest() *AlitripHotelAllianceHidGetRequest

初始化AlitripHotelAllianceHidGetRequest对象

func (AlitripHotelAllianceHidGetRequest) GetAllianceInfoRequest

func (r AlitripHotelAllianceHidGetRequest) GetAllianceInfoRequest() *AllianceInfoRequest

AllianceInfoRequest Getter

func (AlitripHotelAllianceHidGetRequest) GetApiMethodName

func (r AlitripHotelAllianceHidGetRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (AlitripHotelAllianceHidGetRequest) GetApiParams

func (r AlitripHotelAllianceHidGetRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (*AlitripHotelAllianceHidGetRequest) SetAllianceInfoRequest

func (r *AlitripHotelAllianceHidGetRequest) SetAllianceInfoRequest(allianceInfoRequest *AllianceInfoRequest) error

AllianceInfoRequest Setter 查询入参

type AlitripHotelAllianceHidGetResponse

type AlitripHotelAllianceHidGetResponse struct {
	XMLName xml.Name `xml:"alitrip_hotel_alliance_hid_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回结果
	HmsTopResultSet *HmsTopResultSet `json:"hms_top_result_set,omitempty" xml:"hms_top_result_set,omitempty"`
}

获取联盟hid 成功返回结果

type AlitripHotelAllianceSettleOrderSynAPIResponse

type AlitripHotelAllianceSettleOrderSynAPIResponse struct {
	model.CommonResponse
	AlitripHotelAllianceSettleOrderSynResponse
}

菲住联盟分账成功订单同步 API返回值 alitrip.hotel.alliance.settle.order.syn

用于菲住联盟分账成功订单同步

type AlitripHotelAllianceSettleOrderSynRequest

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

菲住联盟分账成功订单同步 API请求 alitrip.hotel.alliance.settle.order.syn

用于菲住联盟分账成功订单同步

func NewAlitripHotelAllianceSettleOrderSynRequest

func NewAlitripHotelAllianceSettleOrderSynRequest() *AlitripHotelAllianceSettleOrderSynRequest

初始化AlitripHotelAllianceSettleOrderSynRequest对象

func (AlitripHotelAllianceSettleOrderSynRequest) GetApiMethodName

IRequest interface 方法, 获取Api method

func (AlitripHotelAllianceSettleOrderSynRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (AlitripHotelAllianceSettleOrderSynRequest) GetOrderInfo

OrderInfo Getter

func (*AlitripHotelAllianceSettleOrderSynRequest) SetOrderInfo

OrderInfo Setter 订单信息

type AlitripHotelAllianceSettleOrderSynResponse

type AlitripHotelAllianceSettleOrderSynResponse struct {
	XMLName xml.Name `xml:"alitrip_hotel_alliance_settle_order_syn_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回的结果
	HmsTopResultSet *HmsTopResultSet `json:"hms_top_result_set,omitempty" xml:"hms_top_result_set,omitempty"`
}

菲住联盟分账成功订单同步 成功返回结果

type AlitripHotelHmsPartnerInfoGetAPIResponse

type AlitripHotelHmsPartnerInfoGetAPIResponse struct {
	model.CommonResponse
	AlitripHotelHmsPartnerInfoGetResponse
}

获取合作商信息 API返回值 alitrip.hotel.hms.partner.info.get

用于给到未来酒店读取与飞猪酒店合作的合作商信息,开展单体联盟业务

type AlitripHotelHmsPartnerInfoGetRequest

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

获取合作商信息 API请求 alitrip.hotel.hms.partner.info.get

用于给到未来酒店读取与飞猪酒店合作的合作商信息,开展单体联盟业务

func NewAlitripHotelHmsPartnerInfoGetRequest

func NewAlitripHotelHmsPartnerInfoGetRequest() *AlitripHotelHmsPartnerInfoGetRequest

初始化AlitripHotelHmsPartnerInfoGetRequest对象

func (AlitripHotelHmsPartnerInfoGetRequest) GetApiMethodName

func (r AlitripHotelHmsPartnerInfoGetRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (AlitripHotelHmsPartnerInfoGetRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (AlitripHotelHmsPartnerInfoGetRequest) GetQueryPartnerInfoParam

func (r AlitripHotelHmsPartnerInfoGetRequest) GetQueryPartnerInfoParam() *QueryPartnerInfoParam

QueryPartnerInfoParam Getter

func (*AlitripHotelHmsPartnerInfoGetRequest) SetQueryPartnerInfoParam

func (r *AlitripHotelHmsPartnerInfoGetRequest) SetQueryPartnerInfoParam(queryPartnerInfoParam *QueryPartnerInfoParam) error

QueryPartnerInfoParam Setter 查询合作商信息query参数

type AlitripHotelHmsPartnerInfoGetResponse

type AlitripHotelHmsPartnerInfoGetResponse struct {
	XMLName xml.Name `xml:"alitrip_hotel_hms_partner_info_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回Result
	HmsTopResultSet *HmsTopResultSet `json:"hms_top_result_set,omitempty" xml:"hms_top_result_set,omitempty"`
}

获取合作商信息 成功返回结果

type AlitripHotelSingleInfoGetAPIResponse

type AlitripHotelSingleInfoGetAPIResponse struct {
	model.CommonResponse
	AlitripHotelSingleInfoGetResponse
}

获取单体酒店信息 API返回值 alitrip.hotel.single.info.get

用于给到未来酒店读取与飞猪酒店合作的单体酒店信息,开展单体联盟业务

type AlitripHotelSingleInfoGetRequest

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

获取单体酒店信息 API请求 alitrip.hotel.single.info.get

用于给到未来酒店读取与飞猪酒店合作的单体酒店信息,开展单体联盟业务

func NewAlitripHotelSingleInfoGetRequest

func NewAlitripHotelSingleInfoGetRequest() *AlitripHotelSingleInfoGetRequest

初始化AlitripHotelSingleInfoGetRequest对象

func (AlitripHotelSingleInfoGetRequest) GetApiMethodName

func (r AlitripHotelSingleInfoGetRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (AlitripHotelSingleInfoGetRequest) GetApiParams

func (r AlitripHotelSingleInfoGetRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (AlitripHotelSingleInfoGetRequest) GetQueryHotelInfoParam

func (r AlitripHotelSingleInfoGetRequest) GetQueryHotelInfoParam() *QueryHotelInfoParam

QueryHotelInfoParam Getter

func (*AlitripHotelSingleInfoGetRequest) SetQueryHotelInfoParam

func (r *AlitripHotelSingleInfoGetRequest) SetQueryHotelInfoParam(queryHotelInfoParam *QueryHotelInfoParam) error

QueryHotelInfoParam Setter 查询酒店信息query参数

type AlitripHotelSingleInfoGetResponse

type AlitripHotelSingleInfoGetResponse struct {
	XMLName xml.Name `xml:"alitrip_hotel_single_info_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回Result
	HmsTopResultSet *HmsTopResultSet `json:"hms_top_result_set,omitempty" xml:"hms_top_result_set,omitempty"`
}

获取单体酒店信息 成功返回结果

type AllianceHotelInfo

type AllianceHotelInfo struct {
	// 邀约人
	Inviter string `json:"inviter,omitempty" xml:"inviter,omitempty"`
	// 酒店联系人电话
	ContactPhone string `json:"contact_phone,omitempty" xml:"contact_phone,omitempty"`
	// 卖家酒店id
	Hid int64 `json:"hid,omitempty" xml:"hid,omitempty"`
	// 合同签署开始时间
	ContractStart string `json:"contract_start,omitempty" xml:"contract_start,omitempty"`
	// 合作商Id
	PartnerId int64 `json:"partner_id,omitempty" xml:"partner_id,omitempty"`
	// 标准酒店Id
	Shid int64 `json:"shid,omitempty" xml:"shid,omitempty"`
	// 底价比率值
	Fee string `json:"fee,omitempty" xml:"fee,omitempty"`
	// 结算账号户名
	AccountName string `json:"account_name,omitempty" xml:"account_name,omitempty"`
	// 酒店名称
	HotelName string `json:"hotel_name,omitempty" xml:"hotel_name,omitempty"`
	// 开户行名称
	AccountOpeningBank string `json:"account_opening_bank,omitempty" xml:"account_opening_bank,omitempty"`
	// 酒店联系人姓名
	ContactName string `json:"contact_name,omitempty" xml:"contact_name,omitempty"`
	// 费率类型
	FeeType int64 `json:"fee_type,omitempty" xml:"fee_type,omitempty"`
	// 结算类型0:个人支付宝 1:企业支付宝 3:对公银行卡
	PayType int64 `json:"pay_type,omitempty" xml:"pay_type,omitempty"`
	// 支付宝账号
	AlipayAccount string `json:"alipay_account,omitempty" xml:"alipay_account,omitempty"`
	// 是否生效 0:失效 1:生效
	IsValid int64 `json:"is_valid,omitempty" xml:"is_valid,omitempty"`
	// 单体联盟新生成的卖家酒店Id
	Ahid int64 `json:"ahid,omitempty" xml:"ahid,omitempty"`
	// 银行卡账号
	BankAccount string `json:"bank_account,omitempty" xml:"bank_account,omitempty"`
	// 合同结束时间
	ContractEnd string `json:"contract_end,omitempty" xml:"contract_end,omitempty"`
	// 酒店联系邮箱
	ContactEmail string `json:"contact_email,omitempty" xml:"contact_email,omitempty"`
	// 银行省份
	BankProvince string `json:"bank_province,omitempty" xml:"bank_province,omitempty"`
	// 银行城市
	BankCity string `json:"bank_city,omitempty" xml:"bank_city,omitempty"`
	// 酒店签约主账号
	MainAccount string `json:"main_account,omitempty" xml:"main_account,omitempty"`
	// 开户银行
	AccountBank string `json:"account_bank,omitempty" xml:"account_bank,omitempty"`
	// 合同号
	TplId int64 `json:"tpl_id,omitempty" xml:"tpl_id,omitempty"`
	// 卖家Id
	SellerId int64 `json:"seller_id,omitempty" xml:"seller_id,omitempty"`
	// 是否菲住酒店有效
	IsNewValid int64 `json:"is_new_valid,omitempty" xml:"is_new_valid,omitempty"`
	// 新费率
	NewFee string `json:"new_fee,omitempty" xml:"new_fee,omitempty"`
	// 新费率类型
	NewFeeType int64 `json:"new_fee_type,omitempty" xml:"new_fee_type,omitempty"`
	// 是否迁移成功
	IsTransfer int64 `json:"is_transfer,omitempty" xml:"is_transfer,omitempty"`
	// 主合同id
	MainTplId int64 `json:"main_tpl_id,omitempty" xml:"main_tpl_id,omitempty"`
	// 营业执照公司名称
	CompanyName string `json:"company_name,omitempty" xml:"company_name,omitempty"`
	// 支付宝帐号ID
	AlipayAccountId string `json:"alipay_account_id,omitempty" xml:"alipay_account_id,omitempty"`
}

AllianceHotelInfo

type AllianceInfoRequest

type AllianceInfoRequest struct {
	// 要查询的日期,格式yyyymmdd
	QueryDay string `json:"query_day,omitempty" xml:"query_day,omitempty"`
	// 签约类型-0:融合;1:直签。
	SignType int64 `json:"sign_type,omitempty" xml:"sign_type,omitempty"`
}

AllianceInfoRequest

type AllianceInfoResult

type AllianceInfoResult struct {
	// 菲住hid列表
	AllianceHids []int64 `json:"alliance_hids,omitempty" xml:"alliance_hids>int64,omitempty"`
}

AllianceInfoResult

type AlliancePartnerInfo

type AlliancePartnerInfo struct {
	// 合作商联系人电话
	ContactPhone string `json:"contact_phone,omitempty" xml:"contact_phone,omitempty"`
	// 结算账户名
	AccountName string `json:"account_name,omitempty" xml:"account_name,omitempty"`
	// 合作商联系人姓名
	ContactName string `json:"contact_name,omitempty" xml:"contact_name,omitempty"`
	// 合作商ID
	PartnerId int64 `json:"partner_id,omitempty" xml:"partner_id,omitempty"`
	// 结算类型(目前只有0,企业支付宝)
	PayType int64 `json:"pay_type,omitempty" xml:"pay_type,omitempty"`
	// 结算账号
	AccountNum string `json:"account_num,omitempty" xml:"account_num,omitempty"`
	// 是否生效(0: 失效 1:生效)
	IsValid int64 `json:"is_valid,omitempty" xml:"is_valid,omitempty"`
	// 公司名称
	CompanyName string `json:"company_name,omitempty" xml:"company_name,omitempty"`
	// 公司联系邮箱
	ContactEmail string `json:"contact_email,omitempty" xml:"contact_email,omitempty"`
	// 公司地址
	CompanyAddress string `json:"company_address,omitempty" xml:"company_address,omitempty"`
	// 合作商签约主账号
	MainAccount string `json:"main_account,omitempty" xml:"main_account,omitempty"`
}

AlliancePartnerInfo

type AllianceSettleOrderInfo

type AllianceSettleOrderInfo struct {
	// 卖家昵称
	SellerNick string `json:"seller_nick,omitempty" xml:"seller_nick,omitempty"`
	// 订单渠道来源
	OrderSource string `json:"order_source,omitempty" xml:"order_source,omitempty"`
	// 分账状态
	SettleStatus int64 `json:"settle_status,omitempty" xml:"settle_status,omitempty"`
	// 杂费(单位:分)
	OtherFee int64 `json:"other_fee,omitempty" xml:"other_fee,omitempty"`
	// 分账金额(单位:分)
	SettleAmount int64 `json:"settle_amount,omitempty" xml:"settle_amount,omitempty"`
	// 分账日期
	SettleDate string `json:"settle_date,omitempty" xml:"settle_date,omitempty"`
	// 卖家佣金金额(单位:分)
	SellerCommission int64 `json:"seller_commission,omitempty" xml:"seller_commission,omitempty"`
	// 飞猪订单号
	Tid int64 `json:"tid,omitempty" xml:"tid,omitempty"`
	// 分账拦截金额(单位:分)
	InterceptAmount int64 `json:"intercept_amount,omitempty" xml:"intercept_amount,omitempty"`
	// 分账费率
	SettleRate string `json:"settle_rate,omitempty" xml:"settle_rate,omitempty"`
	// 卖家Id
	SellerId int64 `json:"seller_id,omitempty" xml:"seller_id,omitempty"`
	// 是否底价订单
	BaseMode int64 `json:"base_mode,omitempty" xml:"base_mode,omitempty"`
	// 订单有效间夜
	Nights int64 `json:"nights,omitempty" xml:"nights,omitempty"`
	// 房费(单位:分)
	Payment int64 `json:"payment,omitempty" xml:"payment,omitempty"`
	// 底价金额(单位:分)
	BasePrice int64 `json:"base_price,omitempty" xml:"base_price,omitempty"`
}

AllianceSettleOrderInfo

type HmsTopResultSet

type HmsTopResultSet struct {
	// 返回module
	Result *AllianceInfoResult `json:"result,omitempty" xml:"result,omitempty"`
	// 操作是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
	// 错误code
	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// 错误信息
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
}

HmsTopResultSet

type QueryHotelInfoParam

type QueryHotelInfoParam struct {
	// 飞猪卖家酒店id
	Hid int64 `json:"hid,omitempty" xml:"hid,omitempty"`
	// 单体联盟飞猪卖家酒店id
	Ahid int64 `json:"ahid,omitempty" xml:"ahid,omitempty"`
}

QueryHotelInfoParam

type QueryPartnerInfoParam

type QueryPartnerInfoParam struct {
	// 合作商Id
	HocPartnerId int64 `json:"hoc_partner_id,omitempty" xml:"hoc_partner_id,omitempty"`
}

QueryPartnerInfoParam

Jump to

Keyboard shortcuts

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