killbill 2.0.1 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (117) hide show
  1. checksums.yaml +4 -4
  2. data/Jarfile +5 -5
  3. data/NEWS +3 -0
  4. data/VERSION +1 -1
  5. data/gen_config/api.conf +34 -34
  6. data/gen_config/plugin_api.conf +3 -3
  7. data/killbill.gemspec +2 -2
  8. data/lib/killbill.rb +11 -11
  9. data/lib/killbill/gen/api/account.rb +5 -5
  10. data/lib/killbill/gen/api/account_api_exception.rb +1 -1
  11. data/lib/killbill/gen/api/account_audit_logs.rb +32 -32
  12. data/lib/killbill/gen/api/account_audit_logs_for_object_type.rb +4 -4
  13. data/lib/killbill/gen/api/account_data.rb +5 -5
  14. data/lib/killbill/gen/api/account_email.rb +2 -2
  15. data/lib/killbill/gen/api/account_user_api.rb +36 -36
  16. data/lib/killbill/gen/api/audit_log.rb +8 -8
  17. data/lib/killbill/gen/api/audit_user_api.rb +14 -14
  18. data/lib/killbill/gen/api/billing_exception_base.rb +1 -1
  19. data/lib/killbill/gen/api/blockable.rb +2 -2
  20. data/lib/killbill/gen/api/blocking_api_exception.rb +1 -1
  21. data/lib/killbill/gen/api/blocking_state.rb +5 -5
  22. data/lib/killbill/gen/api/call_context.rb +8 -8
  23. data/lib/killbill/gen/api/catalog.rb +9 -9
  24. data/lib/killbill/gen/api/catalog_api_exception.rb +1 -1
  25. data/lib/killbill/gen/api/catalog_user_api.rb +5 -5
  26. data/lib/killbill/gen/api/column_info.rb +2 -2
  27. data/lib/killbill/gen/api/control_tag.rb +8 -8
  28. data/lib/killbill/gen/api/currency_conversion.rb +7 -7
  29. data/lib/killbill/gen/api/currency_conversion_api.rb +14 -14
  30. data/lib/killbill/gen/api/currency_conversion_exception.rb +1 -1
  31. data/lib/killbill/gen/api/currency_value_null.rb +1 -1
  32. data/lib/killbill/gen/api/custom_field.rb +5 -5
  33. data/lib/killbill/gen/api/custom_field_api_exception.rb +1 -1
  34. data/lib/killbill/gen/api/custom_field_user_api.rb +27 -27
  35. data/lib/killbill/gen/api/database_export_output_stream.rb +2 -2
  36. data/lib/killbill/gen/api/duration.rb +5 -5
  37. data/lib/killbill/gen/api/entitlement.rb +19 -19
  38. data/lib/killbill/gen/api/entitlement_ao_status_dry_run.rb +11 -11
  39. data/lib/killbill/gen/api/entitlement_api.rb +44 -44
  40. data/lib/killbill/gen/api/entitlement_api_exception.rb +1 -1
  41. data/lib/killbill/gen/api/entity.rb +2 -2
  42. data/lib/killbill/gen/api/illegal_plan_change.rb +1 -1
  43. data/lib/killbill/gen/api/international_price.rb +4 -4
  44. data/lib/killbill/gen/api/invalid_config_exception.rb +1 -1
  45. data/lib/killbill/gen/api/invoice.rb +9 -9
  46. data/lib/killbill/gen/api/invoice_api_exception.rb +1 -1
  47. data/lib/killbill/gen/api/invoice_creation_event.rb +2 -2
  48. data/lib/killbill/gen/api/invoice_formatter.rb +12 -12
  49. data/lib/killbill/gen/api/invoice_item.rb +8 -8
  50. data/lib/killbill/gen/api/invoice_item_formatter.rb +8 -8
  51. data/lib/killbill/gen/api/invoice_payment.rb +11 -11
  52. data/lib/killbill/gen/api/invoice_payment_api.rb +34 -34
  53. data/lib/killbill/gen/api/invoice_user_api.rb +90 -90
  54. data/lib/killbill/gen/api/limit.rb +4 -4
  55. data/lib/killbill/gen/api/listing.rb +6 -6
  56. data/lib/killbill/gen/api/migration_plan.rb +13 -13
  57. data/lib/killbill/gen/api/mutable_account_data.rb +5 -5
  58. data/lib/killbill/gen/api/osgi_killbill.rb +34 -34
  59. data/lib/killbill/gen/api/osgi_plugin_properties.rb +2 -2
  60. data/lib/killbill/gen/api/pagination.rb +2 -2
  61. data/lib/killbill/gen/api/payment.rb +12 -12
  62. data/lib/killbill/gen/api/payment_api.rb +103 -103
  63. data/lib/killbill/gen/api/payment_api_exception.rb +1 -1
  64. data/lib/killbill/gen/api/payment_attempt.rb +5 -5
  65. data/lib/killbill/gen/api/payment_method.rb +4 -4
  66. data/lib/killbill/gen/api/payment_method_kv_info.rb +1 -1
  67. data/lib/killbill/gen/api/payment_method_plugin.rb +4 -4
  68. data/lib/killbill/gen/api/plan.rb +13 -13
  69. data/lib/killbill/gen/api/plan_change_result.rb +9 -9
  70. data/lib/killbill/gen/api/plan_phase.rb +18 -18
  71. data/lib/killbill/gen/api/plan_phase_specifier.rb +10 -10
  72. data/lib/killbill/gen/api/plan_specifier.rb +7 -7
  73. data/lib/killbill/gen/api/plugin_config_service_api.rb +6 -6
  74. data/lib/killbill/gen/api/price.rb +5 -5
  75. data/lib/killbill/gen/api/price_list.rb +4 -4
  76. data/lib/killbill/gen/api/price_list_set.rb +4 -4
  77. data/lib/killbill/gen/api/product.rb +11 -11
  78. data/lib/killbill/gen/api/rate.rb +8 -8
  79. data/lib/killbill/gen/api/record_id_api.rb +6 -6
  80. data/lib/killbill/gen/api/refund.rb +10 -10
  81. data/lib/killbill/gen/api/rolled_up_usage.rb +2 -2
  82. data/lib/killbill/gen/api/security_api_exception.rb +1 -1
  83. data/lib/killbill/gen/api/static_catalog.rb +15 -15
  84. data/lib/killbill/gen/api/subscription.rb +19 -19
  85. data/lib/killbill/gen/api/subscription_api.rb +34 -34
  86. data/lib/killbill/gen/api/subscription_api_exception.rb +1 -1
  87. data/lib/killbill/gen/api/subscription_bundle.rb +6 -6
  88. data/lib/killbill/gen/api/subscription_bundle_timeline.rb +4 -4
  89. data/lib/killbill/gen/api/subscription_event.rb +27 -27
  90. data/lib/killbill/gen/api/tag.rb +5 -5
  91. data/lib/killbill/gen/api/tag_api_exception.rb +1 -1
  92. data/lib/killbill/gen/api/tag_definition.rb +5 -5
  93. data/lib/killbill/gen/api/tag_definition_api_exception.rb +1 -1
  94. data/lib/killbill/gen/api/tag_user_api.rb +54 -54
  95. data/lib/killbill/gen/api/tenant.rb +2 -2
  96. data/lib/killbill/gen/api/tenant_api_exception.rb +1 -1
  97. data/lib/killbill/gen/api/tenant_context.rb +2 -2
  98. data/lib/killbill/gen/api/tenant_data.rb +2 -2
  99. data/lib/killbill/gen/api/tenant_kv.rb +2 -2
  100. data/lib/killbill/gen/api/tenant_user_api.rb +20 -20
  101. data/lib/killbill/gen/api/unit.rb +2 -2
  102. data/lib/killbill/gen/api/usage_user_api.rb +7 -7
  103. data/lib/killbill/gen/plugin-api/currency_plugin_api.rb +19 -19
  104. data/lib/killbill/gen/plugin-api/ext_bus_event.rb +8 -8
  105. data/lib/killbill/gen/plugin-api/notification_plugin_api.rb +5 -5
  106. data/lib/killbill/gen/plugin-api/payment_info_plugin.rb +8 -8
  107. data/lib/killbill/gen/plugin-api/payment_method_info_plugin.rb +2 -2
  108. data/lib/killbill/gen/plugin-api/payment_plugin_api.rb +52 -52
  109. data/lib/killbill/gen/plugin-api/payment_plugin_api_exception.rb +1 -1
  110. data/lib/killbill/gen/plugin-api/refund_info_plugin.rb +8 -8
  111. data/lib/killbill/http_servlet.rb +1 -1
  112. data/lib/killbill/jnotification.rb +3 -3
  113. data/spec/killbill/killbill_integration_spec.rb +1 -1
  114. data/spec/killbill/notification_plugin_api_spec.rb +3 -3
  115. data/spec/killbill/payment_plugin_api_spec.rb +13 -13
  116. data/spec/spec_helper.rb +1 -1
  117. metadata +5 -5
