guanyi-erp 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ec373f9a3b44e23bf63cc155be778fabd34aad78
4
- data.tar.gz: d3b346207b5fbb2c88a4fb972138cc9926f4078a
3
+ metadata.gz: 46a8f73727f1e8796dc1d55116a5bb340fd0c7c9
4
+ data.tar.gz: 499679d19e205f47c2150e4c16261b5cb4e23562
5
5
  SHA512:
6
- metadata.gz: 7ce797e7a149521004b29c7067042826267b9c618fee2a593b1497393fd14eb26bfaf5f09c519272b221236bcc48ceb67c5751979d50a93f0dab2a81c8a0f954
7
- data.tar.gz: abaca6ea48af6afeac275178f6b68fd49e21d0959e5e388fa711542d79e43a90d8e26d26344a2530300897c4c7ddca117d2a453c0470cd2921732556e9f5bd82
6
+ metadata.gz: d61e93ed83e913208e7d2b1cfe89d3ec9f2bdb81e6775977031b283cf49dfc5b3b7380e17457508cfd00d91dff8e68ed7b63976e9a79decbdc28728724af7ffb
7
+ data.tar.gz: d33d339b7fb94f44569e1af68a7ff9b47f7c14e4295dc199cffe50b7403c63a7aacbd846f34ca7af8c11941a93370d7c4deddb52dcf3c15b172fc573186e0cbf
@@ -10,6 +10,7 @@ require 'guanyi_erp/request'
10
10
 
11
11
  module GuanyiErp
12
12
 
13
+ API_GY_ERP_ITEMS_GET = 'gy.erp.items.get' #商品查询
13
14
  API_GY_ERP_STOCK_GET = 'gy.erp.stock.get' #库存查询
14
15
  API_GY_ERP_TRADE_ADD = 'gy.erp.trade.add' #订单新增
15
16
  API_GY_ERP_TRADE_GET = 'gy.erp.trade.get' #订单查询
@@ -28,6 +29,15 @@ module GuanyiErp
28
29
  GuanyiErp::Request.post({method: API_GY_ERP_STOCK_GET}.merge(params))
29
30
  end
30
31
 
32
+ #商品查询(gy.erp.items.get)
33
+ #+page_no+ Number 非必填 页码 1
34
+ #+page_size+ Number 非必填 每页大小 10
35
+ #+code+ String 必填 商品代码
36
+ #参考文档 http://gop.guanyierp.com/interface/gy.erp.items.get.htm
37
+ def api_erp_items_get(params={})
38
+ GuanyiErp::Request.post({method: API_GY_ERP_ITEMS_GET}.merge(params))
39
+ end
40
+
31
41
  #订单新增(gy.erp.trade.add)
32
42
  # +order_type_code+ String 订单类型code
33
43
  # +refund+ Number 0-非退款 ,1--退款(退款中); 退款状态
@@ -1,3 +1,3 @@
1
1
  module GuanyiErp
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guanyi-erp
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - liuxi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-11-23 00:00:00.000000000 Z
11
+ date: 2017-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -123,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
123
123
  version: '0'
124
124
  requirements: []
125
125
  rubyforge_project:
126
- rubygems_version: 2.4.8
126
+ rubygems_version: 2.4.3
127
127
  signing_key:
128
128
  specification_version: 4
129
129
  summary: "管易ERP"