icbudropshipping

package
v1.1.5 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

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 AlibabaBuynowOrderCreateAPIResponse

type AlibabaBuynowOrderCreateAPIResponse struct {
	model.CommonResponse
	AlibabaBuynowOrderCreateResponse
}

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

阿里巴巴买家下单接口

type AlibabaBuynowOrderCreateRequest

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

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

阿里巴巴买家下单接口

func NewAlibabaBuynowOrderCreateRequest

func NewAlibabaBuynowOrderCreateRequest() *AlibabaBuynowOrderCreateRequest

初始化AlibabaBuynowOrderCreateRequest对象

func (AlibabaBuynowOrderCreateRequest) GetApiMethodName

func (r AlibabaBuynowOrderCreateRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (AlibabaBuynowOrderCreateRequest) GetApiParams

func (r AlibabaBuynowOrderCreateRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (AlibabaBuynowOrderCreateRequest) GetParamOrderCreateRequest

func (r AlibabaBuynowOrderCreateRequest) GetParamOrderCreateRequest() *OrderCreateRequest

ParamOrderCreateRequest Getter

func (*AlibabaBuynowOrderCreateRequest) SetParamOrderCreateRequest

func (r *AlibabaBuynowOrderCreateRequest) SetParamOrderCreateRequest(paramOrderCreateRequest *OrderCreateRequest) error

ParamOrderCreateRequest Setter Order creation parameter

type AlibabaBuynowOrderCreateResponse

type AlibabaBuynowOrderCreateResponse 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 AlibabaDropshippingOrderPayAPIResponse

type AlibabaDropshippingOrderPayAPIResponse struct {
	model.CommonResponse
	AlibabaDropshippingOrderPayResponse
}

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

alibaba dropshipping 支付代扣

type AlibabaDropshippingOrderPayRequest

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

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

alibaba dropshipping 支付代扣

func NewAlibabaDropshippingOrderPayRequest

func NewAlibabaDropshippingOrderPayRequest() *AlibabaDropshippingOrderPayRequest

初始化AlibabaDropshippingOrderPayRequest对象

func (AlibabaDropshippingOrderPayRequest) GetApiMethodName

func (r AlibabaDropshippingOrderPayRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (AlibabaDropshippingOrderPayRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (AlibabaDropshippingOrderPayRequest) GetParamOrderPayRequest

func (r AlibabaDropshippingOrderPayRequest) GetParamOrderPayRequest() *OrderPayRequest

ParamOrderPayRequest Getter

func (*AlibabaDropshippingOrderPayRequest) SetParamOrderPayRequest

func (r *AlibabaDropshippingOrderPayRequest) SetParamOrderPayRequest(paramOrderPayRequest *OrderPayRequest) error

ParamOrderPayRequest Setter request model

type AlibabaDropshippingOrderPayResponse

type AlibabaDropshippingOrderPayResponse 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 AlibabaDropshippingProductGetAPIResponse

type AlibabaDropshippingProductGetAPIResponse struct {
	model.CommonResponse
	AlibabaDropshippingProductGetResponse
}

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

阿里巴巴dropshipping 产品信息获取

type AlibabaDropshippingProductGetRequest

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

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

阿里巴巴dropshipping 产品信息获取

func NewAlibabaDropshippingProductGetRequest

func NewAlibabaDropshippingProductGetRequest() *AlibabaDropshippingProductGetRequest

初始化AlibabaDropshippingProductGetRequest对象

func (AlibabaDropshippingProductGetRequest) GetApiMethodName

func (r AlibabaDropshippingProductGetRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (AlibabaDropshippingProductGetRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (AlibabaDropshippingProductGetRequest) GetParamDistributionSaleProductRequest

func (r AlibabaDropshippingProductGetRequest) GetParamDistributionSaleProductRequest() *DistributionSaleProductRequest

ParamDistributionSaleProductRequest Getter

func (*AlibabaDropshippingProductGetRequest) SetParamDistributionSaleProductRequest

func (r *AlibabaDropshippingProductGetRequest) SetParamDistributionSaleProductRequest(paramDistributionSaleProductRequest *DistributionSaleProductRequest) error

ParamDistributionSaleProductRequest Setter {}

type AlibabaDropshippingProductGetResponse

type AlibabaDropshippingProductGetResponse 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 AlibabaDropshippingTokenCreateAPIResponse

type AlibabaDropshippingTokenCreateAPIResponse struct {
	model.CommonResponse
	AlibabaDropshippingTokenCreateResponse
}

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

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

type AlibabaDropshippingTokenCreateRequest

type AlibabaDropshippingTokenCreateRequest struct {
	model.Params
}

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

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

func NewAlibabaDropshippingTokenCreateRequest

func NewAlibabaDropshippingTokenCreateRequest() *AlibabaDropshippingTokenCreateRequest

初始化AlibabaDropshippingTokenCreateRequest对象

func (AlibabaDropshippingTokenCreateRequest) GetApiMethodName

func (r AlibabaDropshippingTokenCreateRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (AlibabaDropshippingTokenCreateRequest) GetApiParams

IRequest interface 方法, 获取API参数

type AlibabaDropshippingTokenCreateResponse

type AlibabaDropshippingTokenCreateResponse 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 AlibabaOrderFreightCalculateAPIResponse

type AlibabaOrderFreightCalculateAPIResponse struct {
	model.CommonResponse
	AlibabaOrderFreightCalculateResponse
}

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

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

type AlibabaOrderFreightCalculateRequest

type AlibabaOrderFreightCalculateRequest 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() *AlibabaOrderFreightCalculateRequest

初始化AlibabaOrderFreightCalculateRequest对象

func (AlibabaOrderFreightCalculateRequest) GetApiMethodName

func (r AlibabaOrderFreightCalculateRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (AlibabaOrderFreightCalculateRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (AlibabaOrderFreightCalculateRequest) GetParamMultiFreightTemplateRequest

func (r AlibabaOrderFreightCalculateRequest) GetParamMultiFreightTemplateRequest() *MultiFreightTemplateRequest

ParamMultiFreightTemplateRequest Getter

func (*AlibabaOrderFreightCalculateRequest) SetParamMultiFreightTemplateRequest

func (r *AlibabaOrderFreightCalculateRequest) SetParamMultiFreightTemplateRequest(paramMultiFreightTemplateRequest *MultiFreightTemplateRequest) error

ParamMultiFreightTemplateRequest Setter {}

type AlibabaOrderFreightCalculateResponse

type AlibabaOrderFreightCalculateResponse 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 AlibabaOrderLogisticsTrackingGetAPIResponse

type AlibabaOrderLogisticsTrackingGetAPIResponse struct {
	model.CommonResponse
	AlibabaOrderLogisticsTrackingGetResponse
}

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

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

type AlibabaOrderLogisticsTrackingGetRequest

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

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

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

func NewAlibabaOrderLogisticsTrackingGetRequest

func NewAlibabaOrderLogisticsTrackingGetRequest() *AlibabaOrderLogisticsTrackingGetRequest

初始化AlibabaOrderLogisticsTrackingGetRequest对象

func (AlibabaOrderLogisticsTrackingGetRequest) GetApiMethodName

func (r AlibabaOrderLogisticsTrackingGetRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (AlibabaOrderLogisticsTrackingGetRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (AlibabaOrderLogisticsTrackingGetRequest) GetTradeId

TradeId Getter

func (*AlibabaOrderLogisticsTrackingGetRequest) SetTradeId

func (r *AlibabaOrderLogisticsTrackingGetRequest) SetTradeId(tradeId int64) error

TradeId Setter order id

type AlibabaOrderLogisticsTrackingGetResponse

type AlibabaOrderLogisticsTrackingGetResponse 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 AlibabaOrderPayResultQueryAPIResponse

type AlibabaOrderPayResultQueryAPIResponse struct {
	model.CommonResponse
	AlibabaOrderPayResultQueryResponse
}

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

alibaba查询订单支付结果

type AlibabaOrderPayResultQueryRequest

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

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

alibaba查询订单支付结果

func NewAlibabaOrderPayResultQueryRequest

func NewAlibabaOrderPayResultQueryRequest() *AlibabaOrderPayResultQueryRequest

初始化AlibabaOrderPayResultQueryRequest对象

func (AlibabaOrderPayResultQueryRequest) GetApiMethodName

func (r AlibabaOrderPayResultQueryRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (AlibabaOrderPayResultQueryRequest) GetApiParams

func (r AlibabaOrderPayResultQueryRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (AlibabaOrderPayResultQueryRequest) GetTradeId

TradeId Getter

func (*AlibabaOrderPayResultQueryRequest) SetTradeId

func (r *AlibabaOrderPayResultQueryRequest) SetTradeId(tradeId int64) error

TradeId Setter order id

type AlibabaOrderPayResultQueryResponse

type AlibabaOrderPayResultQueryResponse 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 AlibabaShippingFreightCalculateAPIResponse

type AlibabaShippingFreightCalculateAPIResponse struct {
	model.CommonResponse
	AlibabaShippingFreightCalculateResponse
}

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

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

type AlibabaShippingFreightCalculateRequest

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

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

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

func NewAlibabaShippingFreightCalculateRequest

func NewAlibabaShippingFreightCalculateRequest() *AlibabaShippingFreightCalculateRequest

初始化AlibabaShippingFreightCalculateRequest对象

func (AlibabaShippingFreightCalculateRequest) GetApiMethodName

func (r AlibabaShippingFreightCalculateRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (AlibabaShippingFreightCalculateRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (AlibabaShippingFreightCalculateRequest) GetParamFreightTemplateRequest

func (r AlibabaShippingFreightCalculateRequest) GetParamFreightTemplateRequest() *FreightTemplateRequest

ParamFreightTemplateRequest Getter

func (*AlibabaShippingFreightCalculateRequest) SetParamFreightTemplateRequest

func (r *AlibabaShippingFreightCalculateRequest) SetParamFreightTemplateRequest(paramFreightTemplateRequest *FreightTemplateRequest) error

ParamFreightTemplateRequest Setter {}

type AlibabaShippingFreightCalculateResponse

type AlibabaShippingFreightCalculateResponse 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