lib/killbill/gen/api/plugin_info.rb in killbill-6.2.0 vs lib/killbill/gen/api/plugin_info.rb in killbill-6.3.0

- old
+ new

@@ -32,11 +32,11 @@ java_package 'org.killbill.billing.osgi.api' class PluginInfo include org.killbill.billing.osgi.api.PluginInfo - attr_accessor :bundle_symbolic_name, :plugin_name, :version, :plugin_state, :services + attr_accessor :bundle_symbolic_name, :plugin_name, :version, :plugin_state, :services, :is_selected_for_start def initialize() end def to_java() @@ -58,10 +58,13 @@ # conversion for m [type = org.killbill.billing.osgi.api.PluginServiceInfo] m = m.to_java unless m.nil? tmp.add(m) end @services = tmp + + # conversion for is_selected_for_start [type = boolean] + @is_selected_for_start = @is_selected_for_start.nil? ? java.lang.Boolean.new(false) : java.lang.Boolean.new(@is_selected_for_start) self end def to_ruby(j_obj) # conversion for bundle_symbolic_name [type = java.lang.String] @@ -84,9 +87,18 @@ # conversion for m [type = org.killbill.billing.osgi.api.PluginServiceInfo] m = Killbill::Plugin::Model::PluginServiceInfo.new.to_ruby(m) unless m.nil? tmp << m end @services = tmp + + # conversion for is_selected_for_start [type = boolean] + @is_selected_for_start = j_obj.is_selected_for_start + if @is_selected_for_start.nil? + @is_selected_for_start = false + else + tmp_bool = (@is_selected_for_start.java_kind_of? java.lang.Boolean) ? @is_selected_for_start.boolean_value : @is_selected_for_start + @is_selected_for_start = tmp_bool ? true : false + end self end end end