Class: Aliexpress::Order

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

.extendsBuyerAcceptGoodsTime(params = {}) ⇒ Object

Note:

订单状态需处于“买家确认收货”及“非纠纷、非冻结”状态下可支持该操作。

一键延长买家收货时间 地址: gw.api.alibaba.com/dev/doc/intl/api.htm?ns=aliexpress.open&n=api.extendsBuyerAcceptGoodsTime&v=1


9
10
11
# File 'lib/aliexpress/order.rb', line 9

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

.findLoanListQuery(params = {}) ⇒ Object

查询订单放款信息 地址:gw.api.alibaba.com/dev/doc/intl/api.htm?ns=aliexpress.open&n=api.findLoanListQuery&v=1

@note: 目前只查询进入放款中的订单信息状态,未进入放款中订单暂未做内容兼容。


66
67
68
# File 'lib/aliexpress/order.rb', line 66

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

.findOrderBaseInfo(params = {}) ⇒ Object


37
38
39
# File 'lib/aliexpress/order.rb', line 37

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

.findOrderById(params = {}) ⇒ Object


74
75
76
# File 'lib/aliexpress/order.rb', line 74

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

.findOrderListQuery(params = {}) ⇒ Object

交易订单列表查询 地址:gw.api.alibaba.com/dev/doc/intl/api.htm?ns=aliexpress.open&n=api.findOrderListQuery&v=1

@note: 订单状态会多一个全新的值RISK_CONTROL 该值的含义是订单处于风控24小时中,从买家在线支付完成后开始,持续24小时。


82
83
84
# File 'lib/aliexpress/order.rb', line 82

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

.findOrderListSimpleQuery(params = {}) ⇒ Object


44
45
46
# File 'lib/aliexpress/order.rb', line 44

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

.findOrderReceiptInfo(params = {}) ⇒ Object

Parameters:

  • params (Hash) (defaults to: {})

    -


30
31
32
# File 'lib/aliexpress/order.rb', line 30

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

.findOrderTradeInfo(params = {}) ⇒ Object

Parameters:

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


17
18
19
# File 'lib/aliexpress/order.rb', line 17

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

.getOrderTradeInfoById(id = 0) ⇒ Object

根据订单 ID 获取订单的交易


22
23
24
# File 'lib/aliexpress/order.rb', line 22

def self.getOrderTradeInfoById(id = 0)
  findOrderTradeInfo orderId: id
end

.requestPaymentRelease(params = {}) ⇒ Object


51
52
53
# File 'lib/aliexpress/order.rb', line 51

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

.updateDeliveriedConfirmationFile(params = {}) ⇒ Object


58
59
60
# File 'lib/aliexpress/order.rb', line 58

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