iron_bank 4.3.0 → 4.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/iron_bank/resources/rate_plan_charge.rb +18 -1
- data/lib/iron_bank/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc3ffa7de25e53c462aa82ff7424f97b635544fff01ff44d6ea75120963a2269
|
4
|
+
data.tar.gz: 31099c7915536ab4618ee0b803bbfca0cd8f0be509597e6b2b2ee3bfed4a3acb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ed6b67af34b029b3587319ad5f2ccd3082f882f4b7dd897a94a7ae8bd7a7b2e61b8721a3bb29fbe1a9017bf17ea7c6624df5920f247fcf999c3e07fd4869be2
|
7
|
+
data.tar.gz: 5d14de5c1b86cdc9cc7f32ea1dd16ea861ddc6a2700d1dfa48c5fee08f71f2581af52185cf8a9cb8939af149469c830f4112c08dd25bdb5ff7c3b5f61275cc2a
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
iron_bank (4.3.
|
4
|
+
iron_bank (4.3.1)
|
5
5
|
faraday (~> 0)
|
6
6
|
faraday_middleware (~> 0)
|
7
7
|
nokogiri (~> 1)
|
@@ -35,7 +35,7 @@ GEM
|
|
35
35
|
equalizer (0.0.11)
|
36
36
|
factory_bot (5.0.2)
|
37
37
|
activesupport (>= 4.2.0)
|
38
|
-
faraday (0.
|
38
|
+
faraday (0.16.2)
|
39
39
|
multipart-post (>= 1.2, < 3)
|
40
40
|
faraday_middleware (0.13.1)
|
41
41
|
faraday (>= 0.7.4, < 1.0)
|
@@ -5,12 +5,14 @@ module IronBank
|
|
5
5
|
# A rate plan charge belongs to a subscription rate plan.
|
6
6
|
#
|
7
7
|
class RatePlanCharge < Resource
|
8
|
+
extend Gem::Deprecate
|
9
|
+
|
8
10
|
def self.excluded_fields
|
9
11
|
super + single_resource_query_fields
|
10
12
|
end
|
11
13
|
|
12
14
|
def self.single_resource_query_fields
|
13
|
-
%w[RolloverBalance]
|
15
|
+
%w[RolloverBalance Price]
|
14
16
|
end
|
15
17
|
|
16
18
|
with_schema
|
@@ -25,6 +27,21 @@ module IronBank
|
|
25
27
|
def rollover_balance
|
26
28
|
remote[:rollover_balance] || reload.remote[:rollover_balance]
|
27
29
|
end
|
30
|
+
|
31
|
+
# NOTE: #price was only available when (1) the pricing model for the
|
32
|
+
# charge is either "Flat Fee" or "Per Unit" AND (2) the charge was
|
33
|
+
# queried through ZOQL, i.e, using `IronBank::Charge#where` method.
|
34
|
+
#
|
35
|
+
# Testing Zuora REST API (using the `IronBank::Charge#find` method)
|
36
|
+
# shows that Zuora does not return a `price` attribute in their
|
37
|
+
# response. This means we consider #price to be a remain from the
|
38
|
+
# SOAP ZOQL query operation. We are deprecating this method without
|
39
|
+
# replacement. Instead, users should be fetching the `#tiers` for
|
40
|
+
# the current charge and get the price information from there.
|
41
|
+
def price
|
42
|
+
nil
|
43
|
+
end
|
44
|
+
deprecate :price, :none, 2020, 1
|
28
45
|
end
|
29
46
|
end
|
30
47
|
end
|
data/lib/iron_bank/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: iron_bank
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.3.
|
4
|
+
version: 4.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mickael Pham
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: exe
|
13
13
|
cert_chain: []
|
14
|
-
date: 2019-
|
14
|
+
date: 2019-10-01 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: bump
|