versacommerce_api 1.0.9 → 1.0.10
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 +8 -8
- data/CHANGELOG +6 -5
- data/Gemfile.lock +17 -18
- data/lib/versacommerce_api/resources/order.rb +8 -4
- data/lib/versacommerce_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
NzBjODFiM2EzZThjZWYwYjFjNDJiMmY2OWU3YmRjNzRjOGEwODFjMw==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
YzM4ZWQyOGQzNjMwYWUwOGVlZTg0MjA5M2Q3NmFlNDQwNzA1Yzg4OQ==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
YzgzZGQzMzE0ZGU5NTRhN2JiOTk5ZjljZmExZWY2NDIzMzYzMWZhMDFkY2Uz
|
|
10
|
+
ZDlmY2UwNmY4NTRlN2Y1NmNmMGFjMWMyYmM0ZDVjZTZmMDgxNmQ4YTA4YzNk
|
|
11
|
+
ZDliYTFhMWYzMzNjYjZiOGRkNGNjYTQxZmExYTQ2YTQxOThlZTA=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
NmZkOTUzNTZkOGEzZWJkMWRlZmE3OWE0ODVmMzViOWJhNTY3NmQxYzhmNDQ5
|
|
14
|
+
MTcwY2Q5Y2M0MTk5MGNkYTNjM2E2OWUwMTA4YjI3MmJlYmM0ZWE2OWYwNWI0
|
|
15
|
+
YmFhY2YzOTg5MzQwNTZjYTg3NjZiNGU5NDYzMTM0YTM1N2Q5NWE=
|
data/CHANGELOG
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
1.0.
|
|
2
|
-
1.0.
|
|
3
|
-
1.0.
|
|
4
|
-
1.0.
|
|
5
|
-
1.0.
|
|
1
|
+
1.0.10 - Associate items with order
|
|
2
|
+
1.0.9 - Added PaymentMethod resource
|
|
3
|
+
1.0.8 - Added Carrier resource
|
|
4
|
+
1.0.7 - Fixed YAML load bug
|
|
5
|
+
1.0.6 - Added Account resource
|
|
6
|
+
1.0.1 - First public release
|
data/Gemfile.lock
CHANGED
|
@@ -1,38 +1,37 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
versacommerce_api (1.0.
|
|
4
|
+
versacommerce_api (1.0.10)
|
|
5
5
|
activeresource (>= 3.2.14)
|
|
6
6
|
thor (>= 0.14.4)
|
|
7
7
|
|
|
8
8
|
GEM
|
|
9
9
|
remote: https://rubygems.org/
|
|
10
10
|
specs:
|
|
11
|
-
activemodel (4.
|
|
12
|
-
activesupport (= 4.
|
|
13
|
-
builder (~> 3.1
|
|
11
|
+
activemodel (4.2.1)
|
|
12
|
+
activesupport (= 4.2.1)
|
|
13
|
+
builder (~> 3.1)
|
|
14
14
|
activeresource (4.0.0)
|
|
15
15
|
activemodel (~> 4.0)
|
|
16
16
|
activesupport (~> 4.0)
|
|
17
17
|
rails-observers (~> 0.1.1)
|
|
18
|
-
activesupport (4.
|
|
19
|
-
i18n (~> 0.
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
thread_safe (~> 0.
|
|
23
|
-
tzinfo (~>
|
|
24
|
-
|
|
25
|
-
builder (3.1.4)
|
|
18
|
+
activesupport (4.2.1)
|
|
19
|
+
i18n (~> 0.7)
|
|
20
|
+
json (~> 1.7, >= 1.7.7)
|
|
21
|
+
minitest (~> 5.1)
|
|
22
|
+
thread_safe (~> 0.3, >= 0.3.4)
|
|
23
|
+
tzinfo (~> 1.1)
|
|
24
|
+
builder (3.2.2)
|
|
26
25
|
coderay (1.0.9)
|
|
27
26
|
diff-lcs (1.2.4)
|
|
28
27
|
fakeweb (1.3.0)
|
|
29
|
-
i18n (0.
|
|
28
|
+
i18n (0.7.0)
|
|
29
|
+
json (1.8.2)
|
|
30
30
|
metaclass (0.0.1)
|
|
31
31
|
method_source (0.8.2)
|
|
32
|
-
minitest (
|
|
32
|
+
minitest (5.5.1)
|
|
33
33
|
mocha (0.14.0)
|
|
34
34
|
metaclass (~> 0.0.1)
|
|
35
|
-
multi_json (1.9.2)
|
|
36
35
|
pry (0.9.12.2)
|
|
37
36
|
coderay (~> 1.0.5)
|
|
38
37
|
method_source (~> 0.8)
|
|
@@ -52,9 +51,9 @@ GEM
|
|
|
52
51
|
rspec-mocks (2.14.3)
|
|
53
52
|
slop (3.4.6)
|
|
54
53
|
thor (0.19.1)
|
|
55
|
-
thread_safe (0.3.
|
|
56
|
-
|
|
57
|
-
|
|
54
|
+
thread_safe (0.3.5)
|
|
55
|
+
tzinfo (1.2.2)
|
|
56
|
+
thread_safe (~> 0.1)
|
|
58
57
|
|
|
59
58
|
PLATFORMS
|
|
60
59
|
ruby
|
|
@@ -6,18 +6,22 @@ module VersacommerceAPI
|
|
|
6
6
|
# VersaCommerceShopApi::Order.find(:all, :params => {:include => 'items', :limit => 10})
|
|
7
7
|
class Order < Base
|
|
8
8
|
include Associatable
|
|
9
|
-
|
|
9
|
+
|
|
10
|
+
def items
|
|
11
|
+
associated_resource "items"
|
|
12
|
+
end
|
|
13
|
+
|
|
10
14
|
def payments
|
|
11
15
|
associated_resource "payment"
|
|
12
16
|
end
|
|
13
|
-
|
|
17
|
+
|
|
14
18
|
def shipping_address
|
|
15
19
|
associated_resource "shipping_address", false
|
|
16
20
|
end
|
|
17
|
-
|
|
21
|
+
|
|
18
22
|
def billing_address
|
|
19
23
|
associated_resource "billing_address", false
|
|
20
24
|
end
|
|
21
25
|
end
|
|
22
|
-
|
|
26
|
+
|
|
23
27
|
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.10
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- VersaCommerce
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2015-04-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|