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
@@ -27,29 +27,29 @@ module Killbill
27
27
  module Plugin
28
28
  module Api
29
29
 
30
- java_package 'com.ning.billing.invoice.api'
30
+ java_package 'org.killbill.billing.invoice.api'
31
31
  class InvoiceUserApi
32
32
 
33
- include com.ning.billing.invoice.api.InvoiceUserApi
33
+ include org.killbill.billing.invoice.api.InvoiceUserApi
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::java.util.List getInvoicesByAccount(Java::java.util.UUID, Java::com.ning.billing.util.callcontext.TenantContext)'
40
+ java_signature 'Java::java.util.List getInvoicesByAccount(Java::java.util.UUID, Java::org.killbill.billing.util.callcontext.TenantContext)'
41
41
  def get_invoices_by_account(accountId, context)
42
42
 
43
43
  # conversion for accountId [type = java.util.UUID]
44
44
  accountId = java.util.UUID.fromString(accountId.to_s) unless accountId.nil?
45
45
 
46
- # conversion for context [type = com.ning.billing.util.callcontext.TenantContext]
46
+ # conversion for context [type = org.killbill.billing.util.callcontext.TenantContext]
47
47
  context = context.to_java unless context.nil?
48
48
  res = @real_java_api.get_invoices_by_account(accountId, context)
49
49
  # conversion for res [type = java.util.List]
50
50
  tmp = []
51
51
  (res || []).each do |m|
52
- # conversion for m [type = com.ning.billing.invoice.api.Invoice]
52
+ # conversion for m [type = org.killbill.billing.invoice.api.Invoice]
53
53
  m = Killbill::Plugin::Model::Invoice.new.to_ruby(m) unless m.nil?
54
54
  tmp << m
55
55
  end
@@ -57,7 +57,7 @@ module Killbill
57
57
  return res
58
58
  end
59
59
 
60
- java_signature 'Java::com.ning.billing.util.entity.Pagination getInvoices(Java::java.lang.Long, Java::java.lang.Long, Java::com.ning.billing.util.callcontext.TenantContext)'
60
+ java_signature 'Java::org.killbill.billing.util.entity.Pagination getInvoices(Java::java.lang.Long, Java::java.lang.Long, Java::org.killbill.billing.util.callcontext.TenantContext)'
61
61
  def get_invoices(offset, limit, context)
62
62
 
63
63
  # conversion for offset [type = java.lang.Long]
@@ -66,15 +66,15 @@ module Killbill
66
66
  # conversion for limit [type = java.lang.Long]
67
67
  limit = limit
68
68
 
69
- # conversion for context [type = com.ning.billing.util.callcontext.TenantContext]
69
+ # conversion for context [type = org.killbill.billing.util.callcontext.TenantContext]
70
70
  context = context.to_java unless context.nil?
71
71
  res = @real_java_api.get_invoices(offset, limit, context)
72
- # conversion for res [type = com.ning.billing.util.entity.Pagination]
72
+ # conversion for res [type = org.killbill.billing.util.entity.Pagination]
73
73
  res = Killbill::Plugin::Model::Pagination.new.to_ruby(res) unless res.nil?
74
74
  return res
75
75
  end
76
76
 
77
- java_signature 'Java::com.ning.billing.util.entity.Pagination searchInvoices(Java::java.lang.String, Java::java.lang.Long, Java::java.lang.Long, Java::com.ning.billing.util.callcontext.TenantContext)'
77
+ java_signature 'Java::org.killbill.billing.util.entity.Pagination searchInvoices(Java::java.lang.String, Java::java.lang.Long, Java::java.lang.Long, Java::org.killbill.billing.util.callcontext.TenantContext)'
78
78
  def search_invoices(searchKey, offset, limit, context)
79
79
 
80
80
  # conversion for searchKey [type = java.lang.String]
@@ -86,21 +86,21 @@ module Killbill
86
86
  # conversion for limit [type = java.lang.Long]
87
87
  limit = limit
88
88
 
89
- # conversion for context [type = com.ning.billing.util.callcontext.TenantContext]
89
+ # conversion for context [type = org.killbill.billing.util.callcontext.TenantContext]
90
90
  context = context.to_java unless context.nil?
91
91
  res = @real_java_api.search_invoices(searchKey, offset, limit, context)
92
- # conversion for res [type = com.ning.billing.util.entity.Pagination]
92
+ # conversion for res [type = org.killbill.billing.util.entity.Pagination]
93
93
  res = Killbill::Plugin::Model::Pagination.new.to_ruby(res) unless res.nil?
94
94
  return res
95
95
  end
96
96
 
97
- java_signature 'Java::java.math.BigDecimal getAccountBalance(Java::java.util.UUID, Java::com.ning.billing.util.callcontext.TenantContext)'
97
+ java_signature 'Java::java.math.BigDecimal getAccountBalance(Java::java.util.UUID, Java::org.killbill.billing.util.callcontext.TenantContext)'
98
98
  def get_account_balance(accountId, context)
99
99
 
