aliexpresssumaitong

package
v1.2.9 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package aliexpresssumaitong 包含全球速卖通相关结构体

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AliexpressTaxationCalculateOpenQueryAPIRequest added in v1.2.0

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

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

关务所需的申报清关字段

func NewAliexpressTaxationCalculateOpenQueryRequest

func NewAliexpressTaxationCalculateOpenQueryRequest() *AliexpressTaxationCalculateOpenQueryAPIRequest

NewAliexpressTaxationCalculateOpenQueryRequest 初始化AliexpressTaxationCalculateOpenQueryAPIRequest对象

func (AliexpressTaxationCalculateOpenQueryAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (AliexpressTaxationCalculateOpenQueryAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (AliexpressTaxationCalculateOpenQueryAPIRequest) GetOrderId added in v1.2.0

GetOrderId OrderId Getter

func (AliexpressTaxationCalculateOpenQueryAPIRequest) GetRawParams added in v1.2.8

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

func (*AliexpressTaxationCalculateOpenQueryAPIRequest) SetOrderId added in v1.2.0

SetOrderId is OrderId Setter 主订单id

type AliexpressTaxationCalculateOpenQueryAPIResponse

type AliexpressTaxationCalculateOpenQueryAPIResponse struct {
	model.CommonResponse
	AliexpressTaxationCalculateOpenQueryAPIResponseModel
}

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

关务所需的申报清关字段

type AliexpressTaxationCalculateOpenQueryAPIResponseModel added in v1.2.0

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

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

type AliexpressTaxationPlatformOpenGetAPIRequest added in v1.2.0

type AliexpressTaxationPlatformOpenGetAPIRequest struct {
	model.Params
}

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

Aliexpress开放平台固定参数获取

func NewAliexpressTaxationPlatformOpenGetRequest

func NewAliexpressTaxationPlatformOpenGetRequest() *AliexpressTaxationPlatformOpenGetAPIRequest

NewAliexpressTaxationPlatformOpenGetRequest 初始化AliexpressTaxationPlatformOpenGetAPIRequest对象

func (AliexpressTaxationPlatformOpenGetAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (AliexpressTaxationPlatformOpenGetAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (AliexpressTaxationPlatformOpenGetAPIRequest) GetRawParams added in v1.2.8

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

type AliexpressTaxationPlatformOpenGetAPIResponse

type AliexpressTaxationPlatformOpenGetAPIResponse struct {
	model.CommonResponse
	AliexpressTaxationPlatformOpenGetAPIResponseModel
}

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

Aliexpress开放平台固定参数获取

type AliexpressTaxationPlatformOpenGetAPIResponseModel added in v1.2.0

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

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

type AliexpressTradeOrderOpenCheckAPIRequest added in v1.2.0

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

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

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

func NewAliexpressTradeOrderOpenCheckRequest

func NewAliexpressTradeOrderOpenCheckRequest() *AliexpressTradeOrderOpenCheckAPIRequest

NewAliexpressTradeOrderOpenCheckRequest 初始化AliexpressTradeOrderOpenCheckAPIRequest对象

func (AliexpressTradeOrderOpenCheckAPIRequest) GetApiMethodName added in v1.2.0

func (r AliexpressTradeOrderOpenCheckAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AliexpressTradeOrderOpenCheckAPIRequest) GetApiParams added in v1.2.0

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

GetApiParams IRequest interface 方法, 获取API参数

func (AliexpressTradeOrderOpenCheckAPIRequest) GetParamClientInfo added in v1.2.0

func (r AliexpressTradeOrderOpenCheckAPIRequest) GetParamClientInfo() *ClientInfo

GetParamClientInfo ParamClientInfo Getter

func (AliexpressTradeOrderOpenCheckAPIRequest) GetParamPreCreateOrderRequest added in v1.2.0

func (r AliexpressTradeOrderOpenCheckAPIRequest) GetParamPreCreateOrderRequest() *PreCreateOrderRequest

GetParamPreCreateOrderRequest ParamPreCreateOrderRequest Getter

func (AliexpressTradeOrderOpenCheckAPIRequest) GetRawParams added in v1.2.8

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

func (*AliexpressTradeOrderOpenCheckAPIRequest) SetParamClientInfo added in v1.2.0

func (r *AliexpressTradeOrderOpenCheckAPIRequest) SetParamClientInfo(_paramClientInfo *ClientInfo) error

SetParamClientInfo is ParamClientInfo Setter 客户端信息

func (*AliexpressTradeOrderOpenCheckAPIRequest) SetParamPreCreateOrderRequest added in v1.2.0

func (r *AliexpressTradeOrderOpenCheckAPIRequest) SetParamPreCreateOrderRequest(_paramPreCreateOrderRequest *PreCreateOrderRequest) error

SetParamPreCreateOrderRequest is ParamPreCreateOrderRequest Setter 预下单入参

type AliexpressTradeOrderOpenCheckAPIResponse

type AliexpressTradeOrderOpenCheckAPIResponse struct {
	model.CommonResponse
	AliexpressTradeOrderOpenCheckAPIResponseModel
}

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

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

type AliexpressTradeOrderOpenCheckAPIResponseModel added in v1.2.0

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

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

type AliexpressTradeOrderOpenQueryAPIRequest added in v1.2.0

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

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

Aliexpress开放平台订单信息查询

func NewAliexpressTradeOrderOpenQueryRequest

func NewAliexpressTradeOrderOpenQueryRequest() *AliexpressTradeOrderOpenQueryAPIRequest

NewAliexpressTradeOrderOpenQueryRequest 初始化AliexpressTradeOrderOpenQueryAPIRequest对象

func (AliexpressTradeOrderOpenQueryAPIRequest) GetApiMethodName added in v1.2.0

func (r AliexpressTradeOrderOpenQueryAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AliexpressTradeOrderOpenQueryAPIRequest) GetApiParams added in v1.2.0

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

GetApiParams IRequest interface 方法, 获取API参数

func (AliexpressTradeOrderOpenQueryAPIRequest) GetBizCode added in v1.2.0

GetBizCode BizCode Getter

func (AliexpressTradeOrderOpenQueryAPIRequest) GetBuyerId added in v1.2.0

GetBuyerId BuyerId Getter

func (AliexpressTradeOrderOpenQueryAPIRequest) GetOpenAppKey added in v1.2.0

GetOpenAppKey OpenAppKey Getter

func (AliexpressTradeOrderOpenQueryAPIRequest) GetOrderIds added in v1.2.0

GetOrderIds OrderIds Getter

func (AliexpressTradeOrderOpenQueryAPIRequest) GetOutIds added in v1.2.0

GetOutIds OutIds Getter

func (AliexpressTradeOrderOpenQueryAPIRequest) GetRawParams added in v1.2.8

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

func (*AliexpressTradeOrderOpenQueryAPIRequest) SetBizCode added in v1.2.0

func (r *AliexpressTradeOrderOpenQueryAPIRequest) SetBizCode(_bizCode string) error

SetBizCode is BizCode Setter 业务编码

func (*AliexpressTradeOrderOpenQueryAPIRequest) SetBuyerId added in v1.2.0

func (r *AliexpressTradeOrderOpenQueryAPIRequest) SetBuyerId(_buyerId int64) error

SetBuyerId is BuyerId Setter 买家用户id

func (*AliexpressTradeOrderOpenQueryAPIRequest) SetOpenAppKey added in v1.2.0

func (r *AliexpressTradeOrderOpenQueryAPIRequest) SetOpenAppKey(_openAppKey string) error

SetOpenAppKey is OpenAppKey Setter 小程序appId

func (*AliexpressTradeOrderOpenQueryAPIRequest) SetOrderIds added in v1.2.0

func (r *AliexpressTradeOrderOpenQueryAPIRequest) SetOrderIds(_orderIds []int64) error

SetOrderIds is OrderIds Setter 订单号

func (*AliexpressTradeOrderOpenQueryAPIRequest) SetOutIds added in v1.2.0

func (r *AliexpressTradeOrderOpenQueryAPIRequest) SetOutIds(_outIds []string) error

SetOutIds is OutIds Setter 外部订单号

type AliexpressTradeOrderOpenQueryAPIResponse

type AliexpressTradeOrderOpenQueryAPIResponse struct {
	model.CommonResponse
	AliexpressTradeOrderOpenQueryAPIResponseModel
}

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

Aliexpress开放平台订单信息查询

type AliexpressTradeOrderOpenQueryAPIResponseModel added in v1.2.0

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

AliexpressTradeOrderOpenQueryAPIResponseModel is 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"`
	// 币种转欧元汇率
	ExchangeRate string `json:"exchange_rate,omitempty" xml:"exchange_rate,omitempty"`
	// 交易币种
	Currency *Currency `json:"currency,omitempty" xml:"currency,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 {
	// 商品税率
	TaxRates []string `json:"tax_rates,omitempty" xml:"tax_rates>string,omitempty"`
	// 运费税率
	DeliveryTaxRates []string `json:"delivery_tax_rates,omitempty" xml:"delivery_tax_rates>string,omitempty"`
	// 商品数量
	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"`
	// 子订单号id
	SubOrderId string `json:"sub_order_id,omitempty" xml:"sub_order_id,omitempty"`
}

Lines 结构体

type Order

type Order struct {
	// 子订单信息
	OrderLines []OrderLine `json:"order_lines,omitempty" xml:"order_lines>order_line,omitempty"`
	// 外部订单号
	OutId string `json:"out_id,omitempty" xml:"out_id,omitempty"`
	// 订单扩展字段
	ExtraParams *ExtraMap `json:"extra_params,omitempty" xml:"extra_params,omitempty"`
	// 订单号
	OrderId int64 `json:"order_id,omitempty" xml:"order_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 {
	// 订单信息
	Orders []Order `json:"orders,omitempty" xml:"orders>order,omitempty"`
	// 错误提示信息
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,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 {
	// 错误信息
	Msg string `json:"msg,omitempty" xml:"msg,omitempty"`
	// 请求traceId
	RequestTrace string `json:"request_trace,omitempty" xml:"request_trace,omitempty"`
	// 返回的token
	Token string `json:"token,omitempty" xml:"token,omitempty"`
	// 错误码
	ErrorCode *ErrorCode `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// 请求是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

PreCheckResponse 结构体

type PreCreateOrderRequest

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

PreCreateOrderRequest 结构体

type ResponseDto

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

ResponseDto 结构体

Jump to

Keyboard shortcuts

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