brightpearl_api 1.2.1 → 1.3.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 +39 -0
- data/lib/brightpearl_api/service.rb +6 -0
- data/lib/brightpearl_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 777e62205ed178da61ef94d8f7a685f4b2f09eb3
|
4
|
+
data.tar.gz: aa7833c9467efcf7cb430a1cdaa1e0e402c4b7af
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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-
|
11
|
+
date: 2014-11-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|