100
100
  # conversion for accountId [type = java.util.UUID]
101
101
  accountId = java.util.UUID.fromString(accountId.to_s) unless accountId.nil?
102
102
 
103
- # conversion for context [type = com.ning.billing.util.callcontext.TenantContext]
103
+ # conversion for context [type = org.killbill.billing.util.callcontext.TenantContext]
104
104
  context = context.to_java unless context.nil?
105
105
  res = @real_java_api.get_account_balance(accountId, context)
106
106
  # conversion for res [type = java.math.BigDecimal]
@@ -108,13 +108,13 @@ module Killbill
108
108
  return res
109
109
  end
110
110
 
111
- java_signature 'Java::java.math.BigDecimal getAccountCBA(Java::java.util.UUID, Java::com.ning.billing.util.callcontext.TenantContext)'
111
+ java_signature 'Java::java.math.BigDecimal getAccountCBA(Java::java.util.UUID, Java::org.killbill.billing.util.callcontext.TenantContext)'
112
112
  def get_account_cba(accountId, context)
113
113
 
114
114
  # conversion for accountId [type = java.util.UUID]
115
115
  accountId = java.util.UUID.fromString(accountId.to_s) unless accountId.nil?
116
116
 
117
- # conversion for context [type = com.ning.billing.util.callcontext.TenantContext]
117
+ # conversion for context [type = org.killbill.billing.util.callcontext.TenantContext]
118
118
  context = context.to_java unless context.nil?
119
119
  res = @real_java_api.get_account_cba(accountId, context)
120
120
  # conversion for res [type = java.math.BigDecimal]
@@ -122,43 +122,43 @@ module Killbill
122
122
  return res
123
123
  end
124
124
 
125
- java_signature 'Java::com.ning.billing.invoice.api.Invoice getInvoice(Java::java.util.UUID, Java::com.ning.billing.util.callcontext.TenantContext)'
125
+ java_signature 'Java::org.killbill.billing.invoice.api.Invoice getInvoice(Java::java.util.UUID, Java::org.killbill.billing.util.callcontext.TenantContext)'
126
126
  def get_invoice(invoiceId, context)
127
127
 
128
128
  # conversion for invoiceId [type = java.util.UUID]
129
129
  invoiceId = java.util.UUID.fromString(invoiceId.to_s) unless invoiceId.nil?
130
130
 
131
- # conversion for context [type = com.ning.billing.util.callcontext.TenantContext]
131
+ # conversion for context [type = org.killbill.billing.util.callcontext.TenantContext]
132
132
  context = context.to_java unless context.nil?
133
133
  begin
134
134
  res = @real_java_api.get_invoice(invoiceId, context)
135
- # conversion for res [type = com.ning.billing.invoice.api.Invoice]
135
+ # conversion for res [type = org.killbill.billing.invoice.api.Invoice]
136
136
  res = Killbill::Plugin::Model::Invoice.new.to_ruby(res) unless res.nil?
137
137
  return res
138
- rescue Java::com.ning.billing.invoice.api.InvoiceApiException => e
138
+ rescue Java::org.killbill.billing.invoice.api.InvoiceApiException => e
139
139
  raise Killbill::Plugin::Model::InvoiceApiException.new.to_ruby(e)
140
140
  end
141
141
  end
142
142
 
143
- java_signature 'Java::com.ning.billing.invoice.api.Invoice getInvoiceByNumber(Java::java.lang.Integer, Java::com.ning.billing.util.callcontext.TenantContext)'
143
+ java_signature 'Java::org.killbill.billing.invoice.api.Invoice getInvoiceByNumber(Java::java.lang.Integer, Java::org.killbill.billing.util.callcontext.TenantContext)'
144
144
  def get_invoice_by_number(number, context)
145
145
 
146
146
  # conversion for number [type = java.lang.Integer]
147
147
  number = number
148
148
 
149
- # conversion for context [type = com.ning.billing.util.callcontext.TenantContext]
149
+ # conversion for context [type = org.killbill.billing.util.callcontext.TenantContext]
150
150
  context = context.to_java unless context.nil?
151
151
  begin
152
152
  res = @real_java_api.get_invoice_by_number(number, context)
153
- # conversion for res [type = com.ning.billing.invoice.api.Invoice]
153
+ # conversion for res [type = org.killbill.billing.invoice.api.Invoice]
154
154
  res = Killbill::Plugin::Model::Invoice.new.to_ruby(res) unless res.nil?
155
155
  return res
156
- rescue Java::com.ning.billing.invoice.api.InvoiceApiException => e
156
+ rescue Java::org.killbill.billing.invoice.api.InvoiceApiException => e
157
157
  raise Killbill::Plugin::Model::InvoiceApiException.new.to_ruby(e)
158
158
  end
159
159
  end
160
160
 
161
- java_signature 'Java::java.util.Collection getUnpaidInvoicesByAccountId(Java::java.util.UUID, Java::org.joda.time.LocalDate, Java::com.ning.billing.util.callcontext.TenantContext)'
161
+ java_signature 'Java::java.util.Collection getUnpaidInvoicesByAccountId(Java::java.util.UUID, Java::org.joda.time.LocalDate, Java::org.killbill.billing.util.callcontext.TenantContext)'
162
162
  def get_unpaid_invoices_by_account_id(accountId, upToDate, context)
163
163
 
164
164
  # conversion for accountId [type = java.util.UUID]
@@ -169,13 +169,13 @@ module Killbill
169
169
  upToDate = Java::org.joda.time.LocalDate.parse(upToDate.to_s)
170
170
  end
171
171
 
172
- # conversion for context [type = com.ning.billing.util.callcontext.TenantContext]
172
+ # conversion for context [type = org.killbill.billing.util.callcontext.TenantContext]
173
173
  context = context.to_java unless context.nil?
174
174
  res = @real_java_api.get_unpaid_invoices_by_account_id(accountId, upToDate, context)
175
175
  # conversion for res [type = java.util.Collection]
176
176
  tmp = []
177
177
  (res || []).each do |m|
178
- # conversion for m [type = com.ning.billing.invoice.api.Invoice]
178
+ # conversion for m [type = org.killbill.billing.invoice.api.Invoice]
179
179
  m = Killbill::Plugin::Model::Invoice.new.to_ruby(m) unless m.nil?
180
180
  tmp << m
181
181
  end
@@ -183,7 +183,7 @@ module Killbill
183
183
  return res
184
184
  end
185
185
 
186
- java_signature 'Java::com.ning.billing.invoice.api.Invoice triggerInvoiceGeneration(Java::java.util.UUID, Java::org.joda.time.LocalDate, Java::boolean, Java::com.ning.billing.util.callcontext.CallContext)'
186
+ java_signature 'Java::org.killbill.billing.invoice.api.Invoice triggerInvoiceGeneration(Java::java.util.UUID, Java::org.joda.time.LocalDate, Java::boolean, Java::org.killbill.billing.util.callcontext.CallContext)'
187
187
  def trigger_invoice_generation(accountId, targetDate, dryRun, context)
188
188
 
189
189
  # conversion for accountId [type = java.util.UUID]
@@ -197,59 +197,59 @@ module Killbill
197
197
  # conversion for dryRun [type = boolean]
198
198
  dryRun = dryRun.nil? ? java.lang.Boolean.new(false) : java.lang.Boolean.new(dryRun)
199
199
 
200
- # conversion for context [type = com.ning.billing.util.callcontext.CallContext]
200
+ # conversion for context [type = org.killbill.billing.util.callcontext.CallContext]
201
201
  context = context.to_java unless context.nil?
202
202
  begin
203
203
  res = @real_java_api.trigger_invoice_generation(accountId, targetDate, dryRun, context)
204
- # conversion for res [type = com.ning.billing.invoice.api.Invoice]
204
+ # conversion for res [type = org.killbill.billing.invoice.api.Invoice]
205
205
  res = Killbill::Plugin::Model::Invoice.new.to_ruby(res) unless res.nil?
206
206
  return res
207
- rescue Java::com.ning.billing.invoice.api.InvoiceApiException => e
207
+ rescue Java::org.killbill.billing.invoice.api.InvoiceApiException => e
208
208
  raise Killbill::Plugin::Model::InvoiceApiException.new.to_ruby(e)
209
209
  end
210
210
  end
211
211
 
212
- java_signature 'Java::void tagInvoiceAsWrittenOff(Java::java.util.UUID, Java::com.ning.billing.util.callcontext.CallContext)'
212
+ java_signature 'Java::void tagInvoiceAsWrittenOff(Java::java.util.UUID, Java::org.killbill.billing.util.callcontext.CallContext)'
213
213
  def tag_invoice_as_written_off(invoiceId, context)
214
214
 
215
215
  # conversion for invoiceId [type = java.util.UUID]
216
216
  invoiceId = java.util.UUID.fromString(invoiceId.to_s) unless invoiceId.nil?
217
217
 
218
- # conversion for context [type = com.ning.billing.util.callcontext.CallContext]
218
+ # conversion for context [type = org.killbill.billing.util.callcontext.CallContext]
219
219
  context = context.to_java unless context.nil?
220
220
  @real_java_api.tag_invoice_as_written_off(invoiceId, context)
221
221
  end
222
222
 
223
- java_signature 'Java::void tagInvoiceAsNotWrittenOff(Java::java.util.UUID, Java::com.ning.billing.util.callcontext.CallContext)'
223
+ java_signature 'Java::void tagInvoiceAsNotWrittenOff(Java::java.util.UUID, Java::org.killbill.billing.util.callcontext.CallContext)'
224
224
  def tag_invoice_as_not_written_off(invoiceId, context)
225
225
 
226
226
  # conversion for invoiceId [type = java.util.UUID]
227
227
  invoiceId = java.util.UUID.fromString(invoiceId.to_s) unless invoiceId.nil?
228
228
 