@@ -44,7 +44,7 @@ module Killbill
44
44
 
45
45
  # conversion for code [type = int]
46
46
  @code = @code
47
- Java::com.ning.billing.payment.api.PaymentApiException.new(@message, @cause, @code)
47
+ Java::org.killbill.billing.payment.api.PaymentApiException.new(@message, @cause, @code)
48
48
  end
49
49
 
50
50
  def to_ruby(j_obj)
@@ -27,10 +27,10 @@ module Killbill
27
27
  module Plugin
28
28
  module Model
29
29
 
30
- java_package 'com.ning.billing.payment.api'
30
+ java_package 'org.killbill.billing.payment.api'
31
31
  class PaymentAttempt
32
32
 
33
- include com.ning.billing.payment.api.PaymentAttempt
33
+ include org.killbill.billing.payment.api.PaymentAttempt
34
34
 
35
35
  attr_accessor :id, :created_date, :updated_date, :effective_date, :gateway_error_code, :gateway_error_msg, :payment_status
36
36
 
@@ -65,8 +65,8 @@ module Killbill
65
65
  # conversion for gateway_error_msg [type = java.lang.String]
66
66
  @gateway_error_msg = @gateway_error_msg.to_s unless @gateway_error_msg.nil?
67
67
 
68
- # conversion for payment_status [type = com.ning.billing.payment.api.PaymentStatus]
69
- @payment_status = Java::com.ning.billing.payment.api.PaymentStatus.value_of("#{@payment_status.to_s}") unless @payment_status.nil?
68
+ # conversion for payment_status [type = org.killbill.billing.payment.api.PaymentStatus]
69
+ @payment_status = Java::org.killbill.billing.payment.api.PaymentStatus.value_of("#{@payment_status.to_s}") unless @payment_status.nil?
70
70
  self
