icbudropshipping

package
v1.3.2 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 icbudropshipping 包含ICBU-DropShipping相关结构体

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	// Specific address
	Address string `json:"address,omitempty" xml:"address,omitempty"`
	// Secondary address
	AlternateAddress string `json:"alternate_address,omitempty" xml:"alternate_address,omitempty"`
	// Name of the city where the order is completed
	City string `json:"city,omitempty" xml:"city,omitempty"`
	// City abbreviation
	CityCode string `json:"city_code,omitempty" xml:"city_code,omitempty"`
	// Name of contact person
	ContactPerson string `json:"contact_person,omitempty" xml:"contact_person,omitempty"`
	// Country name
	Country string `json:"country,omitempty" xml:"country,omitempty"`
	// Country code,ISO3166 standard and has two letters.
	CountryCode string `json:"country_code,omitempty" xml:"country_code,omitempty"`
	// Port name
	Port string `json:"port,omitempty" xml:"port,omitempty"`
	// Port code
	PortCode string `json:"port_code,omitempty" xml:"port_code,omitempty"`
	// Name of state/province
	Province string `json:"province,omitempty" xml:"province,omitempty"`
	// Province/state abbreviation
	ProvinceCode string `json:"province_code,omitempty" xml:"province_code,omitempty"`
	// zip
	Zip string `json:"zip,omitempty" xml:"zip,omitempty"`
	// Fax
	Fax *Phone `json:"fax,omitempty" xml:"fax,omitempty"`
	// telephone
	Telephone *Phone `json:"telephone,omitempty" xml:"telephone,omitempty"`
}

Address 结构体

type AddressInfoDto

type AddressInfoDto struct {
	// Shipping address
	Address string `json:"address,omitempty" xml:"address,omitempty"`
	// If any, please send it to us to make the freight more accurate.
	Zip string `json:"zip,omitempty" xml:"zip,omitempty"`
	// City
	City *DivisionInfoDto `json:"city,omitempty" xml:"city,omitempty"`
	// Country
	Country *DivisionInfoDto `json:"country,omitempty" xml:"country,omitempty"`
	// province
	Province *DivisionInfoDto `json:"province,omitempty" xml:"province,omitempty"`
}

AddressInfoDto 结构体

type AlibababuynowordercreateAPIRequest added in v1.3.1

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

AlibababuynowordercreateAPIRequest 阿里巴巴买家buynow下单接口 API请求 alibaba.buynow.order.create

阿里巴巴买家下单接口

func NewAlibababuynowordercreateRequest added in v1.3.1

func NewAlibababuynowordercreateRequest() *AlibababuynowordercreateAPIRequest

NewAlibababuynowordercreateRequest 初始化AlibababuynowordercreateAPIRequest对象

func (AlibababuynowordercreateAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibababuynowordercreateAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibababuynowordercreateAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibababuynowordercreateAPIRequest) GetParamOrderCreateRequest added in v1.3.1

func (r AlibababuynowordercreateAPIRequest) GetParamOrderCreateRequest() *OrderCreateRequest

GetParamOrderCreateRequest ParamOrderCreateRequest Getter

func (AlibababuynowordercreateAPIRequest) GetRawParams added in v1.3.1

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

func (*AlibababuynowordercreateAPIRequest) SetParamOrderCreateRequest added in v1.3.1

func (r *AlibababuynowordercreateAPIRequest) SetParamOrderCreateRequest(_paramOrderCreateRequest *OrderCreateRequest) error

SetParamOrderCreateRequest is ParamOrderCreateRequest Setter Order creation parameter

type AlibababuynowordercreateAPIResponse added in v1.3.1

type AlibababuynowordercreateAPIResponse struct {
	model.CommonResponse
	AlibababuynowordercreateAPIResponseModel
}

AlibababuynowordercreateAPIResponse 阿里巴巴买家buynow下单接口 API返回值 alibaba.buynow.order.create

阿里巴巴买家下单接口

type AlibababuynowordercreateAPIResponseModel added in v1.3.1

type AlibababuynowordercreateAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_buynow_order_create_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// Response
	Value *OrderCreateResponse `json:"value,omitempty" xml:"value,omitempty"`
}

AlibababuynowordercreateAPIResponseModel is 阿里巴巴买家buynow下单接口 成功返回结果

type AlibabadropshippingorderpayAPIRequest added in v1.3.1

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

AlibabadropshippingorderpayAPIRequest alibaba dropshipping 支付代扣 API请求 alibaba.dropshipping.order.pay

alibaba dropshipping 支付代扣

func NewAlibabadropshippingorderpayRequest added in v1.3.1

func NewAlibabadropshippingorderpayRequest() *AlibabadropshippingorderpayAPIRequest

NewAlibabadropshippingorderpayRequest 初始化AlibabadropshippingorderpayAPIRequest对象

func (AlibabadropshippingorderpayAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabadropshippingorderpayAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabadropshippingorderpayAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabadropshippingorderpayAPIRequest) GetParamOrderPayRequest added in v1.3.1

func (r AlibabadropshippingorderpayAPIRequest) GetParamOrderPayRequest() *OrderPayRequest

GetParamOrderPayRequest ParamOrderPayRequest Getter

func (AlibabadropshippingorderpayAPIRequest) GetRawParams added in v1.3.1

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

func (*AlibabadropshippingorderpayAPIRequest) SetParamOrderPayRequest added in v1.3.1

func (r *AlibabadropshippingorderpayAPIRequest) SetParamOrderPayRequest(_paramOrderPayRequest *OrderPayRequest) error

SetParamOrderPayRequest is ParamOrderPayRequest Setter request model

type AlibabadropshippingorderpayAPIResponse added in v1.3.1

type AlibabadropshippingorderpayAPIResponse struct {
	model.CommonResponse
	AlibabadropshippingorderpayAPIResponseModel
}

AlibabadropshippingorderpayAPIResponse alibaba dropshipping 支付代扣 API返回值 alibaba.dropshipping.order.pay

alibaba dropshipping 支付代扣

type AlibabadropshippingorderpayAPIResponseModel added in v1.3.1

type AlibabadropshippingorderpayAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_dropshipping_order_pay_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// response model
	Value *CashierPayResponse `json:"value,omitempty" xml:"value,omitempty"`
}

AlibabadropshippingorderpayAPIResponseModel is alibaba dropshipping 支付代扣 成功返回结果

type AlibabadropshippingproductgetAPIRequest added in v1.3.1

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

AlibabadropshippingproductgetAPIRequest 阿里巴巴dropshipping 产品信息获取 API请求 alibaba.dropshipping.product.get

阿里巴巴dropshipping 产品信息获取

func NewAlibabadropshippingproductgetRequest added in v1.3.1

func NewAlibabadropshippingproductgetRequest() *AlibabadropshippingproductgetAPIRequest

NewAlibabadropshippingproductgetRequest 初始化AlibabadropshippingproductgetAPIRequest对象

func (AlibabadropshippingproductgetAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabadropshippingproductgetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabadropshippingproductgetAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabadropshippingproductgetAPIRequest) GetParamDistributionSaleProductRequest added in v1.3.1

func (r AlibabadropshippingproductgetAPIRequest) GetParamDistributionSaleProductRequest() *DistributionSaleProductRequest

GetParamDistributionSaleProductRequest ParamDistributionSaleProductRequest Getter

func (AlibabadropshippingproductgetAPIRequest) GetRawParams added in v1.3.1

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

func (*AlibabadropshippingproductgetAPIRequest) SetParamDistributionSaleProductRequest added in v1.3.1

func (r *AlibabadropshippingproductgetAPIRequest) SetParamDistributionSaleProductRequest(_paramDistributionSaleProductRequest *DistributionSaleProductRequest) error

SetParamDistributionSaleProductRequest is ParamDistributionSaleProductRequest Setter {}

type AlibabadropshippingproductgetAPIResponse added in v1.3.1

type AlibabadropshippingproductgetAPIResponse struct {
	model.CommonResponse
	AlibabadropshippingproductgetAPIResponseModel
}

AlibabadropshippingproductgetAPIResponse 阿里巴巴dropshipping 产品信息获取 API返回值 alibaba.dropshipping.product.get

阿里巴巴dropshipping 产品信息获取

type AlibabadropshippingproductgetAPIResponseModel added in v1.3.1

type AlibabadropshippingproductgetAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_dropshipping_product_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// product pojo
	Value []DistributionSaleProduct `json:"value,omitempty" xml:"value>distribution_sale_product,omitempty"`
}

AlibabadropshippingproductgetAPIResponseModel is 阿里巴巴dropshipping 产品信息获取 成功返回结果

type AlibabadropshippingstoresaveAPIRequest added in v1.3.1

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

AlibabadropshippingstoresaveAPIRequest 阿里巴巴dropshipping店铺数据保存接口 API请求 alibaba.dropshipping.store.save

阿里巴巴dropshipping店铺数据保存

func NewAlibabadropshippingstoresaveRequest added in v1.3.1

func NewAlibabadropshippingstoresaveRequest() *AlibabadropshippingstoresaveAPIRequest

NewAlibabadropshippingstoresaveRequest 初始化AlibabadropshippingstoresaveAPIRequest对象

func (AlibabadropshippingstoresaveAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabadropshippingstoresaveAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabadropshippingstoresaveAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabadropshippingstoresaveAPIRequest) GetRawParams added in v1.3.1

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

