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 +4 -4
- data/TODO.md +5 -0
- data/lib/xpost/orders.rb +7 -0
- data/lib/xpost/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e754cf1a98d77e678c4d5f58ed676fb791776e9
|
4
|
+
data.tar.gz: 7c91de64c865129a032e3565bbd122185a53044d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7fe0eed7c9b763ef173a7007caed6d0b8d33aacf8cfe1fc0b1f5d6df2c7033a0f59a3784f136cccce14bffee356d83fd7bf5ed7e789a38d49c941ad64348182f
|
7
|
+
data.tar.gz: 49548ac5f9124529d63e91b936712c64645ceb6a38d5158affcf619a068694c76db5183a913223e5bbc92cc9a8ba1722d92e2b13da8e62021028c71f63af9dfb
|
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
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.
|
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
|