Class: Aliexpress::Freight

Inherits:
Base
  • Object
show all
Defined in:
lib/aliexpress/freight.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

.calculateFreight(params = {}) ⇒ Object

Parameters:

  • 应用级参数 (Hash)
    • 参数比较多,就不列举了


23
24
25
# File 'lib/aliexpress/freight.rb', line 23

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

.getFreightSettingByTemplateId(id = 0) ⇒ Object


15
16
17
# File 'lib/aliexpress/freight.rb', line 15

def self.getFreightSettingByTemplateId(id = 0 )
  api_endpoint 'api.getFreightSettingByTemplateQuery', { templateId: id }
end

.listFreightTemplateObject


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

def self.listFreightTemplate
  api_endpoint 'api.listFreightTemplate'
end