killbill 8.3.0 → 8.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0f1ccd70a55b23376aa218718b92c6039d67d2b7
4
- data.tar.gz: 7bedb70d47746cfb35cb81cd6dfc26969f85b53d
3
+ metadata.gz: 4b24b6521c579ee81e3eaa2e9bd164a0a9c9a6a6
4
+ data.tar.gz: a5e1b8331da5bf78bb135c63b26bbddca008982f
5
5
  SHA512:
6
- metadata.gz: b3f8588f85ac21c46f12b0f4ade6310ad3f582f58003df22ede10eb01093fcc0cd4e396e77ef5e9040c80146e1a7ac6f40772b8028c6ba0b5712c699c148c053
7
- data.tar.gz: 326d4589c0ec928f646fcef67843472f002c97d51e05d89b0c1d74e02a927b4bcd4d34b7e3fec964871076db88204941054469f86550adbc1e5e8b90a078adb5
6
+ metadata.gz: e9a11b9a5388bf7cd1458fc6649b5a8f20dcfc383e19fcf1858edf39119aeb1468b333f23df0a2a3479e5b110a1d8d10de8ac49cdeceba40c160284917375132
7
+ data.tar.gz: 98d0b8417b688bb0f8e98f5b1df77a110ea4e59ff9e2f25d529ba363735742a26fa516799cc524598dd979946945ac84bbf35e7c520130d500e1bc5f77e9af48
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- killbill (8.3.0)
4
+ killbill (8.3.1)
5
5
  rack (>= 1.5.2)
6
6
  sinatra (~> 1.3.4)
7
7
  typhoeus (~> 0.6.9)
data/Jarfile CHANGED
@@ -6,7 +6,7 @@ jar 'org.kill-bill.billing.plugin:killbill-plugin-api-payment', '0.23'
6
6
  jar 'org.kill-bill.billing.plugin:killbill-plugin-api-control', '0.23'
7
7
  jar 'org.kill-bill.billing.plugin:killbill-plugin-api-catalog', '0.23'
8
8
  jar 'org.kill-bill.billing.plugin:killbill-plugin-api-entitlement', '0.23'
9
- jar 'org.kill-bill.billing:killbill-util:tests', '0.17.8'
10
- jar 'org.kill-bill.billing:killbill-util', '0.17.8'
9
+ jar 'org.kill-bill.billing:killbill-util:tests', '0.18.0'
10
+ jar 'org.kill-bill.billing:killbill-util', '0.18.0'
11
11
  jar 'org.mockito:mockito-all', '1.10.19'
12
12
  jar 'javax.servlet:javax.servlet-api', '3.1.0'
@@ -4,22 +4,20 @@
4
4
  - joda-time:joda-time:jar:2.3
5
5
  - org.weakref:jmxutils:jar:1.18
6
6
  - commons-beanutils:commons-beanutils:jar:1.8.3
7
- - org.kill-bill.billing:killbill-platform-api:jar:0.34
8
7
  - com.google.inject:guice:jar:3.0
9
8
  - org.osgi:org.osgi.core:jar:5.0.0
10
9
  - com.fasterxml.jackson.core:jackson-databind:jar:2.4.5
11
10
  - org.kill-bill.billing.plugin:killbill-plugin-api-currency:jar:0.23
11
+ - org.kill-bill.billing:killbill-platform-api:jar:0.36.1
12
12
  - com.samskivert:jmustache:jar:1.5
13
- - org.kill-bill.billing:killbill-util:jar:tests:0.17.8
14
13
  - org.kill-bill.commons:killbill-clock:jar:0.20
14
+ - org.kill-bill.billing:killbill-util:jar:0.18.0
15
15
  - com.fasterxml.jackson.dataformat:jackson-dataformat-csv:jar:2.4.5
16
- - org.kill-bill.billing:killbill-platform-osgi-api:jar:0.34
17
16
  - org.kill-bill.billing.plugin:killbill-plugin-api-entitlement:jar:0.23
18
17
  - org.bgee.log4jdbc-log4j2:log4jdbc-log4j2-jdbc4:jar:1.16
