xpost 0.1.1 → 0.1.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: 1528ac526307947878501064a5b31c5c128883cf
4
- data.tar.gz: a3a71ecaa5c1e6d786ae24e84cef98793b0ffb2a
3
+ metadata.gz: 1e754cf1a98d77e678c4d5f58ed676fb791776e9
4
+ data.tar.gz: 7c91de64c865129a032e3565bbd122185a53044d
5
5
  SHA512:
6
- metadata.gz: 380cd7435dd8e02ef74e2a3de907b6260d3a8c3731903fe9524c6b1909f5f40a0f04225ee55e11769460c224d4c1b1722a5bb5c94ac0b04f42cf849d18326e76
7
- data.tar.gz: 49323931c9acd75d1f258dfa6f6f54f46b512991316b0c7c2fc88754e916ba5875c1fcec8b99efe6cedae5e6aade8dd1793e7156f850491ab58ac822d8cc4e37
6
+ metadata.gz: 7fe0eed7c9b763ef173a7007caed6d0b8d33aacf8cfe1fc0b1f5d6df2c7033a0f59a3784f136cccce14bffee356d83fd7bf5ed7e789a38d49c941ad64348182f
7
+ data.tar.gz: 49548ac5f9124529d63e91b936712c64645ceb6a38d5158affcf619a068694c76db5183a913223e5bbc92cc9a8ba1722d92e2b13da8e62021028c71f63af9dfb
data/TODO.md ADDED
@@ -0,0 +1,5 @@
1
+
2
+
3
+ # xpost To-Do's
4
+
5
+
data/lib/xpost/orders.rb CHANGED
@@ -47,6 +47,13 @@ module Xpost
47
47
  res = res[:message] == "Not Found" ? "Not Found" : res
48
48
  end
49
49
 
50
+ def self.cancel(auth_token, tracking_number)
51
+ cancel_order_url = "orders/#{tracking_number}/cancel"
52
+
53
+ res = put_url(cancel_order_url, headers: auth_header(auth_token))
54
+ res = res[:message] == "Not Found" ? "Not Found" : res
55
+ end
56
+
50
57
  def self.for_pickup(auth_token, tracking_number, pickup_address)
51
58
  pickup_address = Xpost::Models::Address.new(pickup_address)
52
59
  for_pickup_url = "orders/#{tracking_number}/for-pickup"
data/lib/xpost/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Xpost
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xpost
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Marquez
@@ -106,6 +106,7 @@ files:
106
106
  - Gemfile
107
107
  - LICENSE
108
108
  - README.md
109
+ - TODO.md
109
110
  - lib/xpost.rb
110
111
  - lib/xpost/authentication.rb
111
112
  - lib/xpost/configuration.rb