Class: Fengqiao::Service
- Inherits:
-
Object
- Object
- Fengqiao::Service
- Defined in:
- lib/fengqiao/service.rb
Instance Method Summary collapse
- #order(orderid, express_type, pay_method, j_company, j_contact, j_tel, j_address, d_company, d_address, d_contact, d_tel) ⇒ Object
- #order_cancel(orderid) ⇒ Object
- #query_search(orderid) ⇒ Object
-
#route(tracking_type = "1", tracking_number) ⇒ Object
2 tracking_number String(4000) 是 查询号: 如果tracking_type=1,则此值为顺丰运单号 如果tracking_type=2,则此值为客户订单号 如果tracking_type=3,则此值为逆向单原始订单号 如果有多个单号,以逗号分隔,如“123,124,125”。.
Instance Method Details
#order(orderid, express_type, pay_method, j_company, j_contact, j_tel, j_address, d_company, d_address, d_contact, d_tel) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/fengqiao/service.rb', line 3 def order(orderid, express_type, pay_method, j_company, j_contact, j_tel, j_address, d_company, d_address, d_contact, d_tel) package('OrderService', 'Order', 'orderid' => orderid, 'express_type' => express_type, 'is_docall' => '1', 'j_company' => j_company, 'j_contact' => j_contact, 'j_tel' => j_tel, 'j_address' => j_address, 'd_company' => d_company, 'd_contact' => d_contact, 'd_tel' => d_tel, 'd_address' => d_address, 'pay_method' => pay_method, 'custid' => Fengqiao.custid ) end |
#order_cancel(orderid) ⇒ Object
28 29 30 31 32 33 |
# File 'lib/fengqiao/service.rb', line 28 def order_cancel(orderid) package('OrderConfirmService', 'OrderConfirm', 'orderid' => orderid, 'dealtype' => '2' ) end |
#query_search(orderid) ⇒ Object
21 22 23 24 25 26 |
# File 'lib/fengqiao/service.rb', line 21 def query_search(orderid) package('OrderSearchService', 'OrderSearch', 'orderid' => orderid ) end |
#route(tracking_type = "1", tracking_number) ⇒ Object
2 tracking_number String(4000) 是 查询号: 如果tracking_type=1,则此值为顺丰运单号 如果tracking_type=2,则此值为客户订单号 如果tracking_type=3,则此值为逆向单原始订单号 如果有多个单号,以逗号分隔,如“123,124,125”。
51 52 53 54 55 56 |
# File 'lib/fengqiao/service.rb', line 51 def route(tracking_type="1", tracking_number) package('RouteService', 'RouteRequest', 'tracking_type' => tracking_type, 'tracking_number' => tracking_number ) end |