shipstation 0.21 → 0.22

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
  SHA256:
3
- metadata.gz: f332f2b5e19faf23d1e031965ca6433f6f29ff1d65b137f45be10e0c99b4e0e6
4
- data.tar.gz: d11ba1d6c473bc18cc0151c0c095165f88b424ba2deb75c02d9afe506d0ae27d
3
+ metadata.gz: 72e68e72acd46ba709935935efd037ed83a1df79b4e29ab3f4afc3596f439874
4
+ data.tar.gz: 6f245a7bfd81fe974c78fbbf5f5038a5b4d554ff6a70d79828d5a345280544cc
5
5
  SHA512:
6
- metadata.gz: 85003a9637e7534d28929848f7581689dcff44db175cc2f47c54d123d27a19f2b8dd650e899e4bc141bdd1db7f5aecc1ec0d17b001d47d35a56c9fe18151447b
7
- data.tar.gz: 9e8ad73887251a097758a5b80183cf6e33b02e6cca4dd31ebf8d1c872cbf200d0f199d3778d96ae601205c3b5c8ddf5ff729ce4d8bd3116cb908f6ee323bd412
6
+ metadata.gz: 11d3043df2a9bd563cbd5313684a291530a1f3d1f77093e59d73e98e56a20b08d50e7045fcd989667f055ada196078c9c06057fb98dfdefafcb66aa862225f6d
7
+ data.tar.gz: 4211c6cb6e1de85b46b8e93d178451095f3070a889c8ef3a4f26ffc47f35b1cf42b67887470866da878ecbbec136320d5ae28bb3f2a03cdfe72aa3f54335fee9
@@ -2,7 +2,7 @@ module Shipstation
2
2
  module APIOperations
3
3
  module Create
4
4
 
5
- def create params = {}
5
+ def create(params = {})
6
6
  response = Shipstation.request(:post, "#{class_name.downcase.pluralize}/create#{class_name.downcase}", params)
7
7
  return response
8
8
  end
@@ -2,7 +2,7 @@ module Shipstation
2
2
  module APIOperations
3
3
  module Delete
4
4
 
5
- def delete object_id, params = {}
5
+ def delete(object_id, params = {})
6
6
  Shipstation.request(:delete, "#{class_name.downcase.pluralize}/#{object_id}", params)
7
7
  end
8
8
 
@@ -2,7 +2,7 @@ module Shipstation
2
2
  module APIOperations
3
3
  module List
4
4
 
5
- def list params = {}
5
+ def list(params = {})
6
6
  response = Shipstation.request(:get, class_name.downcase.pluralize, params)
7
7
 
8
8
  return response
@@ -2,7 +2,7 @@ module Shipstation
2
2
  module APIOperations
3
3
  module Retrieve
4
4
 
5
- def retrieve object_id, params = {}
5
+ def retrieve(object_id, params = {})
6
6
  response = Shipstation.request(:get, "#{class_name.downcase.pluralize}/#{object_id}", params)
7
7
  return response
8
8
  end
@@ -2,7 +2,7 @@ module Shipstation
2
2
  module APIOperations
3
3
  module Update
4
4
 
5
- def update object_id, params = {}
5
+ def update(object_id, params = {})
6
6
  Shipstation.request(:put, "#{class_name.downcase.pluralize}/#{object_id}", params)
7
7
  end
8
8
 
@@ -5,8 +5,8 @@ module Shipstation
5
5
  extend Shipstation::APIOperations::Update
6
6
 
7
7
  class << self
8
- def list
9
- response = Shipstation.request(:get, 'stores')
8
+ def list(params = {})
9
+ response = Shipstation.request(:get, 'stores', params)
10
10
 
11
11
  return response
12
12
  end
@@ -2,8 +2,8 @@ module Shipstation
2
2
  class Tag < ApiResource
3
3
 
4
4
  class << self
5
- def list
6
- response = Shipstation.request(:get, 'accounts/listtags')
5
+ def list(params = {})
6
+ response = Shipstation.request(:get, 'accounts/listtags', params)
7
7
 
8
8
  return response
9
9
  end
@@ -1,3 +1,3 @@
1
1
  module Shipstation
2
- VERSION = "0.21"
2
+ VERSION = "0.22"
3
3
  end
@@ -5,8 +5,8 @@ module Shipstation
5
5
  extend Shipstation::APIOperations::Update
6
6
 
7
7
  class << self
8
- def list
9
- response = Shipstation.request(:get, 'warehouses')
8
+ def list(params = {})
9
+ response = Shipstation.request(:get, 'warehouses', params)
10
10
 
11
11
  return response
12
12
  end
@@ -8,8 +8,8 @@ module Shipstation
8
8
  return response
9
9
  end
10
10
 
11
- def unsubscribe(object_id)
12
- response = Shipstation.request(:delete, "webhooks/#{object_id}")
11
+ def unsubscribe(object_id, params={})
12
+ response = Shipstation.request(:delete, "webhooks/#{object_id}", params)
13
13
 
14
14
  return response
15
15
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shipstation
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.21'
4
+ version: '0.22'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Dallimore