Documentation ¶
Overview ¶
Package hotelalliance 包含飞猪酒店签约中心相关结构体
Index ¶
- type AlitripHotelAllianceHidGetAPIRequest
- func (r AlitripHotelAllianceHidGetAPIRequest) GetAllianceInfoRequest() *AllianceInfoRequest
- func (r AlitripHotelAllianceHidGetAPIRequest) GetApiMethodName() string
- func (r AlitripHotelAllianceHidGetAPIRequest) GetApiParams() url.Values
- func (r *AlitripHotelAllianceHidGetAPIRequest) SetAllianceInfoRequest(_allianceInfoRequest *AllianceInfoRequest) error
- type AlitripHotelAllianceHidGetAPIResponse
- type AlitripHotelAllianceHidGetAPIResponseModel
- type AlitripHotelAllianceSettleOrderSynAPIRequest
- func (r AlitripHotelAllianceSettleOrderSynAPIRequest) GetApiMethodName() string
- func (r AlitripHotelAllianceSettleOrderSynAPIRequest) GetApiParams() url.Values
- func (r AlitripHotelAllianceSettleOrderSynAPIRequest) GetOrderInfo() *AllianceSettleOrderInfo
- func (r *AlitripHotelAllianceSettleOrderSynAPIRequest) SetOrderInfo(_orderInfo *AllianceSettleOrderInfo) error
- type AlitripHotelAllianceSettleOrderSynAPIResponse
- type AlitripHotelAllianceSettleOrderSynAPIResponseModel
- type AlitripHotelHmsPartnerInfoGetAPIRequest
- func (r AlitripHotelHmsPartnerInfoGetAPIRequest) GetApiMethodName() string
- func (r AlitripHotelHmsPartnerInfoGetAPIRequest) GetApiParams() url.Values
- func (r AlitripHotelHmsPartnerInfoGetAPIRequest) GetQueryPartnerInfoParam() *QueryPartnerInfoParam
- func (r *AlitripHotelHmsPartnerInfoGetAPIRequest) SetQueryPartnerInfoParam(_queryPartnerInfoParam *QueryPartnerInfoParam) error
- type AlitripHotelHmsPartnerInfoGetAPIResponse
- type AlitripHotelHmsPartnerInfoGetAPIResponseModel
- type AlitripHotelSingleInfoGetAPIRequest
- func (r AlitripHotelSingleInfoGetAPIRequest) GetApiMethodName() string
- func (r AlitripHotelSingleInfoGetAPIRequest) GetApiParams() url.Values
- func (r AlitripHotelSingleInfoGetAPIRequest) GetQueryHotelInfoParam() *QueryHotelInfoParam
- func (r *AlitripHotelSingleInfoGetAPIRequest) SetQueryHotelInfoParam(_queryHotelInfoParam *QueryHotelInfoParam) error
- type AlitripHotelSingleInfoGetAPIResponse
- type AlitripHotelSingleInfoGetAPIResponseModel
- type AllianceHotelInfo
- type AllianceInfoRequest
- type AllianceInfoResult
- type AlliancePartnerInfo
- type AllianceSettleOrderInfo
- type HmsTopResultSet
- type QueryHotelInfoParam
- type QueryPartnerInfoParam
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlitripHotelAllianceHidGetAPIRequest ¶ added in v1.2.0
type AlitripHotelAllianceHidGetAPIRequest struct { model.Params // contains filtered or unexported fields }
AlitripHotelAllianceHidGetAPIRequest 获取联盟hid API请求 alitrip.hotel.alliance.hid.get
获取符合条件的菲住联盟hid,目前支持指定日期上线的菲住联盟hid查询
func NewAlitripHotelAllianceHidGetRequest ¶
func NewAlitripHotelAllianceHidGetRequest() *AlitripHotelAllianceHidGetAPIRequest
NewAlitripHotelAllianceHidGetRequest 初始化AlitripHotelAllianceHidGetAPIRequest对象
func (AlitripHotelAllianceHidGetAPIRequest) GetAllianceInfoRequest ¶ added in v1.2.0
func (r AlitripHotelAllianceHidGetAPIRequest) GetAllianceInfoRequest() *AllianceInfoRequest
GetAllianceInfoRequest AllianceInfoRequest Getter
func (AlitripHotelAllianceHidGetAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r AlitripHotelAllianceHidGetAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AlitripHotelAllianceHidGetAPIRequest) GetApiParams ¶ added in v1.2.0
func (r AlitripHotelAllianceHidGetAPIRequest) GetApiParams() url.Values
GetApiParams IRequest interface 方法, 获取API参数
func (*AlitripHotelAllianceHidGetAPIRequest) SetAllianceInfoRequest ¶ added in v1.2.0
func (r *AlitripHotelAllianceHidGetAPIRequest) SetAllianceInfoRequest(_allianceInfoRequest *AllianceInfoRequest) error
SetAllianceInfoRequest is AllianceInfoRequest Setter 查询入参
type AlitripHotelAllianceHidGetAPIResponse ¶
type AlitripHotelAllianceHidGetAPIResponse struct { model.CommonResponse AlitripHotelAllianceHidGetAPIResponseModel }
AlitripHotelAllianceHidGetAPIResponse 获取联盟hid API返回值 alitrip.hotel.alliance.hid.get
获取符合条件的菲住联盟hid,目前支持指定日期上线的菲住联盟hid查询
type AlitripHotelAllianceHidGetAPIResponseModel ¶ added in v1.2.0
type AlitripHotelAllianceHidGetAPIResponseModel 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"` }
AlitripHotelAllianceHidGetAPIResponseModel is 获取联盟hid 成功返回结果
type AlitripHotelAllianceSettleOrderSynAPIRequest ¶ added in v1.2.0
type AlitripHotelAllianceSettleOrderSynAPIRequest struct { model.Params // contains filtered or unexported fields }
AlitripHotelAllianceSettleOrderSynAPIRequest 菲住联盟分账成功订单同步 API请求 alitrip.hotel.alliance.settle.order.syn
用于菲住联盟分账成功订单同步
func NewAlitripHotelAllianceSettleOrderSynRequest ¶
func NewAlitripHotelAllianceSettleOrderSynRequest() *AlitripHotelAllianceSettleOrderSynAPIRequest
NewAlitripHotelAllianceSettleOrderSynRequest 初始化AlitripHotelAllianceSettleOrderSynAPIRequest对象
func (AlitripHotelAllianceSettleOrderSynAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r AlitripHotelAllianceSettleOrderSynAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AlitripHotelAllianceSettleOrderSynAPIRequest) GetApiParams ¶ added in v1.2.0
func (r AlitripHotelAllianceSettleOrderSynAPIRequest) GetApiParams() url.Values
GetApiParams IRequest interface 方法, 获取API参数
func (AlitripHotelAllianceSettleOrderSynAPIRequest) GetOrderInfo ¶ added in v1.2.0
func (r AlitripHotelAllianceSettleOrderSynAPIRequest) GetOrderInfo() *AllianceSettleOrderInfo
GetOrderInfo OrderInfo Getter
func (*AlitripHotelAllianceSettleOrderSynAPIRequest) SetOrderInfo ¶ added in v1.2.0
func (r *AlitripHotelAllianceSettleOrderSynAPIRequest) SetOrderInfo(_orderInfo *AllianceSettleOrderInfo) error
SetOrderInfo is OrderInfo Setter 订单信息
type AlitripHotelAllianceSettleOrderSynAPIResponse ¶
type AlitripHotelAllianceSettleOrderSynAPIResponse struct { model.CommonResponse AlitripHotelAllianceSettleOrderSynAPIResponseModel }
AlitripHotelAllianceSettleOrderSynAPIResponse 菲住联盟分账成功订单同步 API返回值 alitrip.hotel.alliance.settle.order.syn
用于菲住联盟分账成功订单同步
type AlitripHotelAllianceSettleOrderSynAPIResponseModel ¶ added in v1.2.0
type AlitripHotelAllianceSettleOrderSynAPIResponseModel 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"` }
AlitripHotelAllianceSettleOrderSynAPIResponseModel is 菲住联盟分账成功订单同步 成功返回结果
type AlitripHotelHmsPartnerInfoGetAPIRequest ¶ added in v1.2.0
type AlitripHotelHmsPartnerInfoGetAPIRequest struct { model.Params // contains filtered or unexported fields }
AlitripHotelHmsPartnerInfoGetAPIRequest 获取合作商信息 API请求 alitrip.hotel.hms.partner.info.get
用于给到未来酒店读取与飞猪酒店合作的合作商信息,开展单体联盟业务
func NewAlitripHotelHmsPartnerInfoGetRequest ¶
func NewAlitripHotelHmsPartnerInfoGetRequest() *AlitripHotelHmsPartnerInfoGetAPIRequest
NewAlitripHotelHmsPartnerInfoGetRequest 初始化AlitripHotelHmsPartnerInfoGetAPIRequest对象
func (AlitripHotelHmsPartnerInfoGetAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r AlitripHotelHmsPartnerInfoGetAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AlitripHotelHmsPartnerInfoGetAPIRequest) GetApiParams ¶ added in v1.2.0
func (r AlitripHotelHmsPartnerInfoGetAPIRequest) GetApiParams() url.Values
GetApiParams IRequest interface 方法, 获取API参数
func (AlitripHotelHmsPartnerInfoGetAPIRequest) GetQueryPartnerInfoParam ¶ added in v1.2.0
func (r AlitripHotelHmsPartnerInfoGetAPIRequest) GetQueryPartnerInfoParam() *QueryPartnerInfoParam
GetQueryPartnerInfoParam QueryPartnerInfoParam Getter
func (*AlitripHotelHmsPartnerInfoGetAPIRequest) SetQueryPartnerInfoParam ¶ added in v1.2.0
func (r *AlitripHotelHmsPartnerInfoGetAPIRequest) SetQueryPartnerInfoParam(_queryPartnerInfoParam *QueryPartnerInfoParam) error
SetQueryPartnerInfoParam is QueryPartnerInfoParam Setter 查询合作商信息query参数
type AlitripHotelHmsPartnerInfoGetAPIResponse ¶
type AlitripHotelHmsPartnerInfoGetAPIResponse struct { model.CommonResponse AlitripHotelHmsPartnerInfoGetAPIResponseModel }
AlitripHotelHmsPartnerInfoGetAPIResponse 获取合作商信息 API返回值 alitrip.hotel.hms.partner.info.get
用于给到未来酒店读取与飞猪酒店合作的合作商信息,开展单体联盟业务
type AlitripHotelHmsPartnerInfoGetAPIResponseModel ¶ added in v1.2.0
type AlitripHotelHmsPartnerInfoGetAPIResponseModel 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"` }
AlitripHotelHmsPartnerInfoGetAPIResponseModel is 获取合作商信息 成功返回结果
type AlitripHotelSingleInfoGetAPIRequest ¶ added in v1.2.0
type AlitripHotelSingleInfoGetAPIRequest struct { model.Params // contains filtered or unexported fields }
AlitripHotelSingleInfoGetAPIRequest 获取单体酒店信息 API请求 alitrip.hotel.single.info.get
用于给到未来酒店读取与飞猪酒店合作的单体酒店信息,开展单体联盟业务
func NewAlitripHotelSingleInfoGetRequest ¶
func NewAlitripHotelSingleInfoGetRequest() *AlitripHotelSingleInfoGetAPIRequest
NewAlitripHotelSingleInfoGetRequest 初始化AlitripHotelSingleInfoGetAPIRequest对象
func (AlitripHotelSingleInfoGetAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r AlitripHotelSingleInfoGetAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AlitripHotelSingleInfoGetAPIRequest) GetApiParams ¶ added in v1.2.0
func (r AlitripHotelSingleInfoGetAPIRequest) GetApiParams() url.Values
GetApiParams IRequest interface 方法, 获取API参数
func (AlitripHotelSingleInfoGetAPIRequest) GetQueryHotelInfoParam ¶ added in v1.2.0
func (r AlitripHotelSingleInfoGetAPIRequest) GetQueryHotelInfoParam() *QueryHotelInfoParam
GetQueryHotelInfoParam QueryHotelInfoParam Getter
func (*AlitripHotelSingleInfoGetAPIRequest) SetQueryHotelInfoParam ¶ added in v1.2.0
func (r *AlitripHotelSingleInfoGetAPIRequest) SetQueryHotelInfoParam(_queryHotelInfoParam *QueryHotelInfoParam) error
SetQueryHotelInfoParam is QueryHotelInfoParam Setter 查询酒店信息query参数
type AlitripHotelSingleInfoGetAPIResponse ¶
type AlitripHotelSingleInfoGetAPIResponse struct { model.CommonResponse AlitripHotelSingleInfoGetAPIResponseModel }
AlitripHotelSingleInfoGetAPIResponse 获取单体酒店信息 API返回值 alitrip.hotel.single.info.get
用于给到未来酒店读取与飞猪酒店合作的单体酒店信息,开展单体联盟业务
type AlitripHotelSingleInfoGetAPIResponseModel ¶ added in v1.2.0
type AlitripHotelSingleInfoGetAPIResponseModel 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"` }
AlitripHotelSingleInfoGetAPIResponseModel is 获取单体酒店信息 成功返回结果
type AllianceHotelInfo ¶
type AllianceHotelInfo struct { // 邀约人 Inviter string `json:"inviter,omitempty" xml:"inviter,omitempty"` // 酒店联系人电话 ContactPhone string `json:"contact_phone,omitempty" xml:"contact_phone,omitempty"` // 合同签署开始时间 ContractStart string `json:"contract_start,omitempty" xml:"contract_start,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"` // 支付宝账号 AlipayAccount string `json:"alipay_account,omitempty" xml:"alipay_account,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"` // 新费率 NewFee string `json:"new_fee,omitempty" xml:"new_fee,omitempty"` // 营业执照公司名称 CompanyName string `json:"company_name,omitempty" xml:"company_name,omitempty"` // 支付宝帐号ID AlipayAccountId string `json:"alipay_account_id,omitempty" xml:"alipay_account_id,omitempty"` // 卖家酒店id Hid int64 `json:"hid,omitempty" xml:"hid,omitempty"` // 合作商Id PartnerId int64 `json:"partner_id,omitempty" xml:"partner_id,omitempty"` // 标准酒店Id Shid int64 `json:"shid,omitempty" xml:"shid,omitempty"` // 费率类型 FeeType int64 `json:"fee_type,omitempty" xml:"fee_type,omitempty"` // 结算类型0:个人支付宝 1:企业支付宝 3:对公银行卡 PayType int64 `json:"pay_type,omitempty" xml:"pay_type,omitempty"` // 是否生效 0:失效 1:生效 IsValid int64 `json:"is_valid,omitempty" xml:"is_valid,omitempty"` // 单体联盟新生成的卖家酒店Id Ahid int64 `json:"ahid,omitempty" xml:"ahid,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"` // 新费率类型 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"` }
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 { // 公司名称 CompanyName string `json:"company_name,omitempty" xml:"company_name,omitempty"` // 合作商联系人电话 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"` // 结算账号 AccountNum string `json:"account_num,omitempty" xml:"account_num,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"` // 合作商ID PartnerId int64 `json:"partner_id,omitempty" xml:"partner_id,omitempty"` // 结算类型(目前只有0,企业支付宝) PayType int64 `json:"pay_type,omitempty" xml:"pay_type,omitempty"` // 是否生效(0: 失效 1:生效) IsValid int64 `json:"is_valid,omitempty" xml:"is_valid,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"` // 分账日期 SettleDate string `json:"settle_date,omitempty" xml:"settle_date,omitempty"` // 分账费率 SettleRate string `json:"settle_rate,omitempty" xml:"settle_rate,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"` // 卖家佣金金额(单位:分) 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"` // 卖家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 { // 错误code ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"` // 错误信息 ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` // 返回module Result *AllianceInfoResult `json:"result,omitempty" xml:"result,omitempty"` // 操作是否成功 Success bool `json:"success,omitempty" xml:"success,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 结构体
Source Files ¶
- AlitripHotelAllianceHidGetAPIRequest.go
- AlitripHotelAllianceHidGetAPIResponse.go
- AlitripHotelAllianceSettleOrderSynAPIRequest.go
- AlitripHotelAllianceSettleOrderSynAPIResponse.go
- AlitripHotelHmsPartnerInfoGetAPIRequest.go
- AlitripHotelHmsPartnerInfoGetAPIResponse.go
- AlitripHotelSingleInfoGetAPIRequest.go
- AlitripHotelSingleInfoGetAPIResponse.go
- AllianceHotelInfo.go
- AllianceInfoRequest.go
- AllianceInfoResult.go
- AlliancePartnerInfo.go
- AllianceSettleOrderInfo.go
- HmsTopResultSet.go
- QueryHotelInfoParam.go
- QueryPartnerInfoParam.go
- doc.go