229
- # conversion for context [type = com.ning.billing.util.callcontext.CallContext]
229
+ # conversion for context [type = org.killbill.billing.util.callcontext.CallContext]
230
230
  context = context.to_java unless context.nil?
231
231
  @real_java_api.tag_invoice_as_not_written_off(invoiceId, context)
232
232
  end
233
233
 
234
- java_signature 'Java::com.ning.billing.invoice.api.InvoiceItem getExternalChargeById(Java::java.util.UUID, Java::com.ning.billing.util.callcontext.TenantContext)'
234
+ java_signature 'Java::org.killbill.billing.invoice.api.InvoiceItem getExternalChargeById(Java::java.util.UUID, Java::org.killbill.billing.util.callcontext.TenantContext)'
235
235
  def get_external_charge_by_id(externalChargeId, context)
236
236
 
237
237
  # conversion for externalChargeId [type = java.util.UUID]
238
238
  externalChargeId = java.util.UUID.fromString(externalChargeId.to_s) unless externalChargeId.nil?
239
239
 
240
- # conversion for context [type = com.ning.billing.util.callcontext.TenantContext]
240
+ # conversion for context [type = org.killbill.billing.util.callcontext.TenantContext]
241
241
  context = context.to_java unless context.nil?
242
242
  begin
243
243
  res = @real_java_api.get_external_charge_by_id(externalChargeId, context)
244
- # conversion for res [type = com.ning.billing.invoice.api.InvoiceItem]
244
+ # conversion for res [type = org.killbill.billing.invoice.api.InvoiceItem]
245
245
  res = Killbill::Plugin::Model::InvoiceItem.new.to_ruby(res) unless res.nil?
246
246
  return res
247
- rescue Java::com.ning.billing.invoice.api.InvoiceApiException => e
247
+ rescue Java::org.killbill.billing.invoice.api.InvoiceApiException => e
248
248
  raise Killbill::Plugin::Model::InvoiceApiException.new.to_ruby(e)
249
249
  end
250
250
  end
251
251
 
252
- java_signature 'Java::com.ning.billing.invoice.api.InvoiceItem insertExternalCharge(Java::java.util.UUID, Java::java.math.BigDecimal, Java::java.lang.String, Java::org.joda.time.LocalDate, Java::com.ning.billing.catalog.api.Currency, Java::com.ning.billing.util.callcontext.CallContext)'
252
+ java_signature 'Java::org.killbill.billing.invoice.api.InvoiceItem insertExternalCharge(Java::java.util.UUID, Java::java.math.BigDecimal, Java::java.lang.String, Java::org.joda.time.LocalDate, Java::org.killbill.billing.catalog.api.Currency, Java::org.killbill.billing.util.callcontext.CallContext)'
253
253
  def insert_external_charge(accountId, amount, description, effectiveDate, currency, context)
254
254
 
255
255
  # conversion for accountId [type = java.util.UUID]
@@ -270,22 +270,22 @@ module Killbill
270
270
  effectiveDate = Java::org.joda.time.LocalDate.parse(effectiveDate.to_s)
271
271
  end
272
272
 
273
- # conversion for currency [type = com.ning.billing.catalog.api.Currency]
274
- currency = Java::com.ning.billing.catalog.api.Currency.value_of("#{currency.to_s}") unless currency.nil?
273
+ # conversion for currency [type = org.killbill.billing.catalog.api.Currency]
274
+ currency = Java::org.killbill.billing.catalog.api.Currency.value_of("#{currency.to_s}") unless currency.nil?
275
275
 
276
- # conversion for context [type = com.ning.billing.util.callcontext.CallContext]
276
+ # conversion for context [type = org.killbill.billing.util.callcontext.CallContext]
277
277
  context = context.to_java unless context.nil?
278
278
  begin
279
279
  res = @real_java_api.insert_external_charge(accountId, amount, description, effectiveDate, currency, context)
280
- # conversion for res [type = com.ning.billing.invoice.api.InvoiceItem]
280
+ # conversion for res [type = org.killbill.billing.invoice.api.InvoiceItem]
281
281
  res = Killbill::Plugin::Model::InvoiceItem.new.to_ruby(res) unless res.nil?
282
282
  return res
283
- rescue Java::com.ning.billing.invoice.api.InvoiceApiException => e
283
+ rescue Java::org.killbill.billing.invoice.api.InvoiceApiException => e
284
284
  raise Killbill::Plugin::Model::InvoiceApiException.new.to_ruby(e)
285
285
  end
286
286
  end
287
287
 
288
- java_signature 'Java::com.ning.billing.invoice.api.InvoiceItem insertExternalChargeForBundle(Java::java.util.UUID, Java::java.util.UUID, Java::java.math.BigDecimal, Java::java.lang.String, Java::org.joda.time.LocalDate, Java::com.ning.billing.catalog.api.Currency, Java::com.ning.billing.util.callcontext.CallContext)'
288
+ java_signature 'Java::org.killbill.billing.invoice.api.InvoiceItem insertExternalChargeForBundle(Java::java.util.UUID, Java::java.util.UUID, Java::java.math.BigDecimal, Java::java.lang.String, Java::org.joda.time.LocalDate, Java::org.killbill.billing.catalog.api.Currency, Java::org.killbill.billing.util.callcontext.CallContext)'
289
289
  def insert_external_charge_for_bundle(accountId, bundleId, amount, description, effectiveDate, currency, context)
