ubox 0.1.9 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +13 -0
  3. data/lib/ubox.rb +4 -1
  4. data/lib/ubox/version.rb +1 -1
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d4bff5aa97c0be41e28710e543f4477b8b86933c
4
- data.tar.gz: 50fb98101cd0eb493e38370645cf837c2ea6bc7c
3
+ metadata.gz: 68a992421e78dc5d648c01eccfa1f4b3ca8ba48a
4
+ data.tar.gz: 7c8c93d020bb5fe67ed23e4dbc83db013814736f
5
5
  SHA512:
6
- metadata.gz: 4d8b7f6ce132eceef2b00570c7e458169021fb69391d7064aa582f674571efb19473ccec2454fe23c2660bc1ef5f6c0afa8852fc3d3b3e94a1277b5b1734b0ae
7
- data.tar.gz: 31196de226145ae11dc2d872889730fe186448e332236631c41b4c73f83eac737621dd8d3dcde71db453054ae2bc379b986fe00c4680b98e674521073c8de2ee
6
+ metadata.gz: 011d275f263b932d34ef039e50d22ee4145cb5e21a1c264ebf71be02849be12db9d5c0cc9f4582ffc6f387b82915950ba619e1b3c44ed956d0b7b5f56fe01b9e
7
+ data.tar.gz: 85db45c3c24f7ebcf37ef30d2cad61351c85f3c1a08776e0ba3ee16cc270073704e302a94c4f8b9252ea4e67e87038844653b482f6819712c543a184f073d3f2
data/README.md CHANGED
@@ -362,6 +362,19 @@ deliver = Ubox.deliver_trade(tran_id: delivery_code['body']['delivery_code'])
362
362
  ```json
363
363
  ```
364
364
 
365
+ ### checkProductInVm 查询售货机货道是否售卖某个商品
366
+ ```ruby
367
+ in_vm = Ubox.check_product_in_vm(vmid: '0061029', product_id: 19458, vTypeId: 1)
368
+ ```
369
+ ```json
370
+ {
371
+ "head": {
372
+ "return_code": 504,
373
+ "return_msg": "不支持售卖"
374
+ }
375
+ }
376
+ ```json
377
+
365
378
  ## Development
366
379
 
367
380
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
@@ -67,7 +67,6 @@ module Ubox
67
67
  post_request('/notifyPayment', attributes)
68
68
  end
69
69
 
70
-
71
70
  #出货结果询问
72
71
  #trade_order_status(tran_id:xxx)
73
72
  def trade_order_status(attributes)
@@ -94,4 +93,8 @@ module Ubox
94
93
  post_request('/deliverTrade', attributes)
95
94
  end
96
95
 
96
+ #查询售货机货道是否售卖某个商品
97
+ def check_product_in_vm(attributes)
98
+ post_request('/checkProductInVm', attributes)
99
+ end
97
100
  end
@@ -1,3 +1,3 @@
1
1
  module Ubox
2
- VERSION = "0.1.9"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ubox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Saxer