shipstation 0.20 → 0.25
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/shipstation.rb +1 -0
- data/lib/shipstation/api_operations/create.rb +1 -1
- data/lib/shipstation/api_operations/delete.rb +1 -1
- data/lib/shipstation/api_operations/list.rb +1 -1
- data/lib/shipstation/api_operations/retrieve.rb +1 -1
- data/lib/shipstation/api_operations/shipment.rb +10 -0
- data/lib/shipstation/api_operations/update.rb +1 -2
- data/lib/shipstation/store.rb +2 -2
- data/lib/shipstation/tag.rb +2 -2
- data/lib/shipstation/version.rb +1 -1
- data/lib/shipstation/warehouse.rb +2 -2
- data/lib/shipstation/webhook.rb +19 -0
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b24a9b9d3b391332cb6aef90cd167a8a44953bad76cce01a74cda7af64c2674
|
4
|
+
data.tar.gz: 36f0a87b41ac20872eefbed545126ed7360f8132a40813edcfe77abb7a6d46b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41ad2642ef2ee4a4c1514ce7f2eb5c1043b24e88a8984ffb9e99e8bd8d7a7e3ac68fe31528cf3b2c1ff9f2bcabc9c49fbd815074ab60d7504974d69b1f156343
|
7
|
+
data.tar.gz: c08b6326f2073f328964f3d5423a7f72995be83ef490dab293ba1f9e5e2512586d6d5f08bab54d8e27b8241636f91ed77ade10c071e3c47ecb759c050075a3cb
|
data/lib/shipstation.rb
CHANGED
data/lib/shipstation/store.rb
CHANGED
data/lib/shipstation/tag.rb
CHANGED
data/lib/shipstation/version.rb
CHANGED
@@ -0,0 +1,19 @@
|
|
1
|
+
module Shipstation
|
2
|
+
class Webhook < ApiResource
|
3
|
+
extend Shipstation::APIOperations::List
|
4
|
+
|
5
|
+
class << self
|
6
|
+
def subscribe(params={})
|
7
|
+
response = Shipstation.request(:post, 'webhooks/subscribe', params)
|
8
|
+
|
9
|
+
return response
|
10
|
+
end
|
11
|
+
|
12
|
+
def unsubscribe(object_id, params={})
|
13
|
+
response = Shipstation.request(:delete, "webhooks/#{object_id}", params)
|
14
|
+
|
15
|
+
return response
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shipstation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.25'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom Dallimore
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-04-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|
@@ -38,6 +38,7 @@ files:
|
|
38
38
|
- lib/shipstation/api_operations/delete.rb
|
39
39
|
- lib/shipstation/api_operations/list.rb
|
40
40
|
- lib/shipstation/api_operations/retrieve.rb
|
41
|
+
- lib/shipstation/api_operations/shipment.rb
|
41
42
|
- lib/shipstation/api_operations/update.rb
|
42
43
|
- lib/shipstation/api_resource.rb
|
43
44
|
- lib/shipstation/carrier.rb
|
@@ -49,6 +50,7 @@ files:
|
|
49
50
|
- lib/shipstation/tag.rb
|
50
51
|
- lib/shipstation/version.rb
|
51
52
|
- lib/shipstation/warehouse.rb
|
53
|
+
- lib/shipstation/webhook.rb
|
52
54
|
- lib/tasks/shipstation_tasks.rake
|
53
55
|
- test/dummy/Gemfile
|
54
56
|
- test/dummy/Gemfile.lock
|
@@ -112,7 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
112
114
|
- !ruby/object:Gem::Version
|
113
115
|
version: '0'
|
114
116
|
requirements: []
|
115
|
-
rubygems_version: 3.
|
117
|
+
rubygems_version: 3.2.15
|
116
118
|
signing_key:
|
117
119
|
specification_version: 4
|
118
120
|
summary: A Ruby wrapper for the Shipstation API
|