290
290
 
291
291
  # conversion for accountId [type = java.util.UUID]
@@ -309,22 +309,22 @@ module Killbill
309
309
  effectiveDate = Java::org.joda.time.LocalDate.parse(effectiveDate.to_s)
310
310
  end
311
311
 
312
- # conversion for currency [type = com.ning.billing.catalog.api.Currency]
313
- currency = Java::com.ning.billing.catalog.api.Currency.value_of("#{currency.to_s}") unless currency.nil?
312
+ # conversion for currency [type = org.killbill.billing.catalog.api.Currency]
313
+ currency = Java::org.killbill.billing.catalog.api.Currency.value_of("#{currency.to_s}") unless currency.nil?
314
314
 
315
- # conversion for context [type = com.ning.billing.util.callcontext.CallContext]
315
+ # conversion for context [type = org.killbill.billing.util.callcontext.CallContext]
316
316
  context = context.to_java unless context.nil?
317
317
  begin
318
318
  res = @real_java_api.insert_external_charge_for_bundle(accountId, bundleId, amount, description, effectiveDate, currency, context)
319
- # conversion for res [type = com.ning.billing.invoice.api.InvoiceItem]
319
+ # conversion for res [type = org.killbill.billing.invoice.api.InvoiceItem]
320
320
  res = Killbill::Plugin::Model::InvoiceItem.new.to_ruby(res) unless res.nil?
321
321
  return res
322
- rescue Java::com.ning.billing.invoice.api.InvoiceApiException => e
322
+ rescue Java::org.killbill.billing.invoice.api.InvoiceApiException => e
323
323
  raise Killbill::Plugin::Model::InvoiceApiException.new.to_ruby(e)
324
324
  end
325
325
  end
326
326
 
327
- java_signature 'Java::com.ning.billing.invoice.api.InvoiceItem insertExternalChargeForInvoice(Java::java.util.UUID, Java::java.util.UUID, Java::java.math.BigDecimal, Java::java.lang.String, Java::org.joda.time.LocalDate, Java::com.ning.billing.catalog.api.Currency, Java::com.ning.billing.util.callcontext.CallContext)'
327
+ java_signature 'Java::org.killbill.billing.invoice.api.InvoiceItem insertExternalChargeForInvoice(Java::java.util.UUID, Java::java.util.UUID, Java::java.math.BigDecimal, Java::java.lang.String, Java::org.joda.time.LocalDate, Java::org.killbill.billing.catalog.api.Currency, Java::org.killbill.billing.util.callcontext.CallContext)'
328
328
  def insert_external_charge_for_invoice(accountId, invoiceId, amount, description, effectiveDate, currency, context)
329
329
 
330
330
  # conversion for accountId [type = java.util.UUID]
@@ -348,22 +348,22 @@ module Killbill
348
348
  effectiveDate = Java::org.joda.time.LocalDate.parse(effectiveDate.to_s)
349
349
  end
350
350
 
351
- # conversion for currency [type = com.ning.billing.catalog.api.Currency]
352
- currency = Java::com.ning.billing.catalog.api.Currency.value_of("#{currency.to_s}") unless currency.nil?
351
+ # conversion for currency [type = org.killbill.billing.catalog.api.Currency]
352
+ currency = Java::org.killbill.billing.catalog.api.Currency.value_of("#{currency.to_s}") unless currency.nil?
353
353
 
354
- # conversion for context [type = com.ning.billing.util.callcontext.CallContext]
354
+ # conversion for context [type = org.killbill.billing.util.callcontext.CallContext]
355
355
  context = context.to_java unless context.nil?
356
356
  begin
357
357
  res = @real_java_api.insert_external_charge_for_invoice(accountId, invoiceId, amount, description, effectiveDate, currency, context)
358
- # conversion for res [type = com.ning.billing.invoice.api.InvoiceItem]
358
+ # conversion for res [type = org.killbill.billing.invoice.api.InvoiceItem]
359
359
  res = Killbill::Plugin::Model::InvoiceItem.new.to_ruby(res) unless res.nil?
360
360
  return res
361
- rescue Java::com.ning.billing.invoice.api.InvoiceApiException => e
361
+ rescue Java::org.killbill.billing.invoice.api.InvoiceApiException => e
362
362
  raise Killbill::Plugin::Model::InvoiceApiException.new.to_ruby(e)
363
363
  end
364
364
  end
365
365
 
