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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9d7705dc13dc90111cd299c5bada4b347c470f71
4
- data.tar.gz: fa98a6139069483ea38ee4c8b27c8d995fdbf594
3
+ metadata.gz: c69a200e5d2e14411677c3242263eedf5d936908
4
+ data.tar.gz: c80043d647d2e96c4f8b62e6973d8e7fb6cb5af3
5
5
  SHA512:
6
- metadata.gz: 370b81788ff4a080c63dddda24130ea31ac0f288510a020c48e534f2289739cd3b118322a4ff56a9f88fa56edca1908ea2fb61e7bfda6043dfe0c31d5c4d139d
7
- data.tar.gz: 291e7b9b72cacd494f80252f42c144e7aa011a9e23c9efd07e0fb87ddab3573f358e843193b0a3965b72ebf123c6df4459ba1296fb99f3b66995f6a3810205c7
6
+ metadata.gz: 332ca044f36438751dd82a0e536dca824d3df361a27f5b8b94562d78ea4fdb430603ef88dcfe3f293b8730f711a5180ca8abe65882d4382cd0651f61f1debb44
7
+ data.tar.gz: 30bc89e27bca5714c5a07877629a3d0dc864722a55f058f90656d930c650068e60e5f0187811998ff1a413d73571d3c7aa1613d5c91a60e0de2c1c26c3ce0018
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- apruve (1.1.7)
4
+ apruve (2.0.1)
5
5
  addressable (~> 2.3)
6
6
  faraday (>= 0.8.6, <= 0.9.0)
7
7
  faraday_middleware (~> 0.9)
data/README.md CHANGED
@@ -52,7 +52,7 @@ For [app.apruve.com](https://app.apruve.com)
52
52
  sku: 'LTR-20R',
53
53
  price_ea_cents: 1200,
54
54
  quantity: 3,
55
- amount_cents: 3600,
55
+ price_total_cents: 3600,
56
56
  view_product_url: 'https://www.example.com/letter-paper'
57
57
  )
58
58
 
@@ -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.amount_cents}#{item.price_ea_cents}"\
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, :amount_cents, :price_ea_cents, :quantity, :description, :merchant_notes,
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
 
@@ -1,3 +1,3 @@
1
1
  module Apruve
2
- VERSION = '2.0.0'
2
+ VERSION = '2.0.1'
3
3
  end
@@ -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
- amount_cents: '40'
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(:amount_cents) }
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(:amount_cents) }
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.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-09-21 00:00:00.000000000 Z
12
+ date: 2017-10-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler