xhoteloffline

package
v1.3.2 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: 3 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

This section is empty.

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 结构体

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 结构体

type TaobaoxhotelorderalipayfacecancelAPIRequest added in v1.3.1

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

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

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

func NewTaobaoxhotelorderalipayfacecancelRequest added in v1.3.1

func NewTaobaoxhotelorderalipayfacecancelRequest() *TaobaoxhotelorderalipayfacecancelAPIRequest

NewTaobaoxhotelorderalipayfacecancelRequest 初始化TaobaoxhotelorderalipayfacecancelAPIRequest对象

func (TaobaoxhotelorderalipayfacecancelAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoxhotelorderalipayfacecancelAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoxhotelorderalipayfacecancelAPIRequest) GetNotifyUrl added in v1.3.1

GetNotifyUrl NotifyUrl Getter

func (TaobaoxhotelorderalipayfacecancelAPIRequest) GetOutId added in v1.3.1

GetOutId OutId Getter

func (TaobaoxhotelorderalipayfacecancelAPIRequest) GetOutUuid added in v1.3.1

GetOutUuid OutUuid Getter

func (TaobaoxhotelorderalipayfacecancelAPIRequest) GetRawParams added in v1.3.1

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

func (TaobaoxhotelorderalipayfacecancelAPIRequest) GetReasonText added in v1.3.1

GetReasonText ReasonText Getter

func (TaobaoxhotelorderalipayfacecancelAPIRequest) GetTid added in v1.3.1

GetTid Tid Getter

func (*TaobaoxhotelorderalipayfacecancelAPIRequest) SetNotifyUrl added in v1.3.1

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

SetNotifyUrl is NotifyUrl Setter 预留后续用

func (*TaobaoxhotelorderalipayfacecancelAPIRequest) SetOutId added in v1.3.1

SetOutId is OutId Setter 外部订单号

func (*TaobaoxhotelorderalipayfacecancelAPIRequest) SetOutUuid added in v1.3.1

SetOutUuid is OutUuid Setter 请求流水号

func (*TaobaoxhotelorderalipayfacecancelAPIRequest) SetReasonText added in v1.3.1

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

SetReasonText is ReasonText Setter 原因描述

func (*TaobaoxhotelorderalipayfacecancelAPIRequest) SetTid added in v1.3.1

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

type TaobaoxhotelorderalipayfacecancelAPIResponse added in v1.3.1

type TaobaoxhotelorderalipayfacecancelAPIResponse struct {
	model.CommonResponse
	TaobaoxhotelorderalipayfacecancelAPIResponseModel
}

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

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

type TaobaoxhotelorderalipayfacecancelAPIResponseModel added in v1.3.1

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 线下信用住订单取消 成功返回结果

type TaobaoxhotelorderalipayfacecheckAPIRequest added in v1.3.1

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

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

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

func NewTaobaoxhotelorderalipayfacecheckRequest added in v1.3.1

func NewTaobaoxhotelorderalipayfacecheckRequest() *TaobaoxhotelorderalipayfacecheckAPIRequest

NewTaobaoxhotelorderalipayfacecheckRequest 初始化TaobaoxhotelorderalipayfacecheckAPIRequest对象

func (TaobaoxhotelorderalipayfacecheckAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoxhotelorderalipayfacecheckAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoxhotelorderalipayfacecheckAPIRequest) GetEncryptType added in v1.3.1

GetEncryptType EncryptType Getter

func (TaobaoxhotelorderalipayfacecheckAPIRequest) GetGuestName added in v1.3.1

GetGuestName GuestName Getter

func (TaobaoxhotelorderalipayfacecheckAPIRequest) GetHotelCode added in v1.3.1

GetHotelCode HotelCode Getter

func (TaobaoxhotelorderalipayfacecheckAPIRequest) GetIdNumber added in v1.3.1

GetIdNumber IdNumber Getter

func (TaobaoxhotelorderalipayfacecheckAPIRequest) GetIdType added in v1.3.1

GetIdType IdType Getter

