xhoteloffline

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

酒店线下信用住API model

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

Index

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
}
TaobaoXhotelOrderAlipayfaceCancelAPIRequest

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

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

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

Get NotifyUrl Getter

func (TaobaoXhotelOrderAlipayfaceCancelAPIRequest) GetOutId

Get OutId Getter

func (TaobaoXhotelOrderAlipayfaceCancelAPIRequest) GetOutUuid

Get OutUuid Getter

func (TaobaoXhotelOrderAlipayfaceCancelAPIRequest) GetReasonText

Get ReasonText Getter

func (TaobaoXhotelOrderAlipayfaceCancelAPIRequest) GetTid

Get Tid Getter

func (*TaobaoXhotelOrderAlipayfaceCancelAPIRequest) SetNotifyUrl

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

Set is NotifyUrl Setter 预留后续用

func (*TaobaoXhotelOrderAlipayfaceCancelAPIRequest) SetOutId

Set is OutId Setter 外部订单号

func (*TaobaoXhotelOrderAlipayfaceCancelAPIRequest) SetOutUuid

Set is OutUuid Setter 请求流水号

func (*TaobaoXhotelOrderAlipayfaceCancelAPIRequest) SetReasonText

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

Set is ReasonText Setter 原因描述

func (*TaobaoXhotelOrderAlipayfaceCancelAPIRequest) SetTid

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

type TaobaoXhotelOrderAlipayfaceCancelAPIResponse

type TaobaoXhotelOrderAlipayfaceCancelAPIResponse struct {
	model.CommonResponse
	TaobaoXhotelOrderAlipayfaceCancelAPIResponseModel
}
TaobaoXhotelOrderAlipayfaceCancelAPIResponse

线下信用住订单取消 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"`
}

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

type TaobaoXhotelOrderAlipayfaceCheckAPIRequest

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

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

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

func NewTaobaoXhotelOrderAlipayfaceCheckRequest

func NewTaobaoXhotelOrderAlipayfaceCheckRequest() *TaobaoXhotelOrderAlipayfaceCheckAPIRequest

NewTaobaoXhotelOrderAlipayfaceCheckRequest 初始化TaobaoXhotelOrderAlipayfaceCheckAPIRequest对象

func (TaobaoXhotelOrderAlipayfaceCheckAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoXhotelOrderAlipayfaceCheckAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoXhotelOrderAlipayfaceCheckAPIRequest) GetEncryptType

Get EncryptType Getter

func (TaobaoXhotelOrderAlipayfaceCheckAPIRequest) GetGuestName

Get GuestName Getter

func (TaobaoXhotelOrderAlipayfaceCheckAPIRequest) GetHotelCode

Get HotelCode Getter

func (TaobaoXhotelOrderAlipayfaceCheckAPIRequest) GetIdNumber

Get IdNumber Getter

func (TaobaoXhotelOrderAlipayfaceCheckAPIRequest) GetIdType

Get IdType Getter

func (TaobaoXhotelOrderAlipayfaceCheckAPIRequest) GetMobileNo

Get MobileNo Getter

func (TaobaoXhotelOrderAlipayfaceCheckAPIRequest) GetTotalFee

Get TotalFee Getter

func (TaobaoXhotelOrderAlipayfaceCheckAPIRequest) GetType

Get Type Getter

func (TaobaoXhotelOrderAlipayfaceCheckAPIRequest) GetVendor

Get Vendor Getter

func (*TaobaoXhotelOrderAlipayfaceCheckAPIRequest) SetEncryptType

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

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

func (*TaobaoXhotelOrderAlipayfaceCheckAPIRequest) SetGuestName

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

Set is GuestName Setter 入住人姓名

func (*TaobaoXhotelOrderAlipayfaceCheckAPIRequest) SetHotelCode

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

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

func (*TaobaoXhotelOrderAlipayfaceCheckAPIRequest) SetIdNumber

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

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

func (*TaobaoXhotelOrderAlipayfaceCheckAPIRequest) SetIdType

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

