lstmarketing

package
v1.2.2 Latest Latest
Warning

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

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

Documentation

Overview

Package lstmarketing 包含零售通营销API相关结构体

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlibabaLstMarketingQuerybyorderidAPIRequest added in v1.2.0

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

AlibabaLstMarketingQuerybyorderidAPIRequest 根据订单查询营销信息 API请求 alibaba.lst.marketing.querybyorderid

根据订单查询营销信息

func NewAlibabaLstMarketingQuerybyorderidRequest

func NewAlibabaLstMarketingQuerybyorderidRequest() *AlibabaLstMarketingQuerybyorderidAPIRequest

NewAlibabaLstMarketingQuerybyorderidRequest 初始化AlibabaLstMarketingQuerybyorderidAPIRequest对象

func (AlibabaLstMarketingQuerybyorderidAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaLstMarketingQuerybyorderidAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaLstMarketingQuerybyorderidAPIRequest) GetMainOrderId added in v1.2.0

GetMainOrderId MainOrderId Getter

func (AlibabaLstMarketingQuerybyorderidAPIRequest) GetSubOrderId added in v1.2.0

GetSubOrderId SubOrderId Getter

func (*AlibabaLstMarketingQuerybyorderidAPIRequest) SetMainOrderId added in v1.2.0

func (r *AlibabaLstMarketingQuerybyorderidAPIRequest) SetMainOrderId(_mainOrderId int64) error

SetMainOrderId is MainOrderId Setter 主订单

func (*AlibabaLstMarketingQuerybyorderidAPIRequest) SetSubOrderId added in v1.2.0

func (r *AlibabaLstMarketingQuerybyorderidAPIRequest) SetSubOrderId(_subOrderId int64) error

SetSubOrderId is SubOrderId Setter 子订单

type AlibabaLstMarketingQuerybyorderidAPIResponse

type AlibabaLstMarketingQuerybyorderidAPIResponse struct {
	model.CommonResponse
	AlibabaLstMarketingQuerybyorderidAPIResponseModel
}

AlibabaLstMarketingQuerybyorderidAPIResponse 根据订单查询营销信息 API返回值 alibaba.lst.marketing.querybyorderid

根据订单查询营销信息

type AlibabaLstMarketingQuerybyorderidAPIResponseModel added in v1.2.0

type AlibabaLstMarketingQuerybyorderidAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_lst_marketing_querybyorderid_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 异步获取历史数据接口返回结果
	Result *AlibabaLstMarketingQuerybyorderidResultDto `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaLstMarketingQuerybyorderidAPIResponseModel is 根据订单查询营销信息 成功返回结果

type AlibabaLstMarketingQuerybyorderidResultDto

type AlibabaLstMarketingQuerybyorderidResultDto struct {
	// 错误信息
	ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"`
	// 错误码
	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// 订单实体
	Content *LstTopOrderDto `json:"content,omitempty" xml:"content,omitempty"`
	// 执行结果
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

AlibabaLstMarketingQuerybyorderidResultDto 结构体

type LstTopOrderDto

type LstTopOrderDto struct {
	// 营销活动列表
	PromotionDtoList []Promotiondtolist `json:"promotion_dto_list,omitempty" xml:"promotion_dto_list>promotiondtolist,omitempty"`
	// 子订单id
	SubOrderId int64 `json:"sub_order_id,omitempty" xml:"sub_order_id,omitempty"`
	// 主订单id
	MainOrderId int64 `json:"main_order_id,omitempty" xml:"main_order_id,omitempty"`
}

LstTopOrderDto 结构体

type Promotiondtolist

type Promotiondtolist struct {
	// 活动id
	ActivityId string `json:"activity_id,omitempty" xml:"activity_id,omitempty"`
	// 活动名称
	ActivityName string `json:"activity_name,omitempty" xml:"activity_name,omitempty"`
	// 营销类型
	PromotionTypeName string `json:"promotion_type_name,omitempty" xml:"promotion_type_name,omitempty"`
	// 优惠金额,分为单位
	DiscountFee int64 `json:"discount_fee,omitempty" xml:"discount_fee,omitempty"`
}

Promotiondtolist 结构体

Jump to

Keyboard shortcuts

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