lstmarketing

package
v1.2.0 Latest Latest
Warning

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

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

Documentation

Overview

零售通营销API model

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
}

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

根据订单查询营销信息

func NewAlibabaLstMarketingQuerybyorderidRequest

func NewAlibabaLstMarketingQuerybyorderidRequest() *AlibabaLstMarketingQuerybyorderidAPIRequest

初始化AlibabaLstMarketingQuerybyorderidAPIRequest对象

func (AlibabaLstMarketingQuerybyorderidAPIRequest) GetApiMethodName added in v1.2.0

IRequest interface 方法, 获取Api method

func (AlibabaLstMarketingQuerybyorderidAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

func (AlibabaLstMarketingQuerybyorderidAPIRequest) GetMainOrderId added in v1.2.0

MainOrderId Getter

func (AlibabaLstMarketingQuerybyorderidAPIRequest) GetSubOrderId added in v1.2.0

SubOrderId Getter

func (*AlibabaLstMarketingQuerybyorderidAPIRequest) SetMainOrderId added in v1.2.0

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

MainOrderId Setter 主订单

func (*AlibabaLstMarketingQuerybyorderidAPIRequest) SetSubOrderId added in v1.2.0

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

SubOrderId Setter 子订单

type AlibabaLstMarketingQuerybyorderidAPIResponse

type AlibabaLstMarketingQuerybyorderidAPIResponse struct {
	model.CommonResponse
	AlibabaLstMarketingQuerybyorderidAPIResponseModel
}

根据订单查询营销信息 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"`
}

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

type AlibabaLstMarketingQuerybyorderidResultDto

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

AlibabaLstMarketingQuerybyorderidResultDto

type LstTopOrderDto

type LstTopOrderDto struct {
	// 子订单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"`
	// 营销活动列表
	PromotionDtoList []Promotiondtolist `json:"promotion_dto_list,omitempty" xml:"promotion_dto_list>promotiondtolist,omitempty"`
}

LstTopOrderDto

type Promotiondtolist

type Promotiondtolist struct {
	// 优惠金额,分为单位
	DiscountFee int64 `json:"discount_fee,omitempty" xml:"discount_fee,omitempty"`
	// 活动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"`
}

Promotiondtolist

Jump to

Keyboard shortcuts

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