aliexpresssumaitong

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 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.3.1

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

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

关务所需的申报清关字段

func NewAliexpresstaxationcalculateopenqueryRequest added in v1.3.1

func NewAliexpresstaxationcalculateopenqueryRequest() *AliexpresstaxationcalculateopenqueryAPIRequest

NewAliexpresstaxationcalculateopenqueryRequest 初始化AliexpresstaxationcalculateopenqueryAPIRequest对象

func (AliexpresstaxationcalculateopenqueryAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (AliexpresstaxationcalculateopenqueryAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (AliexpresstaxationcalculateopenqueryAPIRequest) GetOrderId added in v1.3.1

GetOrderId OrderId Getter

func (AliexpresstaxationcalculateopenqueryAPIRequest) GetRawParams added in v1.3.1

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

func (*AliexpresstaxationcalculateopenqueryAPIRequest) SetOrderId added in v1.3.1

SetOrderId is OrderId Setter 主订单id

type AliexpresstaxationcalculateopenqueryAPIResponse added in v1.3.1

type AliexpresstaxationcalculateopenqueryAPIResponse struct {
	model.CommonResponse
	AliexpresstaxationcalculateopenqueryAPIResponseModel
}

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

关务所需的申报清关字段

type AliexpresstaxationcalculateopenqueryAPIResponseModel added in v1.3.1

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.3.1

type AliexpresstaxationplatformopengetAPIRequest struct {
	model.Params
}

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

Aliexpress开放平台固定参数获取

func NewAliexpresstaxationplatformopengetRequest added in v1.3.1

func NewAliexpresstaxationplatformopengetRequest() *AliexpresstaxationplatformopengetAPIRequest

NewAliexpresstaxationplatformopengetRequest 初始化AliexpresstaxationplatformopengetAPIRequest对象

func (AliexpresstaxationplatformopengetAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (AliexpresstaxationplatformopengetAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (AliexpresstaxationplatformopengetAPIRequest) GetRawParams added in v1.3.1

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

type AliexpresstaxationplatformopengetAPIResponse added in v1.3.1

type AliexpresstaxationplatformopengetAPIResponse struct {
	model.CommonResponse
	AliexpresstaxationplatformopengetAPIResponseModel
}

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

Aliexpress开放平台固定参数获取

type AliexpresstaxationplatformopengetAPIResponseModel added in v1.3.1

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.3.1

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

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

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

func NewAliexpresstradeorderopencheckRequest added in v1.3.1

func NewAliexpresstradeorderopencheckRequest() *AliexpresstradeorderopencheckAPIRequest

NewAliexpresstradeorderopencheckRequest 初始化AliexpresstradeorderopencheckAPIRequest对象

func (AliexpresstradeorderopencheckAPIRequest) GetApiMethodName added in v1.3.1

func (r AliexpresstradeorderopencheckAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AliexpresstradeorderopencheckAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AliexpresstradeorderopencheckAPIRequest) GetParamClientInfo added in v1.3.1

func (r AliexpresstradeorderopencheckAPIRequest) GetParamClientInfo() *ClientInfo

GetParamClientInfo ParamClientInfo Getter

func (AliexpresstradeorderopencheckAPIRequest) GetParamPreCreateOrderRequest added in v1.3.1

func (r AliexpresstradeorderopencheckAPIRequest) GetParamPreCreateOrderRequest() *PreCreateOrderRequest

GetParamPreCreateOrderRequest ParamPreCreateOrderRequest Getter

func (AliexpresstradeorderopencheckAPIRequest) GetRawParams added in v1.3.1

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

func (*AliexpresstradeorderopencheckAPIRequest) SetParamClientInfo added in v1.3.1

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

SetParamClientInfo is ParamClientInfo Setter 客户端信息

func (*AliexpresstradeorderopencheckAPIRequest) SetParamPreCreateOrderRequest added in v1.3.1

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

SetParamPreCreateOrderRequest is ParamPreCreateOrderRequest Setter 预下单入参

type AliexpresstradeorderopencheckAPIResponse added in v1.3.1

type AliexpresstradeorderopencheckAPIResponse struct {
	model.CommonResponse
	AliexpresstradeorderopencheckAPIResponseModel
}

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

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

type AliexpresstradeorderopencheckAPIResponseModel added in v1.3.1

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.3.1

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

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

Aliexpress开放平台订单信息查询

func NewAliexpresstradeorderopenqueryRequest added in v1.3.1

func NewAliexpresstradeorderopenqueryRequest() *AliexpresstradeorderopenqueryAPIRequest

NewAliexpresstradeorderopenqueryRequest 初始化AliexpresstradeorderopenqueryAPIRequest对象

func (AliexpresstradeorderopenqueryAPIRequest) GetApiMethodName added in v1.3.1

func (r AliexpresstradeorderopenqueryAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AliexpresstradeorderopenqueryAPIRequest) GetApiParams added in v1.3.1

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

GetApiParams IRequest interface 方法, 获取API参数

func (AliexpresstradeorderopenqueryAPIRequest) GetBizCode added in v1.3.1

GetBizCode BizCode Getter

func (AliexpresstradeorderopenqueryAPIRequest) GetBuyerId added in v1.3.1

GetBuyerId BuyerId Getter

func (AliexpresstradeorderopenqueryAPIRequest) GetOpenAppKey added in v1.3.1

GetOpenAppKey OpenAppKey Getter

func (AliexpresstradeorderopenqueryAPIRequest) GetOrderIds added in v1.3.1

GetOrderIds OrderIds Getter

func (AliexpresstradeorderopenqueryAPIRequest) GetOutIds added in v1.3.1

GetOutIds OutIds Getter

func (AliexpresstradeorderopenqueryAPIRequest) GetRawParams added in v1.3.1

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

func (*AliexpresstradeorderopenqueryAPIRequest) SetBizCode added in v1.3.1

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

SetBizCode is BizCode Setter 业务编码

func (*AliexpresstradeorderopenqueryAPIRequest) SetBuyerId added in v1.3.1

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

SetBuyerId is BuyerId Setter 买家用户id

func (*AliexpresstradeorderopenqueryAPIRequest) SetOpenAppKey added in v1.3.1

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

SetOpenAppKey is OpenAppKey Setter 小程序appId

func (*AliexpresstradeorderopenqueryAPIRequest) SetOrderIds added in v1.3.1

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

SetOrderIds is OrderIds Setter 订单号

func (*AliexpresstradeorderopenqueryAPIRequest) SetOutIds added in v1.3.1

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

SetOutIds is OutIds Setter 外部订单号

type AliexpresstradeorderopenqueryAPIResponse added in v1.3.1

type AliexpresstradeorderopenqueryAPIResponse struct {
	model.CommonResponse
	AliexpresstradeorderopenqueryAPIResponseModel
}

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

Aliexpress开放平台订单信息查询

type AliexpresstradeorderopenqueryAPIResponseModel added in v1.3.1

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