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: ffea06e1f2286dc324d82b8c2aaec2888de0e287
4
- data.tar.gz: f8dbbdf494c8ce9b5719ccf09dca4ad0a90578fa
3
+ metadata.gz: daa2a5689925e5bc79dcf94299b9c1a038f855d4
4
+ data.tar.gz: 41f26a012de19057694f0b83707f719061512c7b
5
5
  SHA512:
6
- metadata.gz: 431a86486ed7cdd8ef2da0ac544fa9dd3212814205f056cf0a60fcb00b68d71616ab676b50d9491e52c138ebc57ec0c69a5b7f813245cd3e071d5bb614484f0b
7
- data.tar.gz: 48926e482d27b2a4a12fae8952353ba5c4358437c20742426bba4407352b493775649300d8c344318dfab10db4be5358d1e9d42d44bfe2f78491fd6ef28f323c
6
+ metadata.gz: f15bacce410cbf9d9274de3a81c518683a6253a69baa63f300dcc8837fc2b5d7a4eaab2d95fb3631ef7c14e26d86e0258cf4d332ead96de7d3dfac0dfe90e9ba
7
+ data.tar.gz: 0fb8c4dd4af295bebe0386e17c6434dc526c6d5cf991690176c0522fe742ef38a25af6519306092e1b3dfb0335658af36195d137bb884ee35fa3828311d4281c
@@ -0,0 +1,7 @@
1
+ # -*- encoding : utf-8 -*-
2
+ module VersacommerceAPI
3
+
4
+ class Event < Base
5
+ end
6
+
7
+ end
@@ -2,8 +2,8 @@
2
2
  module VersacommerceAPI
3
3
 
4
4
  class Item < Base
5
- def product
6
- Product.find product_id
5
+ def self.root!
6
+ self.prefix = "/api/"
7
7
  end
8
8
  end
9
9
 
@@ -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
@@ -1,4 +1,4 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module VersacommerceAPI
3
- VERSION = '1.0.17'
3
+ VERSION = '1.0.18'
4
4
  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.17
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-03-30 00:00:00.000000000 Z
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