xhotelcrm

package
v1.3.1 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 xhotelcrm 包含酒店会员API相关结构体

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CouponActiveParam added in v1.2.8

type CouponActiveParam struct {
	// 券有效期截止时间
	CouponEndDate string `json:"coupon_end_date,omitempty" xml:"coupon_end_date,omitempty"`
	// 券实例ID
	CouponInstanceId string `json:"coupon_instance_id,omitempty" xml:"coupon_instance_id,omitempty"`
	// 券有效期考试时间
	CouponStartDate string `json:"coupon_start_date,omitempty" xml:"coupon_start_date,omitempty"`
}

CouponActiveParam 结构体

type HmemberResult added in v1.3.1

type HmemberResult struct {
	// 错误码
	ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"`
	// 信息
	ResultInfo string `json:"result_info,omitempty" xml:"result_info,omitempty"`
	// 数据
	Module *MerchantMemberBindInfoVo `json:"module,omitempty" xml:"module,omitempty"`
	// 状态
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

HmemberResult 结构体

type MerchantMemberBindInfoVo added in v1.2.8

type MerchantMemberBindInfoVo struct {
	// 渠道
	Fpt string `json:"fpt,omitempty" xml:"fpt,omitempty"`
	// 注册时间
	Time string `json:"time,omitempty" xml:"time,omitempty"`
	// 1.未注册/非支付宝端注册的会员2.未注册成功3.非新会员
	Reason string `json:"reason,omitempty" xml:"reason,omitempty"`
	// 是否完成任务
	Status bool `json:"status,omitempty" xml:"status,omitempty"`
}

MerchantMemberBindInfoVo 结构体

type MsdResult added in v1.2.8

type MsdResult struct {
	// 系统异常
	ErrMsg string `json:"err_msg,omitempty" xml:"err_msg,omitempty"`
	// false
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
	// S_SYS_EXCEPTION
	ErrCode bool `json:"err_code,omitempty" xml:"err_code,omitempty"`
}

MsdResult 结构体

type SendCouponParam added in v1.2.8

type SendCouponParam struct {
	// 会员卡号
	MemberCardNo string `json:"member_card_no,omitempty" xml:"member_card_no,omitempty"`
	// 券有效期截止时间
	CouponEndDate string `json:"coupon_end_date,omitempty" xml:"coupon_end_date,omitempty"`
	// 券实例ID
	CouponInstanceId string `json:"coupon_instance_id,omitempty" xml:"coupon_instance_id,omitempty"`
	// 券有效期开始时间
	CouponStartDate string `json:"coupon_start_date,omitempty" xml:"coupon_start_date,omitempty"`
}

SendCouponParam 结构体

type StateSynchronizeParam added in v1.2.8

type StateSynchronizeParam struct {
	// 券信息
	CouponActiveParamList []CouponActiveParam `json:"coupon_active_param_list,omitempty" xml:"coupon_active_param_list>coupon_active_param,omitempty"`
	// 卡有效期截止时间
	CardEndDate string `json:"card_end_date,omitempty" xml:"card_end_date,omitempty"`
	// 卡有效期开始时间
	CardStartDate string `json:"card_start_date,omitempty" xml:"card_start_date,omitempty"`
	// action类型
	OpType string `json:"op_type,omitempty" xml:"op_type,omitempty"`
	// action渠道
	Channel string `json:"channel,omitempty" xml:"channel,omitempty"`
	// 券实例ID
	CouponInstanceId string `json:"coupon_instance_id,omitempty" xml:"coupon_instance_id,omitempty"`
	// 飞猪订单号
	FliggyOrderId string `json:"fliggy_order_id,omitempty" xml:"fliggy_order_id,omitempty"`
	// 卡实例ID
	CardInstanceId string `json:"card_instance_id,omitempty" xml:"card_instance_id,omitempty"`
	// 会员卡号
	MemberCardNo string `json:"member_card_no,omitempty" xml:"member_card_no,omitempty"`
}

StateSynchronizeParam 结构体

type TaobaoxhotelmemberalipayqueryAPIRequest added in v1.3.1

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

TaobaoxhotelmemberalipayqueryAPIRequest 希尔顿会员查询 API请求 taobao.xhotel.member.alipay.query

希尔顿会员查询

func NewTaobaoxhotelmemberalipayqueryRequest added in v1.3.1

func NewTaobaoxhotelmemberalipayqueryRequest() *TaobaoxhotelmemberalipayqueryAPIRequest

NewTaobaoxhotelmemberalipayqueryRequest 初始化TaobaoxhotelmemberalipayqueryAPIRequest对象

func (TaobaoxhotelmemberalipayqueryAPIRequest) GetAlipayUserId added in v1.3.1

func (r TaobaoxhotelmemberalipayqueryAPIRequest) GetAlipayUserId() int64

GetAlipayUserId AlipayUserId Getter

func (TaobaoxhotelmemberalipayqueryAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoxhotelmemberalipayqueryAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoxhotelmemberalipayqueryAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoxhotelmemberalipayqueryAPIRequest) GetFpt added in v1.3.1

GetFpt Fpt Getter

func (TaobaoxhotelmemberalipayqueryAPIRequest) GetRawParams added in v1.3.1

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

func (*TaobaoxhotelmemberalipayqueryAPIRequest) SetAlipayUserId added in v1.3.1

func (r *TaobaoxhotelmemberalipayqueryAPIRequest) SetAlipayUserId(_alipayUserId int64) error

SetAlipayUserId is AlipayUserId Setter 支付宝id

func (*TaobaoxhotelmemberalipayqueryAPIRequest) SetFpt added in v1.3.1

SetFpt is Fpt Setter 渠道

type TaobaoxhotelmemberalipayqueryAPIResponse added in v1.3.1

type TaobaoxhotelmemberalipayqueryAPIResponse struct {
	model.CommonResponse
	TaobaoxhotelmemberalipayqueryAPIResponseModel
}

TaobaoxhotelmemberalipayqueryAPIResponse 希尔顿会员查询 API返回值 taobao.xhotel.member.alipay.query

希尔顿会员查询

type TaobaoxhotelmemberalipayqueryAPIResponseModel added in v1.3.1

type TaobaoxhotelmemberalipayqueryAPIResponseModel struct {
	XMLName xml.Name `xml:"xhotel_member_alipay_query_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 结果
	Result *HmemberResult `json:"result,omitempty" xml:"result,omitempty"`
}

TaobaoxhotelmemberalipayqueryAPIResponseModel is 希尔顿会员查询 成功返回结果

type TaobaoxhotelmemberderbycouponsendAPIRequest added in v1.3.1

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

TaobaoxhotelmemberderbycouponsendAPIRequest 发券 API请求 taobao.xhotel.member.derby.coupon.send

发券

func NewTaobaoxhotelmemberderbycouponsendRequest added in v1.3.1

func NewTaobaoxhotelmemberderbycouponsendRequest() *TaobaoxhotelmemberderbycouponsendAPIRequest

NewTaobaoxhotelmemberderbycouponsendRequest 初始化TaobaoxhotelmemberderbycouponsendAPIRequest对象

func (TaobaoxhotelmemberderbycouponsendAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoxhotelmemberderbycouponsendAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoxhotelmemberderbycouponsendAPIRequest) GetParam added in v1.3.1

GetParam Param Getter

func (TaobaoxhotelmemberderbycouponsendAPIRequest) GetRawParams added in v1.3.1

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

func (*TaobaoxhotelmemberderbycouponsendAPIRequest) SetParam added in v1.3.1

SetParam is Param Setter 入参模型

type TaobaoxhotelmemberderbycouponsendAPIResponse added in v1.3.1

type TaobaoxhotelmemberderbycouponsendAPIResponse struct {
	model.CommonResponse
	TaobaoxhotelmemberderbycouponsendAPIResponseModel
}

TaobaoxhotelmemberderbycouponsendAPIResponse 发券 API返回值 taobao.xhotel.member.derby.coupon.send

发券

type TaobaoxhotelmemberderbycouponsendAPIResponseModel added in v1.3.1

type TaobaoxhotelmemberderbycouponsendAPIResponseModel struct {
	XMLName xml.Name `xml:"xhotel_member_derby_coupon_send_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 结果
	Result *MsdResult `json:"result,omitempty" xml:"result,omitempty"`
}

TaobaoxhotelmemberderbycouponsendAPIResponseModel is 发券 成功返回结果

type TaobaoxhotelmemberderbystatesyncAPIRequest added in v1.3.1

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

TaobaoxhotelmemberderbystatesyncAPIRequest 德比侧同步卡、券状态接口 API请求 taobao.xhotel.member.derby.state.sync

德比侧同步卡、券状态接口

func NewTaobaoxhotelmemberderbystatesyncRequest added in v1.3.1

func NewTaobaoxhotelmemberderbystatesyncRequest() *TaobaoxhotelmemberderbystatesyncAPIRequest

NewTaobaoxhotelmemberderbystatesyncRequest 初始化TaobaoxhotelmemberderbystatesyncAPIRequest对象

func (TaobaoxhotelmemberderbystatesyncAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoxhotelmemberderbystatesyncAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoxhotelmemberderbystatesyncAPIRequest) GetParam added in v1.3.1

GetParam Param Getter

func (TaobaoxhotelmemberderbystatesyncAPIRequest) GetRawParams added in v1.3.1

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

func (*TaobaoxhotelmemberderbystatesyncAPIRequest) SetParam added in v1.3.1

SetParam is Param Setter 入参

type TaobaoxhotelmemberderbystatesyncAPIResponse added in v1.3.1

type TaobaoxhotelmemberderbystatesyncAPIResponse struct {
	model.CommonResponse
	TaobaoxhotelmemberderbystatesyncAPIResponseModel
}

TaobaoxhotelmemberderbystatesyncAPIResponse 德比侧同步卡、券状态接口 API返回值 taobao.xhotel.member.derby.state.sync

德比侧同步卡、券状态接口

type TaobaoxhotelmemberderbystatesyncAPIResponseModel added in v1.3.1

type TaobaoxhotelmemberderbystatesyncAPIResponseModel struct {
	XMLName xml.Name `xml:"xhotel_member_derby_state_sync_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 结果
	Result *MsdResult `json:"result,omitempty" xml:"result,omitempty"`
}

TaobaoxhotelmemberderbystatesyncAPIResponseModel is 德比侧同步卡、券状态接口 成功返回结果

type TaobaoxhotelpotentialmemberbindAPIRequest added in v1.3.1

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

TaobaoxhotelpotentialmemberbindAPIRequest 飞猪酒店商家会员绑定 API请求 taobao.xhotel.potential.member.bind

支持互通商家发起会员绑定

func NewTaobaoxhotelpotentialmemberbindRequest added in v1.3.1

func NewTaobaoxhotelpotentialmemberbindRequest() *TaobaoxhotelpotentialmemberbindAPIRequest

NewTaobaoxhotelpotentialmemberbindRequest 初始化TaobaoxhotelpotentialmemberbindAPIRequest对象

func (TaobaoxhotelpotentialmemberbindAPIRequest) GetAge added in v1.3.1

GetAge Age Getter

func (TaobaoxhotelpotentialmemberbindAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoxhotelpotentialmemberbindAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoxhotelpotentialmemberbindAPIRequest) GetCardNo added in v1.3.1

GetCardNo CardNo Getter

func (TaobaoxhotelpotentialmemberbindAPIRequest) GetCity added in v1.3.1

GetCity City Getter

func (TaobaoxhotelpotentialmemberbindAPIRequest) GetEmail added in v1.3.1

GetEmail Email Getter

func (TaobaoxhotelpotentialmemberbindAPIRequest) GetFirstName added in v1.3.1

GetFirstName FirstName Getter

func (TaobaoxhotelpotentialmemberbindAPIRequest) GetFromDate added in v1.3.1

GetFromDate FromDate Getter

func (TaobaoxhotelpotentialmemberbindAPIRequest) GetGrade added in v1.3.1

GetGrade Grade Getter

func (TaobaoxhotelpotentialmemberbindAPIRequest) GetLastName added in v1.3.1

GetLastName LastName Getter

func (TaobaoxhotelpotentialmemberbindAPIRequest) GetNativePlace added in v1.3.1

GetNativePlace NativePlace Getter

func (TaobaoxhotelpotentialmemberbindAPIRequest) GetPhone added in v1.3.1

GetPhone Phone Getter

func (TaobaoxhotelpotentialmemberbindAPIRequest) GetRawParams added in v1.3.1

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

func (TaobaoxhotelpotentialmemberbindAPIRequest) GetRegisterDate added in v1.3.1

GetRegisterDate RegisterDate Getter

func (TaobaoxhotelpotentialmemberbindAPIRequest) GetSex added in v1.3.1

GetSex Sex Getter

func (TaobaoxhotelpotentialmemberbindAPIRequest) GetToDate added in v1.3.1

GetToDate ToDate Getter

func (*TaobaoxhotelpotentialmemberbindAPIRequest) SetAge added in v1.3.1

SetAge is Age Setter 年龄

func (*TaobaoxhotelpotentialmemberbindAPIRequest) SetCardNo added in v1.3.1

SetCardNo is CardNo Setter 卡号

func (*TaobaoxhotelpotentialmemberbindAPIRequest) SetCity added in v1.3.1

SetCity is City Setter 城市

func (*TaobaoxhotelpotentialmemberbindAPIRequest) SetEmail added in v1.3.1

SetEmail is Email Setter 邮箱

func (*TaobaoxhotelpotentialmemberbindAPIRequest) SetFirstName added in v1.3.1

func (r *TaobaoxhotelpotentialmemberbindAPIRequest) SetFirstName(_firstName string) error

SetFirstName is FirstName Setter 名

func (*TaobaoxhotelpotentialmemberbindAPIRequest) SetFromDate added in v1.3.1

func (r *TaobaoxhotelpotentialmemberbindAPIRequest) SetFromDate(_fromDate string) error

SetFromDate is FromDate Setter 生效时间

func (*TaobaoxhotelpotentialmemberbindAPIRequest) SetGrade added in v1.3.1

SetGrade is Grade Setter 等级(V1,V2,V3)

func (*TaobaoxhotelpotentialmemberbindAPIRequest) SetLastName added in v1.3.1

func (r *TaobaoxhotelpotentialmemberbindAPIRequest) SetLastName(_lastName string) error

SetLastName is LastName Setter 姓

func (*TaobaoxhotelpotentialmemberbindAPIRequest) SetNativePlace added in v1.3.1

func (r *TaobaoxhotelpotentialmemberbindAPIRequest) SetNativePlace(_nativePlace string) error

SetNativePlace is NativePlace Setter 籍贯

func (*TaobaoxhotelpotentialmemberbindAPIRequest) SetPhone added in v1.3.1

SetPhone is Phone Setter 电话

func (*TaobaoxhotelpotentialmemberbindAPIRequest) SetRegisterDate added in v1.3.1

func (r *TaobaoxhotelpotentialmemberbindAPIRequest) SetRegisterDate(_registerDate string) error

SetRegisterDate is RegisterDate Setter 注册时间

func (*TaobaoxhotelpotentialmemberbindAPIRequest) SetSex added in v1.3.1

SetSex is Sex Setter 性别(M,F,U-未知)

func (*TaobaoxhotelpotentialmemberbindAPIRequest) SetToDate added in v1.3.1

SetToDate is ToDate Setter 截止时间

type TaobaoxhotelpotentialmemberbindAPIResponse added in v1.3.1

type TaobaoxhotelpotentialmemberbindAPIResponse struct {
	model.CommonResponse
	TaobaoxhotelpotentialmemberbindAPIResponseModel
}

TaobaoxhotelpotentialmemberbindAPIResponse 飞猪酒店商家会员绑定 API返回值 taobao.xhotel.potential.member.bind

支持互通商家发起会员绑定

type TaobaoxhotelpotentialmemberbindAPIResponseModel added in v1.3.1

type TaobaoxhotelpotentialmemberbindAPIResponseModel struct {
	XMLName xml.Name `xml:"xhotel_potential_member_bind_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 添加操作是否成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

TaobaoxhotelpotentialmemberbindAPIResponseModel is 飞猪酒店商家会员绑定 成功返回结果

Jump to

Keyboard shortcuts

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