366
- java_signature 'Java::com.ning.billing.invoice.api.InvoiceItem insertExternalChargeForInvoiceAndBundle(Java::java.util.UUID, Java::java.util.UUID, Java::java.util.UUID, Java::java.math.BigDecimal, Java::java.lang.String, Java::org.joda.time.LocalDate, Java::com.ning.billing.catalog.api.Currency, Java::com.ning.billing.util.callcontext.CallContext)'
366
+ java_signature 'Java::org.killbill.billing.invoice.api.InvoiceItem insertExternalChargeForInvoiceAndBundle(Java::java.util.UUID, Java::java.util.UUID, Java::java.util.UUID, Java::java.math.BigDecimal, Java::java.lang.String, Java::org.joda.time.LocalDate, Java::org.killbill.billing.catalog.api.Currency, Java::org.killbill.billing.util.callcontext.CallContext)'
367
367
  def insert_external_charge_for_invoice_and_bundle(accountId, invoiceId, bundleId, amount, description, effectiveDate, currency, context)
368
368
 
369
369
  # conversion for accountId [type = java.util.UUID]
@@ -390,40 +390,40 @@ module Killbill
390
390
  effectiveDate = Java::org.joda.time.LocalDate.parse(effectiveDate.to_s)
391
391
  end
392
392
 
393
- # conversion for currency [type = com.ning.billing.catalog.api.Currency]
394
- currency = Java::com.ning.billing.catalog.api.Currency.value_of("#{currency.to_s}") unless currency.nil?
393
+ # conversion for currency [type = org.killbill.billing.catalog.api.Currency]
394
+ currency = Java::org.killbill.billing.catalog.api.Currency.value_of("#{currency.to_s}") unless currency.nil?
395
395
 
396
- # conversion for context [type = com.ning.billing.util.callcontext.CallContext]
396
+ # conversion for context [type = org.killbill.billing.util.callcontext.CallContext]
397
397
  context = context.to_java unless context.nil?
398
398
  begin
399
399
  res = @real_java_api.insert_external_charge_for_invoice_and_bundle(accountId, invoiceId, bundleId, amount, description, effectiveDate, currency, context)
400
- # conversion for res [type = com.ning.billing.invoice.api.InvoiceItem]
400
+ # conversion for res [type = org.killbill.billing.invoice.api.InvoiceItem]
401
401
  res = Killbill::Plugin::Model::InvoiceItem.new.to_ruby(res) unless res.nil?
402
402
  return res
403
- rescue Java::com.ning.billing.invoice.api.InvoiceApiException => e
403
+ rescue Java::org.killbill.billing.invoice.api.InvoiceApiException => e
404
404
  raise Killbill::Plugin::Model::InvoiceApiException.new.to_ruby(e)
405
405
  end
406
406
  end
407
407
 
408
- java_signature 'Java::com.ning.billing.invoice.api.InvoiceItem getCreditById(Java::java.util.UUID, Java::com.ning.billing.util.callcontext.TenantContext)'
408
+ java_signature 'Java::org.killbill.billing.invoice.api.InvoiceItem getCreditById(Java::java.util.UUID, Java::org.killbill.billing.util.callcontext.TenantContext)'
409
409
  def get_credit_by_id(creditId, context)
410
410
 
411
411
  # conversion for creditId [type = java.util.UUID]
412
412
  creditId = java.util.UUID.fromString(creditId.to_s) unless creditId.nil?
413
413
 
414
- # conversion for context [type = com.ning.billing.util.callcontext.TenantContext]
414
+ # conversion for context [type = org.killbill.billing.util.callcontext.TenantContext]
415
415
  context = context.to_java unless context.nil?
416
416
  begin
417
417
  res = @real_java_api.get_credit_by_id(creditId, context)
418
- # conversion for res [type = com.ning.billing.invoice.api.InvoiceItem]
418
+ # conversion for res [type = org.killbill.billing.invoice.api.InvoiceItem]
419
419
  res = Killbill::Plugin::Model::InvoiceItem.new.to_ruby(res) unless res.nil?
420
420
  return res
421
- rescue Java::com.ning.billing.invoice.api.InvoiceApiException => e
421
+ rescue Java::org.killbill.billing.invoice.api.InvoiceApiException => e
422
422
  raise Killbill::Plugin::Model::InvoiceApiException.new.to_ruby(e)
423
423
  end
424
424
  end
425
425
 
426
- java_signature 'Java::com.ning.billing.invoice.api.InvoiceItem insertCredit(Java::java.util.UUID, Java::java.math.BigDecimal, Java::org.joda.time.LocalDate, Java::com.ning.billing.catalog.api.Currency, Java::com.ning.billing.util.callcontext.CallContext)'
426
+ java_signature 'Java::org.killbill.billing.invoice.api.InvoiceItem insertCredit(Java::java.util.UUID, Java::java.math.BigDecimal, Java::org.joda.time.LocalDate, Java::org.killbill.billing.catalog.api.Currency, Java::org.killbill.billing.util.callcontext.CallContext)'
427
427
  def insert_credit(accountId, amount, effectiveDate, currency, context)
428
428
 
429
429
  # conversion for accountId [type = java.util.UUID]
@@ -441,22 +441,22 @@ module Killbill
441
441
  effectiveDate = Java::org.joda.time.LocalDate.parse(effectiveDate.to_s)
