xhoteloffline

package
v1.3.4 Latest Latest
Warning

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

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

Documentation

Overview

Package xhoteloffline 包含酒店线下信用住API相关结构体

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReleaseGuest added in v1.3.4

func ReleaseGuest(v *Guest)

ReleaseGuest 释放Guest

func ReleaseRoomSettleInfo added in v1.3.4

func ReleaseRoomSettleInfo(v *RoomSettleInfo)

ReleaseRoomSettleInfo 释放RoomSettleInfo

func ReleaseTaobaoXhotelOrderAlipayfaceCancelAPIRequest added in v1.3.4

func ReleaseTaobaoXhotelOrderAlipayfaceCancelAPIRequest(v *TaobaoXhotelOrderAlipayfaceCancelAPIRequest)

ReleaseTaobaoXhotelOrderAlipayfaceCancelAPIRequest 将 TaobaoXhotelOrderAlipayfaceCancelAPIRequest 放入 sync.Pool

func ReleaseTaobaoXhotelOrderAlipayfaceCancelAPIResponse added in v1.3.4

func ReleaseTaobaoXhotelOrderAlipayfaceCancelAPIResponse(v *TaobaoXhotelOrderAlipayfaceCancelAPIResponse)

ReleaseTaobaoXhotelOrderAlipayfaceCancelAPIResponse 将 TaobaoXhotelOrderAlipayfaceCancelAPIResponse 保存到 sync.Pool

func ReleaseTaobaoXhotelOrderAlipayfaceCheckAPIRequest added in v1.3.4

func ReleaseTaobaoXhotelOrderAlipayfaceCheckAPIRequest(v *TaobaoXhotelOrderAlipayfaceCheckAPIRequest)

ReleaseTaobaoXhotelOrderAlipayfaceCheckAPIRequest 将 TaobaoXhotelOrderAlipayfaceCheckAPIRequest 放入 sync.Pool

func ReleaseTaobaoXhotelOrderAlipayfaceCheckAPIResponse added in v1.3.4

func ReleaseTaobaoXhotelOrderAlipayfaceCheckAPIResponse(v *TaobaoXhotelOrderAlipayfaceCheckAPIResponse)

ReleaseTaobaoXhotelOrderAlipayfaceCheckAPIResponse 将 TaobaoXhotelOrderAlipayfaceCheckAPIResponse 保存到 sync.Pool

func ReleaseTaobaoXhotelOrderAlipayfaceCreateAPIRequest added in v1.3.4

func ReleaseTaobaoXhotelOrderAlipayfaceCreateAPIRequest(v *TaobaoXhotelOrderAlipayfaceCreateAPIRequest)

ReleaseTaobaoXhotelOrderAlipayfaceCreateAPIRequest 将 TaobaoXhotelOrderAlipayfaceCreateAPIRequest 放入 sync.Pool

func ReleaseTaobaoXhotelOrderAlipayfaceCreateAPIResponse added in v1.3.4

func ReleaseTaobaoXhotelOrderAlipayfaceCreateAPIResponse(v *TaobaoXhotelOrderAlipayfaceCreateAPIResponse)

ReleaseTaobaoXhotelOrderAlipayfaceCreateAPIResponse 将 TaobaoXhotelOrderAlipayfaceCreateAPIResponse 保存到 sync.Pool

func ReleaseTaobaoXhotelOrderAlipayfaceExtendAPIRequest added in v1.3.4

func ReleaseTaobaoXhotelOrderAlipayfaceExtendAPIRequest(v *TaobaoXhotelOrderAlipayfaceExtendAPIRequest)

ReleaseTaobaoXhotelOrderAlipayfaceExtendAPIRequest 将 TaobaoXhotelOrderAlipayfaceExtendAPIRequest 放入 sync.Pool

func ReleaseTaobaoXhotelOrderAlipayfaceExtendAPIResponse added in v1.3.4

func ReleaseTaobaoXhotelOrderAlipayfaceExtendAPIResponse(v *TaobaoXhotelOrderAlipayfaceExtendAPIResponse)

ReleaseTaobaoXhotelOrderAlipayfaceExtendAPIResponse 将 TaobaoXhotelOrderAlipayfaceExtendAPIResponse 保存到 sync.Pool

func ReleaseTaobaoXhotelOrderOfflineSettlePutAPIRequest added in v1.3.4

func ReleaseTaobaoXhotelOrderOfflineSettlePutAPIRequest(v *TaobaoXhotelOrderOfflineSettlePutAPIRequest)

ReleaseTaobaoXhotelOrderOfflineSettlePutAPIRequest 将 TaobaoXhotelOrderOfflineSettlePutAPIRequest 放入 sync.Pool

func ReleaseTaobaoXhotelOrderOfflineSettlePutAPIResponse added in v1.3.4

func ReleaseTaobaoXhotelOrderOfflineSettlePutAPIResponse(v *TaobaoXhotelOrderOfflineSettlePutAPIResponse)

