Class: Aliexpress::Logistics

Inherits:
Base
  • Object
show all
Defined in:
lib/aliexpress/logistics.rb

Constant Summary

Constants inherited from Base

Base::ACCESS_TOKEN_KEY, Base::REFRESH_TOKEN_KEY

Class Method Summary collapse

Methods inherited from Base

api_endpoint

Class Method Details

.createWarehouseOrder(params = {}) ⇒ Object


64
65
66
# File 'lib/aliexpress/logistics.rb', line 64

def self.createWarehouseOrder(params = {})
  api_endpoint 'api.createWarehouseOrder', params
end

.getAllProvinceObject


8
9
10
# File 'lib/aliexpress/logistics.rb', line 8

def self.getAllProvince
  api_endpoint 'api.getAllProvince'
end

.getNextLevelAddressData(params = {}) ⇒ Object

Parameters:

  • params (Hash) (defaults to: {})
    • 应用参数


16
17
18
# File 'lib/aliexpress/logistics.rb', line 16

def self.getNextLevelAddressData(params = {})
  api_endpoint 'api.getNextLevelAddressData', params
end

.getOnlineLogisticsInfo(params = {}) ⇒ Object

获取邮政小包订单信息(线上物流发货专用接口) 地址: gw.api.alibaba.com/dev/doc/intl/api.htm?ns=aliexpress.open&n=api.getOnlineLogisticsInfo&v=1

Parameters:

  • params (Hash) (defaults to: {})
    • 应用参数


32
33
34
# File 'lib/aliexpress/logistics.rb', line 32

def self.getOnlineLogisticsInfo(params = {})
  api_endpoint 'api.getOnlineLogisticsInfo', params
end

.getOnlineLogisticsServiceListByOrderId(params = {}) ⇒ Object

Note:

以下包裹信息是不支持线上发货的,获取方案可能为空: 1、长宽高 加起来 不能大于90; 2、长宽高最大的一条边不能大于60cm; 3、包裹重量不能超过2KG; 4、已操作线下物流发货的订单。

根据订单号获取线上发货物流方案。 地址: gw.api.alibaba.com/dev/doc/intl/api.htm?ns=aliexpress.open&n=api.getOnlineLogisticsServiceListByOrderId&v=1


57
58
59
# File 'lib/aliexpress/logistics.rb', line 57

def self.getOnlineLogisticsServiceListByOrderId(params = {})
  api_endpoint 'api.getOnlineLogisticsServiceListByOrderId', params
end

.getPrintInfo(params = {}) ⇒ Object

获取线上发货标签(线上物流发货专用接口) 地址: gw.api.alibaba.com/dev/doc/intl/api.htm?ns=aliexpress.open&n=api.getPrintInfo&v=1

Parameters:

  • params (Hash) (defaults to: {})
    • 应用参数


48
49
50
# File 'lib/aliexpress/logistics.rb', line 48

def self.getPrintInfo(params = {})
  api_endpoint 'api.getPrintInfo', params
end

.getPrintInfos(params = {}) ⇒ Object

批量获取线上发货标签(线上物流发货专用接口) 地址: gw.api.alibaba.com/dev/doc/intl/api.htm?ns=aliexpress.open&n=api.getPrintInfos&v=1

Parameters:

  • params (Hash) (defaults to: {})
    • 应用参数


40
41
42
# File 'lib/aliexpress/logistics.rb', line 40

def self.getPrintInfos(params = {})
  api_endpoint 'api.getPrintInfos', params
end

.listLogisticsServiceObject


78
79
80
# File 'lib/aliexpress/logistics.rb', line 78

def self.listLogisticsService
  api_endpoint 'api.listLogisticsService'
end

.queryTrackingResult(params = {}) ⇒ Object


92
93
94
# File 'lib/aliexpress/logistics.rb', line 92

def self.queryTrackingResult(params = {})
  api_endpoint 'api.queryTrackingResult', params
end

.qureyWlbDomesticLogisticsCompanyObject


71
72
73
# File 'lib/aliexpress/logistics.rb', line 71

def self.qureyWlbDomesticLogisticsCompany
  api_endpoint 'api.qureyWlbDomesticLogisticsCompany'
end

.sellerModifiedShipment(params = {}) ⇒ Object

Parameters:

  • params (Hash) (defaults to: {})
    • 应用参数


24
25
26
# File 'lib/aliexpress/logistics.rb', line 24

def self.sellerModifiedShipment(params = {})
  api_endpoint 'api.sellerModifiedShipment', params
end

.sellerShipment(params = {}) ⇒ Object


85
86
87
# File 'lib/aliexpress/logistics.rb', line 85

def self.sellerShipment(params = {})
  api_endpoint 'api.sellerShipment', params
end