lib/killbill/gen/api/osgi_killbill.rb in killbill-3.1.3 vs lib/killbill/gen/api/osgi_killbill.rb in killbill-3.1.4

- old
+ new

@@ -1,12 +1,13 @@ ################################################################################### # # # Copyright 2010-2013 Ning, Inc. # +# Copyright 2014 The Billing Project, LLC # # # -# Ning licenses this file to you under the Apache License, version 2.0 # -# (the "License"); you may not use this file except in compliance with the # -# License. You may obtain a copy of the License at: # +# The Billing Project licenses this file to you under the Apache License, # +# version 2.0 (the "License"); you may not use this file except in # +# compliance with the License. You may obtain a copy of the License at: # # # # http://www.apache.org/licenses/LICENSE-2.0 # # # # Unless required by applicable law or agreed to in writing, software # # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # @@ -30,11 +31,11 @@ java_package 'org.killbill.billing.osgi.api' class OSGIKillbill include org.killbill.billing.osgi.api.OSGIKillbill - 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 + 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 def initialize() end def to_java() @@ -51,11 +52,11 @@ @invoice_payment_api = @invoice_payment_api.to_java unless @invoice_payment_api.nil? # conversion for invoice_user_api [type = org.killbill.billing.invoice.api.InvoiceUserApi] @invoice_user_api = @invoice_user_api.to_java unless @invoice_user_api.nil? - # conversion for payment_api [type = org.killbill.billing.payment.api.PaymentApi] + # conversion for payment_api [type = org.killbill.billing.payment.api.DirectPaymentApi] @payment_api = @payment_api.to_java unless @payment_api.nil? # conversion for tenant_user_api [type = org.killbill.billing.tenant.api.TenantUserApi] @tenant_user_api = @tenant_user_api.to_java unless @tenant_user_api.nil? @@ -83,10 +84,13 @@ # conversion for currency_conversion_api [type = org.killbill.billing.currency.api.CurrencyConversionApi] @currency_conversion_api = @currency_conversion_api.to_java unless @currency_conversion_api.nil? # conversion for plugin_config_service_api [type = org.killbill.billing.osgi.api.config.PluginConfigServiceApi] @plugin_config_service_api = @plugin_config_service_api.to_java unless @plugin_config_service_api.nil? + + # conversion for security_api [type = org.killbill.billing.security.api.SecurityApi] + @security_api = @security_api.to_java unless @security_api.nil? self end def to_ruby(j_obj) # conversion for account_user_api [type = org.killbill.billing.account.api.AccountUserApi] @@ -107,13 +111,13 @@ # conversion for invoice_user_api [type = org.killbill.billing.invoice.api.InvoiceUserApi] @invoice_user_api = j_obj.invoice_user_api @invoice_user_api = Killbill::Plugin::Model::InvoiceUserApi.new.to_ruby(@invoice_user_api) unless @invoice_user_api.nil? - # conversion for payment_api [type = org.killbill.billing.payment.api.PaymentApi] + # conversion for payment_api [type = org.killbill.billing.payment.api.DirectPaymentApi] @payment_api = j_obj.payment_api - @payment_api = Killbill::Plugin::Model::PaymentApi.new.to_ruby(@payment_api) unless @payment_api.nil? + @payment_api = Killbill::Plugin::Model::DirectPaymentApi.new.to_ruby(@payment_api) unless @payment_api.nil? # conversion for tenant_user_api [type = org.killbill.billing.tenant.api.TenantUserApi] @tenant_user_api = j_obj.tenant_user_api @tenant_user_api = Killbill::Plugin::Model::TenantUserApi.new.to_ruby(@tenant_user_api) unless @tenant_user_api.nil? @@ -150,9 +154,13 @@ @currency_conversion_api = Killbill::Plugin::Model::CurrencyConversionApi.new.to_ruby(@currency_conversion_api) unless @currency_conversion_api.nil? # conversion for plugin_config_service_api [type = org.killbill.billing.osgi.api.config.PluginConfigServiceApi] @plugin_config_service_api = j_obj.plugin_config_service_api @plugin_config_service_api = Killbill::Plugin::Model::PluginConfigServiceApi.new.to_ruby(@plugin_config_service_api) unless @plugin_config_service_api.nil? + + # conversion for security_api [type = org.killbill.billing.security.api.SecurityApi] + @security_api = j_obj.security_api + @security_api = Killbill::Plugin::Model::SecurityApi.new.to_ruby(@security_api) unless @security_api.nil? self end end end