19
18
  - com.h2database:h2:jar:1.4.186
20
19
  - com.fasterxml.jackson.datatype:jackson-datatype-joda:jar:2.4.5
21
20
  - javax.activation:activation:jar:1.1
22
- - org.kill-bill.billing:killbill-internal-api:jar:0.17.8
23
21
  - org.javassist:javassist:jar:3.19.0-GA
24
22
  - org.skife.config:config-magic:jar:0.14
25
23
  - org.apache.commons:commons-email:jar:1.2
@@ -33,15 +31,14 @@
33
31
  - org.slf4j:jcl-over-slf4j:jar:1.7.21
34
32
  - javax.mail:mail:jar:1.4.1
35
33
  - io.dropwizard.metrics:metrics-ehcache:jar:3.1.1
36
- - org.kill-bill.billing:killbill-platform-osgi:jar:0.34
37
34
  - org.jdbi:jdbi:jar:2.62
38
35
  - com.fasterxml.jackson.core:jackson-core:jar:2.4.5
39
36
  - org.apache.felix:org.apache.felix.framework:jar:4.4.1
40
37
  - org.joda:joda-money:jar:0.9
41
38
  - org.kill-bill.billing.plugin:killbill-plugin-api-payment:jar:0.23
42
- - org.kill-bill.billing:killbill-util:jar:0.17.8
43
39
  - org.apache.shiro:shiro-core:jar:1.2.3
44
- - org.kill-bill.billing:killbill-platform-base:jar:0.34
40
+ - org.kill-bill.billing:killbill-internal-api:jar:0.18.0
41
+ - org.kill-bill.billing:killbill-util:jar:tests:0.18.0
45
42
  - org.kill-bill.billing.plugin:killbill-plugin-api-control:jar:0.23
46
43
  - org.kill-bill.commons:killbill-jdbi:jar:0.20
47
44
  - com.google.guava:guava:jar:r09
@@ -49,10 +46,13 @@
49
46
  - org.osgi:org.osgi.compendium:jar:5.0.0
50
47
  - org.kill-bill.commons:killbill-xmlloader:jar:0.20
51
48
  - javax.servlet:javax.servlet-api:jar:3.1.0
49
+ - org.kill-bill.billing:killbill-platform-osgi:jar:0.36.1
50
+ - org.kill-bill.billing:killbill-platform-base:jar:0.36.1
52
51
  - org.apache.shiro:shiro-ehcache:jar:1.2.3
53
52
  - javax.inject:javax.inject:jar:1
54
53
  - org.kill-bill.billing.plugin:killbill-plugin-api-invoice:jar:0.23
55
54
  - org.kill-bill.billing:killbill-api:jar:0.50
55
+ - org.kill-bill.billing:killbill-platform-osgi-api:jar:0.36.1
56
56
  - com.google.inject.extensions:guice-multibindings:jar:3.0
57
57
  - net.sf.ehcache:ehcache:jar:2.9.1
58
58
  - org.kill-bill.commons:killbill-locker:jar:0.20
data/NEWS CHANGED
@@ -1,3 +1,6 @@
1
+ 8.3.1
2
+ Fix outdated EntitlementPluginApi models
3
+
1
4
  8.3.0
2
5
  Initial release for Kill Bill 0.18.x
3
6
 
data/README.md CHANGED
@@ -16,10 +16,10 @@ All plugin types can interact with Kill Bill directly via APIs and expose HTTP e
16
16
  Kill Bill compatibility
17
17
  -----------------------
18
18
 
19
- | OSS parent version | Kill Bill version |
20
- | -----------------: | ----------------: |
21
- | 7.x.y | 0.16.z |
22
- | 8.3.y | 0.18.z |
19
+ | Framework version | Kill Bill version |
20
+ | ----------------: | ----------------: |
21
+ | 7.x.y | 0.16.z |
22
+ | 8.x.y | 0.18.z |
23
23
 
24
24
 
25
25
  How to write a Notification plugin