func (TaobaoxhotelorderalipayfacecheckAPIRequest) GetMobileNo added in v1.3.1

GetMobileNo MobileNo Getter

func (TaobaoxhotelorderalipayfacecheckAPIRequest) GetRawParams added in v1.3.1

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

func (TaobaoxhotelorderalipayfacecheckAPIRequest) GetTotalFee added in v1.3.1

GetTotalFee TotalFee Getter

func (TaobaoxhotelorderalipayfacecheckAPIRequest) GetType added in v1.3.1

GetType Type Getter

func (TaobaoxhotelorderalipayfacecheckAPIRequest) GetVendor added in v1.3.1

GetVendor Vendor Getter

func (*TaobaoxhotelorderalipayfacecheckAPIRequest) SetEncryptType added in v1.3.1

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

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

func (*TaobaoxhotelorderalipayfacecheckAPIRequest) SetGuestName added in v1.3.1

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

SetGuestName is GuestName Setter 入住人姓名

func (*TaobaoxhotelorderalipayfacecheckAPIRequest) SetHotelCode added in v1.3.1

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

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

func (*TaobaoxhotelorderalipayfacecheckAPIRequest) SetIdNumber added in v1.3.1

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

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

func (*TaobaoxhotelorderalipayfacecheckAPIRequest) SetIdType added in v1.3.1

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

func (*TaobaoxhotelorderalipayfacecheckAPIRequest) SetMobileNo added in v1.3.1

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

SetMobileNo is MobileNo Setter 客人手机号

func (*TaobaoxhotelorderalipayfacecheckAPIRequest) SetTotalFee added in v1.3.1

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

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

func (*TaobaoxhotelorderalipayfacecheckAPIRequest) SetType added in v1.3.1

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

func (*TaobaoxhotelorderalipayfacecheckAPIRequest) SetVendor added in v1.3.1

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

type TaobaoxhotelorderalipayfacecheckAPIResponse added in v1.3.1

type TaobaoxhotelorderalipayfacecheckAPIResponse struct {
	model.CommonResponse
	TaobaoxhotelorderalipayfacecheckAPIResponseModel
}

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

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

type TaobaoxhotelorderalipayfacecheckAPIResponseModel added in v1.3.1

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 线下信用住买家资格校验接口 成功返回结果

type TaobaoxhotelorderalipayfacecreateAPIRequest added in v1.3.1

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

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

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

func NewTaobaoxhotelorderalipayfacecreateRequest added in v1.3.1

func NewTaobaoxhotelorderalipayfacecreateRequest() *TaobaoxhotelorderalipayfacecreateAPIRequest

NewTaobaoxhotelorderalipayfacecreateRequest 初始化TaobaoxhotelorderalipayfacecreateAPIRequest对象

func (TaobaoxhotelorderalipayfacecreateAPIRequest) GetAlipayNumber added in v1.3.1

GetAlipayNumber AlipayNumber Getter

func (TaobaoxhotelorderalipayfacecreateAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoxhotelorderalipayfacecreateAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoxhotelorderalipayfacecreateAPIRequest) GetChannel added in v1.3.1

GetChannel Channel Getter

func (TaobaoxhotelorderalipayfacecreateAPIRequest) GetCheckIn added in v1.3.1

GetCheckIn CheckIn Getter

func (TaobaoxhotelorderalipayfacecreateAPIRequest) GetCheckOut added in v1.3.1

GetCheckOut CheckOut Getter

func (TaobaoxhotelorderalipayfacecreateAPIRequest) GetDailyPriceInfo added in v1.3.1

GetDailyPriceInfo DailyPriceInfo Getter

func (TaobaoxhotelorderalipayfacecreateAPIRequest) GetGuests added in v1.3.1

GetGuests Guests Getter

func (TaobaoxhotelorderalipayfacecreateAPIRequest) GetHotelCode added in v1.3.1

GetHotelCode HotelCode Getter

func (TaobaoxhotelorderalipayfacecreateAPIRequest) GetOutOrderId added in v1.3.1

GetOutOrderId OutOrderId Getter

