killbill 5.2.0 → 6.0.0
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 +6 -13
- data/Jarfile +1 -1
- data/Jarfile.lock +8 -8
- data/gen_config/api.conf +2 -0
- data/generators/active_merchant/templates/Jarfile.rb +1 -1
- data/lib/killbill.rb +4 -0
- data/lib/killbill/gen/api/entitlement_api.rb +110 -0
- data/lib/killbill/gen/api/entitlement_specifier.rb +77 -0
- data/lib/killbill/gen/api/killbill_nodes_api.rb +74 -0
- data/lib/killbill/gen/api/node_command.rb +76 -0
- data/lib/killbill/gen/api/node_command_metadata.rb +70 -0
- data/lib/killbill/gen/api/node_command_property.rb +61 -0
- data/lib/killbill/gen/api/node_info.rb +134 -0
- data/lib/killbill/gen/api/osgi_killbill.rb +15 -1
- data/lib/killbill/gen/api/plugin_info.rb +100 -0
- data/lib/killbill/gen/api/plugin_node_command_metadata.rb +80 -0
- data/lib/killbill/gen/api/plugin_service_info.rb +63 -0
- data/lib/killbill/gen/api/plugins_info_api.rb +75 -0
- data/lib/killbill/gen/api/require_gen.rb +11 -0
- data/lib/killbill/gen/api/security_api.rb +236 -0
- data/lib/killbill/gen/plugin-api/broadcast_metadata.rb +67 -0
- data/lib/killbill/gen/plugin-api/entitlement_context.rb +11 -18
- data/lib/killbill/gen/plugin-api/prior_entitlement_result.rb +11 -18
- data/lib/killbill/gen/plugin-api/require_gen.rb +1 -0
- data/lib/killbill/version.rb +1 -1
- metadata +156 -154
@@ -0,0 +1,70 @@
|
|
1
|
+
#############################################################################################
|
2
|
+
# #
|
3
|
+
# Copyright 2010-2013 Ning, Inc. #
|
4
|
+
# Copyright 2014 Groupon, Inc. #
|
5
|
+
# Copyright 2014 The Billing Project, LLC #
|
6
|
+
# #
|
7
|
+
# The Billing Project licenses this file to you under the Apache License, version 2.0 #
|
8
|
+
# (the "License"); you may not use this file except in compliance with the #
|
9
|
+
# License. You may obtain a copy of the License at: #
|
10
|
+
# #
|
11
|
+
# http://www.apache.org/licenses/LICENSE-2.0 #
|
12
|
+
# #
|
13
|
+
# Unless required by applicable law or agreed to in writing, software #
|
14
|
+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT #
|
15
|
+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the #
|
16
|
+
# License for the specific language governing permissions and limitations #
|
17
|
+
# under the License. #
|
18
|
+
# #
|
19
|
+
#############################################################################################
|
20
|
+
|
21
|
+
|
22
|
+
#
|
23
|
+
# DO NOT EDIT!!!
|
24
|
+
# File automatically generated by killbill-java-parser (git@github.com:killbill/killbill-java-parser.git)
|
25
|
+
#
|
26
|
+
|
27
|
+
|
28
|
+
module Killbill
|
29
|
+
module Plugin
|
30
|
+
module Model
|
31
|
+
|
32
|
+
java_package 'org.killbill.billing.util.nodes'
|
33
|
+
class NodeCommandMetadata
|
34
|
+
|
35
|
+
include org.killbill.billing.util.nodes.NodeCommandMetadata
|
36
|
+
|
37
|
+
attr_accessor :properties
|
38
|
+
|
39
|
+
def initialize()
|
40
|
+
end
|
41
|
+
|
42
|
+
def to_java()
|
43
|
+
# conversion for properties [type = java.util.List]
|
44
|
+
tmp = java.util.ArrayList.new
|
45
|
+
(@properties || []).each do |m|
|
46
|
+
# conversion for m [type = org.killbill.billing.util.nodes.NodeCommandProperty]
|
47
|
+
m = m.to_java unless m.nil?
|
48
|
+
tmp.add(m)
|
49
|
+
end
|
50
|
+
@properties = tmp
|
51
|
+
self
|
52
|
+
end
|
53
|
+
|
54
|
+
def to_ruby(j_obj)
|
55
|
+
# conversion for properties [type = java.util.List]
|
56
|
+
@properties = j_obj.properties
|
57
|
+
tmp = []
|
58
|
+
(@properties || []).each do |m|
|
59
|
+
# conversion for m [type = org.killbill.billing.util.nodes.NodeCommandProperty]
|
60
|
+
m = Killbill::Plugin::Model::NodeCommandProperty.new.to_ruby(m) unless m.nil?
|
61
|
+
tmp << m
|
62
|
+
end
|
63
|
+
@properties = tmp
|
64
|
+
self
|
65
|
+
end
|
66
|
+
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
@@ -0,0 +1,61 @@
|
|
1
|
+
#############################################################################################
|
2
|
+
# #
|
3
|
+
# Copyright 2010-2013 Ning, Inc. #
|
4
|
+
# Copyright 2014 Groupon, Inc. #
|
5
|
+
# Copyright 2014 The Billing Project, LLC #
|
6
|
+
# #
|
7
|
+
# The Billing Project licenses this file to you under the Apache License, version 2.0 #
|
8
|
+
# (the "License"); you may not use this file except in compliance with the #
|
9
|
+
# License. You may obtain a copy of the License at: #
|
10
|
+
# #
|
11
|
+
# http://www.apache.org/licenses/LICENSE-2.0 #
|
12
|
+
# #
|
13
|
+
# Unless required by applicable law or agreed to in writing, software #
|
14
|
+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT #
|
15
|
+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the #
|
16
|
+
# License for the specific language governing permissions and limitations #
|
17
|
+
# under the License. #
|
18
|
+
# #
|
19
|
+
#############################################################################################
|
20
|
+
|
21
|
+
|
22
|
+
#
|
23
|
+
# DO NOT EDIT!!!
|
24
|
+
# File automatically generated by killbill-java-parser (git@github.com:killbill/killbill-java-parser.git)
|
25
|
+
#
|
26
|
+
|
27
|
+
|
28
|
+
module Killbill
|
29
|
+
module Plugin
|
30
|
+
module Model
|
31
|
+
|
32
|
+
class NodeCommandProperty
|
33
|
+
|
34
|
+
|
35
|
+
attr_accessor :key, :value
|
36
|
+
|
37
|
+
def initialize()
|
38
|
+
end
|
39
|
+
|
40
|
+
def to_java()
|
41
|
+
# conversion for key [type = java.lang.String]
|
42
|
+
@key = @key.to_s unless @key.nil?
|
43
|
+
|
44
|
+
# conversion for value [type = java.lang.Object]
|
45
|
+
@value = @value.to_s unless @value.nil?
|
46
|
+
Java::org.killbill.billing.util.nodes.NodeCommandProperty.new(@key, @value)
|
47
|
+
end
|
48
|
+
|
49
|
+
def to_ruby(j_obj)
|
50
|
+
# conversion for key [type = java.lang.String]
|
51
|
+
@key = j_obj.key
|
52
|
+
|
53
|
+
# conversion for value [type = java.lang.Object]
|
54
|
+
@value = j_obj.value
|
55
|
+
self
|
56
|
+
end
|
57
|
+
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
@@ -0,0 +1,134 @@
|
|
1
|
+
#############################################################################################
|
2
|
+
# #
|
3
|
+
# Copyright 2010-2013 Ning, Inc. #
|
4
|
+
# Copyright 2014 Groupon, Inc. #
|
5
|
+
# Copyright 2014 The Billing Project, LLC #
|
6
|
+
# #
|
7
|
+
# The Billing Project licenses this file to you under the Apache License, version 2.0 #
|
8
|
+
# (the "License"); you may not use this file except in compliance with the #
|
9
|
+
# License. You may obtain a copy of the License at: #
|
10
|
+
# #
|
11
|
+
# http://www.apache.org/licenses/LICENSE-2.0 #
|
12
|
+
# #
|
13
|
+
# Unless required by applicable law or agreed to in writing, software #
|
14
|
+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT #
|
15
|
+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the #
|
16
|
+
# License for the specific language governing permissions and limitations #
|
17
|
+
# under the License. #
|
18
|
+
# #
|
19
|
+
#############################################################################################
|
20
|
+
|
21
|
+
|
22
|
+
#
|
23
|
+
# DO NOT EDIT!!!
|
24
|
+
# File automatically generated by killbill-java-parser (git@github.com:killbill/killbill-java-parser.git)
|
25
|
+
#
|
26
|
+
|
27
|
+
|
28
|
+
module Killbill
|
29
|
+
module Plugin
|
30
|
+
module Model
|
31
|
+
|
32
|
+
java_package 'org.killbill.billing.util.nodes'
|
33
|
+
class NodeInfo
|
34
|
+
|
35
|
+
include org.killbill.billing.util.nodes.NodeInfo
|
36
|
+
|
37
|
+
attr_accessor :node_name, :boot_time, :last_updated_date, :killbill_version, :api_version, :platform_version, :common_version, :plugin_api_version, :plugin_info
|
38
|
+
|
39
|
+
def initialize()
|
40
|
+
end
|
41
|
+
|
42
|
+
def to_java()
|
43
|
+
# conversion for node_name [type = java.lang.String]
|
44
|
+
@node_name = @node_name.to_s unless @node_name.nil?
|
45
|
+
|
46
|
+
# conversion for boot_time [type = org.joda.time.DateTime]
|
47
|
+
if !@boot_time.nil?
|
48
|
+
@boot_time = (@boot_time.kind_of? Time) ? DateTime.parse(@boot_time.to_s) : @boot_time
|
49
|
+
@boot_time = Java::org.joda.time.DateTime.new(@boot_time.to_s, Java::org.joda.time.DateTimeZone::UTC)
|
50
|
+
end
|
51
|
+
|
52
|
+
# conversion for last_updated_date [type = org.joda.time.DateTime]
|
53
|
+
if !@last_updated_date.nil?
|
54
|
+
@last_updated_date = (@last_updated_date.kind_of? Time) ? DateTime.parse(@last_updated_date.to_s) : @last_updated_date
|
55
|
+
@last_updated_date = Java::org.joda.time.DateTime.new(@last_updated_date.to_s, Java::org.joda.time.DateTimeZone::UTC)
|
56
|
+
end
|
57
|
+
|
58
|
+
# conversion for killbill_version [type = java.lang.String]
|
59
|
+
@killbill_version = @killbill_version.to_s unless @killbill_version.nil?
|
60
|
+
|
61
|
+
# conversion for api_version [type = java.lang.String]
|
62
|
+
@api_version = @api_version.to_s unless @api_version.nil?
|
63
|
+
|
64
|
+
# conversion for platform_version [type = java.lang.String]
|
65
|
+
@platform_version = @platform_version.to_s unless @platform_version.nil?
|
66
|
+
|
67
|
+
# conversion for common_version [type = java.lang.String]
|
68
|
+
@common_version = @common_version.to_s unless @common_version.nil?
|
69
|
+
|
70
|
+
# conversion for plugin_api_version [type = java.lang.String]
|
71
|
+
@plugin_api_version = @plugin_api_version.to_s unless @plugin_api_version.nil?
|
72
|
+
|
73
|
+
# conversion for plugin_info [type = java.lang.Iterable]
|
74
|
+
tmp = java.util.ArrayList.new
|
75
|
+
(@plugin_info || []).each do |m|
|
76
|
+
# conversion for m [type = org.killbill.billing.osgi.api.PluginInfo]
|
77
|
+
m = m.to_java unless m.nil?
|
78
|
+
tmp.add(m)
|
79
|
+
end
|
80
|
+
@plugin_info = tmp
|
81
|
+
self
|
82
|
+
end
|
83
|
+
|
84
|
+
def to_ruby(j_obj)
|
85
|
+
# conversion for node_name [type = java.lang.String]
|
86
|
+
@node_name = j_obj.node_name
|
87
|
+
|
88
|
+
# conversion for boot_time [type = org.joda.time.DateTime]
|
89
|
+
@boot_time = j_obj.boot_time
|
90
|
+
if !@boot_time.nil?
|
91
|
+
fmt = Java::org.joda.time.format.ISODateTimeFormat.date_time_no_millis # See https://github.com/killbill/killbill-java-parser/issues/3
|
92
|
+
str = fmt.print(@boot_time)
|
93
|
+
@boot_time = DateTime.iso8601(str)
|
94
|
+
end
|
95
|
+
|
96
|
+
# conversion for last_updated_date [type = org.joda.time.DateTime]
|
97
|
+
@last_updated_date = j_obj.last_updated_date
|
98
|
+
if !@last_updated_date.nil?
|
99
|
+
fmt = Java::org.joda.time.format.ISODateTimeFormat.date_time_no_millis # See https://github.com/killbill/killbill-java-parser/issues/3
|
100
|
+
str = fmt.print(@last_updated_date)
|
101
|
+
@last_updated_date = DateTime.iso8601(str)
|
102
|
+
end
|
103
|
+
|
104
|
+
# conversion for killbill_version [type = java.lang.String]
|
105
|
+
@killbill_version = j_obj.killbill_version
|
106
|
+
|
107
|
+
# conversion for api_version [type = java.lang.String]
|
108
|
+
@api_version = j_obj.api_version
|
109
|
+
|
110
|
+
# conversion for platform_version [type = java.lang.String]
|
111
|
+
@platform_version = j_obj.platform_version
|
112
|
+
|
113
|
+
# conversion for common_version [type = java.lang.String]
|
114
|
+
@common_version = j_obj.common_version
|
115
|
+
|
116
|
+
# conversion for plugin_api_version [type = java.lang.String]
|
117
|
+
@plugin_api_version = j_obj.plugin_api_version
|
118
|
+
|
119
|
+
# conversion for plugin_info [type = java.lang.Iterable]
|
120
|
+
@plugin_info = j_obj.plugin_info
|
121
|
+
tmp = []
|
122
|
+
(@plugin_info.nil? ? [] : @plugin_info.iterator).each do |m|
|
123
|
+
# conversion for m [type = org.killbill.billing.osgi.api.PluginInfo]
|
124
|
+
m = Killbill::Plugin::Model::PluginInfo.new.to_ruby(m) unless m.nil?
|
125
|
+
tmp << m
|
126
|
+
end
|
127
|
+
@plugin_info = tmp
|
128
|
+
self
|
129
|
+
end
|
130
|
+
|
131
|
+
end
|
132
|
+
end
|
133
|
+
end
|
134
|
+
end
|
@@ -34,7 +34,7 @@ module Killbill
|
|
34
34
|
|
35
35
|
include org.killbill.billing.osgi.api.OSGIKillbill
|
36
36
|
|
37
|
-
attr_accessor :account_user_api, :catalog_user_api, :subscription_api, :invoice_payment_api, :invoice_user_api, :payment_api, :tenant_user_api, :usage_user_api, :audit_user_api, :custom_field_user_api, :export_user_api, :tag_user_api, :entitlement_api, :record_id_api, :currency_conversion_api, :plugin_config_service_api, :security_api
|
37
|
+
attr_accessor :account_user_api, :catalog_user_api, :subscription_api, :invoice_payment_api, :invoice_user_api, :payment_api, :tenant_user_api, :usage_user_api, :audit_user_api, :custom_field_user_api, :export_user_api, :tag_user_api, :entitlement_api, :record_id_api, :currency_conversion_api, :plugin_config_service_api, :security_api, :plugins_info_api, :killbill_nodes_api
|
38
38
|
|
39
39
|
def initialize()
|
40
40
|
end
|
@@ -90,6 +90,12 @@ module Killbill
|
|
90
90
|
|
91
91
|
# conversion for security_api [type = org.killbill.billing.security.api.SecurityApi]
|
92
92
|
@security_api = @security_api.to_java unless @security_api.nil?
|
93
|
+
|
94
|
+
# conversion for plugins_info_api [type = org.killbill.billing.osgi.api.PluginsInfoApi]
|
95
|
+
@plugins_info_api = @plugins_info_api.to_java unless @plugins_info_api.nil?
|
96
|
+
|
97
|
+
# conversion for killbill_nodes_api [type = org.killbill.billing.util.nodes.KillbillNodesApi]
|
98
|
+
@killbill_nodes_api = @killbill_nodes_api.to_java unless @killbill_nodes_api.nil?
|
93
99
|
self
|
94
100
|
end
|
95
101
|
|
@@ -161,6 +167,14 @@ module Killbill
|
|
161
167
|
# conversion for security_api [type = org.killbill.billing.security.api.SecurityApi]
|
162
168
|
@security_api = j_obj.security_api
|
163
169
|
@security_api = Killbill::Plugin::Model::SecurityApi.new.to_ruby(@security_api) unless @security_api.nil?
|
170
|
+
|
171
|
+
# conversion for plugins_info_api [type = org.killbill.billing.osgi.api.PluginsInfoApi]
|
172
|
+
@plugins_info_api = j_obj.plugins_info_api
|
173
|
+
@plugins_info_api = Killbill::Plugin::Model::PluginsInfoApi.new.to_ruby(@plugins_info_api) unless @plugins_info_api.nil?
|
174
|
+
|
175
|
+
# conversion for killbill_nodes_api [type = org.killbill.billing.util.nodes.KillbillNodesApi]
|
176
|
+
@killbill_nodes_api = j_obj.killbill_nodes_api
|
177
|
+
@killbill_nodes_api = Killbill::Plugin::Model::KillbillNodesApi.new.to_ruby(@killbill_nodes_api) unless @killbill_nodes_api.nil?
|
164
178
|
self
|
165
179
|
end
|
166
180
|
|
@@ -0,0 +1,100 @@
|
|
1
|
+
#############################################################################################
|
2
|
+
# #
|
3
|
+
# Copyright 2010-2013 Ning, Inc. #
|
4
|
+
# Copyright 2014 Groupon, Inc. #
|
5
|
+
# Copyright 2014 The Billing Project, LLC #
|
6
|
+
# #
|
7
|
+
# The Billing Project licenses this file to you under the Apache License, version 2.0 #
|
8
|
+
# (the "License"); you may not use this file except in compliance with the #
|
9
|
+
# License. You may obtain a copy of the License at: #
|
10
|
+
# #
|
11
|
+
# http://www.apache.org/licenses/LICENSE-2.0 #
|
12
|
+
# #
|
13
|
+
# Unless required by applicable law or agreed to in writing, software #
|
14
|
+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT #
|
15
|
+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the #
|
16
|
+
# License for the specific language governing permissions and limitations #
|
17
|
+
# under the License. #
|
18
|
+
# #
|
19
|
+
#############################################################################################
|
20
|
+
|
21
|
+
|
22
|
+
#
|
23
|
+
# DO NOT EDIT!!!
|
24
|
+
# File automatically generated by killbill-java-parser (git@github.com:killbill/killbill-java-parser.git)
|
25
|
+
#
|
26
|
+
|
27
|
+
|
28
|
+
module Killbill
|
29
|
+
module Plugin
|
30
|
+
module Model
|
31
|
+
|
32
|
+
java_package 'org.killbill.billing.osgi.api'
|
33
|
+
class PluginInfo
|
34
|
+
|
35
|
+
include org.killbill.billing.osgi.api.PluginInfo
|
36
|
+
|
37
|
+
attr_accessor :bundle_symbolic_name, :plugin_name, :version, :is_running, :services
|
38
|
+
|
39
|
+
def initialize()
|
40
|
+
end
|
41
|
+
|
42
|
+
def to_java()
|
43
|
+
# conversion for bundle_symbolic_name [type = java.lang.String]
|
44
|
+
@bundle_symbolic_name = @bundle_symbolic_name.to_s unless @bundle_symbolic_name.nil?
|
45
|
+
|
46
|
+
# conversion for plugin_name [type = java.lang.String]
|
47
|
+
@plugin_name = @plugin_name.to_s unless @plugin_name.nil?
|
48
|
+
|
49
|
+
# conversion for version [type = java.lang.String]
|
50
|
+
@version = @version.to_s unless @version.nil?
|
51
|
+
|
52
|
+
# conversion for is_running [type = boolean]
|
53
|
+
@is_running = @is_running.nil? ? java.lang.Boolean.new(false) : java.lang.Boolean.new(@is_running)
|
54
|
+
|
55
|
+
# conversion for services [type = java.util.Set]
|
56
|
+
tmp = java.util.TreeSet.new
|
57
|
+
(@services || []).each do |m|
|
58
|
+
# conversion for m [type = org.killbill.billing.osgi.api.PluginServiceInfo]
|
59
|
+
m = m.to_java unless m.nil?
|
60
|
+
tmp.add(m)
|
61
|
+
end
|
62
|
+
@services = tmp
|
63
|
+
self
|
64
|
+
end
|
65
|
+
|
66
|
+
def to_ruby(j_obj)
|
67
|
+
# conversion for bundle_symbolic_name [type = java.lang.String]
|
68
|
+
@bundle_symbolic_name = j_obj.bundle_symbolic_name
|
69
|
+
|
70
|
+
# conversion for plugin_name [type = java.lang.String]
|
71
|
+
@plugin_name = j_obj.plugin_name
|
72
|
+
|
73
|
+
# conversion for version [type = java.lang.String]
|
74
|
+
@version = j_obj.version
|
75
|
+
|
76
|
+
# conversion for is_running [type = boolean]
|
77
|
+
@is_running = j_obj.is_running
|
78
|
+
if @is_running.nil?
|
79
|
+
@is_running = false
|
80
|
+
else
|
81
|
+
tmp_bool = (@is_running.java_kind_of? java.lang.Boolean) ? @is_running.boolean_value : @is_running
|
82
|
+
@is_running = tmp_bool ? true : false
|
83
|
+
end
|
84
|
+
|
85
|
+
# conversion for services [type = java.util.Set]
|
86
|
+
@services = j_obj.services
|
87
|
+
tmp = []
|
88
|
+
(@services || []).each do |m|
|
89
|
+
# conversion for m [type = org.killbill.billing.osgi.api.PluginServiceInfo]
|
90
|
+
m = Killbill::Plugin::Model::PluginServiceInfo.new.to_ruby(m) unless m.nil?
|
91
|
+
tmp << m
|
92
|
+
end
|
93
|
+
@services = tmp
|
94
|
+
self
|
95
|
+
end
|
96
|
+
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|
100
|
+
end
|
@@ -0,0 +1,80 @@
|
|
1
|
+
#############################################################################################
|
2
|
+
# #
|
3
|
+
# Copyright 2010-2013 Ning, Inc. #
|
4
|
+
# Copyright 2014 Groupon, Inc. #
|
5
|
+
# Copyright 2014 The Billing Project, LLC #
|
6
|
+
# #
|
7
|
+
# The Billing Project licenses this file to you under the Apache License, version 2.0 #
|
8
|
+
# (the "License"); you may not use this file except in compliance with the #
|
9
|
+
# License. You may obtain a copy of the License at: #
|
10
|
+
# #
|
11
|
+
# http://www.apache.org/licenses/LICENSE-2.0 #
|
12
|
+
# #
|
13
|
+
# Unless required by applicable law or agreed to in writing, software #
|
14
|
+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT #
|
15
|
+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the #
|
16
|
+
# License for the specific language governing permissions and limitations #
|
17
|
+
# under the License. #
|
18
|
+
# #
|
19
|
+
#############################################################################################
|
20
|
+
|
21
|
+
|
22
|
+
#
|
23
|
+
# DO NOT EDIT!!!
|
24
|
+
# File automatically generated by killbill-java-parser (git@github.com:killbill/killbill-java-parser.git)
|
25
|
+
#
|
26
|
+
|
27
|
+
|
28
|
+
module Killbill
|
29
|
+
module Plugin
|
30
|
+
module Model
|
31
|
+
|
32
|
+
class PluginNodeCommandMetadata
|
33
|
+
|
34
|
+
|
35
|
+
attr_accessor :plugin_name, :plugin_version, :properties
|
36
|
+
|
37
|
+
def initialize()
|
38
|
+
end
|
39
|
+
|
40
|
+
def to_java()
|
41
|
+
# conversion for plugin_name [type = java.lang.String]
|
42
|
+
@plugin_name = @plugin_name.to_s unless @plugin_name.nil?
|
43
|
+
|
44
|
+
# conversion for plugin_version [type = java.lang.String]
|
45
|
+
@plugin_version = @plugin_version.to_s unless @plugin_version.nil?
|
46
|
+
|
47
|
+
# conversion for properties [type = java.util.List]
|
48
|
+
tmp = java.util.ArrayList.new
|
49
|
+
(@properties || []).each do |m|
|
50
|
+
# conversion for m [type = org.killbill.billing.util.nodes.NodeCommandProperty]
|
51
|
+
m = m.to_java unless m.nil?
|
52
|
+
tmp.add(m)
|
53
|
+
end
|
54
|
+
@properties = tmp
|
55
|
+
Java::org.killbill.billing.util.nodes.PluginNodeCommandMetadata.new(@plugin_name, @plugin_version, @properties)
|
56
|
+
end
|
57
|
+
|
58
|
+
def to_ruby(j_obj)
|
59
|
+
# conversion for plugin_name [type = java.lang.String]
|
60
|
+
@plugin_name = j_obj.plugin_name
|
61
|
+
|
62
|
+
# conversion for plugin_version [type = java.lang.String]
|
63
|
+
@plugin_version = j_obj.plugin_version
|
64
|
+
|
65
|
+
# conversion for properties [type = java.util.List]
|
66
|
+
@properties = j_obj.properties
|
67
|
+
tmp = []
|
68
|
+
(@properties || []).each do |m|
|
69
|
+
# conversion for m [type = org.killbill.billing.util.nodes.NodeCommandProperty]
|
70
|
+
m = Killbill::Plugin::Model::NodeCommandProperty.new.to_ruby(m) unless m.nil?
|
71
|
+
tmp << m
|
72
|
+
end
|
73
|
+
@properties = tmp
|
74
|
+
self
|
75
|
+
end
|
76
|
+
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|