promotion

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

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

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

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 added in v1.3.1

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

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

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

func NewAlibabaargusupdateredriskRequest added in v1.3.1

func NewAlibabaargusupdateredriskRequest() *AlibabaargusupdateredriskAPIRequest

NewAlibabaargusupdateredriskRequest 初始化AlibabaargusupdateredriskAPIRequest对象

func (AlibabaargusupdateredriskAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabaargusupdateredriskAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaargusupdateredriskAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaargusupdateredriskAPIRequest) GetRawParams added in v1.3.1

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

func (AlibabaargusupdateredriskAPIRequest) GetRedRiskUpdateFactor added in v1.3.1

func (r AlibabaargusupdateredriskAPIRequest) GetRedRiskUpdateFactor() *RedRiskUpdateFactor

GetRedRiskUpdateFactor RedRiskUpdateFactor Getter

func (*AlibabaargusupdateredriskAPIRequest) SetRedRiskUpdateFactor added in v1.3.1

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

SetRedRiskUpdateFactor is RedRiskUpdateFactor Setter 红线价格参数

type AlibabaargusupdateredriskAPIResponse added in v1.3.1

type AlibabaargusupdateredriskAPIResponse struct {
	model.CommonResponse
	AlibabaargusupdateredriskAPIResponseModel
}

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

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

type AlibabaargusupdateredriskAPIResponseModel added in v1.3.1

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 added in v1.3.1

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

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

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

func NewAlibabaasrdataservicepromotionruledeleteRequest added in v1.3.1

func NewAlibabaasrdataservicepromotionruledeleteRequest() *AlibabaasrdataservicepromotionruledeleteAPIRequest

NewAlibabaasrdataservicepromotionruledeleteRequest 初始化AlibabaasrdataservicepromotionruledeleteAPIRequest对象

func (AlibabaasrdataservicepromotionruledeleteAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaasrdataservicepromotionruledeleteAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaasrdataservicepromotionruledeleteAPIRequest) GetPosKey added in v1.3.1

GetPosKey PosKey Getter

func (AlibabaasrdataservicepromotionruledeleteAPIRequest) GetRawParams added in v1.3.1

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

func (*AlibabaasrdataservicepromotionruledeleteAPIRequest) SetPosKey added in v1.3.1

SetPosKey is PosKey Setter poskey

type AlibabaasrdataservicepromotionruledeleteAPIResponse added in v1.3.1

type AlibabaasrdataservicepromotionruledeleteAPIResponse struct {
	model.CommonResponse
	AlibabaasrdataservicepromotionruledeleteAPIResponseModel
}

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

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

type AlibabaasrdataservicepromotionruledeleteAPIResponseModel added in v1.3.1

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 added in v1.3.1

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

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

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

func NewAlibabaasrdataservicepromotionrulequeryRequest added in v1.3.1

func NewAlibabaasrdataservicepromotionrulequeryRequest() *AlibabaasrdataservicepromotionrulequeryAPIRequest

NewAlibabaasrdataservicepromotionrulequeryRequest 初始化AlibabaasrdataservicepromotionrulequeryAPIRequest对象

func (AlibabaasrdataservicepromotionrulequeryAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaasrdataservicepromotionrulequeryAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaasrdataservicepromotionrulequeryAPIRequest) GetPageNo added in v1.3.1

GetPageNo PageNo Getter

func (AlibabaasrdataservicepromotionrulequeryAPIRequest) GetPageSize added in v1.3.1

GetPageSize PageSize Getter

func (AlibabaasrdataservicepromotionrulequeryAPIRequest) GetRawParams added in v1.3.1

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

func (*AlibabaasrdataservicepromotionrulequeryAPIRequest) SetPageNo added in v1.3.1

SetPageNo is PageNo Setter 当前页

func (*AlibabaasrdataservicepromotionrulequeryAPIRequest) SetPageSize added in v1.3.1

SetPageSize is PageSize Setter 每页数量

type AlibabaasrdataservicepromotionrulequeryAPIResponse added in v1.3.1

type AlibabaasrdataservicepromotionrulequeryAPIResponse struct {
	model.CommonResponse
	AlibabaasrdataservicepromotionrulequeryAPIResponseModel
}

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

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

type AlibabaasrdataservicepromotionrulequeryAPIResponseModel added in v1.3.1

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 added in v1.3.1

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 added in v1.3.1

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

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

星巴克优惠规则写入

func NewAlibabaasrdataservicepromotionrulewriteRequest added in v1.3.1

func NewAlibabaasrdataservicepromotionrulewriteRequest() *AlibabaasrdataservicepromotionrulewriteAPIRequest

NewAlibabaasrdataservicepromotionrulewriteRequest 初始化AlibabaasrdataservicepromotionrulewriteAPIRequest对象

func (AlibabaasrdataservicepromotionrulewriteAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaasrdataservicepromotionrulewriteAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaasrdataservicepromotionrulewriteAPIRequest) GetPoskeyPromotionRuleDto added in v1.3.1

GetPoskeyPromotionRuleDto PoskeyPromotionRuleDto Getter

func (AlibabaasrdataservicepromotionrulewriteAPIRequest) GetRawParams added in v1.3.1

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

func (*AlibabaasrdataservicepromotionrulewriteAPIRequest) SetPoskeyPromotionRuleDto added in v1.3.1

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

SetPoskeyPromotionRuleDto is PoskeyPromotionRuleDto Setter 入参对象

type AlibabaasrdataservicepromotionrulewriteAPIResponse added in v1.3.1

type AlibabaasrdataservicepromotionrulewriteAPIResponse struct {
	model.CommonResponse
	AlibabaasrdataservicepromotionrulewriteAPIResponseModel
}

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

星巴克优惠规则写入

type AlibabaasrdataservicepromotionrulewriteAPIResponseModel added in v1.3.1

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 added in v1.3.1

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 added in v1.3.1

func NewAlibababenefitdrawRequest() *AlibababenefitdrawAPIRequest

NewAlibababenefitdrawRequest 初始化AlibababenefitdrawAPIRequest对象

func (AlibababenefitdrawAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibababenefitdrawAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibababenefitdrawAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibababenefitdrawAPIRequest) GetAppName added in v1.3.1

func (r AlibababenefitdrawAPIRequest) GetAppName() string

GetAppName AppName Getter

func (AlibababenefitdrawAPIRequest) GetEname added in v1.3.1

func (r AlibababenefitdrawAPIRequest) GetEname() string

GetEname Ename Getter

func (AlibababenefitdrawAPIRequest) GetIp added in v1.3.1

GetIp Ip Getter

func (AlibababenefitdrawAPIRequest) GetRawParams added in v1.3.1

func (r AlibababenefitdrawAPIRequest) GetRawParams() model.Params

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

func (*AlibababenefitdrawAPIRequest) SetAppName added in v1.3.1

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

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

func (*AlibababenefitdrawAPIRequest) SetEname added in v1.3.1

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

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

func (*AlibababenefitdrawAPIRequest) SetIp added in v1.3.1

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

type AlibababenefitdrawAPIResponse added in v1.3.1

type AlibababenefitdrawAPIResponse struct {
	model.CommonResponse
	AlibababenefitdrawAPIResponseModel
}

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

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

type AlibababenefitdrawAPIResponseModel added in v1.3.1

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 added in v1.3.1

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 added in v1.3.1

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 added in v1.3.1

func NewAlibababenefitqueryRequest() *AlibababenefitqueryAPIRequest

NewAlibababenefitqueryRequest 初始化AlibababenefitqueryAPIRequest对象

func (AlibababenefitqueryAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibababenefitqueryAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibababenefitqueryAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibababenefitqueryAPIRequest) GetAppName added in v1.3.1

func (r AlibababenefitqueryAPIRequest) GetAppName() string

GetAppName AppName Getter

func (AlibababenefitqueryAPIRequest) GetAwardType added in v1.3.1

func (r AlibababenefitqueryAPIRequest) GetAwardType() string

GetAwardType AwardType Getter

func (AlibababenefitqueryAPIRequest) GetEname added in v1.3.1

GetEname Ename Getter

func (AlibababenefitqueryAPIRequest) GetRawParams added in v1.3.1

func (r AlibababenefitqueryAPIRequest) GetRawParams() model.Params

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

func (*AlibababenefitqueryAPIRequest) SetAppName added in v1.3.1

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

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

func (*AlibababenefitqueryAPIRequest) SetAwardType added in v1.3.1

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

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

func (*AlibababenefitqueryAPIRequest) SetEname added in v1.3.1

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

SetEname is Ename Setter 奖池编号

type AlibababenefitqueryAPIResponse added in v1.3.1

type AlibababenefitqueryAPIResponse struct {
	model.CommonResponse
	AlibababenefitqueryAPIResponseModel
}

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

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

type AlibababenefitqueryAPIResponseModel added in v1.3.1

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 added in v1.3.1

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.3.1

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

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

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

func NewAlibabalafiteselleractivitylistRequest added in v1.3.1

func NewAlibabalafiteselleractivitylistRequest() *AlibabalafiteselleractivitylistAPIRequest

NewAlibabalafiteselleractivitylistRequest 初始化AlibabalafiteselleractivitylistAPIRequest对象

func (AlibabalafiteselleractivitylistAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabalafiteselleractivitylistAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabalafiteselleractivitylistAPIRequest) GetQuery added in v1.3.1

GetQuery Query Getter

func (AlibabalafiteselleractivitylistAPIRequest) GetRawParams added in v1.3.1

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

func (*AlibabalafiteselleractivitylistAPIRequest) SetQuery added in v1.3.1

SetQuery is Query Setter 请求入参

type AlibabalafiteselleractivitylistAPIResponse added in v1.3.1

type AlibabalafiteselleractivitylistAPIResponse struct {
	model.CommonResponse
	AlibabalafiteselleractivitylistAPIResponseModel
}

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

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

type AlibabalafiteselleractivitylistAPIResponseModel added in v1.3.1

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.3.1

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.3.1

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

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

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

func NewAlibabalafitesellerbenefitlistRequest added in v1.3.1

func NewAlibabalafitesellerbenefitlistRequest() *AlibabalafitesellerbenefitlistAPIRequest

NewAlibabalafitesellerbenefitlistRequest 初始化AlibabalafitesellerbenefitlistAPIRequest对象

func (AlibabalafitesellerbenefitlistAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabalafitesellerbenefitlistAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabalafitesellerbenefitlistAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabalafitesellerbenefitlistAPIRequest) GetBenefitReadTopQuery added in v1.3.1

GetBenefitReadTopQuery BenefitReadTopQuery Getter

func (AlibabalafitesellerbenefitlistAPIRequest) GetRawParams added in v1.3.1

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

func (*AlibabalafitesellerbenefitlistAPIRequest) SetBenefitReadTopQuery added in v1.3.1

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

SetBenefitReadTopQuery is BenefitReadTopQuery Setter 查询参数

type AlibabalafitesellerbenefitlistAPIResponse added in v1.3.1

type AlibabalafitesellerbenefitlistAPIResponse struct {
	model.CommonResponse
	AlibabalafitesellerbenefitlistAPIResponseModel
}

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

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

type AlibabalafitesellerbenefitlistAPIResponseModel added in v1.3.1

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.3.1

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 added in v1.3.1

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

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

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

func NewAlibabalatourstrategyissueRequest added in v1.3.1

func NewAlibabalatourstrategyissueRequest() *AlibabalatourstrategyissueAPIRequest

NewAlibabalatourstrategyissueRequest 初始化AlibabalatourstrategyissueAPIRequest对象

func (AlibabalatourstrategyissueAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabalatourstrategyissueAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabalatourstrategyissueAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabalatourstrategyissueAPIRequest) GetChannel added in v1.3.1

GetChannel Channel Getter

func (AlibabalatourstrategyissueAPIRequest) GetExtraData added in v1.3.1

GetExtraData ExtraData Getter

func (AlibabalatourstrategyissueAPIRequest) GetFailoverAlgorithmResult added in v1.3.1

func (r AlibabalatourstrategyissueAPIRequest) GetFailoverAlgorithmResult() bool

GetFailoverAlgorithmResult FailoverAlgorithmResult Getter

func (AlibabalatourstrategyissueAPIRequest) GetIdempotentId added in v1.3.1

func (r AlibabalatourstrategyissueAPIRequest) GetIdempotentId() string

GetIdempotentId IdempotentId Getter

func (AlibabalatourstrategyissueAPIRequest) GetNeedIdentifyRisk added in v1.3.1

func (r AlibabalatourstrategyissueAPIRequest) GetNeedIdentifyRisk() bool

GetNeedIdentifyRisk NeedIdentifyRisk Getter

func (AlibabalatourstrategyissueAPIRequest) GetOpenid added in v1.3.1

GetOpenid Openid Getter

func (AlibabalatourstrategyissueAPIRequest) GetRawParams added in v1.3.1

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

func (AlibabalatourstrategyissueAPIRequest) GetSelectedBenefitCode added in v1.3.1

func (r AlibabalatourstrategyissueAPIRequest) GetSelectedBenefitCode() string

GetSelectedBenefitCode SelectedBenefitCode Getter

func (AlibabalatourstrategyissueAPIRequest) GetStrategyCode added in v1.3.1

func (r AlibabalatourstrategyissueAPIRequest) GetStrategyCode() string

GetStrategyCode StrategyCode Getter

func (AlibabalatourstrategyissueAPIRequest) GetTransformedUserType added in v1.3.1

func (r AlibabalatourstrategyissueAPIRequest) GetTransformedUserType() string

GetTransformedUserType TransformedUserType Getter

func (AlibabalatourstrategyissueAPIRequest) GetUserId added in v1.3.1

GetUserId UserId Getter

func (AlibabalatourstrategyissueAPIRequest) GetUserNick added in v1.3.1

GetUserNick UserNick Getter

func (AlibabalatourstrategyissueAPIRequest) GetUserType added in v1.3.1

GetUserType UserType Getter

func (*AlibabalatourstrategyissueAPIRequest) SetChannel added in v1.3.1

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

SetChannel is Channel Setter 发放渠道

func (*AlibabalatourstrategyissueAPIRequest) SetExtraData added in v1.3.1

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

SetExtraData is ExtraData Setter 扩展参数

func (*AlibabalatourstrategyissueAPIRequest) SetFailoverAlgorithmResult added in v1.3.1

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

SetFailoverAlgorithmResult is FailoverAlgorithmResult Setter 算法容灾

func (*AlibabalatourstrategyissueAPIRequest) SetIdempotentId added in v1.3.1

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

SetIdempotentId is IdempotentId Setter 幂等id

func (*AlibabalatourstrategyissueAPIRequest) SetNeedIdentifyRisk added in v1.3.1

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

SetNeedIdentifyRisk is NeedIdentifyRisk Setter 是否需要过安全

func (*AlibabalatourstrategyissueAPIRequest) SetOpenid added in v1.3.1

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

SetOpenid is Openid Setter openid

func (*AlibabalatourstrategyissueAPIRequest) SetSelectedBenefitCode added in v1.3.1

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

SetSelectedBenefitCode is SelectedBenefitCode Setter 指定发放权益code

func (*AlibabalatourstrategyissueAPIRequest) SetStrategyCode added in v1.3.1

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

SetStrategyCode is StrategyCode Setter 投放计划code

func (*AlibabalatourstrategyissueAPIRequest) SetTransformedUserType added in v1.3.1

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

SetTransformedUserType is TransformedUserType Setter 转换用户类型

func (*AlibabalatourstrategyissueAPIRequest) SetUserId added in v1.3.1

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

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

func (*AlibabalatourstrategyissueAPIRequest) SetUserNick added in v1.3.1

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

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

func (*AlibabalatourstrategyissueAPIRequest) SetUserType added in v1.3.1

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

SetUserType is UserType Setter 用户类型

type AlibabalatourstrategyissueAPIResponse added in v1.3.1

type AlibabalatourstrategyissueAPIResponse struct {
	model.CommonResponse
	AlibabalatourstrategyissueAPIResponseModel
}

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

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

type AlibabalatourstrategyissueAPIResponseModel added in v1.3.1

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 added in v1.3.1

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 added in v1.3.1

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

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

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

func NewAlibabalatourstrategyshowRequest added in v1.3.1

func NewAlibabalatourstrategyshowRequest() *AlibabalatourstrategyshowAPIRequest

NewAlibabalatourstrategyshowRequest 初始化AlibabalatourstrategyshowAPIRequest对象

func (AlibabalatourstrategyshowAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabalatourstrategyshowAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabalatourstrategyshowAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabalatourstrategyshowAPIRequest) GetChannel added in v1.3.1

GetChannel Channel Getter

func (AlibabalatourstrategyshowAPIRequest) GetCurrentPage added in v1.3.1

func (r AlibabalatourstrategyshowAPIRequest) GetCurrentPage() int64

GetCurrentPage CurrentPage Getter

func (AlibabalatourstrategyshowAPIRequest) GetFilterCrowd added in v1.3.1

func (r AlibabalatourstrategyshowAPIRequest) GetFilterCrowd() bool

GetFilterCrowd FilterCrowd Getter

func (AlibabalatourstrategyshowAPIRequest) GetFilterEmptyInventory added in v1.3.1

func (r AlibabalatourstrategyshowAPIRequest) GetFilterEmptyInventory() bool

GetFilterEmptyInventory FilterEmptyInventory Getter

func (AlibabalatourstrategyshowAPIRequest) GetNeedIdentifyRisk added in v1.3.1

func (r AlibabalatourstrategyshowAPIRequest) GetNeedIdentifyRisk() bool

GetNeedIdentifyRisk NeedIdentifyRisk Getter

func (AlibabalatourstrategyshowAPIRequest) GetOpenid added in v1.3.1

GetOpenid Openid Getter

func (AlibabalatourstrategyshowAPIRequest) GetPageSize added in v1.3.1

GetPageSize PageSize Getter

func (AlibabalatourstrategyshowAPIRequest) GetRawParams added in v1.3.1

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

func (AlibabalatourstrategyshowAPIRequest) GetSkipWithHadWin added in v1.3.1

func (r AlibabalatourstrategyshowAPIRequest) GetSkipWithHadWin() bool

GetSkipWithHadWin SkipWithHadWin Getter

func (AlibabalatourstrategyshowAPIRequest) GetStrategyCode added in v1.3.1

func (r AlibabalatourstrategyshowAPIRequest) GetStrategyCode() string

GetStrategyCode StrategyCode Getter

func (AlibabalatourstrategyshowAPIRequest) GetTransformedUserType added in v1.3.1

func (r AlibabalatourstrategyshowAPIRequest) GetTransformedUserType() string

GetTransformedUserType TransformedUserType Getter

func (AlibabalatourstrategyshowAPIRequest) GetUserId added in v1.3.1

GetUserId UserId Getter

func (AlibabalatourstrategyshowAPIRequest) GetUserNick added in v1.3.1

GetUserNick UserNick Getter

func (AlibabalatourstrategyshowAPIRequest) GetUserType added in v1.3.1

GetUserType UserType Getter

func (AlibabalatourstrategyshowAPIRequest) GetWithBenefitInstance added in v1.3.1

func (r AlibabalatourstrategyshowAPIRequest) GetWithBenefitInstance() bool

GetWithBenefitInstance WithBenefitInstance Getter

func (AlibabalatourstrategyshowAPIRequest) GetWithStrategyInstance added in v1.3.1

func (r AlibabalatourstrategyshowAPIRequest) GetWithStrategyInstance() bool

GetWithStrategyInstance WithStrategyInstance Getter

func (AlibabalatourstrategyshowAPIRequest) GetWithTestBenefit added in v1.3.1

func (r AlibabalatourstrategyshowAPIRequest) GetWithTestBenefit() bool

GetWithTestBenefit WithTestBenefit Getter

func (*AlibabalatourstrategyshowAPIRequest) SetChannel added in v1.3.1

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

SetChannel is Channel Setter 渠道

func (*AlibabalatourstrategyshowAPIRequest) SetCurrentPage added in v1.3.1

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

SetCurrentPage is CurrentPage Setter 当面分页

func (*AlibabalatourstrategyshowAPIRequest) SetFilterCrowd added in v1.3.1

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

SetFilterCrowd is FilterCrowd Setter 过滤人群

func (*AlibabalatourstrategyshowAPIRequest) SetFilterEmptyInventory added in v1.3.1

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

SetFilterEmptyInventory is FilterEmptyInventory Setter 过滤无库存权益

func (*AlibabalatourstrategyshowAPIRequest) SetNeedIdentifyRisk added in v1.3.1

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

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

func (*AlibabalatourstrategyshowAPIRequest) SetOpenid added in v1.3.1

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

SetOpenid is Openid Setter openid

func (*AlibabalatourstrategyshowAPIRequest) SetPageSize added in v1.3.1

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

SetPageSize is PageSize Setter 每页权益数

func (*AlibabalatourstrategyshowAPIRequest) SetSkipWithHadWin added in v1.3.1

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

SetSkipWithHadWin is SkipWithHadWin Setter 不带出hadWin状态

func (*AlibabalatourstrategyshowAPIRequest) SetStrategyCode added in v1.3.1

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

SetStrategyCode is StrategyCode Setter 投放计划code

func (*AlibabalatourstrategyshowAPIRequest) SetTransformedUserType added in v1.3.1

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

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

func (*AlibabalatourstrategyshowAPIRequest) SetUserId added in v1.3.1

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

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

func (*AlibabalatourstrategyshowAPIRequest) SetUserNick added in v1.3.1

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

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

func (*AlibabalatourstrategyshowAPIRequest) SetUserType added in v1.3.1

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

SetUserType is UserType Setter 当面账户类型

func (*AlibabalatourstrategyshowAPIRequest) SetWithBenefitInstance added in v1.3.1

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

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

func (*AlibabalatourstrategyshowAPIRequest) SetWithStrategyInstance added in v1.3.1

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

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

func (*AlibabalatourstrategyshowAPIRequest) SetWithTestBenefit added in v1.3.1

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

SetWithTestBenefit is WithTestBenefit Setter 带出测试权益

type AlibabalatourstrategyshowAPIResponse added in v1.3.1

type AlibabalatourstrategyshowAPIResponse struct {
	model.CommonResponse
	AlibabalatourstrategyshowAPIResponseModel
}

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

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

type AlibabalatourstrategyshowAPIResponseModel added in v1.3.1

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 added in v1.3.1

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 added in v1.3.1

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

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

优惠券废弃

func NewAlibabawdkcouponabandonRequest added in v1.3.1

func NewAlibabawdkcouponabandonRequest() *AlibabawdkcouponabandonAPIRequest

NewAlibabawdkcouponabandonRequest 初始化AlibabawdkcouponabandonAPIRequest对象

func (AlibabawdkcouponabandonAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabawdkcouponabandonAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabawdkcouponabandonAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabawdkcouponabandonAPIRequest) GetParamWdkCouponAbandonParam added in v1.3.1

func (r AlibabawdkcouponabandonAPIRequest) GetParamWdkCouponAbandonParam() *WdkCouponAbandonParam

GetParamWdkCouponAbandonParam ParamWdkCouponAbandonParam Getter

func (AlibabawdkcouponabandonAPIRequest) GetRawParams added in v1.3.1

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

func (*AlibabawdkcouponabandonAPIRequest) SetParamWdkCouponAbandonParam added in v1.3.1

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

SetParamWdkCouponAbandonParam is ParamWdkCouponAbandonParam Setter 废券参数

type AlibabawdkcouponabandonAPIResponse added in v1.3.1

type AlibabawdkcouponabandonAPIResponse struct {
	model.CommonResponse
	AlibabawdkcouponabandonAPIResponseModel
}

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

优惠券废弃

type AlibabawdkcouponabandonAPIResponseModel added in v1.3.1

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 added in v1.3.1

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 added in v1.3.1

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

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

优惠券商品增加

func NewAlibabawdkcouponskuaddRequest added in v1.3.1

func NewAlibabawdkcouponskuaddRequest() *AlibabawdkcouponskuaddAPIRequest

NewAlibabawdkcouponskuaddRequest 初始化AlibabawdkcouponskuaddAPIRequest对象

func (AlibabawdkcouponskuaddAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabawdkcouponskuaddAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabawdkcouponskuaddAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabawdkcouponskuaddAPIRequest) GetParamCouponTemplateItemRequest added in v1.3.1

func (r AlibabawdkcouponskuaddAPIRequest) GetParamCouponTemplateItemRequest() *CouponTemplateItemRequest

GetParamCouponTemplateItemRequest ParamCouponTemplateItemRequest Getter

func (AlibabawdkcouponskuaddAPIRequest) GetRawParams added in v1.3.1

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

func (*AlibabawdkcouponskuaddAPIRequest) SetParamCouponTemplateItemRequest added in v1.3.1

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

SetParamCouponTemplateItemRequest is ParamCouponTemplateItemRequest Setter 请求

type AlibabawdkcouponskuaddAPIResponse added in v1.3.1

type AlibabawdkcouponskuaddAPIResponse struct {
	model.CommonResponse
	AlibabawdkcouponskuaddAPIResponseModel
}

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

优惠券商品增加

type AlibabawdkcouponskuaddAPIResponseModel added in v1.3.1

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 added in v1.3.1

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 added in v1.3.1

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

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

优惠券商品查询

func NewAlibabawdkcouponskuqueryRequest added in v1.3.1

func NewAlibabawdkcouponskuqueryRequest() *AlibabawdkcouponskuqueryAPIRequest

NewAlibabawdkcouponskuqueryRequest 初始化AlibabawdkcouponskuqueryAPIRequest对象

func (AlibabawdkcouponskuqueryAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabawdkcouponskuqueryAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabawdkcouponskuqueryAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabawdkcouponskuqueryAPIRequest) GetParamCouponTemplateItemQueryRequest added in v1.3.1

func (r AlibabawdkcouponskuqueryAPIRequest) GetParamCouponTemplateItemQueryRequest() *CouponTemplateItemQueryRequest

GetParamCouponTemplateItemQueryRequest ParamCouponTemplateItemQueryRequest Getter

func (AlibabawdkcouponskuqueryAPIRequest) GetRawParams added in v1.3.1

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

func (*AlibabawdkcouponskuqueryAPIRequest) SetParamCouponTemplateItemQueryRequest added in v1.3.1

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

SetParamCouponTemplateItemQueryRequest is ParamCouponTemplateItemQueryRequest Setter 请求

type AlibabawdkcouponskuqueryAPIResponse added in v1.3.1

type AlibabawdkcouponskuqueryAPIResponse struct {
	model.CommonResponse
	AlibabawdkcouponskuqueryAPIResponseModel
}

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

优惠券商品查询

type AlibabawdkcouponskuqueryAPIResponseModel added in v1.3.1

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 added in v1.3.1

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 added in v1.3.1

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

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

优惠券商品删除

func NewAlibabawdkcouponskuremoveRequest added in v1.3.1

func NewAlibabawdkcouponskuremoveRequest() *AlibabawdkcouponskuremoveAPIRequest

NewAlibabawdkcouponskuremoveRequest 初始化AlibabawdkcouponskuremoveAPIRequest对象

func (AlibabawdkcouponskuremoveAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabawdkcouponskuremoveAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabawdkcouponskuremoveAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabawdkcouponskuremoveAPIRequest) GetParamCouponTemplateItemRequest added in v1.3.1

func (r AlibabawdkcouponskuremoveAPIRequest) GetParamCouponTemplateItemRequest() *CouponTemplateItemRequest

GetParamCouponTemplateItemRequest ParamCouponTemplateItemRequest Getter

func (AlibabawdkcouponskuremoveAPIRequest) GetRawParams added in v1.3.1

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

func (*AlibabawdkcouponskuremoveAPIRequest) SetParamCouponTemplateItemRequest added in v1.3.1

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

SetParamCouponTemplateItemRequest is ParamCouponTemplateItemRequest Setter 请求

type AlibabawdkcouponskuremoveAPIResponse added in v1.3.1

type AlibabawdkcouponskuremoveAPIResponse struct {
	model.CommonResponse
	AlibabawdkcouponskuremoveAPIResponseModel
}

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

优惠券商品删除

type AlibabawdkcouponskuremoveAPIResponseModel added in v1.3.1

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 added in v1.3.1

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 added in v1.3.1

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

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

优惠券发放

func NewAlibabawdkcouponspreadapplyRequest added in v1.3.1

func NewAlibabawdkcouponspreadapplyRequest() *AlibabawdkcouponspreadapplyAPIRequest

NewAlibabawdkcouponspreadapplyRequest 初始化AlibabawdkcouponspreadapplyAPIRequest对象

func (AlibabawdkcouponspreadapplyAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabawdkcouponspreadapplyAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabawdkcouponspreadapplyAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabawdkcouponspreadapplyAPIRequest) GetParamWdkCouponApplyParam added in v1.3.1

func (r AlibabawdkcouponspreadapplyAPIRequest) GetParamWdkCouponApplyParam() *WdkCouponApplyParam

GetParamWdkCouponApplyParam ParamWdkCouponApplyParam Getter

func (AlibabawdkcouponspreadapplyAPIRequest) GetRawParams added in v1.3.1

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

func (*AlibabawdkcouponspreadapplyAPIRequest) SetParamWdkCouponApplyParam added in v1.3.1

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

SetParamWdkCouponApplyParam is ParamWdkCouponApplyParam Setter 参数对象

type AlibabawdkcouponspreadapplyAPIResponse added in v1.3.1

type AlibabawdkcouponspreadapplyAPIResponse struct {
	model.CommonResponse
	AlibabawdkcouponspreadapplyAPIResponseModel
}

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

优惠券发放

type AlibabawdkcouponspreadapplyAPIResponseModel added in v1.3.1

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 added in v1.3.1

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 added in v1.3.1

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

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

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

func NewAlibabawdkcoupontemplatecreateRequest added in v1.3.1

func NewAlibabawdkcoupontemplatecreateRequest() *AlibabawdkcoupontemplatecreateAPIRequest

NewAlibabawdkcoupontemplatecreateRequest 初始化AlibabawdkcoupontemplatecreateAPIRequest对象

func (AlibabawdkcoupontemplatecreateAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabawdkcoupontemplatecreateAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabawdkcoupontemplatecreateAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabawdkcoupontemplatecreateAPIRequest) GetParamCouponTemplateOperateRequest added in v1.3.1

func (r AlibabawdkcoupontemplatecreateAPIRequest) GetParamCouponTemplateOperateRequest() *CouponTemplateOperateRequest

GetParamCouponTemplateOperateRequest ParamCouponTemplateOperateRequest Getter

func (AlibabawdkcoupontemplatecreateAPIRequest) GetRawParams added in v1.3.1

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

func (*AlibabawdkcoupontemplatecreateAPIRequest) SetParamCouponTemplateOperateRequest added in v1.3.1

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

SetParamCouponTemplateOperateRequest is ParamCouponTemplateOperateRequest Setter 请求

type AlibabawdkcoupontemplatecreateAPIResponse added in v1.3.1

type AlibabawdkcoupontemplatecreateAPIResponse struct {
	model.CommonResponse
	AlibabawdkcoupontemplatecreateAPIResponseModel
}

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

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

type AlibabawdkcoupontemplatecreateAPIResponseModel added in v1.3.1

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 added in v1.3.1

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 added in v1.3.1

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

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

优惠券模版查询

func NewAlibabawdkcoupontemplatequeryRequest added in v1.3.1

func NewAlibabawdkcoupontemplatequeryRequest() *AlibabawdkcoupontemplatequeryAPIRequest

NewAlibabawdkcoupontemplatequeryRequest 初始化AlibabawdkcoupontemplatequeryAPIRequest对象

func (AlibabawdkcoupontemplatequeryAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabawdkcoupontemplatequeryAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabawdkcoupontemplatequeryAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabawdkcoupontemplatequeryAPIRequest) GetParamCouponTemplateQueryRequest added in v1.3.1

func (r AlibabawdkcoupontemplatequeryAPIRequest) GetParamCouponTemplateQueryRequest() *CouponTemplateQueryRequest

GetParamCouponTemplateQueryRequest ParamCouponTemplateQueryRequest Getter

func (AlibabawdkcoupontemplatequeryAPIRequest) GetRawParams added in v1.3.1

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

func (*AlibabawdkcoupontemplatequeryAPIRequest) SetParamCouponTemplateQueryRequest added in v1.3.1

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

SetParamCouponTemplateQueryRequest is ParamCouponTemplateQueryRequest Setter 系统自动生成

type AlibabawdkcoupontemplatequeryAPIResponse added in v1.3.1

type AlibabawdkcoupontemplatequeryAPIResponse struct {
	model.CommonResponse
	AlibabawdkcoupontemplatequeryAPIResponseModel
}

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

优惠券模版查询

type AlibabawdkcoupontemplatequeryAPIResponseModel added in v1.3.1

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 added in v1.3.1

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 added in v1.3.1

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

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

优惠券模版终止

func NewAlibabawdkcoupontemplateterminateRequest added in v1.3.1

func NewAlibabawdkcoupontemplateterminateRequest() *AlibabawdkcoupontemplateterminateAPIRequest

NewAlibabawdkcoupontemplateterminateRequest 初始化AlibabawdkcoupontemplateterminateAPIRequest对象

func (AlibabawdkcoupontemplateterminateAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabawdkcoupontemplateterminateAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabawdkcoupontemplateterminateAPIRequest) GetParamCouponTemplateTerminateRequest added in v1.3.1

func (r AlibabawdkcoupontemplateterminateAPIRequest) GetParamCouponTemplateTerminateRequest() *CouponTemplateTerminateRequest

GetParamCouponTemplateTerminateRequest ParamCouponTemplateTerminateRequest Getter

func (AlibabawdkcoupontemplateterminateAPIRequest) GetRawParams added in v1.3.1

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

func (*AlibabawdkcoupontemplateterminateAPIRequest) SetParamCouponTemplateTerminateRequest added in v1.3.1

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

SetParamCouponTemplateTerminateRequest is ParamCouponTemplateTerminateRequest Setter 参数

type AlibabawdkcoupontemplateterminateAPIResponse added in v1.3.1

type AlibabawdkcoupontemplateterminateAPIResponse struct {
	model.CommonResponse
	AlibabawdkcoupontemplateterminateAPIResponseModel
}

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

优惠券模版终止

type AlibabawdkcoupontemplateterminateAPIResponseModel added in v1.3.1

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 added in v1.3.1

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 added in v1.3.1

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

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

优惠券模版修改

func NewAlibabawdkcoupontemplateupdateRequest added in v1.3.1

func NewAlibabawdkcoupontemplateupdateRequest() *AlibabawdkcoupontemplateupdateAPIRequest

NewAlibabawdkcoupontemplateupdateRequest 初始化AlibabawdkcoupontemplateupdateAPIRequest对象

func (AlibabawdkcoupontemplateupdateAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabawdkcoupontemplateupdateAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabawdkcoupontemplateupdateAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabawdkcoupontemplateupdateAPIRequest) GetParamCouponTemplateOperateRequest added in v1.3.1

func (r AlibabawdkcoupontemplateupdateAPIRequest) GetParamCouponTemplateOperateRequest() *CouponTemplateOperateRequest

GetParamCouponTemplateOperateRequest ParamCouponTemplateOperateRequest Getter

func (AlibabawdkcoupontemplateupdateAPIRequest) GetRawParams added in v1.3.1

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

func (*AlibabawdkcoupontemplateupdateAPIRequest) SetParamCouponTemplateOperateRequest added in v1.3.1

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

SetParamCouponTemplateOperateRequest is ParamCouponTemplateOperateRequest Setter 请求

type AlibabawdkcoupontemplateupdateAPIResponse added in v1.3.1

type AlibabawdkcoupontemplateupdateAPIResponse struct {
	model.CommonResponse
	AlibabawdkcoupontemplateupdateAPIResponseModel
}

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

优惠券模版修改

type AlibabawdkcoupontemplateupdateAPIResponseModel added in v1.3.1

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 added in v1.3.1

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 added in v1.3.1

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

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

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

func NewAlibabawdkmarketingcouponsendmaRequest added in v1.3.1

func NewAlibabawdkmarketingcouponsendmaRequest() *AlibabawdkmarketingcouponsendmaAPIRequest

NewAlibabawdkmarketingcouponsendmaRequest 初始化AlibabawdkmarketingcouponsendmaAPIRequest对象

func (AlibabawdkmarketingcouponsendmaAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabawdkmarketingcouponsendmaAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabawdkmarketingcouponsendmaAPIRequest) GetParam0 added in v1.3.1

GetParam0 Param0 Getter

func (AlibabawdkmarketingcouponsendmaAPIRequest) GetRawParams added in v1.3.1

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

func (*AlibabawdkmarketingcouponsendmaAPIRequest) SetParam0 added in v1.3.1

SetParam0 is Param0 Setter 发放匿名码入参

type AlibabawdkmarketingcouponsendmaAPIResponse added in v1.3.1

type AlibabawdkmarketingcouponsendmaAPIResponse struct {
	model.CommonResponse
	AlibabawdkmarketingcouponsendmaAPIResponseModel
}

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

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

type AlibabawdkmarketingcouponsendmaAPIResponseModel added in v1.3.1

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 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 {
	// 权益类型(步骤2,3必填)
	BenefitType string `json:"benefit_type,omitempty" xml:"benefit_type,omitempty"`
	// 权益id(步骤3必填)
	BenefitId int64 `json:"benefit_id,omitempty" xml:"benefit_id,omitempty"`
	// 新权益类型id
	ConfigId int64 `json:"config_id,omitempty" xml:"config_id,omitempty"`
	// 需要过滤的option
	ExcludeOptions int64 `json:"exclude_options,omitempty" xml:"exclude_options,omitempty"`
	// 选择器步骤可选1,2,3,1:展示卖家能够选择的权益类型2:必填BenefitType,展示卖家该种类型下的权益3:必填BenefitType和benefitId,展示卖家该权益的详情
	Step int64 `json:"step,omitempty" xml:"step,omitempty"`
	// 选择器步骤选择2时,查询指定类型权益列表分页查询参数
	CurrentPage int64 `json:"current_page,omitempty" xml:"current_page,omitempty"`
	// 选择器步骤选择2时,查询指定类型权益列表分页查询参数
	PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"`
	// 传true时列表进行分页查询,分页查询时不会对发放完的模板过滤;传false时分页查询的current_page和page_size不传,接口语义和之前一致。
	PageQueryRequest bool `json:"page_query_request,omitempty" xml:"page_query_request,omitempty"`
}

BenefitSelectorQuery 结构体

type BenefitSelectorVo

