alimember

package
v1.2.0 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

全域会员通 model

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlibabaMemberCheckmerchantAPIRequest added in v1.2.0

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

校验商家身份 API请求 alibaba.member.checkmerchant

校验商家身份

func NewAlibabaMemberCheckmerchantRequest

func NewAlibabaMemberCheckmerchantRequest() *AlibabaMemberCheckmerchantAPIRequest

初始化AlibabaMemberCheckmerchantAPIRequest对象

func (AlibabaMemberCheckmerchantAPIRequest) GetApiMethodName added in v1.2.0

func (r AlibabaMemberCheckmerchantAPIRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (AlibabaMemberCheckmerchantAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

func (AlibabaMemberCheckmerchantAPIRequest) GetOpenMerchantId added in v1.2.0

func (r AlibabaMemberCheckmerchantAPIRequest) GetOpenMerchantId() string

OpenMerchantId Getter

func (*AlibabaMemberCheckmerchantAPIRequest) SetOpenMerchantId added in v1.2.0

func (r *AlibabaMemberCheckmerchantAPIRequest) SetOpenMerchantId(_openMerchantId string) error

OpenMerchantId Setter 混淆后的商家id

type AlibabaMemberCheckmerchantAPIResponse

type AlibabaMemberCheckmerchantAPIResponse struct {
	model.CommonResponse
	AlibabaMemberCheckmerchantAPIResponseModel
}

校验商家身份 API返回值 alibaba.member.checkmerchant

校验商家身份

type AlibabaMemberCheckmerchantAPIResponseModel added in v1.2.0

type AlibabaMemberCheckmerchantAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_member_checkmerchant_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// message
	ReturnMessage string `json:"return_message,omitempty" xml:"return_message,omitempty"`
	// code
	ReturnCode string `json:"return_code,omitempty" xml:"return_code,omitempty"`
}

校验商家身份 成功返回结果

type AlibabaMemberIdentityRescindfinishAPIRequest added in v1.2.0

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

取消确认 API请求 alibaba.member.identity.rescindfinish

取消确认

func NewAlibabaMemberIdentityRescindfinishRequest

func NewAlibabaMemberIdentityRescindfinishRequest() *AlibabaMemberIdentityRescindfinishAPIRequest

初始化AlibabaMemberIdentityRescindfinishAPIRequest对象

func (AlibabaMemberIdentityRescindfinishAPIRequest) GetApiMethodName added in v1.2.0

IRequest interface 方法, 获取Api method

func (AlibabaMemberIdentityRescindfinishAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

func (AlibabaMemberIdentityRescindfinishAPIRequest) GetRescindFinish added in v1.2.0

RescindFinish Getter

func (*AlibabaMemberIdentityRescindfinishAPIRequest) SetRescindFinish added in v1.2.0

RescindFinish Setter 取消确认信息

type AlibabaMemberIdentityRescindfinishAPIResponse

type AlibabaMemberIdentityRescindfinishAPIResponse struct {
	model.CommonResponse
	AlibabaMemberIdentityRescindfinishAPIResponseModel
}

取消确认 API返回值 alibaba.member.identity.rescindfinish

取消确认

type AlibabaMemberIdentityRescindfinishAPIResponseModel added in v1.2.0

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

取消确认 成功返回结果

type AlibabaMemberIdentitySignfinishAPIRequest added in v1.2.0

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

签约确认 API请求 alibaba.member.identity.signfinish

签约确认

func NewAlibabaMemberIdentitySignfinishRequest

func NewAlibabaMemberIdentitySignfinishRequest() *AlibabaMemberIdentitySignfinishAPIRequest

初始化AlibabaMemberIdentitySignfinishAPIRequest对象

func (AlibabaMemberIdentitySignfinishAPIRequest) GetApiMethodName added in v1.2.0

IRequest interface 方法, 获取Api method

func (AlibabaMemberIdentitySignfinishAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

func (AlibabaMemberIdentitySignfinishAPIRequest) GetSignFinish added in v1.2.0

SignFinish Getter

func (*AlibabaMemberIdentitySignfinishAPIRequest) SetSignFinish added in v1.2.0

SignFinish Setter 签约确认信息

type AlibabaMemberIdentitySignfinishAPIResponse

type AlibabaMemberIdentitySignfinishAPIResponse struct {
	model.CommonResponse
	AlibabaMemberIdentitySignfinishAPIResponseModel
}

签约确认 API返回值 alibaba.member.identity.signfinish

签约确认

type AlibabaMemberIdentitySignfinishAPIResponseModel added in v1.2.0

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

签约确认 成功返回结果

type AlibabaMemberIdentitySyncAPIRequest added in v1.2.0

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

会员身份信息同步 API请求 alibaba.member.identity.sync

会员身份信息同步

func NewAlibabaMemberIdentitySyncRequest

func NewAlibabaMemberIdentitySyncRequest() *AlibabaMemberIdentitySyncAPIRequest

初始化AlibabaMemberIdentitySyncAPIRequest对象

func (AlibabaMemberIdentitySyncAPIRequest) GetApiMethodName added in v1.2.0

func (r AlibabaMemberIdentitySyncAPIRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (AlibabaMemberIdentitySyncAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

func (AlibabaMemberIdentitySyncAPIRequest) GetSyncDto added in v1.2.0

SyncDto Getter

func (*AlibabaMemberIdentitySyncAPIRequest) SetSyncDto added in v1.2.0

SyncDto Setter 会员身份同步信息

type AlibabaMemberIdentitySyncAPIResponse

type AlibabaMemberIdentitySyncAPIResponse struct {
	model.CommonResponse
	AlibabaMemberIdentitySyncAPIResponseModel
}

会员身份信息同步 API返回值 alibaba.member.identity.sync

会员身份信息同步

type AlibabaMemberIdentitySyncAPIResponseModel added in v1.2.0

type AlibabaMemberIdentitySyncAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_member_identity_sync_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 系统自动生成
	Result *TopResult `json:"result,omitempty" xml:"result,omitempty"`
}

会员身份信息同步 成功返回结果

type AlibabaMemberSyncAPIRequest added in v1.2.0

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

会员信息同步 API请求 alibaba.member.sync

会员信息同步

func NewAlibabaMemberSyncRequest

func NewAlibabaMemberSyncRequest() *AlibabaMemberSyncAPIRequest

初始化AlibabaMemberSyncAPIRequest对象

func (AlibabaMemberSyncAPIRequest) GetApiMethodName added in v1.2.0

func (r AlibabaMemberSyncAPIRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (AlibabaMemberSyncAPIRequest) GetApiParams added in v1.2.0

func (r AlibabaMemberSyncAPIRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (AlibabaMemberSyncAPIRequest) GetSyncMember added in v1.2.0

func (r AlibabaMemberSyncAPIRequest) GetSyncMember() *SyncMemberDto

SyncMember Getter

func (*AlibabaMemberSyncAPIRequest) SetSyncMember added in v1.2.0

func (r *AlibabaMemberSyncAPIRequest) SetSyncMember(_syncMember *SyncMemberDto) error

SyncMember Setter 会员同步信息

type AlibabaMemberSyncAPIResponse

type AlibabaMemberSyncAPIResponse struct {
	model.CommonResponse
	AlibabaMemberSyncAPIResponseModel
}

会员信息同步 API返回值 alibaba.member.sync

会员信息同步

type AlibabaMemberSyncAPIResponseModel added in v1.2.0

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

会员信息同步 成功返回结果

type AlibabaMemberSyncResult

type AlibabaMemberSyncResult struct {
	// code,返回码
	Code string `json:"code,omitempty" xml:"code,omitempty"`
	// message,返回信息
	Message string `json:"message,omitempty" xml:"message,omitempty"`
}

AlibabaMemberSyncResult

type IdentityModel

type IdentityModel struct {
	// 开始时间
	StartTime string `json:"start_time,omitempty" xml:"start_time,omitempty"`
	// 结束时间
	EndTime string `json:"end_time,omitempty" xml:"end_time,omitempty"`
}

IdentityModel

type OrderModel

type OrderModel struct {
	// 单据类型
	OrderType string `json:"order_type,omitempty" xml:"order_type,omitempty"`
	// 单据号
	OrderNo string `json:"order_no,omitempty" xml:"order_no,omitempty"`
	// 该单据对应付费会员开始时间
	OrderIdentityEndTime string `json:"order_identity_end_time,omitempty" xml:"order_identity_end_time,omitempty"`
	// 该单据对应付费会员结束时间
	OrderIdentityStartTime string `json:"order_identity_start_time,omitempty" xml:"order_identity_start_time,omitempty"`
}

OrderModel

type RescindIdentityFinishRequest

type RescindIdentityFinishRequest struct {
	// 时间戳
	TimeStamp int64 `json:"time_stamp,omitempty" xml:"time_stamp,omitempty"`
	// 付费会员模板id
	IdentityTemplateId string `json:"identity_template_id,omitempty" xml:"identity_template_id,omitempty"`
	// 外部会员ID,识别商家会员的唯一身份标识
	OuterMemberId string `json:"outer_member_id,omitempty" xml:"outer_member_id,omitempty"`
	// 处理结果,成功还是失败
	SendSuc bool `json:"send_suc,omitempty" xml:"send_suc,omitempty"`
	// 付费会员时间信息
	IdentityModel *IdentityModel `json:"identity_model,omitempty" xml:"identity_model,omitempty"`
	// 对外开放的merchantId
	OpenMerchantId string `json:"open_merchant_id,omitempty" xml:"open_merchant_id,omitempty"`
	// 签约单据信息
	OrderModel *OrderModel `json:"order_model,omitempty" xml:"order_model,omitempty"`
}

RescindIdentityFinishRequest

type SignIdentityFinishRequest

type SignIdentityFinishRequest struct {
	// 时间戳
	TimeStamp int64 `json:"time_stamp,omitempty" xml:"time_stamp,omitempty"`
	// 付费会员模板id
	IdentityTemplateId string `json:"identity_template_id,omitempty" xml:"identity_template_id,omitempty"`
	// 外部会员ID,识别商家会员的唯一身份标识
	OuterMemberId string `json:"outer_member_id,omitempty" xml:"outer_member_id,omitempty"`
	// 处理结果,成功还是失败
	SendSuc bool `json:"send_suc,omitempty" xml:"send_suc,omitempty"`
	// 付费会员时间信息
	IdentityModel *IdentityModel `json:"identity_model,omitempty" xml:"identity_model,omitempty"`
	// 对外开放的merchantId
	OpenMerchantId string `json:"open_merchant_id,omitempty" xml:"open_merchant_id,omitempty"`
	// 签约单据信息
	OrderModel *OrderModel `json:"order_model,omitempty" xml:"order_model,omitempty"`
}

SignIdentityFinishRequest

type SyncMemberDto

type SyncMemberDto struct {
	// 生日,格式yyyy-mm-dd
	Birthday string `json:"birthday,omitempty" xml:"birthday,omitempty"`
	// 城市
	City string `json:"city,omitempty" xml:"city,omitempty"`
	// 性别,F 女,M 男
	Sex string `json:"sex,omitempty" xml:"sex,omitempty"`
	// 手机号,海外手机格式 1-993333
	Mobile string `json:"mobile,omitempty" xml:"mobile,omitempty"`
	// 外部会员ID,识别商家会员的唯一身份标识
	OuterMemberId string `json:"outer_member_id,omitempty" xml:"outer_member_id,omitempty"`
	// 用户ID
	UserId string `json:"user_id,omitempty" xml:"user_id,omitempty"`
	// 版本号
	Version int64 `json:"version,omitempty" xml:"version,omitempty"`
	// 对外开放的merchantId
	OpenMerchantId string `json:"open_merchant_id,omitempty" xml:"open_merchant_id,omitempty"`
	// 等级积分
	LevelPoint int64 `json:"level_point,omitempty" xml:"level_point,omitempty"`
	// 用户站点,淘宝 taobao,饿了么 eleme,支付宝 alipay
	UserSite string `json:"user_site,omitempty" xml:"user_site,omitempty"`
	// 等级
	LevelNum int64 `json:"level_num,omitempty" xml:"level_num,omitempty"`
	// 省份
	Province string `json:"province,omitempty" xml:"province,omitempty"`
	// 外部会员卡号
	OuterCardNo string `json:"outer_card_no,omitempty" xml:"outer_card_no,omitempty"`
	// 姓名
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 消费积分
	ConsumePoint int64 `json:"consume_point,omitempty" xml:"consume_point,omitempty"`
	// 邮箱
	Email string `json:"email,omitempty" xml:"email,omitempty"`
}

SyncMemberDto

type SyncMemberIdentityDto

type SyncMemberIdentityDto struct {
	// 时间戳
	TimeStamp int64 `json:"time_stamp,omitempty" xml:"time_stamp,omitempty"`
	// 外部会员ID,识别商家会员的唯一身份标识
	OuterMemberId string `json:"outer_member_id,omitempty" xml:"outer_member_id,omitempty"`
	// 付费会员时间信息
	IdentityModel *IdentityModel `json:"identity_model,omitempty" xml:"identity_model,omitempty"`
	// 对外开放的merchantId
	OpenMerchantId string `json:"open_merchant_id,omitempty" xml:"open_merchant_id,omitempty"`
	// 签约单据信息
	OrderModel *OrderModel `json:"order_model,omitempty" xml:"order_model,omitempty"`
	// 同步操作类型
	IsvSyncOperateType string `json:"isv_sync_operate_type,omitempty" xml:"isv_sync_operate_type,omitempty"`
	// 身份模板id
	IdentityTemplateId string `json:"identity_template_id,omitempty" xml:"identity_template_id,omitempty"`
	// 同步类型
	SyncType string `json:"sync_type,omitempty" xml:"sync_type,omitempty"`
	// 手机号
	UserMobile string `json:"user_mobile,omitempty" xml:"user_mobile,omitempty"`
}

SyncMemberIdentityDto

type TopResult

type TopResult struct {
	// code,返回码
	Code string `json:"code,omitempty" xml:"code,omitempty"`
	// message,返回信息
	Message string `json:"message,omitempty" xml:"message,omitempty"`
}

TopResult

Jump to

Keyboard shortcuts

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