versacommerce_api 1.0.17 → 1.0.18
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: daa2a5689925e5bc79dcf94299b9c1a038f855d4
|
4
|
+
data.tar.gz: 41f26a012de19057694f0b83707f719061512c7b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f15bacce410cbf9d9274de3a81c518683a6253a69baa63f300dcc8837fc2b5d7a4eaab2d95fb3631ef7c14e26d86e0258cf4d332ead96de7d3dfac0dfe90e9ba
|
7
|
+
data.tar.gz: 0fb8c4dd4af295bebe0386e17c6434dc526c6d5cf991690176c0522fe742ef38a25af6519306092e1b3dfb0335658af36195d137bb884ee35fa3828311d4281c
|
@@ -67,6 +67,18 @@ module VersacommerceAPI
|
|
67
67
|
ProductImage.new(:src => featured_image_url)
|
68
68
|
end
|
69
69
|
|
70
|
+
def tax_for_country country = nil
|
71
|
+
begin
|
72
|
+
if country.present?
|
73
|
+
get(:tax_for_country, country: country)
|
74
|
+
else
|
75
|
+
get(:tax_for_country) # Retrieve tax for default shipping country
|
76
|
+
end
|
77
|
+
rescue ActiveResource::ResourceNotFound
|
78
|
+
return nil
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
70
82
|
def self.categories
|
71
83
|
get(:categories)
|
72
84
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: versacommerce_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- VersaCommerce
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-04-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -175,6 +175,7 @@ files:
|
|
175
175
|
- lib/versacommerce_api/resources/carrier.rb
|
176
176
|
- lib/versacommerce_api/resources/collection.rb
|
177
177
|
- lib/versacommerce_api/resources/customer.rb
|
178
|
+
- lib/versacommerce_api/resources/event.rb
|
178
179
|
- lib/versacommerce_api/resources/item.rb
|
179
180
|
- lib/versacommerce_api/resources/link.rb
|
180
181
|
- lib/versacommerce_api/resources/linklist.rb
|