func (TaobaoxhotelorderalipayfacecreateAPIRequest) GetRateplanName added in v1.3.1

GetRateplanName RateplanName Getter

func (TaobaoxhotelorderalipayfacecreateAPIRequest) GetRawParams added in v1.3.1

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

func (TaobaoxhotelorderalipayfacecreateAPIRequest) GetRoomQuantity added in v1.3.1

GetRoomQuantity RoomQuantity Getter

func (TaobaoxhotelorderalipayfacecreateAPIRequest) GetRoomtypeName added in v1.3.1

GetRoomtypeName RoomtypeName Getter

func (TaobaoxhotelorderalipayfacecreateAPIRequest) GetSelfCheckin added in v1.3.1

GetSelfCheckin SelfCheckin Getter

func (TaobaoxhotelorderalipayfacecreateAPIRequest) GetTotalFee added in v1.3.1

GetTotalFee TotalFee Getter

func (TaobaoxhotelorderalipayfacecreateAPIRequest) GetVendor added in v1.3.1

GetVendor Vendor Getter

func (*TaobaoxhotelorderalipayfacecreateAPIRequest) SetAlipayNumber added in v1.3.1

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

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

func (*TaobaoxhotelorderalipayfacecreateAPIRequest) SetChannel added in v1.3.1

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

func (*TaobaoxhotelorderalipayfacecreateAPIRequest) SetCheckIn added in v1.3.1

SetCheckIn is CheckIn Setter 入住日期

func (*TaobaoxhotelorderalipayfacecreateAPIRequest) SetCheckOut added in v1.3.1

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

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

func (*TaobaoxhotelorderalipayfacecreateAPIRequest) SetDailyPriceInfo added in v1.3.1

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

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

func (*TaobaoxhotelorderalipayfacecreateAPIRequest) SetGuests added in v1.3.1

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

func (*TaobaoxhotelorderalipayfacecreateAPIRequest) SetHotelCode added in v1.3.1

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

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

func (*TaobaoxhotelorderalipayfacecreateAPIRequest) SetOutOrderId added in v1.3.1

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

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

func (*TaobaoxhotelorderalipayfacecreateAPIRequest) SetRateplanName added in v1.3.1

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

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

func (*TaobaoxhotelorderalipayfacecreateAPIRequest) SetRoomQuantity added in v1.3.1

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

SetRoomQuantity is RoomQuantity Setter 预定的房间数量

func (*TaobaoxhotelorderalipayfacecreateAPIRequest) SetRoomtypeName added in v1.3.1

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

SetRoomtypeName is RoomtypeName Setter 房型名称

func (*TaobaoxhotelorderalipayfacecreateAPIRequest) SetSelfCheckin added in v1.3.1

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

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

func (*TaobaoxhotelorderalipayfacecreateAPIRequest) SetTotalFee added in v1.3.1

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

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

func (*TaobaoxhotelorderalipayfacecreateAPIRequest) SetVendor added in v1.3.1

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

type TaobaoxhotelorderalipayfacecreateAPIResponse added in v1.3.1

type TaobaoxhotelorderalipayfacecreateAPIResponse struct {
	model.CommonResponse
	TaobaoxhotelorderalipayfacecreateAPIResponseModel
}

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

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

type TaobaoxhotelorderalipayfacecreateAPIResponseModel added in v1.3.1

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 信用住支付创建接口 成功返回结果

type TaobaoxhotelorderalipayfaceextendAPIRequest added in v1.3.1

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

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

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

func NewTaobaoxhotelorderalipayfaceextendRequest added in v1.3.1

func NewTaobaoxhotelorderalipayfaceextendRequest() *TaobaoxhotelorderalipayfaceextendAPIRequest

NewTaobaoxhotelorderalipayfaceextendRequest 初始化TaobaoxhotelorderalipayfaceextendAPIRequest对象

func (TaobaoxhotelorderalipayfaceextendAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoxhotelorderalipayfaceextendAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoxhotelorderalipayfaceextendAPIRequest) GetCheckOut added in v1.3.1