71
71
  end
72
72
 
@@ -105,7 +105,7 @@ module Killbill
105
105
  # conversion for gateway_error_msg [type = java.lang.String]
106
106
  @gateway_error_msg = j_obj.gateway_error_msg
107
107
 
108
- # conversion for payment_status [type = com.ning.billing.payment.api.PaymentStatus]
108
+ # conversion for payment_status [type = org.killbill.billing.payment.api.PaymentStatus]
109
109
  @payment_status = j_obj.payment_status
110
110
  @payment_status = @payment_status.to_s.to_sym unless @payment_status.nil?
111
111
  self
@@ -27,10 +27,10 @@ module Killbill
27
27
  module Plugin
28
28
  module Model
29
29
 
30
- java_package 'com.ning.billing.payment.api'
30
+ java_package 'org.killbill.billing.payment.api'
31
31
  class PaymentMethod
32
32
 
33
- include com.ning.billing.payment.api.PaymentMethod
33
+ include org.killbill.billing.payment.api.PaymentMethod
34
34
 
35
35
  attr_accessor :id, :created_date, :updated_date, :account_id, :is_active, :plugin_name, :plugin_detail
36
36
 
@@ -62,7 +62,7 @@ module Killbill
62
62
  # conversion for plugin_name [type = java.lang.String]
63
63
  @plugin_name = @plugin_name.to_s unless @plugin_name.nil?
64
64
 
65
- # conversion for plugin_detail [type = com.ning.billing.payment.api.PaymentMethodPlugin]
65
+ # conversion for plugin_detail [type = org.killbill.billing.payment.api.PaymentMethodPlugin]
66
66
  @plugin_detail = @plugin_detail.to_java unless @plugin_detail.nil?
67
67
  self
68
68
  end
@@ -104,7 +104,7 @@ module Killbill
104
104
  # conversion for plugin_name [type = java.lang.String]
105
105
  @plugin_name = j_obj.plugin_name
106
106
 
107
- # conversion for plugin_detail [type = com.ning.billing.payment.api.PaymentMethodPlugin]
107
+ # conversion for plugin_detail [type = org.killbill.billing.payment.api.PaymentMethodPlugin]
108
108
  @plugin_detail = j_obj.plugin_detail
109
109
  @plugin_detail = Killbill::Plugin::Model::PaymentMethodPlugin.new.to_ruby(@plugin_detail) unless @plugin_detail.nil?
110
110
  self
@@ -44,7 +44,7 @@ module Killbill
44
44
 
45
45
  # conversion for is_updatable [type = java.lang.Boolean]
46
46
  @is_updatable = @is_updatable.nil? ? java.lang.Boolean.new(false) : java.lang.Boolean.new(@is_updatable)
47
- Java::com.ning.billing.payment.api.PaymentMethodKVInfo.new(@key, @value, @is_updatable)
47
+ Java::org.killbill.billing.payment.api.PaymentMethodKVInfo.new(@key, @value, @is_updatable)
48
48
  end
49
49
 
50
50
  def to_ruby(j_obj)
@@ -27,10 +27,10 @@ module Killbill
27
27
  module Plugin
28
28
  module Model
29
29
 
30
- java_package 'com.ning.billing.payment.api'
30
+ java_package 'org.killbill.billing.payment.api'
31
31
  class PaymentMethodPlugin
32
32
 
33
- include com.ning.billing.payment.api.PaymentMethodPlugin
33
+ include org.killbill.billing.payment.api.PaymentMethodPlugin
34
34
 
35
35
  attr_accessor :kb_payment_method_id, :external_payment_method_id, :is_default_payment_method, :properties, :type, :cc_name, :cc_type, :cc_expiration_month, :cc_expiration_year, :cc_last4, :address1, :address2, :city, :state, :zip, :country
36
36
 
@@ -50,7 +50,7 @@ module Killbill
50
50
  # conversion for properties [type = java.util.List]
51
51
  tmp = java.util.ArrayList.new
52
52
  (@properties || []).each do |m|
53
- # conversion for m [type = com.ning.billing.payment.api.PaymentMethodKVInfo]
53
+ # conversion for m [type = org.killbill.billing.payment.api.PaymentMethodKVInfo]
54
54
  m = m.to_java unless m.nil?
