shipstation 0.3.2 → 0.5.2

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: 5ecee63cd8ae87b5388c0721b0aaa5b4e08f95de
4
- data.tar.gz: b569c7eb6a55f4439f61338299f062df67d93403
3
+ metadata.gz: ff856c6dd4f1a291949a2eb50f19669a000b588f
4
+ data.tar.gz: c4fd5b2d23a87193c2623e603788d52614ec9b56
5
5
  SHA512:
6
- metadata.gz: 6451d33402607b3c093b75bd578871304130581159e75d78f6393002046ddd06680d73c835734da48e1d2469420e499557f77ae99f3e62ff64c920168aab5fa0
7
- data.tar.gz: 4c3889741db3c8890e6132fb59bb9961031be7f710e690e643ea54e6da330d44e3267ce3471466159219a2a4d8547e9cbdafe7ab004c6d3a9423f9078e43c262
6
+ metadata.gz: eb2ee571d4967c9223795531a73fc541cb74845708354d13e401d113116fd19d59389863a60e5fc4b1cbebbe20e1c78ec9583a6354dc34e96a38394d62bd00e2
7
+ data.tar.gz: 9db4026599df8bcfe8b56faf23e8a83196010d04fdab2875a658808c11307a7e5397b64fed8c9e64ffcf411213ff1ebfb72769bff31b02140b702b7fc1aac985
@@ -10,6 +10,7 @@ require 'shipstation/carrier'
10
10
  require 'shipstation/store'
11
11
  require 'shipstation/warehouse'
12
12
  require 'shipstation/product'
13
+ require 'shipstation/tag'
13
14
 
14
15
  module Shipstation
15
16
  API_BASE = "https://ssapi.shipstation.com/"
@@ -10,6 +10,12 @@ module Shipstation
10
10
 
11
11
  return response
12
12
  end
13
+
14
+ def assign_tag params={}
15
+ response = Shipstation.request(:post, "orders/addtag", params)
16
+
17
+ return response
18
+ end
13
19
  end
14
20
  end
15
21
  end
@@ -0,0 +1,12 @@
1
+ module Shipstation
2
+ class Tag < ApiResource
3
+
4
+ class << self
5
+ def list
6
+ response = Shipstation.request(:get, 'accounts/listtags')
7
+
8
+ return response
9
+ end
10
+ end
11
+ end
12
+ end
@@ -1,3 +1,3 @@
1
1
  module Shipstation
2
- VERSION = "0.3.2"
2
+ VERSION = "0.5.2"
3
3
  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.3.2
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Dallimore
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-15 00:00:00.000000000 Z
11
+ date: 2017-04-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
@@ -44,6 +44,7 @@ files:
44
44
  - lib/shipstation/product.rb
45
45
  - lib/shipstation/shipment.rb
46
46
  - lib/shipstation/store.rb
47
+ - lib/shipstation/tag.rb
47
48
  - lib/shipstation/version.rb
48
49
  - lib/shipstation/warehouse.rb
49
50
  - lib/tasks/shipstation_tasks.rake