442
442
  end
443
443
 
444
- # conversion for currency [type = com.ning.billing.catalog.api.Currency]
445
- currency = Java::com.ning.billing.catalog.api.Currency.value_of("#{currency.to_s}") unless currency.nil?
444
+ # conversion for currency [type = org.killbill.billing.catalog.api.Currency]
445
+ currency = Java::org.killbill.billing.catalog.api.Currency.value_of("#{currency.to_s}") unless currency.nil?
446
446
 
447
- # conversion for context [type = com.ning.billing.util.callcontext.CallContext]
447
+ # conversion for context [type = org.killbill.billing.util.callcontext.CallContext]
448
448
  context = context.to_java unless context.nil?
449
449
  begin
450
450
  res = @real_java_api.insert_credit(accountId, amount, effectiveDate, currency, context)
451
- # conversion for res [type = com.ning.billing.invoice.api.InvoiceItem]
451
+ # conversion for res [type = org.killbill.billing.invoice.api.InvoiceItem]
452
452
  res = Killbill::Plugin::Model::InvoiceItem.new.to_ruby(res) unless res.nil?
453
453
  return res
454
- rescue Java::com.ning.billing.invoice.api.InvoiceApiException => e
454
+ rescue Java::org.killbill.billing.invoice.api.InvoiceApiException => e
455
455
  raise Killbill::Plugin::Model::InvoiceApiException.new.to_ruby(e)
456
456
  end
457
457
  end
458
458
 
459
- java_signature 'Java::com.ning.billing.invoice.api.InvoiceItem insertCreditForInvoice(Java::java.util.UUID, Java::java.util.UUID, Java::java.math.BigDecimal, Java::org.joda.time.LocalDate, Java::com.ning.billing.catalog.api.Currency, Java::com.ning.billing.util.callcontext.CallContext)'
459
+ java_signature 'Java::org.killbill.billing.invoice.api.InvoiceItem insertCreditForInvoice(Java::java.util.UUID, Java::java.util.UUID, Java::java.math.BigDecimal, Java::org.joda.time.LocalDate, Java::org.killbill.billing.catalog.api.Currency, Java::org.killbill.billing.util.callcontext.CallContext)'
460
460
  def insert_credit_for_invoice(accountId, invoiceId, amount, effectiveDate, currency, context)
461
461
 
462
462
  # conversion for accountId [type = java.util.UUID]
@@ -477,22 +477,22 @@ module Killbill
477
477
  effectiveDate = Java::org.joda.time.LocalDate.parse(effectiveDate.to_s)
478
478
  end
479
479
 
480
- # conversion for currency [type = com.ning.billing.catalog.api.Currency]
481
- currency = Java::com.ning.billing.catalog.api.Currency.value_of("#{currency.to_s}") unless currency.nil?
480
+ # conversion for currency [type = org.killbill.billing.catalog.api.Currency]
481
+ currency = Java::org.killbill.billing.catalog.api.Currency.value_of("#{currency.to_s}") unless currency.nil?
482
482
 
483
- # conversion for context [type = com.ning.billing.util.callcontext.CallContext]
483
+ # conversion for context [type = org.killbill.billing.util.callcontext.CallContext]
484
484
  context = context.to_java unless context.nil?
485
485
  begin
486
486
  res = @real_java_api.insert_credit_for_invoice(accountId, invoiceId, amount, effectiveDate, currency, context)
487
- # conversion for res [type = com.ning.billing.invoice.api.InvoiceItem]
487
+ # conversion for res [type = org.killbill.billing.invoice.api.InvoiceItem]
488
488
  res = Killbill::Plugin::Model::InvoiceItem.new.to_ruby(res) unless res.nil?
489
489
  return res
490
- rescue Java::com.ning.billing.invoice.api.InvoiceApiException => e
490
+ rescue Java::org.killbill.billing.invoice.api.InvoiceApiException => e
491
491
  raise Killbill::Plugin::Model::InvoiceApiException.new.to_ruby(e)
492
492
  end
493
493
  end
494
494
 
495
- java_signature 'Java::com.ning.billing.invoice.api.InvoiceItem insertInvoiceItemAdjustment(Java::java.util.UUID, Java::java.util.UUID, Java::java.util.UUID, Java::org.joda.time.LocalDate, Java::com.ning.billing.util.callcontext.CallContext)'
495
+ java_signature 'Java::org.killbill.billing.invoice.api.InvoiceItem insertInvoiceItemAdjustment(Java::java.util.UUID, Java::java.util.UUID, Java::java.util.UUID, Java::org.joda.time.LocalDate, Java::org.killbill.billing.util.callcontext.CallContext)'
496
496
  def insert_invoice_item_adjustment(accountId, invoiceId, invoiceItemId, effectiveDate, context)
497
497
 
498
498
  # conversion for accountId [type = java.util.UUID]
@@ -509,19 +509,19 @@ module Killbill
509
509
  effectiveDate = Java::org.joda.time.LocalDate.parse(effectiveDate.to_s)
