promotion

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package promotion 包含营销API相关结构体

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Activity

type Activity struct {
	// enabled代表有效,invalid代表失效。other代表空值
	Status string `json:"status,omitempty" xml:"status,omitempty"`
	// 领用优惠券的链接
	ActivityUrl string `json:"activity_url,omitempty" xml:"activity_url,omitempty"`
	// self代表自己创建,other他人创建
	CreateUser string `json:"create_user,omitempty" xml:"create_user,omitempty"`
	// 活动id
	ActivityId int64 `json:"activity_id,omitempty" xml:"activity_id,omitempty"`
	// 活动对应的优惠券ID
	CouponId int64 `json:"coupon_id,omitempty" xml:"coupon_id,omitempty"`
	// 卖家设置优惠券领取的总领用量
	TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"`
	// 已经领取的优惠券的数量
	AppliedCount int64 `json:"applied_count,omitempty" xml:"applied_count,omitempty"`
	// 每个买家限领取优惠券的数量,1~5张
	PersonLimitCount int64 `json:"person_limit_count,omitempty" xml:"person_limit_count,omitempty"`
}

Activity 结构体

type ActivityBenefitDetailVo

type ActivityBenefitDetailVo struct {
	// 权益类型
	BenefitType string `json:"benefit_type,omitempty" xml:"benefit_type,omitempty"`
	// 权益ID
	BenefitId int64 `json:"benefit_id,omitempty" xml:"benefit_id,omitempty"`
	// 权益标识
	ConfigId int64 `json:"config_id,omitempty" xml:"config_id,omitempty"`
}

ActivityBenefitDetailVo 结构体

type ActivityDto

type ActivityDto struct {
	// 权益列表
	BenefitList []BenefitDto `json:"benefit_list,omitempty" xml:"benefit_list>benefit_dto,omitempty"`
	// 活动名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 活动开始时间
	StartTime string `json:"start_time,omitempty" xml:"start_time,omitempty"`
	// 活动结束时间
	EndTime string `json:"end_time,omitempty" xml:"end_time,omitempty"`
	// 业务来源
	Source string `json:"source,omitempty" xml:"source,omitempty"`
	// 投放计划code
	StrategyCode string `json:"strategy_code,omitempty" xml:"strategy_code,omitempty"`
	// 活动状态,EFFECTIVE为生效,OFFLINE为下线
	Status string `json:"status,omitempty" xml:"status,omitempty"`
	// 渠道code
	ChannelCode string `json:"channel_code,omitempty" xml:"channel_code,omitempty"`
	// 扩展字段
	Feature string `json:"feature,omitempty" xml:"feature,omitempty"`
}

ActivityDto 结构体

type ActivityReadTopQuery added in v1.2.5

type ActivityReadTopQuery struct {
	// 筛选状态列表,EFFECTIVE为生效,OFFLINE为下线
	StatusList []string `json:"status_list,omitempty" xml:"status_list>string,omitempty"`
	// 发放开始时间右值
	StartTimeEnd string `json:"start_time_end,omitempty" xml:"start_time_end,omitempty"`
	// 业务来源
	Source string `json:"source,omitempty" xml:"source,omitempty"`
	// 发放开始时间左值
	StartTimeBegin string `json:"start_time_begin,omitempty" xml:"start_time_begin,omitempty"`
	// 发放结束时间左值
	EndTimeBegin string `json:"end_time_begin,omitempty" xml:"end_time_begin,omitempty"`
	// 发放结束时间右值
	EndTimeEnd string `json:"end_time_end,omitempty" xml:"end_time_end,omitempty"`
	// 每页记录数
	PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"`
	// 当前页
	CurrentPage int64 `json:"current_page,omitempty" xml:"current_page,omitempty"`
}

ActivityReadTopQuery 结构体

type ActivityRelationDetailRequest

type ActivityRelationDetailRequest struct {
	// 活动状态(VALID  , DELETE)
	Status string `json:"status,omitempty" xml:"status,omitempty"`
	// ISV活动关联权益后获得的关联ID
	RelationId int64 `json:"relation_id,omitempty" xml:"relation_id,omitempty"`
}

ActivityRelationDetailRequest 结构体

type AlibabaArgusUpdateredriskAPIRequest

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

AlibabaArgusUpdateredriskAPIRequest 更新红线价格 API请求 alibaba.argus.updateredrisk

商品健康中心新增红线价格规则

func NewAlibabaArgusUpdateredriskRequest

func NewAlibabaArgusUpdateredriskRequest() *AlibabaArgusUpdateredriskAPIRequest

NewAlibabaArgusUpdateredriskRequest 初始化AlibabaArgusUpdateredriskAPIRequest对象

func (AlibabaArgusUpdateredriskAPIRequest) GetApiMethodName

func (r AlibabaArgusUpdateredriskAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaArgusUpdateredriskAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaArgusUpdateredriskAPIRequest) GetRedRiskUpdateFactor

func (r AlibabaArgusUpdateredriskAPIRequest) GetRedRiskUpdateFactor() *RedRiskUpdateFactor

GetRedRiskUpdateFactor RedRiskUpdateFactor Getter

func (*AlibabaArgusUpdateredriskAPIRequest) SetRedRiskUpdateFactor

func (r *AlibabaArgusUpdateredriskAPIRequest) SetRedRiskUpdateFactor(_redRiskUpdateFactor *RedRiskUpdateFactor) error

SetRedRiskUpdateFactor is RedRiskUpdateFactor Setter 红线价格参数

type AlibabaArgusUpdateredriskAPIResponse

type AlibabaArgusUpdateredriskAPIResponse struct {
	model.CommonResponse
	AlibabaArgusUpdateredriskAPIResponseModel
}

AlibabaArgusUpdateredriskAPIResponse 更新红线价格 API返回值 alibaba.argus.updateredrisk

商品健康中心新增红线价格规则

type AlibabaArgusUpdateredriskAPIResponseModel

type AlibabaArgusUpdateredriskAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_argus_updateredrisk_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 错误信息
	ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"`
	// 错误码
	ReturnCode string `json:"return_code,omitempty" xml:"return_code,omitempty"`
	// 总数
	TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"`
	// 结果是否成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

AlibabaArgusUpdateredriskAPIResponseModel is 更新红线价格 成功返回结果

type AlibabaAsrDataservicePromotionruleDeleteAPIRequest

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

AlibabaAsrDataservicePromotionruleDeleteAPIRequest 优惠规则删除 API请求 alibaba.asr.dataservice.promotionrule.delete

删除优惠规则,例如星巴克删除优惠规则

func NewAlibabaAsrDataservicePromotionruleDeleteRequest

func NewAlibabaAsrDataservicePromotionruleDeleteRequest() *AlibabaAsrDataservicePromotionruleDeleteAPIRequest

NewAlibabaAsrDataservicePromotionruleDeleteRequest 初始化AlibabaAsrDataservicePromotionruleDeleteAPIRequest对象

func (AlibabaAsrDataservicePromotionruleDeleteAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaAsrDataservicePromotionruleDeleteAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaAsrDataservicePromotionruleDeleteAPIRequest) GetPosKey

GetPosKey PosKey Getter

func (*AlibabaAsrDataservicePromotionruleDeleteAPIRequest) SetPosKey

SetPosKey is PosKey Setter poskey

type AlibabaAsrDataservicePromotionruleDeleteAPIResponse

type AlibabaAsrDataservicePromotionruleDeleteAPIResponse struct {
	model.CommonResponse
	AlibabaAsrDataservicePromotionruleDeleteAPIResponseModel
}

AlibabaAsrDataservicePromotionruleDeleteAPIResponse 优惠规则删除 API返回值 alibaba.asr.dataservice.promotionrule.delete

删除优惠规则,例如星巴克删除优惠规则

type AlibabaAsrDataservicePromotionruleDeleteAPIResponseModel

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

AlibabaAsrDataservicePromotionruleDeleteAPIResponseModel is 优惠规则删除 成功返回结果

type AlibabaAsrDataservicePromotionruleQueryAPIRequest

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

AlibabaAsrDataservicePromotionruleQueryAPIRequest 星巴克优惠规则查询 API请求 alibaba.asr.dataservice.promotionrule.query

查询优惠规则,例如星巴克查询优惠规则

func NewAlibabaAsrDataservicePromotionruleQueryRequest

func NewAlibabaAsrDataservicePromotionruleQueryRequest() *AlibabaAsrDataservicePromotionruleQueryAPIRequest

NewAlibabaAsrDataservicePromotionruleQueryRequest 初始化AlibabaAsrDataservicePromotionruleQueryAPIRequest对象

func (AlibabaAsrDataservicePromotionruleQueryAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaAsrDataservicePromotionruleQueryAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaAsrDataservicePromotionruleQueryAPIRequest) GetPageNo

GetPageNo PageNo Getter

func (AlibabaAsrDataservicePromotionruleQueryAPIRequest) GetPageSize

GetPageSize PageSize Getter

func (*AlibabaAsrDataservicePromotionruleQueryAPIRequest) SetPageNo

SetPageNo is PageNo Setter 当前页

func (*AlibabaAsrDataservicePromotionruleQueryAPIRequest) SetPageSize

SetPageSize is PageSize Setter 每页数量

type AlibabaAsrDataservicePromotionruleQueryAPIResponse

type AlibabaAsrDataservicePromotionruleQueryAPIResponse struct {
	model.CommonResponse
	AlibabaAsrDataservicePromotionruleQueryAPIResponseModel
}

AlibabaAsrDataservicePromotionruleQueryAPIResponse 星巴克优惠规则查询 API返回值 alibaba.asr.dataservice.promotionrule.query

查询优惠规则,例如星巴克查询优惠规则

type AlibabaAsrDataservicePromotionruleQueryAPIResponseModel

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

AlibabaAsrDataservicePromotionruleQueryAPIResponseModel is 星巴克优惠规则查询 成功返回结果

type AlibabaAsrDataservicePromotionruleQueryData

type AlibabaAsrDataservicePromotionruleQueryData struct {
	// 兑换详情列表
	DetailList []Detaillist `json:"detail_list,omitempty" xml:"detail_list>detaillist,omitempty"`
	// 名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// poskey
	PosKey int64 `json:"pos_key,omitempty" xml:"pos_key,omitempty"`
}

AlibabaAsrDataservicePromotionruleQueryData 结构体

type AlibabaAsrDataservicePromotionruleWriteAPIRequest

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

AlibabaAsrDataservicePromotionruleWriteAPIRequest 业务优惠规则写入 API请求 alibaba.asr.dataservice.promotionrule.write

星巴克优惠规则写入

func NewAlibabaAsrDataservicePromotionruleWriteRequest

func NewAlibabaAsrDataservicePromotionruleWriteRequest() *AlibabaAsrDataservicePromotionruleWriteAPIRequest

NewAlibabaAsrDataservicePromotionruleWriteRequest 初始化AlibabaAsrDataservicePromotionruleWriteAPIRequest对象

func (AlibabaAsrDataservicePromotionruleWriteAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaAsrDataservicePromotionruleWriteAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaAsrDataservicePromotionruleWriteAPIRequest) GetPoskeyPromotionRuleDto

GetPoskeyPromotionRuleDto PoskeyPromotionRuleDto Getter

func (*AlibabaAsrDataservicePromotionruleWriteAPIRequest) SetPoskeyPromotionRuleDto

func (r *AlibabaAsrDataservicePromotionruleWriteAPIRequest) SetPoskeyPromotionRuleDto(_poskeyPromotionRuleDto *PosKeyPromotionRuleDto) error

SetPoskeyPromotionRuleDto is PoskeyPromotionRuleDto Setter 入参对象

type AlibabaAsrDataservicePromotionruleWriteAPIResponse

type AlibabaAsrDataservicePromotionruleWriteAPIResponse struct {
	model.CommonResponse
	AlibabaAsrDataservicePromotionruleWriteAPIResponseModel
}

AlibabaAsrDataservicePromotionruleWriteAPIResponse 业务优惠规则写入 API返回值 alibaba.asr.dataservice.promotionrule.write

星巴克优惠规则写入

type AlibabaAsrDataservicePromotionruleWriteAPIResponseModel

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

AlibabaAsrDataservicePromotionruleWriteAPIResponseModel is 业务优惠规则写入 成功返回结果

type AlibabaBenefitDrawAPIRequest

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

AlibabaBenefitDrawAPIRequest 抽奖接口 API请求 alibaba.benefit.draw

功能:抽奖功能,供小程序抽奖调用 业务逻辑:程序中通过奖池编号ename,业务方身份appName来查询奖池,根据授权用户(买家)来确认抽奖用户。然后程序进行抽奖流程。 小程。 安全保障:为保证数据不会越权,需要买家授,并且验证系统参数appKey。只有通过授权的,并且 appkey验证通过的,才会进入抽奖流程,否则直接失败。 因为appkey是系统参数,并且程序内部可以验证appkey和业务身份appName的关系 是否一致,所以可以保证参数appName的合法性,没有越权。

func NewAlibabaBenefitDrawRequest

func NewAlibabaBenefitDrawRequest() *AlibabaBenefitDrawAPIRequest

NewAlibabaBenefitDrawRequest 初始化AlibabaBenefitDrawAPIRequest对象

func (AlibabaBenefitDrawAPIRequest) GetApiMethodName

func (r AlibabaBenefitDrawAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaBenefitDrawAPIRequest) GetApiParams

func (r AlibabaBenefitDrawAPIRequest) GetApiParams() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaBenefitDrawAPIRequest) GetAppName

func (r AlibabaBenefitDrawAPIRequest) GetAppName() string

GetAppName AppName Getter

func (AlibabaBenefitDrawAPIRequest) GetEname

func (r AlibabaBenefitDrawAPIRequest) GetEname() string

GetEname Ename Getter

func (AlibabaBenefitDrawAPIRequest) GetIp

GetIp Ip Getter

func (*AlibabaBenefitDrawAPIRequest) SetAppName

func (r *AlibabaBenefitDrawAPIRequest) SetAppName(_appName string) error

SetAppName is AppName Setter 调用方AppName:规定为promotioncenter-${appId}

func (*AlibabaBenefitDrawAPIRequest) SetEname

func (r *AlibabaBenefitDrawAPIRequest) SetEname(_ename string) error

SetEname is Ename Setter 奖池唯一标识,奖池创建时即生成

func (*AlibabaBenefitDrawAPIRequest) SetIp

SetIp is Ip Setter 调用方应用ip,非必填

type AlibabaBenefitDrawAPIResponse

type AlibabaBenefitDrawAPIResponse struct {
	model.CommonResponse
	AlibabaBenefitDrawAPIResponseModel
}

AlibabaBenefitDrawAPIResponse 抽奖接口 API返回值 alibaba.benefit.draw

功能:抽奖功能,供小程序抽奖调用 业务逻辑:程序中通过奖池编号ename,业务方身份appName来查询奖池,根据授权用户(买家)来确认抽奖用户。然后程序进行抽奖流程。 小程。 安全保障:为保证数据不会越权,需要买家授,并且验证系统参数appKey。只有通过授权的,并且 appkey验证通过的,才会进入抽奖流程,否则直接失败。 因为appkey是系统参数,并且程序内部可以验证appkey和业务身份appName的关系 是否一致,所以可以保证参数appName的合法性,没有越权。

type AlibabaBenefitDrawAPIResponseModel

type AlibabaBenefitDrawAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_benefit_draw_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 权益id
	PrizeId string `json:"prize_id,omitempty" xml:"prize_id,omitempty"`
	// 奖品id
	RightId string `json:"right_id,omitempty" xml:"right_id,omitempty"`
	// 扩展信息
	ExtAttribute string `json:"ext_attribute,omitempty" xml:"ext_attribute,omitempty"`
	// 接口返回model
	Result *AlibabaBenefitDrawResult `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaBenefitDrawAPIResponseModel is 抽奖接口 成功返回结果

type AlibabaBenefitDrawResult

type AlibabaBenefitDrawResult struct {
	// message
	ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"`
	// code
	ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"`
	// 是否成功
	ResultSuccess bool `json:"result_success,omitempty" xml:"result_success,omitempty"`
}

AlibabaBenefitDrawResult 结构体

type AlibabaBenefitQueryAPIRequest

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

AlibabaBenefitQueryAPIRequest 奖池奖品查询列表 API请求 alibaba.benefit.query

功能:奖池奖品查询列表 业务逻辑:程序中通过奖池编号ename,业务方身份appName来查询奖池提供的奖品返回给 小程。 安全保障:为保证数据不会越权,需要卖家授,并且验证系统参数appKey。只有通过授权的,并且 appkey验证通过的,才会查数据 并透出,否则直接失败。 因为appkey是系统参数,并且程序内部可以验证appkey和业务身份appName的关系 是否一致,所以可以保证参数appName的合法性,没有越权。

func NewAlibabaBenefitQueryRequest

func NewAlibabaBenefitQueryRequest() *AlibabaBenefitQueryAPIRequest

NewAlibabaBenefitQueryRequest 初始化AlibabaBenefitQueryAPIRequest对象

func (AlibabaBenefitQueryAPIRequest) GetApiMethodName

func (r AlibabaBenefitQueryAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaBenefitQueryAPIRequest) GetApiParams

func (r AlibabaBenefitQueryAPIRequest) GetApiParams() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaBenefitQueryAPIRequest) GetAppName

func (r AlibabaBenefitQueryAPIRequest) GetAppName() string

GetAppName AppName Getter

func (AlibabaBenefitQueryAPIRequest) GetAwardType

func (r AlibabaBenefitQueryAPIRequest) GetAwardType() string

GetAwardType AwardType Getter

func (AlibabaBenefitQueryAPIRequest) GetEname

GetEname Ename Getter

func (*AlibabaBenefitQueryAPIRequest) SetAppName

func (r *AlibabaBenefitQueryAPIRequest) SetAppName(_appName string) error

SetAppName is AppName Setter 商家来源身份标识("promotion-"+appId)

func (*AlibabaBenefitQueryAPIRequest) SetAwardType

func (r *AlibabaBenefitQueryAPIRequest) SetAwardType(_awardType string) error

SetAwardType is AwardType Setter 表示奖池类型(发奖奖池传1,抽奖传0)

func (*AlibabaBenefitQueryAPIRequest) SetEname

func (r *AlibabaBenefitQueryAPIRequest) SetEname(_ename string) error

SetEname is Ename Setter 奖池编号

type AlibabaBenefitQueryAPIResponse

type AlibabaBenefitQueryAPIResponse struct {
	model.CommonResponse
	AlibabaBenefitQueryAPIResponseModel
}

AlibabaBenefitQueryAPIResponse 奖池奖品查询列表 API返回值 alibaba.benefit.query

功能:奖池奖品查询列表 业务逻辑:程序中通过奖池编号ename,业务方身份appName来查询奖池提供的奖品返回给 小程。 安全保障:为保证数据不会越权,需要卖家授,并且验证系统参数appKey。只有通过授权的,并且 appkey验证通过的,才会查数据 并透出,否则直接失败。 因为appkey是系统参数,并且程序内部可以验证appkey和业务身份appName的关系 是否一致,所以可以保证参数appName的合法性,没有越权。

type AlibabaBenefitQueryAPIResponseModel

type AlibabaBenefitQueryAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_benefit_query_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 接口返回model
	Result *AlibabaBenefitQueryResult `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaBenefitQueryAPIResponseModel is 奖池奖品查询列表 成功返回结果

type AlibabaBenefitQueryResult

type AlibabaBenefitQueryResult struct {
	// datas
	Datas []OrightDto `json:"datas,omitempty" xml:"datas>oright_dto,omitempty"`
	// msg
	Msg string `json:"msg,omitempty" xml:"msg,omitempty"`
	// code
	Code string `json:"code,omitempty" xml:"code,omitempty"`
	// 是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

AlibabaBenefitQueryResult 结构体

type AlibabaLafiteSellerActivityListAPIRequest added in v1.2.5

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

AlibabaLafiteSellerActivityListAPIRequest 商家自运营活动列表 API请求 alibaba.lafite.seller.activity.list

商家查询自己配置的活动列表

func NewAlibabaLafiteSellerActivityListRequest added in v1.2.5

func NewAlibabaLafiteSellerActivityListRequest() *AlibabaLafiteSellerActivityListAPIRequest

NewAlibabaLafiteSellerActivityListRequest 初始化AlibabaLafiteSellerActivityListAPIRequest对象

func (AlibabaLafiteSellerActivityListAPIRequest) GetApiMethodName added in v1.2.5

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaLafiteSellerActivityListAPIRequest) GetApiParams added in v1.2.5

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaLafiteSellerActivityListAPIRequest) GetQuery added in v1.2.5

GetQuery Query Getter

func (*AlibabaLafiteSellerActivityListAPIRequest) SetQuery added in v1.2.5

SetQuery is Query Setter 请求入参

type AlibabaLafiteSellerActivityListAPIResponse added in v1.2.5

type AlibabaLafiteSellerActivityListAPIResponse struct {
	model.CommonResponse
	AlibabaLafiteSellerActivityListAPIResponseModel
}

AlibabaLafiteSellerActivityListAPIResponse 商家自运营活动列表 API返回值 alibaba.lafite.seller.activity.list

商家查询自己配置的活动列表

type AlibabaLafiteSellerActivityListAPIResponseModel added in v1.2.5

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

AlibabaLafiteSellerActivityListAPIResponseModel is 商家自运营活动列表 成功返回结果

type AlibabaLafiteSellerActivityListResult added in v1.2.5

type AlibabaLafiteSellerActivityListResult struct {
	// 错误描述
	Msg string `json:"msg,omitempty" xml:"msg,omitempty"`
	// 错误码
	Code string `json:"code,omitempty" xml:"code,omitempty"`
	// 接口返回结果
	PageData *Page `json:"page_data,omitempty" xml:"page_data,omitempty"`
}

AlibabaLafiteSellerActivityListResult 结构体

type AlibabaLafiteSellerBenefitListAPIRequest added in v1.2.5

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

AlibabaLafiteSellerBenefitListAPIRequest 商家自运营权益列表 API请求 alibaba.lafite.seller.benefit.list

小程序isv可使用该接口获取权益列表

func NewAlibabaLafiteSellerBenefitListRequest added in v1.2.5

func NewAlibabaLafiteSellerBenefitListRequest() *AlibabaLafiteSellerBenefitListAPIRequest

NewAlibabaLafiteSellerBenefitListRequest 初始化AlibabaLafiteSellerBenefitListAPIRequest对象

func (AlibabaLafiteSellerBenefitListAPIRequest) GetApiMethodName added in v1.2.5

func (r AlibabaLafiteSellerBenefitListAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaLafiteSellerBenefitListAPIRequest) GetApiParams added in v1.2.5

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaLafiteSellerBenefitListAPIRequest) GetBenefitReadTopQuery added in v1.2.5

GetBenefitReadTopQuery BenefitReadTopQuery Getter

func (*AlibabaLafiteSellerBenefitListAPIRequest) SetBenefitReadTopQuery added in v1.2.5

func (r *AlibabaLafiteSellerBenefitListAPIRequest) SetBenefitReadTopQuery(_benefitReadTopQuery *BenefitReadTopQuery) error

SetBenefitReadTopQuery is BenefitReadTopQuery Setter 查询参数

type AlibabaLafiteSellerBenefitListAPIResponse added in v1.2.5

type AlibabaLafiteSellerBenefitListAPIResponse struct {
	model.CommonResponse
	AlibabaLafiteSellerBenefitListAPIResponseModel
}

AlibabaLafiteSellerBenefitListAPIResponse 商家自运营权益列表 API返回值 alibaba.lafite.seller.benefit.list

小程序isv可使用该接口获取权益列表

type AlibabaLafiteSellerBenefitListAPIResponseModel added in v1.2.5

type AlibabaLafiteSellerBenefitListAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_lafite_seller_benefit_list_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 接口返回model
	Result *AlibabaLafiteSellerBenefitListResult `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaLafiteSellerBenefitListAPIResponseModel is 商家自运营权益列表 成功返回结果

type AlibabaLafiteSellerBenefitListResult added in v1.2.5

type AlibabaLafiteSellerBenefitListResult struct {
	// 错误信息
	Msg string `json:"msg,omitempty" xml:"msg,omitempty"`
	// 错误码
	Code string `json:"code,omitempty" xml:"code,omitempty"`
	// 返回查询结果
	Data *Page `json:"data,omitempty" xml:"data,omitempty"`
	// 是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

AlibabaLafiteSellerBenefitListResult 结构体

type AlibabaLatourStrategyIssueAPIRequest

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

AlibabaLatourStrategyIssueAPIRequest 阿里巴巴权益发放接口 API请求 alibaba.latour.strategy.issue

阿里巴巴权益平台权益发放接口

func NewAlibabaLatourStrategyIssueRequest

func NewAlibabaLatourStrategyIssueRequest() *AlibabaLatourStrategyIssueAPIRequest

NewAlibabaLatourStrategyIssueRequest 初始化AlibabaLatourStrategyIssueAPIRequest对象

func (AlibabaLatourStrategyIssueAPIRequest) GetApiMethodName

func (r AlibabaLatourStrategyIssueAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaLatourStrategyIssueAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaLatourStrategyIssueAPIRequest) GetChannel

GetChannel Channel Getter

func (AlibabaLatourStrategyIssueAPIRequest) GetExtraData

GetExtraData ExtraData Getter

func (AlibabaLatourStrategyIssueAPIRequest) GetFailoverAlgorithmResult

func (r AlibabaLatourStrategyIssueAPIRequest) GetFailoverAlgorithmResult() bool

GetFailoverAlgorithmResult FailoverAlgorithmResult Getter

func (AlibabaLatourStrategyIssueAPIRequest) GetIdempotentId

func (r AlibabaLatourStrategyIssueAPIRequest) GetIdempotentId() string

GetIdempotentId IdempotentId Getter

func (AlibabaLatourStrategyIssueAPIRequest) GetNeedIdentifyRisk

func (r AlibabaLatourStrategyIssueAPIRequest) GetNeedIdentifyRisk() bool

GetNeedIdentifyRisk NeedIdentifyRisk Getter

func (AlibabaLatourStrategyIssueAPIRequest) GetOpenid added in v1.2.5

GetOpenid Openid Getter

func (AlibabaLatourStrategyIssueAPIRequest) GetSelectedBenefitCode

func (r AlibabaLatourStrategyIssueAPIRequest) GetSelectedBenefitCode() string

GetSelectedBenefitCode SelectedBenefitCode Getter

func (AlibabaLatourStrategyIssueAPIRequest) GetStrategyCode

func (r AlibabaLatourStrategyIssueAPIRequest) GetStrategyCode() string

GetStrategyCode StrategyCode Getter

func (AlibabaLatourStrategyIssueAPIRequest) GetTransformedUserType

func (r AlibabaLatourStrategyIssueAPIRequest) GetTransformedUserType() string

GetTransformedUserType TransformedUserType Getter

func (AlibabaLatourStrategyIssueAPIRequest) GetUserId

GetUserId UserId Getter

func (AlibabaLatourStrategyIssueAPIRequest) GetUserNick

GetUserNick UserNick Getter

func (AlibabaLatourStrategyIssueAPIRequest) GetUserType

GetUserType UserType Getter

func (*AlibabaLatourStrategyIssueAPIRequest) SetChannel

func (r *AlibabaLatourStrategyIssueAPIRequest) SetChannel(_channel string) error

SetChannel is Channel Setter 发放渠道

func (*AlibabaLatourStrategyIssueAPIRequest) SetExtraData

func (r *AlibabaLatourStrategyIssueAPIRequest) SetExtraData(_extraData string) error

SetExtraData is ExtraData Setter 扩展参数

func (*AlibabaLatourStrategyIssueAPIRequest) SetFailoverAlgorithmResult

func (r *AlibabaLatourStrategyIssueAPIRequest) SetFailoverAlgorithmResult(_failoverAlgorithmResult bool) error

SetFailoverAlgorithmResult is FailoverAlgorithmResult Setter 算法容灾

func (*AlibabaLatourStrategyIssueAPIRequest) SetIdempotentId

func (r *AlibabaLatourStrategyIssueAPIRequest) SetIdempotentId(_idempotentId string) error

SetIdempotentId is IdempotentId Setter 幂等id

func (*AlibabaLatourStrategyIssueAPIRequest) SetNeedIdentifyRisk

func (r *AlibabaLatourStrategyIssueAPIRequest) SetNeedIdentifyRisk(_needIdentifyRisk bool) error

SetNeedIdentifyRisk is NeedIdentifyRisk Setter 是否需要过安全

func (*AlibabaLatourStrategyIssueAPIRequest) SetOpenid added in v1.2.5

func (r *AlibabaLatourStrategyIssueAPIRequest) SetOpenid(_openid string) error

SetOpenid is Openid Setter openid

func (*AlibabaLatourStrategyIssueAPIRequest) SetSelectedBenefitCode

func (r *AlibabaLatourStrategyIssueAPIRequest) SetSelectedBenefitCode(_selectedBenefitCode string) error

SetSelectedBenefitCode is SelectedBenefitCode Setter 指定发放权益code

func (*AlibabaLatourStrategyIssueAPIRequest) SetStrategyCode

func (r *AlibabaLatourStrategyIssueAPIRequest) SetStrategyCode(_strategyCode string) error

SetStrategyCode is StrategyCode Setter 投放计划code

func (*AlibabaLatourStrategyIssueAPIRequest) SetTransformedUserType

func (r *AlibabaLatourStrategyIssueAPIRequest) SetTransformedUserType(_transformedUserType string) error

SetTransformedUserType is TransformedUserType Setter 转换用户类型

func (*AlibabaLatourStrategyIssueAPIRequest) SetUserId

func (r *AlibabaLatourStrategyIssueAPIRequest) SetUserId(_userId string) error

SetUserId is UserId Setter 除非有特殊申请,默认不允许使用该参数,请通过用户授权token传递用户信息

func (*AlibabaLatourStrategyIssueAPIRequest) SetUserNick

func (r *AlibabaLatourStrategyIssueAPIRequest) SetUserNick(_userNick string) error

SetUserNick is UserNick Setter 除非有特殊申请,默认不允许使用该参数,请通过用户授权token传递用户信息

func (*AlibabaLatourStrategyIssueAPIRequest) SetUserType

func (r *AlibabaLatourStrategyIssueAPIRequest) SetUserType(_userType string) error

SetUserType is UserType Setter 用户类型

type AlibabaLatourStrategyIssueAPIResponse

type AlibabaLatourStrategyIssueAPIResponse struct {
	model.CommonResponse
	AlibabaLatourStrategyIssueAPIResponseModel
}

AlibabaLatourStrategyIssueAPIResponse 阿里巴巴权益发放接口 API返回值 alibaba.latour.strategy.issue

阿里巴巴权益平台权益发放接口

type AlibabaLatourStrategyIssueAPIResponseModel

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

AlibabaLatourStrategyIssueAPIResponseModel is 阿里巴巴权益发放接口 成功返回结果

type AlibabaLatourStrategyIssueResult

type AlibabaLatourStrategyIssueResult struct {
	// 错误码
	Code string `json:"code,omitempty" xml:"code,omitempty"`
	// 错误描述
	Msg string `json:"msg,omitempty" xml:"msg,omitempty"`
	// 返回结果
	Data *StrategyIssueResultDto `json:"data,omitempty" xml:"data,omitempty"`
	// 是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

AlibabaLatourStrategyIssueResult 结构体

type AlibabaLatourStrategyShowAPIRequest

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

AlibabaLatourStrategyShowAPIRequest 阿里巴巴权益投放接口 API请求 alibaba.latour.strategy.show

阿里巴巴权益平台权益投放接口

func NewAlibabaLatourStrategyShowRequest

func NewAlibabaLatourStrategyShowRequest() *AlibabaLatourStrategyShowAPIRequest

NewAlibabaLatourStrategyShowRequest 初始化AlibabaLatourStrategyShowAPIRequest对象

func (AlibabaLatourStrategyShowAPIRequest) GetApiMethodName

func (r AlibabaLatourStrategyShowAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaLatourStrategyShowAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaLatourStrategyShowAPIRequest) GetChannel

GetChannel Channel Getter

func (AlibabaLatourStrategyShowAPIRequest) GetCurrentPage

func (r AlibabaLatourStrategyShowAPIRequest) GetCurrentPage() int64

GetCurrentPage CurrentPage Getter

func (AlibabaLatourStrategyShowAPIRequest) GetFilterCrowd

func (r AlibabaLatourStrategyShowAPIRequest) GetFilterCrowd() bool

GetFilterCrowd FilterCrowd Getter

func (AlibabaLatourStrategyShowAPIRequest) GetFilterEmptyInventory

func (r AlibabaLatourStrategyShowAPIRequest) GetFilterEmptyInventory() bool

GetFilterEmptyInventory FilterEmptyInventory Getter

func (AlibabaLatourStrategyShowAPIRequest) GetNeedIdentifyRisk

func (r AlibabaLatourStrategyShowAPIRequest) GetNeedIdentifyRisk() bool

GetNeedIdentifyRisk NeedIdentifyRisk Getter

func (AlibabaLatourStrategyShowAPIRequest) GetOpenid added in v1.2.5

GetOpenid Openid Getter

func (AlibabaLatourStrategyShowAPIRequest) GetPageSize

GetPageSize PageSize Getter

func (AlibabaLatourStrategyShowAPIRequest) GetSkipWithHadWin

func (r AlibabaLatourStrategyShowAPIRequest) GetSkipWithHadWin() bool

GetSkipWithHadWin SkipWithHadWin Getter

func (AlibabaLatourStrategyShowAPIRequest) GetStrategyCode

func (r AlibabaLatourStrategyShowAPIRequest) GetStrategyCode() string

GetStrategyCode StrategyCode Getter

func (AlibabaLatourStrategyShowAPIRequest) GetTransformedUserType

func (r AlibabaLatourStrategyShowAPIRequest) GetTransformedUserType() string

GetTransformedUserType TransformedUserType Getter

func (AlibabaLatourStrategyShowAPIRequest) GetUserId

GetUserId UserId Getter

func (AlibabaLatourStrategyShowAPIRequest) GetUserNick

GetUserNick UserNick Getter

func (AlibabaLatourStrategyShowAPIRequest) GetUserType

GetUserType UserType Getter

func (AlibabaLatourStrategyShowAPIRequest) GetWithBenefitInstance added in v1.2.5

func (r AlibabaLatourStrategyShowAPIRequest) GetWithBenefitInstance() bool

GetWithBenefitInstance WithBenefitInstance Getter

func (AlibabaLatourStrategyShowAPIRequest) GetWithStrategyInstance added in v1.2.5

func (r AlibabaLatourStrategyShowAPIRequest) GetWithStrategyInstance() bool

GetWithStrategyInstance WithStrategyInstance Getter

func (AlibabaLatourStrategyShowAPIRequest) GetWithTestBenefit

func (r AlibabaLatourStrategyShowAPIRequest) GetWithTestBenefit() bool

GetWithTestBenefit WithTestBenefit Getter

func (*AlibabaLatourStrategyShowAPIRequest) SetChannel

func (r *AlibabaLatourStrategyShowAPIRequest) SetChannel(_channel string) error

SetChannel is Channel Setter 渠道

func (*AlibabaLatourStrategyShowAPIRequest) SetCurrentPage

func (r *AlibabaLatourStrategyShowAPIRequest) SetCurrentPage(_currentPage int64) error

SetCurrentPage is CurrentPage Setter 当面分页

func (*AlibabaLatourStrategyShowAPIRequest) SetFilterCrowd

func (r *AlibabaLatourStrategyShowAPIRequest) SetFilterCrowd(_filterCrowd bool) error

SetFilterCrowd is FilterCrowd Setter 过滤人群

func (*AlibabaLatourStrategyShowAPIRequest) SetFilterEmptyInventory

func (r *AlibabaLatourStrategyShowAPIRequest) SetFilterEmptyInventory(_filterEmptyInventory bool) error

SetFilterEmptyInventory is FilterEmptyInventory Setter 过滤无库存权益

func (*AlibabaLatourStrategyShowAPIRequest) SetNeedIdentifyRisk

func (r *AlibabaLatourStrategyShowAPIRequest) SetNeedIdentifyRisk(_needIdentifyRisk bool) error

SetNeedIdentifyRisk is NeedIdentifyRisk Setter 是否需要调用安全校验服务

func (*AlibabaLatourStrategyShowAPIRequest) SetOpenid added in v1.2.5

func (r *AlibabaLatourStrategyShowAPIRequest) SetOpenid(_openid string) error

SetOpenid is Openid Setter openid

func (*AlibabaLatourStrategyShowAPIRequest) SetPageSize

func (r *AlibabaLatourStrategyShowAPIRequest) SetPageSize(_pageSize int64) error

SetPageSize is PageSize Setter 每页权益数

func (*AlibabaLatourStrategyShowAPIRequest) SetSkipWithHadWin

func (r *AlibabaLatourStrategyShowAPIRequest) SetSkipWithHadWin(_skipWithHadWin bool) error

SetSkipWithHadWin is SkipWithHadWin Setter 不带出hadWin状态

func (*AlibabaLatourStrategyShowAPIRequest) SetStrategyCode

func (r *AlibabaLatourStrategyShowAPIRequest) SetStrategyCode(_strategyCode string) error

SetStrategyCode is StrategyCode Setter 投放计划code

func (*AlibabaLatourStrategyShowAPIRequest) SetTransformedUserType

func (r *AlibabaLatourStrategyShowAPIRequest) SetTransformedUserType(_transformedUserType string) error

SetTransformedUserType is TransformedUserType Setter 要转换的账户类型

func (*AlibabaLatourStrategyShowAPIRequest) SetUserId

func (r *AlibabaLatourStrategyShowAPIRequest) SetUserId(_userId string) error

SetUserId is UserId Setter 用户id,除非有特殊申请,默认不允许使用该参数,请通过用户授权token传递用户信息

func (*AlibabaLatourStrategyShowAPIRequest) SetUserNick

func (r *AlibabaLatourStrategyShowAPIRequest) SetUserNick(_userNick string) error

SetUserNick is UserNick Setter 用户昵称,除非有特殊申请,默认不允许使用该参数,请通过用户授权token传递用户信息

func (*AlibabaLatourStrategyShowAPIRequest) SetUserType

func (r *AlibabaLatourStrategyShowAPIRequest) SetUserType(_userType string) error

SetUserType is UserType Setter 当面账户类型

func (*AlibabaLatourStrategyShowAPIRequest) SetWithBenefitInstance added in v1.2.5

func (r *AlibabaLatourStrategyShowAPIRequest) SetWithBenefitInstance(_withBenefitInstance bool) error

SetWithBenefitInstance is WithBenefitInstance Setter 是否需要权益维度的权益核销实例

func (*AlibabaLatourStrategyShowAPIRequest) SetWithStrategyInstance added in v1.2.5

func (r *AlibabaLatourStrategyShowAPIRequest) SetWithStrategyInstance(_withStrategyInstance bool) error

SetWithStrategyInstance is WithStrategyInstance Setter 是否需要投放计划维度的权益核销实例

func (*AlibabaLatourStrategyShowAPIRequest) SetWithTestBenefit

func (r *AlibabaLatourStrategyShowAPIRequest) SetWithTestBenefit(_withTestBenefit bool) error

SetWithTestBenefit is WithTestBenefit Setter 带出测试权益

type AlibabaLatourStrategyShowAPIResponse

type AlibabaLatourStrategyShowAPIResponse struct {
	model.CommonResponse
	AlibabaLatourStrategyShowAPIResponseModel
}

AlibabaLatourStrategyShowAPIResponse 阿里巴巴权益投放接口 API返回值 alibaba.latour.strategy.show

阿里巴巴权益平台权益投放接口

type AlibabaLatourStrategyShowAPIResponseModel

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

AlibabaLatourStrategyShowAPIResponseModel is 阿里巴巴权益投放接口 成功返回结果

type AlibabaLatourStrategyShowResult

type AlibabaLatourStrategyShowResult struct {
	// 错误描述
	Msg string `json:"msg,omitempty" xml:"msg,omitempty"`
	// 错误码
	Code string `json:"code,omitempty" xml:"code,omitempty"`
	// 返回结果
	Data *StrategyShowResultDto `json:"data,omitempty" xml:"data,omitempty"`
	// 是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

AlibabaLatourStrategyShowResult 结构体

type AlibabaWdkCouponAbandonAPIRequest

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

AlibabaWdkCouponAbandonAPIRequest 废券 API请求 alibaba.wdk.coupon.abandon

优惠券废弃

func NewAlibabaWdkCouponAbandonRequest

func NewAlibabaWdkCouponAbandonRequest() *AlibabaWdkCouponAbandonAPIRequest

NewAlibabaWdkCouponAbandonRequest 初始化AlibabaWdkCouponAbandonAPIRequest对象

func (AlibabaWdkCouponAbandonAPIRequest) GetApiMethodName

func (r AlibabaWdkCouponAbandonAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaWdkCouponAbandonAPIRequest) GetApiParams

func (r AlibabaWdkCouponAbandonAPIRequest) GetApiParams() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaWdkCouponAbandonAPIRequest) GetParamWdkCouponAbandonParam

func (r AlibabaWdkCouponAbandonAPIRequest) GetParamWdkCouponAbandonParam() *WdkCouponAbandonParam

GetParamWdkCouponAbandonParam ParamWdkCouponAbandonParam Getter

func (*AlibabaWdkCouponAbandonAPIRequest) SetParamWdkCouponAbandonParam

func (r *AlibabaWdkCouponAbandonAPIRequest) SetParamWdkCouponAbandonParam(_paramWdkCouponAbandonParam *WdkCouponAbandonParam) error

SetParamWdkCouponAbandonParam is ParamWdkCouponAbandonParam Setter 废券参数

type AlibabaWdkCouponAbandonAPIResponse

type AlibabaWdkCouponAbandonAPIResponse struct {
	model.CommonResponse
	AlibabaWdkCouponAbandonAPIResponseModel
}

AlibabaWdkCouponAbandonAPIResponse 废券 API返回值 alibaba.wdk.coupon.abandon

优惠券废弃

type AlibabaWdkCouponAbandonAPIResponseModel

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

AlibabaWdkCouponAbandonAPIResponseModel is 废券 成功返回结果

type AlibabaWdkCouponAbandonApiResult

type AlibabaWdkCouponAbandonApiResult struct {
	// 错误码
	ErrCode string `json:"err_code,omitempty" xml:"err_code,omitempty"`
	// 错误信息
	ErrMsg string `json:"err_msg,omitempty" xml:"err_msg,omitempty"`
	// 成功标志
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
	// 操作结果
	Model bool `json:"model,omitempty" xml:"model,omitempty"`
}

AlibabaWdkCouponAbandonApiResult 结构体

type AlibabaWdkCouponSkuAddAPIRequest

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

AlibabaWdkCouponSkuAddAPIRequest 优惠券商品增加 API请求 alibaba.wdk.coupon.sku.add

优惠券商品增加

func NewAlibabaWdkCouponSkuAddRequest

func NewAlibabaWdkCouponSkuAddRequest() *AlibabaWdkCouponSkuAddAPIRequest

NewAlibabaWdkCouponSkuAddRequest 初始化AlibabaWdkCouponSkuAddAPIRequest对象

func (AlibabaWdkCouponSkuAddAPIRequest) GetApiMethodName

func (r AlibabaWdkCouponSkuAddAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaWdkCouponSkuAddAPIRequest) GetApiParams

func (r AlibabaWdkCouponSkuAddAPIRequest) GetApiParams() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaWdkCouponSkuAddAPIRequest) GetParamCouponTemplateItemRequest

func (r AlibabaWdkCouponSkuAddAPIRequest) GetParamCouponTemplateItemRequest() *CouponTemplateItemRequest

GetParamCouponTemplateItemRequest ParamCouponTemplateItemRequest Getter

func (*AlibabaWdkCouponSkuAddAPIRequest) SetParamCouponTemplateItemRequest

func (r *AlibabaWdkCouponSkuAddAPIRequest) SetParamCouponTemplateItemRequest(_paramCouponTemplateItemRequest *CouponTemplateItemRequest) error

SetParamCouponTemplateItemRequest is ParamCouponTemplateItemRequest Setter 请求

type AlibabaWdkCouponSkuAddAPIResponse

type AlibabaWdkCouponSkuAddAPIResponse struct {
	model.CommonResponse
	AlibabaWdkCouponSkuAddAPIResponseModel
}

AlibabaWdkCouponSkuAddAPIResponse 优惠券商品增加 API返回值 alibaba.wdk.coupon.sku.add

优惠券商品增加

type AlibabaWdkCouponSkuAddAPIResponseModel

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

AlibabaWdkCouponSkuAddAPIResponseModel is 优惠券商品增加 成功返回结果

type AlibabaWdkCouponSkuAddApiResult

type AlibabaWdkCouponSkuAddApiResult struct {
	// 错误码
	ErrCode string `json:"err_code,omitempty" xml:"err_code,omitempty"`
	// 错误信息
	ErrMsg string `json:"err_msg,omitempty" xml:"err_msg,omitempty"`
	// 返回
	Model *CouponTemplateOperateResponse `json:"model,omitempty" xml:"model,omitempty"`
	// 成功标志
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

AlibabaWdkCouponSkuAddApiResult 结构体

type AlibabaWdkCouponSkuQueryAPIRequest

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

AlibabaWdkCouponSkuQueryAPIRequest 优惠券商品查询 API请求 alibaba.wdk.coupon.sku.query

优惠券商品查询

func NewAlibabaWdkCouponSkuQueryRequest

func NewAlibabaWdkCouponSkuQueryRequest() *AlibabaWdkCouponSkuQueryAPIRequest

NewAlibabaWdkCouponSkuQueryRequest 初始化AlibabaWdkCouponSkuQueryAPIRequest对象

func (AlibabaWdkCouponSkuQueryAPIRequest) GetApiMethodName

func (r AlibabaWdkCouponSkuQueryAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaWdkCouponSkuQueryAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaWdkCouponSkuQueryAPIRequest) GetParamCouponTemplateItemQueryRequest

func (r AlibabaWdkCouponSkuQueryAPIRequest) GetParamCouponTemplateItemQueryRequest() *CouponTemplateItemQueryRequest

GetParamCouponTemplateItemQueryRequest ParamCouponTemplateItemQueryRequest Getter

func (*AlibabaWdkCouponSkuQueryAPIRequest) SetParamCouponTemplateItemQueryRequest

func (r *AlibabaWdkCouponSkuQueryAPIRequest) SetParamCouponTemplateItemQueryRequest(_paramCouponTemplateItemQueryRequest *CouponTemplateItemQueryRequest) error

SetParamCouponTemplateItemQueryRequest is ParamCouponTemplateItemQueryRequest Setter 请求

type AlibabaWdkCouponSkuQueryAPIResponse

type AlibabaWdkCouponSkuQueryAPIResponse struct {
	model.CommonResponse
	AlibabaWdkCouponSkuQueryAPIResponseModel
}

AlibabaWdkCouponSkuQueryAPIResponse 优惠券商品查询 API返回值 alibaba.wdk.coupon.sku.query

优惠券商品查询

type AlibabaWdkCouponSkuQueryAPIResponseModel

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

AlibabaWdkCouponSkuQueryAPIResponseModel is 优惠券商品查询 成功返回结果

type AlibabaWdkCouponSkuQueryApiResult

type AlibabaWdkCouponSkuQueryApiResult struct {
	// 错误码
	ErrCode string `json:"err_code,omitempty" xml:"err_code,omitempty"`
	// 错误信息
	ErrMsg string `json:"err_msg,omitempty" xml:"err_msg,omitempty"`
	// 返回
	Model *CouponTemplateOperateResponse `json:"model,omitempty" xml:"model,omitempty"`
	// 成功标志
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

AlibabaWdkCouponSkuQueryApiResult 结构体

type AlibabaWdkCouponSkuRemoveAPIRequest

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

AlibabaWdkCouponSkuRemoveAPIRequest 优惠券商品删除 API请求 alibaba.wdk.coupon.sku.remove

优惠券商品删除

func NewAlibabaWdkCouponSkuRemoveRequest

func NewAlibabaWdkCouponSkuRemoveRequest() *AlibabaWdkCouponSkuRemoveAPIRequest

NewAlibabaWdkCouponSkuRemoveRequest 初始化AlibabaWdkCouponSkuRemoveAPIRequest对象

func (AlibabaWdkCouponSkuRemoveAPIRequest) GetApiMethodName

func (r AlibabaWdkCouponSkuRemoveAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaWdkCouponSkuRemoveAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaWdkCouponSkuRemoveAPIRequest) GetParamCouponTemplateItemRequest

func (r AlibabaWdkCouponSkuRemoveAPIRequest) GetParamCouponTemplateItemRequest() *CouponTemplateItemRequest

GetParamCouponTemplateItemRequest ParamCouponTemplateItemRequest Getter

func (*AlibabaWdkCouponSkuRemoveAPIRequest) SetParamCouponTemplateItemRequest

func (r *AlibabaWdkCouponSkuRemoveAPIRequest) SetParamCouponTemplateItemRequest(_paramCouponTemplateItemRequest *CouponTemplateItemRequest) error

SetParamCouponTemplateItemRequest is ParamCouponTemplateItemRequest Setter 请求

type AlibabaWdkCouponSkuRemoveAPIResponse

type AlibabaWdkCouponSkuRemoveAPIResponse struct {
	model.CommonResponse
	AlibabaWdkCouponSkuRemoveAPIResponseModel
}

AlibabaWdkCouponSkuRemoveAPIResponse 优惠券商品删除 API返回值 alibaba.wdk.coupon.sku.remove

优惠券商品删除

type AlibabaWdkCouponSkuRemoveAPIResponseModel

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

AlibabaWdkCouponSkuRemoveAPIResponseModel is 优惠券商品删除 成功返回结果

type AlibabaWdkCouponSkuRemoveApiResult

type AlibabaWdkCouponSkuRemoveApiResult struct {
	// 错误码
	ErrCode string `json:"err_code,omitempty" xml:"err_code,omitempty"`
	// 错误信息
	ErrMsg string `json:"err_msg,omitempty" xml:"err_msg,omitempty"`
	// 返回
	Model *CouponTemplateOperateResponse `json:"model,omitempty" xml:"model,omitempty"`
	// 成功标志
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

AlibabaWdkCouponSkuRemoveApiResult 结构体

type AlibabaWdkCouponSpreadApplyAPIRequest

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

AlibabaWdkCouponSpreadApplyAPIRequest 普通发券 API请求 alibaba.wdk.coupon.spread.apply

优惠券发放

func NewAlibabaWdkCouponSpreadApplyRequest

func NewAlibabaWdkCouponSpreadApplyRequest() *AlibabaWdkCouponSpreadApplyAPIRequest

NewAlibabaWdkCouponSpreadApplyRequest 初始化AlibabaWdkCouponSpreadApplyAPIRequest对象

func (AlibabaWdkCouponSpreadApplyAPIRequest) GetApiMethodName

func (r AlibabaWdkCouponSpreadApplyAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaWdkCouponSpreadApplyAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaWdkCouponSpreadApplyAPIRequest) GetParamWdkCouponApplyParam

func (r AlibabaWdkCouponSpreadApplyAPIRequest) GetParamWdkCouponApplyParam() *WdkCouponApplyParam

GetParamWdkCouponApplyParam ParamWdkCouponApplyParam Getter

func (*AlibabaWdkCouponSpreadApplyAPIRequest) SetParamWdkCouponApplyParam

func (r *AlibabaWdkCouponSpreadApplyAPIRequest) SetParamWdkCouponApplyParam(_paramWdkCouponApplyParam *WdkCouponApplyParam) error

SetParamWdkCouponApplyParam is ParamWdkCouponApplyParam Setter 参数对象

type AlibabaWdkCouponSpreadApplyAPIResponse

type AlibabaWdkCouponSpreadApplyAPIResponse struct {
	model.CommonResponse
	AlibabaWdkCouponSpreadApplyAPIResponseModel
}

AlibabaWdkCouponSpreadApplyAPIResponse 普通发券 API返回值 alibaba.wdk.coupon.spread.apply

优惠券发放

type AlibabaWdkCouponSpreadApplyAPIResponseModel

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

AlibabaWdkCouponSpreadApplyAPIResponseModel is 普通发券 成功返回结果

type AlibabaWdkCouponSpreadApplyApiResult

type AlibabaWdkCouponSpreadApplyApiResult struct {
	// 错误码
	ErrCode string `json:"err_code,omitempty" xml:"err_code,omitempty"`
	// 错误信息
	ErrMsg string `json:"err_msg,omitempty" xml:"err_msg,omitempty"`
	// 返回
	Model *CouponTemplateOperateResponse `json:"model,omitempty" xml:"model,omitempty"`
	// 成功标志
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

AlibabaWdkCouponSpreadApplyApiResult 结构体

type AlibabaWdkCouponTemplateCreateAPIRequest

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

AlibabaWdkCouponTemplateCreateAPIRequest 优惠券模版创建 API请求 alibaba.wdk.coupon.template.create

开放给外部商家创建优惠券模版

func NewAlibabaWdkCouponTemplateCreateRequest

func NewAlibabaWdkCouponTemplateCreateRequest() *AlibabaWdkCouponTemplateCreateAPIRequest

NewAlibabaWdkCouponTemplateCreateRequest 初始化AlibabaWdkCouponTemplateCreateAPIRequest对象

func (AlibabaWdkCouponTemplateCreateAPIRequest) GetApiMethodName

func (r AlibabaWdkCouponTemplateCreateAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaWdkCouponTemplateCreateAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaWdkCouponTemplateCreateAPIRequest) GetParamCouponTemplateOperateRequest

func (r AlibabaWdkCouponTemplateCreateAPIRequest) GetParamCouponTemplateOperateRequest() *CouponTemplateOperateRequest

GetParamCouponTemplateOperateRequest ParamCouponTemplateOperateRequest Getter

func (*AlibabaWdkCouponTemplateCreateAPIRequest) SetParamCouponTemplateOperateRequest

func (r *AlibabaWdkCouponTemplateCreateAPIRequest) SetParamCouponTemplateOperateRequest(_paramCouponTemplateOperateRequest *CouponTemplateOperateRequest) error

SetParamCouponTemplateOperateRequest is ParamCouponTemplateOperateRequest Setter 请求

type AlibabaWdkCouponTemplateCreateAPIResponse

type AlibabaWdkCouponTemplateCreateAPIResponse struct {
	model.CommonResponse
	AlibabaWdkCouponTemplateCreateAPIResponseModel
}

AlibabaWdkCouponTemplateCreateAPIResponse 优惠券模版创建 API返回值 alibaba.wdk.coupon.template.create

开放给外部商家创建优惠券模版

type AlibabaWdkCouponTemplateCreateAPIResponseModel

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

AlibabaWdkCouponTemplateCreateAPIResponseModel is 优惠券模版创建 成功返回结果

type AlibabaWdkCouponTemplateCreateApiResult

type AlibabaWdkCouponTemplateCreateApiResult struct {
	// 错误码
	ErrCode string `json:"err_code,omitempty" xml:"err_code,omitempty"`
	// 错误信息
	ErrMsg string `json:"err_msg,omitempty" xml:"err_msg,omitempty"`
	// 返回
	Model *CouponTemplateOperateResponse `json:"model,omitempty" xml:"model,omitempty"`
	// 成功标志
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

AlibabaWdkCouponTemplateCreateApiResult 结构体

type AlibabaWdkCouponTemplateQueryAPIRequest

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

AlibabaWdkCouponTemplateQueryAPIRequest 优惠券模版查询 API请求 alibaba.wdk.coupon.template.query

优惠券模版查询

func NewAlibabaWdkCouponTemplateQueryRequest

func NewAlibabaWdkCouponTemplateQueryRequest() *AlibabaWdkCouponTemplateQueryAPIRequest

NewAlibabaWdkCouponTemplateQueryRequest 初始化AlibabaWdkCouponTemplateQueryAPIRequest对象

func (AlibabaWdkCouponTemplateQueryAPIRequest) GetApiMethodName

func (r AlibabaWdkCouponTemplateQueryAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaWdkCouponTemplateQueryAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaWdkCouponTemplateQueryAPIRequest) GetParamCouponTemplateQueryRequest

func (r AlibabaWdkCouponTemplateQueryAPIRequest) GetParamCouponTemplateQueryRequest() *CouponTemplateQueryRequest

GetParamCouponTemplateQueryRequest ParamCouponTemplateQueryRequest Getter

func (*AlibabaWdkCouponTemplateQueryAPIRequest) SetParamCouponTemplateQueryRequest

func (r *AlibabaWdkCouponTemplateQueryAPIRequest) SetParamCouponTemplateQueryRequest(_paramCouponTemplateQueryRequest *CouponTemplateQueryRequest) error

SetParamCouponTemplateQueryRequest is ParamCouponTemplateQueryRequest Setter 系统自动生成

type AlibabaWdkCouponTemplateQueryAPIResponse

type AlibabaWdkCouponTemplateQueryAPIResponse struct {
	model.CommonResponse
	AlibabaWdkCouponTemplateQueryAPIResponseModel
}

AlibabaWdkCouponTemplateQueryAPIResponse 优惠券模版查询 API返回值 alibaba.wdk.coupon.template.query

优惠券模版查询

type AlibabaWdkCouponTemplateQueryAPIResponseModel

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

AlibabaWdkCouponTemplateQueryAPIResponseModel is 优惠券模版查询 成功返回结果

type AlibabaWdkCouponTemplateQueryApiResult

type AlibabaWdkCouponTemplateQueryApiResult struct {
	// 错误码
	ErrCode string `json:"err_code,omitempty" xml:"err_code,omitempty"`
	// 错误信息
	ErrMsg string `json:"err_msg,omitempty" xml:"err_msg,omitempty"`
	// 返回
	Model *CouponTemplateOperateResponse `json:"model,omitempty" xml:"model,omitempty"`
	// 成功标志
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

AlibabaWdkCouponTemplateQueryApiResult 结构体

type AlibabaWdkCouponTemplateTerminateAPIRequest

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

AlibabaWdkCouponTemplateTerminateAPIRequest 优惠券模版终止 API请求 alibaba.wdk.coupon.template.terminate

优惠券模版终止

func NewAlibabaWdkCouponTemplateTerminateRequest

func NewAlibabaWdkCouponTemplateTerminateRequest() *AlibabaWdkCouponTemplateTerminateAPIRequest

NewAlibabaWdkCouponTemplateTerminateRequest 初始化AlibabaWdkCouponTemplateTerminateAPIRequest对象

func (AlibabaWdkCouponTemplateTerminateAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaWdkCouponTemplateTerminateAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaWdkCouponTemplateTerminateAPIRequest) GetParamCouponTemplateTerminateRequest

func (r AlibabaWdkCouponTemplateTerminateAPIRequest) GetParamCouponTemplateTerminateRequest() *CouponTemplateTerminateRequest

GetParamCouponTemplateTerminateRequest ParamCouponTemplateTerminateRequest Getter

func (*AlibabaWdkCouponTemplateTerminateAPIRequest) SetParamCouponTemplateTerminateRequest

func (r *AlibabaWdkCouponTemplateTerminateAPIRequest) SetParamCouponTemplateTerminateRequest(_paramCouponTemplateTerminateRequest *CouponTemplateTerminateRequest) error

SetParamCouponTemplateTerminateRequest is ParamCouponTemplateTerminateRequest Setter 参数

type AlibabaWdkCouponTemplateTerminateAPIResponse

type AlibabaWdkCouponTemplateTerminateAPIResponse struct {
	model.CommonResponse
	AlibabaWdkCouponTemplateTerminateAPIResponseModel
}

AlibabaWdkCouponTemplateTerminateAPIResponse 优惠券模版终止 API返回值 alibaba.wdk.coupon.template.terminate

优惠券模版终止

type AlibabaWdkCouponTemplateTerminateAPIResponseModel

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

AlibabaWdkCouponTemplateTerminateAPIResponseModel is 优惠券模版终止 成功返回结果

type AlibabaWdkCouponTemplateTerminateApiResult

type AlibabaWdkCouponTemplateTerminateApiResult struct {
	// 错误码
	ErrCode string `json:"err_code,omitempty" xml:"err_code,omitempty"`
	// 错误信息
	ErrMsg string `json:"err_msg,omitempty" xml:"err_msg,omitempty"`
	// 返回
	Model string `json:"model,omitempty" xml:"model,omitempty"`
	// 成功标志
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

AlibabaWdkCouponTemplateTerminateApiResult 结构体

type AlibabaWdkCouponTemplateUpdateAPIRequest

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

AlibabaWdkCouponTemplateUpdateAPIRequest 优惠券模版修改 API请求 alibaba.wdk.coupon.template.update

优惠券模版修改

func NewAlibabaWdkCouponTemplateUpdateRequest

func NewAlibabaWdkCouponTemplateUpdateRequest() *AlibabaWdkCouponTemplateUpdateAPIRequest

NewAlibabaWdkCouponTemplateUpdateRequest 初始化AlibabaWdkCouponTemplateUpdateAPIRequest对象

func (AlibabaWdkCouponTemplateUpdateAPIRequest) GetApiMethodName

func (r AlibabaWdkCouponTemplateUpdateAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaWdkCouponTemplateUpdateAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaWdkCouponTemplateUpdateAPIRequest) GetParamCouponTemplateOperateRequest

func (r AlibabaWdkCouponTemplateUpdateAPIRequest) GetParamCouponTemplateOperateRequest() *CouponTemplateOperateRequest

GetParamCouponTemplateOperateRequest ParamCouponTemplateOperateRequest Getter

func (*AlibabaWdkCouponTemplateUpdateAPIRequest) SetParamCouponTemplateOperateRequest

func (r *AlibabaWdkCouponTemplateUpdateAPIRequest) SetParamCouponTemplateOperateRequest(_paramCouponTemplateOperateRequest *CouponTemplateOperateRequest) error

SetParamCouponTemplateOperateRequest is ParamCouponTemplateOperateRequest Setter 请求

type AlibabaWdkCouponTemplateUpdateAPIResponse

type AlibabaWdkCouponTemplateUpdateAPIResponse struct {
	model.CommonResponse
	AlibabaWdkCouponTemplateUpdateAPIResponseModel
}

AlibabaWdkCouponTemplateUpdateAPIResponse 优惠券模版修改 API返回值 alibaba.wdk.coupon.template.update

优惠券模版修改

type AlibabaWdkCouponTemplateUpdateAPIResponseModel

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

AlibabaWdkCouponTemplateUpdateAPIResponseModel is 优惠券模版修改 成功返回结果

type AlibabaWdkCouponTemplateUpdateApiResult

type AlibabaWdkCouponTemplateUpdateApiResult struct {
	// 错误码
	ErrCode string `json:"err_code,omitempty" xml:"err_code,omitempty"`
	// 错误信息
	ErrMsg string `json:"err_msg,omitempty" xml:"err_msg,omitempty"`
	// 返回
	Model string `json:"model,omitempty" xml:"model,omitempty"`
	// 成功标志
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

AlibabaWdkCouponTemplateUpdateApiResult 结构体

type AlibabaWdkMarketingCouponSendmaAPIRequest

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

AlibabaWdkMarketingCouponSendmaAPIRequest 发放匿名码 API请求 alibaba.wdk.marketing.coupon.sendma

根据优惠券活动id打印单个匿名码

func NewAlibabaWdkMarketingCouponSendmaRequest

func NewAlibabaWdkMarketingCouponSendmaRequest() *AlibabaWdkMarketingCouponSendmaAPIRequest

NewAlibabaWdkMarketingCouponSendmaRequest 初始化AlibabaWdkMarketingCouponSendmaAPIRequest对象

func (AlibabaWdkMarketingCouponSendmaAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaWdkMarketingCouponSendmaAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaWdkMarketingCouponSendmaAPIRequest) GetParam0

GetParam0 Param0 Getter

func (*AlibabaWdkMarketingCouponSendmaAPIRequest) SetParam0

SetParam0 is Param0 Setter 发放匿名码入参

type AlibabaWdkMarketingCouponSendmaAPIResponse

type AlibabaWdkMarketingCouponSendmaAPIResponse struct {
	model.CommonResponse
	AlibabaWdkMarketingCouponSendmaAPIResponseModel
}

AlibabaWdkMarketingCouponSendmaAPIResponse 发放匿名码 API返回值 alibaba.wdk.marketing.coupon.sendma

根据优惠券活动id打印单个匿名码

type AlibabaWdkMarketingCouponSendmaAPIResponseModel

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

AlibabaWdkMarketingCouponSendmaAPIResponseModel is 发放匿名码 成功返回结果

type AllsparkSellerCouponDetail

type AllsparkSellerCouponDetail struct {
	// 商品优惠券会有商品id集合
	ItemIds []int64 `json:"item_ids,omitempty" xml:"item_ids>int64,omitempty"`
	// 状态名称
	StatusName string `json:"status_name,omitempty" xml:"status_name,omitempty"`
	// 券�失效时间
	EndTime string `json:"end_time,omitempty" xml:"end_time,omitempty"`
	// mtop 店铺链接
	Url string `json:"url,omitempty" xml:"url,omitempty"`
	// 券生效时间
	StartTime string `json:"start_time,omitempty" xml:"start_time,omitempty"`
	// 券对外ID
	SpreadId string `json:"spread_id,omitempty" xml:"spread_id,omitempty"`
	// 券名称
	Title string `json:"title,omitempty" xml:"title,omitempty"`
	// 券类型
	CouponTypeName string `json:"coupon_type_name,omitempty" xml:"coupon_type_name,omitempty"`
	// 卖家昵称
	SellerNick string `json:"seller_nick,omitempty" xml:"seller_nick,omitempty"`
	// 设置发券数量总数
	TotalCount string `json:"total_count,omitempty" xml:"total_count,omitempty"`
	// 店铺名称
	ShopName string `json:"shop_name,omitempty" xml:"shop_name,omitempty"`
	// 券类型
	CouponType int64 `json:"coupon_type,omitempty" xml:"coupon_type,omitempty"`
	// 状态信息
	Status int64 `json:"status,omitempty" xml:"status,omitempty"`
	// 面额
	Amount int64 `json:"amount,omitempty" xml:"amount,omitempty"`
	// 卖家ID
	SellerId int64 `json:"seller_id,omitempty" xml:"seller_id,omitempty"`
	// 满足金额阀值  如订单满多少元才可用
	StartFee int64 `json:"start_fee,omitempty" xml:"start_fee,omitempty"`
	// 模板限领数量
	PersonLimitCount int64 `json:"person_limit_count,omitempty" xml:"person_limit_count,omitempty"`
	// 保留数量
	ReserveCount int64 `json:"reserve_count,omitempty" xml:"reserve_count,omitempty"`
	// 已领取数量
	ApplyCount int64 `json:"apply_count,omitempty" xml:"apply_count,omitempty"`
}

AllsparkSellerCouponDetail 结构体

type AwardOrder

type AwardOrder struct {
	// 支付时间
	PayTime string `json:"pay_time,omitempty" xml:"pay_time,omitempty"`
	// 排序码
	SortCode string `json:"sort_code,omitempty" xml:"sort_code,omitempty"`
	// 主订单ID
	BizMainOrderId int64 `json:"biz_main_order_id,omitempty" xml:"biz_main_order_id,omitempty"`
	// 排序序号
	SortNum int64 `json:"sort_num,omitempty" xml:"sort_num,omitempty"`
	// 子订单ID
	BizOrderId int64 `json:"biz_order_id,omitempty" xml:"biz_order_id,omitempty"`
	// 是否中奖
	IsAward bool `json:"is_award,omitempty" xml:"is_award,omitempty"`
}

AwardOrder 结构体

type AwardOrderResultDto

type AwardOrderResultDto struct {
	// 订单列表
	Orders []AwardOrder `json:"orders,omitempty" xml:"orders>award_order,omitempty"`
	// 页码
	PageNo int64 `json:"page_no,omitempty" xml:"page_no,omitempty"`
	// 页数
	PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"`
	// 总页数
	TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"`
}

AwardOrderResultDto 结构体

type BenefitActivityVo

type BenefitActivityVo struct {
	// ISV活动的具体地址
	ActivityUrl string `json:"activity_url,omitempty" xml:"activity_url,omitempty"`
	// 活动描述
	Desc string `json:"desc,omitempty" xml:"desc,omitempty"`
	// 活动结束时间
	EndTime string `json:"end_time,omitempty" xml:"end_time,omitempty"`
	// 活动名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 活动的开始时间
	StartTime string `json:"start_time,omitempty" xml:"start_time,omitempty"`
	// 活动类型
	Type string `json:"type,omitempty" xml:"type,omitempty"`
}

BenefitActivityVo 结构体

type BenefitDto

type BenefitDto struct {
	// 权益code
	Code string `json:"code,omitempty" xml:"code,omitempty"`
	// 权益类型
	Type string `json:"type,omitempty" xml:"type,omitempty"`
	// 权益名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 权益描述
	Description string `json:"description,omitempty" xml:"description,omitempty"`
	// 权益状态,online为上线,offline为下线,invalid为失效
	Status string `json:"status,omitempty" xml:"status,omitempty"`
	// 权益发放开始时间
	StartDate string `json:"start_date,omitempty" xml:"start_date,omitempty"`
	// 权益发放结束时间
	EndDate string `json:"end_date,omitempty" xml:"end_date,omitempty"`
	// 扩展字段
	Feature string `json:"feature,omitempty" xml:"feature,omitempty"`
	// 发放模式,fixedAmount,dynamicAmount
	SendMode string `json:"send_mode,omitempty" xml:"send_mode,omitempty"`
	// 创建者昵称
	CreatorUserName string `json:"creator_user_name,omitempty" xml:"creator_user_name,omitempty"`
	// 修改者昵称
	ModifierUserName string `json:"modifier_user_name,omitempty" xml:"modifier_user_name,omitempty"`
	// 创建时间
	GmtCreate string `json:"gmt_create,omitempty" xml:"gmt_create,omitempty"`
	// 修改时间
	GmtModified string `json:"gmt_modified,omitempty" xml:"gmt_modified,omitempty"`
	// 总库存
	Total int64 `json:"total,omitempty" xml:"total,omitempty"`
	// 发放量
	Bestow int64 `json:"bestow,omitempty" xml:"bestow,omitempty"`
	// 关联的权益池id
	BenefitPoolId int64 `json:"benefit_pool_id,omitempty" xml:"benefit_pool_id,omitempty"`
	// 总个数,当sendMode为dynamicAmount时表示已发放面额,单位为分
	TotalNum int64 `json:"total_num,omitempty" xml:"total_num,omitempty"`
	// 权益id
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
}

BenefitDto 结构体

type BenefitReadTopQuery added in v1.2.5

type BenefitReadTopQuery struct {
	// 状态,online,offline,invalid
	Statuses []string `json:"statuses,omitempty" xml:"statuses>string,omitempty"`
	// 业务来源
	Source string `json:"source,omitempty" xml:"source,omitempty"`
	// 权益发放开始时间大于该值
	StartTimeBegin string `json:"start_time_begin,omitempty" xml:"start_time_begin,omitempty"`
	// 权益发放开始时间小于该值
	StartTimeEnd string `json:"start_time_end,omitempty" xml:"start_time_end,omitempty"`
	// 权益发放结束时间小于该值
	EndTimeEnd string `json:"end_time_end,omitempty" xml:"end_time_end,omitempty"`
	// 权益发放结束时间大于该值
	EndTimeBegin string `json:"end_time_begin,omitempty" xml:"end_time_begin,omitempty"`
	// 权益类型
	BenefitType string `json:"benefit_type,omitempty" xml:"benefit_type,omitempty"`
	// 每页记录数
	PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"`
	// 当前页
	CurrentPage int64 `json:"current_page,omitempty" xml:"current_page,omitempty"`
}

BenefitReadTopQuery 结构体

type BenefitSelectorQuery

type BenefitSelectorQuery struct {
	// 权益类型
	BenefitType string `json:"benefit_type,omitempty" xml:"benefit_type,omitempty"`
	// 权益id
	BenefitId int64 `json:"benefit_id,omitempty" xml:"benefit_id,omitempty"`
	// 选择器步骤,步骤1:不需要填写其他参数,获取拥有的权益类型列表;步骤2:需填写权益类型benefit_type字段,获取该权益类型下的权益列表;步骤3:必填benefit_id,获取对应权益的信息
	Step int64 `json:"step,omitempty" xml:"step,omitempty"`
	// 需要过滤的option
	ExcludeOptions int64 `json:"exclude_options,omitempty" xml:"exclude_options,omitempty"`
	// 新权益类型id:1支付宝红包,2优酷会员卡,3不定面额红包,4流量钱包,5淘话费,6淘金币
	ConfigId int64 `json:"config_id,omitempty" xml:"config_id,omitempty"`
}

BenefitSelectorQuery 结构体

type BenefitSelectorVo

type BenefitSelectorVo struct {
	// 详情list
	PackDetailList []BenefitTemplateVo `json:"pack_detail_list,omitempty" xml:"pack_detail_list>benefit_template_vo,omitempty"`
	// 权益类型
	BenefitType string `json:"benefit_type,omitempty" xml:"benefit_type,omitempty"`
	// 权益名称
	BenefitName string `json:"benefit_name,omitempty" xml:"benefit_name,omitempty"`
	// 权益类型id
	BenefitTypeLong int64 `json:"benefit_type_long,omitempty" xml:"benefit_type_long,omitempty"`
}

BenefitSelectorVo 结构体

type BenefitSendResultExt

type BenefitSendResultExt struct {
	// 异常码列表
	ErrorCodeList []string `json:"error_code_list,omitempty" xml:"error_code_list>string,omitempty"`
	// 失败数
	FailureCount int64 `json:"failure_count,omitempty" xml:"failure_count,omitempty"`
	// 活动详情id
	IndexId int64 `json:"index_id,omitempty" xml:"index_id,omitempty"`
	// 成功数
	SuccessCount int64 `json:"success_count,omitempty" xml:"success_count,omitempty"`
}

BenefitSendResultExt 结构体

type BenefitSingleSendRequest

type BenefitSingleSendRequest struct {
	// 权益类型
	BenefitType string `json:"benefit_type,omitempty" xml:"benefit_type,omitempty"`
	// 幂等ID,代表一次发放。如,超时重试,需要保证幂等ID不变。不同的幂等ID代表两次不同得发放,因业务方更换幂等ID导致的超发问题由业务方负责
	UniqueId string `json:"unique_id,omitempty" xml:"unique_id,omitempty"`
	// 活动详情id
	DetailId int64 `json:"detail_id,omitempty" xml:"detail_id,omitempty"`
	// 活动id
	RelationId int64 `json:"relation_id,omitempty" xml:"relation_id,omitempty"`
	// 权益发放数量
	SendCount int64 `json:"send_count,omitempty" xml:"send_count,omitempty"`
}

BenefitSingleSendRequest 结构体

type BenefitTemplateVo

type BenefitTemplateVo struct {
	// 开始时间
	StartTime string `json:"start_time,omitempty" xml:"start_time,omitempty"`
	// 外部关联id(如支付宝红包模板id)
	OutObjectId string `json:"out_object_id,omitempty" xml:"out_object_id,omitempty"`
	// 结束时间
	EndTime string `json:"end_time,omitempty" xml:"end_time,omitempty"`
	// 外部关联名称
	OutObjectName string `json:"out_object_name,omitempty" xml:"out_object_name,omitempty"`
	// 扩展信息
	ExtendFeature string `json:"extend_feature,omitempty" xml:"extend_feature,omitempty"`
	// 关联活动数
	RelateActivityNum int64 `json:"relate_activity_num,omitempty" xml:"relate_activity_num,omitempty"`
	// 状态
	Status int64 `json:"status,omitempty" xml:"status,omitempty"`
	// 权益id
	BenefitId int64 `json:"benefit_id,omitempty" xml:"benefit_id,omitempty"`
	// 可用总数
	ValidTotalNum int64 `json:"valid_total_num,omitempty" xml:"valid_total_num,omitempty"`
	// 面额
	Denomination int64 `json:"denomination,omitempty" xml:"denomination,omitempty"`
}

BenefitTemplateVo 结构体

type CheckToolModule

type CheckToolModule struct {
	// 工具是否检测通过。
	IsPass string `json:"is_pass,omitempty" xml:"is_pass,omitempty"`
	// 工具检测结果中的错误信息。
	ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"`
	// 工具中已经使用的元数据。
	MetaDef string `json:"meta_def,omitempty" xml:"meta_def,omitempty"`
	// 工具审核的URL,工具检测通过后,ISV需要把该URL和工具基本信息一起提交UMP工具技术审核。
	CheckUrl string `json:"check_url,omitempty" xml:"check_url,omitempty"`
}

CheckToolModule 结构体

type CommonActivityParam

type CommonActivityParam struct {
	// 商家优惠券活动id
	OutActId string `json:"out_act_id,omitempty" xml:"out_act_id,omitempty"`
	// 五道口优惠券活动id
	ActivityId int64 `json:"activity_id,omitempty" xml:"activity_id,omitempty"`
}

CommonActivityParam 结构体

type CommonItemActivity

type CommonItemActivity struct {
	// 活动描述,不能超过100字符
	Description string `json:"description,omitempty" xml:"description,omitempty"`
	// 活动结束时间
	EndTime string `json:"end_time,omitempty" xml:"end_time,omitempty"`
	// 活动名称,不能超过32字符
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 活动开始时间
	StartTime string `json:"start_time,omitempty" xml:"start_time,omitempty"`
	// 人群标签值
	UserTag string `json:"user_tag,omitempty" xml:"user_tag,omitempty"`
	// 优惠活动ID
	ActivityId int64 `json:"activity_id,omitempty" xml:"activity_id,omitempty"`
	// 是否指定人群标签
	IsUserTag bool `json:"is_user_tag,omitempty" xml:"is_user_tag,omitempty"`
}

CommonItemActivity 结构体

type CommonItemDetail

type CommonItemDetail struct {
	// 优惠活动ID
	ActivityId int64 `json:"activity_id,omitempty" xml:"activity_id,omitempty"`
	// 优惠详情ID
	DetailId int64 `json:"detail_id,omitempty" xml:"detail_id,omitempty"`
	// 商品ID
	ItemId int64 `json:"item_id,omitempty" xml:"item_id,omitempty"`
	// 优惠类型,只有两种可选值:0-减钱;1-打折
	PromotionType int64 `json:"promotion_type,omitempty" xml:"promotion_type,omitempty"`
	// 优惠力度,其值的解释方式由promotion_type定义:当为减钱时解释成减钱数量,如:900表示减9元;当为打折时解释成打折折扣,如:900表示打9折
	PromotionValue int64 `json:"promotion_value,omitempty" xml:"promotion_value,omitempty"`
}

CommonItemDetail 结构体

type Coupon

type Coupon struct {
	// 优惠券创建时间
	CreatTime string `json:"creat_time,omitempty" xml:"creat_time,omitempty"`
	// 优惠券的截止日期
	EndTime string `json:"end_time,omitempty" xml:"end_time,omitempty"`
	// 优惠券的创建渠道,自己创建/他人创建
	CreateChannel string `json:"create_channel,omitempty" xml:"create_channel,omitempty"`
	// 优惠券ID
	CouponId int64 `json:"coupon_id,omitempty" xml:"coupon_id,omitempty"`
	// 优惠券的面值,返回的是“分”,不是“元”,500代表500分相当于5元
	Denominations int64 `json:"denominations,omitempty" xml:"denominations,omitempty"`
	// 订单满多少分才能用这个优惠券,501就是满501分能使用。注意:返回的是“分”,不是“元”
	Condition int64 `json:"condition,omitempty" xml:"condition,omitempty"`
}

Coupon 结构体

type CouponActivity

type CouponActivity struct {
	// 匿名码code
	MaCode string `json:"ma_code,omitempty" xml:"ma_code,omitempty"`
}

CouponActivity 结构体

type CouponApplyResult

type CouponApplyResult struct {
	// 请求唯一id,问题排查
	TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"`
	// 领取结果,领取成功为true,否则为false
	ApplySuccess bool `json:"apply_success,omitempty" xml:"apply_success,omitempty"`
}

CouponApplyResult 结构体

type CouponResult

type CouponResult struct {
	// 张三
	BuyerNick string `json:"buyer_nick,omitempty" xml:"buyer_nick,omitempty"`
	// ouida
	Ouid string `json:"ouid,omitempty" xml:"ouid,omitempty"`
	// asasa
	OpenUid string `json:"open_uid,omitempty" xml:"open_uid,omitempty"`
	// 已经发放优惠券的编号
	CouponNumber int64 `json:"coupon_number,omitempty" xml:"coupon_number,omitempty"`
}

CouponResult 结构体

type CouponSearchResult

type CouponSearchResult struct {
	// 优惠券详情列表
	SellerCouponDetails []AllsparkSellerCouponDetail `json:"seller_coupon_details,omitempty" xml:"seller_coupon_details>allspark_seller_coupon_detail,omitempty"`
	// 排查调用id
	TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"`
	// 符合条件总数量,用于分页等判断
	TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"`
}

CouponSearchResult 结构体

type CouponTemplate

type CouponTemplate struct {
	// 优惠券模版uuid
	Uuid string `json:"uuid,omitempty" xml:"uuid,omitempty"`
	// 幂等id,外部透传
	UniqueId string `json:"unique_id,omitempty" xml:"unique_id,omitempty"`
	// 领取限制
	ApplyLimitConfig *CouponTemplateApplyLimitConfig `json:"apply_limit_config,omitempty" xml:"apply_limit_config,omitempty"`
	// 基础信息
	CommonConfig *CouponTemplateCommonConfig `json:"common_config,omitempty" xml:"common_config,omitempty"`
	// 生效条件
	ConditionConfig *CouponTemplateConditionConfig `json:"condition_config,omitempty" xml:"condition_config,omitempty"`
	// 优惠效果
	DiscountConfig *CouponTemplateDiscountConfig `json:"discount_config,omitempty" xml:"discount_config,omitempty"`
	// 模板表主键 创建时为空
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
	// 出资人配置
	InvestmentConfig *CouponTemplateInvestmentConfig `json:"investment_config,omitempty" xml:"investment_config,omitempty"`
	// 其他配置--拓展信息
	OptionConfig *CouponTemplateOptionConfig `json:"option_config,omitempty" xml:"option_config,omitempty"`
	// 参与者
	ParticipateConfig *CouponTemplateParticipateConfig `json:"participate_config,omitempty" xml:"participate_config,omitempty"`
	// ump模板ID
	SourceId int64 `json:"source_id,omitempty" xml:"source_id,omitempty"`
	// 实例有效时间配置
	TimeLimitConfig *CouponTemplateTimeLimitConfig `json:"time_limit_config,omitempty" xml:"time_limit_config,omitempty"`
	// 兼容历史逻辑配置
	CompatibleConfig *CouponTemplateCompatibleConfig `json:"compatible_config,omitempty" xml:"compatible_config,omitempty"`
}

CouponTemplate 结构体

type CouponTemplateApplyLimitConfig

type CouponTemplateApplyLimitConfig struct {
	// 优惠券最后能领取时间(超过这个时间,优惠券不能领取)
	ApplyEndTime string `json:"apply_end_time,omitempty" xml:"apply_end_time,omitempty"`
	// 优惠券最早能领取时间(在这时间之前,优惠券不能领取)
	ApplyStartTime string `json:"apply_start_time,omitempty" xml:"apply_start_time,omitempty"`
	// 优惠券每日限领数(-1表示不限制)
	CouponDailyLmt int64 `json:"coupon_daily_lmt,omitempty" xml:"coupon_daily_lmt,omitempty"`
	// 优惠券总数(-1表示不限制)
	CouponTotalLmt int64 `json:"coupon_total_lmt,omitempty" xml:"coupon_total_lmt,omitempty"`
	// 每人每日限领(-1表示不限制)
	PersonalDailyLmt int64 `json:"personal_daily_lmt,omitempty" xml:"personal_daily_lmt,omitempty"`
	// 个人总领取限制数量(-1表示不限制)
	PersonalLmt int64 `json:"personal_lmt,omitempty" xml:"personal_lmt,omitempty"`
}

CouponTemplateApplyLimitConfig 结构体

type CouponTemplateCommonConfig

type CouponTemplateCommonConfig struct {
	// 申请渠道 anonymousOffline
	ApplyChannels []string `json:"apply_channels,omitempty" xml:"apply_channels>string,omitempty"`
	// 优惠券活动描述
	Description string `json:"description,omitempty" xml:"description,omitempty"`
	// 优惠券名称
	Title string `json:"title,omitempty" xml:"title,omitempty"`
	// 优惠券发放方式 ANONYMOUS("anonymous","匿名券"), REGISTERED("registered","记名券"),
	SendType string `json:"send_type,omitempty" xml:"send_type,omitempty"`
	// 模板状态 NORMAL(1, "有效"), DELETE(-1, "删除"), ENDING(0, "结束领取"), NOUSE(-2, "无效"), WDK_COUPON_DRAFT(-999, "草稿"),
	Status int64 `json:"status,omitempty" xml:"status,omitempty"`
	// 优惠券类型 UNIT_PRICE(10,"unitPrice","单品定价券"), FULL_AMOUNT_REDUCE(11, "fullAmountReduce", "满元减券"), FULL_AMOUNT_DISCOUNT(12, "fullAmountDiscount", "满元折券"), FULL_COUNT_REDUCE(13, "fullCountReduce", "满件减券"), FULL_COUNT_DISCOUNT(14, "fullCountDiscount", "满件折券"), VOUCHER(15, "voucher", "抵用券"),
	Type int64 `json:"type,omitempty" xml:"type,omitempty"`
}

CouponTemplateCommonConfig 结构体

type CouponTemplateCompatibleConfig

type CouponTemplateCompatibleConfig struct {
	// 优惠券应用类型 pointCoupon:积分券
	ApplicationType string `json:"application_type,omitempty" xml:"application_type,omitempty"`
	// 是否要求优惠券在一天的23:59:59失效 1表示最后一秒失效
	ValidTillNight int64 `json:"valid_till_night,omitempty" xml:"valid_till_night,omitempty"`
}

CouponTemplateCompatibleConfig 结构体

type CouponTemplateConditionConfig

type CouponTemplateConditionConfig struct {
	// 生效类目
	Categories []string `json:"categories,omitempty" xml:"categories>string,omitempty"`
	// 生效门店
	ShopIds []string `json:"shop_ids,omitempty" xml:"shop_ids>string,omitempty"`
	// 生效终端:  1.app 2.pos
	Terminals []string `json:"terminals,omitempty" xml:"terminals>string,omitempty"`
	// 排除的商品规则 1:专柜品
	ExcludeItemRules []string `json:"exclude_item_rules,omitempty" xml:"exclude_item_rules>string,omitempty"`
	// 生效商家类目
	MerchantCategories []string `json:"merchant_categories,omitempty" xml:"merchant_categories>string,omitempty"`
	// 门槛金额
	Amount int64 `json:"amount,omitempty" xml:"amount,omitempty"`
	// 门槛件数
	Count int64 `json:"count,omitempty" xml:"count,omitempty"`
	// 券的使用范围 COUPON_RANGE_STORE(1, "rangeShop", "店铺券"), COUPON_RANGE_ITEM(2, "rangeItem", "商品券"), COUPON_RANGE_CATEGORY(3, "rangeCategory", "品类券"), COUPON_RANGE_SELLER(307,"rangeSeller", "卖家券"),
	RangeType int64 `json:"range_type,omitempty" xml:"range_type,omitempty"`
	// 人群信息
	UserCrowdConfig *CouponTemplateUserCrowdConfig `json:"user_crowd_config,omitempty" xml:"user_crowd_config,omitempty"`
	// 单笔订单最大可用张数
	MaxUseCountPerOrder int64 `json:"max_use_count_per_order,omitempty" xml:"max_use_count_per_order,omitempty"`
	// 最大优惠金额
	MaxEffectAmount int64 `json:"max_effect_amount,omitempty" xml:"max_effect_amount,omitempty"`
	// 是否生效满元条件
	AmountAt bool `json:"amount_at,omitempty" xml:"amount_at,omitempty"`
	// 是否生效满件条件
	CountAt bool `json:"count_at,omitempty" xml:"count_at,omitempty"`
	// 是否限制本人使用
	OnlyMemberSelf bool `json:"only_member_self,omitempty" xml:"only_member_self,omitempty"`
}

CouponTemplateConditionConfig 结构体

type CouponTemplateDiscountConfig

type CouponTemplateDiscountConfig struct {
	// 减钱金额
	DecreaseMoney int64 `json:"decrease_money,omitempty" xml:"decrease_money,omitempty"`
	// 打折额度
	DiscountRate int64 `json:"discount_rate,omitempty" xml:"discount_rate,omitempty"`
	// 优惠后的固定价格
	FixPriceAmount int64 `json:"fix_price_amount,omitempty" xml:"fix_price_amount,omitempty"`
	// 是否减钱
	Decrease bool `json:"decrease,omitempty" xml:"decrease,omitempty"`
	// 是否打折
	Discount bool `json:"discount,omitempty" xml:"discount,omitempty"`
	// 是否固定价格
	FixPrice bool `json:"fix_price,omitempty" xml:"fix_price,omitempty"`
}

CouponTemplateDiscountConfig 结构体

type CouponTemplateInvestmentConfig

type CouponTemplateInvestmentConfig struct {
	// 出资人配置
	InvestmentInfoList []InvestmentInfo `json:"investment_info_list,omitempty" xml:"investment_info_list>investment_info,omitempty"`
}

CouponTemplateInvestmentConfig 结构体

type CouponTemplateItemQueryRequest

type CouponTemplateItemQueryRequest struct {
	// 模板表主键id
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
	// 分页信息
	PageInfo *PageInfo `json:"page_info,omitempty" xml:"page_info,omitempty"`
	// ump模板ID
	SourceId int64 `json:"source_id,omitempty" xml:"source_id,omitempty"`
	// 用户信息
	UserInfo *UserInfo `json:"user_info,omitempty" xml:"user_info,omitempty"`
	// 分组序号
	LogicGroupNumber int64 `json:"logic_group_number,omitempty" xml:"logic_group_number,omitempty"`
	// 五道口分组id
	WdkGroupId int64 `json:"wdk_group_id,omitempty" xml:"wdk_group_id,omitempty"`
}

CouponTemplateItemQueryRequest 结构体

type CouponTemplateItemRequest

type CouponTemplateItemRequest struct {
	// 券圈品设置
	PromActSkuList []PromActSku `json:"prom_act_sku_list,omitempty" xml:"prom_act_sku_list>prom_act_sku,omitempty"`
	// 模板表主键id
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
	// ump模板ID
	SourceId int64 `json:"source_id,omitempty" xml:"source_id,omitempty"`
	// 用户信息
	UserInfo *UserInfo `json:"user_info,omitempty" xml:"user_info,omitempty"`
}

CouponTemplateItemRequest 结构体

type CouponTemplateOperateRequest

type CouponTemplateOperateRequest struct {
	// 券模版
	CouponTemplate *CouponTemplate `json:"coupon_template,omitempty" xml:"coupon_template,omitempty"`
	// 用户信息
	UserInfo *UserInfo `json:"user_info,omitempty" xml:"user_info,omitempty"`
}

CouponTemplateOperateRequest 结构体

type CouponTemplateOperateResponse

type CouponTemplateOperateResponse struct {
	// 创建结果
	FailElements []FailElement `json:"fail_elements,omitempty" xml:"fail_elements>fail_element,omitempty"`
	// 券圈品设置
	PromActSkuList []PromActSku `json:"prom_act_sku_list,omitempty" xml:"prom_act_sku_list>prom_act_sku,omitempty"`
	// 匿名码code
	MaCode string `json:"ma_code,omitempty" xml:"ma_code,omitempty"`
	// 券实例id
	VoucherId string `json:"voucher_id,omitempty" xml:"voucher_id,omitempty"`
	// 模板表主键
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
	// ump模板ID
	SourceId int64 `json:"source_id,omitempty" xml:"source_id,omitempty"`
	// 分页信息
	PageInfo *PageInfo `json:"page_info,omitempty" xml:"page_info,omitempty"`
	// 券模版
	CouponTemplate *CouponTemplate `json:"coupon_template,omitempty" xml:"coupon_template,omitempty"`
}

CouponTemplateOperateResponse 结构体

type CouponTemplateOptionConfig

type CouponTemplateOptionConfig struct {
	// 外部优惠券模板id
	OutCouponTemplateId string `json:"out_coupon_template_id,omitempty" xml:"out_coupon_template_id,omitempty"`
	// 外部优惠券类型
	OutCouponType string `json:"out_coupon_type,omitempty" xml:"out_coupon_type,omitempty"`
	// 优惠券logo url
	LogoUrl string `json:"logo_url,omitempty" xml:"logo_url,omitempty"`
	// 券图片
	PictureUrl string `json:"picture_url,omitempty" xml:"picture_url,omitempty"`
	// 合同ID
	ContractInstanceId int64 `json:"contract_instance_id,omitempty" xml:"contract_instance_id,omitempty"`
	// 采买者ID
	PurchaseId int64 `json:"purchase_id,omitempty" xml:"purchase_id,omitempty"`
	// 抵用券是否可贬值使用
	Devalue bool `json:"devalue,omitempty" xml:"devalue,omitempty"`
}

CouponTemplateOptionConfig 结构体

type CouponTemplateParticipateConfig

type CouponTemplateParticipateConfig struct {
	// 参与者列表
	ParticipateList []LogicGroup `json:"participate_list,omitempty" xml:"participate_list>logic_group,omitempty"`
}

CouponTemplateParticipateConfig 结构体

type CouponTemplateQueryRequest

type CouponTemplateQueryRequest struct {
	// 模板表ID
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
	// ump模板ID
	SourceId int64 `json:"source_id,omitempty" xml:"source_id,omitempty"`
	// 用户信息
	UserInfo *UserInfo `json:"user_info,omitempty" xml:"user_info,omitempty"`
}

CouponTemplateQueryRequest 结构体

type CouponTemplateTerminateRequest

type CouponTemplateTerminateRequest struct {
	// ump模板ID
	SourceId int64 `json:"source_id,omitempty" xml:"source_id,omitempty"`
	// 用户信息
	UserInfo *UserInfo `json:"user_info,omitempty" xml:"user_info,omitempty"`
}

CouponTemplateTerminateRequest 结构体

type CouponTemplateTimeLimitConfig

type CouponTemplateTimeLimitConfig struct {
	// 优惠券结束时间
	EndValidTime string `json:"end_valid_time,omitempty" xml:"end_valid_time,omitempty"`
	// 优惠券开始时间
	StartValidTime string `json:"start_valid_time,omitempty" xml:"start_valid_time,omitempty"`
	// 优惠券有效时间类型 RANGE(1,"开始/结束时间"), DURATION(2,"固定时长"),BETWEEN(4, "发放后X-Y天失效")
	ValidTimeType int64 `json:"valid_time_type,omitempty" xml:"valid_time_type,omitempty"`
	// 优惠券有效时长,单位为秒(固定有效时长的优惠券)
	ValidityPeriod int64 `json:"validity_period,omitempty" xml:"validity_period,omitempty"`
	// 优惠券有效开始时长,单位为秒(优惠券领取后X天开始有效)
	ValidityStartInterval int64 `json:"validity_start_interval,omitempty" xml:"validity_start_interval,omitempty"`
	// 优惠券有效结束时长,单位为秒(优惠券领取后X-Y天有效的Y)
	ValidityEndInterval int64 `json:"validity_end_interval,omitempty" xml:"validity_end_interval,omitempty"`
}

CouponTemplateTimeLimitConfig 结构体

type CouponTemplateUserCrowdConfig

type CouponTemplateUserCrowdConfig struct {
	// 商家自定义人群
	MerchantCustomizeCrowdName string `json:"merchant_customize_crowd_name,omitempty" xml:"merchant_customize_crowd_name,omitempty"`
	// 平台人群
	PlatformCrowdName string `json:"platform_crowd_name,omitempty" xml:"platform_crowd_name,omitempty"`
}

CouponTemplateUserCrowdConfig 结构体

type DataServiceResponse

type DataServiceResponse struct {
	// 报错编码
	ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"`
	// 报错描述
	ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"`
	// 鹰眼id
	TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"`
	// 扩展字段
	ExtMap *Extmap `json:"ext_map,omitempty" xml:"ext_map,omitempty"`
	// 结果对象
	Result bool `json:"result,omitempty" xml:"result,omitempty"`
	// 调用是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

DataServiceResponse 结构体

type DeleteActivityBenefitDetailVo

type DeleteActivityBenefitDetailVo struct {
	// 活动关联权益后生产的详情ID
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
}

DeleteActivityBenefitDetailVo 结构体

type Detaillist

type Detaillist struct {
	// 需要消耗星星数
	UnitPoint string `json:"unit_point,omitempty" xml:"unit_point,omitempty"`
	// 扩展字段
	ExtMap string `json:"ext_map,omitempty" xml:"ext_map,omitempty"`
	// 价格分
	UnitPrice int64 `json:"unit_price,omitempty" xml:"unit_price,omitempty"`
	// 数量
	Num int64 `json:"num,omitempty" xml:"num,omitempty"`
}

Detaillist 结构体

type ErrorMessage

type ErrorMessage struct {
	// 买家昵称
	BuyerNick string `json:"buyer_nick,omitempty" xml:"buyer_nick,omitempty"`
	// 发送失败的原因
	Reason string `json:"reason,omitempty" xml:"reason,omitempty"`
	// ouid
	Ouid string `json:"ouid,omitempty" xml:"ouid,omitempty"`
	// asas
	OpenUid string `json:"open_uid,omitempty" xml:"open_uid,omitempty"`
}

ErrorMessage 结构体

type ExpandCardVo

type ExpandCardVo struct {
	// 品牌色
	BrandColor string `json:"brand_color,omitempty" xml:"brand_color,omitempty"`
	// 目标跳转链接
	TargetUrl string `json:"target_url,omitempty" xml:"target_url,omitempty"`
	// 聚合的卡当中第一张卡的开卡时间
	CardCreateDate string `json:"card_create_date,omitempty" xml:"card_create_date,omitempty"`
	// 最近要过期的余额有效期描述
	CardValidDesc string `json:"card_valid_desc,omitempty" xml:"card_valid_desc,omitempty"`
	// 聚合的卡当中最近要过期的卡的有效期
	CardValidDate string `json:"card_valid_date,omitempty" xml:"card_valid_date,omitempty"`
	// 卡膨胀金余额,买家在该店铺下该卡类型的所有卡实例的总膨胀金余额
	CardRemainExpandMoney string `json:"card_remain_expand_money,omitempty" xml:"card_remain_expand_money,omitempty"`
	// 卡本金余额,买家在该店铺下该卡类型的所有卡实例的总本金余额
	CardRemainBasicMoney string `json:"card_remain_basic_money,omitempty" xml:"card_remain_basic_money,omitempty"`
	// 卡余额,买家在该店铺下该卡类型的所有卡实例的总余额
	CardRemainMoney string `json:"card_remain_money,omitempty" xml:"card_remain_money,omitempty"`
	// 购物金店铺icon
	CardIconUrl string `json:"card_icon_url,omitempty" xml:"card_icon_url,omitempty"`
	// 卡名称
	CardName string `json:"card_name,omitempty" xml:"card_name,omitempty"`
	// 卡使用范围
	CardUsedScope string `json:"card_used_scope,omitempty" xml:"card_used_scope,omitempty"`
	// 店铺信息
	ShopInfoVo *ShopInfoVo `json:"shop_info_vo,omitempty" xml:"shop_info_vo,omitempty"`
}

ExpandCardVo 结构体

type Extmap

type Extmap struct {
	// 扩展字段
	Key string `json:"key,omitempty" xml:"key,omitempty"`
	// 扩展字段
	Keyvalue bool `json:"keyvalue,omitempty" xml:"keyvalue,omitempty"`
	// empty
	Empty bool `json:"empty,omitempty" xml:"empty,omitempty"`
}

Extmap 结构体

type FailElement

type FailElement struct {
	// 错误信息
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
	// 参与者id
	ParticipateId string `json:"participate_id,omitempty" xml:"participate_id,omitempty"`
	// 参与者名称
	ParticipateName string `json:"participate_name,omitempty" xml:"participate_name,omitempty"`
}

FailElement 结构体

type InvestmentInfo

type InvestmentInfo struct {
	// 出资人
	Investor string `json:"investor,omitempty" xml:"investor,omitempty"`
	// 出资比例 2000 = 20%
	InvestorRatio int64 `json:"investor_ratio,omitempty" xml:"investor_ratio,omitempty"`
}

InvestmentInfo 结构体

type ItemPromotion

type ItemPromotion struct {
	// 活动名称。
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 活动的有效条件、人群和行为描述。
	Description string `json:"description,omitempty" xml:"description,omitempty"`
	// 活动开始时间。
	StartTime string `json:"start_time,omitempty" xml:"start_time,omitempty"`
	// 活动结束时间。
	EndTime string `json:"end_time,omitempty" xml:"end_time,omitempty"`
	// 用户标签。当is_user_tag为true时,该值才有意义。
	UserTag string `json:"user_tag,omitempty" xml:"user_tag,omitempty"`
	// 活动id
	ActivityId int64 `json:"activity_id,omitempty" xml:"activity_id,omitempty"`
	// 活动范围:0表示全部参与; 1表示部分商品参与。
	ParticipateRange int64 `json:"participate_range,omitempty" xml:"participate_range,omitempty"`
	// 减多少钱。当is_decrease_money为true时,该值才有意义。注意:该值单位为分,即100表示1元。
	DecreaseAmount int64 `json:"decrease_amount,omitempty" xml:"decrease_amount,omitempty"`
	// 折扣值。当is_discount为true时,该值才有意义。注意:800表示8折。
	DiscountRate int64 `json:"discount_rate,omitempty" xml:"discount_rate,omitempty"`
	// 是否指定用户标签。
	IsUserTag bool `json:"is_user_tag,omitempty" xml:"is_user_tag,omitempty"`
	// 是否有减钱行为。
	IsDecreaseMoney bool `json:"is_decrease_money,omitempty" xml:"is_decrease_money,omitempty"`
	// 是否有打折行为。
	IsDiscount bool `json:"is_discount,omitempty" xml:"is_discount,omitempty"`
}

ItemPromotion 结构体

type LimitDiscountDetail

type LimitDiscountDetail struct {
	// 限时打折名称
	LimitDiscountName string `json:"limit_discount_name,omitempty" xml:"limit_discount_name,omitempty"`
	// 限时打折开始时间。
	StartTime string `json:"start_time,omitempty" xml:"start_time,omitempty"`
	// 限时打折结束时间。
	EndTime string `json:"end_time,omitempty" xml:"end_time,omitempty"`
	// 商品的id(数字类型)
	ItemId int64 `json:"item_id,omitempty" xml:"item_id,omitempty"`
	// 该商品限时折扣
	ItemDiscount float64 `json:"item_discount,omitempty" xml:"item_discount,omitempty"`
	// 每人限购数量,1、2、5、10000(不限)。
	LimitNum int64 `json:"limit_num,omitempty" xml:"limit_num,omitempty"`
}

LimitDiscountDetail 结构体

type LogicGroup

type LogicGroup struct {
	// 五道口参与者名称
	WdkGroupName string `json:"wdk_group_name,omitempty" xml:"wdk_group_name,omitempty"`
	// 参与者分组序号
	Number int64 `json:"number,omitempty" xml:"number,omitempty"`
	// 逻辑分组类型  COMMON(1, "普通分组"), EXCHANGE(2, "换购分组"), BUY_GIFT(3, "买赠分组"), EXCHANGE_TJ_OVERLAY(4, "特价换购叠加分组"),
	LogicGroupType int64 `json:"logic_group_type,omitempty" xml:"logic_group_type,omitempty"`
}

LogicGroup 结构体

type MarketResult

type MarketResult struct {
	// 错误信息
	Message string `json:"message,omitempty" xml:"message,omitempty"`
	// 返回的匿名码对象
	Data *CouponActivity `json:"data,omitempty" xml:"data,omitempty"`
}

MarketResult 结构体

type Meal

type Meal struct {
	// 搭配套餐名称。
	MealName string `json:"meal_name,omitempty" xml:"meal_name,omitempty"`
	// 搭配套餐商品列表。item_id为商品的id;item_show_name为商品显示名。因最多允许5个商品进行搭配,所以查询最多有5个,以json格式传出。
	ItemList string `json:"item_list,omitempty" xml:"item_list,omitempty"`
	// 搭配套餐描述!
	MealMemo string `json:"meal_memo,omitempty" xml:"meal_memo,omitempty"`
	// 套餐状态。有效:VALID;失效:INVALID(有效套餐为可使用的套餐,无效套餐为套餐中有商品下架或库存为0时)。
	Status string `json:"status,omitempty" xml:"status,omitempty"`
	// 套餐id。
	MealId int64 `json:"meal_id,omitempty" xml:"meal_id,omitempty"`
	// 套餐一口价(单位是:分)
	MealPrice float64 `json:"meal_price,omitempty" xml:"meal_price,omitempty"`
	// 普通运费模板id。若这个字段为空或0时,运费是卖家负责;若这个字段不为空,说明运费模板存在,运费是买家负责。
	PostageId int64 `json:"postage_id,omitempty" xml:"postage_id,omitempty"`
}

Meal 结构体

type MjsPromotion

type MjsPromotion struct {
	// 活动名称。
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 活动的有效条件、人群和行为描述。
	Description string `json:"description,omitempty" xml:"description,omitempty"`
	// 活动开始时间。
	StartTime string `json:"start_time,omitempty" xml:"start_time,omitempty"`
	// 活动结束时间。
	EndTime string `json:"end_time,omitempty" xml:"end_time,omitempty"`
	// 用户标签。当is_user_tag为true时,该值才有意义。
	UserTag string `json:"user_tag,omitempty" xml:"user_tag,omitempty"`
	// 礼品名称。当is_send_gift为true时,该值才有意义。
	GiftName string `json:"gift_name,omitempty" xml:"gift_name,omitempty"`
	// 商品详情的url,当is_send_gift为true时,该值才有效。
	GiftUrl string `json:"gift_url,omitempty" xml:"gift_url,omitempty"`
	// 免邮的排除地区,即,除指定地区外,其他地区包邮。当is_free_post为true时,该值才有意义。代码使用*链接,代码为行政区划代码。
	ExcludeArea string `json:"exclude_area,omitempty" xml:"exclude_area,omitempty"`
	// 活动id
	ActivityId int64 `json:"activity_id,omitempty" xml:"activity_id,omitempty"`
	// 活动类型: 1表示商品级别的活动;2表示店铺级别的活动。
	Type int64 `json:"type,omitempty" xml:"type,omitempty"`
	// 活动范围:0表示全部参与; 1表示部分商品参与。
	ParticipateRange int64 `json:"participate_range,omitempty" xml:"participate_range,omitempty"`
	// 满多少元。当is_amount_over为true时,该才字段有意义。注意:单位是分,即10000表示100元。
	TotalPrice int64 `json:"total_price,omitempty" xml:"total_price,omitempty"`
	// 满多少件。当is_item_count_over为true时,该值才有意义。
	ItemCount int64 `json:"item_count,omitempty" xml:"item_count,omitempty"`
	// 店铺会员等级,当is_shop_member为true时,该值才有意义。0:店铺客户;1:普通客户;2:高级会员;3:VIP会员; 4:至尊VIP会员。
	ShopMemberLevel int64 `json:"shop_member_level,omitempty" xml:"shop_member_level,omitempty"`
	// 减多少钱。当is_decrease_money为true时,该值才有意义。注意:该值单位为分,即100表示1元。
	DecreaseAmount int64 `json:"decrease_amount,omitempty" xml:"decrease_amount,omitempty"`
	// 折扣值。当is_discount为true时,该值才有意义。注意:800表示8折。
	DiscountRate int64 `json:"discount_rate,omitempty" xml:"discount_rate,omitempty"`
	// 礼品id,当is_send_gift为true时,该值才有意义。<br/>1)只有填写真实的淘宝商品id时,才能生成物流单,并且在确定订单的页面上可以点击该商品名称跳转到商品详情页面。2)当礼物为实物商品时(有宝贝id),礼物必须为上架商品,不能为虚拟商品,不能为拍卖商品,不能有sku,不符合条件的,不做为礼物。
	GiftId int64 `json:"gift_id,omitempty" xml:"gift_id,omitempty"`
	// 是否有满元条件。
	IsAmountOver bool `json:"is_amount_over,omitempty" xml:"is_amount_over,omitempty"`
	// 满元是否上不封顶。当is_amount_over为true时,该值才有意义。当该值为true时,表示满元上不封顶,例如满100元减10元,当满200时,则减20元。。。
	IsAmountMultiple bool `json:"is_amount_multiple,omitempty" xml:"is_amount_multiple,omitempty"`
	// 是否有满件条件。
	IsItemCountOver bool `json:"is_item_count_over,omitempty" xml:"is_item_count_over,omitempty"`
	// 满件是否上不封顶。当is_amount_multiple为true时,该值才有意义。当该值为true时,表示满件上不封顶,例如满10件减2元,当满20件时,则减4元。。。
	IsItemMultiple bool `json:"is_item_multiple,omitempty" xml:"is_item_multiple,omitempty"`
	// 是否有店铺会员等级条件。
	IsShopMember bool `json:"is_shop_member,omitempty" xml:"is_shop_member,omitempty"`
	// 是否指定用户标签。
	IsUserTag bool `json:"is_user_tag,omitempty" xml:"is_user_tag,omitempty"`
	// 是否有减钱行为。
	IsDecreaseMoney bool `json:"is_decrease_money,omitempty" xml:"is_decrease_money,omitempty"`
	// 是否有打折行为。
	IsDiscount bool `json:"is_discount,omitempty" xml:"is_discount,omitempty"`
	// 是否有送礼品行为。
	IsSendGift bool `json:"is_send_gift,omitempty" xml:"is_send_gift,omitempty"`
	// 是否有免邮行为。
	IsFreePost bool `json:"is_free_post,omitempty" xml:"is_free_post,omitempty"`
}

MjsPromotion 结构体

type MobileBenefitSendResultExt

type MobileBenefitSendResultExt struct {
	// 错误码列表
	ErrorCodeList []string `json:"error_code_list,omitempty" xml:"error_code_list>string,omitempty"`
	// 失败份数
	FailureCount int64 `json:"failure_count,omitempty" xml:"failure_count,omitempty"`
	// 成功份数
	SuccessCount int64 `json:"success_count,omitempty" xml:"success_count,omitempty"`
	// 活动详情id
	IndexId int64 `json:"index_id,omitempty" xml:"index_id,omitempty"`
}

MobileBenefitSendResultExt 结构体

type OrightDto

type OrightDto struct {
	// 模板名称
	TemplateName string `json:"template_name,omitempty" xml:"template_name,omitempty"`
	// 权益内容
	BenefitName string `json:"benefit_name,omitempty" xml:"benefit_name,omitempty"`
	// 权益类型名称
	RightTypeName string `json:"right_type_name,omitempty" xml:"right_type_name,omitempty"`
	// 开始时间
	StartDate string `json:"start_date,omitempty" xml:"start_date,omitempty"`
	// 结束时间
	EndDate string `json:"end_date,omitempty" xml:"end_date,omitempty"`
	// 概率
	Probability string `json:"probability,omitempty" xml:"probability,omitempty"`
	// 金额
	Amount string `json:"amount,omitempty" xml:"amount,omitempty"`
	// 使用开始时间
	UseStartTime string `json:"use_start_time,omitempty" xml:"use_start_time,omitempty"`
	// 使用结束时间
	UseEndTime string `json:"use_end_time,omitempty" xml:"use_end_time,omitempty"`
	// 门槛
	Condition string `json:"condition,omitempty" xml:"condition,omitempty"`
	// 扩展参数
	ExtAttribute string `json:"ext_attribute,omitempty" xml:"ext_attribute,omitempty"`
	// 奖品id
	PrizeId int64 `json:"prize_id,omitempty" xml:"prize_id,omitempty"`
	// 权益类型id
	RightTypeId int64 `json:"right_type_id,omitempty" xml:"right_type_id,omitempty"`
	// 总数
	PrizeQuantity int64 `json:"prize_quantity,omitempty" xml:"prize_quantity,omitempty"`
	// 可发放数
	RemainPrizeQuantity int64 `json:"remain_prize_quantity,omitempty" xml:"remain_prize_quantity,omitempty"`
}

OrightDto 结构体

type OuidData added in v1.2.5

type OuidData struct {
	// ouid
	Ouid string `json:"ouid,omitempty" xml:"ouid,omitempty"`
}

OuidData 结构体

type Page

type Page struct {
	// 结果
	Datas []AlibabaAsrDataservicePromotionruleQueryData `json:"datas,omitempty" xml:"datas>alibaba_asr_dataservice_promotionrule_query_data,omitempty"`
	// 返回的活动列表
	ActivityList []ActivityDto `json:"activity_list,omitempty" xml:"activity_list>activity_dto,omitempty"`
	// 返回查询数据
	DataList []BenefitDto `json:"data_list,omitempty" xml:"data_list>benefit_dto,omitempty"`
	// 总数
	Total int64 `json:"total,omitempty" xml:"total,omitempty"`
	// 每页查询数量
	PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"`
	// 当前页
	PageNo int64 `json:"page_no,omitempty" xml:"page_no,omitempty"`
	// 当前页
	CurrentPage int64 `json:"current_page,omitempty" xml:"current_page,omitempty"`
	// 总记录数
	TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"`
}

Page 结构体

type PageInfo

type PageInfo struct {
	// 第几页
	PageNum int64 `json:"page_num,omitempty" xml:"page_num,omitempty"`
	// 每页条数
	PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"`
	// 总共多少页
	Pages int64 `json:"pages,omitempty" xml:"pages,omitempty"`
	// 总共多少条
	Total int64 `json:"total,omitempty" xml:"total,omitempty"`
}

PageInfo 结构体

type PosKeyPromotionRuleDetailDto

type PosKeyPromotionRuleDetailDto struct {
	// 扩展属性
	ExtMap string `json:"ext_map,omitempty" xml:"ext_map,omitempty"`
	// 1,9,12,15四个等级
	UnitPoint string `json:"unit_point,omitempty" xml:"unit_point,omitempty"`
	// 数量
	Num int64 `json:"num,omitempty" xml:"num,omitempty"`
	// 价格
	UnitPrice int64 `json:"unit_price,omitempty" xml:"unit_price,omitempty"`
}

PosKeyPromotionRuleDetailDto 结构体

type PosKeyPromotionRuleDto

type PosKeyPromotionRuleDto struct {
	// 优惠规则
	DetailList []PosKeyPromotionRuleDetailDto `json:"detail_list,omitempty" xml:"detail_list>pos_key_promotion_rule_detail_dto,omitempty"`
	// 名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// postkey
	PosKey int64 `json:"pos_key,omitempty" xml:"pos_key,omitempty"`
}

PosKeyPromotionRuleDto 结构体

type PromActSku

type PromActSku struct {
	// 参与者id
	ParticipateId string `json:"participate_id,omitempty" xml:"participate_id,omitempty"`
	// 参与者名称
	ParticipateName string `json:"participate_name,omitempty" xml:"participate_name,omitempty"`
	// 商家逻辑分组序号
	LogicGroupNumber int64 `json:"logic_group_number,omitempty" xml:"logic_group_number,omitempty"`
	// 参与者类型 SKU_CODE(1, "商品skuCode"), SHOP(2, "店铺"), CATEGORY(3, "品类")
	ParticipateType int64 `json:"participate_type,omitempty" xml:"participate_type,omitempty"`
}

PromActSku 结构体

type PromotionRange

type PromotionRange struct {
	// 活动名称。
	ActivityName string `json:"activity_name,omitempty" xml:"activity_name,omitempty"`
	// 参与活动的商品id。
	ItemId int64 `json:"item_id,omitempty" xml:"item_id,omitempty"`
	// 活动id。
	ActivityId int64 `json:"activity_id,omitempty" xml:"activity_id,omitempty"`
}

PromotionRange 结构体

type PromotionTag

type PromotionTag struct {
	// 标签名称
	TagName string `json:"tag_name,omitempty" xml:"tag_name,omitempty"`
	// 标签描述
	TagDesc string `json:"tag_desc,omitempty" xml:"tag_desc,omitempty"`
	// 标签开始时间
	StartTime string `json:"start_time,omitempty" xml:"start_time,omitempty"`
	// 标签结束时间
	EndTime string `json:"end_time,omitempty" xml:"end_time,omitempty"`
	// 标签ID
	TagId int64 `json:"tag_id,omitempty" xml:"tag_id,omitempty"`
}

PromotionTag 结构体

type PromotionTagQuery

type PromotionTagQuery struct {
	// 标签结果列表
	TagList []PromotionTag `json:"tag_list,omitempty" xml:"tag_list>promotion_tag,omitempty"`
	// 总记录数
	TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"`
}

PromotionTagQuery 结构体

type Range

type Range struct {
	// 营销范围参与者id。即MarketingRangeDO中的participateId。
	ParticipateId int64 `json:"participate_id,omitempty" xml:"participate_id,omitempty"`
	// 营销范围参与者类型。MarketingRangeDO中的participateType。(1:商品;2:店铺;3:seller;4:sku;5:category;6:shopCategory)
	ParticipateType int64 `json:"participate_type,omitempty" xml:"participate_type,omitempty"`
}

Range 结构体

type RedRiskUpdateFactor

type RedRiskUpdateFactor struct {
	// 需要删除的sku红线价格
	RemoveSkuIds []int64 `json:"remove_sku_ids,omitempty" xml:"remove_sku_ids>int64,omitempty"`
	// 新增sku级别红线价格
	SkuRiskFactors []SkuRedRiskFactor `json:"sku_risk_factors,omitempty" xml:"sku_risk_factors>sku_red_risk_factor,omitempty"`
	// 风险等级设置
	RiskLevels []RiskLevelParam `json:"risk_levels,omitempty" xml:"risk_levels>risk_level_param,omitempty"`
	// 商品id
	ItemId int64 `json:"item_id,omitempty" xml:"item_id,omitempty"`
	// 商品红线价格
	AmountAt int64 `json:"amount_at,omitempty" xml:"amount_at,omitempty"`
}

RedRiskUpdateFactor 结构体

type RelationActivityBenefitRequest

type RelationActivityBenefitRequest struct {
	// 活动关联的权益信息,可以从权益选择器API中获取
	AddDetailVos []ActivityBenefitDetailVo `json:"add_detail_vos,omitempty" xml:"add_detail_vos>activity_benefit_detail_vo,omitempty"`
	// 同步权益活动的概述信息,用于卖家后台查看
	BenefitActivityVo *BenefitActivityVo `json:"benefit_activity_vo,omitempty" xml:"benefit_activity_vo,omitempty"`
}

RelationActivityBenefitRequest 结构体

type RiskLevelParam

type RiskLevelParam struct {
	// 风险等级(可选值:higher-risk,middle-risk,low-risk)
	Key string `json:"key,omitempty" xml:"key,omitempty"`
	// 风险等级比例左边值
	LeftRange int64 `json:"left_range,omitempty" xml:"left_range,omitempty"`
	// 风险等级比例右边值
	RightRange int64 `json:"right_range,omitempty" xml:"right_range,omitempty"`
}

RiskLevelParam 结构体

type SellerCouponDetail

type SellerCouponDetail struct {
	// 商品优惠券会有商品id集合
	ItemIds []int64 `json:"item_ids,omitempty" xml:"item_ids>int64,omitempty"`
	// 券名称
	Title string `json:"title,omitempty" xml:"title,omitempty"`
	// 卖家ID
	SellerId string `json:"seller_id,omitempty" xml:"seller_id,omitempty"`
	// 状态名称
	StatusName string `json:"status_name,omitempty" xml:"status_name,omitempty"`
	// 券类型
	CouponTypeName string `json:"coupon_type_name,omitempty" xml:"coupon_type_name,omitempty"`
	// 券生效时间
	StartTime string `json:"start_time,omitempty" xml:"start_time,omitempty"`
	// 券失效时间
	EndTime string `json:"end_time,omitempty" xml:"end_time,omitempty"`
	// mtop 店铺链接
	Url string `json:"url,omitempty" xml:"url,omitempty"`
	// 卖家名称
	SellerNick string `json:"seller_nick,omitempty" xml:"seller_nick,omitempty"`
	// 券对外ID
	SpreadId string `json:"spread_id,omitempty" xml:"spread_id,omitempty"`
	// 店铺名称
	ShopName string `json:"shop_name,omitempty" xml:"shop_name,omitempty"`
	// 面额
	Amount int64 `json:"amount,omitempty" xml:"amount,omitempty"`
	// 设置发券数量总数
	TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"`
	// 满足金额阀值  如订单满多少元才可用
	StartFee int64 `json:"start_fee,omitempty" xml:"start_fee,omitempty"`
	// 券类型
	CouponType int64 `json:"coupon_type,omitempty" xml:"coupon_type,omitempty"`
	// 状态信息
	Status int64 `json:"status,omitempty" xml:"status,omitempty"`
}

SellerCouponDetail 结构体

type SellerGlobalDiscount

type SellerGlobalDiscount struct {
	// 折扣1折100,9折900
	Discount int64 `json:"discount,omitempty" xml:"discount,omitempty"`
}

SellerGlobalDiscount 结构体

type ShareBenefitSendResult

type ShareBenefitSendResult struct {
	// 错误信息
	ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"`
	// 错误码
	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// 发放结果
	ResultMap string `json:"result_map,omitempty" xml:"result_map,omitempty"`
	// 发放结果是否正常
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

ShareBenefitSendResult 结构体

type ShopInfoVo

type ShopInfoVo struct {
	// 店铺链接
	ShopUrl string `json:"shop_url,omitempty" xml:"shop_url,omitempty"`
	// 店铺icon链接
	ShopIconUrl string `json:"shop_icon_url,omitempty" xml:"shop_icon_url,omitempty"`
	// 店铺名称
	ShopName string `json:"shop_name,omitempty" xml:"shop_name,omitempty"`
	// 商家id
	SellerId int64 `json:"seller_id,omitempty" xml:"seller_id,omitempty"`
	// 店铺id
	ShopId int64 `json:"shop_id,omitempty" xml:"shop_id,omitempty"`
}

ShopInfoVo 结构体

type ShowBenefitDto

type ShowBenefitDto struct {
	// 权益规则列表
	ShowRules []ShowRuleDto `json:"show_rules,omitempty" xml:"show_rules>show_rule_dto,omitempty"`
	// 权益维度核销数据
	ShowBenefitInstances []ShowBenefitInstanceDto `json:"show_benefit_instances,omitempty" xml:"show_benefit_instances>show_benefit_instance_dto,omitempty"`
	// 权益code
	Code string `json:"code,omitempty" xml:"code,omitempty"`
	// 权益类型
	TypeDesc string `json:"type_desc,omitempty" xml:"type_desc,omitempty"`
	// 权益展示面额单位
	DisplayAmountUnit string `json:"display_amount_unit,omitempty" xml:"display_amount_unit,omitempty"`
	// 权益发放结束时间
	EndDate string `json:"end_date,omitempty" xml:"end_date,omitempty"`
	// 权益标题
	Title string `json:"title,omitempty" xml:"title,omitempty"`
	// 权益类型
	Type string `json:"type,omitempty" xml:"type,omitempty"`
	// 权益扩展信息
	Feature string `json:"feature,omitempty" xml:"feature,omitempty"`
	// 相对使用时间类型
	IntervalTimeUnit string `json:"interval_time_unit,omitempty" xml:"interval_time_unit,omitempty"`
	// 展示门槛
	DisplayStartFee string `json:"display_start_fee,omitempty" xml:"display_start_fee,omitempty"`
	// 权益发放类型
	SendMode string `json:"send_mode,omitempty" xml:"send_mode,omitempty"`
	// 权益生命周期
	SendLifeCycleState string `json:"send_life_cycle_state,omitempty" xml:"send_life_cycle_state,omitempty"`
	// 面额单位
	AmountUnit string `json:"amount_unit,omitempty" xml:"amount_unit,omitempty"`
	// 展示面额
	DisplayAmount string `json:"display_amount,omitempty" xml:"display_amount,omitempty"`
	// 使用时间类型
	EffectiveTimeMode string `json:"effective_time_mode,omitempty" xml:"effective_time_mode,omitempty"`
	// 素材
	Material string `json:"material,omitempty" xml:"material,omitempty"`
	// 加密动态面额参数
	EncryptedDynamicInfo string `json:"encrypted_dynamic_info,omitempty" xml:"encrypted_dynamic_info,omitempty"`
	// 权益安全码
	Asac string `json:"asac,omitempty" xml:"asac,omitempty"`
	// 发放开始时间
	StartDate string `json:"start_date,omitempty" xml:"start_date,omitempty"`
	// 绝对使用时间开始
	EffectiveStart string `json:"effective_start,omitempty" xml:"effective_start,omitempty"`
	// 绝对使用时间结束
	EffectiveEnd string `json:"effective_end,omitempty" xml:"effective_end,omitempty"`
	// 权益面额
	Amount int64 `json:"amount,omitempty" xml:"amount,omitempty"`
	// 相对使用时间长度
	EffectiveInterval int64 `json:"effective_interval,omitempty" xml:"effective_interval,omitempty"`
	// 门槛
	StartFee int64 `json:"start_fee,omitempty" xml:"start_fee,omitempty"`
	// 权益是否可领
	CanWin bool `json:"can_win,omitempty" xml:"can_win,omitempty"`
	// 是否测试权益
	Test bool `json:"test,omitempty" xml:"test,omitempty"`
	// 是否已领
	HadWin bool `json:"had_win,omitempty" xml:"had_win,omitempty"`
	// 是否有库存
	HasInventory bool `json:"has_inventory,omitempty" xml:"has_inventory,omitempty"`
}

ShowBenefitDto 结构体

type ShowBenefitInstanceDto added in v1.2.5

type ShowBenefitInstanceDto struct {
	// 权益code
	BenefitCode string `json:"benefit_code,omitempty" xml:"benefit_code,omitempty"`
	// 权益类型
	BenefitType string `json:"benefit_type,omitempty" xml:"benefit_type,omitempty"`
	// 中奖记录ID
	RecordId int64 `json:"record_id,omitempty" xml:"record_id,omitempty"`
}

ShowBenefitInstanceDto 结构体

type ShowRuleDto

type ShowRuleDto struct {
	// 规则扩展信息
	Feature string `json:"feature,omitempty" xml:"feature,omitempty"`
	// 规则类型
	Type string `json:"type,omitempty" xml:"type,omitempty"`
	// 规则是否通过
	Passed bool `json:"passed,omitempty" xml:"passed,omitempty"`
}

ShowRuleDto 结构体

type ShowStrategyDto

type ShowStrategyDto struct {
	// 投放计划规则
	ShowRules []ShowRuleDto `json:"show_rules,omitempty" xml:"show_rules>show_rule_dto,omitempty"`
	// 投放计划维度核销数据
	ShowBenefitInstances []ShowBenefitInstanceDto `json:"show_benefit_instances,omitempty" xml:"show_benefit_instances>show_benefit_instance_dto,omitempty"`
	// 投放模式
	Mode string `json:"mode,omitempty" xml:"mode,omitempty"`
	// 投放计划code
	Code string `json:"code,omitempty" xml:"code,omitempty"`
	// 投放计划安全码
	Asac string `json:"asac,omitempty" xml:"asac,omitempty"`
	// 是否投放计划所有规则通过
	AllRulePassed bool `json:"all_rule_passed,omitempty" xml:"all_rule_passed,omitempty"`
	// 算法容灾结果
	AlgorithmFailover bool `json:"algorithm_failover,omitempty" xml:"algorithm_failover,omitempty"`
}

ShowStrategyDto 结构体

type SingleBenefitRequest

type SingleBenefitRequest struct {
	// 事务id
	UniqueId string `json:"unique_id,omitempty" xml:"unique_id,omitempty"`
	// 调试线索
	TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"`
	// 权益关联的活动ID
	BizId string `json:"biz_id,omitempty" xml:"biz_id,omitempty"`
	// 支持每日赢宝箱多个卡片类型,默认“游戏惊喜”卡片,可选“美妆”卡片beauty
	CardType string `json:"card_type,omitempty" xml:"card_type,omitempty"`
	// 权益类型    其中ALIPAY_COUPON 对应的type值是1
	BenefitType int64 `json:"benefit_type,omitempty" xml:"benefit_type,omitempty"`
	// 权益发放数量
	SendCount int64 `json:"send_count,omitempty" xml:"send_count,omitempty"`
	// 关联活动id
	RelationId int64 `json:"relation_id,omitempty" xml:"relation_id,omitempty"`
	// 卖家用户id, 可通过接口taobao.user.seller.get获取
	PurchaserId int64 `json:"purchaser_id,omitempty" xml:"purchaser_id,omitempty"`
	// 活动详情id
	DetailId int64 `json:"detail_id,omitempty" xml:"detail_id,omitempty"`
}

SingleBenefitRequest 结构体

type SingleBenefitSendResult

type SingleBenefitSendResult struct {
	// 单次发放结果
	Results []MobileBenefitSendResultExt `json:"results,omitempty" xml:"results>mobile_benefit_send_result_ext,omitempty"`
	// 错误信息
	ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"`
	// 错误码
	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// 事务id
	UniqueId string `json:"unique_id,omitempty" xml:"unique_id,omitempty"`
	// 是否发放成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
	// 用于宝箱应用,为true表示宝箱任务已完成,需要提示用户
	IsBaoxiangTaskDone bool `json:"is_baoxiang_task_done,omitempty" xml:"is_baoxiang_task_done,omitempty"`
}

SingleBenefitSendResult 结构体

type SkuRedRiskFactor

type SkuRedRiskFactor struct {
	// skuId
	SkuId string `json:"sku_id,omitempty" xml:"sku_id,omitempty"`
	// sku红线价格
	AmountAt int64 `json:"amount_at,omitempty" xml:"amount_at,omitempty"`
}

SkuRedRiskFactor 结构体

type StrategyIssueResultDto

type StrategyIssueResultDto struct {
	// 展示面额单位
	DisplayAmountUnit string `json:"display_amount_unit,omitempty" xml:"display_amount_unit,omitempty"`
	// 扩展字段
	ExtraData string `json:"extra_data,omitempty" xml:"extra_data,omitempty"`
	// 发放时间
	IssueTime string `json:"issue_time,omitempty" xml:"issue_time,omitempty"`
	// 权益类型
	BenefitType string `json:"benefit_type,omitempty" xml:"benefit_type,omitempty"`
	// 生效开始时间
	EffectiveStart string `json:"effective_start,omitempty" xml:"effective_start,omitempty"`
	// 外部发放实例id
	OuterInstanceId string `json:"outer_instance_id,omitempty" xml:"outer_instance_id,omitempty"`
	// 权益code
	BenefitCode string `json:"benefit_code,omitempty" xml:"benefit_code,omitempty"`
	// 生效结束时间
	EffectiveEnd string `json:"effective_end,omitempty" xml:"effective_end,omitempty"`
	// 展示门槛
	DisplayStartFee string `json:"display_start_fee,omitempty" xml:"display_start_fee,omitempty"`
	// 面额单位
	AmountUnit string `json:"amount_unit,omitempty" xml:"amount_unit,omitempty"`
	// 追踪数据
	TrackingData string `json:"tracking_data,omitempty" xml:"tracking_data,omitempty"`
	// 展示面额
	DisplayAmount string `json:"display_amount,omitempty" xml:"display_amount,omitempty"`
	// 生效时间类型
	EffectiveTimeMode string `json:"effective_time_mode,omitempty" xml:"effective_time_mode,omitempty"`
	// 权益标题
	BenefitTitle string `json:"benefit_title,omitempty" xml:"benefit_title,omitempty"`
	// 权益类型名称
	BenefitTypeName string `json:"benefit_type_name,omitempty" xml:"benefit_type_name,omitempty"`
	// 相对生效时间单位
	IntervalTimeUnit string `json:"interval_time_unit,omitempty" xml:"interval_time_unit,omitempty"`
	// 素材
	Material string `json:"material,omitempty" xml:"material,omitempty"`
	// 生效结束时间戳
	EffectiveEndTimestamp int64 `json:"effective_end_timestamp,omitempty" xml:"effective_end_timestamp,omitempty"`
	// 中奖记录id
	RecordId int64 `json:"record_id,omitempty" xml:"record_id,omitempty"`
	// 生效开始时间戳
	EffectiveStartTimestamp int64 `json:"effective_start_timestamp,omitempty" xml:"effective_start_timestamp,omitempty"`
	// 面额
	Amount int64 `json:"amount,omitempty" xml:"amount,omitempty"`
	// 门槛
	StartFee int64 `json:"start_fee,omitempty" xml:"start_fee,omitempty"`
	// 相对生效时间长度
	EffectiveInterval int64 `json:"effective_interval,omitempty" xml:"effective_interval,omitempty"`
}

StrategyIssueResultDto 结构体

type StrategyShowResultDto

type StrategyShowResultDto struct {
	// 权益列表
	ShowBenefits []ShowBenefitDto `json:"show_benefits,omitempty" xml:"show_benefits>show_benefit_dto,omitempty"`
	// 扩展参数
	ExtraData string `json:"extra_data,omitempty" xml:"extra_data,omitempty"`
	// 追踪信息
	TrackingData string `json:"tracking_data,omitempty" xml:"tracking_data,omitempty"`
	// 投放计划
	ShowStrategy *ShowStrategyDto `json:"show_strategy,omitempty" xml:"show_strategy,omitempty"`
	// 当前页
	CurrentPage int64 `json:"current_page,omitempty" xml:"current_page,omitempty"`
	// 是否有下一页
	HasNextPage bool `json:"has_next_page,omitempty" xml:"has_next_page,omitempty"`
}

StrategyShowResultDto 结构体

type TaobaoCardExpandcardQueryAPIRequest

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

TaobaoCardExpandcardQueryAPIRequest 购物金卡查询 API请求 taobao.card.expandcard.query

购物金充值信息查询接口,会返回余额等信息。

func NewTaobaoCardExpandcardQueryRequest

func NewTaobaoCardExpandcardQueryRequest() *TaobaoCardExpandcardQueryAPIRequest

NewTaobaoCardExpandcardQueryRequest 初始化TaobaoCardExpandcardQueryAPIRequest对象

func (TaobaoCardExpandcardQueryAPIRequest) GetAccountNo

GetAccountNo AccountNo Getter

func (TaobaoCardExpandcardQueryAPIRequest) GetApiMethodName

func (r TaobaoCardExpandcardQueryAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoCardExpandcardQueryAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoCardExpandcardQueryAPIRequest) GetUsedScopeCode

func (r TaobaoCardExpandcardQueryAPIRequest) GetUsedScopeCode() string

GetUsedScopeCode UsedScopeCode Getter

func (*TaobaoCardExpandcardQueryAPIRequest) SetAccountNo

func (r *TaobaoCardExpandcardQueryAPIRequest) SetAccountNo(_accountNo string) error

SetAccountNo is AccountNo Setter 支付宝accountNo

func (*TaobaoCardExpandcardQueryAPIRequest) SetUsedScopeCode

func (r *TaobaoCardExpandcardQueryAPIRequest) SetUsedScopeCode(_usedScopeCode string) error

SetUsedScopeCode is UsedScopeCode Setter 卡使用范围,不传则会查询所有

type TaobaoCardExpandcardQueryAPIResponse

type TaobaoCardExpandcardQueryAPIResponse struct {
	model.CommonResponse
	TaobaoCardExpandcardQueryAPIResponseModel
}

TaobaoCardExpandcardQueryAPIResponse 购物金卡查询 API返回值 taobao.card.expandcard.query

购物金充值信息查询接口,会返回余额等信息。

type TaobaoCardExpandcardQueryAPIResponseModel

type TaobaoCardExpandcardQueryAPIResponseModel struct {
	XMLName xml.Name `xml:"card_expandcard_query_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 接口返回model
	Result *TaobaoCardExpandcardQueryResult `json:"result,omitempty" xml:"result,omitempty"`
}

TaobaoCardExpandcardQueryAPIResponseModel is 购物金卡查询 成功返回结果

type TaobaoCardExpandcardQueryResult

type TaobaoCardExpandcardQueryResult struct {
	// 卡信息
	Models []ExpandCardVo `json:"models,omitempty" xml:"models>expand_card_vo,omitempty"`
	// debugInfo
	DebugInfo string `json:"debug_info,omitempty" xml:"debug_info,omitempty"`
	// 错误信息
	Message string `json:"message,omitempty" xml:"message,omitempty"`
	// 错误级别
	ErrorLevel string `json:"error_level,omitempty" xml:"error_level,omitempty"`
	// 0为成功,其他为失败
	Code int64 `json:"code,omitempty" xml:"code,omitempty"`
}

TaobaoCardExpandcardQueryResult 结构体

type TaobaoMarketingPromotionKfcAPIRequest

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

TaobaoMarketingPromotionKfcAPIRequest 定向优惠活动名称与描述违禁词检查 API请求 taobao.marketing.promotion.kfc

活动名称与描述违禁词检查

func NewTaobaoMarketingPromotionKfcRequest

func NewTaobaoMarketingPromotionKfcRequest() *TaobaoMarketingPromotionKfcAPIRequest

NewTaobaoMarketingPromotionKfcRequest 初始化TaobaoMarketingPromotionKfcAPIRequest对象

func (TaobaoMarketingPromotionKfcAPIRequest) GetApiMethodName

func (r TaobaoMarketingPromotionKfcAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoMarketingPromotionKfcAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoMarketingPromotionKfcAPIRequest) GetPromotionDesc

func (r TaobaoMarketingPromotionKfcAPIRequest) GetPromotionDesc() string

GetPromotionDesc PromotionDesc Getter

func (TaobaoMarketingPromotionKfcAPIRequest) GetPromotionTitle

func (r TaobaoMarketingPromotionKfcAPIRequest) GetPromotionTitle() string

GetPromotionTitle PromotionTitle Getter

func (*TaobaoMarketingPromotionKfcAPIRequest) SetPromotionDesc

func (r *TaobaoMarketingPromotionKfcAPIRequest) SetPromotionDesc(_promotionDesc string) error

SetPromotionDesc is PromotionDesc Setter 活动描述

func (*TaobaoMarketingPromotionKfcAPIRequest) SetPromotionTitle

func (r *TaobaoMarketingPromotionKfcAPIRequest) SetPromotionTitle(_promotionTitle string) error

SetPromotionTitle is PromotionTitle Setter 活动名称

type TaobaoMarketingPromotionKfcAPIResponse

type TaobaoMarketingPromotionKfcAPIResponse struct {
	model.CommonResponse
	TaobaoMarketingPromotionKfcAPIResponseModel
}

TaobaoMarketingPromotionKfcAPIResponse 定向优惠活动名称与描述违禁词检查 API返回值 taobao.marketing.promotion.kfc

活动名称与描述违禁词检查

type TaobaoMarketingPromotionKfcAPIResponseModel

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

TaobaoMarketingPromotionKfcAPIResponseModel is 定向优惠活动名称与描述违禁词检查 成功返回结果

type TaobaoMobilePromotionBenefitActivitySendAPIRequest

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

TaobaoMobilePromotionBenefitActivitySendAPIRequest 手淘专用单用户发放接口 API请求 taobao.mobile.promotion.benefit.activity.send

卖家活动中需要通过该API来发放对应的权益。手淘专用单用户发放接口。

func NewTaobaoMobilePromotionBenefitActivitySendRequest

func NewTaobaoMobilePromotionBenefitActivitySendRequest() *TaobaoMobilePromotionBenefitActivitySendAPIRequest

NewTaobaoMobilePromotionBenefitActivitySendRequest 初始化TaobaoMobilePromotionBenefitActivitySendAPIRequest对象

func (TaobaoMobilePromotionBenefitActivitySendAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoMobilePromotionBenefitActivitySendAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoMobilePromotionBenefitActivitySendAPIRequest) GetSingleBenefitRequest

GetSingleBenefitRequest SingleBenefitRequest Getter

func (*TaobaoMobilePromotionBenefitActivitySendAPIRequest) SetSingleBenefitRequest

func (r *TaobaoMobilePromotionBenefitActivitySendAPIRequest) SetSingleBenefitRequest(_singleBenefitRequest *SingleBenefitRequest) error

SetSingleBenefitRequest is SingleBenefitRequest Setter 单用户权益发放请求

type TaobaoMobilePromotionBenefitActivitySendAPIResponse

type TaobaoMobilePromotionBenefitActivitySendAPIResponse struct {
	model.CommonResponse
	TaobaoMobilePromotionBenefitActivitySendAPIResponseModel
}

TaobaoMobilePromotionBenefitActivitySendAPIResponse 手淘专用单用户发放接口 API返回值 taobao.mobile.promotion.benefit.activity.send

卖家活动中需要通过该API来发放对应的权益。手淘专用单用户发放接口。

type TaobaoMobilePromotionBenefitActivitySendAPIResponseModel

type TaobaoMobilePromotionBenefitActivitySendAPIResponseModel struct {
	XMLName xml.Name `xml:"mobile_promotion_benefit_activity_send_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 权益发放结果
	SendResult *SingleBenefitSendResult `json:"send_result,omitempty" xml:"send_result,omitempty"`
}

TaobaoMobilePromotionBenefitActivitySendAPIResponseModel is 手淘专用单用户发放接口 成功返回结果

type TaobaoMobilePromotionBenefitActivitySendShareAPIRequest

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

TaobaoMobilePromotionBenefitActivitySendShareAPIRequest 手淘专用单用户发放接口 API请求 taobao.mobile.promotion.benefit.activity.send.share

卖家活动中需要通过该API来发放对应的权益。手淘专用、验证分享链路。

func NewTaobaoMobilePromotionBenefitActivitySendShareRequest

func NewTaobaoMobilePromotionBenefitActivitySendShareRequest() *TaobaoMobilePromotionBenefitActivitySendShareAPIRequest

NewTaobaoMobilePromotionBenefitActivitySendShareRequest 初始化TaobaoMobilePromotionBenefitActivitySendShareAPIRequest对象

func (TaobaoMobilePromotionBenefitActivitySendShareAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoMobilePromotionBenefitActivitySendShareAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoMobilePromotionBenefitActivitySendShareAPIRequest) GetBenefitType

GetBenefitType BenefitType Getter

func (TaobaoMobilePromotionBenefitActivitySendShareAPIRequest) GetBizId

GetBizId BizId Getter

func (TaobaoMobilePromotionBenefitActivitySendShareAPIRequest) GetDetailId

GetDetailId DetailId Getter

func (TaobaoMobilePromotionBenefitActivitySendShareAPIRequest) GetFeedId

GetFeedId FeedId Getter

func (TaobaoMobilePromotionBenefitActivitySendShareAPIRequest) GetRelationId

GetRelationId RelationId Getter

func (TaobaoMobilePromotionBenefitActivitySendShareAPIRequest) GetSendCount

GetSendCount SendCount Getter

func (TaobaoMobilePromotionBenefitActivitySendShareAPIRequest) GetShareKey

GetShareKey ShareKey Getter

func (TaobaoMobilePromotionBenefitActivitySendShareAPIRequest) GetShareUsers

GetShareUsers ShareUsers Getter

func (TaobaoMobilePromotionBenefitActivitySendShareAPIRequest) GetTraceId

GetTraceId TraceId Getter

func (TaobaoMobilePromotionBenefitActivitySendShareAPIRequest) GetUniqueId

GetUniqueId UniqueId Getter

func (*TaobaoMobilePromotionBenefitActivitySendShareAPIRequest) SetBenefitType

SetBenefitType is BenefitType Setter 权益类型 其中ALIPAY_COUPON 对应的type值是1

func (*TaobaoMobilePromotionBenefitActivitySendShareAPIRequest) SetBizId

SetBizId is BizId Setter 权益关联的活动ID

func (*TaobaoMobilePromotionBenefitActivitySendShareAPIRequest) SetDetailId

SetDetailId is DetailId Setter 活动详情id

func (*TaobaoMobilePromotionBenefitActivitySendShareAPIRequest) SetFeedId

SetFeedId is FeedId Setter 广播ID

func (*TaobaoMobilePromotionBenefitActivitySendShareAPIRequest) SetRelationId

SetRelationId is RelationId Setter 关联活动id

func (*TaobaoMobilePromotionBenefitActivitySendShareAPIRequest) SetSendCount

SetSendCount is SendCount Setter 权益发放数量

func (*TaobaoMobilePromotionBenefitActivitySendShareAPIRequest) SetShareKey

SetShareKey is ShareKey Setter 和bizId一起使用,标记分享链路的key。

func (*TaobaoMobilePromotionBenefitActivitySendShareAPIRequest) SetShareUsers

SetShareUsers is ShareUsers Setter 分享链路上的用户及用户是否发奖,u1_true,u2_true

func (*TaobaoMobilePromotionBenefitActivitySendShareAPIRequest) SetTraceId

SetTraceId is TraceId Setter 调试线索

func (*TaobaoMobilePromotionBenefitActivitySendShareAPIRequest) SetUniqueId

SetUniqueId is UniqueId Setter 事务id

type TaobaoMobilePromotionBenefitActivitySendShareAPIResponse

type TaobaoMobilePromotionBenefitActivitySendShareAPIResponse struct {
	model.CommonResponse
	TaobaoMobilePromotionBenefitActivitySendShareAPIResponseModel
}

TaobaoMobilePromotionBenefitActivitySendShareAPIResponse 手淘专用单用户发放接口 API返回值 taobao.mobile.promotion.benefit.activity.send.share

卖家活动中需要通过该API来发放对应的权益。手淘专用、验证分享链路。

type TaobaoMobilePromotionBenefitActivitySendShareAPIResponseModel

type TaobaoMobilePromotionBenefitActivitySendShareAPIResponseModel struct {
	XMLName xml.Name `xml:"mobile_promotion_benefit_activity_send_share_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 权益发放结果
	SendResult *ShareBenefitSendResult `json:"send_result,omitempty" xml:"send_result,omitempty"`
}

TaobaoMobilePromotionBenefitActivitySendShareAPIResponseModel is 手淘专用单用户发放接口 成功返回结果

type TaobaoMobilePromotionCouponApplyAPIRequest

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

TaobaoMobilePromotionCouponApplyAPIRequest 优惠券领取(手淘专用) API请求 taobao.mobile.promotion.coupon.apply

优惠券领取

func NewTaobaoMobilePromotionCouponApplyRequest

func NewTaobaoMobilePromotionCouponApplyRequest() *TaobaoMobilePromotionCouponApplyAPIRequest

NewTaobaoMobilePromotionCouponApplyRequest 初始化TaobaoMobilePromotionCouponApplyAPIRequest对象

func (TaobaoMobilePromotionCouponApplyAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoMobilePromotionCouponApplyAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoMobilePromotionCouponApplyAPIRequest) GetBizId

GetBizId BizId Getter

func (TaobaoMobilePromotionCouponApplyAPIRequest) GetFeedId

GetFeedId FeedId Getter

func (TaobaoMobilePromotionCouponApplyAPIRequest) GetSpreadId

GetSpreadId SpreadId Getter

func (TaobaoMobilePromotionCouponApplyAPIRequest) GetTraceId

GetTraceId TraceId Getter

func (*TaobaoMobilePromotionCouponApplyAPIRequest) SetBizId

SetBizId is BizId Setter 三方活动id

func (*TaobaoMobilePromotionCouponApplyAPIRequest) SetFeedId

SetFeedId is FeedId Setter 广播id

func (*TaobaoMobilePromotionCouponApplyAPIRequest) SetSpreadId

func (r *TaobaoMobilePromotionCouponApplyAPIRequest) SetSpreadId(_spreadId int64) error

SetSpreadId is SpreadId Setter 传播id

func (*TaobaoMobilePromotionCouponApplyAPIRequest) SetTraceId

SetTraceId is TraceId Setter 请求唯一id,问题排查

type TaobaoMobilePromotionCouponApplyAPIResponse

type TaobaoMobilePromotionCouponApplyAPIResponse struct {
	model.CommonResponse
	TaobaoMobilePromotionCouponApplyAPIResponseModel
}

TaobaoMobilePromotionCouponApplyAPIResponse 优惠券领取(手淘专用) API返回值 taobao.mobile.promotion.coupon.apply

优惠券领取

type TaobaoMobilePromotionCouponApplyAPIResponseModel

type TaobaoMobilePromotionCouponApplyAPIResponseModel struct {
	XMLName xml.Name `xml:"mobile_promotion_coupon_apply_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 优惠券领取结果
	CouponApplyResult *CouponApplyResult `json:"coupon_apply_result,omitempty" xml:"coupon_apply_result,omitempty"`
}

TaobaoMobilePromotionCouponApplyAPIResponseModel is 优惠券领取(手淘专用) 成功返回结果

type TaobaoMobilePromotionCouponSellerSearchAPIRequest

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

TaobaoMobilePromotionCouponSellerSearchAPIRequest 查询绑定卖家优惠券相关信息(手淘专用) API请求 taobao.mobile.promotion.coupon.seller.search

查询绑定卖家相关优惠券信息 如isv 百川 等外部业务方

func NewTaobaoMobilePromotionCouponSellerSearchRequest

func NewTaobaoMobilePromotionCouponSellerSearchRequest() *TaobaoMobilePromotionCouponSellerSearchAPIRequest

NewTaobaoMobilePromotionCouponSellerSearchRequest 初始化TaobaoMobilePromotionCouponSellerSearchAPIRequest对象

func (TaobaoMobilePromotionCouponSellerSearchAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoMobilePromotionCouponSellerSearchAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoMobilePromotionCouponSellerSearchAPIRequest) GetCurrentPage

GetCurrentPage CurrentPage Getter

func (TaobaoMobilePromotionCouponSellerSearchAPIRequest) GetPageSize

GetPageSize PageSize Getter

func (TaobaoMobilePromotionCouponSellerSearchAPIRequest) GetSpreadIds

GetSpreadIds SpreadIds Getter

func (TaobaoMobilePromotionCouponSellerSearchAPIRequest) GetTraceId

GetTraceId TraceId Getter

func (*TaobaoMobilePromotionCouponSellerSearchAPIRequest) SetCurrentPage

func (r *TaobaoMobilePromotionCouponSellerSearchAPIRequest) SetCurrentPage(_currentPage int64) error

SetCurrentPage is CurrentPage Setter 当前第几页 从第一页开始

func (*TaobaoMobilePromotionCouponSellerSearchAPIRequest) SetPageSize

SetPageSize is PageSize Setter 每页数据 最大20左右

func (*TaobaoMobilePromotionCouponSellerSearchAPIRequest) SetSpreadIds

SetSpreadIds is SpreadIds Setter 券id集合

func (*TaobaoMobilePromotionCouponSellerSearchAPIRequest) SetTraceId

SetTraceId is TraceId Setter 请求id 排查线索 需保证单次调用唯一

type TaobaoMobilePromotionCouponSellerSearchAPIResponse

type TaobaoMobilePromotionCouponSellerSearchAPIResponse struct {
	model.CommonResponse
	TaobaoMobilePromotionCouponSellerSearchAPIResponseModel
}

TaobaoMobilePromotionCouponSellerSearchAPIResponse 查询绑定卖家优惠券相关信息(手淘专用) API返回值 taobao.mobile.promotion.coupon.seller.search

查询绑定卖家相关优惠券信息 如isv 百川 等外部业务方

type TaobaoMobilePromotionCouponSellerSearchAPIResponseModel

type TaobaoMobilePromotionCouponSellerSearchAPIResponseModel struct {
	XMLName xml.Name `xml:"mobile_promotion_coupon_seller_search_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 优惠券查询结果
	CouponSearchResult *CouponSearchResult `json:"coupon_search_result,omitempty" xml:"coupon_search_result,omitempty"`
}

TaobaoMobilePromotionCouponSellerSearchAPIResponseModel is 查询绑定卖家优惠券相关信息(手淘专用) 成功返回结果

type TaobaoPromotionActivityGetAPIRequest

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

TaobaoPromotionActivityGetAPIRequest 查询某个卖家的店铺优惠券领取活动 API请求 taobao.promotion.activity.get

查询某个卖家的店铺优惠券领取活动<br/>返回,优惠券领取活动ID,优惠券ID,总领用量,每人限领量,已领取数量<br/>领取活动状态,优惠券领取链接<br/>最多50个优惠券

func NewTaobaoPromotionActivityGetRequest

func NewTaobaoPromotionActivityGetRequest() *TaobaoPromotionActivityGetAPIRequest

NewTaobaoPromotionActivityGetRequest 初始化TaobaoPromotionActivityGetAPIRequest对象

func (TaobaoPromotionActivityGetAPIRequest) GetActivityId

func (r TaobaoPromotionActivityGetAPIRequest) GetActivityId() int64

GetActivityId ActivityId Getter

func (TaobaoPromotionActivityGetAPIRequest) GetApiMethodName

func (r TaobaoPromotionActivityGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoPromotionActivityGetAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (*TaobaoPromotionActivityGetAPIRequest) SetActivityId

func (r *TaobaoPromotionActivityGetAPIRequest) SetActivityId(_activityId int64) error

SetActivityId is ActivityId Setter 活动的id

type TaobaoPromotionActivityGetAPIResponse

type TaobaoPromotionActivityGetAPIResponse struct {
	model.CommonResponse
	TaobaoPromotionActivityGetAPIResponseModel
}

TaobaoPromotionActivityGetAPIResponse 查询某个卖家的店铺优惠券领取活动 API返回值 taobao.promotion.activity.get

查询某个卖家的店铺优惠券领取活动<br/>返回,优惠券领取活动ID,优惠券ID,总领用量,每人限领量,已领取数量<br/>领取活动状态,优惠券领取链接<br/>最多50个优惠券

type TaobaoPromotionActivityGetAPIResponseModel

type TaobaoPromotionActivityGetAPIResponseModel struct {
	XMLName xml.Name `xml:"promotion_activity_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 活动列表
	Activitys []Activity `json:"activitys,omitempty" xml:"activitys>activity,omitempty"`
}

TaobaoPromotionActivityGetAPIResponseModel is 查询某个卖家的店铺优惠券领取活动 成功返回结果

type TaobaoPromotionBenefitActivityDeleteAPIRequest

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

TaobaoPromotionBenefitActivityDeleteAPIRequest 删除关联的活动权益 API请求 taobao.promotion.benefit.activity.delete

删除关联的活动权益

func NewTaobaoPromotionBenefitActivityDeleteRequest

func NewTaobaoPromotionBenefitActivityDeleteRequest() *TaobaoPromotionBenefitActivityDeleteAPIRequest

NewTaobaoPromotionBenefitActivityDeleteRequest 初始化TaobaoPromotionBenefitActivityDeleteAPIRequest对象

func (TaobaoPromotionBenefitActivityDeleteAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoPromotionBenefitActivityDeleteAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoPromotionBenefitActivityDeleteAPIRequest) GetRelationId

GetRelationId RelationId Getter

func (*TaobaoPromotionBenefitActivityDeleteAPIRequest) SetRelationId

func (r *TaobaoPromotionBenefitActivityDeleteAPIRequest) SetRelationId(_relationId int64) error

SetRelationId is RelationId Setter ISV活动关联权益后获得的关联ID

type TaobaoPromotionBenefitActivityDeleteAPIResponse

type TaobaoPromotionBenefitActivityDeleteAPIResponse struct {
	model.CommonResponse
	TaobaoPromotionBenefitActivityDeleteAPIResponseModel
}

TaobaoPromotionBenefitActivityDeleteAPIResponse 删除关联的活动权益 API返回值 taobao.promotion.benefit.activity.delete

删除关联的活动权益

type TaobaoPromotionBenefitActivityDeleteAPIResponseModel

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

TaobaoPromotionBenefitActivityDeleteAPIResponseModel is 删除关联的活动权益 成功返回结果

type TaobaoPromotionBenefitActivityDetailGetAPIRequest

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

TaobaoPromotionBenefitActivityDetailGetAPIRequest 活动关联的权益详情获取 API请求 taobao.promotion.benefit.activity.detail.get

活动关联的权益详情获取

func NewTaobaoPromotionBenefitActivityDetailGetRequest

func NewTaobaoPromotionBenefitActivityDetailGetRequest() *TaobaoPromotionBenefitActivityDetailGetAPIRequest

NewTaobaoPromotionBenefitActivityDetailGetRequest 初始化TaobaoPromotionBenefitActivityDetailGetAPIRequest对象

func (TaobaoPromotionBenefitActivityDetailGetAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoPromotionBenefitActivityDetailGetAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoPromotionBenefitActivityDetailGetAPIRequest) GetQueryRequest

GetQueryRequest QueryRequest Getter

func (*TaobaoPromotionBenefitActivityDetailGetAPIRequest) SetQueryRequest

SetQueryRequest is QueryRequest Setter 查询活动关联权益详情的请求

type TaobaoPromotionBenefitActivityDetailGetAPIResponse

type TaobaoPromotionBenefitActivityDetailGetAPIResponse struct {
	model.CommonResponse
	TaobaoPromotionBenefitActivityDetailGetAPIResponseModel
}

TaobaoPromotionBenefitActivityDetailGetAPIResponse 活动关联的权益详情获取 API返回值 taobao.promotion.benefit.activity.detail.get

活动关联的权益详情获取

type TaobaoPromotionBenefitActivityDetailGetAPIResponseModel

type TaobaoPromotionBenefitActivityDetailGetAPIResponseModel struct {
	XMLName xml.Name `xml:"promotion_benefit_activity_detail_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 活动关联的权益详情列表
	RelationBenefitDetails string `json:"relation_benefit_details,omitempty" xml:"relation_benefit_details,omitempty"`
	// 查询是否成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

TaobaoPromotionBenefitActivityDetailGetAPIResponseModel is 活动关联的权益详情获取 成功返回结果

type TaobaoPromotionBenefitActivityRelationAPIRequest

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

TaobaoPromotionBenefitActivityRelationAPIRequest 关联活动权益 API请求 taobao.promotion.benefit.activity.relation

卖家活动中需要通过该API来关联的对应的权益。

func NewTaobaoPromotionBenefitActivityRelationRequest

func NewTaobaoPromotionBenefitActivityRelationRequest() *TaobaoPromotionBenefitActivityRelationAPIRequest

NewTaobaoPromotionBenefitActivityRelationRequest 初始化TaobaoPromotionBenefitActivityRelationAPIRequest对象

func (TaobaoPromotionBenefitActivityRelationAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoPromotionBenefitActivityRelationAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoPromotionBenefitActivityRelationAPIRequest) GetRelationRequest

GetRelationRequest RelationRequest Getter

func (*TaobaoPromotionBenefitActivityRelationAPIRequest) SetRelationRequest

SetRelationRequest is RelationRequest Setter 活动关联权益请求参数

type TaobaoPromotionBenefitActivityRelationAPIResponse

type TaobaoPromotionBenefitActivityRelationAPIResponse struct {
	model.CommonResponse
	TaobaoPromotionBenefitActivityRelationAPIResponseModel
}

TaobaoPromotionBenefitActivityRelationAPIResponse 关联活动权益 API返回值 taobao.promotion.benefit.activity.relation

卖家活动中需要通过该API来关联的对应的权益。

type TaobaoPromotionBenefitActivityRelationAPIResponseModel

type TaobaoPromotionBenefitActivityRelationAPIResponseModel struct {
	XMLName xml.Name `xml:"promotion_benefit_activity_relation_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 活动关联ID
	RelationId int64 `json:"relation_id,omitempty" xml:"relation_id,omitempty"`
	// 请求是否成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

TaobaoPromotionBenefitActivityRelationAPIResponseModel is 关联活动权益 成功返回结果

type TaobaoPromotionBenefitActivitySendAPIRequest

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

TaobaoPromotionBenefitActivitySendAPIRequest 活动权益发放接口 API请求 taobao.promotion.benefit.activity.send

活动权益发放接口,用于卖家针对活动进行权益发放

func NewTaobaoPromotionBenefitActivitySendRequest

func NewTaobaoPromotionBenefitActivitySendRequest() *TaobaoPromotionBenefitActivitySendAPIRequest

NewTaobaoPromotionBenefitActivitySendRequest 初始化TaobaoPromotionBenefitActivitySendAPIRequest对象

func (TaobaoPromotionBenefitActivitySendAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoPromotionBenefitActivitySendAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoPromotionBenefitActivitySendAPIRequest) GetMixReceiverId

GetMixReceiverId MixReceiverId Getter

func (TaobaoPromotionBenefitActivitySendAPIRequest) GetNick

GetNick Nick Getter

func (TaobaoPromotionBenefitActivitySendAPIRequest) GetOuid added in v1.2.5

GetOuid Ouid Getter

func (TaobaoPromotionBenefitActivitySendAPIRequest) GetPlatNick

GetPlatNick PlatNick Getter

func (TaobaoPromotionBenefitActivitySendAPIRequest) GetReceiverId

GetReceiverId ReceiverId Getter

func (TaobaoPromotionBenefitActivitySendAPIRequest) GetSendRequest

GetSendRequest SendRequest Getter

func (TaobaoPromotionBenefitActivitySendAPIRequest) GetUid added in v1.2.5

GetUid Uid Getter

func (*TaobaoPromotionBenefitActivitySendAPIRequest) SetMixReceiverId

func (r *TaobaoPromotionBenefitActivitySendAPIRequest) SetMixReceiverId(_mixReceiverId string) error

SetMixReceiverId is MixReceiverId Setter 混淆的接收者id

func (*TaobaoPromotionBenefitActivitySendAPIRequest) SetNick

SetNick is Nick Setter 混淆的接收者nick

func (*TaobaoPromotionBenefitActivitySendAPIRequest) SetOuid added in v1.2.5

SetOuid is Ouid Setter ouid

func (*TaobaoPromotionBenefitActivitySendAPIRequest) SetPlatNick

func (r *TaobaoPromotionBenefitActivitySendAPIRequest) SetPlatNick(_platNick string) error

SetPlatNick is PlatNick Setter 非混淆的接收者nick

func (*TaobaoPromotionBenefitActivitySendAPIRequest) SetReceiverId

func (r *TaobaoPromotionBenefitActivitySendAPIRequest) SetReceiverId(_receiverId int64) error

SetReceiverId is ReceiverId Setter 非混淆的接收者id

func (*TaobaoPromotionBenefitActivitySendAPIRequest) SetSendRequest

SetSendRequest is SendRequest Setter 单个权益发放请求

func (*TaobaoPromotionBenefitActivitySendAPIRequest) SetUid added in v1.2.5

SetUid is Uid Setter openid

type TaobaoPromotionBenefitActivitySendAPIResponse

type TaobaoPromotionBenefitActivitySendAPIResponse struct {
	model.CommonResponse
	TaobaoPromotionBenefitActivitySendAPIResponseModel
}

TaobaoPromotionBenefitActivitySendAPIResponse 活动权益发放接口 API返回值 taobao.promotion.benefit.activity.send

活动权益发放接口,用于卖家针对活动进行权益发放

type TaobaoPromotionBenefitActivitySendAPIResponseModel

type TaobaoPromotionBenefitActivitySendAPIResponseModel struct {
	XMLName xml.Name `xml:"promotion_benefit_activity_send_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回活动详情级别的权益发放情况
	ResultList []BenefitSendResultExt `json:"result_list,omitempty" xml:"result_list>benefit_send_result_ext,omitempty"`
	// uniqueId
	UniqueId string `json:"unique_id,omitempty" xml:"unique_id,omitempty"`
	// 接口调用是否成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

TaobaoPromotionBenefitActivitySendAPIResponseModel is 活动权益发放接口 成功返回结果

type TaobaoPromotionBenefitActivityTimeUpdateAPIRequest

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

TaobaoPromotionBenefitActivityTimeUpdateAPIRequest 更新关联活动有效时间 API请求 taobao.promotion.benefit.activity.time.update

更新关联权益的活动有效时间

func NewTaobaoPromotionBenefitActivityTimeUpdateRequest

func NewTaobaoPromotionBenefitActivityTimeUpdateRequest() *TaobaoPromotionBenefitActivityTimeUpdateAPIRequest

NewTaobaoPromotionBenefitActivityTimeUpdateRequest 初始化TaobaoPromotionBenefitActivityTimeUpdateAPIRequest对象

func (TaobaoPromotionBenefitActivityTimeUpdateAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoPromotionBenefitActivityTimeUpdateAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoPromotionBenefitActivityTimeUpdateAPIRequest) GetEndTime

GetEndTime EndTime Getter

func (TaobaoPromotionBenefitActivityTimeUpdateAPIRequest) GetRelationId

GetRelationId RelationId Getter

func (TaobaoPromotionBenefitActivityTimeUpdateAPIRequest) GetStartTime

GetStartTime StartTime Getter

func (*TaobaoPromotionBenefitActivityTimeUpdateAPIRequest) SetEndTime

SetEndTime is EndTime Setter 活动的i结束时间

func (*TaobaoPromotionBenefitActivityTimeUpdateAPIRequest) SetRelationId

func (r *TaobaoPromotionBenefitActivityTimeUpdateAPIRequest) SetRelationId(_relationId int64) error

SetRelationId is RelationId Setter ISV活动关联权益后获得的关联ID

func (*TaobaoPromotionBenefitActivityTimeUpdateAPIRequest) SetStartTime

SetStartTime is StartTime Setter 活动的开始时间

type TaobaoPromotionBenefitActivityTimeUpdateAPIResponse

type TaobaoPromotionBenefitActivityTimeUpdateAPIResponse struct {
	model.CommonResponse
	TaobaoPromotionBenefitActivityTimeUpdateAPIResponseModel
}

TaobaoPromotionBenefitActivityTimeUpdateAPIResponse 更新关联活动有效时间 API返回值 taobao.promotion.benefit.activity.time.update

更新关联权益的活动有效时间

type TaobaoPromotionBenefitActivityTimeUpdateAPIResponseModel

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

TaobaoPromotionBenefitActivityTimeUpdateAPIResponseModel is 更新关联活动有效时间 成功返回结果

type TaobaoPromotionBenefitActivityUpdateAPIRequest

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

TaobaoPromotionBenefitActivityUpdateAPIRequest 修改关联的活动权益 API请求 taobao.promotion.benefit.activity.update

修改卖家活动中关联的对应的权益。

func NewTaobaoPromotionBenefitActivityUpdateRequest

func NewTaobaoPromotionBenefitActivityUpdateRequest() *TaobaoPromotionBenefitActivityUpdateAPIRequest

NewTaobaoPromotionBenefitActivityUpdateRequest 初始化TaobaoPromotionBenefitActivityUpdateAPIRequest对象

func (TaobaoPromotionBenefitActivityUpdateAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoPromotionBenefitActivityUpdateAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoPromotionBenefitActivityUpdateAPIRequest) GetUpdateRequest

GetUpdateRequest UpdateRequest Getter

func (*TaobaoPromotionBenefitActivityUpdateAPIRequest) SetUpdateRequest

SetUpdateRequest is UpdateRequest Setter 修改关联的权益的活动请求

type TaobaoPromotionBenefitActivityUpdateAPIResponse

type TaobaoPromotionBenefitActivityUpdateAPIResponse struct {
	model.CommonResponse
	TaobaoPromotionBenefitActivityUpdateAPIResponseModel
}

TaobaoPromotionBenefitActivityUpdateAPIResponse 修改关联的活动权益 API返回值 taobao.promotion.benefit.activity.update

修改卖家活动中关联的对应的权益。

type TaobaoPromotionBenefitActivityUpdateAPIResponseModel

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

TaobaoPromotionBenefitActivityUpdateAPIResponseModel is 修改关联的活动权益 成功返回结果

type TaobaoPromotionBenefitSelectorAPIRequest

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

TaobaoPromotionBenefitSelectorAPIRequest 权益选择器接口 API请求 taobao.promotion.benefit.selector

权益选择器,查询用户已有权益,提供用户进行已拥有权益的选择操作,权益发放的前置操作 1、目前top的接口只开了1,4,13,14 四种权益, 支付宝红包--1;流量钱包--4;优酷会员--13;彩票-- 14<br/> 2、目前只有"支付宝红包"有"benefit_type": "ALIPAY_COUPON",其它三个没有benefit_type <br/> 3、接口文档中写的 优酷会员卡--2 写错了,正确的是13(已接口返回为准)<br/> 4、step=2用config_id查,即1,4,13,14 <br/> 5、step=3权益id指具体采购的权益id,可以认为是采购的主键(权益id 可以通过step=2 获得 ) <br/>

func NewTaobaoPromotionBenefitSelectorRequest

func NewTaobaoPromotionBenefitSelectorRequest() *TaobaoPromotionBenefitSelectorAPIRequest

NewTaobaoPromotionBenefitSelectorRequest 初始化TaobaoPromotionBenefitSelectorAPIRequest对象

func (TaobaoPromotionBenefitSelectorAPIRequest) GetApiMethodName

func (r TaobaoPromotionBenefitSelectorAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoPromotionBenefitSelectorAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoPromotionBenefitSelectorAPIRequest) GetQuery

GetQuery Query Getter

func (*TaobaoPromotionBenefitSelectorAPIRequest) SetQuery

SetQuery is Query Setter 权益选择器请求

type TaobaoPromotionBenefitSelectorAPIResponse

type TaobaoPromotionBenefitSelectorAPIResponse struct {
	model.CommonResponse
	TaobaoPromotionBenefitSelectorAPIResponseModel
}

TaobaoPromotionBenefitSelectorAPIResponse 权益选择器接口 API返回值 taobao.promotion.benefit.selector

权益选择器,查询用户已有权益,提供用户进行已拥有权益的选择操作,权益发放的前置操作 1、目前top的接口只开了1,4,13,14 四种权益, 支付宝红包--1;流量钱包--4;优酷会员--13;彩票-- 14<br/> 2、目前只有"支付宝红包"有"benefit_type": "ALIPAY_COUPON",其它三个没有benefit_type <br/> 3、接口文档中写的 优酷会员卡--2 写错了,正确的是13(已接口返回为准)<br/> 4、step=2用config_id查,即1,4,13,14 <br/> 5、step=3权益id指具体采购的权益id,可以认为是采购的主键(权益id 可以通过step=2 获得 ) <br/>

type TaobaoPromotionBenefitSelectorAPIResponseModel

type TaobaoPromotionBenefitSelectorAPIResponseModel struct {
	XMLName xml.Name `xml:"promotion_benefit_selector_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 权益列表信息
	BenefitList []BenefitSelectorVo `json:"benefit_list,omitempty" xml:"benefit_list>benefit_selector_vo,omitempty"`
	// 接口调用是否成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

TaobaoPromotionBenefitSelectorAPIResponseModel is 权益选择器接口 成功返回结果

type TaobaoPromotionCouponAddAPIRequest

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

TaobaoPromotionCouponAddAPIRequest 创建店铺优惠券接口 API请求 taobao.promotion.coupon.add

创建店铺优惠券。有效期内的店铺优惠券总数量不超过50张

func NewTaobaoPromotionCouponAddRequest

func NewTaobaoPromotionCouponAddRequest() *TaobaoPromotionCouponAddAPIRequest

NewTaobaoPromotionCouponAddRequest 初始化TaobaoPromotionCouponAddAPIRequest对象

func (TaobaoPromotionCouponAddAPIRequest) GetApiMethodName

func (r TaobaoPromotionCouponAddAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoPromotionCouponAddAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoPromotionCouponAddAPIRequest) GetCondition

func (r TaobaoPromotionCouponAddAPIRequest) GetCondition() int64

GetCondition Condition Getter

func (TaobaoPromotionCouponAddAPIRequest) GetDenominations

func (r TaobaoPromotionCouponAddAPIRequest) GetDenominations() int64

GetDenominations Denominations Getter

func (TaobaoPromotionCouponAddAPIRequest) GetEndTime

GetEndTime EndTime Getter

func (TaobaoPromotionCouponAddAPIRequest) GetStartTime

func (r TaobaoPromotionCouponAddAPIRequest) GetStartTime() string

GetStartTime StartTime Getter

func (*TaobaoPromotionCouponAddAPIRequest) SetCondition

func (r *TaobaoPromotionCouponAddAPIRequest) SetCondition(_condition int64) error

SetCondition is Condition Setter 订单满多少元才能用这个优惠券,500就是满500元才能使用

func (*TaobaoPromotionCouponAddAPIRequest) SetDenominations

func (r *TaobaoPromotionCouponAddAPIRequest) SetDenominations(_denominations int64) error

SetDenominations is Denominations Setter 优惠券的面额,必须是3,5,10,20,50,100

func (*TaobaoPromotionCouponAddAPIRequest) SetEndTime

func (r *TaobaoPromotionCouponAddAPIRequest) SetEndTime(_endTime string) error

SetEndTime is EndTime Setter 优惠券的截止日期

func (*TaobaoPromotionCouponAddAPIRequest) SetStartTime

func (r *TaobaoPromotionCouponAddAPIRequest) SetStartTime(_startTime string) error

SetStartTime is StartTime Setter 优惠券的生效时间

type TaobaoPromotionCouponAddAPIResponse

type TaobaoPromotionCouponAddAPIResponse struct {
	model.CommonResponse
	TaobaoPromotionCouponAddAPIResponseModel
}

TaobaoPromotionCouponAddAPIResponse 创建店铺优惠券接口 API返回值 taobao.promotion.coupon.add

创建店铺优惠券。有效期内的店铺优惠券总数量不超过50张

type TaobaoPromotionCouponAddAPIResponseModel

type TaobaoPromotionCouponAddAPIResponseModel struct {
	XMLName xml.Name `xml:"promotion_coupon_add_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 优惠券的id
	CouponId int64 `json:"coupon_id,omitempty" xml:"coupon_id,omitempty"`
}

TaobaoPromotionCouponAddAPIResponseModel is 创建店铺优惠券接口 成功返回结果

type TaobaoPromotionCouponApplyAPIRequest

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

TaobaoPromotionCouponApplyAPIRequest 优惠券领取 API请求 taobao.promotion.coupon.apply

优惠券领取

func NewTaobaoPromotionCouponApplyRequest

func NewTaobaoPromotionCouponApplyRequest() *TaobaoPromotionCouponApplyAPIRequest

NewTaobaoPromotionCouponApplyRequest 初始化TaobaoPromotionCouponApplyAPIRequest对象

func (TaobaoPromotionCouponApplyAPIRequest) GetApiMethodName

func (r TaobaoPromotionCouponApplyAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoPromotionCouponApplyAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoPromotionCouponApplyAPIRequest) GetSellerId

GetSellerId SellerId Getter

func (TaobaoPromotionCouponApplyAPIRequest) GetSpreadId

GetSpreadId SpreadId Getter

func (*TaobaoPromotionCouponApplyAPIRequest) SetSellerId

func (r *TaobaoPromotionCouponApplyAPIRequest) SetSellerId(_sellerId string) error

SetSellerId is SellerId Setter 卖家id

func (*TaobaoPromotionCouponApplyAPIRequest) SetSpreadId

func (r *TaobaoPromotionCouponApplyAPIRequest) SetSpreadId(_spreadId string) error

SetSpreadId is SpreadId Setter 传播id

type TaobaoPromotionCouponApplyAPIResponse

type TaobaoPromotionCouponApplyAPIResponse struct {
	model.CommonResponse
	TaobaoPromotionCouponApplyAPIResponseModel
}

TaobaoPromotionCouponApplyAPIResponse 优惠券领取 API返回值 taobao.promotion.coupon.apply

优惠券领取

type TaobaoPromotionCouponApplyAPIResponseModel

type TaobaoPromotionCouponApplyAPIResponseModel struct {
	XMLName xml.Name `xml:"promotion_coupon_apply_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 失败详细描述
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
	// 调用错误码,只有调用失败的时候才会有
	ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"`
	// 领取结果,领取成功为true,否则为false
	ApplyResult bool `json:"apply_result,omitempty" xml:"apply_result,omitempty"`
	// 接口调用结果,调用成功为true,否则为false
	InvokeResult bool `json:"invoke_result,omitempty" xml:"invoke_result,omitempty"`
}

TaobaoPromotionCouponApplyAPIResponseModel is 优惠券领取 成功返回结果

type TaobaoPromotionCouponSellerSearchAPIRequest

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

TaobaoPromotionCouponSellerSearchAPIRequest 查询绑定卖家优惠券相关信息 API请求 taobao.promotion.coupon.seller.search

查询绑定卖家相关优惠券信息 如isv 百川 等外部业务方

func NewTaobaoPromotionCouponSellerSearchRequest

func NewTaobaoPromotionCouponSellerSearchRequest() *TaobaoPromotionCouponSellerSearchAPIRequest

NewTaobaoPromotionCouponSellerSearchRequest 初始化TaobaoPromotionCouponSellerSearchAPIRequest对象

func (TaobaoPromotionCouponSellerSearchAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoPromotionCouponSellerSearchAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoPromotionCouponSellerSearchAPIRequest) GetCurrentPage

GetCurrentPage CurrentPage Getter

func (TaobaoPromotionCouponSellerSearchAPIRequest) GetPageSize

GetPageSize PageSize Getter

func (TaobaoPromotionCouponSellerSearchAPIRequest) GetSellerNick

GetSellerNick SellerNick Getter

func (TaobaoPromotionCouponSellerSearchAPIRequest) GetSpreadIds

GetSpreadIds SpreadIds Getter

func (*TaobaoPromotionCouponSellerSearchAPIRequest) SetCurrentPage

func (r *TaobaoPromotionCouponSellerSearchAPIRequest) SetCurrentPage(_currentPage int64) error

SetCurrentPage is CurrentPage Setter 当前第几页 从第一页开始

func (*TaobaoPromotionCouponSellerSearchAPIRequest) SetPageSize

func (r *TaobaoPromotionCouponSellerSearchAPIRequest) SetPageSize(_pageSize int64) error

SetPageSize is PageSize Setter 每页数据 最大20左右

func (*TaobaoPromotionCouponSellerSearchAPIRequest) SetSellerNick

func (r *TaobaoPromotionCouponSellerSearchAPIRequest) SetSellerNick(_sellerNick string) error

SetSellerNick is SellerNick Setter 卖家昵称

func (*TaobaoPromotionCouponSellerSearchAPIRequest) SetSpreadIds

func (r *TaobaoPromotionCouponSellerSearchAPIRequest) SetSpreadIds(_spreadIds []string) error

SetSpreadIds is SpreadIds Setter 券id集合

type TaobaoPromotionCouponSellerSearchAPIResponse

type TaobaoPromotionCouponSellerSearchAPIResponse struct {
	model.CommonResponse
	TaobaoPromotionCouponSellerSearchAPIResponseModel
}

TaobaoPromotionCouponSellerSearchAPIResponse 查询绑定卖家优惠券相关信息 API返回值 taobao.promotion.coupon.seller.search

查询绑定卖家相关优惠券信息 如isv 百川 等外部业务方

type TaobaoPromotionCouponSellerSearchAPIResponseModel

type TaobaoPromotionCouponSellerSearchAPIResponseModel struct {
	XMLName xml.Name `xml:"promotion_coupon_seller_search_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 结果
	SellerCouponDetails []SellerCouponDetail `json:"seller_coupon_details,omitempty" xml:"seller_coupon_details>seller_coupon_detail,omitempty"`
	// 调用错误码,只有调用失败的时候才会有
	ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"`
	// 失败详细描述
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
	// 符合条件总数量,用于分页等判断
	TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"`
	// 接口调用结果,调用成功为true,否则为false
	InvokeResult bool `json:"invoke_result,omitempty" xml:"invoke_result,omitempty"`
}

TaobaoPromotionCouponSellerSearchAPIResponseModel is 查询绑定卖家优惠券相关信息 成功返回结果

type TaobaoPromotionCouponSendAPIRequest

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

TaobaoPromotionCouponSendAPIRequest 店铺优惠券发放接口 API请求 taobao.promotion.coupon.send

通过接口批量发放店铺优惠券(每次只能发送100张,只能发给当前授权卖家店铺的会员),发送成功则返回为空,发送失败则返回失败的买家列表和发送成功的买家和优惠券的number。注:如果所有买家都发放失败的话,is_success也为true,建议调用者根据返回的集合判断是否送入的买家都发放成功了

func NewTaobaoPromotionCouponSendRequest

func NewTaobaoPromotionCouponSendRequest() *TaobaoPromotionCouponSendAPIRequest

NewTaobaoPromotionCouponSendRequest 初始化TaobaoPromotionCouponSendAPIRequest对象

func (TaobaoPromotionCouponSendAPIRequest) GetApiMethodName

func (r TaobaoPromotionCouponSendAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoPromotionCouponSendAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoPromotionCouponSendAPIRequest) GetBuyerIds added in v1.2.5

func (r TaobaoPromotionCouponSendAPIRequest) GetBuyerIds() []string

GetBuyerIds BuyerIds Getter

func (TaobaoPromotionCouponSendAPIRequest) GetBuyerNick

func (r TaobaoPromotionCouponSendAPIRequest) GetBuyerNick() []string

GetBuyerNick BuyerNick Getter

func (TaobaoPromotionCouponSendAPIRequest) GetCouponId

GetCouponId CouponId Getter

func (TaobaoPromotionCouponSendAPIRequest) GetOuidData added in v1.2.5

GetOuidData OuidData Getter

func (*TaobaoPromotionCouponSendAPIRequest) SetBuyerIds added in v1.2.5

func (r *TaobaoPromotionCouponSendAPIRequest) SetBuyerIds(_buyerIds []string) error

SetBuyerIds is BuyerIds Setter openuid

func (*TaobaoPromotionCouponSendAPIRequest) SetBuyerNick

func (r *TaobaoPromotionCouponSendAPIRequest) SetBuyerNick(_buyerNick []string) error

SetBuyerNick is BuyerNick Setter 买家昵称用半角','号分割

func (*TaobaoPromotionCouponSendAPIRequest) SetCouponId

func (r *TaobaoPromotionCouponSendAPIRequest) SetCouponId(_couponId int64) error

SetCouponId is CouponId Setter 优惠券的id

func (*TaobaoPromotionCouponSendAPIRequest) SetOuidData added in v1.2.5

func (r *TaobaoPromotionCouponSendAPIRequest) SetOuidData(_ouidData []OuidData) error

SetOuidData is OuidData Setter ouid

type TaobaoPromotionCouponSendAPIResponse

type TaobaoPromotionCouponSendAPIResponse struct {
	model.CommonResponse
	TaobaoPromotionCouponSendAPIResponseModel
}

TaobaoPromotionCouponSendAPIResponse 店铺优惠券发放接口 API返回值 taobao.promotion.coupon.send

通过接口批量发放店铺优惠券(每次只能发送100张,只能发给当前授权卖家店铺的会员),发送成功则返回为空,发送失败则返回失败的买家列表和发送成功的买家和优惠券的number。注:如果所有买家都发放失败的话,is_success也为true,建议调用者根据返回的集合判断是否送入的买家都发放成功了

type TaobaoPromotionCouponSendAPIResponseModel

type TaobaoPromotionCouponSendAPIResponseModel struct {
	XMLName xml.Name `xml:"promotion_coupon_send_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 没有发送成功的买家
	FailureBuyers []ErrorMessage `json:"failure_buyers,omitempty" xml:"failure_buyers>error_message,omitempty"`
	// 发送成功的买家的昵称和优惠券的number
	CouponResults []CouponResult `json:"coupon_results,omitempty" xml:"coupon_results>coupon_result,omitempty"`
	// true 成功,false失败
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

TaobaoPromotionCouponSendAPIResponseModel is 店铺优惠券发放接口 成功返回结果

type TaobaoPromotionCouponSnsSendAPIRequest

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

TaobaoPromotionCouponSnsSendAPIRequest 微淘粉丝店铺优惠券发放接口 API请求 taobao.promotion.coupon.sns.send

通过接口批量发放店铺优惠券(每次只能发送100张,只能发给当前授权卖家店铺的微淘粉丝),发送成功则返回为空,发送失败则返回失败的买家列表和发送成功的买家和优惠券的number。注:如果所有买家都发放失败的话,is_success也为true,建议调用者根据返回的集合判断是否送入的买家都发放成功了

func NewTaobaoPromotionCouponSnsSendRequest

func NewTaobaoPromotionCouponSnsSendRequest() *TaobaoPromotionCouponSnsSendAPIRequest

NewTaobaoPromotionCouponSnsSendRequest 初始化TaobaoPromotionCouponSnsSendAPIRequest对象

func (TaobaoPromotionCouponSnsSendAPIRequest) GetApiMethodName

func (r TaobaoPromotionCouponSnsSendAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoPromotionCouponSnsSendAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoPromotionCouponSnsSendAPIRequest) GetBuyerNick

GetBuyerNick BuyerNick Getter

func (TaobaoPromotionCouponSnsSendAPIRequest) GetCouponId

GetCouponId CouponId Getter

func (TaobaoPromotionCouponSnsSendAPIRequest) GetOpenUids added in v1.2.5

GetOpenUids OpenUids Getter

func (*TaobaoPromotionCouponSnsSendAPIRequest) SetBuyerNick

func (r *TaobaoPromotionCouponSnsSendAPIRequest) SetBuyerNick(_buyerNick []string) error

SetBuyerNick is BuyerNick Setter 买家昵称用半角','号分割

func (*TaobaoPromotionCouponSnsSendAPIRequest) SetCouponId

func (r *TaobaoPromotionCouponSnsSendAPIRequest) SetCouponId(_couponId int64) error

SetCouponId is CouponId Setter 优惠券的id

func (*TaobaoPromotionCouponSnsSendAPIRequest) SetOpenUids added in v1.2.5

func (r *TaobaoPromotionCouponSnsSendAPIRequest) SetOpenUids(_openUids []string) error

SetOpenUids is OpenUids Setter asd

type TaobaoPromotionCouponSnsSendAPIResponse

type TaobaoPromotionCouponSnsSendAPIResponse struct {
	model.CommonResponse
	TaobaoPromotionCouponSnsSendAPIResponseModel
}

TaobaoPromotionCouponSnsSendAPIResponse 微淘粉丝店铺优惠券发放接口 API返回值 taobao.promotion.coupon.sns.send

通过接口批量发放店铺优惠券(每次只能发送100张,只能发给当前授权卖家店铺的微淘粉丝),发送成功则返回为空,发送失败则返回失败的买家列表和发送成功的买家和优惠券的number。注:如果所有买家都发放失败的话,is_success也为true,建议调用者根据返回的集合判断是否送入的买家都发放成功了

type TaobaoPromotionCouponSnsSendAPIResponseModel

type TaobaoPromotionCouponSnsSendAPIResponseModel struct {
	XMLName xml.Name `xml:"promotion_coupon_sns_send_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 没有发送成功的买家
	FailureBuyers []ErrorMessage `json:"failure_buyers,omitempty" xml:"failure_buyers>error_message,omitempty"`
	// 发送成功的买家的昵称和优惠券的number
	CouponResults []CouponResult `json:"coupon_results,omitempty" xml:"coupon_results>coupon_result,omitempty"`
}

TaobaoPromotionCouponSnsSendAPIResponseModel is 微淘粉丝店铺优惠券发放接口 成功返回结果

type TaobaoPromotionCouponsGetAPIRequest

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

TaobaoPromotionCouponsGetAPIRequest 查询卖家优惠券 API请求 taobao.promotion.coupons.get

查询卖家已经创建的优惠券,接口返回信息:优惠券ID,面值,创建时间,有效期,使用条件,使用渠道,创建渠道,优惠券总数量

func NewTaobaoPromotionCouponsGetRequest

func NewTaobaoPromotionCouponsGetRequest() *TaobaoPromotionCouponsGetAPIRequest

NewTaobaoPromotionCouponsGetRequest 初始化TaobaoPromotionCouponsGetAPIRequest对象

func (TaobaoPromotionCouponsGetAPIRequest) GetApiMethodName

func (r TaobaoPromotionCouponsGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoPromotionCouponsGetAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoPromotionCouponsGetAPIRequest) GetCouponId

GetCouponId CouponId Getter

func (TaobaoPromotionCouponsGetAPIRequest) GetDenominations

func (r TaobaoPromotionCouponsGetAPIRequest) GetDenominations() int64

GetDenominations Denominations Getter

func (TaobaoPromotionCouponsGetAPIRequest) GetEndTime

GetEndTime EndTime Getter

func (TaobaoPromotionCouponsGetAPIRequest) GetPageNo

GetPageNo PageNo Getter

func (TaobaoPromotionCouponsGetAPIRequest) GetPageSize

GetPageSize PageSize Getter

func (*TaobaoPromotionCouponsGetAPIRequest) SetCouponId

func (r *TaobaoPromotionCouponsGetAPIRequest) SetCouponId(_couponId int64) error

SetCouponId is CouponId Setter 优惠券的id,唯一标识这个优惠券

func (*TaobaoPromotionCouponsGetAPIRequest) SetDenominations

func (r *TaobaoPromotionCouponsGetAPIRequest) SetDenominations(_denominations int64) error

SetDenominations is Denominations Setter 优惠券的面额,必须是3,5,10,20,50,100

func (*TaobaoPromotionCouponsGetAPIRequest) SetEndTime

func (r *TaobaoPromotionCouponsGetAPIRequest) SetEndTime(_endTime string) error

SetEndTime is EndTime Setter 优惠券的截止日期

func (*TaobaoPromotionCouponsGetAPIRequest) SetPageNo

func (r *TaobaoPromotionCouponsGetAPIRequest) SetPageNo(_pageNo int64) error

SetPageNo is PageNo Setter 查询的页号,结果集是分页返回的,每页20条

func (*TaobaoPromotionCouponsGetAPIRequest) SetPageSize

func (r *TaobaoPromotionCouponsGetAPIRequest) SetPageSize(_pageSize int64) error

SetPageSize is PageSize Setter 每页条数

type TaobaoPromotionCouponsGetAPIResponse

type TaobaoPromotionCouponsGetAPIResponse struct {
	model.CommonResponse
	TaobaoPromotionCouponsGetAPIResponseModel
}

TaobaoPromotionCouponsGetAPIResponse 查询卖家优惠券 API返回值 taobao.promotion.coupons.get

查询卖家已经创建的优惠券,接口返回信息:优惠券ID,面值,创建时间,有效期,使用条件,使用渠道,创建渠道,优惠券总数量

type TaobaoPromotionCouponsGetAPIResponseModel

type TaobaoPromotionCouponsGetAPIResponseModel struct {
	XMLName xml.Name `xml:"promotion_coupons_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 优惠券列表
	Coupons []Coupon `json:"coupons,omitempty" xml:"coupons>coupon,omitempty"`
	// 查询的总数量
	TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"`
}

TaobaoPromotionCouponsGetAPIResponseModel is 查询卖家优惠券 成功返回结果

type TaobaoPromotionLimitdiscountDetailGetAPIRequest

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

TaobaoPromotionLimitdiscountDetailGetAPIRequest 限时打折详情查询 API请求 taobao.promotion.limitdiscount.detail.get

限时打折详情查询。查询出指定限时打折的对应商品记录信息。

func NewTaobaoPromotionLimitdiscountDetailGetRequest

func NewTaobaoPromotionLimitdiscountDetailGetRequest() *TaobaoPromotionLimitdiscountDetailGetAPIRequest

NewTaobaoPromotionLimitdiscountDetailGetRequest 初始化TaobaoPromotionLimitdiscountDetailGetAPIRequest对象

func (TaobaoPromotionLimitdiscountDetailGetAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoPromotionLimitdiscountDetailGetAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoPromotionLimitdiscountDetailGetAPIRequest) GetLimitDiscountId

GetLimitDiscountId LimitDiscountId Getter

func (*TaobaoPromotionLimitdiscountDetailGetAPIRequest) SetLimitDiscountId

func (r *TaobaoPromotionLimitdiscountDetailGetAPIRequest) SetLimitDiscountId(_limitDiscountId int64) error

SetLimitDiscountId is LimitDiscountId Setter 限时打折ID。这个针对查询唯一限时打折情况。

type TaobaoPromotionLimitdiscountDetailGetAPIResponse

type TaobaoPromotionLimitdiscountDetailGetAPIResponse struct {
	model.CommonResponse
	TaobaoPromotionLimitdiscountDetailGetAPIResponseModel
}

TaobaoPromotionLimitdiscountDetailGetAPIResponse 限时打折详情查询 API返回值 taobao.promotion.limitdiscount.detail.get

限时打折详情查询。查询出指定限时打折的对应商品记录信息。

type TaobaoPromotionLimitdiscountDetailGetAPIResponseModel

type TaobaoPromotionLimitdiscountDetailGetAPIResponseModel struct {
	XMLName xml.Name `xml:"promotion_limitdiscount_detail_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 限时打折对应的商品详情列表。
	ItemDiscountDetailList []LimitDiscountDetail `json:"item_discount_detail_list,omitempty" xml:"item_discount_detail_list>limit_discount_detail,omitempty"`
}

TaobaoPromotionLimitdiscountDetailGetAPIResponseModel is 限时打折详情查询 成功返回结果

type TaobaoPromotionMealGetAPIRequest

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

TaobaoPromotionMealGetAPIRequest 搭配套餐查询 API请求 taobao.promotion.meal.get

搭配套餐查询。每个卖家最多创建50个搭配套餐,所以查询不会分页,会将所有的满足状态的搭配套餐全部查出。该接口不会校验商品的下架或库存为0,查询结果的状态表明搭配套餐在数据库中的状态,商品的状态请isv自己验证。在卖家后台页面点击查看会触发数据库状态的修改。

func NewTaobaoPromotionMealGetRequest

func NewTaobaoPromotionMealGetRequest() *TaobaoPromotionMealGetAPIRequest

NewTaobaoPromotionMealGetRequest 初始化TaobaoPromotionMealGetAPIRequest对象

func (TaobaoPromotionMealGetAPIRequest) GetApiMethodName

func (r TaobaoPromotionMealGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoPromotionMealGetAPIRequest) GetApiParams

func (r TaobaoPromotionMealGetAPIRequest) GetApiParams() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoPromotionMealGetAPIRequest) GetMealId

GetMealId MealId Getter

func (TaobaoPromotionMealGetAPIRequest) GetStatus

GetStatus Status Getter

func (*TaobaoPromotionMealGetAPIRequest) SetMealId

func (r *TaobaoPromotionMealGetAPIRequest) SetMealId(_mealId int64) error

SetMealId is MealId Setter 搭配套餐id

func (*TaobaoPromotionMealGetAPIRequest) SetStatus

func (r *TaobaoPromotionMealGetAPIRequest) SetStatus(_status string) error

SetStatus is Status Setter 套餐状态。有效:VALID;失效:INVALID(有效套餐为可使用的套餐,无效套餐为套餐中有商品下架或库存为0时)。默认时两种情况都会查询。

type TaobaoPromotionMealGetAPIResponse

type TaobaoPromotionMealGetAPIResponse struct {
	model.CommonResponse
	TaobaoPromotionMealGetAPIResponseModel
}

TaobaoPromotionMealGetAPIResponse 搭配套餐查询 API返回值 taobao.promotion.meal.get

搭配套餐查询。每个卖家最多创建50个搭配套餐,所以查询不会分页,会将所有的满足状态的搭配套餐全部查出。该接口不会校验商品的下架或库存为0,查询结果的状态表明搭配套餐在数据库中的状态,商品的状态请isv自己验证。在卖家后台页面点击查看会触发数据库状态的修改。

type TaobaoPromotionMealGetAPIResponseModel

type TaobaoPromotionMealGetAPIResponseModel struct {
	XMLName xml.Name `xml:"promotion_meal_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 搭配套餐列表。
	MealList []Meal `json:"meal_list,omitempty" xml:"meal_list>meal,omitempty"`
}

TaobaoPromotionMealGetAPIResponseModel is 搭配套餐查询 成功返回结果

type TaobaoPromotionmiscActivityRangeAddAPIRequest

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

TaobaoPromotionmiscActivityRangeAddAPIRequest 增加活动参与的商品 API请求 taobao.promotionmisc.activity.range.add

增加活动参与的商品,部分商品参与的活动,最大支持指定150个商品。

func NewTaobaoPromotionmiscActivityRangeAddRequest

func NewTaobaoPromotionmiscActivityRangeAddRequest() *TaobaoPromotionmiscActivityRangeAddAPIRequest

NewTaobaoPromotionmiscActivityRangeAddRequest 初始化TaobaoPromotionmiscActivityRangeAddAPIRequest对象

func (TaobaoPromotionmiscActivityRangeAddAPIRequest) GetActivityId

GetActivityId ActivityId Getter

func (TaobaoPromotionmiscActivityRangeAddAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoPromotionmiscActivityRangeAddAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoPromotionmiscActivityRangeAddAPIRequest) GetIds

GetIds Ids Getter

func (*TaobaoPromotionmiscActivityRangeAddAPIRequest) SetActivityId

func (r *TaobaoPromotionmiscActivityRangeAddAPIRequest) SetActivityId(_activityId int64) error

SetActivityId is ActivityId Setter 活动id。

func (*TaobaoPromotionmiscActivityRangeAddAPIRequest) SetIds

SetIds is Ids Setter 商品id,多个id用逗号隔开,一次不超过50个。

type TaobaoPromotionmiscActivityRangeAddAPIResponse

type TaobaoPromotionmiscActivityRangeAddAPIResponse struct {
	model.CommonResponse
	TaobaoPromotionmiscActivityRangeAddAPIResponseModel
}

TaobaoPromotionmiscActivityRangeAddAPIResponse 增加活动参与的商品 API返回值 taobao.promotionmisc.activity.range.add

增加活动参与的商品,部分商品参与的活动,最大支持指定150个商品。

type TaobaoPromotionmiscActivityRangeAddAPIResponseModel

type TaobaoPromotionmiscActivityRangeAddAPIResponseModel struct {
	XMLName xml.Name `xml:"promotionmisc_activity_range_add_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 增加商品范围是否成功。
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

TaobaoPromotionmiscActivityRangeAddAPIResponseModel is 增加活动参与的商品 成功返回结果

type TaobaoPromotionmiscActivityRangeAllRemoveAPIRequest

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

TaobaoPromotionmiscActivityRangeAllRemoveAPIRequest 清空活动参与的商品 API请求 taobao.promotionmisc.activity.range.all.remove

清空活动参与的商品

func NewTaobaoPromotionmiscActivityRangeAllRemoveRequest

func NewTaobaoPromotionmiscActivityRangeAllRemoveRequest() *TaobaoPromotionmiscActivityRangeAllRemoveAPIRequest

NewTaobaoPromotionmiscActivityRangeAllRemoveRequest 初始化TaobaoPromotionmiscActivityRangeAllRemoveAPIRequest对象

func (TaobaoPromotionmiscActivityRangeAllRemoveAPIRequest) GetActivityId

GetActivityId ActivityId Getter

func (TaobaoPromotionmiscActivityRangeAllRemoveAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoPromotionmiscActivityRangeAllRemoveAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (*TaobaoPromotionmiscActivityRangeAllRemoveAPIRequest) SetActivityId

func (r *TaobaoPromotionmiscActivityRangeAllRemoveAPIRequest) SetActivityId(_activityId int64) error

SetActivityId is ActivityId Setter 活动id。

type TaobaoPromotionmiscActivityRangeAllRemoveAPIResponse

type TaobaoPromotionmiscActivityRangeAllRemoveAPIResponse struct {
	model.CommonResponse
	TaobaoPromotionmiscActivityRangeAllRemoveAPIResponseModel
}

TaobaoPromotionmiscActivityRangeAllRemoveAPIResponse 清空活动参与的商品 API返回值 taobao.promotionmisc.activity.range.all.remove

清空活动参与的商品

type TaobaoPromotionmiscActivityRangeAllRemoveAPIResponseModel

type TaobaoPromotionmiscActivityRangeAllRemoveAPIResponseModel struct {
	XMLName xml.Name `xml:"promotionmisc_activity_range_all_remove_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 清空活动参与商品是否成功。
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

TaobaoPromotionmiscActivityRangeAllRemoveAPIResponseModel is 清空活动参与的商品 成功返回结果

type TaobaoPromotionmiscActivityRangeListGetAPIRequest

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

TaobaoPromotionmiscActivityRangeListGetAPIRequest 查询活动参与的商品 API请求 taobao.promotionmisc.activity.range.list.get

查询活动参与的商品

func NewTaobaoPromotionmiscActivityRangeListGetRequest

func NewTaobaoPromotionmiscActivityRangeListGetRequest() *TaobaoPromotionmiscActivityRangeListGetAPIRequest

NewTaobaoPromotionmiscActivityRangeListGetRequest 初始化TaobaoPromotionmiscActivityRangeListGetAPIRequest对象

func (TaobaoPromotionmiscActivityRangeListGetAPIRequest) GetActivityId

GetActivityId ActivityId Getter

func (TaobaoPromotionmiscActivityRangeListGetAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoPromotionmiscActivityRangeListGetAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (*TaobaoPromotionmiscActivityRangeListGetAPIRequest) SetActivityId

func (r *TaobaoPromotionmiscActivityRangeListGetAPIRequest) SetActivityId(_activityId int64) error

SetActivityId is ActivityId Setter 活动id

type TaobaoPromotionmiscActivityRangeListGetAPIResponse

type TaobaoPromotionmiscActivityRangeListGetAPIResponse struct {
	model.CommonResponse
	TaobaoPromotionmiscActivityRangeListGetAPIResponseModel
}

TaobaoPromotionmiscActivityRangeListGetAPIResponse 查询活动参与的商品 API返回值 taobao.promotionmisc.activity.range.list.get

查询活动参与的商品

type TaobaoPromotionmiscActivityRangeListGetAPIResponseModel

type TaobaoPromotionmiscActivityRangeListGetAPIResponseModel struct {
	XMLName xml.Name `xml:"promotionmisc_activity_range_list_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 活动参与的商品列表
	PromotionRangeList []PromotionRange `json:"promotion_range_list,omitempty" xml:"promotion_range_list>promotion_range,omitempty"`
}

TaobaoPromotionmiscActivityRangeListGetAPIResponseModel is 查询活动参与的商品 成功返回结果

type TaobaoPromotionmiscActivityRangeRemoveAPIRequest

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

TaobaoPromotionmiscActivityRangeRemoveAPIRequest 去除活动参与的商品 API请求 taobao.promotionmisc.activity.range.remove

去除活动参与的商品

func NewTaobaoPromotionmiscActivityRangeRemoveRequest

func NewTaobaoPromotionmiscActivityRangeRemoveRequest() *TaobaoPromotionmiscActivityRangeRemoveAPIRequest

NewTaobaoPromotionmiscActivityRangeRemoveRequest 初始化TaobaoPromotionmiscActivityRangeRemoveAPIRequest对象

func (TaobaoPromotionmiscActivityRangeRemoveAPIRequest) GetActivityId

GetActivityId ActivityId Getter

func (TaobaoPromotionmiscActivityRangeRemoveAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoPromotionmiscActivityRangeRemoveAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoPromotionmiscActivityRangeRemoveAPIRequest) GetIds

GetIds Ids Getter

func (*TaobaoPromotionmiscActivityRangeRemoveAPIRequest) SetActivityId

func (r *TaobaoPromotionmiscActivityRangeRemoveAPIRequest) SetActivityId(_activityId int64) error

SetActivityId is ActivityId Setter 活动id。

func (*TaobaoPromotionmiscActivityRangeRemoveAPIRequest) SetIds

SetIds is Ids Setter 商品id,多个id用逗号隔开。

type TaobaoPromotionmiscActivityRangeRemoveAPIResponse

type TaobaoPromotionmiscActivityRangeRemoveAPIResponse struct {
	model.CommonResponse
	TaobaoPromotionmiscActivityRangeRemoveAPIResponseModel
}

TaobaoPromotionmiscActivityRangeRemoveAPIResponse 去除活动参与的商品 API返回值 taobao.promotionmisc.activity.range.remove

去除活动参与的商品

type TaobaoPromotionmiscActivityRangeRemoveAPIResponseModel

type TaobaoPromotionmiscActivityRangeRemoveAPIResponseModel struct {
	XMLName xml.Name `xml:"promotionmisc_activity_range_remove_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 去除活动参与的商品是否成功。
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

TaobaoPromotionmiscActivityRangeRemoveAPIResponseModel is 去除活动参与的商品 成功返回结果

type TaobaoPromotionmiscCommonItemActivityAddAPIRequest

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

TaobaoPromotionmiscCommonItemActivityAddAPIRequest 创建通用单品优惠活动 API请求 taobao.promotionmisc.common.item.activity.add

创建通用单品优惠活动。 1、该接口只创建活动的基本信息,如需要增加、删除参与该活动的商品及优惠,请调用taobao.promotionmisc.common.item.detail.add和taobao.promotionmisc.common.item.detail.delete接口 2、同一卖家下的活动数量限制为30个,超过限制需先调用taobao.promotionmisc.common.item.activity.delete接口删除无用的活动后才可再创建新的活动

func NewTaobaoPromotionmiscCommonItemActivityAddRequest

func NewTaobaoPromotionmiscCommonItemActivityAddRequest() *TaobaoPromotionmiscCommonItemActivityAddAPIRequest

NewTaobaoPromotionmiscCommonItemActivityAddRequest 初始化TaobaoPromotionmiscCommonItemActivityAddAPIRequest对象

func (TaobaoPromotionmiscCommonItemActivityAddAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoPromotionmiscCommonItemActivityAddAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoPromotionmiscCommonItemActivityAddAPIRequest) GetDescription

GetDescription Description Getter

func (TaobaoPromotionmiscCommonItemActivityAddAPIRequest) GetEndTime

GetEndTime EndTime Getter

func (TaobaoPromotionmiscCommonItemActivityAddAPIRequest) GetIsUserTag

GetIsUserTag IsUserTag Getter

func (TaobaoPromotionmiscCommonItemActivityAddAPIRequest) GetName

GetName Name Getter

func (TaobaoPromotionmiscCommonItemActivityAddAPIRequest) GetStartTime

GetStartTime StartTime Getter

func (TaobaoPromotionmiscCommonItemActivityAddAPIRequest) GetUserTag

GetUserTag UserTag Getter

func (*TaobaoPromotionmiscCommonItemActivityAddAPIRequest) SetDescription

func (r *TaobaoPromotionmiscCommonItemActivityAddAPIRequest) SetDescription(_description string) error

SetDescription is Description Setter 活动描述,不能超过100字符

func (*TaobaoPromotionmiscCommonItemActivityAddAPIRequest) SetEndTime

SetEndTime is EndTime Setter 活动结束时间

func (*TaobaoPromotionmiscCommonItemActivityAddAPIRequest) SetIsUserTag

SetIsUserTag is IsUserTag Setter 是否指定人群标签

func (*TaobaoPromotionmiscCommonItemActivityAddAPIRequest) SetName

SetName is Name Setter 活动名称,不能超过32字符

func (*TaobaoPromotionmiscCommonItemActivityAddAPIRequest) SetStartTime

SetStartTime is StartTime Setter 活动开始时间

func (*TaobaoPromotionmiscCommonItemActivityAddAPIRequest) SetUserTag

SetUserTag is UserTag Setter 用户标签。当is_user_tag为true时,该值才有意义。

type TaobaoPromotionmiscCommonItemActivityAddAPIResponse

type TaobaoPromotionmiscCommonItemActivityAddAPIResponse struct {
	model.CommonResponse
	TaobaoPromotionmiscCommonItemActivityAddAPIResponseModel
}

TaobaoPromotionmiscCommonItemActivityAddAPIResponse 创建通用单品优惠活动 API返回值 taobao.promotionmisc.common.item.activity.add

创建通用单品优惠活动。 1、该接口只创建活动的基本信息,如需要增加、删除参与该活动的商品及优惠,请调用taobao.promotionmisc.common.item.detail.add和taobao.promotionmisc.common.item.detail.delete接口 2、同一卖家下的活动数量限制为30个,超过限制需先调用taobao.promotionmisc.common.item.activity.delete接口删除无用的活动后才可再创建新的活动

type TaobaoPromotionmiscCommonItemActivityAddAPIResponseModel

type TaobaoPromotionmiscCommonItemActivityAddAPIResponseModel struct {
	XMLName xml.Name `xml:"promotionmisc_common_item_activity_add_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 优惠活动ID
	ActivityId int64 `json:"activity_id,omitempty" xml:"activity_id,omitempty"`
	// 是否创建成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

TaobaoPromotionmiscCommonItemActivityAddAPIResponseModel is 创建通用单品优惠活动 成功返回结果

type TaobaoPromotionmiscCommonItemActivityDeleteAPIRequest

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

TaobaoPromotionmiscCommonItemActivityDeleteAPIRequest 删除通用单品优惠活动 API请求 taobao.promotionmisc.common.item.activity.delete

删除通用单品优惠活动。

func NewTaobaoPromotionmiscCommonItemActivityDeleteRequest

func NewTaobaoPromotionmiscCommonItemActivityDeleteRequest() *TaobaoPromotionmiscCommonItemActivityDeleteAPIRequest

NewTaobaoPromotionmiscCommonItemActivityDeleteRequest 初始化TaobaoPromotionmiscCommonItemActivityDeleteAPIRequest对象

func (TaobaoPromotionmiscCommonItemActivityDeleteAPIRequest) GetActivityId

GetActivityId ActivityId Getter

func (TaobaoPromotionmiscCommonItemActivityDeleteAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoPromotionmiscCommonItemActivityDeleteAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (*TaobaoPromotionmiscCommonItemActivityDeleteAPIRequest) SetActivityId

SetActivityId is ActivityId Setter 优惠活动ID

type TaobaoPromotionmiscCommonItemActivityDeleteAPIResponse

type TaobaoPromotionmiscCommonItemActivityDeleteAPIResponse struct {
	model.CommonResponse
	TaobaoPromotionmiscCommonItemActivityDeleteAPIResponseModel
}

TaobaoPromotionmiscCommonItemActivityDeleteAPIResponse 删除通用单品优惠活动 API返回值 taobao.promotionmisc.common.item.activity.delete

删除通用单品优惠活动。

type TaobaoPromotionmiscCommonItemActivityDeleteAPIResponseModel

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

TaobaoPromotionmiscCommonItemActivityDeleteAPIResponseModel is 删除通用单品优惠活动 成功返回结果

type TaobaoPromotionmiscCommonItemActivityGetAPIRequest

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

TaobaoPromotionmiscCommonItemActivityGetAPIRequest 查询通用单品优惠活动 API请求 taobao.promotionmisc.common.item.activity.get

查询通用单品优惠活动。

func NewTaobaoPromotionmiscCommonItemActivityGetRequest

func NewTaobaoPromotionmiscCommonItemActivityGetRequest() *TaobaoPromotionmiscCommonItemActivityGetAPIRequest

NewTaobaoPromotionmiscCommonItemActivityGetRequest 初始化TaobaoPromotionmiscCommonItemActivityGetAPIRequest对象

func (TaobaoPromotionmiscCommonItemActivityGetAPIRequest) GetActivityId

GetActivityId ActivityId Getter

func (TaobaoPromotionmiscCommonItemActivityGetAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoPromotionmiscCommonItemActivityGetAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (*TaobaoPromotionmiscCommonItemActivityGetAPIRequest) SetActivityId

func (r *TaobaoPromotionmiscCommonItemActivityGetAPIRequest) SetActivityId(_activityId int64) error

SetActivityId is ActivityId Setter 优惠活动ID

type TaobaoPromotionmiscCommonItemActivityGetAPIResponse

type TaobaoPromotionmiscCommonItemActivityGetAPIResponse struct {
	model.CommonResponse
	TaobaoPromotionmiscCommonItemActivityGetAPIResponseModel
}

TaobaoPromotionmiscCommonItemActivityGetAPIResponse 查询通用单品优惠活动 API返回值 taobao.promotionmisc.common.item.activity.get

查询通用单品优惠活动。

type TaobaoPromotionmiscCommonItemActivityGetAPIResponseModel

type TaobaoPromotionmiscCommonItemActivityGetAPIResponseModel struct {
	XMLName xml.Name `xml:"promotionmisc_common_item_activity_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 优惠活动
	Activity *CommonItemActivity `json:"activity,omitempty" xml:"activity,omitempty"`
	// 是否查询成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

TaobaoPromotionmiscCommonItemActivityGetAPIResponseModel is 查询通用单品优惠活动 成功返回结果

type TaobaoPromotionmiscCommonItemActivityListGetAPIRequest

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

TaobaoPromotionmiscCommonItemActivityListGetAPIRequest 查询通用单品优惠活动列表 API请求 taobao.promotionmisc.common.item.activity.list.get

查询通用单品优惠活动列表。

func NewTaobaoPromotionmiscCommonItemActivityListGetRequest

func NewTaobaoPromotionmiscCommonItemActivityListGetRequest() *TaobaoPromotionmiscCommonItemActivityListGetAPIRequest

NewTaobaoPromotionmiscCommonItemActivityListGetRequest 初始化TaobaoPromotionmiscCommonItemActivityListGetAPIRequest对象

func (TaobaoPromotionmiscCommonItemActivityListGetAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoPromotionmiscCommonItemActivityListGetAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoPromotionmiscCommonItemActivityListGetAPIRequest) GetPageNo

GetPageNo PageNo Getter

func (TaobaoPromotionmiscCommonItemActivityListGetAPIRequest) GetPageSize

GetPageSize PageSize Getter

func (*TaobaoPromotionmiscCommonItemActivityListGetAPIRequest) SetPageNo

SetPageNo is PageNo Setter 分页页码,页码从1开始

func (*TaobaoPromotionmiscCommonItemActivityListGetAPIRequest) SetPageSize

SetPageSize is PageSize Setter 分页大小,不能超过50

type TaobaoPromotionmiscCommonItemActivityListGetAPIResponse

type TaobaoPromotionmiscCommonItemActivityListGetAPIResponse struct {
	model.CommonResponse
	TaobaoPromotionmiscCommonItemActivityListGetAPIResponseModel
}

TaobaoPromotionmiscCommonItemActivityListGetAPIResponse 查询通用单品优惠活动列表 API返回值 taobao.promotionmisc.common.item.activity.list.get

查询通用单品优惠活动列表。

type TaobaoPromotionmiscCommonItemActivityListGetAPIResponseModel

type TaobaoPromotionmiscCommonItemActivityListGetAPIResponseModel struct {
	XMLName xml.Name `xml:"promotionmisc_common_item_activity_list_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 营销活动列表
	ActivityList []CommonItemActivity `json:"activity_list,omitempty" xml:"activity_list>common_item_activity,omitempty"`
	// 数据总数量
	TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"`
	// 是否查询成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

TaobaoPromotionmiscCommonItemActivityListGetAPIResponseModel is 查询通用单品优惠活动列表 成功返回结果

type TaobaoPromotionmiscCommonItemActivityUpdateAPIRequest

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

TaobaoPromotionmiscCommonItemActivityUpdateAPIRequest 修改通用单品优惠活动 API请求 taobao.promotionmisc.common.item.activity.update

修改通用单品优惠活动。 1、该接口只修改活动基本信息,如需要增加、删除参与该活动的商品及优惠,请调用taobao.promotionmisc.common.item.detail.add和taobao.promotionmisc.common.item.detail.delete接口 2、使用该接口时需要把未做修改的字段值也传入

func NewTaobaoPromotionmiscCommonItemActivityUpdateRequest

func NewTaobaoPromotionmiscCommonItemActivityUpdateRequest() *TaobaoPromotionmiscCommonItemActivityUpdateAPIRequest

NewTaobaoPromotionmiscCommonItemActivityUpdateRequest 初始化TaobaoPromotionmiscCommonItemActivityUpdateAPIRequest对象

func (TaobaoPromotionmiscCommonItemActivityUpdateAPIRequest) GetActivityId

GetActivityId ActivityId Getter

func (TaobaoPromotionmiscCommonItemActivityUpdateAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoPromotionmiscCommonItemActivityUpdateAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoPromotionmiscCommonItemActivityUpdateAPIRequest) GetDescription

GetDescription Description Getter

func (TaobaoPromotionmiscCommonItemActivityUpdateAPIRequest) GetEndTime

GetEndTime EndTime Getter

func (TaobaoPromotionmiscCommonItemActivityUpdateAPIRequest) GetIsUserTag

GetIsUserTag IsUserTag Getter

func (TaobaoPromotionmiscCommonItemActivityUpdateAPIRequest) GetName

GetName Name Getter

func (TaobaoPromotionmiscCommonItemActivityUpdateAPIRequest) GetStartTime

GetStartTime StartTime Getter

func (TaobaoPromotionmiscCommonItemActivityUpdateAPIRequest) GetUserTag

GetUserTag UserTag Getter

func (*TaobaoPromotionmiscCommonItemActivityUpdateAPIRequest) SetActivityId

SetActivityId is ActivityId Setter 优惠活动ID

func (*TaobaoPromotionmiscCommonItemActivityUpdateAPIRequest) SetDescription

func (r *TaobaoPromotionmiscCommonItemActivityUpdateAPIRequest) SetDescription(_description string) error

SetDescription is Description Setter 活动描述,不能超过100字符

func (*TaobaoPromotionmiscCommonItemActivityUpdateAPIRequest) SetEndTime

SetEndTime is EndTime Setter 活动结束时间

func (*TaobaoPromotionmiscCommonItemActivityUpdateAPIRequest) SetIsUserTag

SetIsUserTag is IsUserTag Setter 是否指定人群标签

func (*TaobaoPromotionmiscCommonItemActivityUpdateAPIRequest) SetName

SetName is Name Setter 活动名称,不能超过32字符

func (*TaobaoPromotionmiscCommonItemActivityUpdateAPIRequest) SetStartTime

SetStartTime is StartTime Setter 活动开始时间

func (*TaobaoPromotionmiscCommonItemActivityUpdateAPIRequest) SetUserTag

SetUserTag is UserTag Setter 用户标签。当is_user_tag为true时,该值才有意义。

type TaobaoPromotionmiscCommonItemActivityUpdateAPIResponse

type TaobaoPromotionmiscCommonItemActivityUpdateAPIResponse struct {
	model.CommonResponse
	TaobaoPromotionmiscCommonItemActivityUpdateAPIResponseModel
}

TaobaoPromotionmiscCommonItemActivityUpdateAPIResponse 修改通用单品优惠活动 API返回值 taobao.promotionmisc.common.item.activity.update

修改通用单品优惠活动。 1、该接口只修改活动基本信息,如需要增加、删除参与该活动的商品及优惠,请调用taobao.promotionmisc.common.item.detail.add和taobao.promotionmisc.common.item.detail.delete接口 2、使用该接口时需要把未做修改的字段值也传入

type TaobaoPromotionmiscCommonItemActivityUpdateAPIResponseModel

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

TaobaoPromotionmiscCommonItemActivityUpdateAPIResponseModel is 修改通用单品优惠活动 成功返回结果

type TaobaoPromotionmiscCommonItemDetailAddAPIRequest

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

TaobaoPromotionmiscCommonItemDetailAddAPIRequest 创建通用单品优惠详情 API请求 taobao.promotionmisc.common.item.detail.add

创建通用单品优惠详情。 1、使用此接口在指定的优惠活动下创建参与的商品的优惠信息,如还未创建活动,需要先使用接口taobao.promotionmisc.common.item.activity.add创建优惠活动; 2、同一卖家同一活动下的优惠详情数量限制为150个,超过限制需先调用taobao.promotionmisc.common.item.detail.delete接口删除无用的详情后才可再创建新的优惠详情; 3、此接口受卖家最低折扣限制,如果优惠力度大于卖家设置的最低折扣则不能创建

func NewTaobaoPromotionmiscCommonItemDetailAddRequest

func NewTaobaoPromotionmiscCommonItemDetailAddRequest() *TaobaoPromotionmiscCommonItemDetailAddAPIRequest

NewTaobaoPromotionmiscCommonItemDetailAddRequest 初始化TaobaoPromotionmiscCommonItemDetailAddAPIRequest对象

func (TaobaoPromotionmiscCommonItemDetailAddAPIRequest) GetActivityId

GetActivityId ActivityId Getter

func (TaobaoPromotionmiscCommonItemDetailAddAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoPromotionmiscCommonItemDetailAddAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoPromotionmiscCommonItemDetailAddAPIRequest) GetItemId

GetItemId ItemId Getter

func (TaobaoPromotionmiscCommonItemDetailAddAPIRequest) GetPromotionType

GetPromotionType PromotionType Getter

func (TaobaoPromotionmiscCommonItemDetailAddAPIRequest) GetPromotionValue

GetPromotionValue PromotionValue Getter

func (*TaobaoPromotionmiscCommonItemDetailAddAPIRequest) SetActivityId

func (r *TaobaoPromotionmiscCommonItemDetailAddAPIRequest) SetActivityId(_activityId int64) error

SetActivityId is ActivityId Setter 优惠活动ID

func (*TaobaoPromotionmiscCommonItemDetailAddAPIRequest) SetItemId

SetItemId is ItemId Setter 商品ID

func (*TaobaoPromotionmiscCommonItemDetailAddAPIRequest) SetPromotionType

func (r *TaobaoPromotionmiscCommonItemDetailAddAPIRequest) SetPromotionType(_promotionType int64) error

SetPromotionType is PromotionType Setter 优惠类型,只有两种可选值:0-减钱;1-打折

func (*TaobaoPromotionmiscCommonItemDetailAddAPIRequest) SetPromotionValue

func (r *TaobaoPromotionmiscCommonItemDetailAddAPIRequest) SetPromotionValue(_promotionValue int64) error

SetPromotionValue is PromotionValue Setter 优惠力度,其值的解释方式由promotion_type定义:当为减钱时解释成减钱数量,如:900表示减9元;当为打折时解释成打折折扣,如:900表示打9折

type TaobaoPromotionmiscCommonItemDetailAddAPIResponse

type TaobaoPromotionmiscCommonItemDetailAddAPIResponse struct {
	model.CommonResponse
	TaobaoPromotionmiscCommonItemDetailAddAPIResponseModel
}

TaobaoPromotionmiscCommonItemDetailAddAPIResponse 创建通用单品优惠详情 API返回值 taobao.promotionmisc.common.item.detail.add

创建通用单品优惠详情。 1、使用此接口在指定的优惠活动下创建参与的商品的优惠信息,如还未创建活动,需要先使用接口taobao.promotionmisc.common.item.activity.add创建优惠活动; 2、同一卖家同一活动下的优惠详情数量限制为150个,超过限制需先调用taobao.promotionmisc.common.item.detail.delete接口删除无用的详情后才可再创建新的优惠详情; 3、此接口受卖家最低折扣限制,如果优惠力度大于卖家设置的最低折扣则不能创建

type TaobaoPromotionmiscCommonItemDetailAddAPIResponseModel

type TaobaoPromotionmiscCommonItemDetailAddAPIResponseModel struct {
	XMLName xml.Name `xml:"promotionmisc_common_item_detail_add_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 优惠详情ID
	DetailId int64 `json:"detail_id,omitempty" xml:"detail_id,omitempty"`
	// 是否创建成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

TaobaoPromotionmiscCommonItemDetailAddAPIResponseModel is 创建通用单品优惠详情 成功返回结果

type TaobaoPromotionmiscCommonItemDetailDeleteAPIRequest

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

TaobaoPromotionmiscCommonItemDetailDeleteAPIRequest 删除通用单品优惠详情 API请求 taobao.promotionmisc.common.item.detail.delete

删除通用单品优惠详情。

func NewTaobaoPromotionmiscCommonItemDetailDeleteRequest

func NewTaobaoPromotionmiscCommonItemDetailDeleteRequest() *TaobaoPromotionmiscCommonItemDetailDeleteAPIRequest

NewTaobaoPromotionmiscCommonItemDetailDeleteRequest 初始化TaobaoPromotionmiscCommonItemDetailDeleteAPIRequest对象

func (TaobaoPromotionmiscCommonItemDetailDeleteAPIRequest) GetActivityId

GetActivityId ActivityId Getter

func (TaobaoPromotionmiscCommonItemDetailDeleteAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoPromotionmiscCommonItemDetailDeleteAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoPromotionmiscCommonItemDetailDeleteAPIRequest) GetDetailId

GetDetailId DetailId Getter

func (*TaobaoPromotionmiscCommonItemDetailDeleteAPIRequest) SetActivityId

func (r *TaobaoPromotionmiscCommonItemDetailDeleteAPIRequest) SetActivityId(_activityId int64) error

SetActivityId is ActivityId Setter 优惠活动ID

func (*TaobaoPromotionmiscCommonItemDetailDeleteAPIRequest) SetDetailId

SetDetailId is DetailId Setter 优惠详情ID

type TaobaoPromotionmiscCommonItemDetailDeleteAPIResponse

type TaobaoPromotionmiscCommonItemDetailDeleteAPIResponse struct {
	model.CommonResponse
	TaobaoPromotionmiscCommonItemDetailDeleteAPIResponseModel
}

TaobaoPromotionmiscCommonItemDetailDeleteAPIResponse 删除通用单品优惠详情 API返回值 taobao.promotionmisc.common.item.detail.delete

删除通用单品优惠详情。

type TaobaoPromotionmiscCommonItemDetailDeleteAPIResponseModel

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

TaobaoPromotionmiscCommonItemDetailDeleteAPIResponseModel is 删除通用单品优惠详情 成功返回结果

type TaobaoPromotionmiscCommonItemDetailListGetAPIRequest

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

TaobaoPromotionmiscCommonItemDetailListGetAPIRequest 查询通用单品优惠详情列表 API请求 taobao.promotionmisc.common.item.detail.list.get

查询通用单品优惠详情列表。

func NewTaobaoPromotionmiscCommonItemDetailListGetRequest

func NewTaobaoPromotionmiscCommonItemDetailListGetRequest() *TaobaoPromotionmiscCommonItemDetailListGetAPIRequest

NewTaobaoPromotionmiscCommonItemDetailListGetRequest 初始化TaobaoPromotionmiscCommonItemDetailListGetAPIRequest对象

func (TaobaoPromotionmiscCommonItemDetailListGetAPIRequest) GetActivityId

GetActivityId ActivityId Getter

func (TaobaoPromotionmiscCommonItemDetailListGetAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoPromotionmiscCommonItemDetailListGetAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoPromotionmiscCommonItemDetailListGetAPIRequest) GetPageNo

GetPageNo PageNo Getter

func (TaobaoPromotionmiscCommonItemDetailListGetAPIRequest) GetPageSize

GetPageSize PageSize Getter

func (*TaobaoPromotionmiscCommonItemDetailListGetAPIRequest) SetActivityId

SetActivityId is ActivityId Setter 优惠活动ID

func (*TaobaoPromotionmiscCommonItemDetailListGetAPIRequest) SetPageNo

SetPageNo is PageNo Setter 分页页码,页码从1开始

func (*TaobaoPromotionmiscCommonItemDetailListGetAPIRequest) SetPageSize

SetPageSize is PageSize Setter 分页大小,不能超过50

type TaobaoPromotionmiscCommonItemDetailListGetAPIResponse

type TaobaoPromotionmiscCommonItemDetailListGetAPIResponse struct {
	model.CommonResponse
	TaobaoPromotionmiscCommonItemDetailListGetAPIResponseModel
}

TaobaoPromotionmiscCommonItemDetailListGetAPIResponse 查询通用单品优惠详情列表 API返回值 taobao.promotionmisc.common.item.detail.list.get

查询通用单品优惠详情列表。

type TaobaoPromotionmiscCommonItemDetailListGetAPIResponseModel

type TaobaoPromotionmiscCommonItemDetailListGetAPIResponseModel struct {
	XMLName xml.Name `xml:"promotionmisc_common_item_detail_list_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 活动详情列表
	DetailList []CommonItemDetail `json:"detail_list,omitempty" xml:"detail_list>common_item_detail,omitempty"`
	// 数据总数量
	TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"`
	// 是否查询成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

TaobaoPromotionmiscCommonItemDetailListGetAPIResponseModel is 查询通用单品优惠详情列表 成功返回结果

type TaobaoPromotionmiscCommonItemDetailUpdateAPIRequest

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

TaobaoPromotionmiscCommonItemDetailUpdateAPIRequest 修改通用单品优惠详情 API请求 taobao.promotionmisc.common.item.detail.update

修改通用单品优惠详情。 1、该接口只修改活动下参与的商品的优惠信息,如需要增加、删除活动,请调用taobao.promotionmisc.common.item.activity.add和taobao.promotionmisc.common.item.activity.delete接口; 2、使用该接口时需要把未做修改的字段值也传入; 3、此接口受卖家最低折扣限制,如果优惠力度大于卖家设置的最低折扣则不能修改

func NewTaobaoPromotionmiscCommonItemDetailUpdateRequest

func NewTaobaoPromotionmiscCommonItemDetailUpdateRequest() *TaobaoPromotionmiscCommonItemDetailUpdateAPIRequest

NewTaobaoPromotionmiscCommonItemDetailUpdateRequest 初始化TaobaoPromotionmiscCommonItemDetailUpdateAPIRequest对象

func (TaobaoPromotionmiscCommonItemDetailUpdateAPIRequest) GetActivityId

GetActivityId ActivityId Getter

func (TaobaoPromotionmiscCommonItemDetailUpdateAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoPromotionmiscCommonItemDetailUpdateAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoPromotionmiscCommonItemDetailUpdateAPIRequest) GetDetailId

GetDetailId DetailId Getter

func (TaobaoPromotionmiscCommonItemDetailUpdateAPIRequest) GetItemId

GetItemId ItemId Getter

func (TaobaoPromotionmiscCommonItemDetailUpdateAPIRequest) GetPromotionType

GetPromotionType PromotionType Getter

func (TaobaoPromotionmiscCommonItemDetailUpdateAPIRequest) GetPromotionValue

GetPromotionValue PromotionValue Getter

func (*TaobaoPromotionmiscCommonItemDetailUpdateAPIRequest) SetActivityId

func (r *TaobaoPromotionmiscCommonItemDetailUpdateAPIRequest) SetActivityId(_activityId int64) error

SetActivityId is ActivityId Setter 优惠活动ID

func (*TaobaoPromotionmiscCommonItemDetailUpdateAPIRequest) SetDetailId

SetDetailId is DetailId Setter 优惠详情ID

func (*TaobaoPromotionmiscCommonItemDetailUpdateAPIRequest) SetItemId

SetItemId is ItemId Setter 商品ID

func (*TaobaoPromotionmiscCommonItemDetailUpdateAPIRequest) SetPromotionType

func (r *TaobaoPromotionmiscCommonItemDetailUpdateAPIRequest) SetPromotionType(_promotionType int64) error

SetPromotionType is PromotionType Setter 优惠类型,只有两种可选值:0-减钱;1-打折

func (*TaobaoPromotionmiscCommonItemDetailUpdateAPIRequest) SetPromotionValue

func (r *TaobaoPromotionmiscCommonItemDetailUpdateAPIRequest) SetPromotionValue(_promotionValue int64) error

SetPromotionValue is PromotionValue Setter 优惠力度,其值的解释方式由promotion_type定义:当为减钱时解释成减钱数量,如:900表示减9元;当为打折时解释成打折折扣,如:900表示打9折

type TaobaoPromotionmiscCommonItemDetailUpdateAPIResponse

type TaobaoPromotionmiscCommonItemDetailUpdateAPIResponse struct {
	model.CommonResponse
	TaobaoPromotionmiscCommonItemDetailUpdateAPIResponseModel
}

TaobaoPromotionmiscCommonItemDetailUpdateAPIResponse 修改通用单品优惠详情 API返回值 taobao.promotionmisc.common.item.detail.update

修改通用单品优惠详情。 1、该接口只修改活动下参与的商品的优惠信息,如需要增加、删除活动,请调用taobao.promotionmisc.common.item.activity.add和taobao.promotionmisc.common.item.activity.delete接口; 2、使用该接口时需要把未做修改的字段值也传入; 3、此接口受卖家最低折扣限制,如果优惠力度大于卖家设置的最低折扣则不能修改

type TaobaoPromotionmiscCommonItemDetailUpdateAPIResponseModel

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

TaobaoPromotionmiscCommonItemDetailUpdateAPIResponseModel is 修改通用单品优惠详情 成功返回结果

type TaobaoPromotionmiscItemActivityAddAPIRequest

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

TaobaoPromotionmiscItemActivityAddAPIRequest 创建无条件单品优惠活动 API请求 taobao.promotionmisc.item.activity.add

创建无条件单品优惠活动。1、可以选择是全店参加或者部分商品参加:participate_range:0表示全部参与; 1表示部分商品参与。<br/>2、如果是部分商品参加,则需要通过taobao.promotionmisc.activity.range.add接口来指定需要参加的商品。<br/>3、该接口创建的优惠受店铺最低折扣限制,如优惠不生效,请让卖家检查该优惠是否低于店铺的最低折扣设置。

func NewTaobaoPromotionmiscItemActivityAddRequest

func NewTaobaoPromotionmiscItemActivityAddRequest() *TaobaoPromotionmiscItemActivityAddAPIRequest

NewTaobaoPromotionmiscItemActivityAddRequest 初始化TaobaoPromotionmiscItemActivityAddAPIRequest对象

func (TaobaoPromotionmiscItemActivityAddAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoPromotionmiscItemActivityAddAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoPromotionmiscItemActivityAddAPIRequest) GetDecreaseAmount

GetDecreaseAmount DecreaseAmount Getter

func (TaobaoPromotionmiscItemActivityAddAPIRequest) GetDiscountRate

GetDiscountRate DiscountRate Getter

func (TaobaoPromotionmiscItemActivityAddAPIRequest) GetEndTime

GetEndTime EndTime Getter

func (TaobaoPromotionmiscItemActivityAddAPIRequest) GetIsDecreaseMoney

func (r TaobaoPromotionmiscItemActivityAddAPIRequest) GetIsDecreaseMoney() bool

GetIsDecreaseMoney IsDecreaseMoney Getter

func (TaobaoPromotionmiscItemActivityAddAPIRequest) GetIsDiscount

GetIsDiscount IsDiscount Getter

func (TaobaoPromotionmiscItemActivityAddAPIRequest) GetIsUserTag

GetIsUserTag IsUserTag Getter

func (TaobaoPromotionmiscItemActivityAddAPIRequest) GetName

GetName Name Getter

func (TaobaoPromotionmiscItemActivityAddAPIRequest) GetParticipateRange

func (r TaobaoPromotionmiscItemActivityAddAPIRequest) GetParticipateRange() int64

GetParticipateRange ParticipateRange Getter

func (TaobaoPromotionmiscItemActivityAddAPIRequest) GetStartTime

GetStartTime StartTime Getter

func (TaobaoPromotionmiscItemActivityAddAPIRequest) GetUserTag

GetUserTag UserTag Getter

func (*TaobaoPromotionmiscItemActivityAddAPIRequest) SetDecreaseAmount

func (r *TaobaoPromotionmiscItemActivityAddAPIRequest) SetDecreaseAmount(_decreaseAmount int64) error

SetDecreaseAmount is DecreaseAmount Setter 减多少钱。当is_decrease_money为true时,该值才有意义。注意:该值单位为分,即100表示1元。

func (*TaobaoPromotionmiscItemActivityAddAPIRequest) SetDiscountRate

func (r *TaobaoPromotionmiscItemActivityAddAPIRequest) SetDiscountRate(_discountRate int64) error

SetDiscountRate is DiscountRate Setter 折扣值。当is_discount为true时,该值才有意义。注意:800表示8折。

func (*TaobaoPromotionmiscItemActivityAddAPIRequest) SetEndTime

SetEndTime is EndTime Setter 活动结束时间。

func (*TaobaoPromotionmiscItemActivityAddAPIRequest) SetIsDecreaseMoney

func (r *TaobaoPromotionmiscItemActivityAddAPIRequest) SetIsDecreaseMoney(_isDecreaseMoney bool) error

SetIsDecreaseMoney is IsDecreaseMoney Setter 是否有减钱行为。

func (*TaobaoPromotionmiscItemActivityAddAPIRequest) SetIsDiscount

func (r *TaobaoPromotionmiscItemActivityAddAPIRequest) SetIsDiscount(_isDiscount bool) error

SetIsDiscount is IsDiscount Setter 是否有打折行为。

func (*TaobaoPromotionmiscItemActivityAddAPIRequest) SetIsUserTag

func (r *TaobaoPromotionmiscItemActivityAddAPIRequest) SetIsUserTag(_isUserTag bool) error

SetIsUserTag is IsUserTag Setter 是否指定用户标签。

func (*TaobaoPromotionmiscItemActivityAddAPIRequest) SetName

SetName is Name Setter 活动名称,超过5个汉字时,商品详情中显示的优惠名称为:卖家优惠。

func (*TaobaoPromotionmiscItemActivityAddAPIRequest) SetParticipateRange

func (r *TaobaoPromotionmiscItemActivityAddAPIRequest) SetParticipateRange(_participateRange int64) error

SetParticipateRange is ParticipateRange Setter 活动范围:0表示全部参与; 1表示部分商品参与。

func (*TaobaoPromotionmiscItemActivityAddAPIRequest) SetStartTime

func (r *TaobaoPromotionmiscItemActivityAddAPIRequest) SetStartTime(_startTime string) error

SetStartTime is StartTime Setter 活动开始时间。

func (*TaobaoPromotionmiscItemActivityAddAPIRequest) SetUserTag

SetUserTag is UserTag Setter 用户标签。当is_user_tag为true时,该值才有意义。

type TaobaoPromotionmiscItemActivityAddAPIResponse

type TaobaoPromotionmiscItemActivityAddAPIResponse struct {
	model.CommonResponse
	TaobaoPromotionmiscItemActivityAddAPIResponseModel
}

TaobaoPromotionmiscItemActivityAddAPIResponse 创建无条件单品优惠活动 API返回值 taobao.promotionmisc.item.activity.add

创建无条件单品优惠活动。1、可以选择是全店参加或者部分商品参加:participate_range:0表示全部参与; 1表示部分商品参与。<br/>2、如果是部分商品参加,则需要通过taobao.promotionmisc.activity.range.add接口来指定需要参加的商品。<br/>3、该接口创建的优惠受店铺最低折扣限制,如优惠不生效,请让卖家检查该优惠是否低于店铺的最低折扣设置。

type TaobaoPromotionmiscItemActivityAddAPIResponseModel

type TaobaoPromotionmiscItemActivityAddAPIResponseModel struct {
	XMLName xml.Name `xml:"promotionmisc_item_activity_add_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 活动id。
	ActivityId int64 `json:"activity_id,omitempty" xml:"activity_id,omitempty"`
	// 是否保存成功。
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

TaobaoPromotionmiscItemActivityAddAPIResponseModel is 创建无条件单品优惠活动 成功返回结果

type TaobaoPromotionmiscItemActivityDeleteAPIRequest

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

TaobaoPromotionmiscItemActivityDeleteAPIRequest 删除无条件单品优惠活动 API请求 taobao.promotionmisc.item.activity.delete

删除无条件单品优惠活动

func NewTaobaoPromotionmiscItemActivityDeleteRequest

func NewTaobaoPromotionmiscItemActivityDeleteRequest() *TaobaoPromotionmiscItemActivityDeleteAPIRequest

NewTaobaoPromotionmiscItemActivityDeleteRequest 初始化TaobaoPromotionmiscItemActivityDeleteAPIRequest对象

func (TaobaoPromotionmiscItemActivityDeleteAPIRequest) GetActivityId

GetActivityId ActivityId Getter

func (TaobaoPromotionmiscItemActivityDeleteAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoPromotionmiscItemActivityDeleteAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (*TaobaoPromotionmiscItemActivityDeleteAPIRequest) SetActivityId

func (r *TaobaoPromotionmiscItemActivityDeleteAPIRequest) SetActivityId(_activityId int64) error

SetActivityId is ActivityId Setter 活动id。

type TaobaoPromotionmiscItemActivityDeleteAPIResponse

type TaobaoPromotionmiscItemActivityDeleteAPIResponse struct {
	model.CommonResponse
	TaobaoPromotionmiscItemActivityDeleteAPIResponseModel
}

TaobaoPromotionmiscItemActivityDeleteAPIResponse 删除无条件单品优惠活动 API返回值 taobao.promotionmisc.item.activity.delete

删除无条件单品优惠活动

type TaobaoPromotionmiscItemActivityDeleteAPIResponseModel

type TaobaoPromotionmiscItemActivityDeleteAPIResponseModel struct {
	XMLName xml.Name `xml:"promotionmisc_item_activity_delete_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 是否成功删除活动。
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

TaobaoPromotionmiscItemActivityDeleteAPIResponseModel is 删除无条件单品优惠活动 成功返回结果

type TaobaoPromotionmiscItemActivityGetAPIRequest

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

TaobaoPromotionmiscItemActivityGetAPIRequest 查询无条件单品优惠活动 API请求 taobao.promotionmisc.item.activity.get

查询无条件单品优惠活动

func NewTaobaoPromotionmiscItemActivityGetRequest

func NewTaobaoPromotionmiscItemActivityGetRequest() *TaobaoPromotionmiscItemActivityGetAPIRequest

NewTaobaoPromotionmiscItemActivityGetRequest 初始化TaobaoPromotionmiscItemActivityGetAPIRequest对象

func (TaobaoPromotionmiscItemActivityGetAPIRequest) GetActivityId

GetActivityId ActivityId Getter

func (TaobaoPromotionmiscItemActivityGetAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoPromotionmiscItemActivityGetAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (*TaobaoPromotionmiscItemActivityGetAPIRequest) SetActivityId

func (r *TaobaoPromotionmiscItemActivityGetAPIRequest) SetActivityId(_activityId int64) error

SetActivityId is ActivityId Setter 活动id。

type TaobaoPromotionmiscItemActivityGetAPIResponse

type TaobaoPromotionmiscItemActivityGetAPIResponse struct {
	model.CommonResponse
	TaobaoPromotionmiscItemActivityGetAPIResponseModel
}

TaobaoPromotionmiscItemActivityGetAPIResponse 查询无条件单品优惠活动 API返回值 taobao.promotionmisc.item.activity.get

查询无条件单品优惠活动

type TaobaoPromotionmiscItemActivityGetAPIResponseModel

type TaobaoPromotionmiscItemActivityGetAPIResponseModel struct {
	XMLName xml.Name `xml:"promotionmisc_item_activity_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 单品优惠活动信息。
	ItemPromotion *ItemPromotion `json:"item_promotion,omitempty" xml:"item_promotion,omitempty"`
}

TaobaoPromotionmiscItemActivityGetAPIResponseModel is 查询无条件单品优惠活动 成功返回结果

type TaobaoPromotionmiscItemActivityListGetAPIRequest

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

TaobaoPromotionmiscItemActivityListGetAPIRequest 查询无条件单品优惠活动列表 API请求 taobao.promotionmisc.item.activity.list.get

查询无条件单品优惠活动列表

func NewTaobaoPromotionmiscItemActivityListGetRequest

func NewTaobaoPromotionmiscItemActivityListGetRequest() *TaobaoPromotionmiscItemActivityListGetAPIRequest

NewTaobaoPromotionmiscItemActivityListGetRequest 初始化TaobaoPromotionmiscItemActivityListGetAPIRequest对象

func (TaobaoPromotionmiscItemActivityListGetAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoPromotionmiscItemActivityListGetAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoPromotionmiscItemActivityListGetAPIRequest) GetPageNo

GetPageNo PageNo Getter

func (TaobaoPromotionmiscItemActivityListGetAPIRequest) GetPageSize

GetPageSize PageSize Getter

func (*TaobaoPromotionmiscItemActivityListGetAPIRequest) SetPageNo

SetPageNo is PageNo Setter 页码。

func (*TaobaoPromotionmiscItemActivityListGetAPIRequest) SetPageSize

SetPageSize is PageSize Setter 每页记录数,最大支持50 。

type TaobaoPromotionmiscItemActivityListGetAPIResponse

type TaobaoPromotionmiscItemActivityListGetAPIResponse struct {
	model.CommonResponse
	TaobaoPromotionmiscItemActivityListGetAPIResponseModel
}

TaobaoPromotionmiscItemActivityListGetAPIResponse 查询无条件单品优惠活动列表 API返回值 taobao.promotionmisc.item.activity.list.get

查询无条件单品优惠活动列表

type TaobaoPromotionmiscItemActivityListGetAPIResponseModel

type TaobaoPromotionmiscItemActivityListGetAPIResponseModel struct {
	XMLName xml.Name `xml:"promotionmisc_item_activity_list_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 只包含活动的主要信息,如activity_id,name,description,start_time,end_time,participate_range。优惠的其他详细信息,请通过taobao.promotionmisc.item.activity.get获取。
	ItemPromotionList []ItemPromotion `json:"item_promotion_list,omitempty" xml:"item_promotion_list>item_promotion,omitempty"`
	// 记录总条数。
	TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"`
}

TaobaoPromotionmiscItemActivityListGetAPIResponseModel is 查询无条件单品优惠活动列表 成功返回结果

type TaobaoPromotionmiscItemActivityUpdateAPIRequest

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

TaobaoPromotionmiscItemActivityUpdateAPIRequest 修改无条件单品优惠活动 API请求 taobao.promotionmisc.item.activity.update

修改无条件单品优惠活动。<br/>1、该接口只修改活动基本信息和打折信息,如需要增加、删除参与该活动的商品,请调用taobao.promotionmisc.activity.range.add和taobao.promotionmisc.activity.range.remove接口。 <br/>2、使用该接口时需要同时把未做修改的字段值也传入。 <br/><br/>3、该接口受店铺最低折扣限制,如优惠不生效,请让卖家检查该优惠是否低于店铺的最低折扣设置。

func NewTaobaoPromotionmiscItemActivityUpdateRequest

func NewTaobaoPromotionmiscItemActivityUpdateRequest() *TaobaoPromotionmiscItemActivityUpdateAPIRequest

NewTaobaoPromotionmiscItemActivityUpdateRequest 初始化TaobaoPromotionmiscItemActivityUpdateAPIRequest对象

func (TaobaoPromotionmiscItemActivityUpdateAPIRequest) GetActivityId

GetActivityId ActivityId Getter

func (TaobaoPromotionmiscItemActivityUpdateAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoPromotionmiscItemActivityUpdateAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoPromotionmiscItemActivityUpdateAPIRequest) GetDecreaseAmount

GetDecreaseAmount DecreaseAmount Getter

func (TaobaoPromotionmiscItemActivityUpdateAPIRequest) GetDiscountRate

GetDiscountRate DiscountRate Getter

func (TaobaoPromotionmiscItemActivityUpdateAPIRequest) GetEndTime

GetEndTime EndTime Getter

func (TaobaoPromotionmiscItemActivityUpdateAPIRequest) GetIsDecreaseMoney

GetIsDecreaseMoney IsDecreaseMoney Getter

func (TaobaoPromotionmiscItemActivityUpdateAPIRequest) GetIsDiscount

GetIsDiscount IsDiscount Getter

func (TaobaoPromotionmiscItemActivityUpdateAPIRequest) GetIsUserTag

GetIsUserTag IsUserTag Getter

func (TaobaoPromotionmiscItemActivityUpdateAPIRequest) GetName

GetName Name Getter

func (TaobaoPromotionmiscItemActivityUpdateAPIRequest) GetParticipateRange

GetParticipateRange ParticipateRange Getter

func (TaobaoPromotionmiscItemActivityUpdateAPIRequest) GetStartTime

GetStartTime StartTime Getter

func (TaobaoPromotionmiscItemActivityUpdateAPIRequest) GetUserTag

GetUserTag UserTag Getter

func (*TaobaoPromotionmiscItemActivityUpdateAPIRequest) SetActivityId

func (r *TaobaoPromotionmiscItemActivityUpdateAPIRequest) SetActivityId(_activityId int64) error

SetActivityId is ActivityId Setter 活动id。

func (*TaobaoPromotionmiscItemActivityUpdateAPIRequest) SetDecreaseAmount

func (r *TaobaoPromotionmiscItemActivityUpdateAPIRequest) SetDecreaseAmount(_decreaseAmount int64) error

SetDecreaseAmount is DecreaseAmount Setter 减多少钱。当is_decrease_money为true时,该值才有意义。注意:该值单位为分,即100表示1元。

func (*TaobaoPromotionmiscItemActivityUpdateAPIRequest) SetDiscountRate

func (r *TaobaoPromotionmiscItemActivityUpdateAPIRequest) SetDiscountRate(_discountRate int64) error

SetDiscountRate is DiscountRate Setter 折扣值。当is_discount为true时,该值才有意义。注意:800表示8折。

func (*TaobaoPromotionmiscItemActivityUpdateAPIRequest) SetEndTime

SetEndTime is EndTime Setter 活动结束时间。

func (*TaobaoPromotionmiscItemActivityUpdateAPIRequest) SetIsDecreaseMoney

func (r *TaobaoPromotionmiscItemActivityUpdateAPIRequest) SetIsDecreaseMoney(_isDecreaseMoney bool) error

SetIsDecreaseMoney is IsDecreaseMoney Setter 是否有减钱行为。

func (*TaobaoPromotionmiscItemActivityUpdateAPIRequest) SetIsDiscount

func (r *TaobaoPromotionmiscItemActivityUpdateAPIRequest) SetIsDiscount(_isDiscount bool) error

SetIsDiscount is IsDiscount Setter 是否有打折行为。

func (*TaobaoPromotionmiscItemActivityUpdateAPIRequest) SetIsUserTag

func (r *TaobaoPromotionmiscItemActivityUpdateAPIRequest) SetIsUserTag(_isUserTag bool) error

SetIsUserTag is IsUserTag Setter 是否指定用户标签。

func (*TaobaoPromotionmiscItemActivityUpdateAPIRequest) SetName

SetName is Name Setter 活动名称。

func (*TaobaoPromotionmiscItemActivityUpdateAPIRequest) SetParticipateRange

func (r *TaobaoPromotionmiscItemActivityUpdateAPIRequest) SetParticipateRange(_participateRange int64) error

SetParticipateRange is ParticipateRange Setter 活动范围:0表示全部参与; 1表示部分商品参与。

func (*TaobaoPromotionmiscItemActivityUpdateAPIRequest) SetStartTime

func (r *TaobaoPromotionmiscItemActivityUpdateAPIRequest) SetStartTime(_startTime string) error

SetStartTime is StartTime Setter 活动开始时间。

func (*TaobaoPromotionmiscItemActivityUpdateAPIRequest) SetUserTag

SetUserTag is UserTag Setter 用户标签。当is_user_tag为true时,该值才有意义。

type TaobaoPromotionmiscItemActivityUpdateAPIResponse

type TaobaoPromotionmiscItemActivityUpdateAPIResponse struct {
	model.CommonResponse
	TaobaoPromotionmiscItemActivityUpdateAPIResponseModel
}

TaobaoPromotionmiscItemActivityUpdateAPIResponse 修改无条件单品优惠活动 API返回值 taobao.promotionmisc.item.activity.update

修改无条件单品优惠活动。<br/>1、该接口只修改活动基本信息和打折信息,如需要增加、删除参与该活动的商品,请调用taobao.promotionmisc.activity.range.add和taobao.promotionmisc.activity.range.remove接口。 <br/>2、使用该接口时需要同时把未做修改的字段值也传入。 <br/><br/>3、该接口受店铺最低折扣限制,如优惠不生效,请让卖家检查该优惠是否低于店铺的最低折扣设置。

type TaobaoPromotionmiscItemActivityUpdateAPIResponseModel

type TaobaoPromotionmiscItemActivityUpdateAPIResponseModel struct {
	XMLName xml.Name `xml:"promotionmisc_item_activity_update_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 修改是否成功。
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

TaobaoPromotionmiscItemActivityUpdateAPIResponseModel is 修改无条件单品优惠活动 成功返回结果

type TaobaoPromotionmiscMjsActivityAddAPIRequest

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

TaobaoPromotionmiscMjsActivityAddAPIRequest 创建满就送活动 API请求 taobao.promotionmisc.mjs.activity.add

创建满就送活动。<br/>1、可以选择是全店参加或者部分商品参加:participate_range:0表示全部参与; 1表示部分商品参与。 2、如果是部分商品参加,则需要通过taobao.promotionmisc.activity.range.add接口来指定需要参加的商品。 3、该接口创建的优惠受店铺最低折扣限制,如优惠不生效,请让卖家检查该优惠是否低于店铺的最低折扣设置。

func NewTaobaoPromotionmiscMjsActivityAddRequest

func NewTaobaoPromotionmiscMjsActivityAddRequest() *TaobaoPromotionmiscMjsActivityAddAPIRequest

NewTaobaoPromotionmiscMjsActivityAddRequest 初始化TaobaoPromotionmiscMjsActivityAddAPIRequest对象

func (TaobaoPromotionmiscMjsActivityAddAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoPromotionmiscMjsActivityAddAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoPromotionmiscMjsActivityAddAPIRequest) GetDecreaseAmount

func (r TaobaoPromotionmiscMjsActivityAddAPIRequest) GetDecreaseAmount() int64

GetDecreaseAmount DecreaseAmount Getter

func (TaobaoPromotionmiscMjsActivityAddAPIRequest) GetDiscountRate

GetDiscountRate DiscountRate Getter

func (TaobaoPromotionmiscMjsActivityAddAPIRequest) GetEndTime

GetEndTime EndTime Getter

func (TaobaoPromotionmiscMjsActivityAddAPIRequest) GetExcludeArea

GetExcludeArea ExcludeArea Getter

func (TaobaoPromotionmiscMjsActivityAddAPIRequest) GetGiftId

GetGiftId GiftId Getter

func (TaobaoPromotionmiscMjsActivityAddAPIRequest) GetGiftName

GetGiftName GiftName Getter

func (TaobaoPromotionmiscMjsActivityAddAPIRequest) GetGiftUrl

GetGiftUrl GiftUrl Getter

func (TaobaoPromotionmiscMjsActivityAddAPIRequest) GetIsAmountMultiple

func (r TaobaoPromotionmiscMjsActivityAddAPIRequest) GetIsAmountMultiple() bool

GetIsAmountMultiple IsAmountMultiple Getter

func (TaobaoPromotionmiscMjsActivityAddAPIRequest) GetIsAmountOver

GetIsAmountOver IsAmountOver Getter

func (TaobaoPromotionmiscMjsActivityAddAPIRequest) GetIsDecreaseMoney

func (r TaobaoPromotionmiscMjsActivityAddAPIRequest) GetIsDecreaseMoney() bool

GetIsDecreaseMoney IsDecreaseMoney Getter

func (TaobaoPromotionmiscMjsActivityAddAPIRequest) GetIsDiscount

GetIsDiscount IsDiscount Getter

func (TaobaoPromotionmiscMjsActivityAddAPIRequest) GetIsFreePost

GetIsFreePost IsFreePost Getter

func (TaobaoPromotionmiscMjsActivityAddAPIRequest) GetIsItemCountOver

func (r TaobaoPromotionmiscMjsActivityAddAPIRequest) GetIsItemCountOver() bool

GetIsItemCountOver IsItemCountOver Getter

func (TaobaoPromotionmiscMjsActivityAddAPIRequest) GetIsItemMultiple

func (r TaobaoPromotionmiscMjsActivityAddAPIRequest) GetIsItemMultiple() bool

GetIsItemMultiple IsItemMultiple Getter

func (TaobaoPromotionmiscMjsActivityAddAPIRequest) GetIsSendGift

GetIsSendGift IsSendGift Getter

func (TaobaoPromotionmiscMjsActivityAddAPIRequest) GetIsShopMember

GetIsShopMember IsShopMember Getter

func (TaobaoPromotionmiscMjsActivityAddAPIRequest) GetIsUserTag

GetIsUserTag IsUserTag Getter

func (TaobaoPromotionmiscMjsActivityAddAPIRequest) GetItemCount

GetItemCount ItemCount Getter

func (TaobaoPromotionmiscMjsActivityAddAPIRequest) GetName

GetName Name Getter

func (TaobaoPromotionmiscMjsActivityAddAPIRequest) GetParticipateRange

func (r TaobaoPromotionmiscMjsActivityAddAPIRequest) GetParticipateRange() int64

GetParticipateRange ParticipateRange Getter

func (TaobaoPromotionmiscMjsActivityAddAPIRequest) GetShopMemberLevel

func (r TaobaoPromotionmiscMjsActivityAddAPIRequest) GetShopMemberLevel() int64

GetShopMemberLevel ShopMemberLevel Getter

func (TaobaoPromotionmiscMjsActivityAddAPIRequest) GetStartTime

GetStartTime StartTime Getter

func (TaobaoPromotionmiscMjsActivityAddAPIRequest) GetTotalPrice

GetTotalPrice TotalPrice Getter

func (TaobaoPromotionmiscMjsActivityAddAPIRequest) GetType

GetType Type Getter

func (TaobaoPromotionmiscMjsActivityAddAPIRequest) GetUserTag

GetUserTag UserTag Getter

func (*TaobaoPromotionmiscMjsActivityAddAPIRequest) SetDecreaseAmount

func (r *TaobaoPromotionmiscMjsActivityAddAPIRequest) SetDecreaseAmount(_decreaseAmount int64) error

SetDecreaseAmount is DecreaseAmount Setter 减多少钱。当is_decrease_money为true时,该值才有意义。注意:该值单位为分,即100表示1元。

func (*TaobaoPromotionmiscMjsActivityAddAPIRequest) SetDiscountRate

func (r *TaobaoPromotionmiscMjsActivityAddAPIRequest) SetDiscountRate(_discountRate int64) error

SetDiscountRate is DiscountRate Setter 折扣值。当is_discount为true时,该值才有意义。注意:800表示8折。

func (*TaobaoPromotionmiscMjsActivityAddAPIRequest) SetEndTime

SetEndTime is EndTime Setter 活动结束时间。

func (*TaobaoPromotionmiscMjsActivityAddAPIRequest) SetExcludeArea

func (r *TaobaoPromotionmiscMjsActivityAddAPIRequest) SetExcludeArea(_excludeArea string) error

SetExcludeArea is ExcludeArea Setter 免邮的排除地区,即,除指定地区外,其他地区包邮。当is_free_post为true时,该值才有意义。代码使用*链接,代码为行政区划代码。

func (*TaobaoPromotionmiscMjsActivityAddAPIRequest) SetGiftId

SetGiftId is GiftId Setter 礼品id,当is_send_gift为true时,该值才有意义。 1)只有填写真实的淘宝商品id时,才能生成物流单,并且在确定订单的页面上可以点击该商品名称跳转到商品详情页面。2)当礼物为实物商品时(有宝贝id),礼物必须为上架商品,不能为虚拟商品,不能为拍卖商品,不能有sku,不符合条件的,不做为礼物。

func (*TaobaoPromotionmiscMjsActivityAddAPIRequest) SetGiftName

func (r *TaobaoPromotionmiscMjsActivityAddAPIRequest) SetGiftName(_giftName string) error

SetGiftName is GiftName Setter 礼品名称。当is_send_gift为true时,该值才有意义。

func (*TaobaoPromotionmiscMjsActivityAddAPIRequest) SetGiftUrl

SetGiftUrl is GiftUrl Setter 商品详情的url,当is_send_gift为true时,该值才有效。

func (*TaobaoPromotionmiscMjsActivityAddAPIRequest) SetIsAmountMultiple

func (r *TaobaoPromotionmiscMjsActivityAddAPIRequest) SetIsAmountMultiple(_isAmountMultiple bool) error

SetIsAmountMultiple is IsAmountMultiple Setter 满元是否上不封顶。当is_amount_over为true时,该值才有意义。当该值为true时,表示满元上不封顶,例如满100元减10元,当满200时,则减20元。。。默认为false。

func (*TaobaoPromotionmiscMjsActivityAddAPIRequest) SetIsAmountOver

func (r *TaobaoPromotionmiscMjsActivityAddAPIRequest) SetIsAmountOver(_isAmountOver bool) error

SetIsAmountOver is IsAmountOver Setter 是否有满元条件。

func (*TaobaoPromotionmiscMjsActivityAddAPIRequest) SetIsDecreaseMoney

func (r *TaobaoPromotionmiscMjsActivityAddAPIRequest) SetIsDecreaseMoney(_isDecreaseMoney bool) error

SetIsDecreaseMoney is IsDecreaseMoney Setter 是否有减钱行为。

func (*TaobaoPromotionmiscMjsActivityAddAPIRequest) SetIsDiscount

func (r *TaobaoPromotionmiscMjsActivityAddAPIRequest) SetIsDiscount(_isDiscount bool) error

SetIsDiscount is IsDiscount Setter 是否有打折行为。

func (*TaobaoPromotionmiscMjsActivityAddAPIRequest) SetIsFreePost

func (r *TaobaoPromotionmiscMjsActivityAddAPIRequest) SetIsFreePost(_isFreePost bool) error

SetIsFreePost is IsFreePost Setter 是否有免邮行为。

func (*TaobaoPromotionmiscMjsActivityAddAPIRequest) SetIsItemCountOver

func (r *TaobaoPromotionmiscMjsActivityAddAPIRequest) SetIsItemCountOver(_isItemCountOver bool) error

SetIsItemCountOver is IsItemCountOver Setter 是否有满件条件。

func (*TaobaoPromotionmiscMjsActivityAddAPIRequest) SetIsItemMultiple

func (r *TaobaoPromotionmiscMjsActivityAddAPIRequest) SetIsItemMultiple(_isItemMultiple bool) error

SetIsItemMultiple is IsItemMultiple Setter 满件是否上不封顶。当is_amount_multiple为true时,该值才有意义。当该值为true时,表示满件上不封顶,例如满10件减2元,当满20件时,则减4元。。。 默认为false。

func (*TaobaoPromotionmiscMjsActivityAddAPIRequest) SetIsSendGift

func (r *TaobaoPromotionmiscMjsActivityAddAPIRequest) SetIsSendGift(_isSendGift bool) error

SetIsSendGift is IsSendGift Setter 是否有送礼品行为。

func (*TaobaoPromotionmiscMjsActivityAddAPIRequest) SetIsShopMember

func (r *TaobaoPromotionmiscMjsActivityAddAPIRequest) SetIsShopMember(_isShopMember bool) error

SetIsShopMember is IsShopMember Setter 是否有店铺会员等级条件。

func (*TaobaoPromotionmiscMjsActivityAddAPIRequest) SetIsUserTag

func (r *TaobaoPromotionmiscMjsActivityAddAPIRequest) SetIsUserTag(_isUserTag bool) error

SetIsUserTag is IsUserTag Setter 是否指定用户标签。

func (*TaobaoPromotionmiscMjsActivityAddAPIRequest) SetItemCount

func (r *TaobaoPromotionmiscMjsActivityAddAPIRequest) SetItemCount(_itemCount int64) error

SetItemCount is ItemCount Setter 满多少件。当is_item_count_over为true时,该值才有意义。

func (*TaobaoPromotionmiscMjsActivityAddAPIRequest) SetName

SetName is Name Setter 活动名称。

func (*TaobaoPromotionmiscMjsActivityAddAPIRequest) SetParticipateRange

func (r *TaobaoPromotionmiscMjsActivityAddAPIRequest) SetParticipateRange(_participateRange int64) error

SetParticipateRange is ParticipateRange Setter 活动范围:0表示全部参与; 1表示部分商品参与。

func (*TaobaoPromotionmiscMjsActivityAddAPIRequest) SetShopMemberLevel

func (r *TaobaoPromotionmiscMjsActivityAddAPIRequest) SetShopMemberLevel(_shopMemberLevel int64) error

SetShopMemberLevel is ShopMemberLevel Setter 店铺会员等级,当is_shop_member为true时,该值才有意义。0:店铺客户;1:普通客户;2:高级会员;3:VIP会员; 4:至尊VIP会员。

func (*TaobaoPromotionmiscMjsActivityAddAPIRequest) SetStartTime

func (r *TaobaoPromotionmiscMjsActivityAddAPIRequest) SetStartTime(_startTime string) error

SetStartTime is StartTime Setter 活动开始时间。

func (*TaobaoPromotionmiscMjsActivityAddAPIRequest) SetTotalPrice

func (r *TaobaoPromotionmiscMjsActivityAddAPIRequest) SetTotalPrice(_totalPrice int64) error

SetTotalPrice is TotalPrice Setter 满多少元。当is_amount_over为true时,该才字段有意义。注意:单位是分,即10000表示100元。

func (*TaobaoPromotionmiscMjsActivityAddAPIRequest) SetType

SetType is Type Setter 活动类型: 1表示商品级别的活动;2表示店铺级别的活动

func (*TaobaoPromotionmiscMjsActivityAddAPIRequest) SetUserTag

SetUserTag is UserTag Setter 用户标签。当is_user_tag为true时,该值才有意义。

type TaobaoPromotionmiscMjsActivityAddAPIResponse

type TaobaoPromotionmiscMjsActivityAddAPIResponse struct {
	model.CommonResponse
	TaobaoPromotionmiscMjsActivityAddAPIResponseModel
}

TaobaoPromotionmiscMjsActivityAddAPIResponse 创建满就送活动 API返回值 taobao.promotionmisc.mjs.activity.add

创建满就送活动。<br/>1、可以选择是全店参加或者部分商品参加:participate_range:0表示全部参与; 1表示部分商品参与。 2、如果是部分商品参加,则需要通过taobao.promotionmisc.activity.range.add接口来指定需要参加的商品。 3、该接口创建的优惠受店铺最低折扣限制,如优惠不生效,请让卖家检查该优惠是否低于店铺的最低折扣设置。

type TaobaoPromotionmiscMjsActivityAddAPIResponseModel

type TaobaoPromotionmiscMjsActivityAddAPIResponseModel struct {
	XMLName xml.Name `xml:"promotionmisc_mjs_activity_add_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 活动id。
	ActivityId int64 `json:"activity_id,omitempty" xml:"activity_id,omitempty"`
	// 是否保存成功。
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

TaobaoPromotionmiscMjsActivityAddAPIResponseModel is 创建满就送活动 成功返回结果

type TaobaoPromotionmiscMjsActivityDeleteAPIRequest

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

TaobaoPromotionmiscMjsActivityDeleteAPIRequest 删除满就送活动 API请求 taobao.promotionmisc.mjs.activity.delete

删除满就送活动

func NewTaobaoPromotionmiscMjsActivityDeleteRequest

func NewTaobaoPromotionmiscMjsActivityDeleteRequest() *TaobaoPromotionmiscMjsActivityDeleteAPIRequest

NewTaobaoPromotionmiscMjsActivityDeleteRequest 初始化TaobaoPromotionmiscMjsActivityDeleteAPIRequest对象

func (TaobaoPromotionmiscMjsActivityDeleteAPIRequest) GetActivityId

GetActivityId ActivityId Getter

func (TaobaoPromotionmiscMjsActivityDeleteAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoPromotionmiscMjsActivityDeleteAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (*TaobaoPromotionmiscMjsActivityDeleteAPIRequest) SetActivityId

func (r *TaobaoPromotionmiscMjsActivityDeleteAPIRequest) SetActivityId(_activityId int64) error

SetActivityId is ActivityId Setter 活动id。

type TaobaoPromotionmiscMjsActivityDeleteAPIResponse

type TaobaoPromotionmiscMjsActivityDeleteAPIResponse struct {
	model.CommonResponse
	TaobaoPromotionmiscMjsActivityDeleteAPIResponseModel
}

TaobaoPromotionmiscMjsActivityDeleteAPIResponse 删除满就送活动 API返回值 taobao.promotionmisc.mjs.activity.delete

删除满就送活动

type TaobaoPromotionmiscMjsActivityDeleteAPIResponseModel

type TaobaoPromotionmiscMjsActivityDeleteAPIResponseModel struct {
	XMLName xml.Name `xml:"promotionmisc_mjs_activity_delete_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 是否成功删除活动。
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

TaobaoPromotionmiscMjsActivityDeleteAPIResponseModel is 删除满就送活动 成功返回结果

type TaobaoPromotionmiscMjsActivityGetAPIRequest

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

TaobaoPromotionmiscMjsActivityGetAPIRequest 查询满就送活动 API请求 taobao.promotionmisc.mjs.activity.get

查询满就送活动

func NewTaobaoPromotionmiscMjsActivityGetRequest

func NewTaobaoPromotionmiscMjsActivityGetRequest() *TaobaoPromotionmiscMjsActivityGetAPIRequest

NewTaobaoPromotionmiscMjsActivityGetRequest 初始化TaobaoPromotionmiscMjsActivityGetAPIRequest对象

func (TaobaoPromotionmiscMjsActivityGetAPIRequest) GetActivityId

GetActivityId ActivityId Getter

func (TaobaoPromotionmiscMjsActivityGetAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoPromotionmiscMjsActivityGetAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (*TaobaoPromotionmiscMjsActivityGetAPIRequest) SetActivityId

func (r *TaobaoPromotionmiscMjsActivityGetAPIRequest) SetActivityId(_activityId int64) error

SetActivityId is ActivityId Setter 活动id。

type TaobaoPromotionmiscMjsActivityGetAPIResponse

type TaobaoPromotionmiscMjsActivityGetAPIResponse struct {
	model.CommonResponse
	TaobaoPromotionmiscMjsActivityGetAPIResponseModel
}

TaobaoPromotionmiscMjsActivityGetAPIResponse 查询满就送活动 API返回值 taobao.promotionmisc.mjs.activity.get

查询满就送活动

type TaobaoPromotionmiscMjsActivityGetAPIResponseModel

type TaobaoPromotionmiscMjsActivityGetAPIResponseModel struct {
	XMLName xml.Name `xml:"promotionmisc_mjs_activity_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 满就送活动信息。
	MjsPromotion *MjsPromotion `json:"mjs_promotion,omitempty" xml:"mjs_promotion,omitempty"`
}

TaobaoPromotionmiscMjsActivityGetAPIResponseModel is 查询满就送活动 成功返回结果

type TaobaoPromotionmiscMjsActivityListGetAPIRequest

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

TaobaoPromotionmiscMjsActivityListGetAPIRequest 查询满就送活动列表 API请求 taobao.promotionmisc.mjs.activity.list.get

查询满就送活动列表。注意,该接口的返回值中,只包含活动的主要信息,如activity_id,name,description,start_time,end_time,type,participate_range。优惠的详细信息,请通过taobao.promotionmisc.mjs.activity.get获取。

func NewTaobaoPromotionmiscMjsActivityListGetRequest

func NewTaobaoPromotionmiscMjsActivityListGetRequest() *TaobaoPromotionmiscMjsActivityListGetAPIRequest

NewTaobaoPromotionmiscMjsActivityListGetRequest 初始化TaobaoPromotionmiscMjsActivityListGetAPIRequest对象

func (TaobaoPromotionmiscMjsActivityListGetAPIRequest) GetActivityType

GetActivityType ActivityType Getter

func (TaobaoPromotionmiscMjsActivityListGetAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoPromotionmiscMjsActivityListGetAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoPromotionmiscMjsActivityListGetAPIRequest) GetPageNo

GetPageNo PageNo Getter

func (TaobaoPromotionmiscMjsActivityListGetAPIRequest) GetPageSize

GetPageSize PageSize Getter

func (*TaobaoPromotionmiscMjsActivityListGetAPIRequest) SetActivityType

func (r *TaobaoPromotionmiscMjsActivityListGetAPIRequest) SetActivityType(_activityType int64) error

SetActivityType is ActivityType Setter 活动类型: 1表示商品级别的活动;2表示店铺级别的活动。

func (*TaobaoPromotionmiscMjsActivityListGetAPIRequest) SetPageNo

SetPageNo is PageNo Setter 页码。

func (*TaobaoPromotionmiscMjsActivityListGetAPIRequest) SetPageSize

SetPageSize is PageSize Setter 每页记录数,最大支持50 。

type TaobaoPromotionmiscMjsActivityListGetAPIResponse

type TaobaoPromotionmiscMjsActivityListGetAPIResponse struct {
	model.CommonResponse
	TaobaoPromotionmiscMjsActivityListGetAPIResponseModel
}

TaobaoPromotionmiscMjsActivityListGetAPIResponse 查询满就送活动列表 API返回值 taobao.promotionmisc.mjs.activity.list.get

查询满就送活动列表。注意,该接口的返回值中,只包含活动的主要信息,如activity_id,name,description,start_time,end_time,type,participate_range。优惠的详细信息,请通过taobao.promotionmisc.mjs.activity.get获取。

type TaobaoPromotionmiscMjsActivityListGetAPIResponseModel

type TaobaoPromotionmiscMjsActivityListGetAPIResponseModel struct {
	XMLName xml.Name `xml:"promotionmisc_mjs_activity_list_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 只包含活动的主要信息,如activity_id,aame,description,start_time,end_time,type,participate_range。优惠的其他详细信息,请通过taobao.promotionmisc.mjs.activity.get获取。
	MjsPromotionList []MjsPromotion `json:"mjs_promotion_list,omitempty" xml:"mjs_promotion_list>mjs_promotion,omitempty"`
	// 记录总条数。
	TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"`
}

TaobaoPromotionmiscMjsActivityListGetAPIResponseModel is 查询满就送活动列表 成功返回结果

type TaobaoPromotionmiscMjsActivityUpdateAPIRequest

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

TaobaoPromotionmiscMjsActivityUpdateAPIRequest 修改满就送活动 API请求 taobao.promotionmisc.mjs.activity.update

修改满就送活动。 <br/>1、该接口只修改活动基本信息和打折信息,如需要增加、删除参与该活动的商品,请调用taobao.promotionmisc.activity.range.add和taobao.promotionmisc.activity.range.remove接口。 <br/>2、使用该接口时需要同时把未做修改的字段值也传入。 <br/>3、该接口创建的优惠受店铺最低折扣限制,如优惠不生效,请让卖家检查该优惠是否低于店铺的最低折扣设置。

func NewTaobaoPromotionmiscMjsActivityUpdateRequest

func NewTaobaoPromotionmiscMjsActivityUpdateRequest() *TaobaoPromotionmiscMjsActivityUpdateAPIRequest

NewTaobaoPromotionmiscMjsActivityUpdateRequest 初始化TaobaoPromotionmiscMjsActivityUpdateAPIRequest对象

func (TaobaoPromotionmiscMjsActivityUpdateAPIRequest) GetActivityId

GetActivityId ActivityId Getter

func (TaobaoPromotionmiscMjsActivityUpdateAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoPromotionmiscMjsActivityUpdateAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoPromotionmiscMjsActivityUpdateAPIRequest) GetDecreaseAmount

GetDecreaseAmount DecreaseAmount Getter

func (TaobaoPromotionmiscMjsActivityUpdateAPIRequest) GetDiscountRate

GetDiscountRate DiscountRate Getter

func (TaobaoPromotionmiscMjsActivityUpdateAPIRequest) GetEndTime

GetEndTime EndTime Getter

func (TaobaoPromotionmiscMjsActivityUpdateAPIRequest) GetExcludeArea

GetExcludeArea ExcludeArea Getter

func (TaobaoPromotionmiscMjsActivityUpdateAPIRequest) GetGiftId

GetGiftId GiftId Getter

func (TaobaoPromotionmiscMjsActivityUpdateAPIRequest) GetGiftName

GetGiftName GiftName Getter

func (TaobaoPromotionmiscMjsActivityUpdateAPIRequest) GetGiftUrl

GetGiftUrl GiftUrl Getter

func (TaobaoPromotionmiscMjsActivityUpdateAPIRequest) GetIsAmountMultiple

func (r TaobaoPromotionmiscMjsActivityUpdateAPIRequest) GetIsAmountMultiple() bool

GetIsAmountMultiple IsAmountMultiple Getter

func (TaobaoPromotionmiscMjsActivityUpdateAPIRequest) GetIsAmountOver

GetIsAmountOver IsAmountOver Getter

func (TaobaoPromotionmiscMjsActivityUpdateAPIRequest) GetIsDecreaseMoney

GetIsDecreaseMoney IsDecreaseMoney Getter

func (TaobaoPromotionmiscMjsActivityUpdateAPIRequest) GetIsDiscount

GetIsDiscount IsDiscount Getter

func (TaobaoPromotionmiscMjsActivityUpdateAPIRequest) GetIsFreePost

GetIsFreePost IsFreePost Getter

func (TaobaoPromotionmiscMjsActivityUpdateAPIRequest) GetIsItemCountOver

GetIsItemCountOver IsItemCountOver Getter

func (TaobaoPromotionmiscMjsActivityUpdateAPIRequest) GetIsItemMultiple

GetIsItemMultiple IsItemMultiple Getter

func (TaobaoPromotionmiscMjsActivityUpdateAPIRequest) GetIsSendGift

GetIsSendGift IsSendGift Getter

func (TaobaoPromotionmiscMjsActivityUpdateAPIRequest) GetIsShopMember

GetIsShopMember IsShopMember Getter

func (TaobaoPromotionmiscMjsActivityUpdateAPIRequest) GetIsUserTag

GetIsUserTag IsUserTag Getter

func (TaobaoPromotionmiscMjsActivityUpdateAPIRequest) GetItemCount

GetItemCount ItemCount Getter

func (TaobaoPromotionmiscMjsActivityUpdateAPIRequest) GetName

GetName Name Getter

func (TaobaoPromotionmiscMjsActivityUpdateAPIRequest) GetParticipateRange

func (r TaobaoPromotionmiscMjsActivityUpdateAPIRequest) GetParticipateRange() int64

GetParticipateRange ParticipateRange Getter

func (TaobaoPromotionmiscMjsActivityUpdateAPIRequest) GetShopMemberLevel

GetShopMemberLevel ShopMemberLevel Getter

func (TaobaoPromotionmiscMjsActivityUpdateAPIRequest) GetStartTime

GetStartTime StartTime Getter

func (TaobaoPromotionmiscMjsActivityUpdateAPIRequest) GetTotalPrice

GetTotalPrice TotalPrice Getter

func (TaobaoPromotionmiscMjsActivityUpdateAPIRequest) GetUserTag

GetUserTag UserTag Getter

func (*TaobaoPromotionmiscMjsActivityUpdateAPIRequest) SetActivityId

func (r *TaobaoPromotionmiscMjsActivityUpdateAPIRequest) SetActivityId(_activityId int64) error

SetActivityId is ActivityId Setter 活动id。

func (*TaobaoPromotionmiscMjsActivityUpdateAPIRequest) SetDecreaseAmount

func (r *TaobaoPromotionmiscMjsActivityUpdateAPIRequest) SetDecreaseAmount(_decreaseAmount int64) error

SetDecreaseAmount is DecreaseAmount Setter 减多少钱。当is_decrease_money为true时,该值才有意义。注意:该值单位为分,即100表示1元。

func (*TaobaoPromotionmiscMjsActivityUpdateAPIRequest) SetDiscountRate

func (r *TaobaoPromotionmiscMjsActivityUpdateAPIRequest) SetDiscountRate(_discountRate int64) error

SetDiscountRate is DiscountRate Setter 折扣值。当is_discount为true时,该值才有意义。注意:800表示8折。

func (*TaobaoPromotionmiscMjsActivityUpdateAPIRequest) SetEndTime

SetEndTime is EndTime Setter 活动结束时间。

func (*TaobaoPromotionmiscMjsActivityUpdateAPIRequest) SetExcludeArea

func (r *TaobaoPromotionmiscMjsActivityUpdateAPIRequest) SetExcludeArea(_excludeArea string) error

SetExcludeArea is ExcludeArea Setter 免邮的排除地区,即,除指定地区外,其他地区包邮。当is_free_post为true时,该值才有意义。代码使用*链接,代码为行政区划代码。

func (*TaobaoPromotionmiscMjsActivityUpdateAPIRequest) SetGiftId

SetGiftId is GiftId Setter 礼品id,当is_send_gift为true时,该值才有意义。 1)只有填写真实的淘宝商品id时,才能生成物流单,并且在确定订单的页面上可以点击该商品名称跳转到商品详情页面。2)当礼物为实物商品时(有宝贝id),礼物必须为上架商品,不能为虚拟商品,不能为拍卖商品,不能有sku,不符合条件的,不做为礼物。

func (*TaobaoPromotionmiscMjsActivityUpdateAPIRequest) SetGiftName

SetGiftName is GiftName Setter 礼品名称。当is_send_gift为true时,该值才有意义。

func (*TaobaoPromotionmiscMjsActivityUpdateAPIRequest) SetGiftUrl

SetGiftUrl is GiftUrl Setter 商品详情的url,当is_send_gift为true时,该值才有效。

func (*TaobaoPromotionmiscMjsActivityUpdateAPIRequest) SetIsAmountMultiple

func (r *TaobaoPromotionmiscMjsActivityUpdateAPIRequest) SetIsAmountMultiple(_isAmountMultiple bool) error

SetIsAmountMultiple is IsAmountMultiple Setter 满元是否上不封顶。当is_amount_over为true时,该值才有意义。当该值为true时,表示满元上不封顶,例如满100元减10元,当满200时,则减20元。。。默认为false。

func (*TaobaoPromotionmiscMjsActivityUpdateAPIRequest) SetIsAmountOver

func (r *TaobaoPromotionmiscMjsActivityUpdateAPIRequest) SetIsAmountOver(_isAmountOver bool) error

SetIsAmountOver is IsAmountOver Setter 是否有满元条件。

func (*TaobaoPromotionmiscMjsActivityUpdateAPIRequest) SetIsDecreaseMoney

func (r *TaobaoPromotionmiscMjsActivityUpdateAPIRequest) SetIsDecreaseMoney(_isDecreaseMoney bool) error

SetIsDecreaseMoney is IsDecreaseMoney Setter 是否有减钱行为。

func (*TaobaoPromotionmiscMjsActivityUpdateAPIRequest) SetIsDiscount

func (r *TaobaoPromotionmiscMjsActivityUpdateAPIRequest) SetIsDiscount(_isDiscount bool) error

SetIsDiscount is IsDiscount Setter 是否有打折行为。

func (*TaobaoPromotionmiscMjsActivityUpdateAPIRequest) SetIsFreePost

func (r *TaobaoPromotionmiscMjsActivityUpdateAPIRequest) SetIsFreePost(_isFreePost bool) error

SetIsFreePost is IsFreePost Setter 是否有免邮行为。

func (*TaobaoPromotionmiscMjsActivityUpdateAPIRequest) SetIsItemCountOver

func (r *TaobaoPromotionmiscMjsActivityUpdateAPIRequest) SetIsItemCountOver(_isItemCountOver bool) error

SetIsItemCountOver is IsItemCountOver Setter 是否有满件条件。

func (*TaobaoPromotionmiscMjsActivityUpdateAPIRequest) SetIsItemMultiple

func (r *TaobaoPromotionmiscMjsActivityUpdateAPIRequest) SetIsItemMultiple(_isItemMultiple bool) error

SetIsItemMultiple is IsItemMultiple Setter 满件是否上不封顶。当is_amount_multiple为true时,该值才有意义。当该值为true时,表示满件上不封顶,例如满10件减2元,当满20件时,则减4元。。。 默认为false。

func (*TaobaoPromotionmiscMjsActivityUpdateAPIRequest) SetIsSendGift

func (r *TaobaoPromotionmiscMjsActivityUpdateAPIRequest) SetIsSendGift(_isSendGift bool) error

SetIsSendGift is IsSendGift Setter 是否有送礼品行为。

func (*TaobaoPromotionmiscMjsActivityUpdateAPIRequest) SetIsShopMember

func (r *TaobaoPromotionmiscMjsActivityUpdateAPIRequest) SetIsShopMember(_isShopMember bool) error

SetIsShopMember is IsShopMember Setter 是否有店铺会员等级条件。

func (*TaobaoPromotionmiscMjsActivityUpdateAPIRequest) SetIsUserTag

func (r *TaobaoPromotionmiscMjsActivityUpdateAPIRequest) SetIsUserTag(_isUserTag bool) error

SetIsUserTag is IsUserTag Setter 是否指定用户标签。

func (*TaobaoPromotionmiscMjsActivityUpdateAPIRequest) SetItemCount

func (r *TaobaoPromotionmiscMjsActivityUpdateAPIRequest) SetItemCount(_itemCount int64) error

SetItemCount is ItemCount Setter 满多少件。当is_item_count_over为true时,该值才有意义。

func (*TaobaoPromotionmiscMjsActivityUpdateAPIRequest) SetName

SetName is Name Setter 活动名称。

func (*TaobaoPromotionmiscMjsActivityUpdateAPIRequest) SetParticipateRange

func (r *TaobaoPromotionmiscMjsActivityUpdateAPIRequest) SetParticipateRange(_participateRange int64) error

SetParticipateRange is ParticipateRange Setter 活动范围:0表示全部参与; 1表示部分商品参与。

func (*TaobaoPromotionmiscMjsActivityUpdateAPIRequest) SetShopMemberLevel

func (r *TaobaoPromotionmiscMjsActivityUpdateAPIRequest) SetShopMemberLevel(_shopMemberLevel int64) error

SetShopMemberLevel is ShopMemberLevel Setter 店铺会员等级,当is_shop_member为true时,该值才有意义。0:店铺客户;1:普通客户;2:高级会员;3:VIP会员; 4:至尊VIP会员。

func (*TaobaoPromotionmiscMjsActivityUpdateAPIRequest) SetStartTime

func (r *TaobaoPromotionmiscMjsActivityUpdateAPIRequest) SetStartTime(_startTime string) error

SetStartTime is StartTime Setter 活动开始时间。

func (*TaobaoPromotionmiscMjsActivityUpdateAPIRequest) SetTotalPrice

func (r *TaobaoPromotionmiscMjsActivityUpdateAPIRequest) SetTotalPrice(_totalPrice int64) error

SetTotalPrice is TotalPrice Setter 满多少元。当is_amount_over为true时,该才字段有意义。注意:单位是分,即10000表示100元。

func (*TaobaoPromotionmiscMjsActivityUpdateAPIRequest) SetUserTag

SetUserTag is UserTag Setter 用户标签。当is_user_tag为true时,该值才有意义。

type TaobaoPromotionmiscMjsActivityUpdateAPIResponse

type TaobaoPromotionmiscMjsActivityUpdateAPIResponse struct {
	model.CommonResponse
	TaobaoPromotionmiscMjsActivityUpdateAPIResponseModel
}

TaobaoPromotionmiscMjsActivityUpdateAPIResponse 修改满就送活动 API返回值 taobao.promotionmisc.mjs.activity.update

修改满就送活动。 <br/>1、该接口只修改活动基本信息和打折信息,如需要增加、删除参与该活动的商品,请调用taobao.promotionmisc.activity.range.add和taobao.promotionmisc.activity.range.remove接口。 <br/>2、使用该接口时需要同时把未做修改的字段值也传入。 <br/>3、该接口创建的优惠受店铺最低折扣限制,如优惠不生效,请让卖家检查该优惠是否低于店铺的最低折扣设置。

type TaobaoPromotionmiscMjsActivityUpdateAPIResponseModel

type TaobaoPromotionmiscMjsActivityUpdateAPIResponseModel struct {
	XMLName xml.Name `xml:"promotionmisc_mjs_activity_update_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 修改是否成功。
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

TaobaoPromotionmiscMjsActivityUpdateAPIResponseModel is 修改满就送活动 成功返回结果

type TaobaoPromotionmiscToolCheckAPIRequest

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

TaobaoPromotionmiscToolCheckAPIRequest UMP工具检测 API请求 taobao.promotionmisc.tool.check

UMP工具检测。ISV通过该接口检测(通过taobao.ump.tool.add)创建的UMP工具(tool)是否符合规范,如果不符合,则返回错误信息和对应的解决方案的;工具检测通过后才可以提交工具审核邮件,提交工具审核时,需提供该接口的返回值。

func NewTaobaoPromotionmiscToolCheckRequest

func NewTaobaoPromotionmiscToolCheckRequest() *TaobaoPromotionmiscToolCheckAPIRequest

NewTaobaoPromotionmiscToolCheckRequest 初始化TaobaoPromotionmiscToolCheckAPIRequest对象

func (TaobaoPromotionmiscToolCheckAPIRequest) GetApiMethodName

func (r TaobaoPromotionmiscToolCheckAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoPromotionmiscToolCheckAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoPromotionmiscToolCheckAPIRequest) GetMetaAllow

GetMetaAllow MetaAllow Getter

func (TaobaoPromotionmiscToolCheckAPIRequest) GetToolId

GetToolId ToolId Getter

func (*TaobaoPromotionmiscToolCheckAPIRequest) SetMetaAllow

func (r *TaobaoPromotionmiscToolCheckAPIRequest) SetMetaAllow(_metaAllow string) error

SetMetaAllow is MetaAllow Setter 可使用的元数据。PRD审核后,会告诉isv可使用的元数据。

func (*TaobaoPromotionmiscToolCheckAPIRequest) SetToolId

func (r *TaobaoPromotionmiscToolCheckAPIRequest) SetToolId(_toolId int64) error

SetToolId is ToolId Setter 工具ID, taobao.ump.tool.add成功后返回的id。

type TaobaoPromotionmiscToolCheckAPIResponse

type TaobaoPromotionmiscToolCheckAPIResponse struct {
	model.CommonResponse
	TaobaoPromotionmiscToolCheckAPIResponseModel
}

TaobaoPromotionmiscToolCheckAPIResponse UMP工具检测 API返回值 taobao.promotionmisc.tool.check

UMP工具检测。ISV通过该接口检测(通过taobao.ump.tool.add)创建的UMP工具(tool)是否符合规范,如果不符合,则返回错误信息和对应的解决方案的;工具检测通过后才可以提交工具审核邮件,提交工具审核时,需提供该接口的返回值。

type TaobaoPromotionmiscToolCheckAPIResponseModel

type TaobaoPromotionmiscToolCheckAPIResponseModel struct {
	XMLName xml.Name `xml:"promotionmisc_tool_check_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 接口调用错误信息描述。
	ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"`
	// 工具审核结果。
	CheckToolModule *CheckToolModule `json:"check_tool_module,omitempty" xml:"check_tool_module,omitempty"`
	// 工具检测动作是否成功。检测是否通过请查看返回值default_model里的is_pass。
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

TaobaoPromotionmiscToolCheckAPIResponseModel is UMP工具检测 成功返回结果

type TaobaoTradeOrdersortGetAPIRequest

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

TaobaoTradeOrdersortGetAPIRequest 获取前N有礼活动的开奖订单列表 API请求 taobao.trade.ordersort.get

获取前N有礼活动的开奖订单列表

func NewTaobaoTradeOrdersortGetRequest

func NewTaobaoTradeOrdersortGetRequest() *TaobaoTradeOrdersortGetAPIRequest

NewTaobaoTradeOrdersortGetRequest 初始化TaobaoTradeOrdersortGetAPIRequest对象

func (TaobaoTradeOrdersortGetAPIRequest) GetActivityId

func (r TaobaoTradeOrdersortGetAPIRequest) GetActivityId() int64

GetActivityId ActivityId Getter

func (TaobaoTradeOrdersortGetAPIRequest) GetApiMethodName

func (r TaobaoTradeOrdersortGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoTradeOrdersortGetAPIRequest) GetApiParams

func (r TaobaoTradeOrdersortGetAPIRequest) GetApiParams() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoTradeOrdersortGetAPIRequest) GetPageNo

GetPageNo PageNo Getter

func (TaobaoTradeOrdersortGetAPIRequest) GetPageSize

func (r TaobaoTradeOrdersortGetAPIRequest) GetPageSize() int64

GetPageSize PageSize Getter

func (*TaobaoTradeOrdersortGetAPIRequest) SetActivityId

func (r *TaobaoTradeOrdersortGetAPIRequest) SetActivityId(_activityId int64) error

SetActivityId is ActivityId Setter 活动ID

func (*TaobaoTradeOrdersortGetAPIRequest) SetPageNo

func (r *TaobaoTradeOrdersortGetAPIRequest) SetPageNo(_pageNo int64) error

SetPageNo is PageNo Setter 页码

func (*TaobaoTradeOrdersortGetAPIRequest) SetPageSize

func (r *TaobaoTradeOrdersortGetAPIRequest) SetPageSize(_pageSize int64) error

SetPageSize is PageSize Setter 一页记录数, 必须写死500

type TaobaoTradeOrdersortGetAPIResponse

type TaobaoTradeOrdersortGetAPIResponse struct {
	model.CommonResponse
	TaobaoTradeOrdersortGetAPIResponseModel
}

TaobaoTradeOrdersortGetAPIResponse 获取前N有礼活动的开奖订单列表 API返回值 taobao.trade.ordersort.get

获取前N有礼活动的开奖订单列表

type TaobaoTradeOrdersortGetAPIResponseModel

type TaobaoTradeOrdersortGetAPIResponseModel struct {
	XMLName xml.Name `xml:"trade_ordersort_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 接口返回model
	Result *TaobaoTradeOrdersortGetResult `json:"result,omitempty" xml:"result,omitempty"`
}

TaobaoTradeOrdersortGetAPIResponseModel is 获取前N有礼活动的开奖订单列表 成功返回结果

type TaobaoTradeOrdersortGetResult

type TaobaoTradeOrdersortGetResult struct {
	// 错误码
	ErrCode string `json:"err_code,omitempty" xml:"err_code,omitempty"`
	// 错误信息
	ErrMsg string `json:"err_msg,omitempty" xml:"err_msg,omitempty"`
	// 返回素材id
	Data *AwardOrderResultDto `json:"data,omitempty" xml:"data,omitempty"`
	// 是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

TaobaoTradeOrdersortGetResult 结构体

type TaobaoUmpActivitiesGetAPIRequest

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

TaobaoUmpActivitiesGetAPIRequest 查询活动列表 API请求 taobao.ump.activities.get

查询活动列表

func NewTaobaoUmpActivitiesGetRequest

func NewTaobaoUmpActivitiesGetRequest() *TaobaoUmpActivitiesGetAPIRequest

NewTaobaoUmpActivitiesGetRequest 初始化TaobaoUmpActivitiesGetAPIRequest对象

func (TaobaoUmpActivitiesGetAPIRequest) GetApiMethodName

func (r TaobaoUmpActivitiesGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoUmpActivitiesGetAPIRequest) GetApiParams

func (r TaobaoUmpActivitiesGetAPIRequest) GetApiParams() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoUmpActivitiesGetAPIRequest) GetPageNo

GetPageNo PageNo Getter

func (TaobaoUmpActivitiesGetAPIRequest) GetPageSize

func (r TaobaoUmpActivitiesGetAPIRequest) GetPageSize() int64

GetPageSize PageSize Getter

func (TaobaoUmpActivitiesGetAPIRequest) GetToolId

GetToolId ToolId Getter

func (*TaobaoUmpActivitiesGetAPIRequest) SetPageNo

func (r *TaobaoUmpActivitiesGetAPIRequest) SetPageNo(_pageNo int64) error

SetPageNo is PageNo Setter 分页的页码

func (*TaobaoUmpActivitiesGetAPIRequest) SetPageSize

func (r *TaobaoUmpActivitiesGetAPIRequest) SetPageSize(_pageSize int64) error

SetPageSize is PageSize Setter 每页的最大条数

func (*TaobaoUmpActivitiesGetAPIRequest) SetToolId

func (r *TaobaoUmpActivitiesGetAPIRequest) SetToolId(_toolId int64) error

SetToolId is ToolId Setter 工具id

type TaobaoUmpActivitiesGetAPIResponse

type TaobaoUmpActivitiesGetAPIResponse struct {
	model.CommonResponse
	TaobaoUmpActivitiesGetAPIResponseModel
}

TaobaoUmpActivitiesGetAPIResponse 查询活动列表 API返回值 taobao.ump.activities.get

查询活动列表

type TaobaoUmpActivitiesGetAPIResponseModel

type TaobaoUmpActivitiesGetAPIResponseModel struct {
	XMLName xml.Name `xml:"ump_activities_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 营销活动内容,可以通过ump sdk来进行处理
	Contents []string `json:"contents,omitempty" xml:"contents>string,omitempty"`
	// 记录总数
	TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"`
}

TaobaoUmpActivitiesGetAPIResponseModel is 查询活动列表 成功返回结果

type TaobaoUmpActivitiesListGetAPIRequest

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

TaobaoUmpActivitiesListGetAPIRequest 营销活动列表查询 API请求 taobao.ump.activities.list.get

按照营销活动id的列表ids,查询对应的营销活动列表。

func NewTaobaoUmpActivitiesListGetRequest

func NewTaobaoUmpActivitiesListGetRequest() *TaobaoUmpActivitiesListGetAPIRequest

NewTaobaoUmpActivitiesListGetRequest 初始化TaobaoUmpActivitiesListGetAPIRequest对象

func (TaobaoUmpActivitiesListGetAPIRequest) GetApiMethodName

func (r TaobaoUmpActivitiesListGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoUmpActivitiesListGetAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoUmpActivitiesListGetAPIRequest) GetIds

GetIds Ids Getter

func (*TaobaoUmpActivitiesListGetAPIRequest) SetIds

SetIds is Ids Setter 营销活动id列表。

type TaobaoUmpActivitiesListGetAPIResponse

type TaobaoUmpActivitiesListGetAPIResponse struct {
	model.CommonResponse
	TaobaoUmpActivitiesListGetAPIResponseModel
}

TaobaoUmpActivitiesListGetAPIResponse 营销活动列表查询 API返回值 taobao.ump.activities.list.get

按照营销活动id的列表ids,查询对应的营销活动列表。

type TaobaoUmpActivitiesListGetAPIResponseModel

type TaobaoUmpActivitiesListGetAPIResponseModel struct {
	XMLName xml.Name `xml:"ump_activities_list_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 营销活动列表!
	Activities []string `json:"activities,omitempty" xml:"activities>string,omitempty"`
}

TaobaoUmpActivitiesListGetAPIResponseModel is 营销活动列表查询 成功返回结果

type TaobaoUmpActivityAddAPIRequest

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

TaobaoUmpActivityAddAPIRequest 新增优惠活动 API请求 taobao.ump.activity.add

新增优惠活动。设置优惠活动的基本信息,比如活动时间,活动针对的对象(可以是满足某些条件的买家)

func NewTaobaoUmpActivityAddRequest

func NewTaobaoUmpActivityAddRequest() *TaobaoUmpActivityAddAPIRequest

NewTaobaoUmpActivityAddRequest 初始化TaobaoUmpActivityAddAPIRequest对象

func (TaobaoUmpActivityAddAPIRequest) GetApiMethodName

func (r TaobaoUmpActivityAddAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoUmpActivityAddAPIRequest) GetApiParams

func (r TaobaoUmpActivityAddAPIRequest) GetApiParams() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoUmpActivityAddAPIRequest) GetContent

func (r TaobaoUmpActivityAddAPIRequest) GetContent() string

GetContent Content Getter

func (TaobaoUmpActivityAddAPIRequest) GetToolId

func (r TaobaoUmpActivityAddAPIRequest) GetToolId() int64

GetToolId ToolId Getter

func (*TaobaoUmpActivityAddAPIRequest) SetContent

func (r *TaobaoUmpActivityAddAPIRequest) SetContent(_content string) error

SetContent is Content Setter 活动内容,通过ump sdk里面的MarkeitngTool来生成,name必须属于“营销标签词库”——https://huodong.m.taobao.com/api/data/v2/5fe5e737d3314fa2973297f86f7bff3a.js?file=5fe5e737d3314fa2973297f86f7bff3a.js中的word值中的一种。

func (*TaobaoUmpActivityAddAPIRequest) SetToolId

func (r *TaobaoUmpActivityAddAPIRequest) SetToolId(_toolId int64) error

SetToolId is ToolId Setter 工具id

type TaobaoUmpActivityAddAPIResponse

type TaobaoUmpActivityAddAPIResponse struct {
	model.CommonResponse
	TaobaoUmpActivityAddAPIResponseModel
}

TaobaoUmpActivityAddAPIResponse 新增优惠活动 API返回值 taobao.ump.activity.add

新增优惠活动。设置优惠活动的基本信息,比如活动时间,活动针对的对象(可以是满足某些条件的买家)

type TaobaoUmpActivityAddAPIResponseModel

type TaobaoUmpActivityAddAPIResponseModel struct {
	XMLName xml.Name `xml:"ump_activity_add_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 活动id
	ActId int64 `json:"act_id,omitempty" xml:"act_id,omitempty"`
}

TaobaoUmpActivityAddAPIResponseModel is 新增优惠活动 成功返回结果

type TaobaoUmpActivityDeleteAPIRequest

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

TaobaoUmpActivityDeleteAPIRequest 删除营销活动 API请求 taobao.ump.activity.delete

删除营销活动。对应的活动详情等将会被全部删除。

func NewTaobaoUmpActivityDeleteRequest

func NewTaobaoUmpActivityDeleteRequest() *TaobaoUmpActivityDeleteAPIRequest

NewTaobaoUmpActivityDeleteRequest 初始化TaobaoUmpActivityDeleteAPIRequest对象

func (TaobaoUmpActivityDeleteAPIRequest) GetActId

GetActId ActId Getter

func (TaobaoUmpActivityDeleteAPIRequest) GetApiMethodName

func (r TaobaoUmpActivityDeleteAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoUmpActivityDeleteAPIRequest) GetApiParams

func (r TaobaoUmpActivityDeleteAPIRequest) GetApiParams() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (*TaobaoUmpActivityDeleteAPIRequest) SetActId

func (r *TaobaoUmpActivityDeleteAPIRequest) SetActId(_actId int64) error

SetActId is ActId Setter 活动id

type TaobaoUmpActivityDeleteAPIResponse

type TaobaoUmpActivityDeleteAPIResponse struct {
	model.CommonResponse
	TaobaoUmpActivityDeleteAPIResponseModel
}

TaobaoUmpActivityDeleteAPIResponse 删除营销活动 API返回值 taobao.ump.activity.delete

删除营销活动。对应的活动详情等将会被全部删除。

type TaobaoUmpActivityDeleteAPIResponseModel

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

TaobaoUmpActivityDeleteAPIResponseModel is 删除营销活动 成功返回结果

type TaobaoUmpActivityGetAPIRequest

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

TaobaoUmpActivityGetAPIRequest 查询营销活动 API请求 taobao.ump.activity.get

查询营销活动

func NewTaobaoUmpActivityGetRequest

func NewTaobaoUmpActivityGetRequest() *TaobaoUmpActivityGetAPIRequest

NewTaobaoUmpActivityGetRequest 初始化TaobaoUmpActivityGetAPIRequest对象

func (TaobaoUmpActivityGetAPIRequest) GetActId

GetActId ActId Getter

func (TaobaoUmpActivityGetAPIRequest) GetApiMethodName

func (r TaobaoUmpActivityGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoUmpActivityGetAPIRequest) GetApiParams

func (r TaobaoUmpActivityGetAPIRequest) GetApiParams() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (*TaobaoUmpActivityGetAPIRequest) SetActId

func (r *TaobaoUmpActivityGetAPIRequest) SetActId(_actId int64) error

SetActId is ActId Setter 活动id

type TaobaoUmpActivityGetAPIResponse

type TaobaoUmpActivityGetAPIResponse struct {
	model.CommonResponse
	TaobaoUmpActivityGetAPIResponseModel
}

TaobaoUmpActivityGetAPIResponse 查询营销活动 API返回值 taobao.ump.activity.get

查询营销活动

type TaobaoUmpActivityGetAPIResponseModel

type TaobaoUmpActivityGetAPIResponseModel struct {
	XMLName xml.Name `xml:"ump_activity_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 营销活动的内容,可以通过ump sdk中的marketingTool来完成对该内容的处理
	Content string `json:"content,omitempty" xml:"content,omitempty"`
}

TaobaoUmpActivityGetAPIResponseModel is 查询营销活动 成功返回结果

type TaobaoUmpActivityUpdateAPIRequest

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

TaobaoUmpActivityUpdateAPIRequest 修改活动信息 API请求 taobao.ump.activity.update

修改营销活动

func NewTaobaoUmpActivityUpdateRequest

func NewTaobaoUmpActivityUpdateRequest() *TaobaoUmpActivityUpdateAPIRequest

NewTaobaoUmpActivityUpdateRequest 初始化TaobaoUmpActivityUpdateAPIRequest对象

func (TaobaoUmpActivityUpdateAPIRequest) GetActId

GetActId ActId Getter

func (TaobaoUmpActivityUpdateAPIRequest) GetApiMethodName

func (r TaobaoUmpActivityUpdateAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoUmpActivityUpdateAPIRequest) GetApiParams

func (r TaobaoUmpActivityUpdateAPIRequest) GetApiParams() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoUmpActivityUpdateAPIRequest) GetContent

GetContent Content Getter

func (*TaobaoUmpActivityUpdateAPIRequest) SetActId

func (r *TaobaoUmpActivityUpdateAPIRequest) SetActId(_actId int64) error

SetActId is ActId Setter 活动id

func (*TaobaoUmpActivityUpdateAPIRequest) SetContent

func (r *TaobaoUmpActivityUpdateAPIRequest) SetContent(_content string) error

SetContent is Content Setter 营销活动内容,json格式,通过ump sdk 的marketingTool来生成

type TaobaoUmpActivityUpdateAPIResponse

type TaobaoUmpActivityUpdateAPIResponse struct {
	model.CommonResponse
	TaobaoUmpActivityUpdateAPIResponseModel
}

TaobaoUmpActivityUpdateAPIResponse 修改活动信息 API返回值 taobao.ump.activity.update

修改营销活动

type TaobaoUmpActivityUpdateAPIResponseModel

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

TaobaoUmpActivityUpdateAPIResponseModel is 修改活动信息 成功返回结果

type TaobaoUmpDetailAddAPIRequest

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

TaobaoUmpDetailAddAPIRequest 新增活动详情 API请求 taobao.ump.detail.add

增加活动详情。活动详情里面包括活动的范围(店铺,商品),活动的参数(比如具体的折扣),参与类型(全部,部分,部分不参加)等信息。当参与类型为部分或部分不参加的时候需要和taobao.ump.range.add来配合使用。

func NewTaobaoUmpDetailAddRequest

func NewTaobaoUmpDetailAddRequest() *TaobaoUmpDetailAddAPIRequest

NewTaobaoUmpDetailAddRequest 初始化TaobaoUmpDetailAddAPIRequest对象

func (TaobaoUmpDetailAddAPIRequest) GetActId

func (r TaobaoUmpDetailAddAPIRequest) GetActId() int64

GetActId ActId Getter

func (TaobaoUmpDetailAddAPIRequest) GetApiMethodName

func (r TaobaoUmpDetailAddAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoUmpDetailAddAPIRequest) GetApiParams

func (r TaobaoUmpDetailAddAPIRequest) GetApiParams() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoUmpDetailAddAPIRequest) GetContent

func (r TaobaoUmpDetailAddAPIRequest) GetContent() string

GetContent Content Getter

func (*TaobaoUmpDetailAddAPIRequest) SetActId

func (r *TaobaoUmpDetailAddAPIRequest) SetActId(_actId int64) error

SetActId is ActId Setter 增加工具详情

func (*TaobaoUmpDetailAddAPIRequest) SetContent

func (r *TaobaoUmpDetailAddAPIRequest) SetContent(_content string) error

SetContent is Content Setter 活动详情内容,json格式,可以通过ump sdk中的MarketingTool来进行处理

type TaobaoUmpDetailAddAPIResponse

type TaobaoUmpDetailAddAPIResponse struct {
	model.CommonResponse
	TaobaoUmpDetailAddAPIResponseModel
}

TaobaoUmpDetailAddAPIResponse 新增活动详情 API返回值 taobao.ump.detail.add

增加活动详情。活动详情里面包括活动的范围(店铺,商品),活动的参数(比如具体的折扣),参与类型(全部,部分,部分不参加)等信息。当参与类型为部分或部分不参加的时候需要和taobao.ump.range.add来配合使用。

type TaobaoUmpDetailAddAPIResponseModel

type TaobaoUmpDetailAddAPIResponseModel struct {
	XMLName xml.Name `xml:"ump_detail_add_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 活动详情的id
	DetailId int64 `json:"detail_id,omitempty" xml:"detail_id,omitempty"`
}

TaobaoUmpDetailAddAPIResponseModel is 新增活动详情 成功返回结果

type TaobaoUmpDetailDeleteAPIRequest

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

TaobaoUmpDetailDeleteAPIRequest 删除活动详情 API请求 taobao.ump.detail.delete

删除活动详情

func NewTaobaoUmpDetailDeleteRequest

func NewTaobaoUmpDetailDeleteRequest() *TaobaoUmpDetailDeleteAPIRequest

NewTaobaoUmpDetailDeleteRequest 初始化TaobaoUmpDetailDeleteAPIRequest对象

func (TaobaoUmpDetailDeleteAPIRequest) GetApiMethodName

func (r TaobaoUmpDetailDeleteAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoUmpDetailDeleteAPIRequest) GetApiParams

func (r TaobaoUmpDetailDeleteAPIRequest) GetApiParams() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoUmpDetailDeleteAPIRequest) GetDetailId

func (r TaobaoUmpDetailDeleteAPIRequest) GetDetailId() int64

GetDetailId DetailId Getter

func (*TaobaoUmpDetailDeleteAPIRequest) SetDetailId

func (r *TaobaoUmpDetailDeleteAPIRequest) SetDetailId(_detailId int64) error

SetDetailId is DetailId Setter 活动详情id

type TaobaoUmpDetailDeleteAPIResponse

type TaobaoUmpDetailDeleteAPIResponse struct {
	model.CommonResponse
	TaobaoUmpDetailDeleteAPIResponseModel
}

TaobaoUmpDetailDeleteAPIResponse 删除活动详情 API返回值 taobao.ump.detail.delete

删除活动详情

type TaobaoUmpDetailDeleteAPIResponseModel

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

TaobaoUmpDetailDeleteAPIResponseModel is 删除活动详情 成功返回结果

type TaobaoUmpDetailGetAPIRequest

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

TaobaoUmpDetailGetAPIRequest 查询活动详情 API请求 taobao.ump.detail.get

查询活动详情

func NewTaobaoUmpDetailGetRequest

func NewTaobaoUmpDetailGetRequest() *TaobaoUmpDetailGetAPIRequest

NewTaobaoUmpDetailGetRequest 初始化TaobaoUmpDetailGetAPIRequest对象

func (TaobaoUmpDetailGetAPIRequest) GetApiMethodName

func (r TaobaoUmpDetailGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoUmpDetailGetAPIRequest) GetApiParams

func (r TaobaoUmpDetailGetAPIRequest) GetApiParams() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoUmpDetailGetAPIRequest) GetDetailId

func (r TaobaoUmpDetailGetAPIRequest) GetDetailId() int64

GetDetailId DetailId Getter

func (*TaobaoUmpDetailGetAPIRequest) SetDetailId

func (r *TaobaoUmpDetailGetAPIRequest) SetDetailId(_detailId int64) error

SetDetailId is DetailId Setter 活动详情的id

type TaobaoUmpDetailGetAPIResponse

type TaobaoUmpDetailGetAPIResponse struct {
	model.CommonResponse
	TaobaoUmpDetailGetAPIResponseModel
}

TaobaoUmpDetailGetAPIResponse 查询活动详情 API返回值 taobao.ump.detail.get

查询活动详情

type TaobaoUmpDetailGetAPIResponseModel

type TaobaoUmpDetailGetAPIResponseModel struct {
	XMLName xml.Name `xml:"ump_detail_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 活动详情信息,可以通过ump sdk中的MarketingTool来进行处理
	Content string `json:"content,omitempty" xml:"content,omitempty"`
}

TaobaoUmpDetailGetAPIResponseModel is 查询活动详情 成功返回结果

type TaobaoUmpDetailListAddAPIRequest

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

TaobaoUmpDetailListAddAPIRequest 营销详情添加 API请求 taobao.ump.detail.list.add

批量添加营销活动。替代单条添加营销详情的的API。此接口适用针对某个营销活动的多档设置,会按顺序插入detail。若在整个事务过程中出现断点,会将已插入完成的detail_id返回,注意记录这些id,并将其删除,会对交易过程中的优惠产生影响。

func NewTaobaoUmpDetailListAddRequest

func NewTaobaoUmpDetailListAddRequest() *TaobaoUmpDetailListAddAPIRequest

NewTaobaoUmpDetailListAddRequest 初始化TaobaoUmpDetailListAddAPIRequest对象

func (TaobaoUmpDetailListAddAPIRequest) GetActId

GetActId ActId Getter

func (TaobaoUmpDetailListAddAPIRequest) GetApiMethodName

func (r TaobaoUmpDetailListAddAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoUmpDetailListAddAPIRequest) GetApiParams

func (r TaobaoUmpDetailListAddAPIRequest) GetApiParams() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoUmpDetailListAddAPIRequest) GetDetails

GetDetails Details Getter

func (*TaobaoUmpDetailListAddAPIRequest) SetActId

func (r *TaobaoUmpDetailListAddAPIRequest) SetActId(_actId int64) error

SetActId is ActId Setter 营销活动id。

func (*TaobaoUmpDetailListAddAPIRequest) SetDetails

func (r *TaobaoUmpDetailListAddAPIRequest) SetDetails(_details string) error

SetDetails is Details Setter 营销详情的列表。此列表由detail的json字符串组成。最多插入为10个。

type TaobaoUmpDetailListAddAPIResponse

type TaobaoUmpDetailListAddAPIResponse struct {
	model.CommonResponse
	TaobaoUmpDetailListAddAPIResponseModel
}

TaobaoUmpDetailListAddAPIResponse 营销详情添加 API返回值 taobao.ump.detail.list.add

批量添加营销活动。替代单条添加营销详情的的API。此接口适用针对某个营销活动的多档设置,会按顺序插入detail。若在整个事务过程中出现断点,会将已插入完成的detail_id返回,注意记录这些id,并将其删除,会对交易过程中的优惠产生影响。

type TaobaoUmpDetailListAddAPIResponseModel

type TaobaoUmpDetailListAddAPIResponseModel struct {
	XMLName xml.Name `xml:"ump_detail_list_add_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回对应的营销详情的id列表!若有某一条插入失败,会将插入成功的detail_id放到errorMessage里面返回,此时errorMessage里面会包含格式为(id1,id2,id3)的插入成功id列表。这些ids会对交易产生影响,通过截取此信息,将对应detail删除!
	DetailIdList []int64 `json:"detail_id_list,omitempty" xml:"detail_id_list>int64,omitempty"`
}

TaobaoUmpDetailListAddAPIResponseModel is 营销详情添加 成功返回结果

type TaobaoUmpDetailUpdateAPIRequest

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

TaobaoUmpDetailUpdateAPIRequest 修改活动详情 API请求 taobao.ump.detail.update

更新活动详情

func NewTaobaoUmpDetailUpdateRequest

func NewTaobaoUmpDetailUpdateRequest() *TaobaoUmpDetailUpdateAPIRequest

NewTaobaoUmpDetailUpdateRequest 初始化TaobaoUmpDetailUpdateAPIRequest对象

func (TaobaoUmpDetailUpdateAPIRequest) GetApiMethodName

func (r TaobaoUmpDetailUpdateAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoUmpDetailUpdateAPIRequest) GetApiParams

func (r TaobaoUmpDetailUpdateAPIRequest) GetApiParams() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoUmpDetailUpdateAPIRequest) GetContent

func (r TaobaoUmpDetailUpdateAPIRequest) GetContent() string

GetContent Content Getter

func (TaobaoUmpDetailUpdateAPIRequest) GetDetailId

func (r TaobaoUmpDetailUpdateAPIRequest) GetDetailId() int64

GetDetailId DetailId Getter

func (*TaobaoUmpDetailUpdateAPIRequest) SetContent

func (r *TaobaoUmpDetailUpdateAPIRequest) SetContent(_content string) error

SetContent is Content Setter 活动详情内容,可以通过ump sdk中的MarketingTool来生成这个内容

func (*TaobaoUmpDetailUpdateAPIRequest) SetDetailId

func (r *TaobaoUmpDetailUpdateAPIRequest) SetDetailId(_detailId int64) error

SetDetailId is DetailId Setter 活动详情id

type TaobaoUmpDetailUpdateAPIResponse

type TaobaoUmpDetailUpdateAPIResponse struct {
	model.CommonResponse
	TaobaoUmpDetailUpdateAPIResponseModel
}

TaobaoUmpDetailUpdateAPIResponse 修改活动详情 API返回值 taobao.ump.detail.update

更新活动详情

type TaobaoUmpDetailUpdateAPIResponseModel

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

TaobaoUmpDetailUpdateAPIResponseModel is 修改活动详情 成功返回结果

type TaobaoUmpDetailsGetAPIRequest

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

TaobaoUmpDetailsGetAPIRequest 查询活动详情列表 API请求 taobao.ump.details.get

分页查询优惠详情列表

func NewTaobaoUmpDetailsGetRequest

func NewTaobaoUmpDetailsGetRequest() *TaobaoUmpDetailsGetAPIRequest

NewTaobaoUmpDetailsGetRequest 初始化TaobaoUmpDetailsGetAPIRequest对象

func (TaobaoUmpDetailsGetAPIRequest) GetActId

func (r TaobaoUmpDetailsGetAPIRequest) GetActId() int64

GetActId ActId Getter

func (TaobaoUmpDetailsGetAPIRequest) GetApiMethodName

func (r TaobaoUmpDetailsGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoUmpDetailsGetAPIRequest) GetApiParams

func (r TaobaoUmpDetailsGetAPIRequest) GetApiParams() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoUmpDetailsGetAPIRequest) GetPageNo

func (r TaobaoUmpDetailsGetAPIRequest) GetPageNo() int64

GetPageNo PageNo Getter

func (TaobaoUmpDetailsGetAPIRequest) GetPageSize

func (r TaobaoUmpDetailsGetAPIRequest) GetPageSize() int64

GetPageSize PageSize Getter

func (*TaobaoUmpDetailsGetAPIRequest) SetActId

func (r *TaobaoUmpDetailsGetAPIRequest) SetActId(_actId int64) error

SetActId is ActId Setter 营销活动id

func (*TaobaoUmpDetailsGetAPIRequest) SetPageNo

func (r *TaobaoUmpDetailsGetAPIRequest) SetPageNo(_pageNo int64) error

SetPageNo is PageNo Setter 分页的页码

func (*TaobaoUmpDetailsGetAPIRequest) SetPageSize

func (r *TaobaoUmpDetailsGetAPIRequest) SetPageSize(_pageSize int64) error

SetPageSize is PageSize Setter 每页的最大条数

type TaobaoUmpDetailsGetAPIResponse

type TaobaoUmpDetailsGetAPIResponse struct {
	model.CommonResponse
	TaobaoUmpDetailsGetAPIResponseModel
}

TaobaoUmpDetailsGetAPIResponse 查询活动详情列表 API返回值 taobao.ump.details.get

分页查询优惠详情列表

type TaobaoUmpDetailsGetAPIResponseModel

type TaobaoUmpDetailsGetAPIResponseModel struct {
	XMLName xml.Name `xml:"ump_details_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 活动详情的信息
	Contents []string `json:"contents,omitempty" xml:"contents>string,omitempty"`
	// 记录总数
	TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"`
}

TaobaoUmpDetailsGetAPIResponseModel is 查询活动详情列表 成功返回结果

type TaobaoUmpMbbGetbycodeAPIRequest

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

TaobaoUmpMbbGetbycodeAPIRequest 根据营销积木块代码获取积木块 API请求 taobao.ump.mbb.getbycode

根据营销积木块代码获取积木块。接口返回该代码最新版本的积木块。如果要查询某个非最新版本的积木块,可以使用积木块id查询接口。

func NewTaobaoUmpMbbGetbycodeRequest

func NewTaobaoUmpMbbGetbycodeRequest() *TaobaoUmpMbbGetbycodeAPIRequest

NewTaobaoUmpMbbGetbycodeRequest 初始化TaobaoUmpMbbGetbycodeAPIRequest对象

func (TaobaoUmpMbbGetbycodeAPIRequest) GetApiMethodName

func (r TaobaoUmpMbbGetbycodeAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoUmpMbbGetbycodeAPIRequest) GetApiParams

func (r TaobaoUmpMbbGetbycodeAPIRequest) GetApiParams() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoUmpMbbGetbycodeAPIRequest) GetCode

GetCode Code Getter

func (*TaobaoUmpMbbGetbycodeAPIRequest) SetCode

func (r *TaobaoUmpMbbGetbycodeAPIRequest) SetCode(_code string) error

SetCode is Code Setter 营销积木块code

type TaobaoUmpMbbGetbycodeAPIResponse

type TaobaoUmpMbbGetbycodeAPIResponse struct {
	model.CommonResponse
	TaobaoUmpMbbGetbycodeAPIResponseModel
}

TaobaoUmpMbbGetbycodeAPIResponse 根据营销积木块代码获取积木块 API返回值 taobao.ump.mbb.getbycode

根据营销积木块代码获取积木块。接口返回该代码最新版本的积木块。如果要查询某个非最新版本的积木块,可以使用积木块id查询接口。

type TaobaoUmpMbbGetbycodeAPIResponseModel

type TaobaoUmpMbbGetbycodeAPIResponseModel struct {
	XMLName xml.Name `xml:"ump_mbb_getbycode_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 营销积木块的内容,通过ump sdk来进行处理
	Mbb string `json:"mbb,omitempty" xml:"mbb,omitempty"`
}

TaobaoUmpMbbGetbycodeAPIResponseModel is 根据营销积木块代码获取积木块 成功返回结果

type TaobaoUmpMbbGetbyidAPIRequest

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

TaobaoUmpMbbGetbyidAPIRequest 获取营销积木块 API请求 taobao.ump.mbb.getbyid

根据积木块id获取营销积木块。

func NewTaobaoUmpMbbGetbyidRequest

func NewTaobaoUmpMbbGetbyidRequest() *TaobaoUmpMbbGetbyidAPIRequest

NewTaobaoUmpMbbGetbyidRequest 初始化TaobaoUmpMbbGetbyidAPIRequest对象

func (TaobaoUmpMbbGetbyidAPIRequest) GetApiMethodName

func (r TaobaoUmpMbbGetbyidAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoUmpMbbGetbyidAPIRequest) GetApiParams

func (r TaobaoUmpMbbGetbyidAPIRequest) GetApiParams() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoUmpMbbGetbyidAPIRequest) GetId

GetId Id Getter

func (*TaobaoUmpMbbGetbyidAPIRequest) SetId

SetId is Id Setter 积木块的id

type TaobaoUmpMbbGetbyidAPIResponse

type TaobaoUmpMbbGetbyidAPIResponse struct {
	model.CommonResponse
	TaobaoUmpMbbGetbyidAPIResponseModel
}

TaobaoUmpMbbGetbyidAPIResponse 获取营销积木块 API返回值 taobao.ump.mbb.getbyid

根据积木块id获取营销积木块。

type TaobaoUmpMbbGetbyidAPIResponseModel

type TaobaoUmpMbbGetbyidAPIResponseModel struct {
	XMLName xml.Name `xml:"ump_mbb_getbyid_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 营销积木块定义信息,可以通过ump sdk里面的MBB.fromJson来处理
	Mbb string `json:"mbb,omitempty" xml:"mbb,omitempty"`
}

TaobaoUmpMbbGetbyidAPIResponseModel is 获取营销积木块 成功返回结果

type TaobaoUmpMbbsGetAPIRequest

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

TaobaoUmpMbbsGetAPIRequest 获取营销积木块列表 API请求 taobao.ump.mbbs.get

获取营销积木块列表,可以根据类型获取,也可以将该字段设为空,获取所有的

func NewTaobaoUmpMbbsGetRequest

func NewTaobaoUmpMbbsGetRequest() *TaobaoUmpMbbsGetAPIRequest

NewTaobaoUmpMbbsGetRequest 初始化TaobaoUmpMbbsGetAPIRequest对象

func (TaobaoUmpMbbsGetAPIRequest) GetApiMethodName

func (r TaobaoUmpMbbsGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoUmpMbbsGetAPIRequest) GetApiParams

func (r TaobaoUmpMbbsGetAPIRequest) GetApiParams() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoUmpMbbsGetAPIRequest) GetType

func (r TaobaoUmpMbbsGetAPIRequest) GetType() string

GetType Type Getter

func (*TaobaoUmpMbbsGetAPIRequest) SetType

func (r *TaobaoUmpMbbsGetAPIRequest) SetType(_type string) error

SetType is Type Setter 积木块类型。如果该字段为空表示查出所有类型的<br/>现在有且仅有如下几种:resource,condition,action,target

type TaobaoUmpMbbsGetAPIResponse

type TaobaoUmpMbbsGetAPIResponse struct {
	model.CommonResponse
	TaobaoUmpMbbsGetAPIResponseModel
}

TaobaoUmpMbbsGetAPIResponse 获取营销积木块列表 API返回值 taobao.ump.mbbs.get

获取营销积木块列表,可以根据类型获取,也可以将该字段设为空,获取所有的

type TaobaoUmpMbbsGetAPIResponseModel

type TaobaoUmpMbbsGetAPIResponseModel struct {
	XMLName xml.Name `xml:"ump_mbbs_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 营销积木块内容列表,内容为json格式的,可以通过ump sdk里面的MBB.fromJson来处理
	Mbbs []string `json:"mbbs,omitempty" xml:"mbbs>string,omitempty"`
}

TaobaoUmpMbbsGetAPIResponseModel is 获取营销积木块列表 成功返回结果

type TaobaoUmpMbbsListGetAPIRequest

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

TaobaoUmpMbbsListGetAPIRequest 通过ids列表获取营销积木块列表 API请求 taobao.ump.mbbs.list.get

通过营销积木id列表来获取营销积木块列表。

func NewTaobaoUmpMbbsListGetRequest

func NewTaobaoUmpMbbsListGetRequest() *TaobaoUmpMbbsListGetAPIRequest

NewTaobaoUmpMbbsListGetRequest 初始化TaobaoUmpMbbsListGetAPIRequest对象

func (TaobaoUmpMbbsListGetAPIRequest) GetApiMethodName

func (r TaobaoUmpMbbsListGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoUmpMbbsListGetAPIRequest) GetApiParams

func (r TaobaoUmpMbbsListGetAPIRequest) GetApiParams() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoUmpMbbsListGetAPIRequest) GetIds

GetIds Ids Getter

func (*TaobaoUmpMbbsListGetAPIRequest) SetIds

func (r *TaobaoUmpMbbsListGetAPIRequest) SetIds(_ids []int64) error

SetIds is Ids Setter 营销积木块id组成的字符串。

type TaobaoUmpMbbsListGetAPIResponse

type TaobaoUmpMbbsListGetAPIResponse struct {
	model.CommonResponse
	TaobaoUmpMbbsListGetAPIResponseModel
}

TaobaoUmpMbbsListGetAPIResponse 通过ids列表获取营销积木块列表 API返回值 taobao.ump.mbbs.list.get

通过营销积木id列表来获取营销积木块列表。

type TaobaoUmpMbbsListGetAPIResponseModel

type TaobaoUmpMbbsListGetAPIResponseModel struct {
	XMLName xml.Name `xml:"ump_mbbs_list_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 营销积木块内容列表,内容为json格式的,可以通过ump sdk里面的MBB.fromJson来处理
	Mbbs []string `json:"mbbs,omitempty" xml:"mbbs>string,omitempty"`
}

TaobaoUmpMbbsListGetAPIResponseModel is 通过ids列表获取营销积木块列表 成功返回结果

type TaobaoUmpPromotionGlobalDiscountGetAPIRequest

type TaobaoUmpPromotionGlobalDiscountGetAPIRequest struct {
	model.Params
}

TaobaoUmpPromotionGlobalDiscountGetAPIRequest 获取卖家最低折扣 API请求 taobao.ump.promotion.global.discount.get

提供卖家最低折扣查询功能

func NewTaobaoUmpPromotionGlobalDiscountGetRequest

func NewTaobaoUmpPromotionGlobalDiscountGetRequest() *TaobaoUmpPromotionGlobalDiscountGetAPIRequest

NewTaobaoUmpPromotionGlobalDiscountGetRequest 初始化TaobaoUmpPromotionGlobalDiscountGetAPIRequest对象

func (TaobaoUmpPromotionGlobalDiscountGetAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoUmpPromotionGlobalDiscountGetAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

type TaobaoUmpPromotionGlobalDiscountGetAPIResponse

type TaobaoUmpPromotionGlobalDiscountGetAPIResponse struct {
	model.CommonResponse
	TaobaoUmpPromotionGlobalDiscountGetAPIResponseModel
}

TaobaoUmpPromotionGlobalDiscountGetAPIResponse 获取卖家最低折扣 API返回值 taobao.ump.promotion.global.discount.get

提供卖家最低折扣查询功能

type TaobaoUmpPromotionGlobalDiscountGetAPIResponseModel

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

TaobaoUmpPromotionGlobalDiscountGetAPIResponseModel is 获取卖家最低折扣 成功返回结果

type TaobaoUmpPromotionGlobalDiscountGetResult

type TaobaoUmpPromotionGlobalDiscountGetResult struct {
	// defaultModel
	DefaultModel *SellerGlobalDiscount `json:"default_model,omitempty" xml:"default_model,omitempty"`
	// 是否执行成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

TaobaoUmpPromotionGlobalDiscountGetResult 结构体

type TaobaoUmpRangeAddAPIRequest

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

TaobaoUmpRangeAddAPIRequest 添加活动范围 API请求 taobao.ump.range.add

指定某项活动中,某个商家的某些类型物品(指定商品或者别的)参加或者不参加活动。当活动详情的参与类型为部分或者部分不参加的时候,需要指定具体哪部分参加或者不参加,使用本接口完成操作。比如部分商品满就送,这里的range用来指定具体哪些商品参加满就送活动。

func NewTaobaoUmpRangeAddRequest

func NewTaobaoUmpRangeAddRequest() *TaobaoUmpRangeAddAPIRequest

NewTaobaoUmpRangeAddRequest 初始化TaobaoUmpRangeAddAPIRequest对象

func (TaobaoUmpRangeAddAPIRequest) GetActId

func (r TaobaoUmpRangeAddAPIRequest) GetActId() int64

GetActId ActId Getter

func (TaobaoUmpRangeAddAPIRequest) GetApiMethodName

func (r TaobaoUmpRangeAddAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoUmpRangeAddAPIRequest) GetApiParams

func (r TaobaoUmpRangeAddAPIRequest) GetApiParams() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoUmpRangeAddAPIRequest) GetIds

GetIds Ids Getter

func (TaobaoUmpRangeAddAPIRequest) GetType

func (r TaobaoUmpRangeAddAPIRequest) GetType() int64

GetType Type Getter

func (*TaobaoUmpRangeAddAPIRequest) SetActId

func (r *TaobaoUmpRangeAddAPIRequest) SetActId(_actId int64) error

SetActId is ActId Setter 活动id

func (*TaobaoUmpRangeAddAPIRequest) SetIds

func (r *TaobaoUmpRangeAddAPIRequest) SetIds(_ids string) error

SetIds is Ids Setter id列表,当范围类型为商品时,该id为商品id.多个id用逗号隔开,一次不超过50个

func (*TaobaoUmpRangeAddAPIRequest) SetType

func (r *TaobaoUmpRangeAddAPIRequest) SetType(_type int64) error

SetType is Type Setter 范围的类型,比如是全店,商品,见:MarketingConstants.PARTICIPATE_TYPE_*

type TaobaoUmpRangeAddAPIResponse

type TaobaoUmpRangeAddAPIResponse struct {
	model.CommonResponse
	TaobaoUmpRangeAddAPIResponseModel
}

TaobaoUmpRangeAddAPIResponse 添加活动范围 API返回值 taobao.ump.range.add

指定某项活动中,某个商家的某些类型物品(指定商品或者别的)参加或者不参加活动。当活动详情的参与类型为部分或者部分不参加的时候,需要指定具体哪部分参加或者不参加,使用本接口完成操作。比如部分商品满就送,这里的range用来指定具体哪些商品参加满就送活动。

type TaobaoUmpRangeAddAPIResponseModel

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

TaobaoUmpRangeAddAPIResponseModel is 添加活动范围 成功返回结果

type TaobaoUmpRangeDeleteAPIRequest

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

TaobaoUmpRangeDeleteAPIRequest 删除活动范围 API请求 taobao.ump.range.delete

去指先前指定在某项活动中,某些类型的物品参加或者不参加活动的设置

func NewTaobaoUmpRangeDeleteRequest

func NewTaobaoUmpRangeDeleteRequest() *TaobaoUmpRangeDeleteAPIRequest

NewTaobaoUmpRangeDeleteRequest 初始化TaobaoUmpRangeDeleteAPIRequest对象

func (TaobaoUmpRangeDeleteAPIRequest) GetActId

GetActId ActId Getter

func (TaobaoUmpRangeDeleteAPIRequest) GetApiMethodName

func (r TaobaoUmpRangeDeleteAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoUmpRangeDeleteAPIRequest) GetApiParams

func (r TaobaoUmpRangeDeleteAPIRequest) GetApiParams() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoUmpRangeDeleteAPIRequest) GetIds

GetIds Ids Getter

func (TaobaoUmpRangeDeleteAPIRequest) GetType

GetType Type Getter

func (*TaobaoUmpRangeDeleteAPIRequest) SetActId

func (r *TaobaoUmpRangeDeleteAPIRequest) SetActId(_actId int64) error

SetActId is ActId Setter 活动id

func (*TaobaoUmpRangeDeleteAPIRequest) SetIds

SetIds is Ids Setter id列表,当范围类型为商品时,该id为商品id;当范围类型为类目时,该id为类目id

func (*TaobaoUmpRangeDeleteAPIRequest) SetType

func (r *TaobaoUmpRangeDeleteAPIRequest) SetType(_type int64) error

SetType is Type Setter 范围的类型,比如是全店,商品,类目见:MarketingConstants.PARTICIPATE_TYPE_*

type TaobaoUmpRangeDeleteAPIResponse

type TaobaoUmpRangeDeleteAPIResponse struct {
	model.CommonResponse
	TaobaoUmpRangeDeleteAPIResponseModel
}

TaobaoUmpRangeDeleteAPIResponse 删除活动范围 API返回值 taobao.ump.range.delete

去指先前指定在某项活动中,某些类型的物品参加或者不参加活动的设置

type TaobaoUmpRangeDeleteAPIResponseModel

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

TaobaoUmpRangeDeleteAPIResponseModel is 删除活动范围 成功返回结果

type TaobaoUmpRangeGetAPIRequest

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

TaobaoUmpRangeGetAPIRequest 查询活动范围 API请求 taobao.ump.range.get

查询某个卖家所有参加或者不参加某项活动的物品

func NewTaobaoUmpRangeGetRequest

func NewTaobaoUmpRangeGetRequest() *TaobaoUmpRangeGetAPIRequest

NewTaobaoUmpRangeGetRequest 初始化TaobaoUmpRangeGetAPIRequest对象

func (TaobaoUmpRangeGetAPIRequest) GetActId

func (r TaobaoUmpRangeGetAPIRequest) GetActId() int64

GetActId ActId Getter

func (TaobaoUmpRangeGetAPIRequest) GetApiMethodName

func (r TaobaoUmpRangeGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoUmpRangeGetAPIRequest) GetApiParams

func (r TaobaoUmpRangeGetAPIRequest) GetApiParams() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (*TaobaoUmpRangeGetAPIRequest) SetActId

func (r *TaobaoUmpRangeGetAPIRequest) SetActId(_actId int64) error

SetActId is ActId Setter 活动id

type TaobaoUmpRangeGetAPIResponse

type TaobaoUmpRangeGetAPIResponse struct {
	model.CommonResponse
	TaobaoUmpRangeGetAPIResponseModel
}

TaobaoUmpRangeGetAPIResponse 查询活动范围 API返回值 taobao.ump.range.get

查询某个卖家所有参加或者不参加某项活动的物品

type TaobaoUmpRangeGetAPIResponseModel

type TaobaoUmpRangeGetAPIResponseModel struct {
	XMLName xml.Name `xml:"ump_range_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 营销范围类列表!
	Ranges []Range `json:"ranges,omitempty" xml:"ranges>range,omitempty"`
}

TaobaoUmpRangeGetAPIResponseModel is 查询活动范围 成功返回结果

type TaobaoUmpShoutaotagAddAPIRequest

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

TaobaoUmpShoutaotagAddAPIRequest 手淘定向优惠打标接口 API请求 taobao.ump.shoutaotag.add

手淘定向优惠的优惠标签打标接口 给特定的手淘买家打上优惠标记,标记承载在自己的业务标签库中,标签有效期为7天。

func NewTaobaoUmpShoutaotagAddRequest

func NewTaobaoUmpShoutaotagAddRequest() *TaobaoUmpShoutaotagAddAPIRequest

NewTaobaoUmpShoutaotagAddRequest 初始化TaobaoUmpShoutaotagAddAPIRequest对象

func (TaobaoUmpShoutaotagAddAPIRequest) GetApiMethodName

func (r TaobaoUmpShoutaotagAddAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoUmpShoutaotagAddAPIRequest) GetApiParams

func (r TaobaoUmpShoutaotagAddAPIRequest) GetApiParams() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoUmpShoutaotagAddAPIRequest) GetBuyerId

func (r TaobaoUmpShoutaotagAddAPIRequest) GetBuyerId() int64

GetBuyerId BuyerId Getter

func (TaobaoUmpShoutaotagAddAPIRequest) GetChannelKey

func (r TaobaoUmpShoutaotagAddAPIRequest) GetChannelKey() string

GetChannelKey ChannelKey Getter

func (TaobaoUmpShoutaotagAddAPIRequest) GetItemId

GetItemId ItemId Getter

func (*TaobaoUmpShoutaotagAddAPIRequest) SetBuyerId

func (r *TaobaoUmpShoutaotagAddAPIRequest) SetBuyerId(_buyerId int64) error

SetBuyerId is BuyerId Setter 买家ID

func (*TaobaoUmpShoutaotagAddAPIRequest) SetChannelKey

func (r *TaobaoUmpShoutaotagAddAPIRequest) SetChannelKey(_channelKey string) error

SetChannelKey is ChannelKey Setter 渠道KEY

func (*TaobaoUmpShoutaotagAddAPIRequest) SetItemId

func (r *TaobaoUmpShoutaotagAddAPIRequest) SetItemId(_itemId int64) error

SetItemId is ItemId Setter 商品ID

type TaobaoUmpShoutaotagAddAPIResponse

type TaobaoUmpShoutaotagAddAPIResponse struct {
	model.CommonResponse
	TaobaoUmpShoutaotagAddAPIResponseModel
}

TaobaoUmpShoutaotagAddAPIResponse 手淘定向优惠打标接口 API返回值 taobao.ump.shoutaotag.add

手淘定向优惠的优惠标签打标接口 给特定的手淘买家打上优惠标记,标记承载在自己的业务标签库中,标签有效期为7天。

type TaobaoUmpShoutaotagAddAPIResponseModel

type TaobaoUmpShoutaotagAddAPIResponseModel struct {
	XMLName xml.Name `xml:"ump_shoutaotag_add_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 是否打标成功
	AddResult bool `json:"add_result,omitempty" xml:"add_result,omitempty"`
}

TaobaoUmpShoutaotagAddAPIResponseModel is 手淘定向优惠打标接口 成功返回结果

type TaobaoUmpToolGetAPIRequest

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

TaobaoUmpToolGetAPIRequest 查询工具 API请求 taobao.ump.tool.get

根据工具id获取一个工具对象

func NewTaobaoUmpToolGetRequest

func NewTaobaoUmpToolGetRequest() *TaobaoUmpToolGetAPIRequest

NewTaobaoUmpToolGetRequest 初始化TaobaoUmpToolGetAPIRequest对象

func (TaobaoUmpToolGetAPIRequest) GetApiMethodName

func (r TaobaoUmpToolGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoUmpToolGetAPIRequest) GetApiParams

func (r TaobaoUmpToolGetAPIRequest) GetApiParams() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoUmpToolGetAPIRequest) GetToolId

func (r TaobaoUmpToolGetAPIRequest) GetToolId() int64

GetToolId ToolId Getter

func (*TaobaoUmpToolGetAPIRequest) SetToolId

func (r *TaobaoUmpToolGetAPIRequest) SetToolId(_toolId int64) error

SetToolId is ToolId Setter 工具的id

type TaobaoUmpToolGetAPIResponse

type TaobaoUmpToolGetAPIResponse struct {
	model.CommonResponse
	TaobaoUmpToolGetAPIResponseModel
}

TaobaoUmpToolGetAPIResponse 查询工具 API返回值 taobao.ump.tool.get

根据工具id获取一个工具对象

type TaobaoUmpToolGetAPIResponseModel

type TaobaoUmpToolGetAPIResponseModel struct {
	XMLName xml.Name `xml:"ump_tool_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 工具信息内容,格式为json,可以通过提供给的sdk里面的MarketingBuilder来处理这个内容
	Content string `json:"content,omitempty" xml:"content,omitempty"`
}

TaobaoUmpToolGetAPIResponseModel is 查询工具 成功返回结果

type TaobaoUmpToolsGetAPIRequest

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

TaobaoUmpToolsGetAPIRequest 查询工具列表 API请求 taobao.ump.tools.get

查询工具列表

func NewTaobaoUmpToolsGetRequest

func NewTaobaoUmpToolsGetRequest() *TaobaoUmpToolsGetAPIRequest

NewTaobaoUmpToolsGetRequest 初始化TaobaoUmpToolsGetAPIRequest对象

func (TaobaoUmpToolsGetAPIRequest) GetApiMethodName

func (r TaobaoUmpToolsGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoUmpToolsGetAPIRequest) GetApiParams

func (r TaobaoUmpToolsGetAPIRequest) GetApiParams() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoUmpToolsGetAPIRequest) GetToolCode

func (r TaobaoUmpToolsGetAPIRequest) GetToolCode() string

GetToolCode ToolCode Getter

func (*TaobaoUmpToolsGetAPIRequest) SetToolCode

func (r *TaobaoUmpToolsGetAPIRequest) SetToolCode(_toolCode string) error

SetToolCode is ToolCode Setter 工具编码

type TaobaoUmpToolsGetAPIResponse

type TaobaoUmpToolsGetAPIResponse struct {
	model.CommonResponse
	TaobaoUmpToolsGetAPIResponseModel
}

TaobaoUmpToolsGetAPIResponse 查询工具列表 API返回值 taobao.ump.tools.get

查询工具列表

type TaobaoUmpToolsGetAPIResponseModel

type TaobaoUmpToolsGetAPIResponseModel struct {
	XMLName xml.Name `xml:"ump_tools_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 工具列表,单个内容为json格式,需要通过ump的sdk提供的MarketingBuilder来进行处理
	Tools []string `json:"tools,omitempty" xml:"tools>string,omitempty"`
}

TaobaoUmpToolsGetAPIResponseModel is 查询工具列表 成功返回结果

type TmallCcfCrowdActivityuserUploadAPIRequest

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

TmallCcfCrowdActivityuserUploadAPIRequest 品牌营销活动用户上传 API请求 tmall.ccf.crowd.activityuser.upload

搜集ISV的活动用户信息,将其沉淀为活动人群数据

func NewTmallCcfCrowdActivityuserUploadRequest

func NewTmallCcfCrowdActivityuserUploadRequest() *TmallCcfCrowdActivityuserUploadAPIRequest

NewTmallCcfCrowdActivityuserUploadRequest 初始化TmallCcfCrowdActivityuserUploadAPIRequest对象

func (TmallCcfCrowdActivityuserUploadAPIRequest) GetActivityId

GetActivityId ActivityId Getter

func (TmallCcfCrowdActivityuserUploadAPIRequest) GetApiMethodName

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallCcfCrowdActivityuserUploadAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (TmallCcfCrowdActivityuserUploadAPIRequest) GetCrowdTypes

GetCrowdTypes CrowdTypes Getter

func (TmallCcfCrowdActivityuserUploadAPIRequest) GetTaobaoAppKey

GetTaobaoAppKey TaobaoAppKey Getter

func (TmallCcfCrowdActivityuserUploadAPIRequest) GetTaobaoOpenId

GetTaobaoOpenId TaobaoOpenId Getter

func (*TmallCcfCrowdActivityuserUploadAPIRequest) SetActivityId

func (r *TmallCcfCrowdActivityuserUploadAPIRequest) SetActivityId(_activityId int64) error

SetActivityId is ActivityId Setter 活动id

func (*TmallCcfCrowdActivityuserUploadAPIRequest) SetCrowdTypes

func (r *TmallCcfCrowdActivityuserUploadAPIRequest) SetCrowdTypes(_crowdTypes []string) error

SetCrowdTypes is CrowdTypes Setter 人群类型

func (*TmallCcfCrowdActivityuserUploadAPIRequest) SetTaobaoAppKey

func (r *TmallCcfCrowdActivityuserUploadAPIRequest) SetTaobaoAppKey(_taobaoAppKey string) error

SetTaobaoAppKey is TaobaoAppKey Setter 小程序对应的appKey

func (*TmallCcfCrowdActivityuserUploadAPIRequest) SetTaobaoOpenId

func (r *TmallCcfCrowdActivityuserUploadAPIRequest) SetTaobaoOpenId(_taobaoOpenId string) error

SetTaobaoOpenId is TaobaoOpenId Setter 淘宝小程序的openid

type TmallCcfCrowdActivityuserUploadAPIResponse

type TmallCcfCrowdActivityuserUploadAPIResponse struct {
	model.CommonResponse
	TmallCcfCrowdActivityuserUploadAPIResponseModel
}

TmallCcfCrowdActivityuserUploadAPIResponse 品牌营销活动用户上传 API返回值 tmall.ccf.crowd.activityuser.upload

搜集ISV的活动用户信息,将其沉淀为活动人群数据

type TmallCcfCrowdActivityuserUploadAPIResponseModel

type TmallCcfCrowdActivityuserUploadAPIResponseModel struct {
	XMLName xml.Name `xml:"tmall_ccf_crowd_activityuser_upload_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 错误码
	ECode string `json:"e_code,omitempty" xml:"e_code,omitempty"`
	// 错误信息
	EMsg string `json:"e_msg,omitempty" xml:"e_msg,omitempty"`
	// 返回结果
	Data bool `json:"data,omitempty" xml:"data,omitempty"`
	// 是否失败
	Failed bool `json:"failed,omitempty" xml:"failed,omitempty"`
	// 是否成功
	Suc bool `json:"suc,omitempty" xml:"suc,omitempty"`
}

TmallCcfCrowdActivityuserUploadAPIResponseModel is 品牌营销活动用户上传 成功返回结果

type TmallPromotagTagApplyAPIRequest

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

TmallPromotagTagApplyAPIRequest 优惠标签申请 API请求 tmall.promotag.tag.apply

创建优惠标签

func NewTmallPromotagTagApplyRequest

func NewTmallPromotagTagApplyRequest() *TmallPromotagTagApplyAPIRequest

NewTmallPromotagTagApplyRequest 初始化TmallPromotagTagApplyAPIRequest对象

func (TmallPromotagTagApplyAPIRequest) GetApiMethodName

func (r TmallPromotagTagApplyAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallPromotagTagApplyAPIRequest) GetApiParams

func (r TmallPromotagTagApplyAPIRequest) GetApiParams() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (TmallPromotagTagApplyAPIRequest) GetEndTime

func (r TmallPromotagTagApplyAPIRequest) GetEndTime() string

GetEndTime EndTime Getter

func (TmallPromotagTagApplyAPIRequest) GetStartTime

func (r TmallPromotagTagApplyAPIRequest) GetStartTime() string

GetStartTime StartTime Getter

func (TmallPromotagTagApplyAPIRequest) GetTagDesc

func (r TmallPromotagTagApplyAPIRequest) GetTagDesc() string

GetTagDesc TagDesc Getter

func (TmallPromotagTagApplyAPIRequest) GetTagName

func (r TmallPromotagTagApplyAPIRequest) GetTagName() string

GetTagName TagName Getter

func (*TmallPromotagTagApplyAPIRequest) SetEndTime

func (r *TmallPromotagTagApplyAPIRequest) SetEndTime(_endTime string) error

SetEndTime is EndTime Setter 标签结束时间

func (*TmallPromotagTagApplyAPIRequest) SetStartTime

func (r *TmallPromotagTagApplyAPIRequest) SetStartTime(_startTime string) error

SetStartTime is StartTime Setter 标签开始时间

func (*TmallPromotagTagApplyAPIRequest) SetTagDesc

func (r *TmallPromotagTagApplyAPIRequest) SetTagDesc(_tagDesc string) error

SetTagDesc is TagDesc Setter 标签用途描述

func (*TmallPromotagTagApplyAPIRequest) SetTagName

func (r *TmallPromotagTagApplyAPIRequest) SetTagName(_tagName string) error

SetTagName is TagName Setter 标签名称。注意在UMP中使用新人群标签top变成大写的“NEW_” 如:老标签是top1234,新标签是NEW_1234 。

type TmallPromotagTagApplyAPIResponse

type TmallPromotagTagApplyAPIResponse struct {
	model.CommonResponse
	TmallPromotagTagApplyAPIResponseModel
}

TmallPromotagTagApplyAPIResponse 优惠标签申请 API返回值 tmall.promotag.tag.apply

创建优惠标签

type TmallPromotagTagApplyAPIResponseModel

type TmallPromotagTagApplyAPIResponseModel struct {
	XMLName xml.Name `xml:"tmall_promotag_tag_apply_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 优惠标签ID
	TagId int64 `json:"tag_id,omitempty" xml:"tag_id,omitempty"`
	// 是否设置成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

TmallPromotagTagApplyAPIResponseModel is 优惠标签申请 成功返回结果

type TmallPromotagTagFindAPIRequest

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

TmallPromotagTagFindAPIRequest 查询标签接口 API请求 tmall.promotag.tag.find

查询用户创建的所有标签

func NewTmallPromotagTagFindRequest

func NewTmallPromotagTagFindRequest() *TmallPromotagTagFindAPIRequest

NewTmallPromotagTagFindRequest 初始化TmallPromotagTagFindAPIRequest对象

func (TmallPromotagTagFindAPIRequest) GetApiMethodName

func (r TmallPromotagTagFindAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallPromotagTagFindAPIRequest) GetApiParams

func (r TmallPromotagTagFindAPIRequest) GetApiParams() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (TmallPromotagTagFindAPIRequest) GetPageNo

func (r TmallPromotagTagFindAPIRequest) GetPageNo() int64

GetPageNo PageNo Getter

func (TmallPromotagTagFindAPIRequest) GetPageSize

func (r TmallPromotagTagFindAPIRequest) GetPageSize() int64

GetPageSize PageSize Getter

func (TmallPromotagTagFindAPIRequest) GetTagId

GetTagId TagId Getter

func (TmallPromotagTagFindAPIRequest) GetTagName

func (r TmallPromotagTagFindAPIRequest) GetTagName() string

GetTagName TagName Getter

func (*TmallPromotagTagFindAPIRequest) SetPageNo

func (r *TmallPromotagTagFindAPIRequest) SetPageNo(_pageNo int64) error

SetPageNo is PageNo Setter 当前页码

func (*TmallPromotagTagFindAPIRequest) SetPageSize

func (r *TmallPromotagTagFindAPIRequest) SetPageSize(_pageSize int64) error

SetPageSize is PageSize Setter 每页显示个数

func (*TmallPromotagTagFindAPIRequest) SetTagId

func (r *TmallPromotagTagFindAPIRequest) SetTagId(_tagId int64) error

SetTagId is TagId Setter 标签ID

func (*TmallPromotagTagFindAPIRequest) SetTagName

func (r *TmallPromotagTagFindAPIRequest) SetTagName(_tagName string) error

SetTagName is TagName Setter 标签名称,查询时可选项

type TmallPromotagTagFindAPIResponse

type TmallPromotagTagFindAPIResponse struct {
	model.CommonResponse
	TmallPromotagTagFindAPIResponseModel
}

TmallPromotagTagFindAPIResponse 查询标签接口 API返回值 tmall.promotag.tag.find

查询用户创建的所有标签

type TmallPromotagTagFindAPIResponseModel

type TmallPromotagTagFindAPIResponseModel struct {
	XMLName xml.Name `xml:"tmall_promotag_tag_find_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 查询结果类型
	QueryResult *PromotionTagQuery `json:"query_result,omitempty" xml:"query_result,omitempty"`
}

TmallPromotagTagFindAPIResponseModel is 查询标签接口 成功返回结果

type TmallPromotagTagRemovetagAPIRequest

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

TmallPromotagTagRemovetagAPIRequest 删除标签定义 API请求 tmall.promotag.tag.removetag

用于删除标签定义,但是要确保目前该标签没有人群在使用。

func NewTmallPromotagTagRemovetagRequest

func NewTmallPromotagTagRemovetagRequest() *TmallPromotagTagRemovetagAPIRequest

NewTmallPromotagTagRemovetagRequest 初始化TmallPromotagTagRemovetagAPIRequest对象

func (TmallPromotagTagRemovetagAPIRequest) GetApiMethodName

func (r TmallPromotagTagRemovetagAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallPromotagTagRemovetagAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (TmallPromotagTagRemovetagAPIRequest) GetTagId

GetTagId TagId Getter

func (*TmallPromotagTagRemovetagAPIRequest) SetTagId

func (r *TmallPromotagTagRemovetagAPIRequest) SetTagId(_tagId int64) error

SetTagId is TagId Setter 需要删除的标签id

type TmallPromotagTagRemovetagAPIResponse

type TmallPromotagTagRemovetagAPIResponse struct {
	model.CommonResponse
	TmallPromotagTagRemovetagAPIResponseModel
}

TmallPromotagTagRemovetagAPIResponse 删除标签定义 API返回值 tmall.promotag.tag.removetag

用于删除标签定义,但是要确保目前该标签没有人群在使用。

type TmallPromotagTagRemovetagAPIResponseModel

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

TmallPromotagTagRemovetagAPIResponseModel is 删除标签定义 成功返回结果

type TmallPromotagTaguserJudgeAPIRequest

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

TmallPromotagTaguserJudgeAPIRequest 用户标签判断接口 API请求 tmall.promotag.taguser.judge

查询用户是否有标签

func NewTmallPromotagTaguserJudgeRequest

func NewTmallPromotagTaguserJudgeRequest() *TmallPromotagTaguserJudgeAPIRequest

NewTmallPromotagTaguserJudgeRequest 初始化TmallPromotagTaguserJudgeAPIRequest对象

func (TmallPromotagTaguserJudgeAPIRequest) GetApiMethodName

func (r TmallPromotagTaguserJudgeAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallPromotagTaguserJudgeAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (TmallPromotagTaguserJudgeAPIRequest) GetNick

GetNick Nick Getter

func (TmallPromotagTaguserJudgeAPIRequest) GetOpenid added in v1.2.5

GetOpenid Openid Getter

func (TmallPromotagTaguserJudgeAPIRequest) GetOuid added in v1.2.5

GetOuid Ouid Getter

func (TmallPromotagTaguserJudgeAPIRequest) GetTagId

GetTagId TagId Getter

func (*TmallPromotagTaguserJudgeAPIRequest) SetNick

SetNick is Nick Setter 昵称

func (*TmallPromotagTaguserJudgeAPIRequest) SetOpenid added in v1.2.5

func (r *TmallPromotagTaguserJudgeAPIRequest) SetOpenid(_openid string) error

SetOpenid is Openid Setter 买家ID

func (*TmallPromotagTaguserJudgeAPIRequest) SetOuid added in v1.2.5

SetOuid is Ouid Setter 买家ID

func (*TmallPromotagTaguserJudgeAPIRequest) SetTagId

func (r *TmallPromotagTaguserJudgeAPIRequest) SetTagId(_tagId int64) error

SetTagId is TagId Setter 标签ID

type TmallPromotagTaguserJudgeAPIResponse

type TmallPromotagTaguserJudgeAPIResponse struct {
	model.CommonResponse
	TmallPromotagTaguserJudgeAPIResponseModel
}

TmallPromotagTaguserJudgeAPIResponse 用户标签判断接口 API返回值 tmall.promotag.taguser.judge

查询用户是否有标签

type TmallPromotagTaguserJudgeAPIResponseModel

type TmallPromotagTaguserJudgeAPIResponseModel struct {
	XMLName xml.Name `xml:"tmall_promotag_taguser_judge_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 服务调用是否成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
	// 用户是否有标签
	HasTag bool `json:"has_tag,omitempty" xml:"has_tag,omitempty"`
}

TmallPromotagTaguserJudgeAPIResponseModel is 用户标签判断接口 成功返回结果

type TmallPromotagTaguserRemoveAPIRequest

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

TmallPromotagTaguserRemoveAPIRequest 给用户移除优惠标签 API请求 tmall.promotag.taguser.remove

给用户载体去标

func NewTmallPromotagTaguserRemoveRequest

func NewTmallPromotagTaguserRemoveRequest() *TmallPromotagTaguserRemoveAPIRequest

NewTmallPromotagTaguserRemoveRequest 初始化TmallPromotagTaguserRemoveAPIRequest对象

func (TmallPromotagTaguserRemoveAPIRequest) GetApiMethodName

func (r TmallPromotagTaguserRemoveAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallPromotagTaguserRemoveAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (TmallPromotagTaguserRemoveAPIRequest) GetNick

GetNick Nick Getter

func (TmallPromotagTaguserRemoveAPIRequest) GetOpenid added in v1.2.5

GetOpenid Openid Getter

func (TmallPromotagTaguserRemoveAPIRequest) GetOuid added in v1.2.5

GetOuid Ouid Getter

func (TmallPromotagTaguserRemoveAPIRequest) GetTagId

GetTagId TagId Getter

func (*TmallPromotagTaguserRemoveAPIRequest) SetNick

SetNick is Nick Setter 昵称

func (*TmallPromotagTaguserRemoveAPIRequest) SetOpenid added in v1.2.5

func (r *TmallPromotagTaguserRemoveAPIRequest) SetOpenid(_openid string) error

SetOpenid is Openid Setter 用户ID

func (*TmallPromotagTaguserRemoveAPIRequest) SetOuid added in v1.2.5

SetOuid is Ouid Setter 用户ID

func (*TmallPromotagTaguserRemoveAPIRequest) SetTagId

func (r *TmallPromotagTaguserRemoveAPIRequest) SetTagId(_tagId int64) error

SetTagId is TagId Setter 标签ID

type TmallPromotagTaguserRemoveAPIResponse

type TmallPromotagTaguserRemoveAPIResponse struct {
	model.CommonResponse
	TmallPromotagTaguserRemoveAPIResponseModel
}

TmallPromotagTaguserRemoveAPIResponse 给用户移除优惠标签 API返回值 tmall.promotag.taguser.remove

给用户载体去标

type TmallPromotagTaguserRemoveAPIResponseModel

type TmallPromotagTaguserRemoveAPIResponseModel struct {
	XMLName xml.Name `xml:"tmall_promotag_taguser_remove_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 打标结果是否成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

TmallPromotagTaguserRemoveAPIResponseModel is 给用户移除优惠标签 成功返回结果

type TmallPromotagTaguserSaveAPIRequest

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

TmallPromotagTaguserSaveAPIRequest 给用户打上优惠标签 API请求 tmall.promotag.taguser.save

给用户载体打标

func NewTmallPromotagTaguserSaveRequest

func NewTmallPromotagTaguserSaveRequest() *TmallPromotagTaguserSaveAPIRequest

NewTmallPromotagTaguserSaveRequest 初始化TmallPromotagTaguserSaveAPIRequest对象

func (TmallPromotagTaguserSaveAPIRequest) GetApiMethodName

func (r TmallPromotagTaguserSaveAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallPromotagTaguserSaveAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (TmallPromotagTaguserSaveAPIRequest) GetNick

GetNick Nick Getter

func (TmallPromotagTaguserSaveAPIRequest) GetOpenid added in v1.2.5

GetOpenid Openid Getter

func (TmallPromotagTaguserSaveAPIRequest) GetOuid added in v1.2.5

GetOuid Ouid Getter

func (TmallPromotagTaguserSaveAPIRequest) GetTagId

GetTagId TagId Getter

func (*TmallPromotagTaguserSaveAPIRequest) SetNick

SetNick is Nick Setter 昵称

func (*TmallPromotagTaguserSaveAPIRequest) SetOpenid added in v1.2.5

func (r *TmallPromotagTaguserSaveAPIRequest) SetOpenid(_openid string) error

SetOpenid is Openid Setter 用户ID

func (*TmallPromotagTaguserSaveAPIRequest) SetOuid added in v1.2.5

SetOuid is Ouid Setter 用户ID

func (*TmallPromotagTaguserSaveAPIRequest) SetTagId

func (r *TmallPromotagTaguserSaveAPIRequest) SetTagId(_tagId int64) error

SetTagId is TagId Setter 标签ID

type TmallPromotagTaguserSaveAPIResponse

type TmallPromotagTaguserSaveAPIResponse struct {
	model.CommonResponse
	TmallPromotagTaguserSaveAPIResponseModel
}

TmallPromotagTaguserSaveAPIResponse 给用户打上优惠标签 API返回值 tmall.promotag.taguser.save

给用户载体打标

type TmallPromotagTaguserSaveAPIResponseModel

type TmallPromotagTaguserSaveAPIResponseModel struct {
	XMLName xml.Name `xml:"tmall_promotag_taguser_save_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 打标结果是否成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

TmallPromotagTaguserSaveAPIResponseModel is 给用户打上优惠标签 成功返回结果

type TmallPromotionCouponQueryAPIRequest

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

TmallPromotionCouponQueryAPIRequest 查询可用优惠券列表 API请求 tmall.promotion.coupon.query

查询用户的可用优惠券列表,仅包含优惠券基本信息和用户nick

func NewTmallPromotionCouponQueryRequest

func NewTmallPromotionCouponQueryRequest() *TmallPromotionCouponQueryAPIRequest

NewTmallPromotionCouponQueryRequest 初始化TmallPromotionCouponQueryAPIRequest对象

func (TmallPromotionCouponQueryAPIRequest) GetApiMethodName

func (r TmallPromotionCouponQueryAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallPromotionCouponQueryAPIRequest) GetApiParams

GetApiParams IRequest interface 方法, 获取API参数

func (TmallPromotionCouponQueryAPIRequest) GetBizType

GetBizType BizType Getter

func (TmallPromotionCouponQueryAPIRequest) GetBuyerId

GetBuyerId BuyerId Getter

func (TmallPromotionCouponQueryAPIRequest) GetBuyerNick

GetBuyerNick BuyerNick Getter

func (TmallPromotionCouponQueryAPIRequest) GetExtra added in v1.2.5

GetExtra Extra Getter

func (*TmallPromotionCouponQueryAPIRequest) SetBizType

func (r *TmallPromotionCouponQueryAPIRequest) SetBizType(_bizType string) error

SetBizType is BizType Setter 业务类型

func (*TmallPromotionCouponQueryAPIRequest) SetBuyerId

func (r *TmallPromotionCouponQueryAPIRequest) SetBuyerId(_buyerId string) error

SetBuyerId is BuyerId Setter buyer_id、buyer_nick至少填一个, 都填写以id为准

func (*TmallPromotionCouponQueryAPIRequest) SetBuyerNick

func (r *TmallPromotionCouponQueryAPIRequest) SetBuyerNick(_buyerNick string) error

SetBuyerNick is BuyerNick Setter buyer_id、buyer_nick至少填一个, 都填写以id为准

func (*TmallPromotionCouponQueryAPIRequest) SetExtra added in v1.2.5

func (r *TmallPromotionCouponQueryAPIRequest) SetExtra(_extra string) error

SetExtra is Extra Setter 扩展字段

type TmallPromotionCouponQueryAPIResponse

type TmallPromotionCouponQueryAPIResponse struct {
	model.CommonResponse
	TmallPromotionCouponQueryAPIResponseModel
}

TmallPromotionCouponQueryAPIResponse 查询可用优惠券列表 API返回值 tmall.promotion.coupon.query

查询用户的可用优惠券列表,仅包含优惠券基本信息和用户nick

type TmallPromotionCouponQueryAPIResponseModel

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

TmallPromotionCouponQueryAPIResponseModel is 查询可用优惠券列表 成功返回结果

type TmallPromotionCouponQueryData

type TmallPromotionCouponQueryData struct {
	// discount
	Discount string `json:"discount,omitempty" xml:"discount,omitempty"`
	// startFee
	StartFee string `json:"start_fee,omitempty" xml:"start_fee,omitempty"`
	// couponName
	CouponName string `json:"coupon_name,omitempty" xml:"coupon_name,omitempty"`
	// endTime
	EndTime string `json:"end_time,omitempty" xml:"end_time,omitempty"`
	// startTime
	StartTime string `json:"start_time,omitempty" xml:"start_time,omitempty"`
	// supplierId
	SupplierId string `json:"supplier_id,omitempty" xml:"supplier_id,omitempty"`
	// couponTemplateId
	CouponTemplateId string `json:"coupon_template_id,omitempty" xml:"coupon_template_id,omitempty"`
	// id
	Id string `json:"id,omitempty" xml:"id,omitempty"`
}

TmallPromotionCouponQueryData 结构体

type TmallPromotionCouponQueryResult

type TmallPromotionCouponQueryResult struct {
	// data
	DataList []TmallPromotionCouponQueryData `json:"data_list,omitempty" xml:"data_list>tmall_promotion_coupon_query_data,omitempty"`
	// errorMsg
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
	// resultCode
	ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"`
}

TmallPromotionCouponQueryResult 结构体

type TmallPromotionCouponUseAPIRequest

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

TmallPromotionCouponUseAPIRequest 券核销接口 API请求 tmall.promotion.coupon.use

核销用户的一张优惠券,返回核销结果

func NewTmallPromotionCouponUseRequest

func NewTmallPromotionCouponUseRequest() *TmallPromotionCouponUseAPIRequest

NewTmallPromotionCouponUseRequest 初始化TmallPromotionCouponUseAPIRequest对象

func (TmallPromotionCouponUseAPIRequest) GetApiMethodName

func (r TmallPromotionCouponUseAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallPromotionCouponUseAPIRequest) GetApiParams

func (r TmallPromotionCouponUseAPIRequest) GetApiParams() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (TmallPromotionCouponUseAPIRequest) GetBizType

GetBizType BizType Getter

func (TmallPromotionCouponUseAPIRequest) GetBuyerId

GetBuyerId BuyerId Getter

func (TmallPromotionCouponUseAPIRequest) GetBuyerNick

func (r TmallPromotionCouponUseAPIRequest) GetBuyerNick() string

GetBuyerNick BuyerNick Getter

func (TmallPromotionCouponUseAPIRequest) GetCouponId

func (r TmallPromotionCouponUseAPIRequest) GetCouponId() string

GetCouponId CouponId Getter

func (TmallPromotionCouponUseAPIRequest) GetExtra

GetExtra Extra Getter

func (TmallPromotionCouponUseAPIRequest) GetSellerId

func (r TmallPromotionCouponUseAPIRequest) GetSellerId() string

GetSellerId SellerId Getter

func (*TmallPromotionCouponUseAPIRequest) SetBizType

func (r *TmallPromotionCouponUseAPIRequest) SetBizType(_bizType string) error

SetBizType is BizType Setter 业务类型

func (*TmallPromotionCouponUseAPIRequest) SetBuyerId

func (r *TmallPromotionCouponUseAPIRequest) SetBuyerId(_buyerId string) error

SetBuyerId is BuyerId Setter buyer_id、buyer_nick至少填一个, 都填写以id为准

func (*TmallPromotionCouponUseAPIRequest) SetBuyerNick

func (r *TmallPromotionCouponUseAPIRequest) SetBuyerNick(_buyerNick string) error

SetBuyerNick is BuyerNick Setter buyer_id、buyer_nick至少填一个, 都填写以id为准

func (*TmallPromotionCouponUseAPIRequest) SetCouponId

func (r *TmallPromotionCouponUseAPIRequest) SetCouponId(_couponId string) error

SetCouponId is CouponId Setter 优惠券id

func (*TmallPromotionCouponUseAPIRequest) SetExtra

func (r *TmallPromotionCouponUseAPIRequest) SetExtra(_extra string) error

SetExtra is Extra Setter 扩展字段

func (*TmallPromotionCouponUseAPIRequest) SetSellerId

func (r *TmallPromotionCouponUseAPIRequest) SetSellerId(_sellerId string) error

SetSellerId is SellerId Setter 商家id

type TmallPromotionCouponUseAPIResponse

type TmallPromotionCouponUseAPIResponse struct {
	model.CommonResponse
	TmallPromotionCouponUseAPIResponseModel
}

TmallPromotionCouponUseAPIResponse 券核销接口 API返回值 tmall.promotion.coupon.use

核销用户的一张优惠券,返回核销结果

type TmallPromotionCouponUseAPIResponseModel

type TmallPromotionCouponUseAPIResponseModel struct {
	XMLName xml.Name `xml:"tmall_promotion_coupon_use_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// resultCode
	ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"`
	// errorMsg
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
	// data
	Data *UseResultDo `json:"data,omitempty" xml:"data,omitempty"`
}

TmallPromotionCouponUseAPIResponseModel is 券核销接口 成功返回结果

type UpdateBenefitActivityRequest

type UpdateBenefitActivityRequest struct {
	// 需要删除的已经关联的权益
	DeleteDetailVos []DeleteActivityBenefitDetailVo `json:"delete_detail_vos,omitempty" xml:"delete_detail_vos>delete_activity_benefit_detail_vo,omitempty"`
	// 活动关联的权益信息列表,可以从权益选择器API中获取
	AddDetailVos []ActivityBenefitDetailVo `json:"add_detail_vos,omitempty" xml:"add_detail_vos>activity_benefit_detail_vo,omitempty"`
	// 同步权益活动的概述信息,方便卖家后台查看
	BenefitActivityVo *UpdateBenefitActivityVo `json:"benefit_activity_vo,omitempty" xml:"benefit_activity_vo,omitempty"`
}

UpdateBenefitActivityRequest 结构体

type UpdateBenefitActivityVo

type UpdateBenefitActivityVo struct {
	// ISV活动的活动地址
	ActivityUrl string `json:"activity_url,omitempty" xml:"activity_url,omitempty"`
	// 活动描述
	Desc string `json:"desc,omitempty" xml:"desc,omitempty"`
	// 活动名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// ISV活动关联权益后获得的关联ID
	RelationId int64 `json:"relation_id,omitempty" xml:"relation_id,omitempty"`
}

UpdateBenefitActivityVo 结构体

type UseResultDo

type UseResultDo struct {
	// isUsed
	IsUsed bool `json:"is_used,omitempty" xml:"is_used,omitempty"`
}

UseResultDo 结构体

type UserInfo

type UserInfo struct {
	// 来源
	Source string `json:"source,omitempty" xml:"source,omitempty"`
	// 用户名称
	UserName string `json:"user_name,omitempty" xml:"user_name,omitempty"`
	// 用户id
	UserId int64 `json:"user_id,omitempty" xml:"user_id,omitempty"`
}

UserInfo 结构体

type WdkCouponAbandonParam

type WdkCouponAbandonParam struct {
	// 券涞源 写死
	CouponSource string `json:"coupon_source,omitempty" xml:"coupon_source,omitempty"`
	// 优惠券模版id
	TemplateId string `json:"template_id,omitempty" xml:"template_id,omitempty"`
	// 匿名码
	MaCode string `json:"ma_code,omitempty" xml:"ma_code,omitempty"`
	// 用户id 写死
	UserId int64 `json:"user_id,omitempty" xml:"user_id,omitempty"`
	// 卡券实例id
	VoucherId int64 `json:"voucher_id,omitempty" xml:"voucher_id,omitempty"`
}

WdkCouponAbandonParam 结构体

type WdkCouponApplyParam

type WdkCouponApplyParam struct {
	// 申请渠道
	ApplyChannel string `json:"apply_channel,omitempty" xml:"apply_channel,omitempty"`
	// 券领取来源,非必填,用于区分不同的业务来源,默认传空为领取普通优惠券
	ApplySource string `json:"apply_source,omitempty" xml:"apply_source,omitempty"`
	// 卡券来源  [ump:ump卡券; koubei:口碑券]
	CouponSource string `json:"coupon_source,omitempty" xml:"coupon_source,omitempty"`
	// 拓展属性
	Features string `json:"features,omitempty" xml:"features,omitempty"`
	// 外部业务id
	OutBizNo string `json:"out_biz_no,omitempty" xml:"out_biz_no,omitempty"`
	// 优惠券模版id
	TemplateId string `json:"template_id,omitempty" xml:"template_id,omitempty"`
	// 优惠券模版uuid
	Uuid string `json:"uuid,omitempty" xml:"uuid,omitempty"`
	// 幂等键
	IdempotentKey string `json:"idempotent_key,omitempty" xml:"idempotent_key,omitempty"`
	// 领取淘系id
	UserId int64 `json:"user_id,omitempty" xml:"user_id,omitempty"`
}

WdkCouponApplyParam 结构体

Source Files

Jump to

Keyboard shortcuts

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