func (*TaobaoXhotelOrderAlipayfaceCheckAPIRequest) SetMobileNo

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

Set is MobileNo Setter 客人手机号

func (*TaobaoXhotelOrderAlipayfaceCheckAPIRequest) SetTotalFee

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

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

func (*TaobaoXhotelOrderAlipayfaceCheckAPIRequest) SetType

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

func (*TaobaoXhotelOrderAlipayfaceCheckAPIRequest) SetVendor

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

type TaobaoXhotelOrderAlipayfaceCheckAPIResponse

type TaobaoXhotelOrderAlipayfaceCheckAPIResponse struct {
	model.CommonResponse
	TaobaoXhotelOrderAlipayfaceCheckAPIResponseModel
}
TaobaoXhotelOrderAlipayfaceCheckAPIResponse

线下信用住买家资格校验接口 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"`
}

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

type TaobaoXhotelOrderAlipayfaceCreateAPIRequest

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

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

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

func NewTaobaoXhotelOrderAlipayfaceCreateRequest

func NewTaobaoXhotelOrderAlipayfaceCreateRequest() *TaobaoXhotelOrderAlipayfaceCreateAPIRequest

NewTaobaoXhotelOrderAlipayfaceCreateRequest 初始化TaobaoXhotelOrderAlipayfaceCreateAPIRequest对象

