brightpearl_api 1.2.0 → 1.2.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 90631aeb062267b987fdc8842250d00d829bec64
4
- data.tar.gz: bfae106f4a7c2aa4284189f3065532dad06faf52
3
+ metadata.gz: e865ee8343098e3e1dd389a2b1d92db4ae84d9a4
4
+ data.tar.gz: 0fc298ff55ed20253f4aec2696aeb1663271cde8
5
5
  SHA512:
6
- metadata.gz: e46e0420354388667e0014015285c729f82c87ac5f8a2ba1ae26bf5f24ed05590ede62a5cacb702bf32670a36cb0e1b9458ccd67ee74a38ed73a58ccb93d3914
7
- data.tar.gz: 7f417474574d02a9afe4213953cd80e37689dcd17dd842872877af45e2b7c4c1c5958a609258a8e82d3520f1e02254392d7ba2c20366a8d2a5044319ae7e938f
6
+ metadata.gz: 68ce2bf16a60437e04eb8c7ba9bc16620585a160f5cdb1278b0741f5f8a2c7dfc6a33fc3ff2584ab00bdf7e9f37e1304118f292d7cf24a05bbcf2c858e041f1d
7
+ data.tar.gz: 7cc8ecf748017680f779a5e4d006c85c38093da930fb869d0329b4731709df8c22c3f558748713a3e3d8ea4d275af195126b94a26c2bb38cbfdcecdebcd14e28
data/README.md CHANGED
@@ -384,9 +384,13 @@ s.quarantine_release(warehouse_id) do |body|
384
384
  end
385
385
  ```
386
386
 
387
- ## TODO
387
+ ## Updates (Features Added)
388
388
 
389
- Resource Search
389
+ * Stock Correction
390
+ * Goods Out Note Search
391
+ * External Transfer Request
392
+ * Resource Search
393
+ * Handle Throttle response
390
394
 
391
395
  ## Contributing
392
396
 
@@ -18,7 +18,7 @@ module BrightpearlApi
18
18
  reset_token
19
19
  api_call(type, path, data)
20
20
  rescue ThrottleException => e
21
- sleep(5.seconds)
21
+ sleep(60.seconds)
22
22
  reset_token
23
23
  api_call(type, path, data)
24
24
  end
@@ -112,6 +112,12 @@ module BrightpearlApi
112
112
  call(:post, "/warehouse-service/warehouse/#{warehouse_id.to_i}/quarantine/release", body)
113
113
  end
114
114
 
115
+ def stock_correction(warehouse_id)
116
+ body = {}
117
+ yield(body)
118
+ call(:post, "/warehouse-service/warehouse/#{warehouse_id.to_i}/stock-correction", body)
119
+ end
120
+
115
121
  def search_goods_out_notes
116
122
  body = {}
117
123
  yield(body)
@@ -1,3 +1,3 @@
1
1
  module BrightpearlApi
2
- VERSION = "1.2.0"
2
+ VERSION = "1.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brightpearl_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kunwar Aditya Raghuwanshi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-29 00:00:00.000000000 Z
11
+ date: 2014-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler