versacommerce_api 1.0.11 → 1.0.12

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MzY0MmU3ZTlmM2IzMGU0MzI2YTVlZWEyZGQxMDEyMDczNjdlMThmYQ==
4
+ NDYxYTVjZmQ0NGNlMTRhNjUwMmEwNTNiYThkODc2NTVhOTg5OTU5OQ==
5
5
  data.tar.gz: !binary |-
6
- MDkzOWY1MTVjN2E1MzBjNWQ4MGUzMjY4ZjgzZjFiNmYxNmRjOTdhZQ==
6
+ NjUzNjVhNzE0ODAzZTk4NzIzNTJiNjI5NjBkOGVjY2FmYjMzMDk3Mw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZGMyODZjZWFhNjBkNGUxNTBjY2JjY2NhOGU0N2Q3OGE3MzNkOTc1YzgxZjA4
10
- YTcyNWMwMTI1MWQ2MGJlNjRlMDI1MzBmODZmZGE3MDUzMWM2NzczODA1NDQ0
11
- NzM1OTc1ZmU0MTNiOGNhZDhjYTdhNGNhNmY3MWEwZmFiZTBmOWY=
9
+ ZTE3MGUxZGRiMjg2Njg0NTIxZWE0MGUzMzczMmI4N2M4YzJjNDFmY2UxOWM4
10
+ NWNmMzgxYTkzZGNhN2QzNTYwNzQ0MTQ2MzAyMTdmZDA3ODU0MDBkMjFhYTJl
11
+ ZWRmNTliZjQxNzhmYThhNmM2MjliOWM5Zjc1M2RlNTM1NTU3NGY=
12
12
  data.tar.gz: !binary |-
13
- NmUxMmE1YmVlMzFhMTJjYTJmZTcyYjgwY2Y1YzY5N2IzODAxYWUzNTA5YmIy
14
- OTRkY2FlMDcxMmQ0NDc4ODgzOGJhY2E5NDc4NmZjNjkwMTg0Nzc1ODEzZmNk
15
- MGMzZjNjYTY5NTg5YjkzMWZlNGY5MWIxN2IxOTJlYmZjNzM4OWE=
13
+ ODA4ODM4YzY5NzFlZDQzMTFiMWQ3YThmYjA4MTc0NTk2YjMyZmU1MTRlZTU3
14
+ NDUzOTZjZjZmZGI3NzM5Njc2NzU0OTczNTlhNjhjNWMwMzU5MDdkYTQ1NzMx
15
+ ZGI3YTExMWNjMDFmMTczOTNkZWMwYTE1NGMyYzBhMTNhNTVlMTQ=
data/CHANGELOG CHANGED
@@ -1,3 +1,4 @@
1
+ 1.0.12 - Associate customers with billing_address and shipping_address
1
2
  1.0.11 - Associate items with shipments
2
3
  - Associate shipments with orders
3
4
  - Add categories to products
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- versacommerce_api (1.0.10)
4
+ versacommerce_api (1.0.11)
5
5
  activeresource (>= 3.2.14)
6
6
  thor (>= 0.14.4)
7
7
 
@@ -2,6 +2,15 @@
2
2
  module VersacommerceAPI
3
3
 
4
4
  class Customer < Base
5
+ include Associatable
6
+
7
+ def billing_address
8
+ associated_resource "billing_address", false
9
+ end
10
+
11
+ def shipment_address
12
+ associated_resource "shipment_address", false
13
+ end
5
14
  end
6
15
 
7
16
  end
@@ -1,4 +1,4 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module VersacommerceAPI
3
- VERSION = '1.0.11'
3
+ VERSION = '1.0.12'
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.11
4
+ version: 1.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - VersaCommerce
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-15 00:00:00.000000000 Z
11
+ date: 2016-02-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler