Class: Renren2::Interface::Pay
- Defined in:
- lib/renren2/interface/pay.rb
Overview
Pay Interface
Instance Method Summary collapse
-
#is_completed(order_id) ⇒ Object
查询某个用户在一个应用中一次消费是否完成.
-
#query_orders(order_numbers) ⇒ Object
根据订单号查询订单,支持批量查询.
-
#reg_order(order_id, amount, desc, opts = {}) ⇒ Object
预存入用户在应用中消费产生的订单数据,消费数额等信息.
-
#test_is_completed(order_id) ⇒ Object
查询某个用户在一个应用中一次消费是否完成.
-
#test_reg_order(order_id, amount, desc, opts = {}) ⇒ Object
预存入用户在应用中消费产生的订单数据,消费数额等信息.
Methods inherited from Base
#check_scope, #get, #initialize, #post, #request
Constructor Details
This class inherits a constructor from Renren2::Interface::Base
Instance Method Details
#is_completed(order_id) ⇒ Object
查询某个用户在一个应用中一次消费是否完成
15 16 17 |
# File 'lib/renren2/interface/pay.rb', line 15 def is_completed(order_id) post 'pay.isCompleted', :body => {:order_id => order_id} end |
#query_orders(order_numbers) ⇒ Object
根据订单号查询订单,支持批量查询
37 38 39 |
# File 'lib/renren2/interface/pay.rb', line 37 def query_orders(order_numbers) post 'pay.queryOrders', :body => {:order_numbers => order_numbers} end |
#reg_order(order_id, amount, desc, opts = {}) ⇒ Object
预存入用户在应用中消费产生的订单数据,消费数额等信息
28 29 30 |
# File 'lib/renren2/interface/pay.rb', line 28 def reg_order(order_id, amount, desc, opts={}) post 'pay.regOrder', :body => {:order_id => order_id, :amount => amount, :desc => desc}.merge(opts) end |
#test_is_completed(order_id) ⇒ Object
查询某个用户在一个应用中一次消费是否完成
46 47 48 |
# File 'lib/renren2/interface/pay.rb', line 46 def test_is_completed(order_id) post 'pay4Test.isCompleted', :body => {:order_id => order_id} end |
#test_reg_order(order_id, amount, desc, opts = {}) ⇒ Object
预存入用户在应用中消费产生的订单数据,消费数额等信息
59 60 61 |
# File 'lib/renren2/interface/pay.rb', line 59 def test_reg_order(order_id, amount, desc, opts={}) post 'pay4Test.regOrder', :body => {:order_id => order_id, :amount => amount, :desc => desc}.merge(opts) end |