brightpearl_api 1.2.1 → 1.3.0

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: e865ee8343098e3e1dd389a2b1d92db4ae84d9a4
4
- data.tar.gz: 0fc298ff55ed20253f4aec2696aeb1663271cde8
3
+ metadata.gz: 777e62205ed178da61ef94d8f7a685f4b2f09eb3
4
+ data.tar.gz: aa7833c9467efcf7cb430a1cdaa1e0e402c4b7af
5
5
  SHA512:
6
- metadata.gz: 68ce2bf16a60437e04eb8c7ba9bc16620585a160f5cdb1278b0741f5f8a2c7dfc6a33fc3ff2584ab00bdf7e9f37e1304118f292d7cf24a05bbcf2c858e041f1d
7
- data.tar.gz: 7cc8ecf748017680f779a5e4d006c85c38093da930fb869d0329b4731709df8c22c3f558748713a3e3d8ea4d275af195126b94a26c2bb38cbfdcecdebcd14e28
6
+ metadata.gz: 89975aa35d479d1b83414b0f5fb644651c1a9be540e884bb9771b38a2acd28c01b02b6da3bcfcb11bf5e6b2568e5345cf08e45cf21378f8eab008ab32bdf555f
7
+ data.tar.gz: 73f3ab5e1a14c466f2c4dd974d1e81c64ba21c3f941581ba5a8062c999a827bd7c1687484e53667a3c58693976401764f538d17565ee0c8d54891413760d6841
data/README.md CHANGED
@@ -163,6 +163,45 @@ s.search_resource('contact','contact') do |body|
163
163
  body.merge!(hash)
164
164
  end
165
165
 
166
+ s.multi_message do |body|
167
+ hash = {
168
+ processingMode: "SEQUENTIAL",
169
+ onFail: "STOP",
170
+ messages:[
171
+ {
172
+ label:"LABEL1",
173
+ uri: "/warehouse-service/warehouse",
174
+ httpMethod: "POST",
175
+ body:{
176
+ name: "Bristol shipping warehouse",
177
+ address:{
178
+ addressId: 34
179
+ }
180
+ }
181
+ },
182
+ {
183
+ label:"LABEL2",
184
+ uri: "/warehouse-service/warehouse",
185
+ httpMethod: "PUT",
186
+ body:{
187
+ warehouses:[
188
+ {
189
+ id: 10,
190
+ name: "Receiving warehouse"
191
+ }
192
+ ]
193
+ }
194
+ },
195
+ {
196
+ label:"LABEL3",
197
+ uri: "/warehouse-service/warehouse/45",
198
+ httpMethod: "DELETE"
199
+ }
200
+ ]
201
+ }
202
+ body.merge!(hash)
203
+ end
204
+
166
205
  ```
167
206
 
168
207
  #### Supported Service - Resource Pairs
@@ -89,5 +89,11 @@ module BrightpearlApi
89
89
  end
90
90
  result_hash
91
91
  end
92
+
93
+ def multi_message
94
+ body = {}
95
+ yield(body)
96
+ call(:post, "/multi-message", body)
97
+ end
92
98
  end
93
99
  end
@@ -1,3 +1,3 @@
1
1
  module BrightpearlApi
2
- VERSION = "1.2.1"
2
+ VERSION = "1.3.0"
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.1
4
+ version: 1.3.0
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-10-03 00:00:00.000000000 Z
11
+ date: 2014-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler