icbudropshipping

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

ICBU-DropShipping model

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

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"`
	// Fax
	Fax *Phone `json:"fax,omitempty" xml:"fax,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"`
	// telephone
	Telephone *Phone `json:"telephone,omitempty" xml:"telephone,omitempty"`
	// zip
	Zip string `json:"zip,omitempty" xml:"zip,omitempty"`
}

Address

type AddressInfoDto

type AddressInfoDto struct {
	// Shipping address
	Address string `json:"address,omitempty" xml:"address,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"`
	// If any, please send it to us to make the freight more accurate.
	Zip string `json:"zip,omitempty" xml:"zip,omitempty"`
}

AddressInfoDto

type AlibabaBuynowOrderCreateAPIRequest added in v1.2.0

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

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

阿里巴巴买家下单接口

func NewAlibabaBuynowOrderCreateRequest

func NewAlibabaBuynowOrderCreateRequest() *AlibabaBuynowOrderCreateAPIRequest

初始化AlibabaBuynowOrderCreateAPIRequest对象

func (AlibabaBuynowOrderCreateAPIRequest) GetApiMethodName added in v1.2.0

func (r AlibabaBuynowOrderCreateAPIRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (AlibabaBuynowOrderCreateAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

func (AlibabaBuynowOrderCreateAPIRequest) GetParamOrderCreateRequest added in v1.2.0

func (r AlibabaBuynowOrderCreateAPIRequest) GetParamOrderCreateRequest() *OrderCreateRequest

ParamOrderCreateRequest Getter

func (*AlibabaBuynowOrderCreateAPIRequest) SetParamOrderCreateRequest added in v1.2.0

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

ParamOrderCreateRequest Setter Order creation parameter

type AlibabaBuynowOrderCreateAPIResponse

type AlibabaBuynowOrderCreateAPIResponse struct {
	model.CommonResponse
	AlibabaBuynowOrderCreateAPIResponseModel
}

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

阿里巴巴买家下单接口

type AlibabaBuynowOrderCreateAPIResponseModel added in v1.2.0

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

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

type AlibabaDropshippingOrderPayAPIRequest added in v1.2.0

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

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

alibaba dropshipping 支付代扣

func NewAlibabaDropshippingOrderPayRequest

func NewAlibabaDropshippingOrderPayRequest() *AlibabaDropshippingOrderPayAPIRequest

初始化AlibabaDropshippingOrderPayAPIRequest对象

func (AlibabaDropshippingOrderPayAPIRequest) GetApiMethodName added in v1.2.0

func (r AlibabaDropshippingOrderPayAPIRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (AlibabaDropshippingOrderPayAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

func (AlibabaDropshippingOrderPayAPIRequest) GetParamOrderPayRequest added in v1.2.0

func (r AlibabaDropshippingOrderPayAPIRequest) GetParamOrderPayRequest() *OrderPayRequest

ParamOrderPayRequest Getter

func (*AlibabaDropshippingOrderPayAPIRequest) SetParamOrderPayRequest added in v1.2.0

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

ParamOrderPayRequest Setter request model

type AlibabaDropshippingOrderPayAPIResponse

type AlibabaDropshippingOrderPayAPIResponse struct {
	model.CommonResponse
	AlibabaDropshippingOrderPayAPIResponseModel
}

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

alibaba dropshipping 支付代扣

type AlibabaDropshippingOrderPayAPIResponseModel added in v1.2.0

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

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

type AlibabaDropshippingProductGetAPIRequest added in v1.2.0

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

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

阿里巴巴dropshipping 产品信息获取

func NewAlibabaDropshippingProductGetRequest

func NewAlibabaDropshippingProductGetRequest() *AlibabaDropshippingProductGetAPIRequest

初始化AlibabaDropshippingProductGetAPIRequest对象

func (AlibabaDropshippingProductGetAPIRequest) GetApiMethodName added in v1.2.0

func (r AlibabaDropshippingProductGetAPIRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (AlibabaDropshippingProductGetAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

func (AlibabaDropshippingProductGetAPIRequest) GetParamDistributionSaleProductRequest added in v1.2.0

func (r AlibabaDropshippingProductGetAPIRequest) GetParamDistributionSaleProductRequest() *DistributionSaleProductRequest

ParamDistributionSaleProductRequest Getter

func (*AlibabaDropshippingProductGetAPIRequest) SetParamDistributionSaleProductRequest added in v1.2.0

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

ParamDistributionSaleProductRequest Setter {}

type AlibabaDropshippingProductGetAPIResponse

type AlibabaDropshippingProductGetAPIResponse struct {
	model.CommonResponse
	AlibabaDropshippingProductGetAPIResponseModel
}

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

阿里巴巴dropshipping 产品信息获取

type AlibabaDropshippingProductGetAPIResponseModel added in v1.2.0

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

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

type AlibabaDropshippingTokenCreateAPIRequest added in v1.2.0

type AlibabaDropshippingTokenCreateAPIRequest struct {
	model.Params
}

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

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

func NewAlibabaDropshippingTokenCreateRequest

func NewAlibabaDropshippingTokenCreateRequest() *AlibabaDropshippingTokenCreateAPIRequest

初始化AlibabaDropshippingTokenCreateAPIRequest对象

func (AlibabaDropshippingTokenCreateAPIRequest) GetApiMethodName added in v1.2.0

func (r AlibabaDropshippingTokenCreateAPIRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (AlibabaDropshippingTokenCreateAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

type AlibabaDropshippingTokenCreateAPIResponse

type AlibabaDropshippingTokenCreateAPIResponse struct {
	model.CommonResponse
	AlibabaDropshippingTokenCreateAPIResponseModel
}

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

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

type AlibabaDropshippingTokenCreateAPIResponseModel added in v1.2.0

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

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

type AlibabaOrderFreightCalculateAPIRequest added in v1.2.0

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

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

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

func NewAlibabaOrderFreightCalculateRequest

func NewAlibabaOrderFreightCalculateRequest() *AlibabaOrderFreightCalculateAPIRequest

初始化AlibabaOrderFreightCalculateAPIRequest对象

func (AlibabaOrderFreightCalculateAPIRequest) GetApiMethodName added in v1.2.0

func (r AlibabaOrderFreightCalculateAPIRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (AlibabaOrderFreightCalculateAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

func (AlibabaOrderFreightCalculateAPIRequest) GetParamMultiFreightTemplateRequest added in v1.2.0

func (r AlibabaOrderFreightCalculateAPIRequest) GetParamMultiFreightTemplateRequest() *MultiFreightTemplateRequest

ParamMultiFreightTemplateRequest Getter

func (*AlibabaOrderFreightCalculateAPIRequest) SetParamMultiFreightTemplateRequest added in v1.2.0

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

ParamMultiFreightTemplateRequest Setter {}

type AlibabaOrderFreightCalculateAPIResponse

type AlibabaOrderFreightCalculateAPIResponse struct {
	model.CommonResponse
	AlibabaOrderFreightCalculateAPIResponseModel
}

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

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

type AlibabaOrderFreightCalculateAPIResponseModel added in v1.2.0

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

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

type AlibabaOrderLogisticsTrackingGetAPIRequest added in v1.2.0

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

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

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

func NewAlibabaOrderLogisticsTrackingGetRequest

func NewAlibabaOrderLogisticsTrackingGetRequest() *AlibabaOrderLogisticsTrackingGetAPIRequest

初始化AlibabaOrderLogisticsTrackingGetAPIRequest对象

func (AlibabaOrderLogisticsTrackingGetAPIRequest) GetApiMethodName added in v1.2.0

IRequest interface 方法, 获取Api method

func (AlibabaOrderLogisticsTrackingGetAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

func (AlibabaOrderLogisticsTrackingGetAPIRequest) GetTradeId added in v1.2.0

TradeId Getter

func (*AlibabaOrderLogisticsTrackingGetAPIRequest) SetTradeId added in v1.2.0

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

TradeId Setter order id

type AlibabaOrderLogisticsTrackingGetAPIResponse

type AlibabaOrderLogisticsTrackingGetAPIResponse struct {
	model.CommonResponse
	AlibabaOrderLogisticsTrackingGetAPIResponseModel
}

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

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

type AlibabaOrderLogisticsTrackingGetAPIResponseModel added in v1.2.0

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

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

type AlibabaOrderPayResultQueryAPIRequest added in v1.2.0

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

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

alibaba查询订单支付结果

func NewAlibabaOrderPayResultQueryRequest

func NewAlibabaOrderPayResultQueryRequest() *AlibabaOrderPayResultQueryAPIRequest

初始化AlibabaOrderPayResultQueryAPIRequest对象

func (AlibabaOrderPayResultQueryAPIRequest) GetApiMethodName added in v1.2.0

func (r AlibabaOrderPayResultQueryAPIRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (AlibabaOrderPayResultQueryAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

func (AlibabaOrderPayResultQueryAPIRequest) GetTradeId added in v1.2.0

TradeId Getter

func (*AlibabaOrderPayResultQueryAPIRequest) SetTradeId added in v1.2.0

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

TradeId Setter order id

type AlibabaOrderPayResultQueryAPIResponse

type AlibabaOrderPayResultQueryAPIResponse struct {
	model.CommonResponse
	AlibabaOrderPayResultQueryAPIResponseModel
}

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

alibaba查询订单支付结果

type AlibabaOrderPayResultQueryAPIResponseModel added in v1.2.0

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

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

type AlibabaShippingFreightCalculateAPIRequest added in v1.2.0

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

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

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

func NewAlibabaShippingFreightCalculateRequest

func NewAlibabaShippingFreightCalculateRequest() *AlibabaShippingFreightCalculateAPIRequest

初始化AlibabaShippingFreightCalculateAPIRequest对象

func (AlibabaShippingFreightCalculateAPIRequest) GetApiMethodName added in v1.2.0

IRequest interface 方法, 获取Api method

func (AlibabaShippingFreightCalculateAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

func (AlibabaShippingFreightCalculateAPIRequest) GetParamFreightTemplateRequest added in v1.2.0

func (r AlibabaShippingFreightCalculateAPIRequest) GetParamFreightTemplateRequest() *FreightTemplateRequest

ParamFreightTemplateRequest Getter

func (*AlibabaShippingFreightCalculateAPIRequest) SetParamFreightTemplateRequest added in v1.2.0

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

ParamFreightTemplateRequest Setter {}

type AlibabaShippingFreightCalculateAPIResponse

type AlibabaShippingFreightCalculateAPIResponse struct {
	model.CommonResponse
	AlibabaShippingFreightCalculateAPIResponseModel
}

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

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

type AlibabaShippingFreightCalculateAPIResponseModel added in v1.2.0

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

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

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 {
	// Ladder delivery List
	LadderPeriodList []LadderPeriod `json:"ladder_period_list,omitempty" xml:"ladder_period_list>ladder_period,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"`
	// product id
	ProductId int64 `json:"product_id,omitempty" xml:"product_id,omitempty"`
	// product sku list
	ProductSkuList []ProductSku `json:"product_sku_list,omitempty" xml:"product_sku_list>product_sku,omitempty"`
	// product detail Url
	DetailUrl string `json:"detail_url,omitempty" xml:"detail_url,omitempty"`
	// min order quantity and Price
	MoqAndPrice *MoqAndPrice `json:"moq_and_price,omitempty" xml:"moq_and_price,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"`
	// Determine whether this product can be ordered
	IsCanPlaceOrder bool `json:"is_can_place_order,omitempty" xml:"is_can_place_order,omitempty"`
	// product keywords
	Keywords []string `json:"keywords,omitempty" xml:"keywords>string,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"`
	// product image list
	ImageUrlList []string `json:"image_url_list,omitempty" xml:"image_url_list>string,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"`
	// product id
	ProductId int64 `json:"product_id,omitempty" xml:"product_id,omitempty"`
	// quantity
	Quantity int64 `json:"quantity,omitempty" xml:"quantity,omitempty"`
	// destination zip code
	ZipCode string `json:"zip_code,omitempty" xml:"zip_code,omitempty"`
}

FreightTemplateRequest

type Inventory

type Inventory struct {
	// inventory count
	Inventory int64 `json:"inventory,omitempty" xml:"inventory,omitempty"`
	// store code
	StoreCode string `json:"store_code,omitempty" xml:"store_code,omitempty"`
	// dispatch country
	DispatchCountry string `json:"dispatch_country,omitempty" xml:"dispatch_country,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 fee
	Fee float64 `json:"fee,omitempty" xml:"fee,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"`
}

LogisticsSolution

type LogisticsTracking

type LogisticsTracking struct {
	// 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"`
	// event list
	EventList []TrackingEvent `json:"event_list,omitempty" xml:"event_list>tracking_event,omitempty"`
	// tracking number
	TrackingNumber string `json:"tracking_number,omitempty" xml:"tracking_number,omitempty"`
}

LogisticsTracking

type MoqAndPrice

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

MoqAndPrice

type MultiFreightTemplateRequest

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

MultiFreightTemplateRequest

type OrderCreateRequest

type OrderCreateRequest struct {
	// Provide the order number corresponding to the 3rd party ISV
	ChannelReferId string `json:"channel_refer_id,omitempty" xml:"channel_refer_id,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"`
	// Product list
	ProductList []TradeEcologyOrderCreateProduct `json:"product_list,omitempty" xml:"product_list>trade_ecology_order_create_product,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"`
}

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 {
	// HTTP request Header "accept-language"
	AcceptLanguage string `json:"accept_language,omitempty" xml:"accept_language,omitempty"`
	// is PC ? true/false, current only support pc
	IsPc bool `json:"is_pc,omitempty" xml:"is_pc,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"`
	// Order numbers to be paid,max size is  10
	OrderIdList []int64 `json:"order_id_list,omitempty" xml:"order_id_list>int64,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"`
}

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 {
	// sku image url
	ImageUrl string `json:"image_url,omitempty" xml:"image_url,omitempty"`
	// inventory list
	InventoryList []Inventory `json:"inventory_list,omitempty" xml:"inventory_list>inventory,omitempty"`
	// sku id
	SkuId int64 `json:"sku_id,omitempty" xml:"sku_id,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"`
}

ProductSku

type ProductSkuNameValue

type ProductSkuNameValue struct {
	// Attributes name
	AttrNameDesc string `json:"attr_name_desc,omitempty" xml:"attr_name_desc,omitempty"`
	// Attributes name id
	AttrNameId int64 `json:"attr_name_id,omitempty" xml:"attr_name_id,omitempty"`
	// Attributes value
	AttrValueDesc string `json:"attr_value_desc,omitempty" xml:"attr_value_desc,omitempty"`
	// Attributes value id
	AttrValueId int64 `json:"attr_value_id,omitempty" xml:"attr_value_id,omitempty"`
	// Attributes url
	AttrValueImage string `json:"attr_value_image,omitempty" xml:"attr_value_image,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 {
	// product id
	ProductId int64 `json:"product_id,omitempty" xml:"product_id,omitempty"`
	// 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"`
}

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"`
	// 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"`
	// shipping fee
	Fee float64 `json:"fee,omitempty" xml:"fee,omitempty"`
	// dispatch country
	DispatchCountry string `json:"dispatch_country,omitempty" xml:"dispatch_country,omitempty"`
	// delivery time (days)
	DeliveryTime string `json:"delivery_time,omitempty" xml:"delivery_time,omitempty"`
}

Value

Jump to

Keyboard shortcuts

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