Module: Wdt::Client::Shipments
- Included in:
- Wdt::Client
- Defined in:
- lib/wdt/client/shipments.rb
Overview
物流接口
Instance Method Summary collapse
-
#ack_shipments(rec_id, status, message) ⇒ Object
物流同步状态回写.
-
#query_shipments(limit, options = {}) ⇒ Object
待同步物流查询.
Instance Method Details
#ack_shipments(rec_id, status, message) ⇒ Object
物流同步状态回写
21 22 23 24 25 |
# File 'lib/wdt/client/shipments.rb', line 21 def ack_shipments(rec_id, status, ) = .merge( rec_id: rec_id.to_i, status: status.to_i, message: .to_s) response = post "/openapi2/logistics_sync_ack.php", response end |
#query_shipments(limit, options = {}) ⇒ Object
待同步物流查询
9 10 11 12 13 |
# File 'lib/wdt/client/shipments.rb', line 9 def query_shipments(limit, ={}) limit = 100 if limit > 100 response = post "/openapi2/logistics_sync_query.php", .merge(limit: limit) respone end |