55
55
  tmp.add(m)
56
56
  end
@@ -115,7 +115,7 @@ module Killbill
115
115
  @properties = j_obj.properties
116
116
  tmp = []
117
117
  (@properties || []).each do |m|
118
- # conversion for m [type = com.ning.billing.payment.api.PaymentMethodKVInfo]
118
+ # conversion for m [type = org.killbill.billing.payment.api.PaymentMethodKVInfo]
119
119
  m = Killbill::Plugin::Model::PaymentMethodKVInfo.new.to_ruby(m) unless m.nil?
120
120
  tmp << m
121
121
  end
@@ -27,10 +27,10 @@ module Killbill
27
27
  module Plugin
28
28
  module Model
29
29
 
30
- java_package 'com.ning.billing.catalog.api'
30
+ java_package 'org.killbill.billing.catalog.api'
31
31
  class Plan
32
32
 
33
- include com.ning.billing.catalog.api.Plan
33
+ include org.killbill.billing.catalog.api.Plan
34
34
 
35
35
  attr_accessor :initial_phases, :product, :name, :is_retired, :initial_phase_iterator, :final_phase, :billing_period, :plans_allowed_in_bundle, :all_phases, :effective_date_for_existing_subscriptons
36
36
 
@@ -38,10 +38,10 @@ module Killbill
38
38
  end
39
39
 
40
40
  def to_java()
41
- # conversion for initial_phases [type = com.ning.billing.catalog.api.PlanPhase]
41
+ # conversion for initial_phases [type = org.killbill.billing.catalog.api.PlanPhase]
42
42
  @initial_phases = @initial_phases.to_java unless @initial_phases.nil?
43
43
 
44
- # conversion for product [type = com.ning.billing.catalog.api.Product]
44
+ # conversion for product [type = org.killbill.billing.catalog.api.Product]
45
45
  @product = @product.to_java unless @product.nil?
46
46
 
47
47
  # conversion for name [type = java.lang.String]
@@ -53,16 +53,16 @@ module Killbill
53
53
  # conversion for initial_phase_iterator [type = java.util.Iterator]
54
54
  @initial_phase_iterator = Killbill::Plugin::Model::EnumeratorIterator.new(@initial_phase_iterator)
55
55
 
56
- # conversion for final_phase [type = com.ning.billing.catalog.api.PlanPhase]
56
+ # conversion for final_phase [type = org.killbill.billing.catalog.api.PlanPhase]
57
57
  @final_phase = @final_phase.to_java unless @final_phase.nil?
58
58
 
59
- # conversion for billing_period [type = com.ning.billing.catalog.api.BillingPeriod]
60
- @billing_period = Java::com.ning.billing.catalog.api.BillingPeriod.value_of("#{@billing_period.to_s}") unless @billing_period.nil?
59
+ # conversion for billing_period [type = org.killbill.billing.catalog.api.BillingPeriod]
60
+ @billing_period = Java::org.killbill.billing.catalog.api.BillingPeriod.value_of("#{@billing_period.to_s}") unless @billing_period.nil?
61
61
 
62
62
  # conversion for plans_allowed_in_bundle [type = int]
63
63
  @plans_allowed_in_bundle = @plans_allowed_in_bundle
64
64
 
65
- # conversion for all_phases [type = com.ning.billing.catalog.api.PlanPhase]
65
+ # conversion for all_phases [type = org.killbill.billing.catalog.api.PlanPhase]
66
66
  @all_phases = @all_phases.to_java unless @all_phases.nil?
67
67
 
68
68
  # conversion for effective_date_for_existing_subscriptons [type = java.util.Date]
@@ -75,11 +75,11 @@ module Killbill
75
75
  end
76
76
 
77
77
  def to_ruby(j_obj)
78
- # conversion for initial_phases [type = com.ning.billing.catalog.api.PlanPhase]
78
+ # conversion for initial_phases [type = org.killbill.billing.catalog.api.PlanPhase]
79
79
  @initial_phases = j_obj.initial_phases
80
80
  @initial_phases = Killbill::Plugin::Model::PlanPhase.new.to_ruby(@initial_phases) unless @initial_phases.nil?
81
81
 
82
- # conversion for product [type = com.ning.billing.catalog.api.Product]
82
+ # conversion for product [type = org.killbill.billing.catalog.api.Product]
83
83
  @product = j_obj.product
84
84
  @product = Killbill::Plugin::Model::Product.new.to_ruby(@product) unless @product.nil?
85
85
 
@@ -98,18 +98,18 @@ module Killbill
98
98
  # conversion for initial_phase_iterator [type = java.util.Iterator]
99
99
  @initial_phase_iterator = j_obj.initial_phase_iterator
100
100
 
101
- # conversion for final_phase [type = com.ning.billing.catalog.api.PlanPhase]
101
+ # conversion for final_phase [type = org.killbill.billing.catalog.api.PlanPhase]
102
102
  @final_phase = j_obj.final_phase
103
103
  @final_phase = Killbill::Plugin::Model::PlanPhase.new.to_ruby(@final_phase) unless @final_phase.nil?
104
104
 
105
- # conversion for billing_period [type = com.ning.billing.catalog.api.BillingPeriod]
105
+ # conversion for billing_period [type = org.killbill.billing.catalog.api.BillingPeriod]
106
106
  @billing_period = j_obj.billing_period
107
107
  @billing_period = @billing_period.to_s.to_sym unless @billing_period.nil?
108
108
 
109
109
  # conversion for plans_allowed_in_bundle [type = int]
110
110
  @plans_allowed_in_bundle = j_obj.plans_allowed_in_bundle
111
111
 
112
- # conversion for all_phases [type = com.ning.billing.catalog.api.PlanPhase]
112
+ # conversion for all_phases [type = org.killbill.billing.catalog.api.PlanPhase]
113
113
  @all_phases = j_obj.all_phases
114
114
  @all_phases = Killbill::Plugin::Model::PlanPhase.new.to_ruby(@all_phases) unless @all_phases.nil?
115
115
 
@@ -36,27 +36,27 @@ module Killbill
36
36
  end
37
37
 
38
38
  def to_java()
39
- # conversion for new_price_list [type = com.ning.billing.catalog.api.PriceList]
39
+ # conversion for new_price_list [type = org.killbill.billing.catalog.api.PriceList]
40
40
  @new_price_list = @new_price_list.to_java unless @new_price_list.nil?
41
41
 
42
- # conversion for policy [type = com.ning.billing.catalog.api.BillingActionPolicy]
43
- @policy = Java::com.ning.billing.catalog.api.BillingActionPolicy.value_of("#{@policy.to_s}") unless @policy.nil?
42
+ # conversion for policy [type = org.killbill.billing.catalog.api.BillingActionPolicy]
43
+ @policy = Java::org.killbill.billing.catalog.api.BillingActionPolicy.value_of("#{@policy.to_s}") unless @policy.nil?
44
44
 
45
- # conversion for alignment [type = com.ning.billing.catalog.api.PlanAlignmentChange]
46
- @alignment = Java::com.ning.billing.catalog.api.PlanAlignmentChange.value_of("#{@alignment.to_s}") unless @alignment.nil?
47
- Java::com.ning.billing.catalog.api.PlanChangeResult.new(@new_price_list, @policy, @alignment)
45
+ # conversion for alignment [type = org.killbill.billing.catalog.api.PlanAlignmentChange]
46
+ @alignment = Java::org.killbill.billing.catalog.api.PlanAlignmentChange.value_of("#{@alignment.to_s}") unless @alignment.nil?
47
+ Java::org.killbill.billing.catalog.api.PlanChangeResult.new(@new_price_list, @policy, @alignment)
48
48
  end
49
49
 
50
50
  def to_ruby(j_obj)
51
- # conversion for new_price_list [type = com.ning.billing.catalog.api.PriceList]
51
+ # conversion for new_price_list [type = org.killbill.billing.catalog.api.PriceList]
52
52
  @new_price_list = j_obj.new_price_list
53
53
  @new_price_list = Killbill::Plugin::Model::PriceList.new.to_ruby(@new_price_list) unless @new_price_list.nil?
54
54
 
55
- # conversion for policy [type = com.ning.billing.catalog.api.BillingActionPolicy]
55
+ # conversion for policy [type = org.killbill.billing.catalog.api.BillingActionPolicy]
56
56
  @policy = j_obj.policy
57
57
  @policy = @policy.to_s.to_sym unless @policy.nil?
58
58
 
59
- # conversion for alignment [type = com.ning.billing.catalog.api.PlanAlignmentChange]
59
+ # conversion for alignment [type = org.killbill.billing.catalog.api.PlanAlignmentChange]
60
60
  @alignment = j_obj.alignment
61
61
  @alignment = @alignment.to_s.to_sym unless @alignment.nil?
62
62
  self
@@ -27,10 +27,10 @@ module Killbill
27
27
  module Plugin
28
28
  module Model
29
29
 
30
- java_package 'com.ning.billing.catalog.api'
30
+ java_package 'org.killbill.billing.catalog.api'
31
31
  class PlanPhase
32
32
 
33
- include com.ning.billing.catalog.api.PlanPhase
33
+ include org.killbill.billing.catalog.api.PlanPhase
34
34
 
35
35
  attr_accessor :recurring_price, :fixed_price, :billing_period, :name, :plan, :duration, :phase_type, :limits
36
36
 
@@ -38,61 +38,61 @@ module Killbill
38
38
  end
39
39
 
40
40
  def to_java()
41
- # conversion for recurring_price [type = com.ning.billing.catalog.api.InternationalPrice]
41
+ # conversion for recurring_price [type = org.killbill.billing.catalog.api.InternationalPrice]
42
42
  @recurring_price = @recurring_price.to_java unless @recurring_price.nil?
43
43
 
44
- # conversion for fixed_price [type = com.ning.billing.catalog.api.InternationalPrice]
44
+ # conversion for fixed_price [type = org.killbill.billing.catalog.api.InternationalPrice]
45
45
  @fixed_price = @fixed_price.to_java unless @fixed_price.nil?
46
46
 
47
- # conversion for billing_period [type = com.ning.billing.catalog.api.BillingPeriod]
48
- @billing_period = Java::com.ning.billing.catalog.api.BillingPeriod.value_of("#{@billing_period.to_s}") unless @billing_period.nil?
47
+ # conversion for billing_period [type = org.killbill.billing.catalog.api.BillingPeriod]
48
+ @billing_period = Java::org.killbill.billing.catalog.api.BillingPeriod.value_of("#{@billing_period.to_s}") unless @billing_period.nil?
49
49
 
50
50
  # conversion for name [type = java.lang.String]
51
51
  @name = @name.to_s unless @name.nil?
52
52
 
53
- # conversion for plan [type = com.ning.billing.catalog.api.Plan]
53
+ # conversion for plan [type = org.killbill.billing.catalog.api.Plan]
54
54
  @plan = @plan.to_java unless @plan.nil?
55
55
 
56
- # conversion for duration [type = com.ning.billing.catalog.api.Duration]
56
+ # conversion for duration [type = org.killbill.billing.catalog.api.Duration]
57
57
  @duration = @duration.to_java unless @duration.nil?
58
58
 
59
- # conversion for phase_type [type = com.ning.billing.catalog.api.PhaseType]
60
- @phase_type = Java::com.ning.billing.catalog.api.PhaseType.value_of("#{@phase_type.to_s}") unless @phase_type.nil?
59
+ # conversion for phase_type [type = org.killbill.billing.catalog.api.PhaseType]
60
+ @phase_type = Java::org.killbill.billing.catalog.api.PhaseType.value_of("#{@phase_type.to_s}") unless @phase_type.nil?
61
61
 
62
- # conversion for limits [type = com.ning.billing.catalog.api.Limit]
62
+ # conversion for limits [type = org.killbill.billing.catalog.api.Limit]
63
63
  @limits = @limits.to_java unless @limits.nil?
64
64
  self
65
65
  end
66
66
 
67
67
  def to_ruby(j_obj)
68
- # conversion for recurring_price [type = com.ning.billing.catalog.api.InternationalPrice]
68
+ # conversion for recurring_price [type = org.killbill.billing.catalog.api.InternationalPrice]
69
69
  @recurring_price = j_obj.recurring_price
70
70
  @recurring_price = Killbill::Plugin::Model::InternationalPrice.new.to_ruby(@recurring_price) unless @recurring_price.nil?
71
71
 
72
- # conversion for fixed_price [type = com.ning.billing.catalog.api.InternationalPrice]
72
+ # conversion for fixed_price [type = org.killbill.billing.catalog.api.InternationalPrice]
73
73
  @fixed_price = j_obj.fixed_price
74
74
  @fixed_price = Killbill::Plugin::Model::InternationalPrice.new.to_ruby(@fixed_price) unless @fixed_price.nil?
75
75
 
76
- # conversion for billing_period [type = com.ning.billing.catalog.api.BillingPeriod]
76
+ # conversion for billing_period [type = org.killbill.billing.catalog.api.BillingPeriod]
77
77
  @billing_period = j_obj.billing_period
78
78
  @billing_period = @billing_period.to_s.to_sym unless @billing_period.nil?
79
79
 
80
80
  # conversion for name [type = java.lang.String]
81
81
  @name = j_obj.name
82
82
 
83
- # conversion for plan [type = com.ning.billing.catalog.api.Plan]
83
+ # conversion for plan [type = org.killbill.billing.catalog.api.Plan]
84
84
  @plan = j_obj.plan
85
85
  @plan = Killbill::Plugin::Model::Plan.new.to_ruby(@plan) unless @plan.nil?
86
86
 
87
- # conversion for duration [type = com.ning.billing.catalog.api.Duration]
87
+ # conversion for duration [type = org.killbill.billing.catalog.api.Duration]
88
88
  @duration = j_obj.duration
89
89
  @duration = Killbill::Plugin::Model::Duration.new.to_ruby(@duration) unless @duration.nil?
90
90
 
91
- # conversion for phase_type [type = com.ning.billing.catalog.api.PhaseType]
91
+ # conversion for phase_type [type = org.killbill.billing.catalog.api.PhaseType]
92
92
  @phase_type = j_obj.phase_type
93
93
  @phase_type = @phase_type.to_s.to_sym unless @phase_type.nil?
94
94
 
95
- # conversion for limits [type = com.ning.billing.catalog.api.Limit]
95
+ # conversion for limits [type = org.killbill.billing.catalog.api.Limit]
96
96
  @limits = j_obj.limits
97
97
  @limits = Killbill::Plugin::Model::Limit.new.to_ruby(@limits) unless @limits.nil?
98
98
  self
@@ -39,36 +39,36 @@ module Killbill
39
39
  # conversion for product_name [type = java.lang.String]
