mason_hub_api 0.1.4 → 0.1.6
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/lib/mason_hub_api/resource.rb +2 -0
- data/lib/mason_hub_api/resources/callback.rb +6 -7
- data/lib/mason_hub_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '01119c4c2efc5a0f86969e4c173e189c3fe444d3043fbddb7d530bf011466d9d'
|
4
|
+
data.tar.gz: 637a87b0b28c0f0e7d14c946e4646132a43e89f4f902b244725712a7c3e0acef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5bcfa0106a1f134f12eb52dffa360c2f0f82da0872a77105516d96d6574a7dfa57737ddda0f21dd1830216ac73be458d33ab7deb796eedf1caf631ec8d369110
|
7
|
+
data.tar.gz: 7b6e3d7b243834a1dbd40fb8e069facdcc7505ee63e86d1f4a9023ae0b91fa93eba88746eea36e72e9abce12b2d2092e0fdbdef4fef5ea5896db10de4c08e6da
|
@@ -20,16 +20,15 @@ module MasonHubAPI
|
|
20
20
|
#
|
21
21
|
# Delete the registered callbacks
|
22
22
|
#
|
23
|
-
# @param [Array]
|
24
|
-
# Available type: "skuInventoryChange", "orderEvent", "orderCancelResolution", "orderUpdateResolution", "rmaEvent", "inboundShipmentEvent", "snapshotReady"
|
23
|
+
# @param [Array] callback_ids The callback ids to delete
|
25
24
|
#
|
26
|
-
# @return [Response]
|
25
|
+
# @return [Response] String response
|
27
26
|
#
|
28
|
-
def delete(
|
29
|
-
|
30
|
-
raise ArgumentError, "
|
27
|
+
def delete(callback_ids)
|
28
|
+
callback_ids = [callback_ids] if callback_ids.is_a?(String)
|
29
|
+
raise ArgumentError, "callback_ids must be an array or string" unless callback_ids.is_a?(Array)
|
31
30
|
|
32
|
-
delete_request("callbacks", body:
|
31
|
+
delete_request("callbacks", body: callback_ids).body
|
33
32
|
end
|
34
33
|
end
|
35
34
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mason_hub_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- nickfarm27
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-03-
|
11
|
+
date: 2024-03-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|