icbuproduct

package
v1.1.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlibabaIcbuProductIdEncryptAPIResponse

type AlibabaIcbuProductIdEncryptAPIResponse struct {
	model.CommonResponse
	AlibabaIcbuProductIdEncryptResponse
}

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

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

type AlibabaIcbuProductIdEncryptRequest

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

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

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

func NewAlibabaIcbuProductIdEncryptRequest

func NewAlibabaIcbuProductIdEncryptRequest() *AlibabaIcbuProductIdEncryptRequest

初始化AlibabaIcbuProductIdEncryptRequest对象

func (AlibabaIcbuProductIdEncryptRequest) GetApiMethodName

func (r AlibabaIcbuProductIdEncryptRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (AlibabaIcbuProductIdEncryptRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (AlibabaIcbuProductIdEncryptRequest) GetLanguage

Language Getter

func (AlibabaIcbuProductIdEncryptRequest) GetProductId

func (r AlibabaIcbuProductIdEncryptRequest) GetProductId() int64

ProductId Getter

func (*AlibabaIcbuProductIdEncryptRequest) SetLanguage

func (r *AlibabaIcbuProductIdEncryptRequest) SetLanguage(language string) error

Language Setter 语种

func (*AlibabaIcbuProductIdEncryptRequest) SetProductId

func (r *AlibabaIcbuProductIdEncryptRequest) SetProductId(productId int64) error

ProductId Setter 明文id

type AlibabaIcbuProductIdEncryptResponse

type AlibabaIcbuProductIdEncryptResponse 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"`
}

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

type AlibabaIcbuProductInventoryUpdateAPIResponse

type AlibabaIcbuProductInventoryUpdateAPIResponse struct {
	model.CommonResponse
	AlibabaIcbuProductInventoryUpdateResponse
}

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

更新库存信息

type AlibabaIcbuProductInventoryUpdateRequest

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

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

更新库存信息

func NewAlibabaIcbuProductInventoryUpdateRequest

func NewAlibabaIcbuProductInventoryUpdateRequest() *AlibabaIcbuProductInventoryUpdateRequest

初始化AlibabaIcbuProductInventoryUpdateRequest对象

func (AlibabaIcbuProductInventoryUpdateRequest) GetApiMethodName

func (r AlibabaIcbuProductInventoryUpdateRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (AlibabaIcbuProductInventoryUpdateRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (AlibabaIcbuProductInventoryUpdateRequest) GetRequestParam

RequestParam Getter

func (*AlibabaIcbuProductInventoryUpdateRequest) SetRequestParam

RequestParam Setter 更新请求

type AlibabaIcbuProductInventoryUpdateResponse

type AlibabaIcbuProductInventoryUpdateResponse 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"`
}

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

type InventoryDto

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

InventoryDto

type ProductInventoryRequest

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

ProductInventoryRequest

type TopResultDo

type TopResultDo struct {
	// 调用是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
	// 库存更新是否成功
	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"`
}

TopResultDo

Jump to

Keyboard shortcuts

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