func (AlibabadropshippingstoresaveAPIRequest) GetStoreType added in v1.3.1

GetStoreType StoreType Getter

func (AlibabadropshippingstoresaveAPIRequest) GetStoreUrl added in v1.3.1

GetStoreUrl StoreUrl Getter

func (*AlibabadropshippingstoresaveAPIRequest) SetStoreType added in v1.3.1

func (r *AlibabadropshippingstoresaveAPIRequest) SetStoreType(_storeType string) error

SetStoreType is StoreType Setter store type

func (*AlibabadropshippingstoresaveAPIRequest) SetStoreUrl added in v1.3.1

func (r *AlibabadropshippingstoresaveAPIRequest) SetStoreUrl(_storeUrl string) error

SetStoreUrl is StoreUrl Setter store url

type AlibabadropshippingstoresaveAPIResponse added in v1.3.1

type AlibabadropshippingstoresaveAPIResponse struct {
	model.CommonResponse
	AlibabadropshippingstoresaveAPIResponseModel
}

AlibabadropshippingstoresaveAPIResponse 阿里巴巴dropshipping店铺数据保存接口 API返回值 alibaba.dropshipping.store.save

阿里巴巴dropshipping店铺数据保存

type AlibabadropshippingstoresaveAPIResponseModel added in v1.3.1

type AlibabadropshippingstoresaveAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_dropshipping_store_save_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	//  is success
	ResultSuccess string `json:"result_success,omitempty" xml:"result_success,omitempty"`
}

AlibabadropshippingstoresaveAPIResponseModel is 阿里巴巴dropshipping店铺数据保存接口 成功返回结果

type AlibabadropshippingtokencreateAPIRequest added in v1.3.1

type AlibabadropshippingtokencreateAPIRequest struct {
	model.Params
}

AlibabadropshippingtokencreateAPIRequest 国际站dropshipping 选品token 创建 API请求 alibaba.dropshipping.token.create

国际站dropshipping 选品token 创建,用于让买家有权限访问我们指定的 商品场馆

func NewAlibabadropshippingtokencreateRequest added in v1.3.1

func NewAlibabadropshippingtokencreateRequest() *AlibabadropshippingtokencreateAPIRequest

NewAlibabadropshippingtokencreateRequest 初始化AlibabadropshippingtokencreateAPIRequest对象

func (AlibabadropshippingtokencreateAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabadropshippingtokencreateAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabadropshippingtokencreateAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabadropshippingtokencreateAPIRequest) GetRawParams added in v1.3.1

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

type AlibabadropshippingtokencreateAPIResponse added in v1.3.1

type AlibabadropshippingtokencreateAPIResponse struct {
	model.CommonResponse
	AlibabadropshippingtokencreateAPIResponseModel
}

AlibabadropshippingtokencreateAPIResponse 国际站dropshipping 选品token 创建 API返回值 alibaba.dropshipping.token.create

国际站dropshipping 选品token 创建,用于让买家有权限访问我们指定的 商品场馆

type AlibabadropshippingtokencreateAPIResponseModel added in v1.3.1

type AlibabadropshippingtokencreateAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_dropshipping_token_create_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// ecology_token
	EcologyToken string `json:"ecology_token,omitempty" xml:"ecology_token,omitempty"`
}

AlibabadropshippingtokencreateAPIResponseModel is 国际站dropshipping 选品token 创建 成功返回结果

type AlibabaorderfreightcalculateAPIRequest added in v1.3.1

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

AlibabaorderfreightcalculateAPIRequest 阿里巴巴下单场景运费方案计算 API请求 alibaba.order.freight.calculate

icbu开展 drop shipping 业务,阿里巴巴下单场景运费方案计算 alibaba Create order scenario freight calculation

func NewAlibabaorderfreightcalculateRequest added in v1.3.1

func NewAlibabaorderfreightcalculateRequest() *AlibabaorderfreightcalculateAPIRequest

NewAlibabaorderfreightcalculateRequest 初始化AlibabaorderfreightcalculateAPIRequest对象

func (AlibabaorderfreightcalculateAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabaorderfreightcalculateAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaorderfreightcalculateAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaorderfreightcalculateAPIRequest) GetParamMultiFreightTemplateRequest added in v1.3.1

func (r AlibabaorderfreightcalculateAPIRequest) GetParamMultiFreightTemplateRequest() *MultiFreightTemplateRequest

GetParamMultiFreightTemplateRequest ParamMultiFreightTemplateRequest Getter

func (AlibabaorderfreightcalculateAPIRequest) GetRawParams added in v1.3.1

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

func (*AlibabaorderfreightcalculateAPIRequest) SetParamMultiFreightTemplateRequest added in v1.3.1

func (r *AlibabaorderfreightcalculateAPIRequest) SetParamMultiFreightTemplateRequest(_paramMultiFreightTemplateRequest *MultiFreightTemplateRequest) error

SetParamMultiFreightTemplateRequest is ParamMultiFreightTemplateRequest Setter {}

type AlibabaorderfreightcalculateAPIResponse added in v1.3.1

type AlibabaorderfreightcalculateAPIResponse struct {
	model.CommonResponse
	AlibabaorderfreightcalculateAPIResponseModel
}

AlibabaorderfreightcalculateAPIResponse 阿里巴巴下单场景运费方案计算 API返回值 alibaba.order.freight.calculate

icbu开展 drop shipping 业务,阿里巴巴下单场景运费方案计算 alibaba Create order scenario freight calculation

type AlibabaorderfreightcalculateAPIResponseModel added in v1.3.1

type AlibabaorderfreightcalculateAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_order_freight_calculate_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// Logistics Solution List
	Value []LogisticsSolution `json:"value,omitempty" xml:"value>logistics_solution,omitempty"`
}

AlibabaorderfreightcalculateAPIResponseModel is 阿里巴巴下单场景运费方案计算 成功返回结果

type AlibabaorderlogisticstrackinggetAPIRequest added in v1.3.1

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

AlibabaorderlogisticstrackinggetAPIRequest 阿里巴巴订单物流轨迹查询 API请求 alibaba.order.logistics.tracking.get

阿里巴巴订单物流轨迹查询

func NewAlibabaorderlogisticstrackinggetRequest added in v1.3.1

func NewAlibabaorderlogisticstrackinggetRequest() *AlibabaorderlogisticstrackinggetAPIRequest

NewAlibabaorderlogisticstrackinggetRequest 初始化AlibabaorderlogisticstrackinggetAPIRequest对象

func (AlibabaorderlogisticstrackinggetAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaorderlogisticstrackinggetAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaorderlogisticstrackinggetAPIRequest) GetRawParams added in v1.3.1

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

func (AlibabaorderlogisticstrackinggetAPIRequest) GetTradeId added in v1.3.1

GetTradeId TradeId Getter

func (*AlibabaorderlogisticstrackinggetAPIRequest) SetTradeId added in v1.3.1

func (r *AlibabaorderlogisticstrackinggetAPIRequest) SetTradeId(_tradeId int64) error

SetTradeId is TradeId Setter order id

type AlibabaorderlogisticstrackinggetAPIResponse added in v1.3.1

type AlibabaorderlogisticstrackinggetAPIResponse struct {
	model.CommonResponse
	AlibabaorderlogisticstrackinggetAPIResponseModel
}

AlibabaorderlogisticstrackinggetAPIResponse 阿里巴巴订单物流轨迹查询 API返回值 alibaba.order.logistics.tracking.get

阿里巴巴订单物流轨迹查询

type AlibabaorderlogisticstrackinggetAPIResponseModel added in v1.3.1

type AlibabaorderlogisticstrackinggetAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_order_logistics_tracking_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// logistics  tracking List
	TrackingList []LogisticsTracking `json:"tracking_list,omitempty" xml:"tracking_list>logistics_tracking,omitempty"`
}

AlibabaorderlogisticstrackinggetAPIResponseModel is 阿里巴巴订单物流轨迹查询 成功返回结果

type AlibabaorderpayresultqueryAPIRequest added in v1.3.1

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

AlibabaorderpayresultqueryAPIRequest alibaba查询订单支付结果 API请求 alibaba.order.pay.result.query

alibaba查询订单支付结果

func NewAlibabaorderpayresultqueryRequest added in v1.3.1

func NewAlibabaorderpayresultqueryRequest() *AlibabaorderpayresultqueryAPIRequest

NewAlibabaorderpayresultqueryRequest 初始化AlibabaorderpayresultqueryAPIRequest对象

func (AlibabaorderpayresultqueryAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabaorderpayresultqueryAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaorderpayresultqueryAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaorderpayresultqueryAPIRequest) GetRawParams added in v1.3.1

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

func (AlibabaorderpayresultqueryAPIRequest) GetTradeId added in v1.3.1

GetTradeId TradeId Getter

func (*AlibabaorderpayresultqueryAPIRequest) SetTradeId added in v1.3.1

func (r *AlibabaorderpayresultqueryAPIRequest) SetTradeId(_tradeId int64) error

SetTradeId is TradeId Setter order id

type AlibabaorderpayresultqueryAPIResponse added in v1.3.1

type AlibabaorderpayresultqueryAPIResponse struct {
	model.CommonResponse
	AlibabaorderpayresultqueryAPIResponseModel
}

AlibabaorderpayresultqueryAPIResponse alibaba查询订单支付结果 API返回值 alibaba.order.pay.result.query

alibaba查询订单支付结果

type AlibabaorderpayresultqueryAPIResponseModel added in v1.3.1

type AlibabaorderpayresultqueryAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_order_pay_result_query_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// pay response
	Value *CashierPayResponse `json:"value,omitempty" xml:"value,omitempty"`
}

AlibabaorderpayresultqueryAPIResponseModel is alibaba查询订单支付结果 成功返回结果

type AlibabashippingfreightcalculateAPIRequest added in v1.3.1

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

AlibabashippingfreightcalculateAPIRequest 阿里巴巴商品运费计算查询接口 API请求 alibaba.shipping.freight.calculate

阿里巴巴商品运费计算查询接口

func NewAlibabashippingfreightcalculateRequest added in v1.3.1

func NewAlibabashippingfreightcalculateRequest() *AlibabashippingfreightcalculateAPIRequest

NewAlibabashippingfreightcalculateRequest 初始化AlibabashippingfreightcalculateAPIRequest对象

func (AlibabashippingfreightcalculateAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabashippingfreightcalculateAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabashippingfreightcalculateAPIRequest) GetParamFreightTemplateRequest added in v1.3.1

func (r AlibabashippingfreightcalculateAPIRequest) GetParamFreightTemplateRequest() *FreightTemplateRequest

GetParamFreightTemplateRequest ParamFreightTemplateRequest Getter

func (AlibabashippingfreightcalculateAPIRequest) GetRawParams added in v1.3.1

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

func (*AlibabashippingfreightcalculateAPIRequest) SetParamFreightTemplateRequest added in v1.3.1

func (r *AlibabashippingfreightcalculateAPIRequest) SetParamFreightTemplateRequest(_paramFreightTemplateRequest *FreightTemplateRequest) error

SetParamFreightTemplateRequest is ParamFreightTemplateRequest Setter {}

type AlibabashippingfreightcalculateAPIResponse added in v1.3.1

type AlibabashippingfreightcalculateAPIResponse struct {
	model.CommonResponse
	AlibabashippingfreightcalculateAPIResponseModel
}

AlibabashippingfreightcalculateAPIResponse 阿里巴巴商品运费计算查询接口 API返回值 alibaba.shipping.freight.calculate

阿里巴巴商品运费计算查询接口

type AlibabashippingfreightcalculateAPIResponseModel added in v1.3.1

type AlibabashippingfreightcalculateAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_shipping_freight_calculate_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// pojo
	Values []Value `json:"values,omitempty" xml:"values>value,omitempty"`
}

AlibabashippingfreightcalculateAPIResponseModel is 阿里巴巴商品运费计算查询接口 成功返回结果

type CashierPayResponse

type CashierPayResponse struct {
	// Payment url
	PayUrl string `json:"pay_url,omitempty" xml:"pay_url,omitempty"`
	// Payment failed reason code
	ReasonCode string `json:"reason_code,omitempty" xml:"reason_code,omitempty"`
	// Payment failed reason message
	ReasonMessage string `json:"reason_message,omitempty" xml:"reason_message,omitempty"`
	// UNPAY Unpaid order <br /> PAYING The order is being paid and it needs to wait for about 1 minute,<br /> PAY_SUCCESS Order payment is successful,<br /> PAY_FAILED Order payment failed
	Status string `json:"status,omitempty" xml:"status,omitempty"`
	// order id
	TradeId int64 `json:"trade_id,omitempty" xml:"trade_id,omitempty"`
}

CashierPayResponse 结构体

type DistributionSaleProduct

type DistributionSaleProduct struct {
	// product keywords
	Keywords []string `json:"keywords,omitempty" xml:"keywords>string,omitempty"`
	// Ladder delivery List
	LadderPeriodList []LadderPeriod `json:"ladder_period_list,omitempty" xml:"ladder_period_list>ladder_period,omitempty"`
	// product sku list
	ProductSkuList []ProductSku `json:"product_sku_list,omitempty" xml:"product_sku_list>product_sku,omitempty"`
	// product image list
	ImageUrlList []string `json:"image_url_list,omitempty" xml:"image_url_list>string,omitempty"`
	// product description html,<br /> It is the transferred string, the applicable party needs to reverse the string
	Description string `json:"description,omitempty" xml:"description,omitempty"`
	// product detail Url
	DetailUrl string `json:"detail_url,omitempty" xml:"detail_url,omitempty"`
	// main image url
	MainImageUrl string `json:"main_image_url,omitempty" xml:"main_image_url,omitempty"`
	// product name
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// price Range
	PriceRange string `json:"price_range,omitempty" xml:"price_range,omitempty"`
	// Store Id
	ECompanyId string `json:"e_company_id,omitempty" xml:"e_company_id,omitempty"`
	// the top category name
	TopCategoryName string `json:"top_category_name,omitempty" xml:"top_category_name,omitempty"`
	// the leaf category name
	LeafCategoryName string `json:"leaf_category_name,omitempty" xml:"leaf_category_name,omitempty"`
	// min order quantity and Price
	MoqAndPrice *MoqAndPrice `json:"moq_and_price,omitempty" xml:"moq_and_price,omitempty"`
	// product id
	ProductId int64 `json:"product_id,omitempty" xml:"product_id,omitempty"`
	// Determine whether this product can be ordered
	IsCanPlaceOrder bool `json:"is_can_place_order,omitempty" xml:"is_can_place_order,omitempty"`
}

