aliexpresssumaitong

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

全球速卖通 model

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AliexpressTaxationCalculateOpenQueryAPIResponse

type AliexpressTaxationCalculateOpenQueryAPIResponse struct {
	model.CommonResponse
	AliexpressTaxationCalculateOpenQueryResponse
}

关务所需的申报清关字段 API返回值 aliexpress.taxation.calculate.open.query

关务所需的申报清关字段

type AliexpressTaxationCalculateOpenQueryRequest

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

关务所需的申报清关字段 API请求 aliexpress.taxation.calculate.open.query

关务所需的申报清关字段

func NewAliexpressTaxationCalculateOpenQueryRequest

func NewAliexpressTaxationCalculateOpenQueryRequest() *AliexpressTaxationCalculateOpenQueryRequest

初始化AliexpressTaxationCalculateOpenQueryRequest对象

func (AliexpressTaxationCalculateOpenQueryRequest) GetApiMethodName

IRequest interface 方法, 获取Api method

func (AliexpressTaxationCalculateOpenQueryRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (AliexpressTaxationCalculateOpenQueryRequest) GetOrderId

OrderId Getter

func (*AliexpressTaxationCalculateOpenQueryRequest) SetOrderId

OrderId Setter 主订单id

type AliexpressTaxationCalculateOpenQueryResponse

type AliexpressTaxationCalculateOpenQueryResponse struct {
	XMLName xml.Name `xml:"aliexpress_taxation_calculate_open_query_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回结果
	Result *ResponseDto `json:"result,omitempty" xml:"result,omitempty"`
}

关务所需的申报清关字段 成功返回结果

type AliexpressTaxationPlatformOpenGetAPIResponse

type AliexpressTaxationPlatformOpenGetAPIResponse struct {
	model.CommonResponse
	AliexpressTaxationPlatformOpenGetResponse
}

平台固定参数获取 API返回值 aliexpress.taxation.platform.open.get

Aliexpress开放平台固定参数获取

type AliexpressTaxationPlatformOpenGetRequest

type AliexpressTaxationPlatformOpenGetRequest struct {
	model.Params
}

平台固定参数获取 API请求 aliexpress.taxation.platform.open.get

Aliexpress开放平台固定参数获取

func NewAliexpressTaxationPlatformOpenGetRequest

func NewAliexpressTaxationPlatformOpenGetRequest() *AliexpressTaxationPlatformOpenGetRequest

初始化AliexpressTaxationPlatformOpenGetRequest对象

func (AliexpressTaxationPlatformOpenGetRequest) GetApiMethodName

func (r AliexpressTaxationPlatformOpenGetRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (AliexpressTaxationPlatformOpenGetRequest) GetApiParams

IRequest interface 方法, 获取API参数

type AliexpressTaxationPlatformOpenGetResponse

type AliexpressTaxationPlatformOpenGetResponse struct {
	XMLName xml.Name `xml:"aliexpress_taxation_platform_open_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回结果
	Result *ResponseDto `json:"result,omitempty" xml:"result,omitempty"`
}

平台固定参数获取 成功返回结果

type AliexpressTradeOrderOpenCheckAPIResponse

type AliexpressTradeOrderOpenCheckAPIResponse struct {
	model.CommonResponse
	AliexpressTradeOrderOpenCheckResponse
}

Aliexpress开放平台下单前置检查 API返回值 aliexpress.trade.order.open.check

Aliexpress开放平台下单前通过下单入参获取token

type AliexpressTradeOrderOpenCheckRequest

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

Aliexpress开放平台下单前置检查 API请求 aliexpress.trade.order.open.check

Aliexpress开放平台下单前通过下单入参获取token

func NewAliexpressTradeOrderOpenCheckRequest

func NewAliexpressTradeOrderOpenCheckRequest() *AliexpressTradeOrderOpenCheckRequest

初始化AliexpressTradeOrderOpenCheckRequest对象

func (AliexpressTradeOrderOpenCheckRequest) GetApiMethodName

func (r AliexpressTradeOrderOpenCheckRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (AliexpressTradeOrderOpenCheckRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (AliexpressTradeOrderOpenCheckRequest) GetParamClientInfo

func (r AliexpressTradeOrderOpenCheckRequest) GetParamClientInfo() *ClientInfo

ParamClientInfo Getter

func (AliexpressTradeOrderOpenCheckRequest) GetParamPreCreateOrderRequest

func (r AliexpressTradeOrderOpenCheckRequest) GetParamPreCreateOrderRequest() *PreCreateOrderRequest

ParamPreCreateOrderRequest Getter

func (*AliexpressTradeOrderOpenCheckRequest) SetParamClientInfo

func (r *AliexpressTradeOrderOpenCheckRequest) SetParamClientInfo(paramClientInfo *ClientInfo) error

ParamClientInfo Setter 客户端信息

func (*AliexpressTradeOrderOpenCheckRequest) SetParamPreCreateOrderRequest

func (r *AliexpressTradeOrderOpenCheckRequest) SetParamPreCreateOrderRequest(paramPreCreateOrderRequest *PreCreateOrderRequest) error

ParamPreCreateOrderRequest Setter 预下单入参

type AliexpressTradeOrderOpenCheckResponse

type AliexpressTradeOrderOpenCheckResponse struct {
	XMLName xml.Name `xml:"aliexpress_trade_order_open_check_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 预下单返回值
	Result *PreCheckResponse `json:"result,omitempty" xml:"result,omitempty"`
}

Aliexpress开放平台下单前置检查 成功返回结果

type AliexpressTradeOrderOpenQueryAPIResponse

type AliexpressTradeOrderOpenQueryAPIResponse struct {
	model.CommonResponse
	AliexpressTradeOrderOpenQueryResponse
}

Aliexpress开放平台订单查询 API返回值 aliexpress.trade.order.open.query

Aliexpress开放平台订单信息查询

type AliexpressTradeOrderOpenQueryRequest

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

Aliexpress开放平台订单查询 API请求 aliexpress.trade.order.open.query

Aliexpress开放平台订单信息查询

func NewAliexpressTradeOrderOpenQueryRequest

func NewAliexpressTradeOrderOpenQueryRequest() *AliexpressTradeOrderOpenQueryRequest

初始化AliexpressTradeOrderOpenQueryRequest对象

func (AliexpressTradeOrderOpenQueryRequest) GetApiMethodName

func (r AliexpressTradeOrderOpenQueryRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (AliexpressTradeOrderOpenQueryRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (AliexpressTradeOrderOpenQueryRequest) GetBizCode

BizCode Getter

func (AliexpressTradeOrderOpenQueryRequest) GetBuyerId

BuyerId Getter

func (AliexpressTradeOrderOpenQueryRequest) GetOpenAppKey

func (r AliexpressTradeOrderOpenQueryRequest) GetOpenAppKey() string

OpenAppKey Getter

func (AliexpressTradeOrderOpenQueryRequest) GetOrderIds

func (r AliexpressTradeOrderOpenQueryRequest) GetOrderIds() []int64

OrderIds Getter

func (AliexpressTradeOrderOpenQueryRequest) GetOutIds

OutIds Getter

func (*AliexpressTradeOrderOpenQueryRequest) SetBizCode

func (r *AliexpressTradeOrderOpenQueryRequest) SetBizCode(bizCode string) error

BizCode Setter 业务编码

func (*AliexpressTradeOrderOpenQueryRequest) SetBuyerId

func (r *AliexpressTradeOrderOpenQueryRequest) SetBuyerId(buyerId int64) error

BuyerId Setter 买家用户id

func (*AliexpressTradeOrderOpenQueryRequest) SetOpenAppKey

func (r *AliexpressTradeOrderOpenQueryRequest) SetOpenAppKey(openAppKey string) error

OpenAppKey Setter 小程序appId

func (*AliexpressTradeOrderOpenQueryRequest) SetOrderIds

func (r *AliexpressTradeOrderOpenQueryRequest) SetOrderIds(orderIds []int64) error

OrderIds Setter 订单号

func (*AliexpressTradeOrderOpenQueryRequest) SetOutIds

func (r *AliexpressTradeOrderOpenQueryRequest) SetOutIds(outIds []string) error

OutIds Setter 外部订单号

type AliexpressTradeOrderOpenQueryResponse

type AliexpressTradeOrderOpenQueryResponse struct {
	XMLName xml.Name `xml:"aliexpress_trade_order_open_query_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 订单查询接口返回值
	Result *OrderQueryResponse `json:"result,omitempty" xml:"result,omitempty"`
}

Aliexpress开放平台订单查询 成功返回结果

type ClientInfo

type ClientInfo struct {
	// 小程序appId
	OpenAppId string `json:"open_app_id,omitempty" xml:"open_app_id,omitempty"`
	// 客户端业务码
	OpenBizCode string `json:"open_biz_code,omitempty" xml:"open_biz_code,omitempty"`
}

ClientInfo

type Currency

type Currency struct {
	// 交易币种编码
	CurrencyCode string `json:"currency_code,omitempty" xml:"currency_code,omitempty"`
}

Currency

type ErrorCode

type ErrorCode struct {
	// 错误展示信息
	DisplayMessage string `json:"display_message,omitempty" xml:"display_message,omitempty"`
	// 错误码key
	Key string `json:"key,omitempty" xml:"key,omitempty"`
	// 错误详情
	LogMessage string `json:"log_message,omitempty" xml:"log_message,omitempty"`
}

ErrorCode

type ExtraMap

type ExtraMap struct {
	// 支付收单号
	PaymentId string `json:"payment_id,omitempty" xml:"payment_id,omitempty"`
	// 订单状态
	OrderStatus string `json:"order_status,omitempty" xml:"order_status,omitempty"`
}

ExtraMap

type HjTaxCalculateResultDto

type HjTaxCalculateResultDto struct {
	// 交易行计税结果
	Lines []Lines `json:"lines,omitempty" xml:"lines>lines,omitempty"`
	// 交易币种
	Currency *Currency `json:"currency,omitempty" xml:"currency,omitempty"`
	// 币种转欧元汇率
	ExchangeRate string `json:"exchange_rate,omitempty" xml:"exchange_rate,omitempty"`
}

HjTaxCalculateResultDto

type Item

type Item struct {
	// 商品id
	ItemId int64 `json:"item_id,omitempty" xml:"item_id,omitempty"`
	// 商品价格
	Price float64 `json:"price,omitempty" xml:"price,omitempty"`
	// 数量
	Quantity int64 `json:"quantity,omitempty" xml:"quantity,omitempty"`
	// skuId
	SkuId int64 `json:"sku_id,omitempty" xml:"sku_id,omitempty"`
}

Item

type Lines

type Lines struct {
	// 商品数量
	Quantity string `json:"quantity,omitempty" xml:"quantity,omitempty"`
	// 商品未含税总价
	OrderTaxExcludedAmount string `json:"order_tax_excluded_amount,omitempty" xml:"order_tax_excluded_amount,omitempty"`
	// 商品运费总价
	DeliveryAmount string `json:"delivery_amount,omitempty" xml:"delivery_amount,omitempty"`
	// 商品税金总价
	OrderTaxAmount string `json:"order_tax_amount,omitempty" xml:"order_tax_amount,omitempty"`
	// 运费税金总价
	DeliveryTaxAmount string `json:"delivery_tax_amount,omitempty" xml:"delivery_tax_amount,omitempty"`
	// 商品税率
	TaxRates []string `json:"tax_rates,omitempty" xml:"tax_rates>string,omitempty"`
	// 运费税率
	DeliveryTaxRates []string `json:"delivery_tax_rates,omitempty" xml:"delivery_tax_rates>string,omitempty"`
	// 子订单号id
	SubOrderId string `json:"sub_order_id,omitempty" xml:"sub_order_id,omitempty"`
}

Lines

type Order

type Order struct {
	// 订单扩展字段
	ExtraParams *ExtraMap `json:"extra_params,omitempty" xml:"extra_params,omitempty"`
	// 订单号
	OrderId int64 `json:"order_id,omitempty" xml:"order_id,omitempty"`
	// 子订单信息
	OrderLines []OrderLine `json:"order_lines,omitempty" xml:"order_lines>order_line,omitempty"`
	// 外部订单号
	OutId string `json:"out_id,omitempty" xml:"out_id,omitempty"`
}

Order

type OrderLine

type OrderLine struct {
	// 子订单扩展字段
	ExtraParams string `json:"extra_params,omitempty" xml:"extra_params,omitempty"`
	// 子订单号
	OrderLineId int64 `json:"order_line_id,omitempty" xml:"order_line_id,omitempty"`
}

OrderLine

type OrderQueryResponse

type OrderQueryResponse struct {
	// 错误提示信息
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
	// 订单信息
	Orders []Order `json:"orders,omitempty" xml:"orders>order,omitempty"`
	// 接口调用结果
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

OrderQueryResponse

type PlatformParameterDto

type PlatformParameterDto struct {
	// 发货人/平台公司名称
	CompanyName string `json:"company_name,omitempty" xml:"company_name,omitempty"`
	// 发货人/平台联系人姓名
	ContactorName string `json:"contactor_name,omitempty" xml:"contactor_name,omitempty"`
	// 发货人/平台国家
	Country string `json:"country,omitempty" xml:"country,omitempty"`
	// 发货人/平台详细地址
	Address string `json:"address,omitempty" xml:"address,omitempty"`
	// 发货人/平台城市
	City string `json:"city,omitempty" xml:"city,omitempty"`
	// ISO国家编码
	CountryCode string `json:"country_code,omitempty" xml:"country_code,omitempty"`
	// 发货人/平台电话
	ContactNumber string `json:"contact_number,omitempty" xml:"contact_number,omitempty"`
	// 发货人/平台邮箱
	EmailAddress string `json:"email_address,omitempty" xml:"email_address,omitempty"`
	// IOSS 平台税号
	IossNumber string `json:"ioss_number,omitempty" xml:"ioss_number,omitempty"`
}

PlatformParameterDto

type PreCheckResponse

type PreCheckResponse struct {
	// 错误码
	ErrorCode *ErrorCode `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// 错误信息
	Msg string `json:"msg,omitempty" xml:"msg,omitempty"`
	// 请求traceId
	RequestTrace string `json:"request_trace,omitempty" xml:"request_trace,omitempty"`
	// 请求是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
	// 返回的token
	Token string `json:"token,omitempty" xml:"token,omitempty"`
}

PreCheckResponse

type PreCreateOrderRequest

type PreCreateOrderRequest struct {
	// 商品信息
	Items []Item `json:"items,omitempty" xml:"items>item,omitempty"`
}

PreCreateOrderRequest

type ResponseDto

type ResponseDto struct {
	// 数据
	Data *HjTaxCalculateResultDto `json:"data,omitempty" xml:"data,omitempty"`
	// 错误编码
	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// 成功标记
	Succeeded bool `json:"succeeded,omitempty" xml:"succeeded,omitempty"`
	// 错误信息
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
}

ResponseDto

Jump to

Keyboard shortcuts

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