ubox 0.1.9 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +13 -0
- data/lib/ubox.rb +4 -1
- data/lib/ubox/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 68a992421e78dc5d648c01eccfa1f4b3ca8ba48a
|
4
|
+
data.tar.gz: 7c8c93d020bb5fe67ed23e4dbc83db013814736f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
data/lib/ubox.rb
CHANGED
@@ -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
|
data/lib/ubox/version.rb
CHANGED