Documentation ¶
Overview ¶
酒店线下信用住API model
Index ¶
- type Guest
- type RoomSettleInfo
- type TaobaoXhotelOrderAlipayfaceCancelAPIRequest
- func (r TaobaoXhotelOrderAlipayfaceCancelAPIRequest) GetApiMethodName() string
- func (r TaobaoXhotelOrderAlipayfaceCancelAPIRequest) GetApiParams() url.Values
- func (r TaobaoXhotelOrderAlipayfaceCancelAPIRequest) GetNotifyUrl() string
- func (r TaobaoXhotelOrderAlipayfaceCancelAPIRequest) GetOutId() string
- func (r TaobaoXhotelOrderAlipayfaceCancelAPIRequest) GetOutUuid() string
- func (r TaobaoXhotelOrderAlipayfaceCancelAPIRequest) GetReasonText() string
- func (r TaobaoXhotelOrderAlipayfaceCancelAPIRequest) GetTid() int64
- func (r *TaobaoXhotelOrderAlipayfaceCancelAPIRequest) SetNotifyUrl(_notifyUrl string) error
- func (r *TaobaoXhotelOrderAlipayfaceCancelAPIRequest) SetOutId(_outId string) error
- func (r *TaobaoXhotelOrderAlipayfaceCancelAPIRequest) SetOutUuid(_outUuid string) error
- func (r *TaobaoXhotelOrderAlipayfaceCancelAPIRequest) SetReasonText(_reasonText string) error
- func (r *TaobaoXhotelOrderAlipayfaceCancelAPIRequest) SetTid(_tid int64) error
- type TaobaoXhotelOrderAlipayfaceCancelAPIResponse
- type TaobaoXhotelOrderAlipayfaceCancelAPIResponseModel
- type TaobaoXhotelOrderAlipayfaceCheckAPIRequest
- func (r TaobaoXhotelOrderAlipayfaceCheckAPIRequest) GetApiMethodName() string
- func (r TaobaoXhotelOrderAlipayfaceCheckAPIRequest) GetApiParams() url.Values
- func (r TaobaoXhotelOrderAlipayfaceCheckAPIRequest) GetEncryptType() int64
- func (r TaobaoXhotelOrderAlipayfaceCheckAPIRequest) GetGuestName() string
- func (r TaobaoXhotelOrderAlipayfaceCheckAPIRequest) GetHotelCode() string
- func (r TaobaoXhotelOrderAlipayfaceCheckAPIRequest) GetIdNumber() string
- func (r TaobaoXhotelOrderAlipayfaceCheckAPIRequest) GetIdType() int64
- func (r TaobaoXhotelOrderAlipayfaceCheckAPIRequest) GetMobileNo() string
- func (r TaobaoXhotelOrderAlipayfaceCheckAPIRequest) GetTotalFee() int64
- func (r TaobaoXhotelOrderAlipayfaceCheckAPIRequest) GetType() int64
- func (r TaobaoXhotelOrderAlipayfaceCheckAPIRequest) GetVendor() string
- func (r *TaobaoXhotelOrderAlipayfaceCheckAPIRequest) SetEncryptType(_encryptType int64) error
- func (r *TaobaoXhotelOrderAlipayfaceCheckAPIRequest) SetGuestName(_guestName string) error
- func (r *TaobaoXhotelOrderAlipayfaceCheckAPIRequest) SetHotelCode(_hotelCode string) error
- func (r *TaobaoXhotelOrderAlipayfaceCheckAPIRequest) SetIdNumber(_idNumber string) error
- func (r *TaobaoXhotelOrderAlipayfaceCheckAPIRequest) SetIdType(_idType int64) error
- func (r *TaobaoXhotelOrderAlipayfaceCheckAPIRequest) SetMobileNo(_mobileNo string) error
- func (r *TaobaoXhotelOrderAlipayfaceCheckAPIRequest) SetTotalFee(_totalFee int64) error
- func (r *TaobaoXhotelOrderAlipayfaceCheckAPIRequest) SetType(_type int64) error
- func (r *TaobaoXhotelOrderAlipayfaceCheckAPIRequest) SetVendor(_vendor string) error
- type TaobaoXhotelOrderAlipayfaceCheckAPIResponse
- type TaobaoXhotelOrderAlipayfaceCheckAPIResponseModel
- type TaobaoXhotelOrderAlipayfaceCreateAPIRequest
- func (r TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetAlipayNumber() string
- func (r TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetApiMethodName() string
- func (r TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetApiParams() url.Values
- func (r TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetChannel() string
- func (r TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetCheckIn() string
- func (r TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetCheckOut() string
- func (r TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetDailyPriceInfo() string
- func (r TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetGuests() []Guest
- func (r TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetHotelCode() string
- func (r TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetOutOrderId() string
- func (r TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetRateplanName() string
- func (r TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetRoomQuantity() int64
- func (r TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetRoomtypeName() string
- func (r TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetSelfCheckin() bool
- func (r TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetTotalFee() int64
- func (r TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetVendor() string
- func (r *TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetAlipayNumber(_alipayNumber string) error
- func (r *TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetChannel(_channel string) error
- func (r *TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetCheckIn(_checkIn string) error
- func (r *TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetCheckOut(_checkOut string) error
- func (r *TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetDailyPriceInfo(_dailyPriceInfo string) error
- func (r *TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetGuests(_guests []Guest) error
- func (r *TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetHotelCode(_hotelCode string) error
- func (r *TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetOutOrderId(_outOrderId string) error
- func (r *TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetRateplanName(_rateplanName string) error
- func (r *TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetRoomQuantity(_roomQuantity int64) error
- func (r *TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetRoomtypeName(_roomtypeName string) error
- func (r *TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetSelfCheckin(_selfCheckin bool) error
- func (r *TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetTotalFee(_totalFee int64) error
- func (r *TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetVendor(_vendor string) error
- type TaobaoXhotelOrderAlipayfaceCreateAPIResponse
- type TaobaoXhotelOrderAlipayfaceCreateAPIResponseModel
- type TaobaoXhotelOrderAlipayfaceExtendAPIRequest
- func (r TaobaoXhotelOrderAlipayfaceExtendAPIRequest) GetApiMethodName() string
- func (r TaobaoXhotelOrderAlipayfaceExtendAPIRequest) GetApiParams() url.Values
- func (r TaobaoXhotelOrderAlipayfaceExtendAPIRequest) GetCheckOut() string
- func (r TaobaoXhotelOrderAlipayfaceExtendAPIRequest) GetExtendDailyPriceInfo() string
- func (r TaobaoXhotelOrderAlipayfaceExtendAPIRequest) GetExtendFee() int64
- func (r TaobaoXhotelOrderAlipayfaceExtendAPIRequest) GetOutOrderId() string
- func (r TaobaoXhotelOrderAlipayfaceExtendAPIRequest) GetTid() int64
- func (r *TaobaoXhotelOrderAlipayfaceExtendAPIRequest) SetCheckOut(_checkOut string) error
- func (r *TaobaoXhotelOrderAlipayfaceExtendAPIRequest) SetExtendDailyPriceInfo(_extendDailyPriceInfo string) error
- func (r *TaobaoXhotelOrderAlipayfaceExtendAPIRequest) SetExtendFee(_extendFee int64) error
- func (r *TaobaoXhotelOrderAlipayfaceExtendAPIRequest) SetOutOrderId(_outOrderId string) error
- func (r *TaobaoXhotelOrderAlipayfaceExtendAPIRequest) SetTid(_tid int64) error
- type TaobaoXhotelOrderAlipayfaceExtendAPIResponse
- type TaobaoXhotelOrderAlipayfaceExtendAPIResponseModel
- type TaobaoXhotelOrderOfflineSettlePutAPIRequest
- func (r TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetAmount() int64
- func (r TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetApiMethodName() string
- func (r TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetApiParams() url.Values
- func (r TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetCheckOut() string
- func (r TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetContainGuarantee() int64
- func (r TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetDailyPriceInfo() string
- func (r TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetHotelCode() string
- func (r TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetMemo() string
- func (r TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetNotifyUrl() string
- func (r TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetOtherFee() int64
- func (r TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetOtherFeeDetail() string
- func (r TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetOutId() string
- func (r TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetOutUuid() string
- func (r TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetRoomNo() string
- func (r TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetRoomSettleInfoList() []RoomSettleInfo
- func (r TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetTid() int64
- func (r TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetTotalRoomFee() int64
- func (r TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetVendor() string
- func (r *TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetAmount(_amount int64) error
- func (r *TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetCheckOut(_checkOut string) error
- func (r *TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetContainGuarantee(_containGuarantee int64) error
- func (r *TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetDailyPriceInfo(_dailyPriceInfo string) error
- func (r *TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetHotelCode(_hotelCode string) error
- func (r *TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetMemo(_memo string) error
- func (r *TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetNotifyUrl(_notifyUrl string) error
- func (r *TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetOtherFee(_otherFee int64) error
- func (r *TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetOtherFeeDetail(_otherFeeDetail string) error
- func (r *TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetOutId(_outId string) error
- func (r *TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetOutUuid(_outUuid string) error
- func (r *TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetRoomNo(_roomNo string) error
- func (r *TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetRoomSettleInfoList(_roomSettleInfoList []RoomSettleInfo) error
- func (r *TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetTid(_tid int64) error
- func (r *TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetTotalRoomFee(_totalRoomFee int64) error
- func (r *TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetVendor(_vendor string) error
- type TaobaoXhotelOrderOfflineSettlePutAPIResponse
- type TaobaoXhotelOrderOfflineSettlePutAPIResponseModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Guest ¶
type Guest struct { // 是否主入住人,该入住人会参与信用住结算扣款,多个入住人时必须有且仅有一个该字段设置为true IsMain bool `json:"is_main,omitempty" xml:"is_main,omitempty"` // 加密方式, 默认0: 不加密, 信息会通过淘宝开放平台传输, 阿里旅行可以获取到具体信息; 1: SHA-1不可逆加密, 阿里旅行方面无法解析到具体信息, 只用于做信息匹配.注意加密后生成40字节长度的字符串 EncryptType int64 `json:"encrypt_type,omitempty" xml:"encrypt_type,omitempty"` // 姓名, 如果加密方式设置为1, 传入加密后的姓名 Name string `json:"name,omitempty" xml:"name,omitempty"` // 证件类型, 默认0:身份证; 1: 护照; 2:警官证; 3:士兵证; 4: 回乡证 IdType int64 `json:"id_type,omitempty" xml:"id_type,omitempty"` // 证件号, 如果加密方式设置为1, 传入加密后的证件号 IdNumber string `json:"id_number,omitempty" xml:"id_number,omitempty"` // 手机号, 如果加密方式设置为1, 传入加密后的手机号 Phone string `json:"phone,omitempty" xml:"phone,omitempty"` }
Guest
type RoomSettleInfo ¶
type RoomSettleInfo struct { // 房间号 RoomNo string `json:"room_no,omitempty" xml:"room_no,omitempty"` // 房间费(大于零) RoomFee int64 `json:"room_fee,omitempty" xml:"room_fee,omitempty"` // 房间杂费(不能为负数) RoomOtherFee int64 `json:"room_other_fee,omitempty" xml:"room_other_fee,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"` }
RoomSettleInfo
type TaobaoXhotelOrderAlipayfaceCancelAPIRequest ¶
type TaobaoXhotelOrderAlipayfaceCancelAPIRequest struct { model.Params // contains filtered or unexported fields }
线下信用住订单取消 API请求 taobao.xhotel.order.alipayface.cancel
提供给卖家进行线下信用住的订单取消。此接口仅仅支持线下信用住订单的取消
func NewTaobaoXhotelOrderAlipayfaceCancelRequest ¶
func NewTaobaoXhotelOrderAlipayfaceCancelRequest() *TaobaoXhotelOrderAlipayfaceCancelAPIRequest
初始化TaobaoXhotelOrderAlipayfaceCancelAPIRequest对象
func (TaobaoXhotelOrderAlipayfaceCancelAPIRequest) GetApiMethodName ¶
func (r TaobaoXhotelOrderAlipayfaceCancelAPIRequest) GetApiMethodName() string
IRequest interface 方法, 获取Api method
func (TaobaoXhotelOrderAlipayfaceCancelAPIRequest) GetApiParams ¶
func (r TaobaoXhotelOrderAlipayfaceCancelAPIRequest) GetApiParams() url.Values
IRequest interface 方法, 获取API参数
func (TaobaoXhotelOrderAlipayfaceCancelAPIRequest) GetNotifyUrl ¶
func (r TaobaoXhotelOrderAlipayfaceCancelAPIRequest) GetNotifyUrl() string
NotifyUrl Getter
func (TaobaoXhotelOrderAlipayfaceCancelAPIRequest) GetOutId ¶
func (r TaobaoXhotelOrderAlipayfaceCancelAPIRequest) GetOutId() string
OutId Getter
func (TaobaoXhotelOrderAlipayfaceCancelAPIRequest) GetOutUuid ¶
func (r TaobaoXhotelOrderAlipayfaceCancelAPIRequest) GetOutUuid() string
OutUuid Getter
func (TaobaoXhotelOrderAlipayfaceCancelAPIRequest) GetReasonText ¶
func (r TaobaoXhotelOrderAlipayfaceCancelAPIRequest) GetReasonText() string
ReasonText Getter
func (TaobaoXhotelOrderAlipayfaceCancelAPIRequest) GetTid ¶
func (r TaobaoXhotelOrderAlipayfaceCancelAPIRequest) GetTid() int64
Tid Getter
func (*TaobaoXhotelOrderAlipayfaceCancelAPIRequest) SetNotifyUrl ¶
func (r *TaobaoXhotelOrderAlipayfaceCancelAPIRequest) SetNotifyUrl(_notifyUrl string) error
NotifyUrl Setter 预留后续用
func (*TaobaoXhotelOrderAlipayfaceCancelAPIRequest) SetOutId ¶
func (r *TaobaoXhotelOrderAlipayfaceCancelAPIRequest) SetOutId(_outId string) error
OutId Setter 外部订单号
func (*TaobaoXhotelOrderAlipayfaceCancelAPIRequest) SetOutUuid ¶
func (r *TaobaoXhotelOrderAlipayfaceCancelAPIRequest) SetOutUuid(_outUuid string) error
OutUuid Setter 请求流水号
func (*TaobaoXhotelOrderAlipayfaceCancelAPIRequest) SetReasonText ¶
func (r *TaobaoXhotelOrderAlipayfaceCancelAPIRequest) SetReasonText(_reasonText string) error
ReasonText Setter 原因描述
func (*TaobaoXhotelOrderAlipayfaceCancelAPIRequest) SetTid ¶
func (r *TaobaoXhotelOrderAlipayfaceCancelAPIRequest) SetTid(_tid int64) error
Tid Setter 淘宝订单ID,必选
type TaobaoXhotelOrderAlipayfaceCancelAPIResponse ¶
type TaobaoXhotelOrderAlipayfaceCancelAPIResponse struct { model.CommonResponse TaobaoXhotelOrderAlipayfaceCancelAPIResponseModel }
线下信用住订单取消 API返回值 taobao.xhotel.order.alipayface.cancel
提供给卖家进行线下信用住的订单取消。此接口仅仅支持线下信用住订单的取消
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"` }
线下信用住订单取消 成功返回结果
type TaobaoXhotelOrderAlipayfaceCheckAPIRequest ¶
type TaobaoXhotelOrderAlipayfaceCheckAPIRequest struct { model.Params // contains filtered or unexported fields }
线下信用住买家资格校验接口 API请求 taobao.xhotel.order.alipayface.check
接口用于校验买家是否具有使用酒店信用住的资格
func NewTaobaoXhotelOrderAlipayfaceCheckRequest ¶
func NewTaobaoXhotelOrderAlipayfaceCheckRequest() *TaobaoXhotelOrderAlipayfaceCheckAPIRequest
初始化TaobaoXhotelOrderAlipayfaceCheckAPIRequest对象
func (TaobaoXhotelOrderAlipayfaceCheckAPIRequest) GetApiMethodName ¶
func (r TaobaoXhotelOrderAlipayfaceCheckAPIRequest) GetApiMethodName() string
IRequest interface 方法, 获取Api method
func (TaobaoXhotelOrderAlipayfaceCheckAPIRequest) GetApiParams ¶
func (r TaobaoXhotelOrderAlipayfaceCheckAPIRequest) GetApiParams() url.Values
IRequest interface 方法, 获取API参数
func (TaobaoXhotelOrderAlipayfaceCheckAPIRequest) GetEncryptType ¶
func (r TaobaoXhotelOrderAlipayfaceCheckAPIRequest) GetEncryptType() int64
EncryptType Getter
func (TaobaoXhotelOrderAlipayfaceCheckAPIRequest) GetGuestName ¶
func (r TaobaoXhotelOrderAlipayfaceCheckAPIRequest) GetGuestName() string
GuestName Getter
func (TaobaoXhotelOrderAlipayfaceCheckAPIRequest) GetHotelCode ¶
func (r TaobaoXhotelOrderAlipayfaceCheckAPIRequest) GetHotelCode() string
HotelCode Getter
func (TaobaoXhotelOrderAlipayfaceCheckAPIRequest) GetIdNumber ¶
func (r TaobaoXhotelOrderAlipayfaceCheckAPIRequest) GetIdNumber() string
IdNumber Getter
func (TaobaoXhotelOrderAlipayfaceCheckAPIRequest) GetIdType ¶
func (r TaobaoXhotelOrderAlipayfaceCheckAPIRequest) GetIdType() int64
IdType Getter
func (TaobaoXhotelOrderAlipayfaceCheckAPIRequest) GetMobileNo ¶
func (r TaobaoXhotelOrderAlipayfaceCheckAPIRequest) GetMobileNo() string
MobileNo Getter
func (TaobaoXhotelOrderAlipayfaceCheckAPIRequest) GetTotalFee ¶
func (r TaobaoXhotelOrderAlipayfaceCheckAPIRequest) GetTotalFee() int64
TotalFee Getter
func (TaobaoXhotelOrderAlipayfaceCheckAPIRequest) GetType ¶
func (r TaobaoXhotelOrderAlipayfaceCheckAPIRequest) GetType() int64
Type Getter
func (TaobaoXhotelOrderAlipayfaceCheckAPIRequest) GetVendor ¶
func (r TaobaoXhotelOrderAlipayfaceCheckAPIRequest) GetVendor() string
Vendor Getter
func (*TaobaoXhotelOrderAlipayfaceCheckAPIRequest) SetEncryptType ¶
func (r *TaobaoXhotelOrderAlipayfaceCheckAPIRequest) SetEncryptType(_encryptType int64) error
EncryptType Setter 加密方式, 默认0: 不加密, 信息会通过淘宝开放平台传输, 阿里旅行可以获取到具体信息; 1: SHA-1不可逆加密, 阿里旅行方面无法解析到具体信息, 只用于做信息匹配.注意加密后生成40字节长度的字符串
func (*TaobaoXhotelOrderAlipayfaceCheckAPIRequest) SetGuestName ¶
func (r *TaobaoXhotelOrderAlipayfaceCheckAPIRequest) SetGuestName(_guestName string) error
GuestName Setter 入住人姓名
func (*TaobaoXhotelOrderAlipayfaceCheckAPIRequest) SetHotelCode ¶
func (r *TaobaoXhotelOrderAlipayfaceCheckAPIRequest) SetHotelCode(_hotelCode string) error
HotelCode Setter 参数必填,发布到阿里旅行的酒店编码
func (*TaobaoXhotelOrderAlipayfaceCheckAPIRequest) SetIdNumber ¶
func (r *TaobaoXhotelOrderAlipayfaceCheckAPIRequest) SetIdNumber(_idNumber string) error
IdNumber Setter 证件号, 如果加密方式设置为1, 传入加密后的证件号
func (*TaobaoXhotelOrderAlipayfaceCheckAPIRequest) SetIdType ¶
func (r *TaobaoXhotelOrderAlipayfaceCheckAPIRequest) SetIdType(_idType int64) error
IdType Setter 证件类型, 默认0:身份证; 1: 护照; 2:警官证; 3:士兵证; 4: 回乡证
func (*TaobaoXhotelOrderAlipayfaceCheckAPIRequest) SetMobileNo ¶
func (r *TaobaoXhotelOrderAlipayfaceCheckAPIRequest) SetMobileNo(_mobileNo string) error
MobileNo Setter 客人手机号
func (*TaobaoXhotelOrderAlipayfaceCheckAPIRequest) SetTotalFee ¶
func (r *TaobaoXhotelOrderAlipayfaceCheckAPIRequest) SetTotalFee(_totalFee int64) error
TotalFee Setter 总的收费金额,单位为分
func (*TaobaoXhotelOrderAlipayfaceCheckAPIRequest) SetType ¶
func (r *TaobaoXhotelOrderAlipayfaceCheckAPIRequest) SetType(_type int64) error
Type Setter 验证类型.可以不设置. 默认0-信用住下单资格校验;1-已经创建的信用住订单,入住人在checkIn时的资格复审
func (*TaobaoXhotelOrderAlipayfaceCheckAPIRequest) SetVendor ¶
func (r *TaobaoXhotelOrderAlipayfaceCheckAPIRequest) SetVendor(_vendor string) error
Vendor Setter 不清楚请留空, 用于和outHid共同定位一个酒店
type TaobaoXhotelOrderAlipayfaceCheckAPIResponse ¶
type TaobaoXhotelOrderAlipayfaceCheckAPIResponse struct { model.CommonResponse TaobaoXhotelOrderAlipayfaceCheckAPIResponseModel }
线下信用住买家资格校验接口 API返回值 taobao.xhotel.order.alipayface.check
接口用于校验买家是否具有使用酒店信用住的资格
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"` // 当match_condition=false时该字段有意义,用于标示当用户不符合条件时,应该进行的下一步动作. 0或者空: 代表没有下一步动作, 接入方此时可以直接不提示用户走任何线下信用住的流程和文案等; 1: 提示用户进行扫码签约,此时可以把reason字段展示到前台,或者自己定义提示文案 Action int64 `json:"action,omitempty" xml:"action,omitempty"` // 是否符合信用住条件 MatchCondition bool `json:"match_condition,omitempty" xml:"match_condition,omitempty"` // 入参信息回传, 用于校验的证件号码 IdNumber string `json:"id_number,omitempty" xml:"id_number,omitempty"` // existAlipayOrder ExistAlipayOrder bool `json:"exist_alipay_order,omitempty" xml:"exist_alipay_order,omitempty"` }
线下信用住买家资格校验接口 成功返回结果
type TaobaoXhotelOrderAlipayfaceCreateAPIRequest ¶
type TaobaoXhotelOrderAlipayfaceCreateAPIRequest struct { model.Params // contains filtered or unexported fields }
信用住支付创建接口 API请求 taobao.xhotel.order.alipayface.create
用于创建一笔信用住支付,主要应用场景是线下信用住
func NewTaobaoXhotelOrderAlipayfaceCreateRequest ¶
func NewTaobaoXhotelOrderAlipayfaceCreateRequest() *TaobaoXhotelOrderAlipayfaceCreateAPIRequest
初始化TaobaoXhotelOrderAlipayfaceCreateAPIRequest对象
func (TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetAlipayNumber ¶
func (r TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetAlipayNumber() string
AlipayNumber Getter
func (TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetApiMethodName ¶
func (r TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetApiMethodName() string
IRequest interface 方法, 获取Api method
func (TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetApiParams ¶
func (r TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetApiParams() url.Values
IRequest interface 方法, 获取API参数
func (TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetChannel ¶
func (r TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetChannel() string
Channel Getter
func (TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetCheckIn ¶
func (r TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetCheckIn() string
CheckIn Getter
func (TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetCheckOut ¶
func (r TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetCheckOut() string
CheckOut Getter
func (TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetDailyPriceInfo ¶
func (r TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetDailyPriceInfo() string
DailyPriceInfo Getter
func (TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetGuests ¶
func (r TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetGuests() []Guest
Guests Getter
func (TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetHotelCode ¶
func (r TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetHotelCode() string
HotelCode Getter
func (TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetOutOrderId ¶
func (r TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetOutOrderId() string
OutOrderId Getter
func (TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetRateplanName ¶
func (r TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetRateplanName() string
RateplanName Getter
func (TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetRoomQuantity ¶
func (r TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetRoomQuantity() int64
RoomQuantity Getter
func (TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetRoomtypeName ¶
func (r TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetRoomtypeName() string
RoomtypeName Getter
func (TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetSelfCheckin ¶
func (r TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetSelfCheckin() bool
SelfCheckin Getter
func (TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetTotalFee ¶
func (r TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetTotalFee() int64
TotalFee Getter
func (TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetVendor ¶
func (r TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetVendor() string
Vendor Getter
func (*TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetAlipayNumber ¶
func (r *TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetAlipayNumber(_alipayNumber string) error
AlipayNumber Setter 扫描用户支付宝得到的串号, 该字段不为空时会采用串号对应的支付宝账号进行信用住结算
func (*TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetChannel ¶
func (r *TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetChannel(_channel string) error
Channel Setter 订单渠道信息,可以留空
func (*TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetCheckIn ¶
func (r *TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetCheckIn(_checkIn string) error
CheckIn Setter 入住日期
func (*TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetCheckOut ¶
func (r *TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetCheckOut(_checkOut string) error
CheckOut Setter 离店日期(最多允许9天)
func (*TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetDailyPriceInfo ¶
func (r *TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetDailyPriceInfo(_dailyPriceInfo string) error
DailyPriceInfo Setter 每日房价,json格式
func (*TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetGuests ¶
func (r *TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetGuests(_guests []Guest) error
Guests Setter 入住人信息, 注意必须有且只有一个设置为主入住人, 用于信用住结算扣款. 对于java版本的SDK可以使用setGuests(List < Guest > guests)赋值; 对于.net等其他版本SDK可以通过将List < Guest>结构数据转为json串赋值.
func (*TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetHotelCode ¶
func (r *TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetHotelCode(_hotelCode string) error
HotelCode Setter 发布到阿里旅行的酒店编码
func (*TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetOutOrderId ¶
func (r *TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetOutOrderId(_outOrderId string) error
OutOrderId Setter 商家系统的订单号,必须全局唯一,重复会按照相同订单处理
func (*TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetRateplanName ¶
func (r *TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetRateplanName(_rateplanName string) error
RateplanName Setter rateplan名称(不清楚可以留空)
func (*TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetRoomQuantity ¶
func (r *TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetRoomQuantity(_roomQuantity int64) error
RoomQuantity Setter 预定的房间数量
func (*TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetRoomtypeName ¶
func (r *TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetRoomtypeName(_roomtypeName string) error
RoomtypeName Setter 房型名称
func (*TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetSelfCheckin ¶
func (r *TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetSelfCheckin(_selfCheckin bool) error
SelfCheckin Setter 是否为自助入住模式下创建订单,是:true,否:false
func (*TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetTotalFee ¶
func (r *TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetTotalFee(_totalFee int64) error
TotalFee Setter 总房费,单位为分
func (*TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetVendor ¶
func (r *TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetVendor(_vendor string) error
Vendor Setter 不清楚请留空, 用于和outHid共同定位一个酒店
type TaobaoXhotelOrderAlipayfaceCreateAPIResponse ¶
type TaobaoXhotelOrderAlipayfaceCreateAPIResponse struct { model.CommonResponse TaobaoXhotelOrderAlipayfaceCreateAPIResponseModel }
信用住支付创建接口 API返回值 taobao.xhotel.order.alipayface.create
用于创建一笔信用住支付,主要应用场景是线下信用住
type TaobaoXhotelOrderAlipayfaceCreateAPIResponseModel ¶
type TaobaoXhotelOrderAlipayfaceCreateAPIResponseModel struct { XMLName xml.Name `xml:"xhotel_order_alipayface_create_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 阿里旅行生成的订单id,该字段很重要,后续结账等操作都要使用tid Tid int64 `json:"tid,omitempty" xml:"tid,omitempty"` // 阿里旅行为该笔订单提供的最大杂费(不含房费)担保金额,单位为分. 注意该金额指客人除了房费以外可消费的金额上限 GuaranteeAmout int64 `json:"guarantee_amout,omitempty" xml:"guarantee_amout,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"` // 阿里旅行平台提供的优惠金额,单位为分 AlitripDiscount int64 `json:"alitrip_discount,omitempty" xml:"alitrip_discount,omitempty"` // 商家自身提供给该订单的优惠金额,单位为分 SellerDiscount int64 `json:"seller_discount,omitempty" xml:"seller_discount,omitempty"` // 用于签约和扣款的买家淘宝账号 BuyerNick string `json:"buyer_nick,omitempty" xml:"buyer_nick,omitempty"` // 阿里旅行生成的备注信息,用于提示用户一些注意事宜. 请将该字段的信息打印到客人的入住单上. 如果为空代表没有阿里旅行方面的特殊备注 Remark string `json:"remark,omitempty" xml:"remark,omitempty"` }
信用住支付创建接口 成功返回结果
type TaobaoXhotelOrderAlipayfaceExtendAPIRequest ¶
type TaobaoXhotelOrderAlipayfaceExtendAPIRequest struct { model.Params // contains filtered or unexported fields }
信用住订单延住接口 API请求 taobao.xhotel.order.alipayface.extend
信用住订单延住接口,用于将已有的信用住支付订单checkOut和订单金额等更新
func NewTaobaoXhotelOrderAlipayfaceExtendRequest ¶
func NewTaobaoXhotelOrderAlipayfaceExtendRequest() *TaobaoXhotelOrderAlipayfaceExtendAPIRequest
初始化TaobaoXhotelOrderAlipayfaceExtendAPIRequest对象
func (TaobaoXhotelOrderAlipayfaceExtendAPIRequest) GetApiMethodName ¶
func (r TaobaoXhotelOrderAlipayfaceExtendAPIRequest) GetApiMethodName() string
IRequest interface 方法, 获取Api method
func (TaobaoXhotelOrderAlipayfaceExtendAPIRequest) GetApiParams ¶
func (r TaobaoXhotelOrderAlipayfaceExtendAPIRequest) GetApiParams() url.Values
IRequest interface 方法, 获取API参数
func (TaobaoXhotelOrderAlipayfaceExtendAPIRequest) GetCheckOut ¶
func (r TaobaoXhotelOrderAlipayfaceExtendAPIRequest) GetCheckOut() string
CheckOut Getter
func (TaobaoXhotelOrderAlipayfaceExtendAPIRequest) GetExtendDailyPriceInfo ¶
func (r TaobaoXhotelOrderAlipayfaceExtendAPIRequest) GetExtendDailyPriceInfo() string
ExtendDailyPriceInfo Getter
func (TaobaoXhotelOrderAlipayfaceExtendAPIRequest) GetExtendFee ¶
func (r TaobaoXhotelOrderAlipayfaceExtendAPIRequest) GetExtendFee() int64
ExtendFee Getter
func (TaobaoXhotelOrderAlipayfaceExtendAPIRequest) GetOutOrderId ¶
func (r TaobaoXhotelOrderAlipayfaceExtendAPIRequest) GetOutOrderId() string
OutOrderId Getter
func (TaobaoXhotelOrderAlipayfaceExtendAPIRequest) GetTid ¶
func (r TaobaoXhotelOrderAlipayfaceExtendAPIRequest) GetTid() int64
Tid Getter
func (*TaobaoXhotelOrderAlipayfaceExtendAPIRequest) SetCheckOut ¶
func (r *TaobaoXhotelOrderAlipayfaceExtendAPIRequest) SetCheckOut(_checkOut string) error
CheckOut Setter 延住后的离店日期(最多总共入住天数不能超过9间夜)
func (*TaobaoXhotelOrderAlipayfaceExtendAPIRequest) SetExtendDailyPriceInfo ¶
func (r *TaobaoXhotelOrderAlipayfaceExtendAPIRequest) SetExtendDailyPriceInfo(_extendDailyPriceInfo string) error
ExtendDailyPriceInfo Setter 延住日期段的每日房价信息,注意不包括原有的日期房价
func (*TaobaoXhotelOrderAlipayfaceExtendAPIRequest) SetExtendFee ¶
func (r *TaobaoXhotelOrderAlipayfaceExtendAPIRequest) SetExtendFee(_extendFee int64) error
ExtendFee Setter 延住房费,注意不包含原有的房费金额,单位为分
func (*TaobaoXhotelOrderAlipayfaceExtendAPIRequest) SetOutOrderId ¶
func (r *TaobaoXhotelOrderAlipayfaceExtendAPIRequest) SetOutOrderId(_outOrderId string) error
OutOrderId Setter 卖家系统订单号,和tid必须至少传入一个
func (*TaobaoXhotelOrderAlipayfaceExtendAPIRequest) SetTid ¶
func (r *TaobaoXhotelOrderAlipayfaceExtendAPIRequest) SetTid(_tid int64) error
Tid Setter 阿里旅行订单id,和outOrderId必须至少传入一个
type TaobaoXhotelOrderAlipayfaceExtendAPIResponse ¶
type TaobaoXhotelOrderAlipayfaceExtendAPIResponse struct { model.CommonResponse TaobaoXhotelOrderAlipayfaceExtendAPIResponseModel }
信用住订单延住接口 API返回值 taobao.xhotel.order.alipayface.extend
信用住订单延住接口,用于将已有的信用住支付订单checkOut和订单金额等更新
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"` }
信用住订单延住接口 成功返回结果
type TaobaoXhotelOrderOfflineSettlePutAPIRequest ¶
type TaobaoXhotelOrderOfflineSettlePutAPIRequest struct { model.Params // contains filtered or unexported fields }
线下信用住结账专用接口 API请求 taobao.xhotel.order.offline.settle.put
线下信用住结账专用接口
func NewTaobaoXhotelOrderOfflineSettlePutRequest ¶
func NewTaobaoXhotelOrderOfflineSettlePutRequest() *TaobaoXhotelOrderOfflineSettlePutAPIRequest
初始化TaobaoXhotelOrderOfflineSettlePutAPIRequest对象
func (TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetAmount ¶
func (r TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetAmount() int64
Amount Getter
func (TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetApiMethodName ¶
func (r TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetApiMethodName() string
IRequest interface 方法, 获取Api method
func (TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetApiParams ¶
func (r TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetApiParams() url.Values
IRequest interface 方法, 获取API参数
func (TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetCheckOut ¶
func (r TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetCheckOut() string
CheckOut Getter
func (TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetContainGuarantee ¶
func (r TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetContainGuarantee() int64
ContainGuarantee Getter
func (TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetDailyPriceInfo ¶
func (r TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetDailyPriceInfo() string
DailyPriceInfo Getter
func (TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetHotelCode ¶
func (r TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetHotelCode() string
HotelCode Getter
func (TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetMemo ¶
func (r TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetMemo() string
Memo Getter
func (TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetNotifyUrl ¶
func (r TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetNotifyUrl() string
NotifyUrl Getter
func (TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetOtherFee ¶
func (r TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetOtherFee() int64
OtherFee Getter
func (TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetOtherFeeDetail ¶
func (r TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetOtherFeeDetail() string
OtherFeeDetail Getter
func (TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetOutId ¶
func (r TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetOutId() string
OutId Getter
func (TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetOutUuid ¶
func (r TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetOutUuid() string
OutUuid Getter
func (TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetRoomNo ¶
func (r TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetRoomNo() string
RoomNo Getter
func (TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetRoomSettleInfoList ¶
func (r TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetRoomSettleInfoList() []RoomSettleInfo
RoomSettleInfoList Getter
func (TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetTid ¶
func (r TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetTid() int64
Tid Getter
func (TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetTotalRoomFee ¶
func (r TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetTotalRoomFee() int64
TotalRoomFee Getter
func (TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetVendor ¶
func (r TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetVendor() string
Vendor Getter
func (*TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetAmount ¶
func (r *TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetAmount(_amount int64) error
Amount Setter 应收金额,大于0时,直接按照此金额扣款,忽略房费和杂费金额(单位分)
func (*TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetCheckOut ¶
func (r *TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetCheckOut(_checkOut string) error
CheckOut Setter 实际离店日期,用于校验总房费收取
func (*TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetContainGuarantee ¶
func (r *TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetContainGuarantee(_containGuarantee int64) error
ContainGuarantee Setter 此金额是否包含担保金 0:默认值无意义;1:包含;2:不包含(多间房结账必须传入)
func (*TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetDailyPriceInfo ¶
func (r *TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetDailyPriceInfo(_dailyPriceInfo string) error
DailyPriceInfo Setter 每日房价,json格式,如果房价和在阿里旅行下单时发生了变化,必须设置该字段.用于更新阿里旅行端的房价信息,涉及到对用户的优惠信息处理等环节(多间房的时候dailyPriceInfo留空)
func (*TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetHotelCode ¶
func (r *TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetHotelCode(_hotelCode string) error
HotelCode Setter 商家酒店编码
func (*TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetMemo ¶
func (r *TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetMemo(_memo string) error
Memo Setter 备注
func (*TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetNotifyUrl ¶
func (r *TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetNotifyUrl(_notifyUrl string) error
NotifyUrl Setter 请求结果通知地址(暂时无效,无需传入)
func (*TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetOtherFee ¶
func (r *TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetOtherFee(_otherFee int64) error
OtherFee Setter 杂费总额(不能为负数)
func (*TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetOtherFeeDetail ¶
func (r *TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetOtherFeeDetail(_otherFeeDetail string) error
OtherFeeDetail Setter 杂费明细,如果otherFee>0则该字段必须设置,并和杂费金额相吻合
func (*TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetOutId ¶
func (r *TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetOutId(_outId string) error
OutId Setter 商家订单号
func (*TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetOutUuid ¶
func (r *TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetOutUuid(_outUuid string) error
OutUuid Setter 结账请求流水号
func (*TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetRoomNo ¶
func (r *TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetRoomNo(_roomNo string) error
RoomNo Setter 入住房间号
func (*TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetRoomSettleInfoList ¶
func (r *TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetRoomSettleInfoList(_roomSettleInfoList []RoomSettleInfo) error
RoomSettleInfoList Setter 房间明细列表
func (*TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetTid ¶
func (r *TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetTid(_tid int64) error
Tid Setter 淘宝订单id,必须填写
func (*TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetTotalRoomFee ¶
func (r *TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetTotalRoomFee(_totalRoomFee int64) error
TotalRoomFee Setter 房费总额(必须大于0)
func (*TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetVendor ¶
func (r *TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetVendor(_vendor string) error
Vendor Setter 系统商标识
type TaobaoXhotelOrderOfflineSettlePutAPIResponse ¶
type TaobaoXhotelOrderOfflineSettlePutAPIResponse struct { model.CommonResponse TaobaoXhotelOrderOfflineSettlePutAPIResponseModel }
线下信用住结账专用接口 API返回值 taobao.xhotel.order.offline.settle.put
线下信用住结账专用接口
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"` }
线下信用住结账专用接口 成功返回结果
Source Files ¶
- Guest.go
- RoomSettleInfo.go
- TaobaoXhotelOrderAlipayfaceCancelAPIRequest.go
- TaobaoXhotelOrderAlipayfaceCancelAPIResponse.go
- TaobaoXhotelOrderAlipayfaceCheckAPIRequest.go
- TaobaoXhotelOrderAlipayfaceCheckAPIResponse.go
- TaobaoXhotelOrderAlipayfaceCreateAPIRequest.go
- TaobaoXhotelOrderAlipayfaceCreateAPIResponse.go
- TaobaoXhotelOrderAlipayfaceExtendAPIRequest.go
- TaobaoXhotelOrderAlipayfaceExtendAPIResponse.go
- TaobaoXhotelOrderOfflineSettlePutAPIRequest.go
- TaobaoXhotelOrderOfflineSettlePutAPIResponse.go
- doc.go