active_zuora 1.4.11 → 1.4.12

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.4.11
1
+ 1.4.12
data/active_zuora.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "active_zuora"
8
- s.version = "1.4.11"
8
+ s.version = "1.4.12"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Andy Fleener", "Ed Lebert", "Nate Greene"]
12
- s.date = "2013-08-20"
12
+ s.date = "2014-02-13"
13
13
  s.description = "A client for Zuora API"
14
14
  s.email = "andy.fleener@tstmedia.com"
15
15
  s.extra_rdoc_files = [
@@ -19,7 +19,7 @@ module Zuora
19
19
 
20
20
  def charge_tier_query(identifier_name, identifier_value)
21
21
  query = "#{identifier_name} = '#{identifier_value}'"
22
- query += " and endingUnit >= #{charge_quantity} and startingUnit <= #{charge_quantity}" if chargeModel == "Volume Pricing"
22
+ query += " and endingUnit >= #{charge_quantity} and startingUnit <= #{charge_quantity}" if tiered_pricing_model?
23
23
  query
24
24
  end
25
25
 
@@ -36,6 +36,10 @@ module Zuora
36
36
  self
37
37
  end
38
38
 
39
+ def tiered_pricing_model?
40
+ chargeModel == "Volume Pricing" || chargeModel == "Tiered Pricing"
41
+ end
42
+
39
43
  def charge_quantity
40
44
  quantity || 1
41
45
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_zuora
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.11
4
+ version: 1.4.12
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,11 +11,11 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2013-08-20 00:00:00.000000000Z
14
+ date: 2014-02-13 00:00:00.000000000Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: mumboe-soap4r
18
- requirement: &70101411730100 !ruby/object:Gem::Requirement
18
+ requirement: &70212804695900 !ruby/object:Gem::Requirement
19
19
  none: false
20
20
  requirements:
21
21
  - - ~>
@@ -23,10 +23,10 @@ dependencies:
23
23
  version: '1.5'
24
24
  type: :runtime
25
25
  prerelease: false
26
- version_requirements: *70101411730100
26
+ version_requirements: *70212804695900
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: json_pure
29
- requirement: &70101411729580 !ruby/object:Gem::Requirement
29
+ requirement: &70212804695220 !ruby/object:Gem::Requirement
30
30
  none: false
31
31
  requirements:
32
32
  - - ~>
@@ -34,10 +34,10 @@ dependencies:
34
34
  version: '1.4'
35
35
  type: :runtime
36
36
  prerelease: false
37
- version_requirements: *70101411729580
37
+ version_requirements: *70212804695220
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: rake
40
- requirement: &70101411729080 !ruby/object:Gem::Requirement
40
+ requirement: &70212804694600 !ruby/object:Gem::Requirement
41
41
  none: false
42
42
  requirements:
43
43
  - - ! '>='
@@ -45,10 +45,10 @@ dependencies:
45
45
  version: '0'
46
46
  type: :development
47
47
  prerelease: false
48
- version_requirements: *70101411729080
48
+ version_requirements: *70212804694600
49
49
  - !ruby/object:Gem::Dependency
50
50
  name: jeweler
51
- requirement: &70101411728540 !ruby/object:Gem::Requirement
51
+ requirement: &70212804694040 !ruby/object:Gem::Requirement
52
52
  none: false
53
53
  requirements:
54
54
  - - ! '>='
@@ -56,10 +56,10 @@ dependencies:
56
56
  version: '0'
57
57
  type: :development
58
58
  prerelease: false
59
- version_requirements: *70101411728540
59
+ version_requirements: *70212804694040
60
60
  - !ruby/object:Gem::Dependency
61
61
  name: mumboe-soap4r
62
- requirement: &70101411727940 !ruby/object:Gem::Requirement
62
+ requirement: &70212804687260 !ruby/object:Gem::Requirement
63
63
  none: false
64
64
  requirements:
65
65
  - - ! '>='
@@ -67,10 +67,10 @@ dependencies:
67
67
  version: 1.5.8
68
68
  type: :runtime
69
69
  prerelease: false
70
- version_requirements: *70101411727940
70
+ version_requirements: *70212804687260
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: json_pure
73
- requirement: &70101411727340 !ruby/object:Gem::Requirement
73
+ requirement: &70212804686740 !ruby/object:Gem::Requirement
74
74
  none: false
75
75
  requirements:
76
76
  - - ! '>='
@@ -78,7 +78,7 @@ dependencies:
78
78
  version: 1.4.6
79
79
  type: :runtime
80
80
  prerelease: false
81
- version_requirements: *70101411727340
81
+ version_requirements: *70212804686740
82
82
  description: A client for Zuora API
83
83
  email: andy.fleener@tstmedia.com
84
84
  executables: []
@@ -144,7 +144,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
144
144
  version: '0'
145
145
  segments:
146
146
  - 0
147
- hash: -3110873658135694121
147
+ hash: -2224501913552757264
148
148
  required_rubygems_version: !ruby/object:Gem::Requirement
149
149
  none: false
150
150
  requirements: