icbuproduct

package
v1.3.3 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 icbuproduct 包含ICBU商品api相关结构体

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlibabaIcbuProductIdEncryptAPIRequest added in v1.2.0

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

AlibabaIcbuProductIdEncryptAPIRequest ICBU国际站商品加密接口 API请求 alibaba.icbu.product.id.encrypt

ICBU国际站,对混淆的产品ID加密。

func NewAlibabaIcbuProductIdEncryptRequest

func NewAlibabaIcbuProductIdEncryptRequest() *AlibabaIcbuProductIdEncryptAPIRequest

NewAlibabaIcbuProductIdEncryptRequest 初始化AlibabaIcbuProductIdEncryptAPIRequest对象

func (AlibabaIcbuProductIdEncryptAPIRequest) GetApiMethodName added in v1.2.0

func (r AlibabaIcbuProductIdEncryptAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaIcbuProductIdEncryptAPIRequest) GetApiParams added in v1.2.0

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaIcbuProductIdEncryptAPIRequest) GetLanguage added in v1.2.0

GetLanguage Language Getter

func (AlibabaIcbuProductIdEncryptAPIRequest) GetProductId added in v1.2.0

GetProductId ProductId Getter

func (AlibabaIcbuProductIdEncryptAPIRequest) GetRawParams added in v1.2.8

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

func (*AlibabaIcbuProductIdEncryptAPIRequest) SetLanguage added in v1.2.0

func (r *AlibabaIcbuProductIdEncryptAPIRequest) SetLanguage(_language string) error

SetLanguage is Language Setter 语种

func (*AlibabaIcbuProductIdEncryptAPIRequest) SetProductId added in v1.2.0

func (r *AlibabaIcbuProductIdEncryptAPIRequest) SetProductId(_productId int64) error

SetProductId is ProductId Setter 明文id

type AlibabaIcbuProductIdEncryptAPIResponse

type AlibabaIcbuProductIdEncryptAPIResponse struct {
	model.CommonResponse
	AlibabaIcbuProductIdEncryptAPIResponseModel
}

AlibabaIcbuProductIdEncryptAPIResponse ICBU国际站商品加密接口 API返回值 alibaba.icbu.product.id.encrypt

ICBU国际站,对混淆的产品ID加密。

type AlibabaIcbuProductIdEncryptAPIResponseModel added in v1.2.0

type AlibabaIcbuProductIdEncryptAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_icbu_product_id_encrypt_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 加密id
	SecretId string `json:"secret_id,omitempty" xml:"secret_id,omitempty"`
}

AlibabaIcbuProductIdEncryptAPIResponseModel is ICBU国际站商品加密接口 成功返回结果

type AlibabaIcbuProductInventoryUpdateAPIRequest added in v1.2.0

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

AlibabaIcbuProductInventoryUpdateAPIRequest icbu商品库存更新 API请求 alibaba.icbu.product.inventory.update

更新库存信息

func NewAlibabaIcbuProductInventoryUpdateRequest

func NewAlibabaIcbuProductInventoryUpdateRequest() *AlibabaIcbuProductInventoryUpdateAPIRequest

NewAlibabaIcbuProductInventoryUpdateRequest 初始化AlibabaIcbuProductInventoryUpdateAPIRequest对象

func (AlibabaIcbuProductInventoryUpdateAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaIcbuProductInventoryUpdateAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaIcbuProductInventoryUpdateAPIRequest) GetRawParams added in v1.2.8

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

func (AlibabaIcbuProductInventoryUpdateAPIRequest) GetRequestParam added in v1.2.0

GetRequestParam RequestParam Getter

func (*AlibabaIcbuProductInventoryUpdateAPIRequest) SetRequestParam added in v1.2.0

SetRequestParam is RequestParam Setter 更新请求

type AlibabaIcbuProductInventoryUpdateAPIResponse

type AlibabaIcbuProductInventoryUpdateAPIResponse struct {
	model.CommonResponse
	AlibabaIcbuProductInventoryUpdateAPIResponseModel
}

AlibabaIcbuProductInventoryUpdateAPIResponse icbu商品库存更新 API返回值 alibaba.icbu.product.inventory.update

更新库存信息

type AlibabaIcbuProductInventoryUpdateAPIResponseModel added in v1.2.0

type AlibabaIcbuProductInventoryUpdateAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_icbu_product_inventory_update_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// Top返回对象
	Result *TopResultDo `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaIcbuProductInventoryUpdateAPIResponseModel is icbu商品库存更新 成功返回结果

type AlibabaIcbuProductTypeAvailableGetAPIRequest added in v1.2.5

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

AlibabaIcbuProductTypeAvailableGetAPIRequest 商家发品类型查询 API请求 alibaba.icbu.product.type.available.get

查询商家发品权限

func NewAlibabaIcbuProductTypeAvailableGetRequest added in v1.2.5

func NewAlibabaIcbuProductTypeAvailableGetRequest() *AlibabaIcbuProductTypeAvailableGetAPIRequest

NewAlibabaIcbuProductTypeAvailableGetRequest 初始化AlibabaIcbuProductTypeAvailableGetAPIRequest对象

func (AlibabaIcbuProductTypeAvailableGetAPIRequest) GetApiMethodName added in v1.2.5

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaIcbuProductTypeAvailableGetAPIRequest) GetApiParams added in v1.2.5

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaIcbuProductTypeAvailableGetAPIRequest) GetRawParams added in v1.2.8

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

func (AlibabaIcbuProductTypeAvailableGetAPIRequest) GetTypeRequest added in v1.2.5

GetTypeRequest TypeRequest Getter

func (*AlibabaIcbuProductTypeAvailableGetAPIRequest) SetTypeRequest added in v1.2.5

func (r *AlibabaIcbuProductTypeAvailableGetAPIRequest) SetTypeRequest(_typeRequest *ProductTopRequest) error

SetTypeRequest is TypeRequest Setter -

type AlibabaIcbuProductTypeAvailableGetAPIResponse added in v1.2.5

type AlibabaIcbuProductTypeAvailableGetAPIResponse struct {
	model.CommonResponse
	AlibabaIcbuProductTypeAvailableGetAPIResponseModel
}

AlibabaIcbuProductTypeAvailableGetAPIResponse 商家发品类型查询 API返回值 alibaba.icbu.product.type.available.get

查询商家发品权限

type AlibabaIcbuProductTypeAvailableGetAPIResponseModel added in v1.2.5

type AlibabaIcbuProductTypeAvailableGetAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_icbu_product_type_available_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 错误追踪码,请务必打印在日志中,后续排查问题请提交此错误追踪码
	TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"`
	// 错误信息
	Message string `json:"message,omitempty" xml:"message,omitempty"`
	// 返回的错误码,数组形式的字符串,用;分割
	MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"`
	// 返回结果数据
	Data *ProductSupportTypeDto `json:"data,omitempty" xml:"data,omitempty"`
	// 调用是否成功
	BizSuccess bool `json:"biz_success,omitempty" xml:"biz_success,omitempty"`
}

AlibabaIcbuProductTypeAvailableGetAPIResponseModel is 商家发品类型查询 成功返回结果

type InventoryDto

type InventoryDto struct {
	// 库存的仓编码,根据商品查询返回的仓编码进行设置,不同的客户类型,仓编码会不一样
	InventoryCode string `json:"inventory_code,omitempty" xml:"inventory_code,omitempty"`
	// 操作类型,加库存或者减库存,加库存:plus,减库存:sub
	Operate string `json:"operate,omitempty" xml:"operate,omitempty"`
	// 待更新库存的SKUid,如果没有skuId,设置成-1
	SkuId int64 `json:"sku_id,omitempty" xml:"sku_id,omitempty"`
	// 库存变动值
	Inventory int64 `json:"inventory,omitempty" xml:"inventory,omitempty"`
}

InventoryDto 结构体

type ProductInventoryRequest

type ProductInventoryRequest struct {
	// 待更新的库存列表
	InventoryList []InventoryDto `json:"inventory_list,omitempty" xml:"inventory_list>inventory_dto,omitempty"`
	// 商品id
	ProductId int64 `json:"product_id,omitempty" xml:"product_id,omitempty"`
}

ProductInventoryRequest 结构体

type ProductSupportTypeDto added in v1.2.5

type ProductSupportTypeDto struct {
	// 是否支持下单品
	SupportPostWholeSale bool `json:"support_post_whole_sale,omitempty" xml:"support_post_whole_sale,omitempty"`
	// 是否支持询盘品
	SupportPostSourcing bool `json:"support_post_sourcing,omitempty" xml:"support_post_sourcing,omitempty"`
}

ProductSupportTypeDto 结构体

type ProductTopRequest added in v1.2.5

type ProductTopRequest struct {
	// 返回结果语种
	Language string `json:"language,omitempty" xml:"language,omitempty"`
	// 类目id
	CatId int64 `json:"cat_id,omitempty" xml:"cat_id,omitempty"`
}

ProductTopRequest 结构体

type TopResultDo

type TopResultDo struct {
	// 库存更新是否成功
	Data string `json:"data,omitempty" xml:"data,omitempty"`
	// 接口更新失败时错误信息
	Message string `json:"message,omitempty" xml:"message,omitempty"`
	// 失败错误码
	MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"`
	// 接口失败时的追踪id
	TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"`
	// 调用是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

TopResultDo 结构体

Jump to

Keyboard shortcuts

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