GetCheckOut CheckOut Getter

func (TaobaoxhotelorderalipayfaceextendAPIRequest) GetExtendDailyPriceInfo added in v1.3.1

func (r TaobaoxhotelorderalipayfaceextendAPIRequest) GetExtendDailyPriceInfo() string

GetExtendDailyPriceInfo ExtendDailyPriceInfo Getter

func (TaobaoxhotelorderalipayfaceextendAPIRequest) GetExtendFee added in v1.3.1

GetExtendFee ExtendFee Getter

func (TaobaoxhotelorderalipayfaceextendAPIRequest) GetOutOrderId added in v1.3.1

GetOutOrderId OutOrderId Getter

func (TaobaoxhotelorderalipayfaceextendAPIRequest) GetRawParams added in v1.3.1

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

func (TaobaoxhotelorderalipayfaceextendAPIRequest) GetTid added in v1.3.1

GetTid Tid Getter

func (*TaobaoxhotelorderalipayfaceextendAPIRequest) SetCheckOut added in v1.3.1

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

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

func (*TaobaoxhotelorderalipayfaceextendAPIRequest) SetExtendDailyPriceInfo added in v1.3.1

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

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

func (*TaobaoxhotelorderalipayfaceextendAPIRequest) SetExtendFee added in v1.3.1

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

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

func (*TaobaoxhotelorderalipayfaceextendAPIRequest) SetOutOrderId added in v1.3.1

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

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

func (*TaobaoxhotelorderalipayfaceextendAPIRequest) SetTid added in v1.3.1

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

type TaobaoxhotelorderalipayfaceextendAPIResponse added in v1.3.1

type TaobaoxhotelorderalipayfaceextendAPIResponse struct {
	model.CommonResponse
	TaobaoxhotelorderalipayfaceextendAPIResponseModel
}

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

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

type TaobaoxhotelorderalipayfaceextendAPIResponseModel added in v1.3.1

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 信用住订单延住接口 成功返回结果

type TaobaoxhotelorderofflinesettleputAPIRequest added in v1.3.1

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

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

线下信用住结账专用接口

func NewTaobaoxhotelorderofflinesettleputRequest added in v1.3.1

func NewTaobaoxhotelorderofflinesettleputRequest() *TaobaoxhotelorderofflinesettleputAPIRequest

NewTaobaoxhotelorderofflinesettleputRequest 初始化TaobaoxhotelorderofflinesettleputAPIRequest对象

func (TaobaoxhotelorderofflinesettleputAPIRequest) GetAmount added in v1.3.1

GetAmount Amount Getter

func (TaobaoxhotelorderofflinesettleputAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoxhotelorderofflinesettleputAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoxhotelorderofflinesettleputAPIRequest) GetCheckOut added in v1.3.1

GetCheckOut CheckOut Getter

func (TaobaoxhotelorderofflinesettleputAPIRequest) GetContainGuarantee added in v1.3.1

func (r TaobaoxhotelorderofflinesettleputAPIRequest) GetContainGuarantee() int64

GetContainGuarantee ContainGuarantee Getter

func (TaobaoxhotelorderofflinesettleputAPIRequest) GetDailyPriceInfo added in v1.3.1

GetDailyPriceInfo DailyPriceInfo Getter

func (TaobaoxhotelorderofflinesettleputAPIRequest) GetHotelCode added in v1.3.1

GetHotelCode HotelCode Getter

func (TaobaoxhotelorderofflinesettleputAPIRequest) GetMemo added in v1.3.1

GetMemo Memo Getter

func (TaobaoxhotelorderofflinesettleputAPIRequest) GetNotifyUrl added in v1.3.1

GetNotifyUrl NotifyUrl Getter

func (TaobaoxhotelorderofflinesettleputAPIRequest) GetOtherFee added in v1.3.1

GetOtherFee OtherFee Getter

func (TaobaoxhotelorderofflinesettleputAPIRequest) GetOtherFeeDetail added in v1.3.1

GetOtherFeeDetail OtherFeeDetail Getter

