apruve 2.0.0 → 2.0.1
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 +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/lib/apruve/resources/order.rb +1 -1
- data/lib/apruve/resources/order_item.rb +1 -1
- data/lib/apruve/version.rb +1 -1
- data/spec/apruve/resources/order_item_spec.rb +2 -2
- data/spec/apruve/resources/subscription_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c69a200e5d2e14411677c3242263eedf5d936908
|
|
4
|
+
data.tar.gz: c80043d647d2e96c4f8b62e6973d8e7fb6cb5af3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 332ca044f36438751dd82a0e536dca824d3df361a27f5b8b94562d78ea4fdb430603ef88dcfe3f293b8730f711a5180ca8abe65882d4382cd0651f61f1debb44
|
|
7
|
+
data.tar.gz: 30bc89e27bca5714c5a07877629a3d0dc864722a55f058f90656d930c650068e60e5f0187811998ff1a413d73571d3c7aa1613d5c91a60e0de2c1c26c3ce0018
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -81,7 +81,7 @@ module Apruve
|
|
|
81
81
|
|
|
82
82
|
# add the line items
|
|
83
83
|
self.order_items.each do |item|
|
|
84
|
-
str += "#{item.title}#{item.plan_code}#{item.
|
|
84
|
+
str += "#{item.title}#{item.plan_code}#{item.price_total_cents}#{item.price_ea_cents}"\
|
|
85
85
|
"#{item.quantity}#{item.merchant_notes}#{item.description}#{item.variant_info}#{item.sku}"\
|
|
86
86
|
"#{item.vendor}#{item.view_product_url}"
|
|
87
87
|
end
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
module Apruve
|
|
2
2
|
class OrderItem < Apruve::ApruveObject
|
|
3
|
-
attr_accessor :id, :title, :
|
|
3
|
+
attr_accessor :id, :title, :price_total_cents, :price_ea_cents, :quantity, :description, :merchant_notes,
|
|
4
4
|
:variant_info, :sku, :vendor, :view_product_url, :plan_code, :line_item_api_url,
|
|
5
5
|
:subscription_url
|
|
6
6
|
|
data/lib/apruve/version.rb
CHANGED
|
@@ -4,13 +4,13 @@ describe Apruve::OrderItem do
|
|
|
4
4
|
let (:line_item) do
|
|
5
5
|
Apruve::OrderItem.new(
|
|
6
6
|
title: 'line 2',
|
|
7
|
-
|
|
7
|
+
price_total_cents: '40'
|
|
8
8
|
)
|
|
9
9
|
end
|
|
10
10
|
subject { line_item }
|
|
11
11
|
|
|
12
12
|
it { should respond_to(:title) }
|
|
13
|
-
it { should respond_to(:
|
|
13
|
+
it { should respond_to(:price_total_cents) }
|
|
14
14
|
it { should respond_to(:price_ea_cents) }
|
|
15
15
|
it { should respond_to(:quantity) }
|
|
16
16
|
it { should respond_to(:description) }
|
|
@@ -27,7 +27,7 @@ describe Apruve::Subscription do
|
|
|
27
27
|
|
|
28
28
|
# from line_item
|
|
29
29
|
it { should respond_to(:title) }
|
|
30
|
-
it { should respond_to(:
|
|
30
|
+
it { should respond_to(:price_total_cents) }
|
|
31
31
|
it { should respond_to(:price_ea_cents) }
|
|
32
32
|
it { should respond_to(:quantity) }
|
|
33
33
|
it { should respond_to(:description) }
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: apruve
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.
|
|
4
|
+
version: 2.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Apruve, Inc.
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2017-
|
|
12
|
+
date: 2017-10-30 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: bundler
|