ReleaseTaobaoXhotelOrderOfflineSettlePutAPIResponse 将 TaobaoXhotelOrderOfflineSettlePutAPIResponse 保存到 sync.Pool

Types

type Guest

type Guest struct {
	// 姓名, 如果加密方式设置为1, 传入加密后的姓名
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 证件号, 如果加密方式设置为1, 传入加密后的证件号
	IdNumber string `json:"id_number,omitempty" xml:"id_number,omitempty"`
	// 手机号, 如果加密方式设置为1, 传入加密后的手机号
	Phone string `json:"phone,omitempty" xml:"phone,omitempty"`
	// 加密方式, 默认0: 不加密, 信息会通过淘宝开放平台传输, 阿里旅行可以获取到具体信息;  1: SHA-1不可逆加密,  阿里旅行方面无法解析到具体信息, 只用于做信息匹配.注意加密后生成40字节长度的字符串
	EncryptType int64 `json:"encrypt_type,omitempty" xml:"encrypt_type,omitempty"`
	// 证件类型, 默认0:身份证; 1: 护照; 2:警官证; 3:士兵证; 4: 回乡证
	IdType int64 `json:"id_type,omitempty" xml:"id_type,omitempty"`
	// 是否主入住人,该入住人会参与信用住结算扣款,多个入住人时必须有且仅有一个该字段设置为true
	IsMain bool `json:"is_main,omitempty" xml:"is_main,omitempty"`
}

Guest 结构体

func GetGuest added in v1.3.4

func GetGuest() *Guest

GetGuest() 从对象池中获取Guest

type RoomSettleInfo

type RoomSettleInfo struct {
	// 房间号
	RoomNo string `json:"room_no,omitempty" xml:"room_no,omitempty"`
	// 房间杂费明细 (当房间杂费存在时候,此值不能空。格式与原有杂费格式otherFeeDetail的格式相同)eg;{"洗衣费":5000,"水吧":10000,"优惠":1000}
	RoomOtherFeeDetail string `json:"room_other_fee_detail,omitempty" xml:"room_other_fee_detail,omitempty"`
	// 房间check in 时间
	RoomCheckIn string `json:"room_check_in,omitempty" xml:"room_check_in,omitempty"`
	// 房间check out时间
	RoomCheckOut string `json:"room_check_out,omitempty" xml:"room_check_out,omitempty"`
	// 日历价格(每个房间的日历价格,多间房结账必填)
	DailyPriceInfo string `json:"daily_price_info,omitempty" xml:"daily_price_info,omitempty"`
	// 房间状态;1:未入住(担保且需扣款);2:取消成功(卖家取消;担保noshow且双方协商一致不扣款);3:已入住
	RoomStatus string `json:"room_status,omitempty" xml:"room_status,omitempty"`
	// 房间费(大于零)
	RoomFee int64 `json:"room_fee,omitempty" xml:"room_fee,omitempty"`
	// 房间杂费(不能为负数)
	RoomOtherFee int64 `json:"room_other_fee,omitempty" xml:"room_other_fee,omitempty"`
}

RoomSettleInfo 结构体

func GetRoomSettleInfo added in v1.3.4

func GetRoomSettleInfo() *RoomSettleInfo

GetRoomSettleInfo() 从对象池中获取RoomSettleInfo

type TaobaoXhotelOrderAlipayfaceCancelAPIRequest

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

TaobaoXhotelOrderAlipayfaceCancelAPIRequest 线下信用住订单取消 API请求 taobao.xhotel.order.alipayface.cancel

提供给卖家进行线下信用住的订单取消。此接口仅仅支持线下信用住订单的取消

func GetTaobaoXhotelOrderAlipayfaceCancelAPIRequest added in v1.3.4

func GetTaobaoXhotelOrderAlipayfaceCancelAPIRequest() *TaobaoXhotelOrderAlipayfaceCancelAPIRequest

GetTaobaoXhotelOrderAlipayfaceCancelRequest 从 sync.Pool 获取 TaobaoXhotelOrderAlipayfaceCancelAPIRequest

func NewTaobaoXhotelOrderAlipayfaceCancelRequest

func NewTaobaoXhotelOrderAlipayfaceCancelRequest() *TaobaoXhotelOrderAlipayfaceCancelAPIRequest

NewTaobaoXhotelOrderAlipayfaceCancelRequest 初始化TaobaoXhotelOrderAlipayfaceCancelAPIRequest对象

func (TaobaoXhotelOrderAlipayfaceCancelAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoXhotelOrderAlipayfaceCancelAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoXhotelOrderAlipayfaceCancelAPIRequest) GetNotifyUrl

GetNotifyUrl NotifyUrl Getter

func (TaobaoXhotelOrderAlipayfaceCancelAPIRequest) GetOutId

GetOutId OutId Getter

func (TaobaoXhotelOrderAlipayfaceCancelAPIRequest) GetOutUuid

GetOutUuid OutUuid Getter

func (TaobaoXhotelOrderAlipayfaceCancelAPIRequest) GetRawParams added in v1.2.8

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

func (TaobaoXhotelOrderAlipayfaceCancelAPIRequest) GetReasonText

GetReasonText ReasonText Getter

func (TaobaoXhotelOrderAlipayfaceCancelAPIRequest) GetTid

GetTid Tid Getter

func (*TaobaoXhotelOrderAlipayfaceCancelAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*TaobaoXhotelOrderAlipayfaceCancelAPIRequest) SetNotifyUrl

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

SetNotifyUrl is NotifyUrl Setter 预留后续用

func (*TaobaoXhotelOrderAlipayfaceCancelAPIRequest) SetOutId

SetOutId is OutId Setter 外部订单号

func (*TaobaoXhotelOrderAlipayfaceCancelAPIRequest) SetOutUuid

SetOutUuid is OutUuid Setter 请求流水号

func (*TaobaoXhotelOrderAlipayfaceCancelAPIRequest) SetReasonText

func (r *TaobaoXhotelOrderAlipayfaceCancelAPIRequest) SetReasonText(_reasonText string) error

SetReasonText is ReasonText Setter 原因描述

func (*TaobaoXhotelOrderAlipayfaceCancelAPIRequest) SetTid

SetTid is Tid Setter 淘宝订单ID,必选

type TaobaoXhotelOrderAlipayfaceCancelAPIResponse

type TaobaoXhotelOrderAlipayfaceCancelAPIResponse struct {
	model.CommonResponse
	TaobaoXhotelOrderAlipayfaceCancelAPIResponseModel
}

TaobaoXhotelOrderAlipayfaceCancelAPIResponse 线下信用住订单取消 API返回值 taobao.xhotel.order.alipayface.cancel

提供给卖家进行线下信用住的订单取消。此接口仅仅支持线下信用住订单的取消

func GetTaobaoXhotelOrderAlipayfaceCancelAPIResponse added in v1.3.4

func GetTaobaoXhotelOrderAlipayfaceCancelAPIResponse() *TaobaoXhotelOrderAlipayfaceCancelAPIResponse

GetTaobaoXhotelOrderAlipayfaceCancelAPIResponse 从 sync.Pool 获取 TaobaoXhotelOrderAlipayfaceCancelAPIResponse