DistributionSaleProduct 结构体

type DistributionSaleProductRequest

type DistributionSaleProductRequest struct {
	// productId List,max size is 10
	ProductIds []int64 `json:"product_ids,omitempty" xml:"product_ids>int64,omitempty"`
}

DistributionSaleProductRequest 结构体

type DivisionInfoDto

type DivisionInfoDto struct {
	// City Code
	Code string `json:"code,omitempty" xml:"code,omitempty"`
	// City Name
	Name string `json:"name,omitempty" xml:"name,omitempty"`
}

DivisionInfoDto 结构体

type FreightTemplateRequest

type FreightTemplateRequest struct {
	// destination country  ISO 3166-2
	DestinationCountry string `json:"destination_country,omitempty" xml:"destination_country,omitempty"`
	// destination zip code
	ZipCode string `json:"zip_code,omitempty" xml:"zip_code,omitempty"`
	// product id
	ProductId int64 `json:"product_id,omitempty" xml:"product_id,omitempty"`
	// quantity
	Quantity int64 `json:"quantity,omitempty" xml:"quantity,omitempty"`
}

FreightTemplateRequest 结构体

type Inventory

type Inventory struct {
	// dispatch country
	DispatchCountry string `json:"dispatch_country,omitempty" xml:"dispatch_country,omitempty"`
	// store code
	StoreCode string `json:"store_code,omitempty" xml:"store_code,omitempty"`
	// inventory count
	Inventory int64 `json:"inventory,omitempty" xml:"inventory,omitempty"`
}

Inventory 结构体

type LadderPeriod

type LadderPeriod struct {
	// max quantity
	MaxQuantity int64 `json:"max_quantity,omitempty" xml:"max_quantity,omitempty"`
	// min quantity
	MinQuantity int64 `json:"min_quantity,omitempty" xml:"min_quantity,omitempty"`
	// Delivery time
	ProcessPeriod int64 `json:"process_period,omitempty" xml:"process_period,omitempty"`
}

LadderPeriod 结构体

type LadderPrice

type LadderPrice struct {
	// price
	Price float64 `json:"price,omitempty" xml:"price,omitempty"`
	// If it is -1, it means the maximum
	MaxQuantity int64 `json:"max_quantity,omitempty" xml:"max_quantity,omitempty"`
	// min quantity
	MinQuantity int64 `json:"min_quantity,omitempty" xml:"min_quantity,omitempty"`
}

LadderPrice 结构体

type LogisticsDetail

type LogisticsDetail struct {
	// For BuyNow orders, use the value shown in the vendorCode field from the shipping cost template API; non-BuyNow orders don’t need to provide this information.    alibaba.shipping.freight.calculate  's vender_code
	CarrierCode string `json:"carrier_code,omitempty" xml:"carrier_code,omitempty"`
	// shipment address
	ShipmentAddress *Address `json:"shipment_address,omitempty" xml:"shipment_address,omitempty"`
}

LogisticsDetail 结构体

type LogisticsProduct

type LogisticsProduct struct {
	// Product Id
	ProductId int64 `json:"product_id,omitempty" xml:"product_id,omitempty"`
	// quantity
	Quantity int64 `json:"quantity,omitempty" xml:"quantity,omitempty"`
	// Sku ID
	SkuId int64 `json:"sku_id,omitempty" xml:"sku_id,omitempty"`
}

LogisticsProduct 结构体

type LogisticsSolution

type LogisticsSolution struct {
	// delivery time (days)
	DeliveryTime string `json:"delivery_time,omitempty" xml:"delivery_time,omitempty"`
	// destination country
	DestinationCountry string `json:"destination_country,omitempty" xml:"destination_country,omitempty"`
	// dispatch country
	DispatchCountry string `json:"dispatch_country,omitempty" xml:"dispatch_country,omitempty"`
	// shipping type
	ShippingType string `json:"shipping_type,omitempty" xml:"shipping_type,omitempty"`
	// trade term
	TradeTerm string `json:"trade_term,omitempty" xml:"trade_term,omitempty"`
	// vendor code
	VendorCode string `json:"vendor_code,omitempty" xml:"vendor_code,omitempty"`
	// vendor name
	VendorName string `json:"vendor_name,omitempty" xml:"vendor_name,omitempty"`
	// shipping fee
	Fee float64 `json:"fee,omitempty" xml:"fee,omitempty"`
}

LogisticsSolution 结构体

type LogisticsTracking

type LogisticsTracking struct {
	// event list
	EventList []TrackingEvent `json:"event_list,omitempty" xml:"event_list>tracking_event,omitempty"`
	// carrier
	Carrier string `json:"carrier,omitempty" xml:"carrier,omitempty"`
	// The latest logistics event code
	CurrentEventCode string `json:"current_event_code,omitempty" xml:"current_event_code,omitempty"`
	// tracking number
	TrackingNumber string `json:"tracking_number,omitempty" xml:"tracking_number,omitempty"`
	// tracking url
	TrackingUrl string `json:"tracking_url,omitempty" xml:"tracking_url,omitempty"`
}

LogisticsTracking 结构体

type MoqAndPrice

type MoqAndPrice struct {
	// min order quantity
	MinOrderQuantity string `json:"min_order_quantity,omitempty" xml:"min_order_quantity,omitempty"`
	// min order quantity unit
	Unit string `json:"unit,omitempty" xml:"unit,omitempty"`
	// min order quantity  delivery period
	MoqDeliveryPeriod int64 `json:"moq_delivery_period,omitempty" xml:"moq_delivery_period,omitempty"`
	// min order quantity unit price
	MoqUnitPrice float64 `json:"moq_unit_price,omitempty" xml:"moq_unit_price,omitempty"`
}

MoqAndPrice 结构体

type MultiFreightTemplateRequest

type MultiFreightTemplateRequest struct {
	// Product List
	LogisticsProductList []LogisticsProduct `json:"logistics_product_list,omitempty" xml:"logistics_product_list>logistics_product,omitempty"`
	// Get from alibaba.dropshipping.product.get
	ECompanyId string `json:"e_company_id,omitempty" xml:"e_company_id,omitempty"`
	// Destination Country
	DestinationCountry string `json:"destination_country,omitempty" xml:"destination_country,omitempty"`
	// Shipping address
	Address *AddressInfoDto `json:"address,omitempty" xml:"address,omitempty"`
}

MultiFreightTemplateRequest 结构体

type OrderCreateRequest

type OrderCreateRequest struct {
	// Product list
	ProductList []TradeEcologyOrderCreateProduct `json:"product_list,omitempty" xml:"product_list>trade_ecology_order_create_product,omitempty"`
	// Provide the order number corresponding to the 3rd party ISV
	ChannelReferId string `json:"channel_refer_id,omitempty" xml:"channel_refer_id,omitempty"`
	// Put the order number provided by the 3rd party platform and the name of the 3rd party platform. For example, if the order number is for a transaction made on Shopify, put “Shopify” and the order number. <br />  Platform Names can be case ignored:<br /> Shopify,CommerceHQ,WooCommerce,GrooveKart,BigCommerce
	Properties string `json:"properties,omitempty" xml:"properties,omitempty"`
	// order remark
	Remark string `json:"remark,omitempty" xml:"remark,omitempty"`
	// Logistics details
	LogisticsDetail *LogisticsDetail `json:"logistics_detail,omitempty" xml:"logistics_detail,omitempty"`
	// Payment details
	PaymentDetail *PaymentDetail `json:"payment_detail,omitempty" xml:"payment_detail,omitempty"`
}

OrderCreateRequest 结构体

type OrderCreateResponse

type OrderCreateResponse struct {
	// pay url
	PayUrl string `json:"pay_url,omitempty" xml:"pay_url,omitempty"`
	// order number
	TradeId string `json:"trade_id,omitempty" xml:"trade_id,omitempty"`
}

OrderCreateResponse 结构体

type OrderPayRequest

type OrderPayRequest struct {
	// Order numbers to be paid,max size is  10
	OrderIdList []int64 `json:"order_id_list,omitempty" xml:"order_id_list>int64,omitempty"`
	// HTTP request Header "accept-language"
	AcceptLanguage string `json:"accept_language,omitempty" xml:"accept_language,omitempty"`
	// Screen resolution of the device used by the buyer
	ScreenResolution string `json:"screen_resolution,omitempty" xml:"screen_resolution,omitempty"`
	// HTTP request header "User-Agent"
	UserAgent string `json:"user_agent,omitempty" xml:"user_agent,omitempty"`
	// Buyer's IP
	UserIp string `json:"user_ip,omitempty" xml:"user_ip,omitempty"`
	// The time stamp of the buyer's first registration as dropper
	IsvDropShipperRegistrationTime int64 `json:"isv_drop_shipper_registration_time,omitempty" xml:"isv_drop_shipper_registration_time,omitempty"`
	// is PC ? true/false, current only support pc
	IsPc bool `json:"is_pc,omitempty" xml:"is_pc,omitempty"`
}

