aliexpresssumaitong

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

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
}

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

关务所需的申报清关字段

type AliexpressTaxationCalculateOpenQueryRequest

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

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

关务所需的申报清关字段

func NewAliexpressTaxationCalculateOpenQueryRequest

func NewAliexpressTaxationCalculateOpenQueryRequest() *AliexpressTaxationCalculateOpenQueryRequest

func (AliexpressTaxationCalculateOpenQueryRequest) GetApiMethodName

func (AliexpressTaxationCalculateOpenQueryRequest) GetApiParams

func (AliexpressTaxationCalculateOpenQueryRequest) GetOrderId

func (*AliexpressTaxationCalculateOpenQueryRequest) SetOrderId

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
}

平台固定参数获取 APIResponse aliexpress.taxation.platform.open.get

Aliexpress开放平台固定参数获取

type AliexpressTaxationPlatformOpenGetRequest

type AliexpressTaxationPlatformOpenGetRequest struct {
	model.Params
}

平台固定参数获取 APIRequest aliexpress.taxation.platform.open.get

Aliexpress开放平台固定参数获取

func NewAliexpressTaxationPlatformOpenGetRequest

func NewAliexpressTaxationPlatformOpenGetRequest() *AliexpressTaxationPlatformOpenGetRequest

func (AliexpressTaxationPlatformOpenGetRequest) GetApiMethodName

func (r AliexpressTaxationPlatformOpenGetRequest) GetApiMethodName() string

func (AliexpressTaxationPlatformOpenGetRequest) GetApiParams

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开放平台下单前置检查 APIResponse aliexpress.trade.order.open.check

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

type AliexpressTradeOrderOpenCheckRequest

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

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

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

func NewAliexpressTradeOrderOpenCheckRequest

func NewAliexpressTradeOrderOpenCheckRequest() *AliexpressTradeOrderOpenCheckRequest

func (AliexpressTradeOrderOpenCheckRequest) GetApiMethodName

func (r AliexpressTradeOrderOpenCheckRequest) GetApiMethodName() string

func (AliexpressTradeOrderOpenCheckRequest) GetApiParams

func (AliexpressTradeOrderOpenCheckRequest) GetParamClientInfo

func (r AliexpressTradeOrderOpenCheckRequest) GetParamClientInfo() *ClientInfo

func (AliexpressTradeOrderOpenCheckRequest) GetParamPreCreateOrderRequest

func (r AliexpressTradeOrderOpenCheckRequest) GetParamPreCreateOrderRequest() *PreCreateOrderRequest

func (*AliexpressTradeOrderOpenCheckRequest) SetParamClientInfo

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

func (*AliexpressTradeOrderOpenCheckRequest) SetParamPreCreateOrderRequest

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

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

type AliexpressTradeOrderOpenQueryAPIResponse

type AliexpressTradeOrderOpenQueryAPIResponse struct {
	model.CommonResponse
	AliexpressTradeOrderOpenQueryResponse
}

Aliexpress开放平台订单查询 APIResponse aliexpress.trade.order.open.query

Aliexpress开放平台订单信息查询

type AliexpressTradeOrderOpenQueryRequest

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

Aliexpress开放平台订单查询 APIRequest aliexpress.trade.order.open.query

Aliexpress开放平台订单信息查询

func NewAliexpressTradeOrderOpenQueryRequest

func NewAliexpressTradeOrderOpenQueryRequest() *AliexpressTradeOrderOpenQueryRequest

func (AliexpressTradeOrderOpenQueryRequest) GetApiMethodName

func (r AliexpressTradeOrderOpenQueryRequest) GetApiMethodName() string

func (AliexpressTradeOrderOpenQueryRequest) GetApiParams

func (AliexpressTradeOrderOpenQueryRequest) GetBizCode

func (AliexpressTradeOrderOpenQueryRequest) GetBuyerId

func (AliexpressTradeOrderOpenQueryRequest) GetOpenAppKey

func (r AliexpressTradeOrderOpenQueryRequest) GetOpenAppKey() string

func (AliexpressTradeOrderOpenQueryRequest) GetOrderIds

func (r AliexpressTradeOrderOpenQueryRequest) GetOrderIds() []int64

func (AliexpressTradeOrderOpenQueryRequest) GetOutIds

func (*AliexpressTradeOrderOpenQueryRequest) SetBizCode

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

func (*AliexpressTradeOrderOpenQueryRequest) SetBuyerId

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

func (*AliexpressTradeOrderOpenQueryRequest) SetOpenAppKey

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

func (*AliexpressTradeOrderOpenQueryRequest) SetOrderIds

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

func (*AliexpressTradeOrderOpenQueryRequest) SetOutIds

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

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

type ClientInfo

type ClientInfo struct {
	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 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,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 {
	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 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"`

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

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

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

	RequestTrace string `json:"request_trace,omitempty" xml:"request_trace,omitempty"`

	Success bool `json:"success,omitempty" xml:"success,omitempty"`

	Token string `json:"token,omitempty" xml:"token,omitempty"`
}

PreCheckResponse

type PreCreateOrderRequest

type PreCreateOrderRequest struct {
	Items []Item `json:"items,omitempty" xml:"items,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