func (TaobaoxhotelorderofflinesettleputAPIRequest) GetOutId added in v1.3.1

GetOutId OutId Getter

func (TaobaoxhotelorderofflinesettleputAPIRequest) GetOutUuid added in v1.3.1

GetOutUuid OutUuid Getter

func (TaobaoxhotelorderofflinesettleputAPIRequest) GetRawParams added in v1.3.1

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

func (TaobaoxhotelorderofflinesettleputAPIRequest) GetRoomNo added in v1.3.1

GetRoomNo RoomNo Getter

func (TaobaoxhotelorderofflinesettleputAPIRequest) GetRoomSettleInfoList added in v1.3.1

func (r TaobaoxhotelorderofflinesettleputAPIRequest) GetRoomSettleInfoList() []RoomSettleInfo

GetRoomSettleInfoList RoomSettleInfoList Getter

func (TaobaoxhotelorderofflinesettleputAPIRequest) GetTid added in v1.3.1

GetTid Tid Getter

func (TaobaoxhotelorderofflinesettleputAPIRequest) GetTotalRoomFee added in v1.3.1

GetTotalRoomFee TotalRoomFee Getter

func (TaobaoxhotelorderofflinesettleputAPIRequest) GetVendor added in v1.3.1

GetVendor Vendor Getter

func (*TaobaoxhotelorderofflinesettleputAPIRequest) SetAmount added in v1.3.1

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

func (*TaobaoxhotelorderofflinesettleputAPIRequest) SetCheckOut added in v1.3.1

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

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

func (*TaobaoxhotelorderofflinesettleputAPIRequest) SetContainGuarantee added in v1.3.1

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

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

func (*TaobaoxhotelorderofflinesettleputAPIRequest) SetDailyPriceInfo added in v1.3.1

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

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

func (*TaobaoxhotelorderofflinesettleputAPIRequest) SetHotelCode added in v1.3.1

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

SetHotelCode is HotelCode Setter 商家酒店编码

func (*TaobaoxhotelorderofflinesettleputAPIRequest) SetMemo added in v1.3.1

SetMemo is Memo Setter 备注

func (*TaobaoxhotelorderofflinesettleputAPIRequest) SetNotifyUrl added in v1.3.1

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

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

func (*TaobaoxhotelorderofflinesettleputAPIRequest) SetOtherFee added in v1.3.1

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

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

func (*TaobaoxhotelorderofflinesettleputAPIRequest) SetOtherFeeDetail added in v1.3.1

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

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

func (*TaobaoxhotelorderofflinesettleputAPIRequest) SetOutId added in v1.3.1

SetOutId is OutId Setter 商家订单号

func (*TaobaoxhotelorderofflinesettleputAPIRequest) SetOutUuid added in v1.3.1

SetOutUuid is OutUuid Setter 结账请求流水号

func (*TaobaoxhotelorderofflinesettleputAPIRequest) SetRoomNo added in v1.3.1

SetRoomNo is RoomNo Setter 入住房间号

func (*TaobaoxhotelorderofflinesettleputAPIRequest) SetRoomSettleInfoList added in v1.3.1

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

SetRoomSettleInfoList is RoomSettleInfoList Setter 房间明细列表

func (*TaobaoxhotelorderofflinesettleputAPIRequest) SetTid added in v1.3.1

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

func (*TaobaoxhotelorderofflinesettleputAPIRequest) SetTotalRoomFee added in v1.3.1

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

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

func (*TaobaoxhotelorderofflinesettleputAPIRequest) SetVendor added in v1.3.1

SetVendor is Vendor Setter 系统商标识

type TaobaoxhotelorderofflinesettleputAPIResponse added in v1.3.1

type TaobaoxhotelorderofflinesettleputAPIResponse struct {
	model.CommonResponse
	TaobaoxhotelorderofflinesettleputAPIResponseModel
}

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

线下信用住结账专用接口

type TaobaoxhotelorderofflinesettleputAPIResponseModel added in v1.3.1

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 线下信用住结账专用接口 成功返回结果

Jump to

Keyboard shortcuts

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