easyship-rates-ruby-api 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/easyship/rates/ruby/api/api/rates.rb +11 -0
- data/lib/easyship/rates/ruby/api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 27e4c340ab5c216d88d0cf00e8e19e807b98c3d4
|
4
|
+
data.tar.gz: 7ea0cf434b7994054fde1c936a73eecc39ef250e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f1149bcccd568ef9045587dfa5835f78768a39498d619a973284562b97d15d223cf17e3b955b4a71b2ef5d66038ca6aad371374b5546b31d7c3aea983312f75
|
7
|
+
data.tar.gz: fd78b2dd7bf02653f41b7241912887d3c74a7412752e3039deee8bdbdf16ae4be016ddafd83151d063888fcfd3a37936c6e7b7b165fcf8b8466247eea73c28b8
|
@@ -53,6 +53,17 @@ module EasyshipRatesRubyApi
|
|
53
53
|
path = '/get_base_price'
|
54
54
|
simple_query(path, options)
|
55
55
|
end
|
56
|
+
|
57
|
+
|
58
|
+
# Update Rate by courier admin name
|
59
|
+
# @param [Hash] options the options to get rate.
|
60
|
+
# @option options [String] :admin_name
|
61
|
+
# @return [Easyship::Rates::Ruby::Mash]
|
62
|
+
def update_rates(options = {})
|
63
|
+
path = '/update_rates'
|
64
|
+
defaults = {}
|
65
|
+
Mash.from_json(post(path, defaults.merge(options)).body)
|
66
|
+
end
|
56
67
|
end
|
57
68
|
end
|
58
69
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: easyship-rates-ruby-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- aloha
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-10-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: oauth2
|