versacommerce_api 1.0.10 → 1.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NzBjODFiM2EzZThjZWYwYjFjNDJiMmY2OWU3YmRjNzRjOGEwODFjMw==
4
+ MzY0MmU3ZTlmM2IzMGU0MzI2YTVlZWEyZGQxMDEyMDczNjdlMThmYQ==
5
5
  data.tar.gz: !binary |-
6
- YzM4ZWQyOGQzNjMwYWUwOGVlZTg0MjA5M2Q3NmFlNDQwNzA1Yzg4OQ==
6
+ MDkzOWY1MTVjN2E1MzBjNWQ4MGUzMjY4ZjgzZjFiNmYxNmRjOTdhZQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YzgzZGQzMzE0ZGU5NTRhN2JiOTk5ZjljZmExZWY2NDIzMzYzMWZhMDFkY2Uz
10
- ZDlmY2UwNmY4NTRlN2Y1NmNmMGFjMWMyYmM0ZDVjZTZmMDgxNmQ4YTA4YzNk
11
- ZDliYTFhMWYzMzNjYjZiOGRkNGNjYTQxZmExYTQ2YTQxOThlZTA=
9
+ ZGMyODZjZWFhNjBkNGUxNTBjY2JjY2NhOGU0N2Q3OGE3MzNkOTc1YzgxZjA4
10
+ YTcyNWMwMTI1MWQ2MGJlNjRlMDI1MzBmODZmZGE3MDUzMWM2NzczODA1NDQ0
11
+ NzM1OTc1ZmU0MTNiOGNhZDhjYTdhNGNhNmY3MWEwZmFiZTBmOWY=
12
12
  data.tar.gz: !binary |-
13
- NmZkOTUzNTZkOGEzZWJkMWRlZmE3OWE0ODVmMzViOWJhNTY3NmQxYzhmNDQ5
14
- MTcwY2Q5Y2M0MTk5MGNkYTNjM2E2OWUwMTA4YjI3MmJlYmM0ZWE2OWYwNWI0
15
- YmFhY2YzOTg5MzQwNTZjYTg3NjZiNGU5NDYzMTM0YTM1N2Q5NWE=
13
+ NmUxMmE1YmVlMzFhMTJjYTJmZTcyYjgwY2Y1YzY5N2IzODAxYWUzNTA5YmIy
14
+ OTRkY2FlMDcxMmQ0NDc4ODgzOGJhY2E5NDc4NmZjNjkwMTg0Nzc1ODEzZmNk
15
+ MGMzZjNjYTY5NTg5YjkzMWZlNGY5MWIxN2IxOTJlYmZjNzM4OWE=
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ 1.0.11 - Associate items with shipments
2
+ - Associate shipments with orders
3
+ - Add categories to products
4
+ - Fix typo on class BillingAddress and ShippingAddress
1
5
  1.0.10 - Associate items with order
2
6
  1.0.9 - Added PaymentMethod resource
3
7
  1.0.8 - Added Carrier resource
@@ -1,7 +1,7 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module VersacommerceAPI
3
3
 
4
- class BillingAddres < Base
4
+ class BillingAddress < Base
5
5
  def fullname
6
6
  [firstname, lastname].delete_if(&:blank?).compact * " "
7
7
  end
@@ -15,6 +15,10 @@ module VersacommerceAPI
15
15
  associated_resource "payment"
16
16
  end
17
17
 
18
+ def shipments
19
+ associated_resource "shipments"
20
+ end
21
+
18
22
  def shipping_address
19
23
  associated_resource "shipping_address", false
20
24
  end
@@ -65,6 +65,10 @@ module VersacommerceAPI
65
65
  def featured_image
66
66
  ProductImage.new(:src => featured_image_url)
67
67
  end
68
+
69
+ def self.categories
70
+ get(:categories)
71
+ end
68
72
  end
69
73
 
70
74
  end
@@ -7,6 +7,10 @@ module VersacommerceAPI
7
7
  def order
8
8
  associated_resource "order", false
9
9
  end
10
+
11
+ def items
12
+ associated_resource "items"
13
+ end
10
14
  end
11
15
 
12
16
  end
@@ -1,7 +1,7 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module VersacommerceAPI
3
3
 
4
- class ShippingAddres < Base
4
+ class ShippingAddress < Base
5
5
  def fullname
6
6
  [firstname, lastname].delete_if(&:blank?).compact * " "
7
7
  end
@@ -1,4 +1,4 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module VersacommerceAPI
3
- VERSION = "1.0.10"
3
+ VERSION = '1.0.11'
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.10
4
+ version: 1.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - VersaCommerce
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-16 00:00:00.000000000 Z
11
+ date: 2016-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -169,7 +169,7 @@ files:
169
169
  - lib/versacommerce_api/resources.rb
170
170
  - lib/versacommerce_api/resources/account.rb
171
171
  - lib/versacommerce_api/resources/base.rb
172
- - lib/versacommerce_api/resources/billing_addres.rb
172
+ - lib/versacommerce_api/resources/billing_address.rb
173
173
  - lib/versacommerce_api/resources/carrier.rb
174
174
  - lib/versacommerce_api/resources/collection.rb
175
175
  - lib/versacommerce_api/resources/customer.rb
@@ -184,7 +184,7 @@ files:
184
184
  - lib/versacommerce_api/resources/product_image.rb
185
185
  - lib/versacommerce_api/resources/property.rb
186
186
  - lib/versacommerce_api/resources/shipment.rb
187
- - lib/versacommerce_api/resources/shipping_addres.rb
187
+ - lib/versacommerce_api/resources/shipping_address.rb
188
188
  - lib/versacommerce_api/resources/shop.rb
189
189
  - lib/versacommerce_api/resources/variant.rb
190
190
  - lib/versacommerce_api/session.rb