510
510
  end
511
511
 
512
- # conversion for context [type = com.ning.billing.util.callcontext.CallContext]
512
+ # conversion for context [type = org.killbill.billing.util.callcontext.CallContext]
513
513
  context = context.to_java unless context.nil?
514
514
  begin
515
515
  res = @real_java_api.insert_invoice_item_adjustment(accountId, invoiceId, invoiceItemId, effectiveDate, context)
516
- # conversion for res [type = com.ning.billing.invoice.api.InvoiceItem]
516
+ # conversion for res [type = org.killbill.billing.invoice.api.InvoiceItem]
517
517
  res = Killbill::Plugin::Model::InvoiceItem.new.to_ruby(res) unless res.nil?
518
518
  return res
519
- rescue Java::com.ning.billing.invoice.api.InvoiceApiException => e
519
+ rescue Java::org.killbill.billing.invoice.api.InvoiceApiException => e
520
520
  raise Killbill::Plugin::Model::InvoiceApiException.new.to_ruby(e)
521
521
  end
522
522
  end
523
523
 
524
- java_signature 'Java::void deleteCBA(Java::java.util.UUID, Java::java.util.UUID, Java::java.util.UUID, Java::com.ning.billing.util.callcontext.CallContext)'
524
+ java_signature 'Java::void deleteCBA(Java::java.util.UUID, Java::java.util.UUID, Java::java.util.UUID, Java::org.killbill.billing.util.callcontext.CallContext)'
525
525
  def delete_cba(accountId, invoiceId, invoiceItemId, context)
526
526
 
527
527
  # conversion for accountId [type = java.util.UUID]
@@ -533,39 +533,39 @@ module Killbill
533
533
  # conversion for invoiceItemId [type = java.util.UUID]
534
534
  invoiceItemId = java.util.UUID.fromString(invoiceItemId.to_s) unless invoiceItemId.nil?
535
535
 
536
- # conversion for context [type = com.ning.billing.util.callcontext.CallContext]
536
+ # conversion for context [type = org.killbill.billing.util.callcontext.CallContext]
537
537
  context = context.to_java unless context.nil?
538
538
  @real_java_api.delete_cba(accountId, invoiceId, invoiceItemId, context)
539
539
  end
540
540
 
541
- java_signature 'Java::java.lang.String getInvoiceAsHTML(Java::java.util.UUID, Java::com.ning.billing.util.callcontext.TenantContext)'
541
+ java_signature 'Java::java.lang.String getInvoiceAsHTML(Java::java.util.UUID, Java::org.killbill.billing.util.callcontext.TenantContext)'
542
542
  def get_invoice_as_html(invoiceId, context)
543
543
 
544
544
  # conversion for invoiceId [type = java.util.UUID]
545
545
  invoiceId = java.util.UUID.fromString(invoiceId.to_s) unless invoiceId.nil?
546
546
 
547
- # conversion for context [type = com.ning.billing.util.callcontext.TenantContext]
547
+ # conversion for context [type = org.killbill.billing.util.callcontext.TenantContext]
548
548
  context = context.to_java unless context.nil?
549
549
  begin
550
550
  res = @real_java_api.get_invoice_as_html(invoiceId, context)
551
551
  # conversion for res [type = java.lang.String]
552
552
  return res
553
- rescue Java::com.ning.billing.account.api.AccountApiException => e
553
+ rescue Java::org.killbill.billing.account.api.AccountApiException => e
554
554
  raise Killbill::Plugin::Model::AccountApiException.new.to_ruby(e)
555
555
  rescue Java::java.io.IOException => e
556
556
  raise ApiException.new("java.io.IOException: #{e.msg unless e.msg.nil?}")
557
- rescue Java::com.ning.billing.invoice.api.InvoiceApiException => e
557
+ rescue Java::org.killbill.billing.invoice.api.InvoiceApiException => e
558
558
  raise Killbill::Plugin::Model::InvoiceApiException.new.to_ruby(e)
559
559
  end
560
560
  end
561
561
 
562
- java_signature 'Java::void consumeExstingCBAOnAccountWithUnpaidInvoices(Java::java.util.UUID, Java::com.ning.billing.util.callcontext.CallContext)'
562
+ java_signature 'Java::void consumeExstingCBAOnAccountWithUnpaidInvoices(Java::java.util.UUID, Java::org.killbill.billing.util.callcontext.CallContext)'
563
563
  def consume_exsting_cba_onaccount_with_unpaid_invoices(accountId, context)
564
564
 
565
565
  # conversion for accountId [type = java.util.UUID]
566
566
  accountId = java.util.UUID.fromString(accountId.to_s) unless accountId.nil?
567
567
 
568
- # conversion for context [type = com.ning.billing.util.callcontext.CallContext]
568
+ # conversion for context [type = org.killbill.billing.util.callcontext.CallContext]
569
569
  context = context.to_java unless context.nil?
570
570
  @real_java_api.consume_exsting_cba_onaccount_with_unpaid_invoices(accountId, context)
571
571
  end