func (*TaobaoXhotelOrderAlipayfaceCancelAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type TaobaoXhotelOrderAlipayfaceCancelAPIResponseModel

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

TaobaoXhotelOrderAlipayfaceCancelAPIResponseModel is 线下信用住订单取消 成功返回结果

func (*TaobaoXhotelOrderAlipayfaceCancelAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type TaobaoXhotelOrderAlipayfaceCheckAPIRequest

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

TaobaoXhotelOrderAlipayfaceCheckAPIRequest 线下信用住买家资格校验接口 API请求 taobao.xhotel.order.alipayface.check

接口用于校验买家是否具有使用酒店信用住的资格

func GetTaobaoXhotelOrderAlipayfaceCheckAPIRequest added in v1.3.4

func GetTaobaoXhotelOrderAlipayfaceCheckAPIRequest() *TaobaoXhotelOrderAlipayfaceCheckAPIRequest

GetTaobaoXhotelOrderAlipayfaceCheckRequest 从 sync.Pool 获取 TaobaoXhotelOrderAlipayfaceCheckAPIRequest

func NewTaobaoXhotelOrderAlipayfaceCheckRequest

func NewTaobaoXhotelOrderAlipayfaceCheckRequest() *TaobaoXhotelOrderAlipayfaceCheckAPIRequest

NewTaobaoXhotelOrderAlipayfaceCheckRequest 初始化TaobaoXhotelOrderAlipayfaceCheckAPIRequest对象

func (TaobaoXhotelOrderAlipayfaceCheckAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoXhotelOrderAlipayfaceCheckAPIRequest) GetApiParams

func (r TaobaoXhotelOrderAlipayfaceCheckAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoXhotelOrderAlipayfaceCheckAPIRequest) GetEncryptType

GetEncryptType EncryptType Getter

func (TaobaoXhotelOrderAlipayfaceCheckAPIRequest) GetGuestName

GetGuestName GuestName Getter

func (TaobaoXhotelOrderAlipayfaceCheckAPIRequest) GetHotelCode

GetHotelCode HotelCode Getter

func (TaobaoXhotelOrderAlipayfaceCheckAPIRequest) GetIdNumber

GetIdNumber IdNumber Getter

func (TaobaoXhotelOrderAlipayfaceCheckAPIRequest) GetIdType

GetIdType IdType Getter

func (TaobaoXhotelOrderAlipayfaceCheckAPIRequest) GetMobileNo

GetMobileNo MobileNo Getter

func (TaobaoXhotelOrderAlipayfaceCheckAPIRequest) GetRawParams added in v1.2.8

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

func (TaobaoXhotelOrderAlipayfaceCheckAPIRequest) GetTotalFee

GetTotalFee TotalFee Getter

func (TaobaoXhotelOrderAlipayfaceCheckAPIRequest) GetType

GetType Type Getter

func (TaobaoXhotelOrderAlipayfaceCheckAPIRequest) GetVendor

GetVendor Vendor Getter

func (*TaobaoXhotelOrderAlipayfaceCheckAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*TaobaoXhotelOrderAlipayfaceCheckAPIRequest) SetEncryptType

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

SetEncryptType is EncryptType Setter 加密方式, 默认0: 不加密, 信息会通过淘宝开放平台传输, 阿里旅行可以获取到具体信息; 1: SHA-1不可逆加密, 阿里旅行方面无法解析到具体信息, 只用于做信息匹配.注意加密后生成40字节长度的字符串

func (*TaobaoXhotelOrderAlipayfaceCheckAPIRequest) SetGuestName

func (r *TaobaoXhotelOrderAlipayfaceCheckAPIRequest) SetGuestName(_guestName string) error

SetGuestName is GuestName Setter 入住人姓名

func (*TaobaoXhotelOrderAlipayfaceCheckAPIRequest) SetHotelCode

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

SetHotelCode is HotelCode Setter 参数必填,发布到阿里旅行的酒店编码

func (*TaobaoXhotelOrderAlipayfaceCheckAPIRequest) SetIdNumber

func (r *TaobaoXhotelOrderAlipayfaceCheckAPIRequest) SetIdNumber(_idNumber string) error

SetIdNumber is IdNumber Setter 证件号, 如果加密方式设置为1, 传入加密后的证件号

func (*TaobaoXhotelOrderAlipayfaceCheckAPIRequest) SetIdType

SetIdType is IdType Setter 证件类型, 默认0:身份证; 1: 护照; 2:警官证; 3:士兵证; 4: 回乡证

func (*TaobaoXhotelOrderAlipayfaceCheckAPIRequest) SetMobileNo

func (r *TaobaoXhotelOrderAlipayfaceCheckAPIRequest) SetMobileNo(_mobileNo string) error

SetMobileNo is MobileNo Setter 客人手机号

func (*TaobaoXhotelOrderAlipayfaceCheckAPIRequest) SetTotalFee

func (r *TaobaoXhotelOrderAlipayfaceCheckAPIRequest) SetTotalFee(_totalFee int64) error

SetTotalFee is TotalFee Setter 总的收费金额,单位为分

func (*TaobaoXhotelOrderAlipayfaceCheckAPIRequest) SetType

SetType is Type Setter 验证类型.可以不设置. 默认0-信用住下单资格校验;1-已经创建的信用住订单,入住人在checkIn时的资格复审

func (*TaobaoXhotelOrderAlipayfaceCheckAPIRequest) SetVendor

SetVendor is Vendor Setter 不清楚请留空, 用于和outHid共同定位一个酒店

type TaobaoXhotelOrderAlipayfaceCheckAPIResponse

type TaobaoXhotelOrderAlipayfaceCheckAPIResponse struct {
	model.CommonResponse
	TaobaoXhotelOrderAlipayfaceCheckAPIResponseModel
}

TaobaoXhotelOrderAlipayfaceCheckAPIResponse 线下信用住买家资格校验接口 API返回值 taobao.xhotel.order.alipayface.check

接口用于校验买家是否具有使用酒店信用住的资格

func GetTaobaoXhotelOrderAlipayfaceCheckAPIResponse added in v1.3.4

func GetTaobaoXhotelOrderAlipayfaceCheckAPIResponse() *TaobaoXhotelOrderAlipayfaceCheckAPIResponse

GetTaobaoXhotelOrderAlipayfaceCheckAPIResponse 从 sync.Pool 获取 TaobaoXhotelOrderAlipayfaceCheckAPIResponse

func (*TaobaoXhotelOrderAlipayfaceCheckAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type TaobaoXhotelOrderAlipayfaceCheckAPIResponseModel

type TaobaoXhotelOrderAlipayfaceCheckAPIResponseModel struct {
	XMLName xml.Name `xml:"xhotel_order_alipayface_check_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 当match_condition=false时该字段有意义,用于说明用户不符合信用住条件的原因, 主要有如下几种返回:1. 该用户尚未签约线下信用住, 请先扫码签约; 2.该用户尚未签约, 暂不支持使用线下信用住, 请使用现金或其他方式结账; 3. 该用户支付宝账号存在风险, 暂不支持使用线下信用住, 请使用现金或其他方式结账; 4.该用户当前信用额度不足, 无法支付此房费, 请使用现金或其他方式结账
	Reason string `json:"reason,omitempty" xml:"reason,omitempty"`
	// 入参信息回传, 用于校验的证件号码
	IdNumber string `json:"id_number,omitempty" xml:"id_number,omitempty"`
	// 当match_condition=false时该字段有意义,用于标示当用户不符合条件时,应该进行的下一步动作. 0或者空: 代表没有下一步动作, 接入方此时可以直接不提示用户走任何线下信用住的流程和文案等; 1: 提示用户进行扫码签约,此时可以把reason字段展示到前台,或者自己定义提示文案
	Action int64 `json:"action,omitempty" xml:"action,omitempty"`
	// 是否符合信用住条件
	MatchCondition bool `json:"match_condition,omitempty" xml:"match_condition,omitempty"`
	// existAlipayOrder
	ExistAlipayOrder bool `json:"exist_alipay_order,omitempty" xml:"exist_alipay_order,omitempty"`
}

TaobaoXhotelOrderAlipayfaceCheckAPIResponseModel is 线下信用住买家资格校验接口 成功返回结果

func (*TaobaoXhotelOrderAlipayfaceCheckAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type TaobaoXhotelOrderAlipayfaceCreateAPIRequest

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

TaobaoXhotelOrderAlipayfaceCreateAPIRequest 信用住支付创建接口 API请求 taobao.xhotel.order.alipayface.create

用于创建一笔信用住支付,主要应用场景是线下信用住

func GetTaobaoXhotelOrderAlipayfaceCreateAPIRequest added in v1.3.4

func GetTaobaoXhotelOrderAlipayfaceCreateAPIRequest() *TaobaoXhotelOrderAlipayfaceCreateAPIRequest

GetTaobaoXhotelOrderAlipayfaceCreateRequest 从 sync.Pool 获取 TaobaoXhotelOrderAlipayfaceCreateAPIRequest

func NewTaobaoXhotelOrderAlipayfaceCreateRequest

func NewTaobaoXhotelOrderAlipayfaceCreateRequest() *TaobaoXhotelOrderAlipayfaceCreateAPIRequest

NewTaobaoXhotelOrderAlipayfaceCreateRequest 初始化TaobaoXhotelOrderAlipayfaceCreateAPIRequest对象

func (TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetAlipayNumber

GetAlipayNumber AlipayNumber Getter

func (TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetChannel

GetChannel Channel Getter

func (TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetCheckIn

GetCheckIn CheckIn Getter

func (TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetCheckOut

GetCheckOut CheckOut Getter

func (TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetDailyPriceInfo

GetDailyPriceInfo DailyPriceInfo Getter

func (TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetGuests

GetGuests Guests Getter

func (TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetHotelCode

GetHotelCode HotelCode Getter

func (TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetOutOrderId

GetOutOrderId OutOrderId Getter

func (TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetRateplanName

GetRateplanName RateplanName Getter

func (TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetRawParams added in v1.2.8

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

func (TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetRoomQuantity

GetRoomQuantity RoomQuantity Getter

func (TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetRoomtypeName

GetRoomtypeName RoomtypeName Getter

func (TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetSelfCheckin

GetSelfCheckin SelfCheckin Getter

func (TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetTotalFee

GetTotalFee TotalFee Getter

func (TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetVendor

GetVendor Vendor Getter

func (*TaobaoXhotelOrderAlipayfaceCreateAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetAlipayNumber

func (r *TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetAlipayNumber(_alipayNumber string) error

SetAlipayNumber is AlipayNumber Setter 扫描用户支付宝得到的串号, 该字段不为空时会采用串号对应的支付宝账号进行信用住结算

func (*TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetChannel

SetChannel is Channel Setter 订单渠道信息,可以留空

func (*TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetCheckIn

SetCheckIn is CheckIn Setter 入住日期

func (*TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetCheckOut

func (r *TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetCheckOut(_checkOut string) error

SetCheckOut is CheckOut Setter 离店日期(最多允许9天)

func (*TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetDailyPriceInfo

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

SetDailyPriceInfo is DailyPriceInfo Setter 每日房价,json格式

func (*TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetGuests

SetGuests is Guests Setter 入住人信息, 注意必须有且只有一个设置为主入住人, 用于信用住结算扣款. 对于java版本的SDK可以使用setGuests(List &lt Guest &gt guests)赋值; 对于.net等其他版本SDK可以通过将List &lt Guest&gt结构数据转为json串赋值.

func (*TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetHotelCode

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

SetHotelCode is HotelCode Setter 发布到阿里旅行的酒店编码

func (*TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetOutOrderId

func (r *TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetOutOrderId(_outOrderId string) error

SetOutOrderId is OutOrderId Setter 商家系统的订单号,必须全局唯一,重复会按照相同订单处理

func (*TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetRateplanName

func (r *TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetRateplanName(_rateplanName string) error

SetRateplanName is RateplanName Setter rateplan名称(不清楚可以留空)

func (*TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetRoomQuantity

func (r *TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetRoomQuantity(_roomQuantity int64) error

SetRoomQuantity is RoomQuantity Setter 预定的房间数量

func (*TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetRoomtypeName

func (r *TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetRoomtypeName(_roomtypeName string) error

SetRoomtypeName is RoomtypeName Setter 房型名称

func (*TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetSelfCheckin

func (r *TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetSelfCheckin(_selfCheckin bool) error

SetSelfCheckin is SelfCheckin Setter 是否为自助入住模式下创建订单,是:true,否:false

func (*TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetTotalFee

func (r *TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetTotalFee(_totalFee int64) error

SetTotalFee is TotalFee Setter 总房费,单位为分

func (*TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetVendor

SetVendor is Vendor Setter 不清楚请留空, 用于和outHid共同定位一个酒店

type TaobaoXhotelOrderAlipayfaceCreateAPIResponse

type TaobaoXhotelOrderAlipayfaceCreateAPIResponse struct {
	model.CommonResponse
	TaobaoXhotelOrderAlipayfaceCreateAPIResponseModel
}

TaobaoXhotelOrderAlipayfaceCreateAPIResponse 信用住支付创建接口 API返回值 taobao.xhotel.order.alipayface.create

用于创建一笔信用住支付,主要应用场景是线下信用住

func GetTaobaoXhotelOrderAlipayfaceCreateAPIResponse added in v1.3.4

func GetTaobaoXhotelOrderAlipayfaceCreateAPIResponse() *TaobaoXhotelOrderAlipayfaceCreateAPIResponse

GetTaobaoXhotelOrderAlipayfaceCreateAPIResponse 从 sync.Pool 获取 TaobaoXhotelOrderAlipayfaceCreateAPIResponse

func (*TaobaoXhotelOrderAlipayfaceCreateAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type TaobaoXhotelOrderAlipayfaceCreateAPIResponseModel

type TaobaoXhotelOrderAlipayfaceCreateAPIResponseModel struct {
	XMLName xml.Name `xml:"xhotel_order_alipayface_create_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 酒店订单号, 和入参中传入一致
	OutOrderId string `json:"out_order_id,omitempty" xml:"out_order_id,omitempty"`
	// 用于当传入多个入住人时, 将阿里旅行最终用于结算的入住人信息回传
	MainIdNumber string `json:"main_id_number,omitempty" xml:"main_id_number,omitempty"`
	// 用于签约和扣款的买家淘宝账号
	BuyerNick string `json:"buyer_nick,omitempty" xml:"buyer_nick,omitempty"`
	// 阿里旅行生成的备注信息,用于提示用户一些注意事宜. 请将该字段的信息打印到客人的入住单上. 如果为空代表没有阿里旅行方面的特殊备注
	Remark string `json:"remark,omitempty" xml:"remark,omitempty"`
	// 阿里旅行生成的订单id,该字段很重要,后续结账等操作都要使用tid
	Tid int64 `json:"tid,omitempty" xml:"tid,omitempty"`
	// 阿里旅行为该笔订单提供的最大杂费(不含房费)担保金额,单位为分. 注意该金额指客人除了房费以外可消费的金额上限
	GuaranteeAmout int64 `json:"guarantee_amout,omitempty" xml:"guarantee_amout,omitempty"`
	// 阿里旅行平台提供的优惠金额,单位为分
	AlitripDiscount int64 `json:"alitrip_discount,omitempty" xml:"alitrip_discount,omitempty"`
	// 商家自身提供给该订单的优惠金额,单位为分
	SellerDiscount int64 `json:"seller_discount,omitempty" xml:"seller_discount,omitempty"`
}

TaobaoXhotelOrderAlipayfaceCreateAPIResponseModel is 信用住支付创建接口 成功返回结果

func (*TaobaoXhotelOrderAlipayfaceCreateAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type TaobaoXhotelOrderAlipayfaceExtendAPIRequest

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

TaobaoXhotelOrderAlipayfaceExtendAPIRequest 信用住订单延住接口 API请求 taobao.xhotel.order.alipayface.extend

信用住订单延住接口,用于将已有的信用住支付订单checkOut和订单金额等更新

func GetTaobaoXhotelOrderAlipayfaceExtendAPIRequest added in v1.3.4

func GetTaobaoXhotelOrderAlipayfaceExtendAPIRequest() *TaobaoXhotelOrderAlipayfaceExtendAPIRequest

GetTaobaoXhotelOrderAlipayfaceExtendRequest 从 sync.Pool 获取 TaobaoXhotelOrderAlipayfaceExtendAPIRequest

func NewTaobaoXhotelOrderAlipayfaceExtendRequest

func NewTaobaoXhotelOrderAlipayfaceExtendRequest() *TaobaoXhotelOrderAlipayfaceExtendAPIRequest

NewTaobaoXhotelOrderAlipayfaceExtendRequest 初始化TaobaoXhotelOrderAlipayfaceExtendAPIRequest对象

func (TaobaoXhotelOrderAlipayfaceExtendAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoXhotelOrderAlipayfaceExtendAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoXhotelOrderAlipayfaceExtendAPIRequest) GetCheckOut

GetCheckOut CheckOut Getter

func (TaobaoXhotelOrderAlipayfaceExtendAPIRequest) GetExtendDailyPriceInfo

func (r TaobaoXhotelOrderAlipayfaceExtendAPIRequest) GetExtendDailyPriceInfo() string

GetExtendDailyPriceInfo ExtendDailyPriceInfo Getter

func (TaobaoXhotelOrderAlipayfaceExtendAPIRequest) GetExtendFee

GetExtendFee ExtendFee Getter

func (TaobaoXhotelOrderAlipayfaceExtendAPIRequest) GetOutOrderId

GetOutOrderId OutOrderId Getter

func (TaobaoXhotelOrderAlipayfaceExtendAPIRequest) GetRawParams added in v1.2.8

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

func (TaobaoXhotelOrderAlipayfaceExtendAPIRequest) GetTid

GetTid Tid Getter

func (*TaobaoXhotelOrderAlipayfaceExtendAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*TaobaoXhotelOrderAlipayfaceExtendAPIRequest) SetCheckOut

func (r *TaobaoXhotelOrderAlipayfaceExtendAPIRequest) SetCheckOut(_checkOut string) error

SetCheckOut is CheckOut Setter 延住后的离店日期(最多总共入住天数不能超过9间夜)

func (*TaobaoXhotelOrderAlipayfaceExtendAPIRequest) SetExtendDailyPriceInfo

func (r *TaobaoXhotelOrderAlipayfaceExtendAPIRequest) SetExtendDailyPriceInfo(_extendDailyPriceInfo string) error

SetExtendDailyPriceInfo is ExtendDailyPriceInfo Setter 延住日期段的每日房价信息,注意不包括原有的日期房价

func (*TaobaoXhotelOrderAlipayfaceExtendAPIRequest) SetExtendFee

func (r *TaobaoXhotelOrderAlipayfaceExtendAPIRequest) SetExtendFee(_extendFee int64) error

SetExtendFee is ExtendFee Setter 延住房费,注意不包含原有的房费金额,单位为分

func (*TaobaoXhotelOrderAlipayfaceExtendAPIRequest) SetOutOrderId

func (r *TaobaoXhotelOrderAlipayfaceExtendAPIRequest) SetOutOrderId(_outOrderId string) error

SetOutOrderId is OutOrderId Setter 卖家系统订单号,和tid必须至少传入一个

func (*TaobaoXhotelOrderAlipayfaceExtendAPIRequest) SetTid

SetTid is Tid Setter 阿里旅行订单id,和outOrderId必须至少传入一个

type TaobaoXhotelOrderAlipayfaceExtendAPIResponse

type TaobaoXhotelOrderAlipayfaceExtendAPIResponse struct {
	model.CommonResponse
	TaobaoXhotelOrderAlipayfaceExtendAPIResponseModel
}

TaobaoXhotelOrderAlipayfaceExtendAPIResponse 信用住订单延住接口 API返回值 taobao.xhotel.order.alipayface.extend

信用住订单延住接口,用于将已有的信用住支付订单checkOut和订单金额等更新

func GetTaobaoXhotelOrderAlipayfaceExtendAPIResponse added in v1.3.4

func GetTaobaoXhotelOrderAlipayfaceExtendAPIResponse() *TaobaoXhotelOrderAlipayfaceExtendAPIResponse

GetTaobaoXhotelOrderAlipayfaceExtendAPIResponse 从 sync.Pool 获取 TaobaoXhotelOrderAlipayfaceExtendAPIResponse

func (*TaobaoXhotelOrderAlipayfaceExtendAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type TaobaoXhotelOrderAlipayfaceExtendAPIResponseModel

type TaobaoXhotelOrderAlipayfaceExtendAPIResponseModel struct {
	XMLName xml.Name `xml:"xhotel_order_alipayface_extend_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 出参成功
	Result string `json:"result,omitempty" xml:"result,omitempty"`
}

TaobaoXhotelOrderAlipayfaceExtendAPIResponseModel is 信用住订单延住接口 成功返回结果

func (*TaobaoXhotelOrderAlipayfaceExtendAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type TaobaoXhotelOrderOfflineSettlePutAPIRequest

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

TaobaoXhotelOrderOfflineSettlePutAPIRequest 线下信用住结账专用接口 API请求 taobao.xhotel.order.offline.settle.put

线下信用住结账专用接口

func GetTaobaoXhotelOrderOfflineSettlePutAPIRequest added in v1.3.4

func GetTaobaoXhotelOrderOfflineSettlePutAPIRequest() *TaobaoXhotelOrderOfflineSettlePutAPIRequest

GetTaobaoXhotelOrderOfflineSettlePutRequest 从 sync.Pool 获取 TaobaoXhotelOrderOfflineSettlePutAPIRequest

func NewTaobaoXhotelOrderOfflineSettlePutRequest

func NewTaobaoXhotelOrderOfflineSettlePutRequest() *TaobaoXhotelOrderOfflineSettlePutAPIRequest

NewTaobaoXhotelOrderOfflineSettlePutRequest 初始化TaobaoXhotelOrderOfflineSettlePutAPIRequest对象

func (TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetAmount

GetAmount Amount Getter

func (TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetCheckOut

GetCheckOut CheckOut Getter

func (TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetContainGuarantee

func (r TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetContainGuarantee() int64

GetContainGuarantee ContainGuarantee Getter

func (TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetDailyPriceInfo

GetDailyPriceInfo DailyPriceInfo Getter

func (TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetHotelCode

GetHotelCode HotelCode Getter

func (TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetMemo

GetMemo Memo Getter

func (TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetNotifyUrl

GetNotifyUrl NotifyUrl Getter

func (TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetOtherFee

GetOtherFee OtherFee Getter

func (TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetOtherFeeDetail

GetOtherFeeDetail OtherFeeDetail Getter

func (TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetOutId

GetOutId OutId Getter

func (TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetOutUuid

GetOutUuid OutUuid Getter

func (TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetRawParams added in v1.2.8

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

func (TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetRoomNo

GetRoomNo RoomNo Getter

func (TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetRoomSettleInfoList

func (r TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetRoomSettleInfoList() []RoomSettleInfo

GetRoomSettleInfoList RoomSettleInfoList Getter

func (TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetTid

GetTid Tid Getter

func (TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetTotalRoomFee

GetTotalRoomFee TotalRoomFee Getter

func (TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetVendor

GetVendor Vendor Getter

func (*TaobaoXhotelOrderOfflineSettlePutAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetAmount

SetAmount is Amount Setter 应收金额,大于0时,直接按照此金额扣款,忽略房费和杂费金额(单位分)

func (*TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetCheckOut

func (r *TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetCheckOut(_checkOut string) error

SetCheckOut is CheckOut Setter 实际离店日期,用于校验总房费收取

func (*TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetContainGuarantee

func (r *TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetContainGuarantee(_containGuarantee int64) error

SetContainGuarantee is ContainGuarantee Setter 此金额是否包含担保金 0:默认值无意义;1:包含;2:不包含(多间房结账必须传入)

func (*TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetDailyPriceInfo

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

SetDailyPriceInfo is DailyPriceInfo Setter 每日房价,json格式,如果房价和在阿里旅行下单时发生了变化,必须设置该字段.用于更新阿里旅行端的房价信息,涉及到对用户的优惠信息处理等环节(多间房的时候dailyPriceInfo留空)

func (*TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetHotelCode

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

SetHotelCode is HotelCode Setter 商家酒店编码

func (*TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetMemo

SetMemo is Memo Setter 备注

func (*TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetNotifyUrl

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

SetNotifyUrl is NotifyUrl Setter 请求结果通知地址(暂时无效,无需传入)

func (*TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetOtherFee

func (r *TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetOtherFee(_otherFee int64) error

SetOtherFee is OtherFee Setter 杂费总额(不能为负数)

func (*TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetOtherFeeDetail

func (r *TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetOtherFeeDetail(_otherFeeDetail string) error

SetOtherFeeDetail is OtherFeeDetail Setter 杂费明细,如果otherFee>0则该字段必须设置,并和杂费金额相吻合

func (*TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetOutId

SetOutId is OutId Setter 商家订单号

func (*TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetOutUuid

SetOutUuid is OutUuid Setter 结账请求流水号

func (*TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetRoomNo

SetRoomNo is RoomNo Setter 入住房间号

func (*TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetRoomSettleInfoList

func (r *TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetRoomSettleInfoList(_roomSettleInfoList []RoomSettleInfo) error

SetRoomSettleInfoList is RoomSettleInfoList Setter 房间明细列表

func (*TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetTid

SetTid is Tid Setter 淘宝订单id,必须填写

func (*TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetTotalRoomFee

func (r *TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetTotalRoomFee(_totalRoomFee int64) error

SetTotalRoomFee is TotalRoomFee Setter 房费总额(必须大于0)

func (*TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetVendor

SetVendor is Vendor Setter 系统商标识

type TaobaoXhotelOrderOfflineSettlePutAPIResponse

type TaobaoXhotelOrderOfflineSettlePutAPIResponse struct {
	model.CommonResponse
	TaobaoXhotelOrderOfflineSettlePutAPIResponseModel
}

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

线下信用住结账专用接口

func GetTaobaoXhotelOrderOfflineSettlePutAPIResponse added in v1.3.4

func GetTaobaoXhotelOrderOfflineSettlePutAPIResponse() *TaobaoXhotelOrderOfflineSettlePutAPIResponse

GetTaobaoXhotelOrderOfflineSettlePutAPIResponse 从 sync.Pool 获取 TaobaoXhotelOrderOfflineSettlePutAPIResponse

func (*TaobaoXhotelOrderOfflineSettlePutAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type TaobaoXhotelOrderOfflineSettlePutAPIResponseModel

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

TaobaoXhotelOrderOfflineSettlePutAPIResponseModel is 线下信用住结账专用接口 成功返回结果

func (*TaobaoXhotelOrderOfflineSettlePutAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

Jump to

Keyboard shortcuts

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