func (TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetAlipayNumber

Get AlipayNumber Getter

func (TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetChannel

Get Channel Getter

func (TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetCheckIn

Get CheckIn Getter

func (TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetCheckOut

Get CheckOut Getter

func (TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetDailyPriceInfo

Get DailyPriceInfo Getter

func (TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetGuests

Get Guests Getter

func (TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetHotelCode

Get HotelCode Getter

func (TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetOutOrderId

Get OutOrderId Getter

func (TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetRateplanName

Get RateplanName Getter

func (TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetRoomQuantity

Get RoomQuantity Getter

func (TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetRoomtypeName

Get RoomtypeName Getter

func (TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetSelfCheckin

Get SelfCheckin Getter

func (TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetTotalFee

Get TotalFee Getter

func (TaobaoXhotelOrderAlipayfaceCreateAPIRequest) GetVendor

Get Vendor Getter

func (*TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetAlipayNumber

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

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

func (*TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetChannel

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

func (*TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetCheckIn

Set is CheckIn Setter 入住日期

func (*TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetCheckOut

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

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

func (*TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetDailyPriceInfo

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

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

func (*TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetGuests

Set 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

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

func (*TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetOutOrderId

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

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

func (*TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetRateplanName

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

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

func (*TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetRoomQuantity

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

Set is RoomQuantity Setter 预定的房间数量

func (*TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetRoomtypeName

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

Set is RoomtypeName Setter 房型名称

func (*TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetSelfCheckin

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

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

func (*TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetTotalFee

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

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

func (*TaobaoXhotelOrderAlipayfaceCreateAPIRequest) SetVendor

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

type TaobaoXhotelOrderAlipayfaceCreateAPIResponse

type TaobaoXhotelOrderAlipayfaceCreateAPIResponse struct {
	model.CommonResponse
	TaobaoXhotelOrderAlipayfaceCreateAPIResponseModel
}
TaobaoXhotelOrderAlipayfaceCreateAPIResponse

信用住支付创建接口 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"`
}

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

type TaobaoXhotelOrderAlipayfaceExtendAPIRequest

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

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

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

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

Get CheckOut Getter

func (TaobaoXhotelOrderAlipayfaceExtendAPIRequest) GetExtendDailyPriceInfo

func (r TaobaoXhotelOrderAlipayfaceExtendAPIRequest) GetExtendDailyPriceInfo() string

Get ExtendDailyPriceInfo Getter

func (TaobaoXhotelOrderAlipayfaceExtendAPIRequest) GetExtendFee

Get ExtendFee Getter

func (TaobaoXhotelOrderAlipayfaceExtendAPIRequest) GetOutOrderId

Get OutOrderId Getter

func (TaobaoXhotelOrderAlipayfaceExtendAPIRequest) GetTid

Get Tid Getter

func (*TaobaoXhotelOrderAlipayfaceExtendAPIRequest) SetCheckOut

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

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

func (*TaobaoXhotelOrderAlipayfaceExtendAPIRequest) SetExtendDailyPriceInfo

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

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

func (*TaobaoXhotelOrderAlipayfaceExtendAPIRequest) SetExtendFee

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

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

func (*TaobaoXhotelOrderAlipayfaceExtendAPIRequest) SetOutOrderId

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

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

func (*TaobaoXhotelOrderAlipayfaceExtendAPIRequest) SetTid

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

type TaobaoXhotelOrderAlipayfaceExtendAPIResponse

type TaobaoXhotelOrderAlipayfaceExtendAPIResponse struct {
	model.CommonResponse
	TaobaoXhotelOrderAlipayfaceExtendAPIResponseModel
}
TaobaoXhotelOrderAlipayfaceExtendAPIResponse

信用住订单延住接口 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"`
}

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

type TaobaoXhotelOrderOfflineSettlePutAPIRequest

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

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

线下信用住结账专用接口

func NewTaobaoXhotelOrderOfflineSettlePutRequest

func NewTaobaoXhotelOrderOfflineSettlePutRequest() *TaobaoXhotelOrderOfflineSettlePutAPIRequest

NewTaobaoXhotelOrderOfflineSettlePutRequest 初始化TaobaoXhotelOrderOfflineSettlePutAPIRequest对象

func (TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetAmount

Get Amount Getter

func (TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetCheckOut

Get CheckOut Getter

func (TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetContainGuarantee

func (r TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetContainGuarantee() int64

Get ContainGuarantee Getter

func (TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetDailyPriceInfo

Get DailyPriceInfo Getter

func (TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetHotelCode

Get HotelCode Getter

func (TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetMemo

Get Memo Getter

func (TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetNotifyUrl

Get NotifyUrl Getter

func (TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetOtherFee

Get OtherFee Getter

func (TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetOtherFeeDetail

Get OtherFeeDetail Getter

func (TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetOutId

Get OutId Getter

func (TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetOutUuid

Get OutUuid Getter

func (TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetRoomNo

Get RoomNo Getter

func (TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetRoomSettleInfoList

func (r TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetRoomSettleInfoList() []RoomSettleInfo

Get RoomSettleInfoList Getter

func (TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetTid

Get Tid Getter

func (TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetTotalRoomFee

Get TotalRoomFee Getter

func (TaobaoXhotelOrderOfflineSettlePutAPIRequest) GetVendor

Get Vendor Getter

func (*TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetAmount

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

func (*TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetCheckOut

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

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

func (*TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetContainGuarantee

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

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

func (*TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetDailyPriceInfo

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

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

func (*TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetHotelCode

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

Set is HotelCode Setter 商家酒店编码

func (*TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetMemo

Set is Memo Setter 备注

func (*TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetNotifyUrl

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

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

func (*TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetOtherFee

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

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

func (*TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetOtherFeeDetail

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

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

func (*TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetOutId

Set is OutId Setter 商家订单号

func (*TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetOutUuid

Set is OutUuid Setter 结账请求流水号

func (*TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetRoomNo

Set is RoomNo Setter 入住房间号

func (*TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetRoomSettleInfoList

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

Set is RoomSettleInfoList Setter 房间明细列表

func (*TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetTid

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

func (*TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetTotalRoomFee

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

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

func (*TaobaoXhotelOrderOfflineSettlePutAPIRequest) SetVendor

Set is Vendor Setter 系统商标识

type TaobaoXhotelOrderOfflineSettlePutAPIResponse

type TaobaoXhotelOrderOfflineSettlePutAPIResponse struct {
	model.CommonResponse
	TaobaoXhotelOrderOfflineSettlePutAPIResponseModel
}
TaobaoXhotelOrderOfflineSettlePutAPIResponse

线下信用住结账专用接口 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"`
}

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

Jump to

Keyboard shortcuts

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