OrderPayRequest 结构体

type PaymentDetail

type PaymentDetail struct {
	// shipment fee
	ShipmentFee string `json:"shipment_fee,omitempty" xml:"shipment_fee,omitempty"`
	// total amount
	TotalAmount string `json:"total_amount,omitempty" xml:"total_amount,omitempty"`
}

PaymentDetail 结构体

type Phone

type Phone struct {
	// fax area
	Area string `json:"area,omitempty" xml:"area,omitempty"`
	// fax country
	Country string `json:"country,omitempty" xml:"country,omitempty"`
	// fax number
	Number string `json:"number,omitempty" xml:"number,omitempty"`
}

Phone 结构体

type ProductSku

type ProductSku struct {
	// inventory list
	InventoryList []Inventory `json:"inventory_list,omitempty" xml:"inventory_list>inventory,omitempty"`
	// sku name value list
	SkuNameValueList []ProductSkuNameValue `json:"sku_name_value_list,omitempty" xml:"sku_name_value_list>product_sku_name_value,omitempty"`
	// ladder price list
	LadderPriceList []LadderPrice `json:"ladder_price_list,omitempty" xml:"ladder_price_list>ladder_price,omitempty"`
	// sku image url
	ImageUrl string `json:"image_url,omitempty" xml:"image_url,omitempty"`
	// sku id
	SkuId int64 `json:"sku_id,omitempty" xml:"sku_id,omitempty"`
}

ProductSku 结构体

type ProductSkuNameValue

type ProductSkuNameValue struct {
	// Attributes name
	AttrNameDesc string `json:"attr_name_desc,omitempty" xml:"attr_name_desc,omitempty"`
	// Attributes value
	AttrValueDesc string `json:"attr_value_desc,omitempty" xml:"attr_value_desc,omitempty"`
	// Attributes url
	AttrValueImage string `json:"attr_value_image,omitempty" xml:"attr_value_image,omitempty"`
	// Attributes name id
	AttrNameId int64 `json:"attr_name_id,omitempty" xml:"attr_name_id,omitempty"`
	// Attributes value id
	AttrValueId int64 `json:"attr_value_id,omitempty" xml:"attr_value_id,omitempty"`
}

ProductSkuNameValue 结构体

type TrackingEvent

type TrackingEvent struct {
	// event code
	EventCode string `json:"event_code,omitempty" xml:"event_code,omitempty"`
	// event location
	EventLocation string `json:"event_location,omitempty" xml:"event_location,omitempty"`
	// event name
	EventName string `json:"event_name,omitempty" xml:"event_name,omitempty"`
	// event time
	EventTime string `json:"event_time,omitempty" xml:"event_time,omitempty"`
}

TrackingEvent 结构体

type TradeEcologyOrderCreateProduct

type TradeEcologyOrderCreateProduct struct {
	// quantity
	Quantity string `json:"quantity,omitempty" xml:"quantity,omitempty"`
	// sku id
	SkuId string `json:"sku_id,omitempty" xml:"sku_id,omitempty"`
	// unit price
	UnitPriceStr string `json:"unit_price_str,omitempty" xml:"unit_price_str,omitempty"`
	// product id
	ProductId int64 `json:"product_id,omitempty" xml:"product_id,omitempty"`
}

TradeEcologyOrderCreateProduct 结构体

type Value

type Value struct {
	// shipping type
	ShippingType string `json:"shipping_type,omitempty" xml:"shipping_type,omitempty"`
	// trade term
	TradeTerm string `json:"trade_term,omitempty" xml:"trade_term,omitempty"`
	// dispatch country
	DispatchCountry string `json:"dispatch_country,omitempty" xml:"dispatch_country,omitempty"`
	// destination country
	DestinationCountry string `json:"destination_country,omitempty" xml:"destination_country,omitempty"`
	// vendor code
	VendorCode string `json:"vendor_code,omitempty" xml:"vendor_code,omitempty"`
	// vendor name
	VendorName string `json:"vendor_name,omitempty" xml:"vendor_name,omitempty"`
	// delivery time (days)
	DeliveryTime string `json:"delivery_time,omitempty" xml:"delivery_time,omitempty"`
	// shipping fee
	Fee float64 `json:"fee,omitempty" xml:"fee,omitempty"`
}

Value 结构体

Jump to

Keyboard shortcuts

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