@@ -1,11 +1,12 @@
1
- jar 'org.kill-bill.billing:killbill-api', '0.32'
2
- jar 'org.kill-bill.billing.plugin:killbill-plugin-api-currency', '0.18'
3
- jar 'org.kill-bill.billing.plugin:killbill-plugin-api-invoice', '0.18'
4
- jar 'org.kill-bill.billing.plugin:killbill-plugin-api-notification', '0.18'
5
- jar 'org.kill-bill.billing.plugin:killbill-plugin-api-payment', '0.18'
6
- jar 'org.kill-bill.billing.plugin:killbill-plugin-api-control', '0.18'
7
- jar 'org.kill-bill.billing.plugin:killbill-plugin-api-catalog', '0.18'
8
- jar 'org.kill-bill.billing.plugin:killbill-plugin-api-entitlement', '0.18'
9
- jar 'org.kill-bill.billing:killbill-util:tests', '0.15.10'
1
+ jar 'org.kill-bill.billing:killbill-api', '0.50'
2
+ jar 'org.kill-bill.billing.plugin:killbill-plugin-api-currency', '0.23'
3
+ jar 'org.kill-bill.billing.plugin:killbill-plugin-api-invoice', '0.23'
4
+ jar 'org.kill-bill.billing.plugin:killbill-plugin-api-notification', '0.23'
5
+ jar 'org.kill-bill.billing.plugin:killbill-plugin-api-payment', '0.23'
6
+ jar 'org.kill-bill.billing.plugin:killbill-plugin-api-control', '0.23'
7
+ jar 'org.kill-bill.billing.plugin:killbill-plugin-api-catalog', '0.23'
8
+ jar 'org.kill-bill.billing.plugin:killbill-plugin-api-entitlement', '0.23'
9
+ jar 'org.kill-bill.billing:killbill-util:tests', '0.18.0'
10
+ jar 'org.kill-bill.billing:killbill-util', '0.18.0'
10
11
  jar 'org.mockito:mockito-all', '1.10.19'
11
12
  jar 'javax.servlet:javax.servlet-api', '3.1.0'
@@ -22,7 +22,7 @@ Gem::Specification.new do |s|
22
22
 
23
23
  s.rdoc_options << '--exclude' << '.'
24
24
 
25
- s.add_dependency 'killbill', '~> 7.0'
25
+ s.add_dependency 'killbill', '~> 8.0'
26
26
 
27
27
  s.add_dependency 'sinatra', '~> 1.3.4'
28
28
  s.add_dependency 'thread_safe', '~> 0.3.4'
@@ -34,7 +34,7 @@ module Killbill
34
34
 
35
35
  include org.killbill.billing.entitlement.plugin.api.EntitlementContext
36
36
 
37
- attr_accessor :user_token, :user_name, :call_origin, :user_type, :reason_code, :comments, :created_date, :updated_date, :tenant_id, :operation_type, :account_id, :destination_account_id, :bundle_id, :external_key, :entitlement_specifiers, :entitlement_effective_date, :billing_effective_date, :billing_action_policy, :plugin_properties
37
+ attr_accessor :user_token, :user_name, :call_origin, :user_type, :reason_code, :comments, :created_date, :updated_date, :tenant_id, :operation_type, :account_id, :destination_account_id, :base_entitlement_with_add_ons_specifiers, :billing_action_policy, :plugin_properties
38
38
 
39
39
  def initialize()
40
40
  end
@@ -82,30 +82,14 @@ module Killbill
82
82
  # conversion for destination_account_id [type = java.util.UUID]
83
83
  @destination_account_id = java.util.UUID.fromString(@destination_account_id.to_s) unless @destination_account_id.nil?
84
84
 
85
- # conversion for bundle_id [type = java.util.UUID]
86
- @bundle_id = java.util.UUID.fromString(@bundle_id.to_s) unless @bundle_id.nil?
87
-
88
- # conversion for external_key [type = java.lang.String]
89
- @external_key = @external_key.to_s unless @external_key.nil?
90
-
91
- # conversion for entitlement_specifiers [type = java.util.List]
85
+ # conversion for base_entitlement_with_add_ons_specifiers [type = java.lang.Iterable]
92
86
  tmp = java.util.ArrayList.new
93
- (@entitlement_specifiers || []).each do |m|
94
- # conversion for m [type = org.killbill.billing.entitlement.api.EntitlementSpecifier]
87
+ (@base_entitlement_with_add_ons_specifiers || []).each do |m|
88
+ # conversion for m [type = org.killbill.billing.entitlement.api.BaseEntitlementWithAddOnsSpecifier]
95
89
  m = m.to_java unless m.nil?
96
90
  tmp.add(m)
97
91
  end
98
- @entitlement_specifiers = tmp
99
-
100
- # conversion for entitlement_effective_date [type = org.joda.time.LocalDate]
101
- if !@entitlement_effective_date.nil?
102
- @entitlement_effective_date = Java::org.joda.time.LocalDate.parse(@entitlement_effective_date.to_s)
103
- end
104
-
105
- # conversion for billing_effective_date [type = org.joda.time.LocalDate]
106
- if !@billing_effective_date.nil?
107
- @billing_effective_date = Java::org.joda.time.LocalDate.parse(@billing_effective_date.to_s)
108
- end
92
+ @base_entitlement_with_add_ons_specifiers = tmp
109
93
 
110
94
  # conversion for billing_action_policy [type = org.killbill.billing.catalog.api.BillingActionPolicy]
111
95
  @billing_action_policy = Java::org.killbill.billing.catalog.api.BillingActionPolicy.value_of( @billing_action_policy.to_s ) unless @billing_action_policy.nil?
@@ -175,34 +159,15 @@ module Killbill
175
159
  @destination_account_id = j_obj.destination_account_id
176
160
  @destination_account_id = @destination_account_id.nil? ? nil : @destination_account_id.to_s
177
161
 
178
- # conversion for bundle_id [type = java.util.UUID]
179
- @bundle_id = j_obj.bundle_id
180
- @bundle_id = @bundle_id.nil? ? nil : @bundle_id.to_s
181
-
182
- # conversion for external_key [type = java.lang.String]
183
- @external_key = j_obj.external_key
184
-
185
- # conversion for entitlement_specifiers [type = java.util.List]
186
- @entitlement_specifiers = j_obj.entitlement_specifiers
162
+ # conversion for base_entitlement_with_add_ons_specifiers [type = java.lang.Iterable]
163
+ @base_entitlement_with_add_ons_specifiers = j_obj.base_entitlement_with_add_ons_specifiers
187
164
  tmp = []
188
- (@entitlement_specifiers || []).each do |m|
189
- # conversion for m [type = org.killbill.billing.entitlement.api.EntitlementSpecifier]
190
- m = Killbill::Plugin::Model::EntitlementSpecifier.new.to_ruby(m) unless m.nil?
165
+ (@base_entitlement_with_add_ons_specifiers.nil? ? [] : @base_entitlement_with_add_ons_specifiers.iterator).each do |m|
166
+ # conversion for m [type = org.killbill.billing.entitlement.api.BaseEntitlementWithAddOnsSpecifier]
167
+ m = Killbill::Plugin::Model::BaseEntitlementWithAddOnsSpecifier.new.to_ruby(m) unless m.nil?
191
168
  tmp << m
192
169
  end
193
- @entitlement_specifiers = tmp
194
-
195
- # conversion for entitlement_effective_date [type = org.joda.time.LocalDate]
196
- @entitlement_effective_date = j_obj.entitlement_effective_date
197
- if !@entitlement_effective_date.nil?
198
- @entitlement_effective_date = @entitlement_effective_date.to_s
199
- end
200
-
201
- # conversion for billing_effective_date [type = org.joda.time.LocalDate]
202
- @billing_effective_date = j_obj.billing_effective_date
203
- if !@billing_effective_date.nil?
204
- @billing_effective_date = @billing_effective_date.to_s
205
- end
170
+ @base_entitlement_with_add_ons_specifiers = tmp
206
171
 
207
172
  # conversion for billing_action_policy [type = org.killbill.billing.catalog.api.BillingActionPolicy]
208
173
  @billing_action_policy = j_obj.billing_action_policy
@@ -34,7 +34,7 @@ module Killbill
34
34
 
35
35
  include org.killbill.billing.entitlement.plugin.api.PriorEntitlementResult
36
36
 
37
- attr_accessor :is_aborted, :adjusted_entitlement_effective_date, :adjusted_billing_effective_date, :adjusted_billing_action_policy, :adjusted_entitlement_specifiers, :adjusted_plugin_properties
37
+ attr_accessor :is_aborted, :adjusted_billing_action_policy, :adjusted_base_entitlement_with_add_ons_specifiers, :adjusted_plugin_properties
38
38
 
39
39
  def initialize()
40
40
  end
@@ -43,27 +43,17 @@ module Killbill
43
43
  # conversion for is_aborted [type = boolean]
44
44
  @is_aborted = @is_aborted.nil? ? java.lang.Boolean.new(false) : java.lang.Boolean.new(@is_aborted)
45
45
 
46
- # conversion for adjusted_entitlement_effective_date [type = org.joda.time.LocalDate]
47
- if !@adjusted_entitlement_effective_date.nil?
48
- @adjusted_entitlement_effective_date = Java::org.joda.time.LocalDate.parse(@adjusted_entitlement_effective_date.to_s)
49
- end
50
-
51
- # conversion for adjusted_billing_effective_date [type = org.joda.time.LocalDate]
52
- if !@adjusted_billing_effective_date.nil?
53
- @adjusted_billing_effective_date = Java::org.joda.time.LocalDate.parse(@adjusted_billing_effective_date.to_s)
54
- end
55
-
56
46
  # conversion for adjusted_billing_action_policy [type = org.killbill.billing.catalog.api.BillingActionPolicy]
57
47
  @adjusted_billing_action_policy = Java::org.killbill.billing.catalog.api.BillingActionPolicy.value_of( @adjusted_billing_action_policy.to_s ) unless @adjusted_billing_action_policy.nil?
58
48
 
59
- # conversion for adjusted_entitlement_specifiers [type = java.util.List]
49
+ # conversion for adjusted_base_entitlement_with_add_ons_specifiers [type = java.lang.Iterable]
60
50
  tmp = java.util.ArrayList.new
61
- (@adjusted_entitlement_specifiers || []).each do |m|
62
- # conversion for m [type = org.killbill.billing.entitlement.api.EntitlementSpecifier]
51
+ (@adjusted_base_entitlement_with_add_ons_specifiers || []).each do |m|
52
+ # conversion for m [type = org.killbill.billing.entitlement.api.BaseEntitlementWithAddOnsSpecifier]
63
53
  m = m.to_java unless m.nil?
64
54
  tmp.add(m)
65
55
  end
66
- @adjusted_entitlement_specifiers = tmp
56
+ @adjusted_base_entitlement_with_add_ons_specifiers = tmp
67
57
 
68
58
  # conversion for adjusted_plugin_properties [type = java.lang.Iterable]
69
59
  tmp = java.util.ArrayList.new
@@ -86,31 +76,19 @@ module Killbill
86
76
  @is_aborted = tmp_bool ? true : false
87
77
  end
88
78
 
89
- # conversion for adjusted_entitlement_effective_date [type = org.joda.time.LocalDate]
90
- @adjusted_entitlement_effective_date = j_obj.adjusted_entitlement_effective_date
91
- if !@adjusted_entitlement_effective_date.nil?
92
- @adjusted_entitlement_effective_date = @adjusted_entitlement_effective_date.to_s
93
- end
94
-
95
- # conversion for adjusted_billing_effective_date [type = org.joda.time.LocalDate]
96
- @adjusted_billing_effective_date = j_obj.adjusted_billing_effective_date
97
- if !@adjusted_billing_effective_date.nil?
98
- @adjusted_billing_effective_date = @adjusted_billing_effective_date.to_s
99
- end
100
-
101
79
  # conversion for adjusted_billing_action_policy [type = org.killbill.billing.catalog.api.BillingActionPolicy]