40
40
  @product_name = @product_name.to_s unless @product_name.nil?
41
41
 
42
- # conversion for product_category [type = com.ning.billing.catalog.api.ProductCategory]
43
- @product_category = Java::com.ning.billing.catalog.api.ProductCategory.value_of("#{@product_category.to_s}") unless @product_category.nil?
42
+ # conversion for product_category [type = org.killbill.billing.catalog.api.ProductCategory]
43
+ @product_category = Java::org.killbill.billing.catalog.api.ProductCategory.value_of("#{@product_category.to_s}") unless @product_category.nil?
44
44
 
45
- # conversion for billing_period [type = com.ning.billing.catalog.api.BillingPeriod]
46
- @billing_period = Java::com.ning.billing.catalog.api.BillingPeriod.value_of("#{@billing_period.to_s}") unless @billing_period.nil?
45
+ # conversion for billing_period [type = org.killbill.billing.catalog.api.BillingPeriod]
46
+ @billing_period = Java::org.killbill.billing.catalog.api.BillingPeriod.value_of("#{@billing_period.to_s}") unless @billing_period.nil?
47
47
 
48
48
  # conversion for price_list_name [type = java.lang.String]
49
49
  @price_list_name = @price_list_name.to_s unless @price_list_name.nil?
50
50
 
51
- # conversion for phase_type [type = com.ning.billing.catalog.api.PhaseType]
52
- @phase_type = Java::com.ning.billing.catalog.api.PhaseType.value_of("#{@phase_type.to_s}") unless @phase_type.nil?
53
- Java::com.ning.billing.catalog.api.PlanPhaseSpecifier.new(@product_name, @product_category, @billing_period, @price_list_name, @phase_type)
51
+ # conversion for phase_type [type = org.killbill.billing.catalog.api.PhaseType]
52
+ @phase_type = Java::org.killbill.billing.catalog.api.PhaseType.value_of("#{@phase_type.to_s}") unless @phase_type.nil?
53
+ Java::org.killbill.billing.catalog.api.PlanPhaseSpecifier.new(@product_name, @product_category, @billing_period, @price_list_name, @phase_type)
54
54
  end
55
55
 
56
56
  def to_ruby(j_obj)
57
57
  # conversion for product_name [type = java.lang.String]
58
58
  @product_name = j_obj.product_name
59
59
 
60
- # conversion for product_category [type = com.ning.billing.catalog.api.ProductCategory]
60
+ # conversion for product_category [type = org.killbill.billing.catalog.api.ProductCategory]
61
61
  @product_category = j_obj.product_category
62
62
  @product_category = @product_category.to_s.to_sym unless @product_category.nil?
63
63
 
64
- # conversion for billing_period [type = com.ning.billing.catalog.api.BillingPeriod]
64
+ # conversion for billing_period [type = org.killbill.billing.catalog.api.BillingPeriod]
65
65
  @billing_period = j_obj.billing_period
66
66
  @billing_period = @billing_period.to_s.to_sym unless @billing_period.nil?
67
67
 
68
68
  # conversion for price_list_name [type = java.lang.String]
69
69
  @price_list_name = j_obj.price_list_name
70
70
 
71
- # conversion for phase_type [type = com.ning.billing.catalog.api.PhaseType]
71
+ # conversion for phase_type [type = org.killbill.billing.catalog.api.PhaseType]
72
72
  @phase_type = j_obj.phase_type
73
73
  @phase_type = @phase_type.to_s.to_sym unless @phase_type.nil?
74
74
  self
@@ -39,26 +39,26 @@ module Killbill
39
39
  # conversion for product_name [type = java.lang.String]
40
40
  @product_name = @product_name.to_s unless @product_name.nil?
41
41
 
42
- # conversion for product_category [type = com.ning.billing.catalog.api.ProductCategory]
43
- @product_category = Java::com.ning.billing.catalog.api.ProductCategory.value_of("#{@product_category.to_s}") unless @product_category.nil?
42
+ # conversion for product_category [type = org.killbill.billing.catalog.api.ProductCategory]
43
+ @product_category = Java::org.killbill.billing.catalog.api.ProductCategory.value_of("#{@product_category.to_s}") unless @product_category.nil?
44
44
 
45
- # conversion for billing_period [type = com.ning.billing.catalog.api.BillingPeriod]
46
- @billing_period = Java::com.ning.billing.catalog.api.BillingPeriod.value_of("#{@billing_period.to_s}") unless @billing_period.nil?
45
+ # conversion for billing_period [type = org.killbill.billing.catalog.api.BillingPeriod]
46
+ @billing_period = Java::org.killbill.billing.catalog.api.BillingPeriod.value_of("#{@billing_period.to_s}") unless @billing_period.nil?
47
47
 
48
48
  # conversion for price_list_name [type = java.lang.String]
49
49
  @price_list_name = @price_list_name.to_s unless @price_list_name.nil?
50
- Java::com.ning.billing.catalog.api.PlanSpecifier.new(@product_name, @product_category, @billing_period, @price_list_name)
50
+ Java::org.killbill.billing.catalog.api.PlanSpecifier.new(@product_name, @product_category, @billing_period, @price_list_name)
51
51
  end
52
52
 
53
53
  def to_ruby(j_obj)
54
54
  # conversion for product_name [type = java.lang.String]
55
55
  @product_name = j_obj.product_name
56
56
 
57
- # conversion for product_category [type = com.ning.billing.catalog.api.ProductCategory]
57
+ # conversion for product_category [type = org.killbill.billing.catalog.api.ProductCategory]
58
58
  @product_category = j_obj.product_category
59
59
  @product_category = @product_category.to_s.to_sym unless @product_category.nil?
60
60
 
61
- # conversion for billing_period [type = com.ning.billing.catalog.api.BillingPeriod]
61
+ # conversion for billing_period [type = org.killbill.billing.catalog.api.BillingPeriod]
62
62
  @billing_period = j_obj.billing_period
63
63
  @billing_period = @billing_period.to_s.to_sym unless @billing_period.nil?
64
64
 
@@ -27,34 +27,34 @@ module Killbill
27
27
  module Plugin
28
28
  module Api
29
29
 
30
- java_package 'com.ning.billing.osgi.api.config'
30
+ java_package 'org.killbill.billing.osgi.api.config'
31
31
  class PluginConfigServiceApi
32
32
 
33
- include com.ning.billing.osgi.api.config.PluginConfigServiceApi
33
+ include org.killbill.billing.osgi.api.config.PluginConfigServiceApi
34
34
 
35
35
  def initialize(real_java_api)
36
36
  @real_java_api = real_java_api
37
37
  end
38
38
 
39
39
 
40
- java_signature 'Java::com.ning.billing.osgi.api.config.PluginJavaConfig getPluginJavaConfig(Java::long)'
40
+ java_signature 'Java::org.killbill.billing.osgi.api.config.PluginJavaConfig getPluginJavaConfig(Java::long)'
41
41
  def get_plugin_java_config(bundleId)
42
42
 
43
43
  # conversion for bundleId [type = long]
44
44
  bundleId = bundleId
45
45
  res = @real_java_api.get_plugin_java_config(bundleId)
46
- # conversion for res [type = com.ning.billing.osgi.api.config.PluginJavaConfig]
46
+ # conversion for res [type = org.killbill.billing.osgi.api.config.PluginJavaConfig]
47
47
  res = Killbill::Plugin::Model::PluginJavaConfig.new.to_ruby(res) unless res.nil?
48
48
  return res
49
49
  end
50
50
 
51
- java_signature 'Java::com.ning.billing.osgi.api.config.PluginRubyConfig getPluginRubyConfig(Java::long)'
51
+ java_signature 'Java::org.killbill.billing.osgi.api.config.PluginRubyConfig getPluginRubyConfig(Java::long)'
52
52
  def get_plugin_ruby_config(bundleId)
53
53
 
54
54
  # conversion for bundleId [type = long]
55
55
  bundleId = bundleId
56
56
  res = @real_java_api.get_plugin_ruby_config(bundleId)
57
- # conversion for res [type = com.ning.billing.osgi.api.config.PluginRubyConfig]
57
+ # conversion for res [type = org.killbill.billing.osgi.api.config.PluginRubyConfig]
58
58
  res = Killbill::Plugin::Model::PluginRubyConfig.new.to_ruby(res) unless res.nil?
59
59
  return res
60
60
  end
@@ -27,10 +27,10 @@ module Killbill
27
27
  module Plugin
28
28
  module Model
29
29
 
30
- java_package 'com.ning.billing.catalog.api'
30
+ java_package 'org.killbill.billing.catalog.api'
31
31
  class Price
32
32
 
33
- include com.ning.billing.catalog.api.Price
33
+ include org.killbill.billing.catalog.api.Price
34
34
 
35
35
  attr_accessor :currency, :value
36
36
 
@@ -38,8 +38,8 @@ module Killbill
38
38
  end
39
39
 
40
40
  def to_java()
41
- # conversion for currency [type = com.ning.billing.catalog.api.Currency]
42
- @currency = Java::com.ning.billing.catalog.api.Currency.value_of("#{@currency.to_s}") unless @currency.nil?
41
+ # conversion for currency [type = org.killbill.billing.catalog.api.Currency]
42
+ @currency = Java::org.killbill.billing.catalog.api.Currency.value_of("#{@currency.to_s}") unless @currency.nil?
43
43
 
44
44
  # conversion for value [type = java.math.BigDecimal]
45
45
  if @value.nil?
@@ -51,7 +51,7 @@ module Killbill
51
51
  end
52
52
 
53
53
  def to_ruby(j_obj)
54
- # conversion for currency [type = com.ning.billing.catalog.api.Currency]
54
+ # conversion for currency [type = org.killbill.billing.catalog.api.Currency]
55
55
  @currency = j_obj.currency
56
56
  @currency = @currency.to_s.to_sym unless @currency.nil?
57
57