type BenefitSelectorVo struct {
	// 详情list
	PackDetailList []BenefitTemplateVo `json:"pack_detail_list,omitempty" xml:"pack_detail_list>benefit_template_vo,omitempty"`
	// 权益名称
	BenefitName string `json:"benefit_name,omitempty" xml:"benefit_name,omitempty"`
	// 权益类型
	BenefitType string `json:"benefit_type,omitempty" xml:"benefit_type,omitempty"`
	// 权益类型id
	BenefitTypeLong int64 `json:"benefit_type_long,omitempty" xml:"benefit_type_long,omitempty"`
	// 选择器步骤选择2时,查询指定类型权益列表分页查询返回值,数据总量
	TemplateTotalCount int64 `json:"template_total_count,omitempty" xml:"template_total_count,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 {
	// 结束时间
	EndTime string `json:"end_time,omitempty" xml:"end_time,omitempty"`
	// 扩展信息
	ExtendFeature string `json:"extend_feature,omitempty" xml:"extend_feature,omitempty"`
	// 外部关联id(如支付宝红包模板id)
	OutObjectId string `json:"out_object_id,omitempty" xml:"out_object_id,omitempty"`
	// 外部关联名称
	OutObjectName string `json:"out_object_name,omitempty" xml:"out_object_name,omitempty"`
	// 开始时间
	StartTime string `json:"start_time,omitempty" xml:"start_time,omitempty"`
	// 权益id
	BenefitId int64 `json:"benefit_id,omitempty" xml:"benefit_id,omitempty"`
	// 面额
	Denomination int64 `json:"denomination,omitempty" xml:"denomination,omitempty"`
	// 关联活动数
	RelateActivityNum int64 `json:"relate_activity_num,omitempty" xml:"relate_activity_num,omitempty"`
	// 状态
	Status int64 `json:"status,omitempty" xml:"status,omitempty"`
	// 可用总数
	ValidTotalNum int64 `json:"valid_total_num,omitempty" xml:"valid_total_num,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"`
	// 该商品限时折扣
	ItemDiscount string `json:"item_discount,omitempty" xml:"item_discount,omitempty"`
	// 商品的id(数字类型)
	ItemId int64 `json:"item_id,omitempty" xml:"item_id,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"`
	// 套餐一口价(单位是:分)
	MealPrice string `json:"meal_price,omitempty" xml:"meal_price,omitempty"`
	// 搭配套餐商品列表。item_id为商品的id;item_show_name为商品显示名。因最多允许5个商品进行搭配,所以查询最多有5个,以json格式传出。
	ItemList string `json:"item_list,omitempty" xml:"item_list,omitempty"`
	// 运费模板类型。卖家标识'SELL';买家标识'BUY'。若为'SELL'则字段postage_id为空。若为'BUY',则postage_id为运费模板id,必有值。
	TypePostage string `json:"type_postage,omitempty" xml:"type_postage,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"`
	// 普通运费模板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>alibabaasrdataservicepromotionrulequery_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 added in v1.3.1

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

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

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

func NewTaobaocardexpandcardqueryRequest added in v1.3.1

func NewTaobaocardexpandcardqueryRequest() *TaobaocardexpandcardqueryAPIRequest

NewTaobaocardexpandcardqueryRequest 初始化TaobaocardexpandcardqueryAPIRequest对象

func (TaobaocardexpandcardqueryAPIRequest) GetAccountNo added in v1.3.1

GetAccountNo AccountNo Getter

func (TaobaocardexpandcardqueryAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaocardexpandcardqueryAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaocardexpandcardqueryAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaocardexpandcardqueryAPIRequest) GetRawParams added in v1.3.1

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

func (TaobaocardexpandcardqueryAPIRequest) GetUsedScopeCode added in v1.3.1

func (r TaobaocardexpandcardqueryAPIRequest) GetUsedScopeCode() string

GetUsedScopeCode UsedScopeCode Getter

func (*TaobaocardexpandcardqueryAPIRequest) SetAccountNo added in v1.3.1

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

SetAccountNo is AccountNo Setter 支付宝accountNo

func (*TaobaocardexpandcardqueryAPIRequest) SetUsedScopeCode added in v1.3.1

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

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

type TaobaocardexpandcardqueryAPIResponse added in v1.3.1

type TaobaocardexpandcardqueryAPIResponse struct {
	model.CommonResponse
	TaobaocardexpandcardqueryAPIResponseModel
}

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

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

type TaobaocardexpandcardqueryAPIResponseModel added in v1.3.1

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 added in v1.3.1

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 added in v1.3.1

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

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

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

func NewTaobaomarketingpromotionkfcRequest added in v1.3.1

func NewTaobaomarketingpromotionkfcRequest() *TaobaomarketingpromotionkfcAPIRequest

NewTaobaomarketingpromotionkfcRequest 初始化TaobaomarketingpromotionkfcAPIRequest对象

func (TaobaomarketingpromotionkfcAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaomarketingpromotionkfcAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaomarketingpromotionkfcAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaomarketingpromotionkfcAPIRequest) GetPromotionDesc added in v1.3.1

func (r TaobaomarketingpromotionkfcAPIRequest) GetPromotionDesc() string

GetPromotionDesc PromotionDesc Getter

func (TaobaomarketingpromotionkfcAPIRequest) GetPromotionTitle added in v1.3.1

func (r TaobaomarketingpromotionkfcAPIRequest) GetPromotionTitle() string

GetPromotionTitle PromotionTitle Getter

func (TaobaomarketingpromotionkfcAPIRequest) GetRawParams added in v1.3.1

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

func (*TaobaomarketingpromotionkfcAPIRequest) SetPromotionDesc added in v1.3.1

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

SetPromotionDesc is PromotionDesc Setter 活动描述

func (*TaobaomarketingpromotionkfcAPIRequest) SetPromotionTitle added in v1.3.1

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

SetPromotionTitle is PromotionTitle Setter 活动名称

type TaobaomarketingpromotionkfcAPIResponse added in v1.3.1

type TaobaomarketingpromotionkfcAPIResponse struct {
	model.CommonResponse
	TaobaomarketingpromotionkfcAPIResponseModel
}

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

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

type TaobaomarketingpromotionkfcAPIResponseModel added in v1.3.1

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 added in v1.3.1

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

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

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

func NewTaobaomobilepromotionbenefitactivitysendRequest added in v1.3.1

func NewTaobaomobilepromotionbenefitactivitysendRequest() *TaobaomobilepromotionbenefitactivitysendAPIRequest

NewTaobaomobilepromotionbenefitactivitysendRequest 初始化TaobaomobilepromotionbenefitactivitysendAPIRequest对象

func (TaobaomobilepromotionbenefitactivitysendAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaomobilepromotionbenefitactivitysendAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaomobilepromotionbenefitactivitysendAPIRequest) GetRawParams added in v1.3.1

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

func (TaobaomobilepromotionbenefitactivitysendAPIRequest) GetSingleBenefitRequest added in v1.3.1

GetSingleBenefitRequest SingleBenefitRequest Getter

func (*TaobaomobilepromotionbenefitactivitysendAPIRequest) SetSingleBenefitRequest added in v1.3.1

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

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

type TaobaomobilepromotionbenefitactivitysendAPIResponse added in v1.3.1

type TaobaomobilepromotionbenefitactivitysendAPIResponse struct {
	model.CommonResponse
	TaobaomobilepromotionbenefitactivitysendAPIResponseModel
}

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

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

type TaobaomobilepromotionbenefitactivitysendAPIResponseModel added in v1.3.1

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 added in v1.3.1

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

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

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

func NewTaobaomobilepromotionbenefitactivitysendshareRequest added in v1.3.1

func NewTaobaomobilepromotionbenefitactivitysendshareRequest() *TaobaomobilepromotionbenefitactivitysendshareAPIRequest

NewTaobaomobilepromotionbenefitactivitysendshareRequest 初始化TaobaomobilepromotionbenefitactivitysendshareAPIRequest对象

func (TaobaomobilepromotionbenefitactivitysendshareAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaomobilepromotionbenefitactivitysendshareAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaomobilepromotionbenefitactivitysendshareAPIRequest) GetBenefitType added in v1.3.1

GetBenefitType BenefitType Getter

func (TaobaomobilepromotionbenefitactivitysendshareAPIRequest) GetBizId added in v1.3.1

GetBizId BizId Getter

func (TaobaomobilepromotionbenefitactivitysendshareAPIRequest) GetDetailId added in v1.3.1

GetDetailId DetailId Getter

func (TaobaomobilepromotionbenefitactivitysendshareAPIRequest) GetFeedId added in v1.3.1

GetFeedId FeedId Getter

func (TaobaomobilepromotionbenefitactivitysendshareAPIRequest) GetRawParams added in v1.3.1

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

func (TaobaomobilepromotionbenefitactivitysendshareAPIRequest) GetRelationId added in v1.3.1

GetRelationId RelationId Getter

func (TaobaomobilepromotionbenefitactivitysendshareAPIRequest) GetSendCount added in v1.3.1

GetSendCount SendCount Getter

func (TaobaomobilepromotionbenefitactivitysendshareAPIRequest) GetShareKey added in v1.3.1

GetShareKey ShareKey Getter

func (TaobaomobilepromotionbenefitactivitysendshareAPIRequest) GetShareUsers added in v1.3.1

GetShareUsers ShareUsers Getter

func (TaobaomobilepromotionbenefitactivitysendshareAPIRequest) GetTraceId added in v1.3.1

GetTraceId TraceId Getter

func (TaobaomobilepromotionbenefitactivitysendshareAPIRequest) GetUniqueId added in v1.3.1

GetUniqueId UniqueId Getter

func (*TaobaomobilepromotionbenefitactivitysendshareAPIRequest) SetBenefitType added in v1.3.1

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

func (*TaobaomobilepromotionbenefitactivitysendshareAPIRequest) SetBizId added in v1.3.1

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

func (*TaobaomobilepromotionbenefitactivitysendshareAPIRequest) SetDetailId added in v1.3.1

SetDetailId is DetailId Setter 活动详情id

func (*TaobaomobilepromotionbenefitactivitysendshareAPIRequest) SetFeedId added in v1.3.1

SetFeedId is FeedId Setter 广播ID

func (*TaobaomobilepromotionbenefitactivitysendshareAPIRequest) SetRelationId added in v1.3.1

SetRelationId is RelationId Setter 关联活动id

func (*TaobaomobilepromotionbenefitactivitysendshareAPIRequest) SetSendCount added in v1.3.1

SetSendCount is SendCount Setter 权益发放数量

func (*TaobaomobilepromotionbenefitactivitysendshareAPIRequest) SetShareKey added in v1.3.1

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

func (*TaobaomobilepromotionbenefitactivitysendshareAPIRequest) SetShareUsers added in v1.3.1

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

func (*TaobaomobilepromotionbenefitactivitysendshareAPIRequest) SetTraceId added in v1.3.1

SetTraceId is TraceId Setter 调试线索

func (*TaobaomobilepromotionbenefitactivitysendshareAPIRequest) SetUniqueId added in v1.3.1

SetUniqueId is UniqueId Setter 事务id

type TaobaomobilepromotionbenefitactivitysendshareAPIResponse added in v1.3.1

type TaobaomobilepromotionbenefitactivitysendshareAPIResponse struct {
	model.CommonResponse
	TaobaomobilepromotionbenefitactivitysendshareAPIResponseModel
}

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

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

type TaobaomobilepromotionbenefitactivitysendshareAPIResponseModel added in v1.3.1

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 added in v1.3.1

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

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

优惠券领取

func NewTaobaomobilepromotioncouponapplyRequest added in v1.3.1

func NewTaobaomobilepromotioncouponapplyRequest() *TaobaomobilepromotioncouponapplyAPIRequest

NewTaobaomobilepromotioncouponapplyRequest 初始化TaobaomobilepromotioncouponapplyAPIRequest对象

func (TaobaomobilepromotioncouponapplyAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaomobilepromotioncouponapplyAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaomobilepromotioncouponapplyAPIRequest) GetBizId added in v1.3.1

GetBizId BizId Getter

func (TaobaomobilepromotioncouponapplyAPIRequest) GetFeedId added in v1.3.1

GetFeedId FeedId Getter

func (TaobaomobilepromotioncouponapplyAPIRequest) GetRawParams added in v1.3.1

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

func (TaobaomobilepromotioncouponapplyAPIRequest) GetSpreadId added in v1.3.1

GetSpreadId SpreadId Getter

func (TaobaomobilepromotioncouponapplyAPIRequest) GetTraceId added in v1.3.1

GetTraceId TraceId Getter

func (*TaobaomobilepromotioncouponapplyAPIRequest) SetBizId added in v1.3.1

SetBizId is BizId Setter 三方活动id

func (*TaobaomobilepromotioncouponapplyAPIRequest) SetFeedId added in v1.3.1

SetFeedId is FeedId Setter 广播id

func (*TaobaomobilepromotioncouponapplyAPIRequest) SetSpreadId added in v1.3.1

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

SetSpreadId is SpreadId Setter 传播id

func (*TaobaomobilepromotioncouponapplyAPIRequest) SetTraceId added in v1.3.1

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

type TaobaomobilepromotioncouponapplyAPIResponse added in v1.3.1

type TaobaomobilepromotioncouponapplyAPIResponse struct {
	model.CommonResponse
	TaobaomobilepromotioncouponapplyAPIResponseModel
}

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

优惠券领取

type TaobaomobilepromotioncouponapplyAPIResponseModel added in v1.3.1

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 added in v1.3.1

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

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

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

func NewTaobaomobilepromotioncouponsellersearchRequest added in v1.3.1

func NewTaobaomobilepromotioncouponsellersearchRequest() *TaobaomobilepromotioncouponsellersearchAPIRequest

NewTaobaomobilepromotioncouponsellersearchRequest 初始化TaobaomobilepromotioncouponsellersearchAPIRequest对象

func (TaobaomobilepromotioncouponsellersearchAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaomobilepromotioncouponsellersearchAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaomobilepromotioncouponsellersearchAPIRequest) GetCurrentPage added in v1.3.1

GetCurrentPage CurrentPage Getter

func (TaobaomobilepromotioncouponsellersearchAPIRequest) GetPageSize added in v1.3.1

GetPageSize PageSize Getter

func (TaobaomobilepromotioncouponsellersearchAPIRequest) GetRawParams added in v1.3.1

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

func (TaobaomobilepromotioncouponsellersearchAPIRequest) GetSpreadIds added in v1.3.1

GetSpreadIds SpreadIds Getter

func (TaobaomobilepromotioncouponsellersearchAPIRequest) GetTraceId added in v1.3.1

GetTraceId TraceId Getter

func (*TaobaomobilepromotioncouponsellersearchAPIRequest) SetCurrentPage added in v1.3.1

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

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

func (*TaobaomobilepromotioncouponsellersearchAPIRequest) SetPageSize added in v1.3.1

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

func (*TaobaomobilepromotioncouponsellersearchAPIRequest) SetSpreadIds added in v1.3.1

SetSpreadIds is SpreadIds Setter 券id集合

func (*TaobaomobilepromotioncouponsellersearchAPIRequest) SetTraceId added in v1.3.1

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

type TaobaomobilepromotioncouponsellersearchAPIResponse added in v1.3.1

type TaobaomobilepromotioncouponsellersearchAPIResponse struct {
	model.CommonResponse
	TaobaomobilepromotioncouponsellersearchAPIResponseModel
}

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

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

type TaobaomobilepromotioncouponsellersearchAPIResponseModel added in v1.3.1

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 added in v1.3.1

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

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

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

func NewTaobaopromotionactivitygetRequest added in v1.3.1

func NewTaobaopromotionactivitygetRequest() *TaobaopromotionactivitygetAPIRequest

NewTaobaopromotionactivitygetRequest 初始化TaobaopromotionactivitygetAPIRequest对象

func (TaobaopromotionactivitygetAPIRequest) GetActivityId added in v1.3.1

func (r TaobaopromotionactivitygetAPIRequest) GetActivityId() int64

GetActivityId ActivityId Getter

func (TaobaopromotionactivitygetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaopromotionactivitygetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaopromotionactivitygetAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaopromotionactivitygetAPIRequest) GetRawParams added in v1.3.1

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

func (*TaobaopromotionactivitygetAPIRequest) SetActivityId added in v1.3.1

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

SetActivityId is ActivityId Setter 活动的id

type TaobaopromotionactivitygetAPIResponse added in v1.3.1

type TaobaopromotionactivitygetAPIResponse struct {
	model.CommonResponse
	TaobaopromotionactivitygetAPIResponseModel
}

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

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

type TaobaopromotionactivitygetAPIResponseModel added in v1.3.1

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 added in v1.3.1

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

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

删除关联的活动权益

func NewTaobaopromotionbenefitactivitydeleteRequest added in v1.3.1

func NewTaobaopromotionbenefitactivitydeleteRequest() *TaobaopromotionbenefitactivitydeleteAPIRequest

NewTaobaopromotionbenefitactivitydeleteRequest 初始化TaobaopromotionbenefitactivitydeleteAPIRequest对象

func (TaobaopromotionbenefitactivitydeleteAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaopromotionbenefitactivitydeleteAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaopromotionbenefitactivitydeleteAPIRequest) GetRawParams added in v1.3.1

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

func (TaobaopromotionbenefitactivitydeleteAPIRequest) GetRelationId added in v1.3.1

GetRelationId RelationId Getter

func (*TaobaopromotionbenefitactivitydeleteAPIRequest) SetRelationId added in v1.3.1

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

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

type TaobaopromotionbenefitactivitydeleteAPIResponse added in v1.3.1

type TaobaopromotionbenefitactivitydeleteAPIResponse struct {
	model.CommonResponse
	TaobaopromotionbenefitactivitydeleteAPIResponseModel
}

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

删除关联的活动权益

type TaobaopromotionbenefitactivitydeleteAPIResponseModel added in v1.3.1

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 added in v1.3.1

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

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

活动关联的权益详情获取

func NewTaobaopromotionbenefitactivitydetailgetRequest added in v1.3.1

func NewTaobaopromotionbenefitactivitydetailgetRequest() *TaobaopromotionbenefitactivitydetailgetAPIRequest

NewTaobaopromotionbenefitactivitydetailgetRequest 初始化TaobaopromotionbenefitactivitydetailgetAPIRequest对象

func (TaobaopromotionbenefitactivitydetailgetAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaopromotionbenefitactivitydetailgetAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaopromotionbenefitactivitydetailgetAPIRequest) GetQueryRequest added in v1.3.1

GetQueryRequest QueryRequest Getter

func (TaobaopromotionbenefitactivitydetailgetAPIRequest) GetRawParams added in v1.3.1

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

func (*TaobaopromotionbenefitactivitydetailgetAPIRequest) SetQueryRequest added in v1.3.1

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

type TaobaopromotionbenefitactivitydetailgetAPIResponse added in v1.3.1

type TaobaopromotionbenefitactivitydetailgetAPIResponse struct {
	model.CommonResponse
	TaobaopromotionbenefitactivitydetailgetAPIResponseModel
}

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

活动关联的权益详情获取

type TaobaopromotionbenefitactivitydetailgetAPIResponseModel added in v1.3.1

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 added in v1.3.1

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

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

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

func NewTaobaopromotionbenefitactivityrelationRequest added in v1.3.1

func NewTaobaopromotionbenefitactivityrelationRequest() *TaobaopromotionbenefitactivityrelationAPIRequest

NewTaobaopromotionbenefitactivityrelationRequest 初始化TaobaopromotionbenefitactivityrelationAPIRequest对象

func (TaobaopromotionbenefitactivityrelationAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaopromotionbenefitactivityrelationAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaopromotionbenefitactivityrelationAPIRequest) GetRawParams added in v1.3.1

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

func (TaobaopromotionbenefitactivityrelationAPIRequest) GetRelationRequest added in v1.3.1

GetRelationRequest RelationRequest Getter

func (*TaobaopromotionbenefitactivityrelationAPIRequest) SetRelationRequest added in v1.3.1

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

type TaobaopromotionbenefitactivityrelationAPIResponse added in v1.3.1

type TaobaopromotionbenefitactivityrelationAPIResponse struct {
	model.CommonResponse
	TaobaopromotionbenefitactivityrelationAPIResponseModel
}

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

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

type TaobaopromotionbenefitactivityrelationAPIResponseModel added in v1.3.1

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 added in v1.3.1

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

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

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

func NewTaobaopromotionbenefitactivitysendRequest added in v1.3.1

func NewTaobaopromotionbenefitactivitysendRequest() *TaobaopromotionbenefitactivitysendAPIRequest

NewTaobaopromotionbenefitactivitysendRequest 初始化TaobaopromotionbenefitactivitysendAPIRequest对象

func (TaobaopromotionbenefitactivitysendAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaopromotionbenefitactivitysendAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaopromotionbenefitactivitysendAPIRequest) GetMixReceiverId added in v1.3.1

GetMixReceiverId MixReceiverId Getter

func (TaobaopromotionbenefitactivitysendAPIRequest) GetNick added in v1.3.1

GetNick Nick Getter

func (TaobaopromotionbenefitactivitysendAPIRequest) GetOuid added in v1.3.1

GetOuid Ouid Getter

func (TaobaopromotionbenefitactivitysendAPIRequest) GetPlatNick added in v1.3.1

GetPlatNick PlatNick Getter

func (TaobaopromotionbenefitactivitysendAPIRequest) GetRawParams added in v1.3.1

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

func (TaobaopromotionbenefitactivitysendAPIRequest) GetReceiverId added in v1.3.1

GetReceiverId ReceiverId Getter

func (TaobaopromotionbenefitactivitysendAPIRequest) GetSendRequest added in v1.3.1

GetSendRequest SendRequest Getter

func (TaobaopromotionbenefitactivitysendAPIRequest) GetUid added in v1.3.1

GetUid Uid Getter

func (*TaobaopromotionbenefitactivitysendAPIRequest) SetMixReceiverId added in v1.3.1

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

SetMixReceiverId is MixReceiverId Setter 混淆的接收者id

func (*TaobaopromotionbenefitactivitysendAPIRequest) SetNick added in v1.3.1

SetNick is Nick Setter 混淆的接收者nick

func (*TaobaopromotionbenefitactivitysendAPIRequest) SetOuid added in v1.3.1

SetOuid is Ouid Setter ouid

func (*TaobaopromotionbenefitactivitysendAPIRequest) SetPlatNick added in v1.3.1

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

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

func (*TaobaopromotionbenefitactivitysendAPIRequest) SetReceiverId added in v1.3.1

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

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

func (*TaobaopromotionbenefitactivitysendAPIRequest) SetSendRequest added in v1.3.1

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

func (*TaobaopromotionbenefitactivitysendAPIRequest) SetUid added in v1.3.1

SetUid is Uid Setter openid

type TaobaopromotionbenefitactivitysendAPIResponse added in v1.3.1

type TaobaopromotionbenefitactivitysendAPIResponse struct {
	model.CommonResponse
	TaobaopromotionbenefitactivitysendAPIResponseModel
}

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

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

type TaobaopromotionbenefitactivitysendAPIResponseModel added in v1.3.1

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 added in v1.3.1

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

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

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

func NewTaobaopromotionbenefitactivitytimeupdateRequest added in v1.3.1

func NewTaobaopromotionbenefitactivitytimeupdateRequest() *TaobaopromotionbenefitactivitytimeupdateAPIRequest

NewTaobaopromotionbenefitactivitytimeupdateRequest 初始化TaobaopromotionbenefitactivitytimeupdateAPIRequest对象

func (TaobaopromotionbenefitactivitytimeupdateAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaopromotionbenefitactivitytimeupdateAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaopromotionbenefitactivitytimeupdateAPIRequest) GetEndTime added in v1.3.1

GetEndTime EndTime Getter

func (TaobaopromotionbenefitactivitytimeupdateAPIRequest) GetRawParams added in v1.3.1

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

func (TaobaopromotionbenefitactivitytimeupdateAPIRequest) GetRelationId added in v1.3.1

GetRelationId RelationId Getter

func (TaobaopromotionbenefitactivitytimeupdateAPIRequest) GetStartTime added in v1.3.1

GetStartTime StartTime Getter

func (*TaobaopromotionbenefitactivitytimeupdateAPIRequest) SetEndTime added in v1.3.1

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

func (*TaobaopromotionbenefitactivitytimeupdateAPIRequest) SetRelationId added in v1.3.1

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

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

func (*TaobaopromotionbenefitactivitytimeupdateAPIRequest) SetStartTime added in v1.3.1

SetStartTime is StartTime Setter 活动的开始时间

type TaobaopromotionbenefitactivitytimeupdateAPIResponse added in v1.3.1

type TaobaopromotionbenefitactivitytimeupdateAPIResponse struct {
	model.CommonResponse
	TaobaopromotionbenefitactivitytimeupdateAPIResponseModel
}

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

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

type TaobaopromotionbenefitactivitytimeupdateAPIResponseModel added in v1.3.1

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 added in v1.3.1

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

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

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

func NewTaobaopromotionbenefitactivityupdateRequest added in v1.3.1

func NewTaobaopromotionbenefitactivityupdateRequest() *TaobaopromotionbenefitactivityupdateAPIRequest

NewTaobaopromotionbenefitactivityupdateRequest 初始化TaobaopromotionbenefitactivityupdateAPIRequest对象

func (TaobaopromotionbenefitactivityupdateAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaopromotionbenefitactivityupdateAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaopromotionbenefitactivityupdateAPIRequest) GetRawParams added in v1.3.1

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

func (TaobaopromotionbenefitactivityupdateAPIRequest) GetUpdateRequest added in v1.3.1

GetUpdateRequest UpdateRequest Getter

func (*TaobaopromotionbenefitactivityupdateAPIRequest) SetUpdateRequest added in v1.3.1

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

type TaobaopromotionbenefitactivityupdateAPIResponse added in v1.3.1

type TaobaopromotionbenefitactivityupdateAPIResponse struct {
	model.CommonResponse
	TaobaopromotionbenefitactivityupdateAPIResponseModel
}

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

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

type TaobaopromotionbenefitactivityupdateAPIResponseModel added in v1.3.1

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 added in v1.3.1

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 added in v1.3.1

func NewTaobaopromotionbenefitselectorRequest() *TaobaopromotionbenefitselectorAPIRequest

NewTaobaopromotionbenefitselectorRequest 初始化TaobaopromotionbenefitselectorAPIRequest对象

func (TaobaopromotionbenefitselectorAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaopromotionbenefitselectorAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaopromotionbenefitselectorAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaopromotionbenefitselectorAPIRequest) GetQuery added in v1.3.1

GetQuery Query Getter

func (TaobaopromotionbenefitselectorAPIRequest) GetRawParams added in v1.3.1

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

func (*TaobaopromotionbenefitselectorAPIRequest) SetQuery added in v1.3.1

SetQuery is Query Setter 权益选择器请求

type TaobaopromotionbenefitselectorAPIResponse added in v1.3.1

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 added in v1.3.1

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 added in v1.3.1

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

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

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

func NewTaobaopromotioncouponaddRequest added in v1.3.1

func NewTaobaopromotioncouponaddRequest() *TaobaopromotioncouponaddAPIRequest

NewTaobaopromotioncouponaddRequest 初始化TaobaopromotioncouponaddAPIRequest对象

func (TaobaopromotioncouponaddAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaopromotioncouponaddAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaopromotioncouponaddAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaopromotioncouponaddAPIRequest) GetCondition added in v1.3.1

func (r TaobaopromotioncouponaddAPIRequest) GetCondition() int64

GetCondition Condition Getter

func (TaobaopromotioncouponaddAPIRequest) GetDenominations added in v1.3.1

func (r TaobaopromotioncouponaddAPIRequest) GetDenominations() int64

GetDenominations Denominations Getter

func (TaobaopromotioncouponaddAPIRequest) GetEndTime added in v1.3.1

GetEndTime EndTime Getter

func (TaobaopromotioncouponaddAPIRequest) GetRawParams added in v1.3.1

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

func (TaobaopromotioncouponaddAPIRequest) GetStartTime added in v1.3.1

func (r TaobaopromotioncouponaddAPIRequest) GetStartTime() string

GetStartTime StartTime Getter

func (*TaobaopromotioncouponaddAPIRequest) SetCondition added in v1.3.1

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

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

func (*TaobaopromotioncouponaddAPIRequest) SetDenominations added in v1.3.1

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

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

func (*TaobaopromotioncouponaddAPIRequest) SetEndTime added in v1.3.1

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

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

func (*TaobaopromotioncouponaddAPIRequest) SetStartTime added in v1.3.1

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

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

type TaobaopromotioncouponaddAPIResponse added in v1.3.1

type TaobaopromotioncouponaddAPIResponse struct {
	model.CommonResponse
	TaobaopromotioncouponaddAPIResponseModel
}

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

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

type TaobaopromotioncouponaddAPIResponseModel added in v1.3.1

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 added in v1.3.1

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

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

优惠券领取

func NewTaobaopromotioncouponapplyRequest added in v1.3.1

func NewTaobaopromotioncouponapplyRequest() *TaobaopromotioncouponapplyAPIRequest

NewTaobaopromotioncouponapplyRequest 初始化TaobaopromotioncouponapplyAPIRequest对象

func (TaobaopromotioncouponapplyAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaopromotioncouponapplyAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaopromotioncouponapplyAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaopromotioncouponapplyAPIRequest) GetRawParams added in v1.3.1

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

func (TaobaopromotioncouponapplyAPIRequest) GetSellerId added in v1.3.1

GetSellerId SellerId Getter

func (TaobaopromotioncouponapplyAPIRequest) GetSpreadId added in v1.3.1

GetSpreadId SpreadId Getter

func (*TaobaopromotioncouponapplyAPIRequest) SetSellerId added in v1.3.1

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

SetSellerId is SellerId Setter 卖家id

func (*TaobaopromotioncouponapplyAPIRequest) SetSpreadId added in v1.3.1

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

SetSpreadId is SpreadId Setter 传播id

type TaobaopromotioncouponapplyAPIResponse added in v1.3.1

type TaobaopromotioncouponapplyAPIResponse struct {
	model.CommonResponse
	TaobaopromotioncouponapplyAPIResponseModel
}

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

优惠券领取

type TaobaopromotioncouponapplyAPIResponseModel added in v1.3.1

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 added in v1.3.1

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

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

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

func NewTaobaopromotioncouponsellersearchRequest added in v1.3.1

func NewTaobaopromotioncouponsellersearchRequest() *TaobaopromotioncouponsellersearchAPIRequest

NewTaobaopromotioncouponsellersearchRequest 初始化TaobaopromotioncouponsellersearchAPIRequest对象

func (TaobaopromotioncouponsellersearchAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaopromotioncouponsellersearchAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaopromotioncouponsellersearchAPIRequest) GetCurrentPage added in v1.3.1

GetCurrentPage CurrentPage Getter

func (TaobaopromotioncouponsellersearchAPIRequest) GetPageSize added in v1.3.1

GetPageSize PageSize Getter

func (TaobaopromotioncouponsellersearchAPIRequest) GetRawParams added in v1.3.1

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

func (TaobaopromotioncouponsellersearchAPIRequest) GetSellerNick added in v1.3.1

GetSellerNick SellerNick Getter

func (TaobaopromotioncouponsellersearchAPIRequest) GetSpreadIds added in v1.3.1

GetSpreadIds SpreadIds Getter

func (*TaobaopromotioncouponsellersearchAPIRequest) SetCurrentPage added in v1.3.1

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

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

func (*TaobaopromotioncouponsellersearchAPIRequest) SetPageSize added in v1.3.1

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

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

func (*TaobaopromotioncouponsellersearchAPIRequest) SetSellerNick added in v1.3.1

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

SetSellerNick is SellerNick Setter 卖家昵称

func (*TaobaopromotioncouponsellersearchAPIRequest) SetSpreadIds added in v1.3.1

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

SetSpreadIds is SpreadIds Setter 券id集合

type TaobaopromotioncouponsellersearchAPIResponse added in v1.3.1

type TaobaopromotioncouponsellersearchAPIResponse struct {
	model.CommonResponse
	TaobaopromotioncouponsellersearchAPIResponseModel
}

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

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

type TaobaopromotioncouponsellersearchAPIResponseModel added in v1.3.1

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 added in v1.3.1

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

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

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

func NewTaobaopromotioncouponsendRequest added in v1.3.1

func NewTaobaopromotioncouponsendRequest() *TaobaopromotioncouponsendAPIRequest

NewTaobaopromotioncouponsendRequest 初始化TaobaopromotioncouponsendAPIRequest对象

func (TaobaopromotioncouponsendAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaopromotioncouponsendAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaopromotioncouponsendAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaopromotioncouponsendAPIRequest) GetBuyerIds added in v1.3.1

func (r TaobaopromotioncouponsendAPIRequest) GetBuyerIds() []string

GetBuyerIds BuyerIds Getter

func (TaobaopromotioncouponsendAPIRequest) GetBuyerNick added in v1.3.1

func (r TaobaopromotioncouponsendAPIRequest) GetBuyerNick() []string

GetBuyerNick BuyerNick Getter

func (TaobaopromotioncouponsendAPIRequest) GetCouponId added in v1.3.1

GetCouponId CouponId Getter

func (TaobaopromotioncouponsendAPIRequest) GetOuidData added in v1.3.1

GetOuidData OuidData Getter

func (TaobaopromotioncouponsendAPIRequest) GetRawParams added in v1.3.1

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

func (*TaobaopromotioncouponsendAPIRequest) SetBuyerIds added in v1.3.1

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

SetBuyerIds is BuyerIds Setter openuid

func (*TaobaopromotioncouponsendAPIRequest) SetBuyerNick added in v1.3.1

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

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

func (*TaobaopromotioncouponsendAPIRequest) SetCouponId added in v1.3.1

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

SetCouponId is CouponId Setter 优惠券的id

func (*TaobaopromotioncouponsendAPIRequest) SetOuidData added in v1.3.1

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

SetOuidData is OuidData Setter ouid

type TaobaopromotioncouponsendAPIResponse added in v1.3.1

type TaobaopromotioncouponsendAPIResponse struct {
	model.CommonResponse
	TaobaopromotioncouponsendAPIResponseModel
}

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

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

type TaobaopromotioncouponsendAPIResponseModel added in v1.3.1

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 TaobaopromotioncouponsgetAPIRequest added in v1.3.1

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

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

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

func NewTaobaopromotioncouponsgetRequest added in v1.3.1

func NewTaobaopromotioncouponsgetRequest() *TaobaopromotioncouponsgetAPIRequest

NewTaobaopromotioncouponsgetRequest 初始化TaobaopromotioncouponsgetAPIRequest对象

func (TaobaopromotioncouponsgetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaopromotioncouponsgetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaopromotioncouponsgetAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaopromotioncouponsgetAPIRequest) GetCouponId added in v1.3.1

GetCouponId CouponId Getter

func (TaobaopromotioncouponsgetAPIRequest) GetDenominations added in v1.3.1

func (r TaobaopromotioncouponsgetAPIRequest) GetDenominations() int64

GetDenominations Denominations Getter

func (TaobaopromotioncouponsgetAPIRequest) GetEndTime added in v1.3.1

GetEndTime EndTime Getter

func (TaobaopromotioncouponsgetAPIRequest) GetPageNo added in v1.3.1

GetPageNo PageNo Getter

func (TaobaopromotioncouponsgetAPIRequest) GetPageSize added in v1.3.1

GetPageSize PageSize Getter

func (TaobaopromotioncouponsgetAPIRequest) GetRawParams added in v1.3.1

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

func (*TaobaopromotioncouponsgetAPIRequest) SetCouponId added in v1.3.1

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

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

func (*TaobaopromotioncouponsgetAPIRequest) SetDenominations added in v1.3.1

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

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

func (*TaobaopromotioncouponsgetAPIRequest) SetEndTime added in v1.3.1

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

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

func (*TaobaopromotioncouponsgetAPIRequest) SetPageNo added in v1.3.1

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

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

func (*TaobaopromotioncouponsgetAPIRequest) SetPageSize added in v1.3.1

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

SetPageSize is PageSize Setter 每页条数

type TaobaopromotioncouponsgetAPIResponse added in v1.3.1

type TaobaopromotioncouponsgetAPIResponse struct {
	model.CommonResponse
	TaobaopromotioncouponsgetAPIResponseModel
}

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

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

type TaobaopromotioncouponsgetAPIResponseModel added in v1.3.1

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 TaobaopromotioncouponsnssendAPIRequest added in v1.3.1

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

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

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

func NewTaobaopromotioncouponsnssendRequest added in v1.3.1

func NewTaobaopromotioncouponsnssendRequest() *TaobaopromotioncouponsnssendAPIRequest

NewTaobaopromotioncouponsnssendRequest 初始化TaobaopromotioncouponsnssendAPIRequest对象

func (TaobaopromotioncouponsnssendAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaopromotioncouponsnssendAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaopromotioncouponsnssendAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaopromotioncouponsnssendAPIRequest) GetBuyerNick added in v1.3.1

GetBuyerNick BuyerNick Getter

func (TaobaopromotioncouponsnssendAPIRequest) GetCouponId added in v1.3.1

GetCouponId CouponId Getter

func (TaobaopromotioncouponsnssendAPIRequest) GetOpenUids added in v1.3.1

GetOpenUids OpenUids Getter

func (TaobaopromotioncouponsnssendAPIRequest) GetRawParams added in v1.3.1

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

func (*TaobaopromotioncouponsnssendAPIRequest) SetBuyerNick added in v1.3.1

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

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

func (*TaobaopromotioncouponsnssendAPIRequest) SetCouponId added in v1.3.1

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

SetCouponId is CouponId Setter 优惠券的id

func (*TaobaopromotioncouponsnssendAPIRequest) SetOpenUids added in v1.3.1

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

SetOpenUids is OpenUids Setter asd

type TaobaopromotioncouponsnssendAPIResponse added in v1.3.1

type TaobaopromotioncouponsnssendAPIResponse struct {
	model.CommonResponse
	TaobaopromotioncouponsnssendAPIResponseModel
}

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

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

type TaobaopromotioncouponsnssendAPIResponseModel added in v1.3.1

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 TaobaopromotionlimitdiscountdetailgetAPIRequest added in v1.3.1

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

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

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

func NewTaobaopromotionlimitdiscountdetailgetRequest added in v1.3.1

func NewTaobaopromotionlimitdiscountdetailgetRequest() *TaobaopromotionlimitdiscountdetailgetAPIRequest

NewTaobaopromotionlimitdiscountdetailgetRequest 初始化TaobaopromotionlimitdiscountdetailgetAPIRequest对象

func (TaobaopromotionlimitdiscountdetailgetAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaopromotionlimitdiscountdetailgetAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaopromotionlimitdiscountdetailgetAPIRequest) GetLimitDiscountId added in v1.3.1

GetLimitDiscountId LimitDiscountId Getter

func (TaobaopromotionlimitdiscountdetailgetAPIRequest) GetRawParams added in v1.3.1

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

func (*TaobaopromotionlimitdiscountdetailgetAPIRequest) SetLimitDiscountId added in v1.3.1

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

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

type TaobaopromotionlimitdiscountdetailgetAPIResponse added in v1.3.1

type TaobaopromotionlimitdiscountdetailgetAPIResponse struct {
	model.CommonResponse
	TaobaopromotionlimitdiscountdetailgetAPIResponseModel
}

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

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

type TaobaopromotionlimitdiscountdetailgetAPIResponseModel added in v1.3.1

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 added in v1.3.1

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

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

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

func NewTaobaopromotionmealgetRequest added in v1.3.1

func NewTaobaopromotionmealgetRequest() *TaobaopromotionmealgetAPIRequest

NewTaobaopromotionmealgetRequest 初始化TaobaopromotionmealgetAPIRequest对象

func (TaobaopromotionmealgetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaopromotionmealgetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaopromotionmealgetAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaopromotionmealgetAPIRequest) GetMealId added in v1.3.1

GetMealId MealId Getter

func (TaobaopromotionmealgetAPIRequest) GetRawParams added in v1.3.1

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

func (TaobaopromotionmealgetAPIRequest) GetStatus added in v1.3.1

GetStatus Status Getter

func (*TaobaopromotionmealgetAPIRequest) SetMealId added in v1.3.1

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

SetMealId is MealId Setter 搭配套餐id

func (*TaobaopromotionmealgetAPIRequest) SetStatus added in v1.3.1

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

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

type TaobaopromotionmealgetAPIResponse added in v1.3.1

type TaobaopromotionmealgetAPIResponse struct {
	model.CommonResponse
	TaobaopromotionmealgetAPIResponseModel
}

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

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

type TaobaopromotionmealgetAPIResponseModel added in v1.3.1

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 added in v1.3.1

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

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

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

func NewTaobaopromotionmiscactivityrangeaddRequest added in v1.3.1

func NewTaobaopromotionmiscactivityrangeaddRequest() *TaobaopromotionmiscactivityrangeaddAPIRequest

NewTaobaopromotionmiscactivityrangeaddRequest 初始化TaobaopromotionmiscactivityrangeaddAPIRequest对象

func (TaobaopromotionmiscactivityrangeaddAPIRequest) GetActivityId added in v1.3.1

GetActivityId ActivityId Getter

func (TaobaopromotionmiscactivityrangeaddAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaopromotionmiscactivityrangeaddAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaopromotionmiscactivityrangeaddAPIRequest) GetIds added in v1.3.1

GetIds Ids Getter

func (TaobaopromotionmiscactivityrangeaddAPIRequest) GetRawParams added in v1.3.1

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

func (*TaobaopromotionmiscactivityrangeaddAPIRequest) SetActivityId added in v1.3.1

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

SetActivityId is ActivityId Setter 活动id。

func (*TaobaopromotionmiscactivityrangeaddAPIRequest) SetIds added in v1.3.1

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

type TaobaopromotionmiscactivityrangeaddAPIResponse added in v1.3.1

type TaobaopromotionmiscactivityrangeaddAPIResponse struct {
	model.CommonResponse
	TaobaopromotionmiscactivityrangeaddAPIResponseModel
}

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

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

type TaobaopromotionmiscactivityrangeaddAPIResponseModel added in v1.3.1

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 added in v1.3.1

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

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

清空活动参与的商品

func NewTaobaopromotionmiscactivityrangeallremoveRequest added in v1.3.1

func NewTaobaopromotionmiscactivityrangeallremoveRequest() *TaobaopromotionmiscactivityrangeallremoveAPIRequest

NewTaobaopromotionmiscactivityrangeallremoveRequest 初始化TaobaopromotionmiscactivityrangeallremoveAPIRequest对象

func (TaobaopromotionmiscactivityrangeallremoveAPIRequest) GetActivityId added in v1.3.1

GetActivityId ActivityId Getter

func (TaobaopromotionmiscactivityrangeallremoveAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaopromotionmiscactivityrangeallremoveAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaopromotionmiscactivityrangeallremoveAPIRequest) GetRawParams added in v1.3.1

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

func (*TaobaopromotionmiscactivityrangeallremoveAPIRequest) SetActivityId added in v1.3.1

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

SetActivityId is ActivityId Setter 活动id。

type TaobaopromotionmiscactivityrangeallremoveAPIResponse added in v1.3.1

type TaobaopromotionmiscactivityrangeallremoveAPIResponse struct {
	model.CommonResponse
	TaobaopromotionmiscactivityrangeallremoveAPIResponseModel
}

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

清空活动参与的商品

type TaobaopromotionmiscactivityrangeallremoveAPIResponseModel added in v1.3.1

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 added in v1.3.1

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

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

查询活动参与的商品

func NewTaobaopromotionmiscactivityrangelistgetRequest added in v1.3.1

func NewTaobaopromotionmiscactivityrangelistgetRequest() *TaobaopromotionmiscactivityrangelistgetAPIRequest

NewTaobaopromotionmiscactivityrangelistgetRequest 初始化TaobaopromotionmiscactivityrangelistgetAPIRequest对象

func (TaobaopromotionmiscactivityrangelistgetAPIRequest) GetActivityId added in v1.3.1

GetActivityId ActivityId Getter

func (TaobaopromotionmiscactivityrangelistgetAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaopromotionmiscactivityrangelistgetAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaopromotionmiscactivityrangelistgetAPIRequest) GetRawParams added in v1.3.1

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

func (*TaobaopromotionmiscactivityrangelistgetAPIRequest) SetActivityId added in v1.3.1

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

SetActivityId is ActivityId Setter 活动id

type TaobaopromotionmiscactivityrangelistgetAPIResponse added in v1.3.1

type TaobaopromotionmiscactivityrangelistgetAPIResponse struct {
	model.CommonResponse
	TaobaopromotionmiscactivityrangelistgetAPIResponseModel
}

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

查询活动参与的商品

type TaobaopromotionmiscactivityrangelistgetAPIResponseModel added in v1.3.1

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 added in v1.3.1

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

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

去除活动参与的商品

func NewTaobaopromotionmiscactivityrangeremoveRequest added in v1.3.1

func NewTaobaopromotionmiscactivityrangeremoveRequest() *TaobaopromotionmiscactivityrangeremoveAPIRequest

NewTaobaopromotionmiscactivityrangeremoveRequest 初始化TaobaopromotionmiscactivityrangeremoveAPIRequest对象

func (TaobaopromotionmiscactivityrangeremoveAPIRequest) GetActivityId added in v1.3.1

GetActivityId ActivityId Getter

func (TaobaopromotionmiscactivityrangeremoveAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaopromotionmiscactivityrangeremoveAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaopromotionmiscactivityrangeremoveAPIRequest) GetIds added in v1.3.1

GetIds Ids Getter

func (TaobaopromotionmiscactivityrangeremoveAPIRequest) GetRawParams added in v1.3.1

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

func (*TaobaopromotionmiscactivityrangeremoveAPIRequest) SetActivityId added in v1.3.1

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

SetActivityId is ActivityId Setter 活动id。

func (*TaobaopromotionmiscactivityrangeremoveAPIRequest) SetIds added in v1.3.1

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

type TaobaopromotionmiscactivityrangeremoveAPIResponse added in v1.3.1

type TaobaopromotionmiscactivityrangeremoveAPIResponse struct {
	model.CommonResponse
	TaobaopromotionmiscactivityrangeremoveAPIResponseModel
}

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

去除活动参与的商品

type TaobaopromotionmiscactivityrangeremoveAPIResponseModel added in v1.3.1

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 added in v1.3.1

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 added in v1.3.1

func NewTaobaopromotionmisccommonitemactivityaddRequest() *TaobaopromotionmisccommonitemactivityaddAPIRequest

NewTaobaopromotionmisccommonitemactivityaddRequest 初始化TaobaopromotionmisccommonitemactivityaddAPIRequest对象

func (TaobaopromotionmisccommonitemactivityaddAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaopromotionmisccommonitemactivityaddAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaopromotionmisccommonitemactivityaddAPIRequest) GetDescription added in v1.3.1

GetDescription Description Getter

func (TaobaopromotionmisccommonitemactivityaddAPIRequest) GetEndTime added in v1.3.1

GetEndTime EndTime Getter

func (TaobaopromotionmisccommonitemactivityaddAPIRequest) GetIsUserTag added in v1.3.1

GetIsUserTag IsUserTag Getter

func (TaobaopromotionmisccommonitemactivityaddAPIRequest) GetName added in v1.3.1

GetName Name Getter

func (TaobaopromotionmisccommonitemactivityaddAPIRequest) GetRawParams added in v1.3.1

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

func (TaobaopromotionmisccommonitemactivityaddAPIRequest) GetStartTime added in v1.3.1

GetStartTime StartTime Getter

func (TaobaopromotionmisccommonitemactivityaddAPIRequest) GetUserTag added in v1.3.1

GetUserTag UserTag Getter

func (*TaobaopromotionmisccommonitemactivityaddAPIRequest) SetDescription added in v1.3.1

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

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

func (*TaobaopromotionmisccommonitemactivityaddAPIRequest) SetEndTime added in v1.3.1

SetEndTime is EndTime Setter 活动结束时间

func (*TaobaopromotionmisccommonitemactivityaddAPIRequest) SetIsUserTag added in v1.3.1

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

func (*TaobaopromotionmisccommonitemactivityaddAPIRequest) SetName added in v1.3.1

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

func (*TaobaopromotionmisccommonitemactivityaddAPIRequest) SetStartTime added in v1.3.1

SetStartTime is StartTime Setter 活动开始时间

func (*TaobaopromotionmisccommonitemactivityaddAPIRequest) SetUserTag added in v1.3.1

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

type TaobaopromotionmisccommonitemactivityaddAPIResponse added in v1.3.1

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 added in v1.3.1

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 added in v1.3.1

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

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

删除通用单品优惠活动。

func NewTaobaopromotionmisccommonitemactivitydeleteRequest added in v1.3.1

func NewTaobaopromotionmisccommonitemactivitydeleteRequest() *TaobaopromotionmisccommonitemactivitydeleteAPIRequest

NewTaobaopromotionmisccommonitemactivitydeleteRequest 初始化TaobaopromotionmisccommonitemactivitydeleteAPIRequest对象

func (TaobaopromotionmisccommonitemactivitydeleteAPIRequest) GetActivityId added in v1.3.1

GetActivityId ActivityId Getter

func (TaobaopromotionmisccommonitemactivitydeleteAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaopromotionmisccommonitemactivitydeleteAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaopromotionmisccommonitemactivitydeleteAPIRequest) GetRawParams added in v1.3.1

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

func (*TaobaopromotionmisccommonitemactivitydeleteAPIRequest) SetActivityId added in v1.3.1

SetActivityId is ActivityId Setter 优惠活动ID

type TaobaopromotionmisccommonitemactivitydeleteAPIResponse added in v1.3.1

type TaobaopromotionmisccommonitemactivitydeleteAPIResponse struct {
	model.CommonResponse
	TaobaopromotionmisccommonitemactivitydeleteAPIResponseModel
}

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

删除通用单品优惠活动。

type TaobaopromotionmisccommonitemactivitydeleteAPIResponseModel added in v1.3.1

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 added in v1.3.1

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

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

查询通用单品优惠活动。

func NewTaobaopromotionmisccommonitemactivitygetRequest added in v1.3.1

func NewTaobaopromotionmisccommonitemactivitygetRequest() *TaobaopromotionmisccommonitemactivitygetAPIRequest

NewTaobaopromotionmisccommonitemactivitygetRequest 初始化TaobaopromotionmisccommonitemactivitygetAPIRequest对象

func (TaobaopromotionmisccommonitemactivitygetAPIRequest) GetActivityId added in v1.3.1

GetActivityId ActivityId Getter

func (TaobaopromotionmisccommonitemactivitygetAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaopromotionmisccommonitemactivitygetAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaopromotionmisccommonitemactivitygetAPIRequest) GetRawParams added in v1.3.1

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

func (*TaobaopromotionmisccommonitemactivitygetAPIRequest) SetActivityId added in v1.3.1

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

SetActivityId is ActivityId Setter 优惠活动ID

type TaobaopromotionmisccommonitemactivitygetAPIResponse added in v1.3.1

type TaobaopromotionmisccommonitemactivitygetAPIResponse struct {
	model.CommonResponse
	TaobaopromotionmisccommonitemactivitygetAPIResponseModel
}

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

查询通用单品优惠活动。

type TaobaopromotionmisccommonitemactivitygetAPIResponseModel added in v1.3.1

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 added in v1.3.1

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

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

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

func NewTaobaopromotionmisccommonitemactivitylistgetRequest added in v1.3.1

func NewTaobaopromotionmisccommonitemactivitylistgetRequest() *TaobaopromotionmisccommonitemactivitylistgetAPIRequest

NewTaobaopromotionmisccommonitemactivitylistgetRequest 初始化TaobaopromotionmisccommonitemactivitylistgetAPIRequest对象

func (TaobaopromotionmisccommonitemactivitylistgetAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaopromotionmisccommonitemactivitylistgetAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaopromotionmisccommonitemactivitylistgetAPIRequest) GetPageNo added in v1.3.1

GetPageNo PageNo Getter

func (TaobaopromotionmisccommonitemactivitylistgetAPIRequest) GetPageSize added in v1.3.1

GetPageSize PageSize Getter

func (TaobaopromotionmisccommonitemactivitylistgetAPIRequest) GetRawParams added in v1.3.1

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

func (*TaobaopromotionmisccommonitemactivitylistgetAPIRequest) SetPageNo added in v1.3.1

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

func (*TaobaopromotionmisccommonitemactivitylistgetAPIRequest) SetPageSize added in v1.3.1

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

type TaobaopromotionmisccommonitemactivitylistgetAPIResponse added in v1.3.1

type TaobaopromotionmisccommonitemactivitylistgetAPIResponse struct {
	model.CommonResponse
	TaobaopromotionmisccommonitemactivitylistgetAPIResponseModel
}

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

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

type TaobaopromotionmisccommonitemactivitylistgetAPIResponseModel added in v1.3.1

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 added in v1.3.1

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 added in v1.3.1

func NewTaobaopromotionmisccommonitemactivityupdateRequest() *TaobaopromotionmisccommonitemactivityupdateAPIRequest

NewTaobaopromotionmisccommonitemactivityupdateRequest 初始化TaobaopromotionmisccommonitemactivityupdateAPIRequest对象

func (TaobaopromotionmisccommonitemactivityupdateAPIRequest) GetActivityId added in v1.3.1

GetActivityId ActivityId Getter

func (TaobaopromotionmisccommonitemactivityupdateAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaopromotionmisccommonitemactivityupdateAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaopromotionmisccommonitemactivityupdateAPIRequest) GetDescription added in v1.3.1

GetDescription Description Getter

func (TaobaopromotionmisccommonitemactivityupdateAPIRequest) GetEndTime added in v1.3.1

GetEndTime EndTime Getter

func (TaobaopromotionmisccommonitemactivityupdateAPIRequest) GetIsUserTag added in v1.3.1

GetIsUserTag IsUserTag Getter

func (TaobaopromotionmisccommonitemactivityupdateAPIRequest) GetName added in v1.3.1

GetName Name Getter

func (TaobaopromotionmisccommonitemactivityupdateAPIRequest) GetRawParams added in v1.3.1

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

func (TaobaopromotionmisccommonitemactivityupdateAPIRequest) GetStartTime added in v1.3.1

GetStartTime StartTime Getter

func (TaobaopromotionmisccommonitemactivityupdateAPIRequest) GetUserTag added in v1.3.1

GetUserTag UserTag Getter

func (*TaobaopromotionmisccommonitemactivityupdateAPIRequest) SetActivityId added in v1.3.1

SetActivityId is ActivityId Setter 优惠活动ID

func (*TaobaopromotionmisccommonitemactivityupdateAPIRequest) SetDescription added in v1.3.1

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

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

func (*TaobaopromotionmisccommonitemactivityupdateAPIRequest) SetEndTime added in v1.3.1

SetEndTime is EndTime Setter 活动结束时间

func (*TaobaopromotionmisccommonitemactivityupdateAPIRequest) SetIsUserTag added in v1.3.1

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

func (*TaobaopromotionmisccommonitemactivityupdateAPIRequest) SetName added in v1.3.1

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

func (*TaobaopromotionmisccommonitemactivityupdateAPIRequest) SetStartTime added in v1.3.1

SetStartTime is StartTime Setter 活动开始时间

func (*TaobaopromotionmisccommonitemactivityupdateAPIRequest) SetUserTag added in v1.3.1

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

type TaobaopromotionmisccommonitemactivityupdateAPIResponse added in v1.3.1

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 added in v1.3.1

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 added in v1.3.1

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 added in v1.3.1

func NewTaobaopromotionmisccommonitemdetailaddRequest() *TaobaopromotionmisccommonitemdetailaddAPIRequest

NewTaobaopromotionmisccommonitemdetailaddRequest 初始化TaobaopromotionmisccommonitemdetailaddAPIRequest对象

func (TaobaopromotionmisccommonitemdetailaddAPIRequest) GetActivityId added in v1.3.1

GetActivityId ActivityId Getter

func (TaobaopromotionmisccommonitemdetailaddAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaopromotionmisccommonitemdetailaddAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaopromotionmisccommonitemdetailaddAPIRequest) GetItemId added in v1.3.1

GetItemId ItemId Getter

func (TaobaopromotionmisccommonitemdetailaddAPIRequest) GetPromotionType added in v1.3.1

GetPromotionType PromotionType Getter

func (TaobaopromotionmisccommonitemdetailaddAPIRequest) GetPromotionValue added in v1.3.1

GetPromotionValue PromotionValue Getter

func (TaobaopromotionmisccommonitemdetailaddAPIRequest) GetRawParams added in v1.3.1

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

func (*TaobaopromotionmisccommonitemdetailaddAPIRequest) SetActivityId added in v1.3.1

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

SetActivityId is ActivityId Setter 优惠活动ID

func (*TaobaopromotionmisccommonitemdetailaddAPIRequest) SetItemId added in v1.3.1

SetItemId is ItemId Setter 商品ID

func (*TaobaopromotionmisccommonitemdetailaddAPIRequest) SetPromotionType added in v1.3.1

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

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

func (*TaobaopromotionmisccommonitemdetailaddAPIRequest) SetPromotionValue added in v1.3.1

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

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

type TaobaopromotionmisccommonitemdetailaddAPIResponse added in v1.3.1

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 added in v1.3.1

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 added in v1.3.1

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

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

删除通用单品优惠详情。

func NewTaobaopromotionmisccommonitemdetaildeleteRequest added in v1.3.1

func NewTaobaopromotionmisccommonitemdetaildeleteRequest() *TaobaopromotionmisccommonitemdetaildeleteAPIRequest

NewTaobaopromotionmisccommonitemdetaildeleteRequest 初始化TaobaopromotionmisccommonitemdetaildeleteAPIRequest对象

func (TaobaopromotionmisccommonitemdetaildeleteAPIRequest) GetActivityId added in v1.3.1

GetActivityId ActivityId Getter

func (TaobaopromotionmisccommonitemdetaildeleteAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaopromotionmisccommonitemdetaildeleteAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaopromotionmisccommonitemdetaildeleteAPIRequest) GetDetailId added in v1.3.1

GetDetailId DetailId Getter

func (TaobaopromotionmisccommonitemdetaildeleteAPIRequest) GetRawParams added in v1.3.1

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

func (*TaobaopromotionmisccommonitemdetaildeleteAPIRequest) SetActivityId added in v1.3.1

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

SetActivityId is ActivityId Setter 优惠活动ID

func (*TaobaopromotionmisccommonitemdetaildeleteAPIRequest) SetDetailId added in v1.3.1

SetDetailId is DetailId Setter 优惠详情ID

type TaobaopromotionmisccommonitemdetaildeleteAPIResponse added in v1.3.1

type TaobaopromotionmisccommonitemdetaildeleteAPIResponse struct {
	model.CommonResponse
	TaobaopromotionmisccommonitemdetaildeleteAPIResponseModel
}

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

删除通用单品优惠详情。

type TaobaopromotionmisccommonitemdetaildeleteAPIResponseModel added in v1.3.1

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 added in v1.3.1

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

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

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

func NewTaobaopromotionmisccommonitemdetaillistgetRequest added in v1.3.1

func NewTaobaopromotionmisccommonitemdetaillistgetRequest() *TaobaopromotionmisccommonitemdetaillistgetAPIRequest

NewTaobaopromotionmisccommonitemdetaillistgetRequest 初始化TaobaopromotionmisccommonitemdetaillistgetAPIRequest对象

func (TaobaopromotionmisccommonitemdetaillistgetAPIRequest) GetActivityId added in v1.3.1

GetActivityId ActivityId Getter

func (TaobaopromotionmisccommonitemdetaillistgetAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaopromotionmisccommonitemdetaillistgetAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaopromotionmisccommonitemdetaillistgetAPIRequest) GetPageNo added in v1.3.1

GetPageNo PageNo Getter

func (TaobaopromotionmisccommonitemdetaillistgetAPIRequest) GetPageSize added in v1.3.1

GetPageSize PageSize Getter

func (TaobaopromotionmisccommonitemdetaillistgetAPIRequest) GetRawParams added in v1.3.1

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

func (*TaobaopromotionmisccommonitemdetaillistgetAPIRequest) SetActivityId added in v1.3.1

SetActivityId is ActivityId Setter 优惠活动ID

func (*TaobaopromotionmisccommonitemdetaillistgetAPIRequest) SetPageNo added in v1.3.1

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

func (*TaobaopromotionmisccommonitemdetaillistgetAPIRequest) SetPageSize added in v1.3.1

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

type TaobaopromotionmisccommonitemdetaillistgetAPIResponse added in v1.3.1

type TaobaopromotionmisccommonitemdetaillistgetAPIResponse struct {
	model.CommonResponse
	TaobaopromotionmisccommonitemdetaillistgetAPIResponseModel
}

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

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

type TaobaopromotionmisccommonitemdetaillistgetAPIResponseModel added in v1.3.1

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 added in v1.3.1

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 added in v1.3.1

func NewTaobaopromotionmisccommonitemdetailupdateRequest() *TaobaopromotionmisccommonitemdetailupdateAPIRequest

NewTaobaopromotionmisccommonitemdetailupdateRequest 初始化TaobaopromotionmisccommonitemdetailupdateAPIRequest对象

func (TaobaopromotionmisccommonitemdetailupdateAPIRequest) GetActivityId added in v1.3.1

GetActivityId ActivityId Getter

func (TaobaopromotionmisccommonitemdetailupdateAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaopromotionmisccommonitemdetailupdateAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaopromotionmisccommonitemdetailupdateAPIRequest) GetDetailId added in v1.3.1

GetDetailId DetailId Getter

func (TaobaopromotionmisccommonitemdetailupdateAPIRequest) GetItemId added in v1.3.1

GetItemId ItemId Getter

func (TaobaopromotionmisccommonitemdetailupdateAPIRequest) GetPromotionType added in v1.3.1

GetPromotionType PromotionType Getter

func (TaobaopromotionmisccommonitemdetailupdateAPIRequest) GetPromotionValue added in v1.3.1

GetPromotionValue PromotionValue Getter

func (TaobaopromotionmisccommonitemdetailupdateAPIRequest) GetRawParams added in v1.3.1

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

func (*TaobaopromotionmisccommonitemdetailupdateAPIRequest) SetActivityId added in v1.3.1

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

SetActivityId is ActivityId Setter 优惠活动ID

func (*TaobaopromotionmisccommonitemdetailupdateAPIRequest) SetDetailId added in v1.3.1

SetDetailId is DetailId Setter 优惠详情ID

func (*TaobaopromotionmisccommonitemdetailupdateAPIRequest) SetItemId added in v1.3.1

SetItemId is ItemId Setter 商品ID

func (*TaobaopromotionmisccommonitemdetailupdateAPIRequest) SetPromotionType added in v1.3.1

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

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

func (*TaobaopromotionmisccommonitemdetailupdateAPIRequest) SetPromotionValue added in v1.3.1

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

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

type TaobaopromotionmisccommonitemdetailupdateAPIResponse added in v1.3.1

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 added in v1.3.1

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 added in v1.3.1

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 added in v1.3.1

func NewTaobaopromotionmiscitemactivityaddRequest() *TaobaopromotionmiscitemactivityaddAPIRequest

NewTaobaopromotionmiscitemactivityaddRequest 初始化TaobaopromotionmiscitemactivityaddAPIRequest对象

func (TaobaopromotionmiscitemactivityaddAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaopromotionmiscitemactivityaddAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaopromotionmiscitemactivityaddAPIRequest) GetDecreaseAmount added in v1.3.1

GetDecreaseAmount DecreaseAmount Getter

func (TaobaopromotionmiscitemactivityaddAPIRequest) GetDiscountRate added in v1.3.1

GetDiscountRate DiscountRate Getter

func (TaobaopromotionmiscitemactivityaddAPIRequest) GetEndTime added in v1.3.1

GetEndTime EndTime Getter

func (TaobaopromotionmiscitemactivityaddAPIRequest) GetIsDecreaseMoney added in v1.3.1

func (r TaobaopromotionmiscitemactivityaddAPIRequest) GetIsDecreaseMoney() bool

GetIsDecreaseMoney IsDecreaseMoney Getter

func (TaobaopromotionmiscitemactivityaddAPIRequest) GetIsDiscount added in v1.3.1

GetIsDiscount IsDiscount Getter

func (TaobaopromotionmiscitemactivityaddAPIRequest) GetIsUserTag added in v1.3.1

GetIsUserTag IsUserTag Getter

func (TaobaopromotionmiscitemactivityaddAPIRequest) GetName added in v1.3.1

GetName Name Getter

func (TaobaopromotionmiscitemactivityaddAPIRequest) GetParticipateRange added in v1.3.1

func (r TaobaopromotionmiscitemactivityaddAPIRequest) GetParticipateRange() int64

GetParticipateRange ParticipateRange Getter

func (TaobaopromotionmiscitemactivityaddAPIRequest) GetRawParams added in v1.3.1

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

func (TaobaopromotionmiscitemactivityaddAPIRequest) GetStartTime added in v1.3.1

GetStartTime StartTime Getter

func (TaobaopromotionmiscitemactivityaddAPIRequest) GetUserTag added in v1.3.1

GetUserTag UserTag Getter

func (*TaobaopromotionmiscitemactivityaddAPIRequest) SetDecreaseAmount added in v1.3.1

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

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

func (*TaobaopromotionmiscitemactivityaddAPIRequest) SetDiscountRate added in v1.3.1

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

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

func (*TaobaopromotionmiscitemactivityaddAPIRequest) SetEndTime added in v1.3.1

SetEndTime is EndTime Setter 活动结束时间。

func (*TaobaopromotionmiscitemactivityaddAPIRequest) SetIsDecreaseMoney added in v1.3.1

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

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

func (*TaobaopromotionmiscitemactivityaddAPIRequest) SetIsDiscount added in v1.3.1

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

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

func (*TaobaopromotionmiscitemactivityaddAPIRequest) SetIsUserTag added in v1.3.1

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

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

func (*TaobaopromotionmiscitemactivityaddAPIRequest) SetName added in v1.3.1

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

func (*TaobaopromotionmiscitemactivityaddAPIRequest) SetParticipateRange added in v1.3.1

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

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

func (*TaobaopromotionmiscitemactivityaddAPIRequest) SetStartTime added in v1.3.1

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

SetStartTime is StartTime Setter 活动开始时间。

func (*TaobaopromotionmiscitemactivityaddAPIRequest) SetUserTag added in v1.3.1

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

type TaobaopromotionmiscitemactivityaddAPIResponse added in v1.3.1

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 added in v1.3.1

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 added in v1.3.1

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

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

删除无条件单品优惠活动

func NewTaobaopromotionmiscitemactivitydeleteRequest added in v1.3.1

func NewTaobaopromotionmiscitemactivitydeleteRequest() *TaobaopromotionmiscitemactivitydeleteAPIRequest

NewTaobaopromotionmiscitemactivitydeleteRequest 初始化TaobaopromotionmiscitemactivitydeleteAPIRequest对象

func (TaobaopromotionmiscitemactivitydeleteAPIRequest) GetActivityId added in v1.3.1

GetActivityId ActivityId Getter

func (TaobaopromotionmiscitemactivitydeleteAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaopromotionmiscitemactivitydeleteAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaopromotionmiscitemactivitydeleteAPIRequest) GetRawParams added in v1.3.1

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

func (*TaobaopromotionmiscitemactivitydeleteAPIRequest) SetActivityId added in v1.3.1

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

SetActivityId is ActivityId Setter 活动id。

type TaobaopromotionmiscitemactivitydeleteAPIResponse added in v1.3.1

type TaobaopromotionmiscitemactivitydeleteAPIResponse struct {
	model.CommonResponse
	TaobaopromotionmiscitemactivitydeleteAPIResponseModel
}

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

删除无条件单品优惠活动

type TaobaopromotionmiscitemactivitydeleteAPIResponseModel added in v1.3.1

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 added in v1.3.1

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

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

查询无条件单品优惠活动

func NewTaobaopromotionmiscitemactivitygetRequest added in v1.3.1

func NewTaobaopromotionmiscitemactivitygetRequest() *TaobaopromotionmiscitemactivitygetAPIRequest

NewTaobaopromotionmiscitemactivitygetRequest 初始化TaobaopromotionmiscitemactivitygetAPIRequest对象

func (TaobaopromotionmiscitemactivitygetAPIRequest) GetActivityId added in v1.3.1

GetActivityId ActivityId Getter

func (TaobaopromotionmiscitemactivitygetAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaopromotionmiscitemactivitygetAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaopromotionmiscitemactivitygetAPIRequest) GetRawParams added in v1.3.1

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

func (*TaobaopromotionmiscitemactivitygetAPIRequest) SetActivityId added in v1.3.1

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

SetActivityId is ActivityId Setter 活动id。

type TaobaopromotionmiscitemactivitygetAPIResponse added in v1.3.1

type TaobaopromotionmiscitemactivitygetAPIResponse struct {
	model.CommonResponse
	TaobaopromotionmiscitemactivitygetAPIResponseModel
}

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

查询无条件单品优惠活动

type TaobaopromotionmiscitemactivitygetAPIResponseModel added in v1.3.1

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 added in v1.3.1

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

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

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

func NewTaobaopromotionmiscitemactivitylistgetRequest added in v1.3.1

func NewTaobaopromotionmiscitemactivitylistgetRequest() *TaobaopromotionmiscitemactivitylistgetAPIRequest

NewTaobaopromotionmiscitemactivitylistgetRequest 初始化TaobaopromotionmiscitemactivitylistgetAPIRequest对象

func (TaobaopromotionmiscitemactivitylistgetAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaopromotionmiscitemactivitylistgetAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaopromotionmiscitemactivitylistgetAPIRequest) GetPageNo added in v1.3.1

GetPageNo PageNo Getter

func (TaobaopromotionmiscitemactivitylistgetAPIRequest) GetPageSize added in v1.3.1

GetPageSize PageSize Getter

func (TaobaopromotionmiscitemactivitylistgetAPIRequest) GetRawParams added in v1.3.1

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

func (*TaobaopromotionmiscitemactivitylistgetAPIRequest) SetPageNo added in v1.3.1

SetPageNo is PageNo Setter 页码。

func (*TaobaopromotionmiscitemactivitylistgetAPIRequest) SetPageSize added in v1.3.1

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

type TaobaopromotionmiscitemactivitylistgetAPIResponse added in v1.3.1

type TaobaopromotionmiscitemactivitylistgetAPIResponse struct {
	model.CommonResponse
	TaobaopromotionmiscitemactivitylistgetAPIResponseModel
}

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

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

type TaobaopromotionmiscitemactivitylistgetAPIResponseModel added in v1.3.1

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 added in v1.3.1

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 added in v1.3.1

func NewTaobaopromotionmiscitemactivityupdateRequest() *TaobaopromotionmiscitemactivityupdateAPIRequest

NewTaobaopromotionmiscitemactivityupdateRequest 初始化TaobaopromotionmiscitemactivityupdateAPIRequest对象

func (TaobaopromotionmiscitemactivityupdateAPIRequest) GetActivityId added in v1.3.1

GetActivityId ActivityId Getter

func (TaobaopromotionmiscitemactivityupdateAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaopromotionmiscitemactivityupdateAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaopromotionmiscitemactivityupdateAPIRequest) GetDecreaseAmount added in v1.3.1

GetDecreaseAmount DecreaseAmount Getter

func (TaobaopromotionmiscitemactivityupdateAPIRequest) GetDiscountRate added in v1.3.1

GetDiscountRate DiscountRate Getter

func (TaobaopromotionmiscitemactivityupdateAPIRequest) GetEndTime added in v1.3.1

GetEndTime EndTime Getter

func (TaobaopromotionmiscitemactivityupdateAPIRequest) GetIsDecreaseMoney added in v1.3.1

GetIsDecreaseMoney IsDecreaseMoney Getter

func (TaobaopromotionmiscitemactivityupdateAPIRequest) GetIsDiscount added in v1.3.1

GetIsDiscount IsDiscount Getter

func (TaobaopromotionmiscitemactivityupdateAPIRequest) GetIsUserTag added in v1.3.1

GetIsUserTag IsUserTag Getter

func (TaobaopromotionmiscitemactivityupdateAPIRequest) GetName added in v1.3.1

GetName Name Getter

func (TaobaopromotionmiscitemactivityupdateAPIRequest) GetParticipateRange added in v1.3.1

GetParticipateRange ParticipateRange Getter

func (TaobaopromotionmiscitemactivityupdateAPIRequest) GetRawParams added in v1.3.1

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

func (TaobaopromotionmiscitemactivityupdateAPIRequest) GetStartTime added in v1.3.1

GetStartTime StartTime Getter

func (TaobaopromotionmiscitemactivityupdateAPIRequest) GetUserTag added in v1.3.1

GetUserTag UserTag Getter

func (*TaobaopromotionmiscitemactivityupdateAPIRequest) SetActivityId added in v1.3.1

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

SetActivityId is ActivityId Setter 活动id。

func (*TaobaopromotionmiscitemactivityupdateAPIRequest) SetDecreaseAmount added in v1.3.1

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

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

func (*TaobaopromotionmiscitemactivityupdateAPIRequest) SetDiscountRate added in v1.3.1

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

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

func (*TaobaopromotionmiscitemactivityupdateAPIRequest) SetEndTime added in v1.3.1

SetEndTime is EndTime Setter 活动结束时间。

func (*TaobaopromotionmiscitemactivityupdateAPIRequest) SetIsDecreaseMoney added in v1.3.1

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

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

func (*TaobaopromotionmiscitemactivityupdateAPIRequest) SetIsDiscount added in v1.3.1

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

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

func (*TaobaopromotionmiscitemactivityupdateAPIRequest) SetIsUserTag added in v1.3.1

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

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

func (*TaobaopromotionmiscitemactivityupdateAPIRequest) SetName added in v1.3.1

SetName is Name Setter 活动名称。

func (*TaobaopromotionmiscitemactivityupdateAPIRequest) SetParticipateRange added in v1.3.1

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

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

func (*TaobaopromotionmiscitemactivityupdateAPIRequest) SetStartTime added in v1.3.1

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

SetStartTime is StartTime Setter 活动开始时间。

func (*TaobaopromotionmiscitemactivityupdateAPIRequest) SetUserTag added in v1.3.1

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

type TaobaopromotionmiscitemactivityupdateAPIResponse added in v1.3.1

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 added in v1.3.1

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 added in v1.3.1

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 added in v1.3.1

func NewTaobaopromotionmiscmjsactivityaddRequest() *TaobaopromotionmiscmjsactivityaddAPIRequest

NewTaobaopromotionmiscmjsactivityaddRequest 初始化TaobaopromotionmiscmjsactivityaddAPIRequest对象

func (TaobaopromotionmiscmjsactivityaddAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaopromotionmiscmjsactivityaddAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaopromotionmiscmjsactivityaddAPIRequest) GetDecreaseAmount added in v1.3.1

func (r TaobaopromotionmiscmjsactivityaddAPIRequest) GetDecreaseAmount() int64

GetDecreaseAmount DecreaseAmount Getter

func (TaobaopromotionmiscmjsactivityaddAPIRequest) GetDiscountRate added in v1.3.1

GetDiscountRate DiscountRate Getter

func (TaobaopromotionmiscmjsactivityaddAPIRequest) GetEndTime added in v1.3.1

GetEndTime EndTime Getter

func (TaobaopromotionmiscmjsactivityaddAPIRequest) GetExcludeArea added in v1.3.1

GetExcludeArea ExcludeArea Getter

func (TaobaopromotionmiscmjsactivityaddAPIRequest) GetGiftId added in v1.3.1

GetGiftId GiftId Getter

func (TaobaopromotionmiscmjsactivityaddAPIRequest) GetGiftName added in v1.3.1

GetGiftName GiftName Getter

func (TaobaopromotionmiscmjsactivityaddAPIRequest) GetGiftUrl added in v1.3.1

GetGiftUrl GiftUrl Getter

func (TaobaopromotionmiscmjsactivityaddAPIRequest) GetIsAmountMultiple added in v1.3.1

func (r TaobaopromotionmiscmjsactivityaddAPIRequest) GetIsAmountMultiple() bool

GetIsAmountMultiple IsAmountMultiple Getter

func (TaobaopromotionmiscmjsactivityaddAPIRequest) GetIsAmountOver added in v1.3.1

GetIsAmountOver IsAmountOver Getter

func (TaobaopromotionmiscmjsactivityaddAPIRequest) GetIsDecreaseMoney added in v1.3.1

func (r TaobaopromotionmiscmjsactivityaddAPIRequest) GetIsDecreaseMoney() bool

GetIsDecreaseMoney IsDecreaseMoney Getter

func (TaobaopromotionmiscmjsactivityaddAPIRequest) GetIsDiscount added in v1.3.1

GetIsDiscount IsDiscount Getter

func (TaobaopromotionmiscmjsactivityaddAPIRequest) GetIsFreePost added in v1.3.1

GetIsFreePost IsFreePost Getter

func (TaobaopromotionmiscmjsactivityaddAPIRequest) GetIsItemCountOver added in v1.3.1

func (r TaobaopromotionmiscmjsactivityaddAPIRequest) GetIsItemCountOver() bool

GetIsItemCountOver IsItemCountOver Getter

func (TaobaopromotionmiscmjsactivityaddAPIRequest) GetIsItemMultiple added in v1.3.1

func (r TaobaopromotionmiscmjsactivityaddAPIRequest) GetIsItemMultiple() bool

GetIsItemMultiple IsItemMultiple Getter

func (TaobaopromotionmiscmjsactivityaddAPIRequest) GetIsSendGift added in v1.3.1

GetIsSendGift IsSendGift Getter

func (TaobaopromotionmiscmjsactivityaddAPIRequest) GetIsShopMember added in v1.3.1

GetIsShopMember IsShopMember Getter

func (TaobaopromotionmiscmjsactivityaddAPIRequest) GetIsUserTag added in v1.3.1

GetIsUserTag IsUserTag Getter

func (TaobaopromotionmiscmjsactivityaddAPIRequest) GetItemCount added in v1.3.1

GetItemCount ItemCount Getter

func (TaobaopromotionmiscmjsactivityaddAPIRequest) GetName added in v1.3.1

GetName Name Getter

func (TaobaopromotionmiscmjsactivityaddAPIRequest) GetParticipateRange added in v1.3.1

func (r TaobaopromotionmiscmjsactivityaddAPIRequest) GetParticipateRange() int64

GetParticipateRange ParticipateRange Getter

func (TaobaopromotionmiscmjsactivityaddAPIRequest) GetRawParams added in v1.3.1

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

func (TaobaopromotionmiscmjsactivityaddAPIRequest) GetShopMemberLevel added in v1.3.1

func (r TaobaopromotionmiscmjsactivityaddAPIRequest) GetShopMemberLevel() int64

GetShopMemberLevel ShopMemberLevel Getter

func (TaobaopromotionmiscmjsactivityaddAPIRequest) GetStartTime added in v1.3.1

GetStartTime StartTime Getter

func (TaobaopromotionmiscmjsactivityaddAPIRequest) GetTotalPrice added in v1.3.1

GetTotalPrice TotalPrice Getter

func (TaobaopromotionmiscmjsactivityaddAPIRequest) GetType added in v1.3.1

GetType Type Getter

func (TaobaopromotionmiscmjsactivityaddAPIRequest) GetUserTag added in v1.3.1

GetUserTag UserTag Getter

func (*TaobaopromotionmiscmjsactivityaddAPIRequest) SetDecreaseAmount added in v1.3.1

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

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

func (*TaobaopromotionmiscmjsactivityaddAPIRequest) SetDiscountRate added in v1.3.1

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

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

func (*TaobaopromotionmiscmjsactivityaddAPIRequest) SetEndTime added in v1.3.1

SetEndTime is EndTime Setter 活动结束时间。

func (*TaobaopromotionmiscmjsactivityaddAPIRequest) SetExcludeArea added in v1.3.1

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

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

func (*TaobaopromotionmiscmjsactivityaddAPIRequest) SetGiftId added in v1.3.1

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

func (*TaobaopromotionmiscmjsactivityaddAPIRequest) SetGiftName added in v1.3.1

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

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

func (*TaobaopromotionmiscmjsactivityaddAPIRequest) SetGiftUrl added in v1.3.1

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

func (*TaobaopromotionmiscmjsactivityaddAPIRequest) SetIsAmountMultiple added in v1.3.1

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

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

func (*TaobaopromotionmiscmjsactivityaddAPIRequest) SetIsAmountOver added in v1.3.1

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

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

func (*TaobaopromotionmiscmjsactivityaddAPIRequest) SetIsDecreaseMoney added in v1.3.1

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

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

func (*TaobaopromotionmiscmjsactivityaddAPIRequest) SetIsDiscount added in v1.3.1

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

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

func (*TaobaopromotionmiscmjsactivityaddAPIRequest) SetIsFreePost added in v1.3.1

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

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

func (*TaobaopromotionmiscmjsactivityaddAPIRequest) SetIsItemCountOver added in v1.3.1

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

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

func (*TaobaopromotionmiscmjsactivityaddAPIRequest) SetIsItemMultiple added in v1.3.1

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

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

func (*TaobaopromotionmiscmjsactivityaddAPIRequest) SetIsSendGift added in v1.3.1

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

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

func (*TaobaopromotionmiscmjsactivityaddAPIRequest) SetIsShopMember added in v1.3.1

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

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

func (*TaobaopromotionmiscmjsactivityaddAPIRequest) SetIsUserTag added in v1.3.1

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

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

func (*TaobaopromotionmiscmjsactivityaddAPIRequest) SetItemCount added in v1.3.1

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

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

func (*TaobaopromotionmiscmjsactivityaddAPIRequest) SetName added in v1.3.1

SetName is Name Setter 活动名称。

func (*TaobaopromotionmiscmjsactivityaddAPIRequest) SetParticipateRange added in v1.3.1

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

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

func (*TaobaopromotionmiscmjsactivityaddAPIRequest) SetShopMemberLevel added in v1.3.1

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 added in v1.3.1

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

SetStartTime is StartTime Setter 活动开始时间。

func (*TaobaopromotionmiscmjsactivityaddAPIRequest) SetTotalPrice added in v1.3.1

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

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

func (*TaobaopromotionmiscmjsactivityaddAPIRequest) SetType added in v1.3.1

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

func (*TaobaopromotionmiscmjsactivityaddAPIRequest) SetUserTag added in v1.3.1

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

type TaobaopromotionmiscmjsactivityaddAPIResponse added in v1.3.1

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 added in v1.3.1

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 added in v1.3.1

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

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

删除满就送活动

func NewTaobaopromotionmiscmjsactivitydeleteRequest added in v1.3.1

func NewTaobaopromotionmiscmjsactivitydeleteRequest() *TaobaopromotionmiscmjsactivitydeleteAPIRequest

NewTaobaopromotionmiscmjsactivitydeleteRequest 初始化TaobaopromotionmiscmjsactivitydeleteAPIRequest对象

func (TaobaopromotionmiscmjsactivitydeleteAPIRequest) GetActivityId added in v1.3.1

GetActivityId ActivityId Getter

func (TaobaopromotionmiscmjsactivitydeleteAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaopromotionmiscmjsactivitydeleteAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaopromotionmiscmjsactivitydeleteAPIRequest) GetRawParams added in v1.3.1

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

func (*TaobaopromotionmiscmjsactivitydeleteAPIRequest) SetActivityId added in v1.3.1

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

SetActivityId is ActivityId Setter 活动id。

type TaobaopromotionmiscmjsactivitydeleteAPIResponse added in v1.3.1

type TaobaopromotionmiscmjsactivitydeleteAPIResponse struct {
	model.CommonResponse
	TaobaopromotionmiscmjsactivitydeleteAPIResponseModel
}

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

删除满就送活动

type TaobaopromotionmiscmjsactivitydeleteAPIResponseModel added in v1.3.1

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 added in v1.3.1

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

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

查询满就送活动

func NewTaobaopromotionmiscmjsactivitygetRequest added in v1.3.1

func NewTaobaopromotionmiscmjsactivitygetRequest() *TaobaopromotionmiscmjsactivitygetAPIRequest

NewTaobaopromotionmiscmjsactivitygetRequest 初始化TaobaopromotionmiscmjsactivitygetAPIRequest对象

func (TaobaopromotionmiscmjsactivitygetAPIRequest) GetActivityId added in v1.3.1

GetActivityId ActivityId Getter

func (TaobaopromotionmiscmjsactivitygetAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaopromotionmiscmjsactivitygetAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaopromotionmiscmjsactivitygetAPIRequest) GetRawParams added in v1.3.1

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

func (*TaobaopromotionmiscmjsactivitygetAPIRequest) SetActivityId added in v1.3.1

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

SetActivityId is ActivityId Setter 活动id。

type TaobaopromotionmiscmjsactivitygetAPIResponse added in v1.3.1

type TaobaopromotionmiscmjsactivitygetAPIResponse struct {
	model.CommonResponse
	TaobaopromotionmiscmjsactivitygetAPIResponseModel
}

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

查询满就送活动

type TaobaopromotionmiscmjsactivitygetAPIResponseModel added in v1.3.1

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 added in v1.3.1

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 added in v1.3.1

func NewTaobaopromotionmiscmjsactivitylistgetRequest() *TaobaopromotionmiscmjsactivitylistgetAPIRequest

NewTaobaopromotionmiscmjsactivitylistgetRequest 初始化TaobaopromotionmiscmjsactivitylistgetAPIRequest对象

func (TaobaopromotionmiscmjsactivitylistgetAPIRequest) GetActivityType added in v1.3.1

GetActivityType ActivityType Getter

func (TaobaopromotionmiscmjsactivitylistgetAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaopromotionmiscmjsactivitylistgetAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaopromotionmiscmjsactivitylistgetAPIRequest) GetPageNo added in v1.3.1

GetPageNo PageNo Getter

func (TaobaopromotionmiscmjsactivitylistgetAPIRequest) GetPageSize added in v1.3.1

GetPageSize PageSize Getter

func (TaobaopromotionmiscmjsactivitylistgetAPIRequest) GetRawParams added in v1.3.1

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

func (*TaobaopromotionmiscmjsactivitylistgetAPIRequest) SetActivityType added in v1.3.1

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

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

func (*TaobaopromotionmiscmjsactivitylistgetAPIRequest) SetPageNo added in v1.3.1

SetPageNo is PageNo Setter 页码。

func (*TaobaopromotionmiscmjsactivitylistgetAPIRequest) SetPageSize added in v1.3.1

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

type TaobaopromotionmiscmjsactivitylistgetAPIResponse added in v1.3.1

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 added in v1.3.1

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 added in v1.3.1

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 added in v1.3.1

func NewTaobaopromotionmiscmjsactivityupdateRequest() *TaobaopromotionmiscmjsactivityupdateAPIRequest

NewTaobaopromotionmiscmjsactivityupdateRequest 初始化TaobaopromotionmiscmjsactivityupdateAPIRequest对象

func (TaobaopromotionmiscmjsactivityupdateAPIRequest) GetActivityId added in v1.3.1

GetActivityId ActivityId Getter

func (TaobaopromotionmiscmjsactivityupdateAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaopromotionmiscmjsactivityupdateAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaopromotionmiscmjsactivityupdateAPIRequest) GetDecreaseAmount added in v1.3.1

GetDecreaseAmount DecreaseAmount Getter

func (TaobaopromotionmiscmjsactivityupdateAPIRequest) GetDiscountRate added in v1.3.1

GetDiscountRate DiscountRate Getter

func (TaobaopromotionmiscmjsactivityupdateAPIRequest) GetEndTime added in v1.3.1

GetEndTime EndTime Getter

func (TaobaopromotionmiscmjsactivityupdateAPIRequest) GetExcludeArea added in v1.3.1

GetExcludeArea ExcludeArea Getter

func (TaobaopromotionmiscmjsactivityupdateAPIRequest) GetGiftId added in v1.3.1

GetGiftId GiftId Getter

func (TaobaopromotionmiscmjsactivityupdateAPIRequest) GetGiftName added in v1.3.1

GetGiftName GiftName Getter

func (TaobaopromotionmiscmjsactivityupdateAPIRequest) GetGiftUrl added in v1.3.1

GetGiftUrl GiftUrl Getter

func (TaobaopromotionmiscmjsactivityupdateAPIRequest) GetIsAmountMultiple added in v1.3.1

func (r TaobaopromotionmiscmjsactivityupdateAPIRequest) GetIsAmountMultiple() bool

GetIsAmountMultiple IsAmountMultiple Getter

func (TaobaopromotionmiscmjsactivityupdateAPIRequest) GetIsAmountOver added in v1.3.1

GetIsAmountOver IsAmountOver Getter

func (TaobaopromotionmiscmjsactivityupdateAPIRequest) GetIsDecreaseMoney added in v1.3.1

GetIsDecreaseMoney IsDecreaseMoney Getter

func (TaobaopromotionmiscmjsactivityupdateAPIRequest) GetIsDiscount added in v1.3.1

GetIsDiscount IsDiscount Getter

func (TaobaopromotionmiscmjsactivityupdateAPIRequest) GetIsFreePost added in v1.3.1

GetIsFreePost IsFreePost Getter

func (TaobaopromotionmiscmjsactivityupdateAPIRequest) GetIsItemCountOver added in v1.3.1

GetIsItemCountOver IsItemCountOver Getter

func (TaobaopromotionmiscmjsactivityupdateAPIRequest) GetIsItemMultiple added in v1.3.1

GetIsItemMultiple IsItemMultiple Getter

func (TaobaopromotionmiscmjsactivityupdateAPIRequest) GetIsSendGift added in v1.3.1

GetIsSendGift IsSendGift Getter

func (TaobaopromotionmiscmjsactivityupdateAPIRequest) GetIsShopMember added in v1.3.1

GetIsShopMember IsShopMember Getter

func (TaobaopromotionmiscmjsactivityupdateAPIRequest) GetIsUserTag added in v1.3.1

GetIsUserTag IsUserTag Getter

func (TaobaopromotionmiscmjsactivityupdateAPIRequest) GetItemCount added in v1.3.1

GetItemCount ItemCount Getter

func (TaobaopromotionmiscmjsactivityupdateAPIRequest) GetName added in v1.3.1

GetName Name Getter

func (TaobaopromotionmiscmjsactivityupdateAPIRequest) GetParticipateRange added in v1.3.1

func (r TaobaopromotionmiscmjsactivityupdateAPIRequest) GetParticipateRange() int64

GetParticipateRange ParticipateRange Getter

func (TaobaopromotionmiscmjsactivityupdateAPIRequest) GetRawParams added in v1.3.1

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

func (TaobaopromotionmiscmjsactivityupdateAPIRequest) GetShopMemberLevel added in v1.3.1

GetShopMemberLevel ShopMemberLevel Getter

func (TaobaopromotionmiscmjsactivityupdateAPIRequest) GetStartTime added in v1.3.1

GetStartTime StartTime Getter

func (TaobaopromotionmiscmjsactivityupdateAPIRequest) GetTotalPrice added in v1.3.1

GetTotalPrice TotalPrice Getter

func (TaobaopromotionmiscmjsactivityupdateAPIRequest) GetUserTag added in v1.3.1

GetUserTag UserTag Getter

func (*TaobaopromotionmiscmjsactivityupdateAPIRequest) SetActivityId added in v1.3.1

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

SetActivityId is ActivityId Setter 活动id。

func (*TaobaopromotionmiscmjsactivityupdateAPIRequest) SetDecreaseAmount added in v1.3.1

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

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

func (*TaobaopromotionmiscmjsactivityupdateAPIRequest) SetDiscountRate added in v1.3.1

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

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

func (*TaobaopromotionmiscmjsactivityupdateAPIRequest) SetEndTime added in v1.3.1

SetEndTime is EndTime Setter 活动结束时间。

func (*TaobaopromotionmiscmjsactivityupdateAPIRequest) SetExcludeArea added in v1.3.1

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

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

func (*TaobaopromotionmiscmjsactivityupdateAPIRequest) SetGiftId added in v1.3.1

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

func (*TaobaopromotionmiscmjsactivityupdateAPIRequest) SetGiftName added in v1.3.1

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

func (*TaobaopromotionmiscmjsactivityupdateAPIRequest) SetGiftUrl added in v1.3.1

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

func (*TaobaopromotionmiscmjsactivityupdateAPIRequest) SetIsAmountMultiple added in v1.3.1

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

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

func (*TaobaopromotionmiscmjsactivityupdateAPIRequest) SetIsAmountOver added in v1.3.1

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

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

func (*TaobaopromotionmiscmjsactivityupdateAPIRequest) SetIsDecreaseMoney added in v1.3.1

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

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

func (*TaobaopromotionmiscmjsactivityupdateAPIRequest) SetIsDiscount added in v1.3.1

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

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

func (*TaobaopromotionmiscmjsactivityupdateAPIRequest) SetIsFreePost added in v1.3.1

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

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

func (*TaobaopromotionmiscmjsactivityupdateAPIRequest) SetIsItemCountOver added in v1.3.1

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

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

func (*TaobaopromotionmiscmjsactivityupdateAPIRequest) SetIsItemMultiple added in v1.3.1

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

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

func (*TaobaopromotionmiscmjsactivityupdateAPIRequest) SetIsSendGift added in v1.3.1

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

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

func (*TaobaopromotionmiscmjsactivityupdateAPIRequest) SetIsShopMember added in v1.3.1

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

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

func (*TaobaopromotionmiscmjsactivityupdateAPIRequest) SetIsUserTag added in v1.3.1

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

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

func (*TaobaopromotionmiscmjsactivityupdateAPIRequest) SetItemCount added in v1.3.1

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

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

func (*TaobaopromotionmiscmjsactivityupdateAPIRequest) SetName added in v1.3.1

SetName is Name Setter 活动名称。

func (*TaobaopromotionmiscmjsactivityupdateAPIRequest) SetParticipateRange added in v1.3.1

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

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

func (*TaobaopromotionmiscmjsactivityupdateAPIRequest) SetShopMemberLevel added in v1.3.1

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 added in v1.3.1

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

SetStartTime is StartTime Setter 活动开始时间。

func (*TaobaopromotionmiscmjsactivityupdateAPIRequest) SetTotalPrice added in v1.3.1

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

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

func (*TaobaopromotionmiscmjsactivityupdateAPIRequest) SetUserTag added in v1.3.1

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

type TaobaopromotionmiscmjsactivityupdateAPIResponse added in v1.3.1

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 added in v1.3.1

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 added in v1.3.1

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 added in v1.3.1

func NewTaobaopromotionmisctoolcheckRequest() *TaobaopromotionmisctoolcheckAPIRequest

NewTaobaopromotionmisctoolcheckRequest 初始化TaobaopromotionmisctoolcheckAPIRequest对象

func (TaobaopromotionmisctoolcheckAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaopromotionmisctoolcheckAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaopromotionmisctoolcheckAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaopromotionmisctoolcheckAPIRequest) GetMetaAllow added in v1.3.1

GetMetaAllow MetaAllow Getter

func (TaobaopromotionmisctoolcheckAPIRequest) GetRawParams added in v1.3.1

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

func (TaobaopromotionmisctoolcheckAPIRequest) GetToolId added in v1.3.1

GetToolId ToolId Getter

func (*TaobaopromotionmisctoolcheckAPIRequest) SetMetaAllow added in v1.3.1

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

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

func (*TaobaopromotionmisctoolcheckAPIRequest) SetToolId added in v1.3.1

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

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

type TaobaopromotionmisctoolcheckAPIResponse added in v1.3.1

type TaobaopromotionmisctoolcheckAPIResponse struct {
	model.CommonResponse
	TaobaopromotionmisctoolcheckAPIResponseModel
}

TaobaopromotionmisctoolcheckAPIResponse UMP工具检测 API返回值 taobao.promotionmisc.tool.check

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

type TaobaopromotionmisctoolcheckAPIResponseModel added in v1.3.1

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 TaobaoumpactivitiesgetAPIRequest added in v1.3.1

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

TaobaoumpactivitiesgetAPIRequest 查询活动列表 API请求 taobao.ump.activities.get

查询活动列表

func NewTaobaoumpactivitiesgetRequest added in v1.3.1

func NewTaobaoumpactivitiesgetRequest() *TaobaoumpactivitiesgetAPIRequest

NewTaobaoumpactivitiesgetRequest 初始化TaobaoumpactivitiesgetAPIRequest对象

func (TaobaoumpactivitiesgetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoumpactivitiesgetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoumpactivitiesgetAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoumpactivitiesgetAPIRequest) GetPageNo added in v1.3.1

GetPageNo PageNo Getter

func (TaobaoumpactivitiesgetAPIRequest) GetPageSize added in v1.3.1

func (r TaobaoumpactivitiesgetAPIRequest) GetPageSize() int64

GetPageSize PageSize Getter

func (TaobaoumpactivitiesgetAPIRequest) GetRawParams added in v1.3.1

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

func (TaobaoumpactivitiesgetAPIRequest) GetToolId added in v1.3.1

GetToolId ToolId Getter

func (*TaobaoumpactivitiesgetAPIRequest) SetPageNo added in v1.3.1

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

SetPageNo is PageNo Setter 分页的页码

func (*TaobaoumpactivitiesgetAPIRequest) SetPageSize added in v1.3.1

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

SetPageSize is PageSize Setter 每页的最大条数

func (*TaobaoumpactivitiesgetAPIRequest) SetToolId added in v1.3.1

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

SetToolId is ToolId Setter 工具id

type TaobaoumpactivitiesgetAPIResponse added in v1.3.1

type TaobaoumpactivitiesgetAPIResponse struct {
	model.CommonResponse
	TaobaoumpactivitiesgetAPIResponseModel
}

TaobaoumpactivitiesgetAPIResponse 查询活动列表 API返回值 taobao.ump.activities.get

查询活动列表

type TaobaoumpactivitiesgetAPIResponseModel added in v1.3.1

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 added in v1.3.1

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

TaobaoumpactivitieslistgetAPIRequest 营销活动列表查询 API请求 taobao.ump.activities.list.get

按照营销活动id的列表ids,查询对应的营销活动列表。

func NewTaobaoumpactivitieslistgetRequest added in v1.3.1

func NewTaobaoumpactivitieslistgetRequest() *TaobaoumpactivitieslistgetAPIRequest

NewTaobaoumpactivitieslistgetRequest 初始化TaobaoumpactivitieslistgetAPIRequest对象

func (TaobaoumpactivitieslistgetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoumpactivitieslistgetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoumpactivitieslistgetAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoumpactivitieslistgetAPIRequest) GetIds added in v1.3.1

GetIds Ids Getter

func (TaobaoumpactivitieslistgetAPIRequest) GetRawParams added in v1.3.1

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

func (*TaobaoumpactivitieslistgetAPIRequest) SetIds added in v1.3.1

SetIds is Ids Setter 营销活动id列表。

type TaobaoumpactivitieslistgetAPIResponse added in v1.3.1

type TaobaoumpactivitieslistgetAPIResponse struct {
	model.CommonResponse
	TaobaoumpactivitieslistgetAPIResponseModel
}

TaobaoumpactivitieslistgetAPIResponse 营销活动列表查询 API返回值 taobao.ump.activities.list.get

按照营销活动id的列表ids,查询对应的营销活动列表。

type TaobaoumpactivitieslistgetAPIResponseModel added in v1.3.1

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 added in v1.3.1

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

TaobaoumpactivityaddAPIRequest 新增优惠活动 API请求 taobao.ump.activity.add

新增优惠活动。设置优惠活动的基本信息,比如活动时间,活动针对的对象(可以是满足某些条件的买家)

func NewTaobaoumpactivityaddRequest added in v1.3.1

func NewTaobaoumpactivityaddRequest() *TaobaoumpactivityaddAPIRequest

NewTaobaoumpactivityaddRequest 初始化TaobaoumpactivityaddAPIRequest对象

func (TaobaoumpactivityaddAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoumpactivityaddAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoumpactivityaddAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoumpactivityaddAPIRequest) GetContent added in v1.3.1

func (r TaobaoumpactivityaddAPIRequest) GetContent() string

GetContent Content Getter

func (TaobaoumpactivityaddAPIRequest) GetRawParams added in v1.3.1

func (r TaobaoumpactivityaddAPIRequest) GetRawParams() model.Params

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

func (TaobaoumpactivityaddAPIRequest) GetToolId added in v1.3.1

func (r TaobaoumpactivityaddAPIRequest) GetToolId() int64

GetToolId ToolId Getter

func (*TaobaoumpactivityaddAPIRequest) SetContent added in v1.3.1

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 added in v1.3.1

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

SetToolId is ToolId Setter 工具id

type TaobaoumpactivityaddAPIResponse added in v1.3.1

type TaobaoumpactivityaddAPIResponse struct {
	model.CommonResponse
	TaobaoumpactivityaddAPIResponseModel
}

TaobaoumpactivityaddAPIResponse 新增优惠活动 API返回值 taobao.ump.activity.add

新增优惠活动。设置优惠活动的基本信息,比如活动时间,活动针对的对象(可以是满足某些条件的买家)

type TaobaoumpactivityaddAPIResponseModel added in v1.3.1

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 added in v1.3.1

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

TaobaoumpactivitydeleteAPIRequest 删除营销活动 API请求 taobao.ump.activity.delete

删除营销活动。对应的活动详情等将会被全部删除。

func NewTaobaoumpactivitydeleteRequest added in v1.3.1

func NewTaobaoumpactivitydeleteRequest() *TaobaoumpactivitydeleteAPIRequest

NewTaobaoumpactivitydeleteRequest 初始化TaobaoumpactivitydeleteAPIRequest对象

func (TaobaoumpactivitydeleteAPIRequest) GetActId added in v1.3.1

GetActId ActId Getter

func (TaobaoumpactivitydeleteAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoumpactivitydeleteAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoumpactivitydeleteAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoumpactivitydeleteAPIRequest) GetRawParams added in v1.3.1

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

func (*TaobaoumpactivitydeleteAPIRequest) SetActId added in v1.3.1

func (r *TaobaoumpactivitydeleteAPIRequest) SetActId(_actId int64) error

SetActId is ActId Setter 活动id

type TaobaoumpactivitydeleteAPIResponse added in v1.3.1

type TaobaoumpactivitydeleteAPIResponse struct {
	model.CommonResponse
	TaobaoumpactivitydeleteAPIResponseModel
}

TaobaoumpactivitydeleteAPIResponse 删除营销活动 API返回值 taobao.ump.activity.delete

删除营销活动。对应的活动详情等将会被全部删除。

type TaobaoumpactivitydeleteAPIResponseModel added in v1.3.1

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 added in v1.3.1

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

TaobaoumpactivitygetAPIRequest 查询营销活动 API请求 taobao.ump.activity.get

查询营销活动

func NewTaobaoumpactivitygetRequest added in v1.3.1

func NewTaobaoumpactivitygetRequest() *TaobaoumpactivitygetAPIRequest

NewTaobaoumpactivitygetRequest 初始化TaobaoumpactivitygetAPIRequest对象

func (TaobaoumpactivitygetAPIRequest) GetActId added in v1.3.1

GetActId ActId Getter

func (TaobaoumpactivitygetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoumpactivitygetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoumpactivitygetAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoumpactivitygetAPIRequest) GetRawParams added in v1.3.1

func (r TaobaoumpactivitygetAPIRequest) GetRawParams() model.Params

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

func (*TaobaoumpactivitygetAPIRequest) SetActId added in v1.3.1

func (r *TaobaoumpactivitygetAPIRequest) SetActId(_actId int64) error

SetActId is ActId Setter 活动id

type TaobaoumpactivitygetAPIResponse added in v1.3.1

type TaobaoumpactivitygetAPIResponse struct {
	model.CommonResponse
	TaobaoumpactivitygetAPIResponseModel
}

TaobaoumpactivitygetAPIResponse 查询营销活动 API返回值 taobao.ump.activity.get

查询营销活动

type TaobaoumpactivitygetAPIResponseModel added in v1.3.1

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 added in v1.3.1

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

TaobaoumpactivityupdateAPIRequest 修改活动信息 API请求 taobao.ump.activity.update

修改营销活动

func NewTaobaoumpactivityupdateRequest added in v1.3.1

func NewTaobaoumpactivityupdateRequest() *TaobaoumpactivityupdateAPIRequest

NewTaobaoumpactivityupdateRequest 初始化TaobaoumpactivityupdateAPIRequest对象

func (TaobaoumpactivityupdateAPIRequest) GetActId added in v1.3.1

GetActId ActId Getter

func (TaobaoumpactivityupdateAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoumpactivityupdateAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoumpactivityupdateAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoumpactivityupdateAPIRequest) GetContent added in v1.3.1

GetContent Content Getter

func (TaobaoumpactivityupdateAPIRequest) GetRawParams added in v1.3.1

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

func (*TaobaoumpactivityupdateAPIRequest) SetActId added in v1.3.1

func (r *TaobaoumpactivityupdateAPIRequest) SetActId(_actId int64) error

SetActId is ActId Setter 活动id

func (*TaobaoumpactivityupdateAPIRequest) SetContent added in v1.3.1

func (r *TaobaoumpactivityupdateAPIRequest) SetContent(_content string) error

SetContent is Content Setter 营销活动内容,json格式,通过ump sdk 的marketingTool来生成

type TaobaoumpactivityupdateAPIResponse added in v1.3.1

type TaobaoumpactivityupdateAPIResponse struct {
	model.CommonResponse
	TaobaoumpactivityupdateAPIResponseModel
}

TaobaoumpactivityupdateAPIResponse 修改活动信息 API返回值 taobao.ump.activity.update

修改营销活动

type TaobaoumpactivityupdateAPIResponseModel added in v1.3.1

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 added in v1.3.1

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

TaobaoumpdetailaddAPIRequest 新增活动详情 API请求 taobao.ump.detail.add

增加活动详情。活动详情里面包括活动的范围(店铺,商品),活动的参数(比如具体的折扣),参与类型(全部,部分,部分不参加)等信息。当参与类型为部分或部分不参加的时候需要和taobao.ump.range.add来配合使用。

func NewTaobaoumpdetailaddRequest added in v1.3.1

func NewTaobaoumpdetailaddRequest() *TaobaoumpdetailaddAPIRequest

NewTaobaoumpdetailaddRequest 初始化TaobaoumpdetailaddAPIRequest对象

func (TaobaoumpdetailaddAPIRequest) GetActId added in v1.3.1

func (r TaobaoumpdetailaddAPIRequest) GetActId() int64

GetActId ActId Getter

func (TaobaoumpdetailaddAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoumpdetailaddAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoumpdetailaddAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoumpdetailaddAPIRequest) GetContent added in v1.3.1

func (r TaobaoumpdetailaddAPIRequest) GetContent() string

GetContent Content Getter

func (TaobaoumpdetailaddAPIRequest) GetRawParams added in v1.3.1

func (r TaobaoumpdetailaddAPIRequest) GetRawParams() model.Params

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

func (*TaobaoumpdetailaddAPIRequest) SetActId added in v1.3.1

func (r *TaobaoumpdetailaddAPIRequest) SetActId(_actId int64) error

SetActId is ActId Setter 增加工具详情

func (*TaobaoumpdetailaddAPIRequest) SetContent added in v1.3.1

func (r *TaobaoumpdetailaddAPIRequest) SetContent(_content string) error

SetContent is Content Setter 活动详情内容,json格式,可以通过ump sdk中的MarketingTool来进行处理

type TaobaoumpdetailaddAPIResponse added in v1.3.1

type TaobaoumpdetailaddAPIResponse struct {
	model.CommonResponse
	TaobaoumpdetailaddAPIResponseModel
}

TaobaoumpdetailaddAPIResponse 新增活动详情 API返回值 taobao.ump.detail.add

增加活动详情。活动详情里面包括活动的范围(店铺,商品),活动的参数(比如具体的折扣),参与类型(全部,部分,部分不参加)等信息。当参与类型为部分或部分不参加的时候需要和taobao.ump.range.add来配合使用。

type TaobaoumpdetailaddAPIResponseModel added in v1.3.1

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 added in v1.3.1

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

TaobaoumpdetaildeleteAPIRequest 删除活动详情 API请求 taobao.ump.detail.delete

删除活动详情

func NewTaobaoumpdetaildeleteRequest added in v1.3.1

func NewTaobaoumpdetaildeleteRequest() *TaobaoumpdetaildeleteAPIRequest

NewTaobaoumpdetaildeleteRequest 初始化TaobaoumpdetaildeleteAPIRequest对象

func (TaobaoumpdetaildeleteAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoumpdetaildeleteAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoumpdetaildeleteAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoumpdetaildeleteAPIRequest) GetDetailId added in v1.3.1

func (r TaobaoumpdetaildeleteAPIRequest) GetDetailId() int64

GetDetailId DetailId Getter

func (TaobaoumpdetaildeleteAPIRequest) GetRawParams added in v1.3.1

func (r TaobaoumpdetaildeleteAPIRequest) GetRawParams() model.Params

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

func (*TaobaoumpdetaildeleteAPIRequest) SetDetailId added in v1.3.1

func (r *TaobaoumpdetaildeleteAPIRequest) SetDetailId(_detailId int64) error

SetDetailId is DetailId Setter 活动详情id

type TaobaoumpdetaildeleteAPIResponse added in v1.3.1

type TaobaoumpdetaildeleteAPIResponse struct {
	model.CommonResponse
	TaobaoumpdetaildeleteAPIResponseModel
}

TaobaoumpdetaildeleteAPIResponse 删除活动详情 API返回值 taobao.ump.detail.delete

删除活动详情

type TaobaoumpdetaildeleteAPIResponseModel added in v1.3.1

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 added in v1.3.1

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

TaobaoumpdetailgetAPIRequest 查询活动详情 API请求 taobao.ump.detail.get

查询活动详情

func NewTaobaoumpdetailgetRequest added in v1.3.1

func NewTaobaoumpdetailgetRequest() *TaobaoumpdetailgetAPIRequest

NewTaobaoumpdetailgetRequest 初始化TaobaoumpdetailgetAPIRequest对象

func (TaobaoumpdetailgetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoumpdetailgetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoumpdetailgetAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoumpdetailgetAPIRequest) GetDetailId added in v1.3.1

func (r TaobaoumpdetailgetAPIRequest) GetDetailId() int64

GetDetailId DetailId Getter

func (TaobaoumpdetailgetAPIRequest) GetRawParams added in v1.3.1

func (r TaobaoumpdetailgetAPIRequest) GetRawParams() model.Params

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

func (*TaobaoumpdetailgetAPIRequest) SetDetailId added in v1.3.1

func (r *TaobaoumpdetailgetAPIRequest) SetDetailId(_detailId int64) error

SetDetailId is DetailId Setter 活动详情的id

type TaobaoumpdetailgetAPIResponse added in v1.3.1

type TaobaoumpdetailgetAPIResponse struct {
	model.CommonResponse
	TaobaoumpdetailgetAPIResponseModel
}

TaobaoumpdetailgetAPIResponse 查询活动详情 API返回值 taobao.ump.detail.get

查询活动详情

type TaobaoumpdetailgetAPIResponseModel added in v1.3.1

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 added in v1.3.1

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

TaobaoumpdetaillistaddAPIRequest 营销详情添加 API请求 taobao.ump.detail.list.add

批量添加营销活动。替代单条添加营销详情的的API。此接口适用针对某个营销活动的多档设置,会按顺序插入detail。若在整个事务过程中出现断点,会将已插入完成的detail_id返回,注意记录这些id,并将其删除,会对交易过程中的优惠产生影响。

func NewTaobaoumpdetaillistaddRequest added in v1.3.1

func NewTaobaoumpdetaillistaddRequest() *TaobaoumpdetaillistaddAPIRequest

NewTaobaoumpdetaillistaddRequest 初始化TaobaoumpdetaillistaddAPIRequest对象

func (TaobaoumpdetaillistaddAPIRequest) GetActId added in v1.3.1

GetActId ActId Getter

func (TaobaoumpdetaillistaddAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoumpdetaillistaddAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoumpdetaillistaddAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoumpdetaillistaddAPIRequest) GetDetails added in v1.3.1

GetDetails Details Getter

func (TaobaoumpdetaillistaddAPIRequest) GetRawParams added in v1.3.1

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

func (*TaobaoumpdetaillistaddAPIRequest) SetActId added in v1.3.1

func (r *TaobaoumpdetaillistaddAPIRequest) SetActId(_actId int64) error

SetActId is ActId Setter 营销活动id。

func (*TaobaoumpdetaillistaddAPIRequest) SetDetails added in v1.3.1

func (r *TaobaoumpdetaillistaddAPIRequest) SetDetails(_details string) error

SetDetails is Details Setter 营销详情的列表。此列表由detail的json字符串组成。最多插入为10个。

type TaobaoumpdetaillistaddAPIResponse added in v1.3.1

type TaobaoumpdetaillistaddAPIResponse struct {
	model.CommonResponse
	TaobaoumpdetaillistaddAPIResponseModel
}

TaobaoumpdetaillistaddAPIResponse 营销详情添加 API返回值 taobao.ump.detail.list.add

批量添加营销活动。替代单条添加营销详情的的API。此接口适用针对某个营销活动的多档设置,会按顺序插入detail。若在整个事务过程中出现断点,会将已插入完成的detail_id返回,注意记录这些id,并将其删除,会对交易过程中的优惠产生影响。

type TaobaoumpdetaillistaddAPIResponseModel added in v1.3.1

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 TaobaoumpdetailsgetAPIRequest added in v1.3.1

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

TaobaoumpdetailsgetAPIRequest 查询活动详情列表 API请求 taobao.ump.details.get

分页查询优惠详情列表

func NewTaobaoumpdetailsgetRequest added in v1.3.1

func NewTaobaoumpdetailsgetRequest() *TaobaoumpdetailsgetAPIRequest

NewTaobaoumpdetailsgetRequest 初始化TaobaoumpdetailsgetAPIRequest对象

func (TaobaoumpdetailsgetAPIRequest) GetActId added in v1.3.1

func (r TaobaoumpdetailsgetAPIRequest) GetActId() int64

GetActId ActId Getter

func (TaobaoumpdetailsgetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoumpdetailsgetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoumpdetailsgetAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoumpdetailsgetAPIRequest) GetPageNo added in v1.3.1

func (r TaobaoumpdetailsgetAPIRequest) GetPageNo() int64

GetPageNo PageNo Getter

func (TaobaoumpdetailsgetAPIRequest) GetPageSize added in v1.3.1

func (r TaobaoumpdetailsgetAPIRequest) GetPageSize() int64

GetPageSize PageSize Getter

func (TaobaoumpdetailsgetAPIRequest) GetRawParams added in v1.3.1

func (r TaobaoumpdetailsgetAPIRequest) GetRawParams() model.Params

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

func (*TaobaoumpdetailsgetAPIRequest) SetActId added in v1.3.1

func (r *TaobaoumpdetailsgetAPIRequest) SetActId(_actId int64) error

SetActId is ActId Setter 营销活动id

func (*TaobaoumpdetailsgetAPIRequest) SetPageNo added in v1.3.1

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

SetPageNo is PageNo Setter 分页的页码

func (*TaobaoumpdetailsgetAPIRequest) SetPageSize added in v1.3.1

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

SetPageSize is PageSize Setter 每页的最大条数

type TaobaoumpdetailsgetAPIResponse added in v1.3.1

type TaobaoumpdetailsgetAPIResponse struct {
	model.CommonResponse
	TaobaoumpdetailsgetAPIResponseModel
}

TaobaoumpdetailsgetAPIResponse 查询活动详情列表 API返回值 taobao.ump.details.get

分页查询优惠详情列表

type TaobaoumpdetailsgetAPIResponseModel added in v1.3.1

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 TaobaoumpdetailupdateAPIRequest added in v1.3.1

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

TaobaoumpdetailupdateAPIRequest 修改活动详情 API请求 taobao.ump.detail.update

更新活动详情

func NewTaobaoumpdetailupdateRequest added in v1.3.1

func NewTaobaoumpdetailupdateRequest() *TaobaoumpdetailupdateAPIRequest

NewTaobaoumpdetailupdateRequest 初始化TaobaoumpdetailupdateAPIRequest对象

func (TaobaoumpdetailupdateAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoumpdetailupdateAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoumpdetailupdateAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoumpdetailupdateAPIRequest) GetContent added in v1.3.1

func (r TaobaoumpdetailupdateAPIRequest) GetContent() string

GetContent Content Getter

func (TaobaoumpdetailupdateAPIRequest) GetDetailId added in v1.3.1

func (r TaobaoumpdetailupdateAPIRequest) GetDetailId() int64

GetDetailId DetailId Getter

func (TaobaoumpdetailupdateAPIRequest) GetRawParams added in v1.3.1

func (r TaobaoumpdetailupdateAPIRequest) GetRawParams() model.Params

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

func (*TaobaoumpdetailupdateAPIRequest) SetContent added in v1.3.1

func (r *TaobaoumpdetailupdateAPIRequest) SetContent(_content string) error

SetContent is Content Setter 活动详情内容,可以通过ump sdk中的MarketingTool来生成这个内容

func (*TaobaoumpdetailupdateAPIRequest) SetDetailId added in v1.3.1

func (r *TaobaoumpdetailupdateAPIRequest) SetDetailId(_detailId int64) error

SetDetailId is DetailId Setter 活动详情id

type TaobaoumpdetailupdateAPIResponse added in v1.3.1

type TaobaoumpdetailupdateAPIResponse struct {
	model.CommonResponse
	TaobaoumpdetailupdateAPIResponseModel
}

TaobaoumpdetailupdateAPIResponse 修改活动详情 API返回值 taobao.ump.detail.update

更新活动详情

type TaobaoumpdetailupdateAPIResponseModel added in v1.3.1

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 TaobaoumpmbbgetbycodeAPIRequest added in v1.3.1

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

TaobaoumpmbbgetbycodeAPIRequest 根据营销积木块代码获取积木块 API请求 taobao.ump.mbb.getbycode

根据营销积木块代码获取积木块。接口返回该代码最新版本的积木块。如果要查询某个非最新版本的积木块,可以使用积木块id查询接口。

func NewTaobaoumpmbbgetbycodeRequest added in v1.3.1

func NewTaobaoumpmbbgetbycodeRequest() *TaobaoumpmbbgetbycodeAPIRequest

NewTaobaoumpmbbgetbycodeRequest 初始化TaobaoumpmbbgetbycodeAPIRequest对象

func (TaobaoumpmbbgetbycodeAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoumpmbbgetbycodeAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoumpmbbgetbycodeAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoumpmbbgetbycodeAPIRequest) GetCode added in v1.3.1

GetCode Code Getter

func (TaobaoumpmbbgetbycodeAPIRequest) GetRawParams added in v1.3.1

func (r TaobaoumpmbbgetbycodeAPIRequest) GetRawParams() model.Params

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

func (*TaobaoumpmbbgetbycodeAPIRequest) SetCode added in v1.3.1

func (r *TaobaoumpmbbgetbycodeAPIRequest) SetCode(_code string) error

SetCode is Code Setter 营销积木块code

type TaobaoumpmbbgetbycodeAPIResponse added in v1.3.1

type TaobaoumpmbbgetbycodeAPIResponse struct {
	model.CommonResponse
	TaobaoumpmbbgetbycodeAPIResponseModel
}

TaobaoumpmbbgetbycodeAPIResponse 根据营销积木块代码获取积木块 API返回值 taobao.ump.mbb.getbycode

根据营销积木块代码获取积木块。接口返回该代码最新版本的积木块。如果要查询某个非最新版本的积木块,可以使用积木块id查询接口。

type TaobaoumpmbbgetbycodeAPIResponseModel added in v1.3.1

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 added in v1.3.1

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

TaobaoumpmbbgetbyidAPIRequest 获取营销积木块 API请求 taobao.ump.mbb.getbyid

根据积木块id获取营销积木块。

func NewTaobaoumpmbbgetbyidRequest added in v1.3.1

func NewTaobaoumpmbbgetbyidRequest() *TaobaoumpmbbgetbyidAPIRequest

NewTaobaoumpmbbgetbyidRequest 初始化TaobaoumpmbbgetbyidAPIRequest对象

func (TaobaoumpmbbgetbyidAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoumpmbbgetbyidAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoumpmbbgetbyidAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoumpmbbgetbyidAPIRequest) GetId added in v1.3.1

GetId Id Getter

func (TaobaoumpmbbgetbyidAPIRequest) GetRawParams added in v1.3.1

func (r TaobaoumpmbbgetbyidAPIRequest) GetRawParams() model.Params

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

func (*TaobaoumpmbbgetbyidAPIRequest) SetId added in v1.3.1

SetId is Id Setter 积木块的id

type TaobaoumpmbbgetbyidAPIResponse added in v1.3.1

type TaobaoumpmbbgetbyidAPIResponse struct {
	model.CommonResponse
	TaobaoumpmbbgetbyidAPIResponseModel
}

TaobaoumpmbbgetbyidAPIResponse 获取营销积木块 API返回值 taobao.ump.mbb.getbyid

根据积木块id获取营销积木块。

type TaobaoumpmbbgetbyidAPIResponseModel added in v1.3.1

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 TaobaoumpmbbslistgetAPIRequest added in v1.3.1

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

TaobaoumpmbbslistgetAPIRequest 通过ids列表获取营销积木块列表 API请求 taobao.ump.mbbs.list.get

通过营销积木id列表来获取营销积木块列表。

func NewTaobaoumpmbbslistgetRequest added in v1.3.1

func NewTaobaoumpmbbslistgetRequest() *TaobaoumpmbbslistgetAPIRequest

NewTaobaoumpmbbslistgetRequest 初始化TaobaoumpmbbslistgetAPIRequest对象

func (TaobaoumpmbbslistgetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoumpmbbslistgetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoumpmbbslistgetAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoumpmbbslistgetAPIRequest) GetIds added in v1.3.1

GetIds Ids Getter

func (TaobaoumpmbbslistgetAPIRequest) GetRawParams added in v1.3.1

func (r TaobaoumpmbbslistgetAPIRequest) GetRawParams() model.Params

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

func (*TaobaoumpmbbslistgetAPIRequest) SetIds added in v1.3.1

func (r *TaobaoumpmbbslistgetAPIRequest) SetIds(_ids []int64) error

SetIds is Ids Setter 营销积木块id组成的字符串。

type TaobaoumpmbbslistgetAPIResponse added in v1.3.1

type TaobaoumpmbbslistgetAPIResponse struct {
	model.CommonResponse
	TaobaoumpmbbslistgetAPIResponseModel
}

TaobaoumpmbbslistgetAPIResponse 通过ids列表获取营销积木块列表 API返回值 taobao.ump.mbbs.list.get

通过营销积木id列表来获取营销积木块列表。

type TaobaoumpmbbslistgetAPIResponseModel added in v1.3.1

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 added in v1.3.1

type TaobaoumppromotionglobaldiscountgetAPIRequest struct {
	model.Params
}

TaobaoumppromotionglobaldiscountgetAPIRequest 获取卖家最低折扣 API请求 taobao.ump.promotion.global.discount.get

提供卖家最低折扣查询功能

func NewTaobaoumppromotionglobaldiscountgetRequest added in v1.3.1

func NewTaobaoumppromotionglobaldiscountgetRequest() *TaobaoumppromotionglobaldiscountgetAPIRequest

NewTaobaoumppromotionglobaldiscountgetRequest 初始化TaobaoumppromotionglobaldiscountgetAPIRequest对象

func (TaobaoumppromotionglobaldiscountgetAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoumppromotionglobaldiscountgetAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoumppromotionglobaldiscountgetAPIRequest) GetRawParams added in v1.3.1

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

type TaobaoumppromotionglobaldiscountgetAPIResponse added in v1.3.1

type TaobaoumppromotionglobaldiscountgetAPIResponse struct {
	model.CommonResponse
	TaobaoumppromotionglobaldiscountgetAPIResponseModel
}

TaobaoumppromotionglobaldiscountgetAPIResponse 获取卖家最低折扣 API返回值 taobao.ump.promotion.global.discount.get

提供卖家最低折扣查询功能

type TaobaoumppromotionglobaldiscountgetAPIResponseModel added in v1.3.1

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 added in v1.3.1

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 added in v1.3.1

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

TaobaoumprangeaddAPIRequest 添加活动范围 API请求 taobao.ump.range.add

指定某项活动中,某个商家的某些类型物品(指定商品或者别的)参加或者不参加活动。当活动详情的参与类型为部分或者部分不参加的时候,需要指定具体哪部分参加或者不参加,使用本接口完成操作。比如部分商品满就送,这里的range用来指定具体哪些商品参加满就送活动。

func NewTaobaoumprangeaddRequest added in v1.3.1

func NewTaobaoumprangeaddRequest() *TaobaoumprangeaddAPIRequest

NewTaobaoumprangeaddRequest 初始化TaobaoumprangeaddAPIRequest对象

func (TaobaoumprangeaddAPIRequest) GetActId added in v1.3.1

func (r TaobaoumprangeaddAPIRequest) GetActId() int64

GetActId ActId Getter

func (TaobaoumprangeaddAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoumprangeaddAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoumprangeaddAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoumprangeaddAPIRequest) GetIds added in v1.3.1

GetIds Ids Getter

func (TaobaoumprangeaddAPIRequest) GetRawParams added in v1.3.1

func (r TaobaoumprangeaddAPIRequest) GetRawParams() model.Params

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

func (TaobaoumprangeaddAPIRequest) GetType added in v1.3.1

func (r TaobaoumprangeaddAPIRequest) GetType() int64

GetType Type Getter

func (*TaobaoumprangeaddAPIRequest) SetActId added in v1.3.1

func (r *TaobaoumprangeaddAPIRequest) SetActId(_actId int64) error

SetActId is ActId Setter 活动id

func (*TaobaoumprangeaddAPIRequest) SetIds added in v1.3.1

func (r *TaobaoumprangeaddAPIRequest) SetIds(_ids string) error

SetIds is Ids Setter id列表,当范围类型为商品时,该id为商品id.多个id用逗号隔开,一次不超过50个

func (*TaobaoumprangeaddAPIRequest) SetType added in v1.3.1

func (r *TaobaoumprangeaddAPIRequest) SetType(_type int64) error

SetType is Type Setter 范围的类型,比如是全店,商品,见:MarketingConstants.PARTICIPATE_TYPE_*

type TaobaoumprangeaddAPIResponse added in v1.3.1

type TaobaoumprangeaddAPIResponse struct {
	model.CommonResponse
	TaobaoumprangeaddAPIResponseModel
}

TaobaoumprangeaddAPIResponse 添加活动范围 API返回值 taobao.ump.range.add

指定某项活动中,某个商家的某些类型物品(指定商品或者别的)参加或者不参加活动。当活动详情的参与类型为部分或者部分不参加的时候,需要指定具体哪部分参加或者不参加,使用本接口完成操作。比如部分商品满就送,这里的range用来指定具体哪些商品参加满就送活动。

type TaobaoumprangeaddAPIResponseModel added in v1.3.1

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 added in v1.3.1

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

TaobaoumprangedeleteAPIRequest 删除活动范围 API请求 taobao.ump.range.delete

去指先前指定在某项活动中,某些类型的物品参加或者不参加活动的设置

func NewTaobaoumprangedeleteRequest added in v1.3.1

func NewTaobaoumprangedeleteRequest() *TaobaoumprangedeleteAPIRequest

NewTaobaoumprangedeleteRequest 初始化TaobaoumprangedeleteAPIRequest对象

func (TaobaoumprangedeleteAPIRequest) GetActId added in v1.3.1

GetActId ActId Getter

func (TaobaoumprangedeleteAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoumprangedeleteAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoumprangedeleteAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoumprangedeleteAPIRequest) GetIds added in v1.3.1

GetIds Ids Getter

func (TaobaoumprangedeleteAPIRequest) GetRawParams added in v1.3.1

func (r TaobaoumprangedeleteAPIRequest) GetRawParams() model.Params

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

func (TaobaoumprangedeleteAPIRequest) GetType added in v1.3.1

GetType Type Getter

func (*TaobaoumprangedeleteAPIRequest) SetActId added in v1.3.1

func (r *TaobaoumprangedeleteAPIRequest) SetActId(_actId int64) error

SetActId is ActId Setter 活动id

func (*TaobaoumprangedeleteAPIRequest) SetIds added in v1.3.1

SetIds is Ids Setter id列表,当范围类型为商品时,该id为商品id;当范围类型为类目时,该id为类目id

func (*TaobaoumprangedeleteAPIRequest) SetType added in v1.3.1

func (r *TaobaoumprangedeleteAPIRequest) SetType(_type int64) error

SetType is Type Setter 范围的类型,比如是全店,商品,类目见:MarketingConstants.PARTICIPATE_TYPE_*

type TaobaoumprangedeleteAPIResponse added in v1.3.1

type TaobaoumprangedeleteAPIResponse struct {
	model.CommonResponse
	TaobaoumprangedeleteAPIResponseModel
}

TaobaoumprangedeleteAPIResponse 删除活动范围 API返回值 taobao.ump.range.delete

去指先前指定在某项活动中,某些类型的物品参加或者不参加活动的设置

type TaobaoumprangedeleteAPIResponseModel added in v1.3.1

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 added in v1.3.1

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

TaobaoumprangegetAPIRequest 查询活动范围 API请求 taobao.ump.range.get

查询某个卖家所有参加或者不参加某项活动的物品

func NewTaobaoumprangegetRequest added in v1.3.1

func NewTaobaoumprangegetRequest() *TaobaoumprangegetAPIRequest

NewTaobaoumprangegetRequest 初始化TaobaoumprangegetAPIRequest对象

func (TaobaoumprangegetAPIRequest) GetActId added in v1.3.1

func (r TaobaoumprangegetAPIRequest) GetActId() int64

GetActId ActId Getter

func (TaobaoumprangegetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoumprangegetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoumprangegetAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoumprangegetAPIRequest) GetRawParams added in v1.3.1

func (r TaobaoumprangegetAPIRequest) GetRawParams() model.Params

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

func (*TaobaoumprangegetAPIRequest) SetActId added in v1.3.1

func (r *TaobaoumprangegetAPIRequest) SetActId(_actId int64) error

SetActId is ActId Setter 活动id

type TaobaoumprangegetAPIResponse added in v1.3.1

type TaobaoumprangegetAPIResponse struct {
	model.CommonResponse
	TaobaoumprangegetAPIResponseModel
}

TaobaoumprangegetAPIResponse 查询活动范围 API返回值 taobao.ump.range.get

查询某个卖家所有参加或者不参加某项活动的物品

type TaobaoumprangegetAPIResponseModel added in v1.3.1

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 TaobaoumptoolgetAPIRequest added in v1.3.1

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

TaobaoumptoolgetAPIRequest 查询工具 API请求 taobao.ump.tool.get

根据工具id获取一个工具对象

func NewTaobaoumptoolgetRequest added in v1.3.1

func NewTaobaoumptoolgetRequest() *TaobaoumptoolgetAPIRequest

NewTaobaoumptoolgetRequest 初始化TaobaoumptoolgetAPIRequest对象

func (TaobaoumptoolgetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoumptoolgetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoumptoolgetAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoumptoolgetAPIRequest) GetRawParams added in v1.3.1

func (r TaobaoumptoolgetAPIRequest) GetRawParams() model.Params

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

func (TaobaoumptoolgetAPIRequest) GetToolId added in v1.3.1

func (r TaobaoumptoolgetAPIRequest) GetToolId() int64

GetToolId ToolId Getter

func (*TaobaoumptoolgetAPIRequest) SetToolId added in v1.3.1

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

SetToolId is ToolId Setter 工具的id

type TaobaoumptoolgetAPIResponse added in v1.3.1

type TaobaoumptoolgetAPIResponse struct {
	model.CommonResponse
	TaobaoumptoolgetAPIResponseModel
}

TaobaoumptoolgetAPIResponse 查询工具 API返回值 taobao.ump.tool.get

根据工具id获取一个工具对象

type TaobaoumptoolgetAPIResponseModel added in v1.3.1

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 added in v1.3.1

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

TaobaoumptoolsgetAPIRequest 查询工具列表 API请求 taobao.ump.tools.get

查询工具列表

func NewTaobaoumptoolsgetRequest added in v1.3.1

func NewTaobaoumptoolsgetRequest() *TaobaoumptoolsgetAPIRequest

NewTaobaoumptoolsgetRequest 初始化TaobaoumptoolsgetAPIRequest对象

func (TaobaoumptoolsgetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoumptoolsgetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoumptoolsgetAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoumptoolsgetAPIRequest) GetRawParams added in v1.3.1

func (r TaobaoumptoolsgetAPIRequest) GetRawParams() model.Params

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

func (TaobaoumptoolsgetAPIRequest) GetToolCode added in v1.3.1

func (r TaobaoumptoolsgetAPIRequest) GetToolCode() string

GetToolCode ToolCode Getter

func (*TaobaoumptoolsgetAPIRequest) SetToolCode added in v1.3.1

func (r *TaobaoumptoolsgetAPIRequest) SetToolCode(_toolCode string) error

SetToolCode is ToolCode Setter 工具编码

type TaobaoumptoolsgetAPIResponse added in v1.3.1

type TaobaoumptoolsgetAPIResponse struct {
	model.CommonResponse
	TaobaoumptoolsgetAPIResponseModel
}

TaobaoumptoolsgetAPIResponse 查询工具列表 API返回值 taobao.ump.tools.get

查询工具列表

type TaobaoumptoolsgetAPIResponseModel added in v1.3.1

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 added in v1.3.1

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

TmallccfcrowdactivityuseruploadAPIRequest 品牌营销活动用户上传 API请求 tmall.ccf.crowd.activityuser.upload

搜集ISV的活动用户信息,将其沉淀为活动人群数据

func NewTmallccfcrowdactivityuseruploadRequest added in v1.3.1

func NewTmallccfcrowdactivityuseruploadRequest() *TmallccfcrowdactivityuseruploadAPIRequest

NewTmallccfcrowdactivityuseruploadRequest 初始化TmallccfcrowdactivityuseruploadAPIRequest对象

func (TmallccfcrowdactivityuseruploadAPIRequest) GetActivityId added in v1.3.1

GetActivityId ActivityId Getter

func (TmallccfcrowdactivityuseruploadAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallccfcrowdactivityuseruploadAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TmallccfcrowdactivityuseruploadAPIRequest) GetCrowdTypes added in v1.3.1

GetCrowdTypes CrowdTypes Getter

func (TmallccfcrowdactivityuseruploadAPIRequest) GetRawParams added in v1.3.1

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

func (TmallccfcrowdactivityuseruploadAPIRequest) GetTaobaoAppKey added in v1.3.1

GetTaobaoAppKey TaobaoAppKey Getter

func (TmallccfcrowdactivityuseruploadAPIRequest) GetTaobaoOpenId added in v1.3.1

GetTaobaoOpenId TaobaoOpenId Getter

func (*TmallccfcrowdactivityuseruploadAPIRequest) SetActivityId added in v1.3.1

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

SetActivityId is ActivityId Setter 活动id

func (*TmallccfcrowdactivityuseruploadAPIRequest) SetCrowdTypes added in v1.3.1

func (r *TmallccfcrowdactivityuseruploadAPIRequest) SetCrowdTypes(_crowdTypes []string) error

SetCrowdTypes is CrowdTypes Setter 人群类型

func (*TmallccfcrowdactivityuseruploadAPIRequest) SetTaobaoAppKey added in v1.3.1

func (r *TmallccfcrowdactivityuseruploadAPIRequest) SetTaobaoAppKey(_taobaoAppKey string) error

SetTaobaoAppKey is TaobaoAppKey Setter 小程序对应的appKey

func (*TmallccfcrowdactivityuseruploadAPIRequest) SetTaobaoOpenId added in v1.3.1

func (r *TmallccfcrowdactivityuseruploadAPIRequest) SetTaobaoOpenId(_taobaoOpenId string) error

SetTaobaoOpenId is TaobaoOpenId Setter 淘宝小程序的openid

type TmallccfcrowdactivityuseruploadAPIResponse added in v1.3.1

type TmallccfcrowdactivityuseruploadAPIResponse struct {
	model.CommonResponse
	TmallccfcrowdactivityuseruploadAPIResponseModel
}

TmallccfcrowdactivityuseruploadAPIResponse 品牌营销活动用户上传 API返回值 tmall.ccf.crowd.activityuser.upload

搜集ISV的活动用户信息,将其沉淀为活动人群数据

type TmallccfcrowdactivityuseruploadAPIResponseModel added in v1.3.1

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 added in v1.3.1

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

TmallpromotagtagapplyAPIRequest 优惠标签申请 API请求 tmall.promotag.tag.apply

创建优惠标签

func NewTmallpromotagtagapplyRequest added in v1.3.1

func NewTmallpromotagtagapplyRequest() *TmallpromotagtagapplyAPIRequest

NewTmallpromotagtagapplyRequest 初始化TmallpromotagtagapplyAPIRequest对象

func (TmallpromotagtagapplyAPIRequest) GetApiMethodName added in v1.3.1

func (r TmallpromotagtagapplyAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallpromotagtagapplyAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TmallpromotagtagapplyAPIRequest) GetEndTime added in v1.3.1

func (r TmallpromotagtagapplyAPIRequest) GetEndTime() string

GetEndTime EndTime Getter

func (TmallpromotagtagapplyAPIRequest) GetRawParams added in v1.3.1

func (r TmallpromotagtagapplyAPIRequest) GetRawParams() model.Params

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

func (TmallpromotagtagapplyAPIRequest) GetStartTime added in v1.3.1

func (r TmallpromotagtagapplyAPIRequest) GetStartTime() string

GetStartTime StartTime Getter

func (TmallpromotagtagapplyAPIRequest) GetTagDesc added in v1.3.1

func (r TmallpromotagtagapplyAPIRequest) GetTagDesc() string

GetTagDesc TagDesc Getter

func (TmallpromotagtagapplyAPIRequest) GetTagName added in v1.3.1

func (r TmallpromotagtagapplyAPIRequest) GetTagName() string

GetTagName TagName Getter

func (*TmallpromotagtagapplyAPIRequest) SetEndTime added in v1.3.1

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

SetEndTime is EndTime Setter 标签结束时间

func (*TmallpromotagtagapplyAPIRequest) SetStartTime added in v1.3.1

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

SetStartTime is StartTime Setter 标签开始时间

func (*TmallpromotagtagapplyAPIRequest) SetTagDesc added in v1.3.1

func (r *TmallpromotagtagapplyAPIRequest) SetTagDesc(_tagDesc string) error

SetTagDesc is TagDesc Setter 标签用途描述

func (*TmallpromotagtagapplyAPIRequest) SetTagName added in v1.3.1

func (r *TmallpromotagtagapplyAPIRequest) SetTagName(_tagName string) error

SetTagName is TagName Setter 标签名称。注意在UMP中使用新人群标签top变成大写的“NEW_” 如:老标签是top1234,新标签是NEW_1234 。

type TmallpromotagtagapplyAPIResponse added in v1.3.1

type TmallpromotagtagapplyAPIResponse struct {
	model.CommonResponse
	TmallpromotagtagapplyAPIResponseModel
}

TmallpromotagtagapplyAPIResponse 优惠标签申请 API返回值 tmall.promotag.tag.apply

创建优惠标签

type TmallpromotagtagapplyAPIResponseModel added in v1.3.1

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 added in v1.3.1

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

TmallpromotagtagfindAPIRequest 查询标签接口 API请求 tmall.promotag.tag.find

查询用户创建的所有标签

func NewTmallpromotagtagfindRequest added in v1.3.1

func NewTmallpromotagtagfindRequest() *TmallpromotagtagfindAPIRequest

NewTmallpromotagtagfindRequest 初始化TmallpromotagtagfindAPIRequest对象

func (TmallpromotagtagfindAPIRequest) GetApiMethodName added in v1.3.1

func (r TmallpromotagtagfindAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallpromotagtagfindAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TmallpromotagtagfindAPIRequest) GetPageNo added in v1.3.1

func (r TmallpromotagtagfindAPIRequest) GetPageNo() int64

GetPageNo PageNo Getter

func (TmallpromotagtagfindAPIRequest) GetPageSize added in v1.3.1

func (r TmallpromotagtagfindAPIRequest) GetPageSize() int64

GetPageSize PageSize Getter

func (TmallpromotagtagfindAPIRequest) GetRawParams added in v1.3.1

func (r TmallpromotagtagfindAPIRequest) GetRawParams() model.Params

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

func (TmallpromotagtagfindAPIRequest) GetTagId added in v1.3.1

GetTagId TagId Getter

func (TmallpromotagtagfindAPIRequest) GetTagName added in v1.3.1

func (r TmallpromotagtagfindAPIRequest) GetTagName() string

GetTagName TagName Getter

func (*TmallpromotagtagfindAPIRequest) SetPageNo added in v1.3.1

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

SetPageNo is PageNo Setter 当前页码

func (*TmallpromotagtagfindAPIRequest) SetPageSize added in v1.3.1

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

SetPageSize is PageSize Setter 每页显示个数

func (*TmallpromotagtagfindAPIRequest) SetTagId added in v1.3.1

func (r *TmallpromotagtagfindAPIRequest) SetTagId(_tagId int64) error

SetTagId is TagId Setter 标签ID

func (*TmallpromotagtagfindAPIRequest) SetTagName added in v1.3.1

func (r *TmallpromotagtagfindAPIRequest) SetTagName(_tagName string) error

SetTagName is TagName Setter 标签名称,查询时可选项

type TmallpromotagtagfindAPIResponse added in v1.3.1

type TmallpromotagtagfindAPIResponse struct {
	model.CommonResponse
	TmallpromotagtagfindAPIResponseModel
}

TmallpromotagtagfindAPIResponse 查询标签接口 API返回值 tmall.promotag.tag.find

查询用户创建的所有标签

type TmallpromotagtagfindAPIResponseModel added in v1.3.1

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 added in v1.3.1

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

TmallpromotagtagremovetagAPIRequest 删除标签定义 API请求 tmall.promotag.tag.removetag

用于删除标签定义,但是要确保目前该标签没有人群在使用。

func NewTmallpromotagtagremovetagRequest added in v1.3.1

func NewTmallpromotagtagremovetagRequest() *TmallpromotagtagremovetagAPIRequest

NewTmallpromotagtagremovetagRequest 初始化TmallpromotagtagremovetagAPIRequest对象

func (TmallpromotagtagremovetagAPIRequest) GetApiMethodName added in v1.3.1

func (r TmallpromotagtagremovetagAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallpromotagtagremovetagAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TmallpromotagtagremovetagAPIRequest) GetRawParams added in v1.3.1

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

func (TmallpromotagtagremovetagAPIRequest) GetTagId added in v1.3.1

GetTagId TagId Getter

func (*TmallpromotagtagremovetagAPIRequest) SetTagId added in v1.3.1

func (r *TmallpromotagtagremovetagAPIRequest) SetTagId(_tagId int64) error

SetTagId is TagId Setter 需要删除的标签id

type TmallpromotagtagremovetagAPIResponse added in v1.3.1

type TmallpromotagtagremovetagAPIResponse struct {
	model.CommonResponse
	TmallpromotagtagremovetagAPIResponseModel
}

TmallpromotagtagremovetagAPIResponse 删除标签定义 API返回值 tmall.promotag.tag.removetag

用于删除标签定义,但是要确保目前该标签没有人群在使用。

type TmallpromotagtagremovetagAPIResponseModel added in v1.3.1

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 added in v1.3.1

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

TmallpromotagtaguserjudgeAPIRequest 用户标签判断接口 API请求 tmall.promotag.taguser.judge

查询用户是否有标签

func NewTmallpromotagtaguserjudgeRequest added in v1.3.1

func NewTmallpromotagtaguserjudgeRequest() *TmallpromotagtaguserjudgeAPIRequest

NewTmallpromotagtaguserjudgeRequest 初始化TmallpromotagtaguserjudgeAPIRequest对象

func (TmallpromotagtaguserjudgeAPIRequest) GetApiMethodName added in v1.3.1

func (r TmallpromotagtaguserjudgeAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallpromotagtaguserjudgeAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TmallpromotagtaguserjudgeAPIRequest) GetNick added in v1.3.1

GetNick Nick Getter

func (TmallpromotagtaguserjudgeAPIRequest) GetOpenid added in v1.3.1

GetOpenid Openid Getter

func (TmallpromotagtaguserjudgeAPIRequest) GetOuid added in v1.3.1

GetOuid Ouid Getter

func (TmallpromotagtaguserjudgeAPIRequest) GetRawParams added in v1.3.1

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

func (TmallpromotagtaguserjudgeAPIRequest) GetTagId added in v1.3.1

GetTagId TagId Getter

func (*TmallpromotagtaguserjudgeAPIRequest) SetNick added in v1.3.1

SetNick is Nick Setter 昵称

func (*TmallpromotagtaguserjudgeAPIRequest) SetOpenid added in v1.3.1

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

SetOpenid is Openid Setter 买家ID

func (*TmallpromotagtaguserjudgeAPIRequest) SetOuid added in v1.3.1

SetOuid is Ouid Setter 买家ID

func (*TmallpromotagtaguserjudgeAPIRequest) SetTagId added in v1.3.1

func (r *TmallpromotagtaguserjudgeAPIRequest) SetTagId(_tagId int64) error

SetTagId is TagId Setter 标签ID

type TmallpromotagtaguserjudgeAPIResponse added in v1.3.1

type TmallpromotagtaguserjudgeAPIResponse struct {
	model.CommonResponse
	TmallpromotagtaguserjudgeAPIResponseModel
}

TmallpromotagtaguserjudgeAPIResponse 用户标签判断接口 API返回值 tmall.promotag.taguser.judge

查询用户是否有标签

type TmallpromotagtaguserjudgeAPIResponseModel added in v1.3.1

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 added in v1.3.1

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

TmallpromotagtaguserremoveAPIRequest 给用户移除优惠标签 API请求 tmall.promotag.taguser.remove

给用户载体去标

func NewTmallpromotagtaguserremoveRequest added in v1.3.1

func NewTmallpromotagtaguserremoveRequest() *TmallpromotagtaguserremoveAPIRequest

NewTmallpromotagtaguserremoveRequest 初始化TmallpromotagtaguserremoveAPIRequest对象

func (TmallpromotagtaguserremoveAPIRequest) GetApiMethodName added in v1.3.1

func (r TmallpromotagtaguserremoveAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallpromotagtaguserremoveAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TmallpromotagtaguserremoveAPIRequest) GetNick added in v1.3.1

GetNick Nick Getter

func (TmallpromotagtaguserremoveAPIRequest) GetOpenid added in v1.3.1

GetOpenid Openid Getter

func (TmallpromotagtaguserremoveAPIRequest) GetOuid added in v1.3.1

GetOuid Ouid Getter

func (TmallpromotagtaguserremoveAPIRequest) GetRawParams added in v1.3.1

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

func (TmallpromotagtaguserremoveAPIRequest) GetTagId added in v1.3.1

GetTagId TagId Getter

func (*TmallpromotagtaguserremoveAPIRequest) SetNick added in v1.3.1

SetNick is Nick Setter 昵称

func (*TmallpromotagtaguserremoveAPIRequest) SetOpenid added in v1.3.1

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

SetOpenid is Openid Setter 用户ID

func (*TmallpromotagtaguserremoveAPIRequest) SetOuid added in v1.3.1

SetOuid is Ouid Setter 用户ID

func (*TmallpromotagtaguserremoveAPIRequest) SetTagId added in v1.3.1

func (r *TmallpromotagtaguserremoveAPIRequest) SetTagId(_tagId int64) error

SetTagId is TagId Setter 标签ID

type TmallpromotagtaguserremoveAPIResponse added in v1.3.1

type TmallpromotagtaguserremoveAPIResponse struct {
	model.CommonResponse
	TmallpromotagtaguserremoveAPIResponseModel
}

TmallpromotagtaguserremoveAPIResponse 给用户移除优惠标签 API返回值 tmall.promotag.taguser.remove

给用户载体去标

type TmallpromotagtaguserremoveAPIResponseModel added in v1.3.1

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 added in v1.3.1

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

TmallpromotagtagusersaveAPIRequest 给用户打上优惠标签 API请求 tmall.promotag.taguser.save

给用户载体打标

func NewTmallpromotagtagusersaveRequest added in v1.3.1

func NewTmallpromotagtagusersaveRequest() *TmallpromotagtagusersaveAPIRequest

NewTmallpromotagtagusersaveRequest 初始化TmallpromotagtagusersaveAPIRequest对象

func (TmallpromotagtagusersaveAPIRequest) GetApiMethodName added in v1.3.1

func (r TmallpromotagtagusersaveAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallpromotagtagusersaveAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TmallpromotagtagusersaveAPIRequest) GetNick added in v1.3.1

GetNick Nick Getter

func (TmallpromotagtagusersaveAPIRequest) GetOpenid added in v1.3.1

GetOpenid Openid Getter

func (TmallpromotagtagusersaveAPIRequest) GetOuid added in v1.3.1

GetOuid Ouid Getter

func (TmallpromotagtagusersaveAPIRequest) GetRawParams added in v1.3.1

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

func (TmallpromotagtagusersaveAPIRequest) GetTagId added in v1.3.1

GetTagId TagId Getter

func (*TmallpromotagtagusersaveAPIRequest) SetNick added in v1.3.1

SetNick is Nick Setter 昵称

func (*TmallpromotagtagusersaveAPIRequest) SetOpenid added in v1.3.1

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

SetOpenid is Openid Setter 用户ID

func (*TmallpromotagtagusersaveAPIRequest) SetOuid added in v1.3.1

SetOuid is Ouid Setter 用户ID

func (*TmallpromotagtagusersaveAPIRequest) SetTagId added in v1.3.1

func (r *TmallpromotagtagusersaveAPIRequest) SetTagId(_tagId int64) error

SetTagId is TagId Setter 标签ID

type TmallpromotagtagusersaveAPIResponse added in v1.3.1

type TmallpromotagtagusersaveAPIResponse struct {
	model.CommonResponse
	TmallpromotagtagusersaveAPIResponseModel
}

TmallpromotagtagusersaveAPIResponse 给用户打上优惠标签 API返回值 tmall.promotag.taguser.save

给用户载体打标

type TmallpromotagtagusersaveAPIResponseModel added in v1.3.1

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 added in v1.3.1

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

TmallpromotioncouponqueryAPIRequest 查询可用优惠券列表 API请求 tmall.promotion.coupon.query

查询用户的可用优惠券列表,仅包含优惠券基本信息和用户nick

func NewTmallpromotioncouponqueryRequest added in v1.3.1

func NewTmallpromotioncouponqueryRequest() *TmallpromotioncouponqueryAPIRequest

NewTmallpromotioncouponqueryRequest 初始化TmallpromotioncouponqueryAPIRequest对象

func (TmallpromotioncouponqueryAPIRequest) GetApiMethodName added in v1.3.1

func (r TmallpromotioncouponqueryAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallpromotioncouponqueryAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TmallpromotioncouponqueryAPIRequest) GetBizType added in v1.3.1

GetBizType BizType Getter

func (TmallpromotioncouponqueryAPIRequest) GetBuyerId added in v1.3.1

GetBuyerId BuyerId Getter

func (TmallpromotioncouponqueryAPIRequest) GetBuyerNick added in v1.3.1

GetBuyerNick BuyerNick Getter

func (TmallpromotioncouponqueryAPIRequest) GetExtra added in v1.3.1

GetExtra Extra Getter

func (TmallpromotioncouponqueryAPIRequest) GetRawParams added in v1.3.1

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

func (*TmallpromotioncouponqueryAPIRequest) SetBizType added in v1.3.1

func (r *TmallpromotioncouponqueryAPIRequest) SetBizType(_bizType string) error

SetBizType is BizType Setter 业务类型

func (*TmallpromotioncouponqueryAPIRequest) SetBuyerId added in v1.3.1

func (r *TmallpromotioncouponqueryAPIRequest) SetBuyerId(_buyerId string) error

SetBuyerId is BuyerId Setter buyer_id、buyer_nick至少填一个, 都填写以id为准

func (*TmallpromotioncouponqueryAPIRequest) SetBuyerNick added in v1.3.1

func (r *TmallpromotioncouponqueryAPIRequest) SetBuyerNick(_buyerNick string) error

SetBuyerNick is BuyerNick Setter buyer_id、buyer_nick至少填一个, 都填写以id为准

func (*TmallpromotioncouponqueryAPIRequest) SetExtra added in v1.3.1

func (r *TmallpromotioncouponqueryAPIRequest) SetExtra(_extra string) error

SetExtra is Extra Setter 扩展字段

type TmallpromotioncouponqueryAPIResponse added in v1.3.1

type TmallpromotioncouponqueryAPIResponse struct {
	model.CommonResponse
	TmallpromotioncouponqueryAPIResponseModel
}

TmallpromotioncouponqueryAPIResponse 查询可用优惠券列表 API返回值 tmall.promotion.coupon.query

查询用户的可用优惠券列表,仅包含优惠券基本信息和用户nick

type TmallpromotioncouponqueryAPIResponseModel added in v1.3.1

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 added in v1.3.1

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 added in v1.3.1

type TmallpromotioncouponqueryResult struct {
	// data
	DataList []TmallpromotioncouponqueryData `json:"data_list,omitempty" xml:"data_list>tmallpromotioncouponquery_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 added in v1.3.1

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

TmallpromotioncouponuseAPIRequest 券核销接口 API请求 tmall.promotion.coupon.use

核销用户的一张优惠券,返回核销结果

func NewTmallpromotioncouponuseRequest added in v1.3.1

func NewTmallpromotioncouponuseRequest() *TmallpromotioncouponuseAPIRequest

NewTmallpromotioncouponuseRequest 初始化TmallpromotioncouponuseAPIRequest对象

func (TmallpromotioncouponuseAPIRequest) GetApiMethodName added in v1.3.1

func (r TmallpromotioncouponuseAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallpromotioncouponuseAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (TmallpromotioncouponuseAPIRequest) GetBizType added in v1.3.1

GetBizType BizType Getter

func (TmallpromotioncouponuseAPIRequest) GetBuyerId added in v1.3.1

GetBuyerId BuyerId Getter

func (TmallpromotioncouponuseAPIRequest) GetBuyerNick added in v1.3.1

func (r TmallpromotioncouponuseAPIRequest) GetBuyerNick() string

GetBuyerNick BuyerNick Getter

func (TmallpromotioncouponuseAPIRequest) GetCouponId added in v1.3.1

func (r TmallpromotioncouponuseAPIRequest) GetCouponId() string

GetCouponId CouponId Getter

func (TmallpromotioncouponuseAPIRequest) GetExtra added in v1.3.1

GetExtra Extra Getter

func (TmallpromotioncouponuseAPIRequest) GetRawParams added in v1.3.1

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

func (TmallpromotioncouponuseAPIRequest) GetSellerId added in v1.3.1

func (r TmallpromotioncouponuseAPIRequest) GetSellerId() string

GetSellerId SellerId Getter

func (*TmallpromotioncouponuseAPIRequest) SetBizType added in v1.3.1

func (r *TmallpromotioncouponuseAPIRequest) SetBizType(_bizType string) error

SetBizType is BizType Setter 业务类型

func (*TmallpromotioncouponuseAPIRequest) SetBuyerId added in v1.3.1

func (r *TmallpromotioncouponuseAPIRequest) SetBuyerId(_buyerId string) error

SetBuyerId is BuyerId Setter buyer_id、buyer_nick至少填一个, 都填写以id为准

func (*TmallpromotioncouponuseAPIRequest) SetBuyerNick added in v1.3.1

func (r *TmallpromotioncouponuseAPIRequest) SetBuyerNick(_buyerNick string) error

SetBuyerNick is BuyerNick Setter buyer_id、buyer_nick至少填一个, 都填写以id为准

func (*TmallpromotioncouponuseAPIRequest) SetCouponId added in v1.3.1

func (r *TmallpromotioncouponuseAPIRequest) SetCouponId(_couponId string) error

SetCouponId is CouponId Setter 优惠券id

func (*TmallpromotioncouponuseAPIRequest) SetExtra added in v1.3.1

func (r *TmallpromotioncouponuseAPIRequest) SetExtra(_extra string) error

SetExtra is Extra Setter 扩展字段

func (*TmallpromotioncouponuseAPIRequest) SetSellerId added in v1.3.1

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

SetSellerId is SellerId Setter 商家id

type TmallpromotioncouponuseAPIResponse added in v1.3.1

type TmallpromotioncouponuseAPIResponse struct {
	model.CommonResponse
	TmallpromotioncouponuseAPIResponseModel
}

TmallpromotioncouponuseAPIResponse 券核销接口 API返回值 tmall.promotion.coupon.use

核销用户的一张优惠券,返回核销结果

type TmallpromotioncouponuseAPIResponseModel added in v1.3.1

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 {
	// 活动关联的权益信息,可以从权益选择器API中获取
	AddDetailVos []ActivityBenefitDetailVo `json:"add_detail_vos,omitempty" xml:"add_detail_vos>activity_benefit_detail_vo,omitempty"`
	// 需要删除的已经关联的权益
	DeleteDetailVos []DeleteActivityBenefitDetailVo `json:"delete_detail_vos,omitempty" xml:"delete_detail_vos>delete_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