102
80
  @adjusted_billing_action_policy = j_obj.adjusted_billing_action_policy
103
81
  @adjusted_billing_action_policy = @adjusted_billing_action_policy.to_s.to_sym unless @adjusted_billing_action_policy.nil?
104
82
 
105
- # conversion for adjusted_entitlement_specifiers [type = java.util.List]
106
- @adjusted_entitlement_specifiers = j_obj.adjusted_entitlement_specifiers
83
+ # conversion for adjusted_base_entitlement_with_add_ons_specifiers [type = java.lang.Iterable]
84
+ @adjusted_base_entitlement_with_add_ons_specifiers = j_obj.adjusted_base_entitlement_with_add_ons_specifiers
107
85
  tmp = []
108
- (@adjusted_entitlement_specifiers || []).each do |m|
109
- # conversion for m [type = org.killbill.billing.entitlement.api.EntitlementSpecifier]
110
- m = Killbill::Plugin::Model::EntitlementSpecifier.new.to_ruby(m) unless m.nil?
86
+ (@adjusted_base_entitlement_with_add_ons_specifiers.nil? ? [] : @adjusted_base_entitlement_with_add_ons_specifiers.iterator).each do |m|
87
+ # conversion for m [type = org.killbill.billing.entitlement.api.BaseEntitlementWithAddOnsSpecifier]
88
+ m = Killbill::Plugin::Model::BaseEntitlementWithAddOnsSpecifier.new.to_ruby(m) unless m.nil?
111
89
  tmp << m
112
90
  end
113
- @adjusted_entitlement_specifiers = tmp
91
+ @adjusted_base_entitlement_with_add_ons_specifiers = tmp
114
92
 
115
93
  # conversion for adjusted_plugin_properties [type = java.lang.Iterable]
116
94
  @adjusted_plugin_properties = j_obj.adjusted_plugin_properties
@@ -35,6 +35,7 @@ require 'killbill/gen/plugin-api/notification_plugin_api'
35
35
  require 'killbill/gen/plugin-api/payment_metadata'
36
36
  require 'killbill/gen/plugin-api/subscription_metadata'
37
37
  require 'killbill/gen/plugin-api/invoice_plugin_api'
38
+ require 'killbill/gen/plugin-api/currency_plugin_api'
38
39
  require 'killbill/gen/plugin-api/control_result'
39
40
  require 'killbill/gen/plugin-api/on_failure_payment_control_result'
40
41
  require 'killbill/gen/plugin-api/on_success_payment_control_result'
@@ -45,7 +46,12 @@ require 'killbill/gen/plugin-api/prior_payment_control_result'
45
46
  require 'killbill/gen/plugin-api/catalog_plugin_api'
46
47
  require 'killbill/gen/plugin-api/standalone_plugin_catalog'
47
48
  require 'killbill/gen/plugin-api/versioned_plugin_catalog'
48
- require 'killbill/gen/plugin-api/currency_plugin_api'
49
+ require 'killbill/gen/plugin-api/entitlement_context'
50
+ require 'killbill/gen/plugin-api/entitlement_plugin_api'
51
+ require 'killbill/gen/plugin-api/entitlement_plugin_api_exception'
52
+ require 'killbill/gen/plugin-api/on_failure_entitlement_result'
53
+ require 'killbill/gen/plugin-api/on_success_entitlement_result'
54
+ require 'killbill/gen/plugin-api/prior_entitlement_result'
49
55
  require 'killbill/gen/plugin-api/gateway_notification'
50
56
  require 'killbill/gen/plugin-api/hosted_payment_page_form_descriptor'
51
57
  require 'killbill/gen/plugin-api/payment_transaction_info_plugin'
@@ -1,3 +1,3 @@
1
1
  module Killbill
2
- VERSION = '8.3.0'
2
+ VERSION = '8.3.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: killbill
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.3.0
4
+ version: 8.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kill Bill core team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-13 00:00:00.000000000 Z
11
+ date: 2016-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sinatra