killbill 8.3.6 → 9.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (69) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +51 -0
  3. data/Gemfile.lock +4 -4
  4. data/Jarfile +11 -11
  5. data/Jarfile.lock +63 -57
  6. data/NEWS +2 -8
  7. data/README.md +1 -0
  8. data/gen_config/api.conf +2 -0
  9. data/lib/killbill/gen/api/account.rb +20 -20
  10. data/lib/killbill/gen/api/account_data.rb +15 -1
  11. data/lib/killbill/gen/api/block_price_override.rb +81 -0
  12. data/lib/killbill/gen/api/call_context.rb +8 -1
  13. data/lib/killbill/gen/api/catalog_entity.rb +7 -1
  14. data/lib/killbill/gen/api/catalog_user_api.rb +8 -0
  15. data/lib/killbill/gen/api/custom_field_user_api.rb +17 -0
  16. data/lib/killbill/gen/api/email_notification.rb +75 -0
  17. data/lib/killbill/gen/api/entitlement_api.rb +12 -6
  18. data/lib/killbill/gen/api/immutable_account_data.rb +1 -20
  19. data/lib/killbill/gen/api/invoice.rb +15 -1
  20. data/lib/killbill/gen/api/invoice_formatter.rb +15 -1
  21. data/lib/killbill/gen/api/invoice_item.rb +19 -1
  22. data/lib/killbill/gen/api/invoice_item_formatter.rb +19 -1
  23. data/lib/killbill/gen/api/migration_plan.rb +14 -1
  24. data/lib/killbill/gen/api/mutable_account_data.rb +15 -1
  25. data/lib/killbill/gen/api/mutable_static_catalog.rb +1 -8
  26. data/lib/killbill/gen/api/osgi_killbill.rb +8 -1
  27. data/lib/killbill/gen/api/overdue_api.rb +88 -0
  28. data/lib/killbill/gen/api/overdue_api_exception.rb +68 -0
  29. data/lib/killbill/gen/api/overdue_condition.rb +108 -0
  30. data/lib/killbill/gen/api/overdue_config.rb +58 -0
  31. data/lib/killbill/gen/api/overdue_state.rb +120 -0
  32. data/lib/killbill/gen/api/overdue_states_account.rb +72 -0
  33. data/lib/killbill/gen/api/payment_api.rb +192 -51
  34. data/lib/killbill/gen/api/plan.rb +14 -1
  35. data/lib/killbill/gen/api/plan_phase.rb +7 -1
  36. data/lib/killbill/gen/api/plan_phase_price_override.rb +20 -1
  37. data/lib/killbill/gen/api/price_list.rb +7 -1
  38. data/lib/killbill/gen/api/product.rb +7 -1
  39. data/lib/killbill/gen/api/require_gen.rb +131 -121
  40. data/lib/killbill/gen/api/security_api.rb +20 -0
  41. data/lib/killbill/gen/api/static_catalog.rb +1 -8
  42. data/lib/killbill/gen/api/tag_user_api.rb +12 -3
  43. data/lib/killbill/gen/api/tenant_context.rb +8 -1
  44. data/lib/killbill/gen/api/tier_price_override.rb +70 -0
  45. data/lib/killbill/gen/api/tiered_block_price_override.rb +87 -0
  46. data/lib/killbill/gen/api/unit.rb +7 -1
  47. data/lib/killbill/gen/api/usage.rb +14 -1
  48. data/lib/killbill/gen/api/usage_price_override.rb +83 -0
  49. data/lib/killbill/gen/plugin-api/catalog_plugin_api.rb +34 -0
  50. data/lib/killbill/gen/plugin-api/entitlement_context.rb +8 -8
  51. data/lib/killbill/gen/plugin-api/ext_bus_event.rb +8 -1
  52. data/lib/killbill/gen/plugin-api/invoice_payment_metadata.rb +115 -0
  53. data/lib/killbill/gen/plugin-api/invoice_plugin_api_retry_exception.rb +64 -0
  54. data/lib/killbill/gen/plugin-api/notification_plugin_api_retry_exception.rb +64 -0
  55. data/lib/killbill/gen/plugin-api/payment_control_context.rb +14 -8
  56. data/lib/killbill/gen/plugin-api/prior_payment_control_result.rb +7 -1
  57. data/lib/killbill/gen/plugin-api/require_gen.rb +15 -12
  58. data/lib/killbill/gen/plugin-api/subscription_metadata.rb +8 -2
  59. data/lib/killbill/gen/plugin-api/versioned_plugin_catalog.rb +1 -8
  60. data/lib/killbill/helpers/active_merchant/active_record/models/response.rb +6 -21
  61. data/lib/killbill/helpers/active_merchant/killbill_spec_helper.rb +1 -1
  62. data/lib/killbill/helpers/active_merchant/payment_plugin.rb +12 -12
  63. data/lib/killbill/version.rb +1 -1
  64. data/spec/killbill/helpers/response_spec.rb +0 -7
  65. data/spec/killbill/helpers/test_response.rb +0 -4
  66. data/spec/killbill/killbillapi_spec.rb +1 -0
  67. metadata +17 -4
  68. data/.circleci/config.yml +0 -138
  69. data/lib/killbill/gen/api/refund.rb +0 -151
@@ -34,12 +34,15 @@ module Killbill
34
34
 
35
35
  include org.killbill.billing.util.callcontext.CallContext
36
36
 
37
- attr_accessor :tenant_id, :user_token, :user_name, :call_origin, :user_type, :reason_code, :comments, :created_date, :updated_date
37
+ attr_accessor :account_id, :tenant_id, :user_token, :user_name, :call_origin, :user_type, :reason_code, :comments, :created_date, :updated_date
38
38
 
39
39
  def initialize()
40
40
  end
41
41
 
42
42
  def to_java()
43
+ # conversion for account_id [type = java.util.UUID]
44
+ @account_id = java.util.UUID.fromString(@account_id.to_s) unless @account_id.nil?
45
+
43
46
  # conversion for tenant_id [type = java.util.UUID]
44
47
  @tenant_id = java.util.UUID.fromString(@tenant_id.to_s) unless @tenant_id.nil?
45
48
 
@@ -76,6 +79,10 @@ module Killbill
76
79
  end
77
80
 
78
81
  def to_ruby(j_obj)
82
+ # conversion for account_id [type = java.util.UUID]
83
+ @account_id = j_obj.account_id
84
+ @account_id = @account_id.nil? ? nil : @account_id.to_s
85
+
79
86
  # conversion for tenant_id [type = java.util.UUID]
80
87
  @tenant_id = j_obj.tenant_id
81
88
  @tenant_id = @tenant_id.nil? ? nil : @tenant_id.to_s
@@ -34,7 +34,7 @@ module Killbill
34
34
 
35
35
  include org.killbill.billing.catalog.api.CatalogEntity
36
36
 
37
- attr_accessor :name
37
+ attr_accessor :name, :pretty_name
38
38
 
39
39
  def initialize()
40
40
  end
@@ -42,12 +42,18 @@ module Killbill
42
42
  def to_java()
43
43
  # conversion for name [type = java.lang.String]
44
44
  @name = @name.to_s unless @name.nil?
45
+
46
+ # conversion for pretty_name [type = java.lang.String]
47
+ @pretty_name = @pretty_name.to_s unless @pretty_name.nil?
45
48
  self
46
49
  end
47
50
 
48
51
  def to_ruby(j_obj)
49
52
  # conversion for name [type = java.lang.String]
50
53
  @name = j_obj.name
54
+
55
+ # conversion for pretty_name [type = java.lang.String]
56
+ @pretty_name = j_obj.pretty_name
51
57
  self
52
58
  end
53
59
 
@@ -116,6 +116,14 @@ module Killbill
116
116
  context = context.to_java unless context.nil?
117
117
  @real_java_api.add_simple_plan(planDescriptor, requestedDate, context)
118
118
  end
119
+
120
+ java_signature 'Java::void deleteCatalog(Java::org.killbill.billing.util.callcontext.CallContext)'
121
+ def delete_catalog(callContext)
122
+
123
+ # conversion for callContext [type = org.killbill.billing.util.callcontext.CallContext]
124
+ callContext = callContext.to_java unless callContext.nil?
125
+ @real_java_api.delete_catalog(callContext)
126
+ end
119
127
  end
120
128
  end
121
129
  end
@@ -93,6 +93,23 @@ module Killbill
93
93
  @real_java_api.add_custom_fields(fields, context)
94
94
  end
95
95
 
96
+ java_signature 'Java::void updateCustomFields(Java::java.util.List, Java::org.killbill.billing.util.callcontext.CallContext)'
97
+ def update_custom_fields(fields, context)
98
+
99
+ # conversion for fields [type = java.util.List]
100
+ tmp = java.util.ArrayList.new
101
+ (fields || []).each do |m|
102
+ # conversion for m [type = org.killbill.billing.util.customfield.CustomField]
103
+ m = m.to_java unless m.nil?
104
+ tmp.add(m)
105
+ end
106
+ fields = tmp
107
+
108
+ # conversion for context [type = org.killbill.billing.util.callcontext.CallContext]
109
+ context = context.to_java unless context.nil?
110
+ @real_java_api.update_custom_fields(fields, context)
111
+ end
112
+
96
113
  java_signature 'Java::void removeCustomFields(Java::java.util.List, Java::org.killbill.billing.util.callcontext.CallContext)'
97
114
  def remove_custom_fields(fields, context)
98
115
 
@@ -0,0 +1,75 @@
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.overdue.api'
33
+ class EmailNotification
34
+
35
+ include org.killbill.billing.overdue.api.EmailNotification
36
+
37
+ attr_accessor :subject, :template_name, :is_html
38
+
39
+ def initialize()
40
+ end
41
+
42
+ def to_java()
43
+ # conversion for subject [type = java.lang.String]
44
+ @subject = @subject.to_s unless @subject.nil?
45
+
46
+ # conversion for template_name [type = java.lang.String]
47
+ @template_name = @template_name.to_s unless @template_name.nil?
48
+
49
+ # conversion for is_html [type = java.lang.Boolean]
50
+ @is_html = @is_html.nil? ? java.lang.Boolean.new(false) : java.lang.Boolean.new(@is_html)
51
+ self
52
+ end
53
+
54
+ def to_ruby(j_obj)
55
+ # conversion for subject [type = java.lang.String]
56
+ @subject = j_obj.subject
57
+
58
+ # conversion for template_name [type = java.lang.String]
59
+ @template_name = j_obj.template_name
60
+
61
+ # conversion for is_html [type = java.lang.Boolean]
62
+ @is_html = j_obj.is_html
63
+ if @is_html.nil?
64
+ @is_html = false
65
+ else
66
+ tmp_bool = (@is_html.java_kind_of? java.lang.Boolean) ? @is_html.boolean_value : @is_html
67
+ @is_html = tmp_bool ? true : false
68
+ end
69
+ self
70
+ end
71
+
72
+ end
73
+ end
74
+ end
75
+ end
@@ -39,8 +39,8 @@ module Killbill
39
39
  end
40
40
 
41
41
 
42
- java_signature 'Java::org.killbill.billing.entitlement.api.Entitlement createBaseEntitlement(Java::java.util.UUID, Java::org.killbill.billing.catalog.api.PlanPhaseSpecifier, Java::java.lang.String, Java::java.util.List, Java::org.joda.time.LocalDate, Java::org.joda.time.LocalDate, Java::boolean, Java::java.lang.Iterable, Java::org.killbill.billing.util.callcontext.CallContext)'
43
- def create_base_entitlement(accountId, spec, externalKey, overrides, entitlementEffectiveDate, billingEffectiveDate, isMigrated, properties, context)
42
+ java_signature 'Java::org.killbill.billing.entitlement.api.Entitlement createBaseEntitlement(Java::java.util.UUID, Java::org.killbill.billing.catalog.api.PlanPhaseSpecifier, Java::java.lang.String, Java::java.util.List, Java::org.joda.time.LocalDate, Java::org.joda.time.LocalDate, Java::boolean, Java::boolean, Java::java.lang.Iterable, Java::org.killbill.billing.util.callcontext.CallContext)'
43
+ def create_base_entitlement(accountId, spec, externalKey, overrides, entitlementEffectiveDate, billingEffectiveDate, isMigrated, renameCancelledBundleIfExist, properties, context)
44
44
 
45
45
  # conversion for accountId [type = java.util.UUID]
46
46
  accountId = java.util.UUID.fromString(accountId.to_s) unless accountId.nil?
@@ -73,6 +73,9 @@ module Killbill
73
73
  # conversion for isMigrated [type = boolean]
74
74
  isMigrated = isMigrated.nil? ? java.lang.Boolean.new(false) : java.lang.Boolean.new(isMigrated)
75
75
 
76
+ # conversion for renameCancelledBundleIfExist [type = boolean]
77
+ renameCancelledBundleIfExist = renameCancelledBundleIfExist.nil? ? java.lang.Boolean.new(false) : java.lang.Boolean.new(renameCancelledBundleIfExist)
78
+
76
79
  # conversion for properties [type = java.lang.Iterable]
77
80
  tmp = java.util.ArrayList.new
78
81
  (properties || []).each do |m|
@@ -85,7 +88,7 @@ module Killbill
85
88
  # conversion for context [type = org.killbill.billing.util.callcontext.CallContext]
86
89
  context = context.to_java unless context.nil?
87
90
  begin
88
- res = @real_java_api.create_base_entitlement(accountId, spec, externalKey, overrides, entitlementEffectiveDate, billingEffectiveDate, isMigrated, properties, context)
91
+ res = @real_java_api.create_base_entitlement(accountId, spec, externalKey, overrides, entitlementEffectiveDate, billingEffectiveDate, isMigrated, renameCancelledBundleIfExist, properties, context)
89
92
  # conversion for res [type = org.killbill.billing.entitlement.api.Entitlement]
90
93
  res = Killbill::Plugin::Model::Entitlement.new.to_ruby(res) unless res.nil?
91
94
  return res
@@ -94,8 +97,8 @@ module Killbill
94
97
  end
95
98
  end
96
99
 
97
- java_signature 'Java::java.util.List createBaseEntitlementsWithAddOns(Java::java.util.UUID, Java::java.lang.Iterable, Java::java.lang.Iterable, Java::org.killbill.billing.util.callcontext.CallContext)'
98
- def create_base_entitlements_with_add_ons(accountId, baseEntitlementWithAddOnsSpecifier, properties, context)
100
+ java_signature 'Java::java.util.List createBaseEntitlementsWithAddOns(Java::java.util.UUID, Java::java.lang.Iterable, Java::boolean, Java::java.lang.Iterable, Java::org.killbill.billing.util.callcontext.CallContext)'
101
+ def create_base_entitlements_with_add_ons(accountId, baseEntitlementWithAddOnsSpecifier, renameCancelledBundleIfExist, properties, context)
99
102
 
100
103
  # conversion for accountId [type = java.util.UUID]
101
104
  accountId = java.util.UUID.fromString(accountId.to_s) unless accountId.nil?
@@ -109,6 +112,9 @@ module Killbill
109
112
  end
110
113
  baseEntitlementWithAddOnsSpecifier = tmp
111
114
 
115
+ # conversion for renameCancelledBundleIfExist [type = boolean]
116
+ renameCancelledBundleIfExist = renameCancelledBundleIfExist.nil? ? java.lang.Boolean.new(false) : java.lang.Boolean.new(renameCancelledBundleIfExist)
117
+
112
118
  # conversion for properties [type = java.lang.Iterable]
113
119
  tmp = java.util.ArrayList.new
114
120
  (properties || []).each do |m|
@@ -121,7 +127,7 @@ module Killbill
121
127
  # conversion for context [type = org.killbill.billing.util.callcontext.CallContext]
122
128
  context = context.to_java unless context.nil?
123
129
  begin
124
- res = @real_java_api.create_base_entitlements_with_add_ons(accountId, baseEntitlementWithAddOnsSpecifier, properties, context)
130
+ res = @real_java_api.create_base_entitlements_with_add_ons(accountId, baseEntitlementWithAddOnsSpecifier, renameCancelledBundleIfExist, properties, context)
125
131
  # conversion for res [type = java.util.List]
126
132
  tmp = []
127
133
  (res || []).each do |m|
@@ -34,7 +34,7 @@ module Killbill
34
34
 
35
35
  include org.killbill.billing.account.api.ImmutableAccountData
36
36
 
37
- attr_accessor :id, :external_key, :currency, :time_zone, :parent_account_id, :is_payment_delegated_to_parent, :fixed_offset_time_zone, :reference_time
37
+ attr_accessor :id, :external_key, :currency, :time_zone, :fixed_offset_time_zone, :reference_time
38
38
 
39
39
  def initialize()
40
40
  end
@@ -54,12 +54,6 @@ module Killbill
54
54
  @time_zone = Java::org.joda.time.DateTimeZone.forID((@time_zone.respond_to?(:identifier) ? @time_zone.identifier : @time_zone.to_s))
55
55
  end
56
56
 
57
- # conversion for parent_account_id [type = java.util.UUID]
58
- @parent_account_id = java.util.UUID.fromString(@parent_account_id.to_s) unless @parent_account_id.nil?
59
-
60
- # conversion for is_payment_delegated_to_parent [type = java.lang.Boolean]
61
- @is_payment_delegated_to_parent = @is_payment_delegated_to_parent.nil? ? java.lang.Boolean.new(false) : java.lang.Boolean.new(@is_payment_delegated_to_parent)
62
-
63
57
  # conversion for fixed_offset_time_zone [type = org.joda.time.DateTimeZone]
64
58
  if !@fixed_offset_time_zone.nil?
65
59
  @fixed_offset_time_zone = Java::org.joda.time.DateTimeZone.forID((@fixed_offset_time_zone.respond_to?(:identifier) ? @fixed_offset_time_zone.identifier : @fixed_offset_time_zone.to_s))
@@ -91,19 +85,6 @@ module Killbill
91
85
  @time_zone = TZInfo::Timezone.get(@time_zone.get_id)
92
86
  end
93
87
 
94
- # conversion for parent_account_id [type = java.util.UUID]
95
- @parent_account_id = j_obj.parent_account_id
96
- @parent_account_id = @parent_account_id.nil? ? nil : @parent_account_id.to_s
97
-
98
- # conversion for is_payment_delegated_to_parent [type = java.lang.Boolean]
99
- @is_payment_delegated_to_parent = j_obj.is_payment_delegated_to_parent
100
- if @is_payment_delegated_to_parent.nil?
101
- @is_payment_delegated_to_parent = false
102
- else
103
- tmp_bool = (@is_payment_delegated_to_parent.java_kind_of? java.lang.Boolean) ? @is_payment_delegated_to_parent.boolean_value : @is_payment_delegated_to_parent
104
- @is_payment_delegated_to_parent = tmp_bool ? true : false
105
- end
106
-
107
88
  # conversion for fixed_offset_time_zone [type = org.joda.time.DateTimeZone]
108
89
  @fixed_offset_time_zone = j_obj.fixed_offset_time_zone
109
90
  if !@fixed_offset_time_zone.nil?
@@ -34,7 +34,7 @@ module Killbill
34
34
 
35
35
  include org.killbill.billing.invoice.api.Invoice
36
36
 
37
- attr_accessor :id, :created_date, :updated_date, :invoice_items, :number_of_items, :payments, :number_of_payments, :account_id, :invoice_number, :invoice_date, :target_date, :currency, :paid_amount, :original_charged_amount, :charged_amount, :credited_amount, :refunded_amount, :balance, :is_migration_invoice, :status, :is_parent_invoice
37
+ attr_accessor :id, :created_date, :updated_date, :invoice_items, :number_of_items, :payments, :number_of_payments, :account_id, :invoice_number, :invoice_date, :target_date, :currency, :paid_amount, :original_charged_amount, :charged_amount, :credited_amount, :refunded_amount, :balance, :is_migration_invoice, :status, :is_parent_invoice, :parent_account_id, :parent_invoice_id
38
38
 
39
39
  def initialize()
40
40
  end
@@ -148,6 +148,12 @@ module Killbill
148
148
 
149
149
  # conversion for is_parent_invoice [type = boolean]
150
150
  @is_parent_invoice = @is_parent_invoice.nil? ? java.lang.Boolean.new(false) : java.lang.Boolean.new(@is_parent_invoice)
151
+
152
+ # conversion for parent_account_id [type = java.util.UUID]
153
+ @parent_account_id = java.util.UUID.fromString(@parent_account_id.to_s) unless @parent_account_id.nil?
154
+
155
+ # conversion for parent_invoice_id [type = java.util.UUID]
156
+ @parent_invoice_id = java.util.UUID.fromString(@parent_invoice_id.to_s) unless @parent_invoice_id.nil?
151
157
  self
152
158
  end
153
159
 
@@ -266,6 +272,14 @@ module Killbill
266
272
  tmp_bool = (@is_parent_invoice.java_kind_of? java.lang.Boolean) ? @is_parent_invoice.boolean_value : @is_parent_invoice
267
273
  @is_parent_invoice = tmp_bool ? true : false
268
274
  end
275
+
276
+ # conversion for parent_account_id [type = java.util.UUID]
277
+ @parent_account_id = j_obj.parent_account_id
278
+ @parent_account_id = @parent_account_id.nil? ? nil : @parent_account_id.to_s
279
+
280
+ # conversion for parent_invoice_id [type = java.util.UUID]
281
+ @parent_invoice_id = j_obj.parent_invoice_id
282
+ @parent_invoice_id = @parent_invoice_id.nil? ? nil : @parent_invoice_id.to_s
269
283
  self
270
284
  end
271
285
 
@@ -34,7 +34,7 @@ module Killbill
34
34
 
35
35
  include org.killbill.billing.invoice.api.formatters.InvoiceFormatter
36
36
 
37
- attr_accessor :invoice_items, :number_of_items, :payments, :number_of_payments, :account_id, :invoice_number, :invoice_date, :target_date, :currency, :paid_amount, :original_charged_amount, :charged_amount, :credited_amount, :refunded_amount, :balance, :is_migration_invoice, :status, :is_parent_invoice, :id, :created_date, :updated_date, :formatted_invoice_date, :formatted_charged_amount, :formatted_paid_amount, :formatted_balance, :processed_currency, :processed_payment_rate
37
+ attr_accessor :invoice_items, :number_of_items, :payments, :number_of_payments, :account_id, :invoice_number, :invoice_date, :target_date, :currency, :paid_amount, :original_charged_amount, :charged_amount, :credited_amount, :refunded_amount, :balance, :is_migration_invoice, :status, :is_parent_invoice, :parent_account_id, :parent_invoice_id, :id, :created_date, :updated_date, :formatted_invoice_date, :formatted_charged_amount, :formatted_paid_amount, :formatted_balance, :processed_currency, :processed_payment_rate
38
38
 
39
39
  def initialize()
40
40
  end
@@ -134,6 +134,12 @@ module Killbill
134
134
  # conversion for is_parent_invoice [type = boolean]
135
135
  @is_parent_invoice = @is_parent_invoice.nil? ? java.lang.Boolean.new(false) : java.lang.Boolean.new(@is_parent_invoice)
136
136
 
137
+ # conversion for parent_account_id [type = java.util.UUID]
138
+ @parent_account_id = java.util.UUID.fromString(@parent_account_id.to_s) unless @parent_account_id.nil?
139
+
140
+ # conversion for parent_invoice_id [type = java.util.UUID]
141
+ @parent_invoice_id = java.util.UUID.fromString(@parent_invoice_id.to_s) unless @parent_invoice_id.nil?
142
+
137
143
  # conversion for id [type = java.util.UUID]
138
144
  @id = java.util.UUID.fromString(@id.to_s) unless @id.nil?
139
145
 
@@ -265,6 +271,14 @@ module Killbill
265
271
  @is_parent_invoice = tmp_bool ? true : false
266
272
  end
267
273
 
274
+ # conversion for parent_account_id [type = java.util.UUID]
275
+ @parent_account_id = j_obj.parent_account_id
276
+ @parent_account_id = @parent_account_id.nil? ? nil : @parent_account_id.to_s
277
+
278
+ # conversion for parent_invoice_id [type = java.util.UUID]
279
+ @parent_invoice_id = j_obj.parent_invoice_id
280
+ @parent_invoice_id = @parent_invoice_id.nil? ? nil : @parent_invoice_id.to_s
281
+
268
282
  # conversion for id [type = java.util.UUID]
269
283
  @id = j_obj.id
270
284
  @id = @id.nil? ? nil : @id.to_s
@@ -34,7 +34,7 @@ module Killbill
34
34
 
35
35
  include org.killbill.billing.invoice.api.InvoiceItem
36
36
 
37
- attr_accessor :id, :created_date, :updated_date, :invoice_item_type, :invoice_id, :account_id, :child_account_id, :start_date, :end_date, :amount, :currency, :description, :bundle_id, :subscription_id, :plan_name, :phase_name, :usage_name, :rate, :linked_item_id
37
+ attr_accessor :id, :created_date, :updated_date, :invoice_item_type, :invoice_id, :account_id, :child_account_id, :start_date, :end_date, :amount, :currency, :description, :bundle_id, :subscription_id, :plan_name, :pretty_plan_name, :phase_name, :pretty_phase_name, :usage_name, :pretty_usage_name, :rate, :linked_item_id
38
38
 
39
39
  def initialize()
40
40
  end
@@ -99,12 +99,21 @@ module Killbill
99
99
  # conversion for plan_name [type = java.lang.String]
100
100
  @plan_name = @plan_name.to_s unless @plan_name.nil?
101
101
 
102
+ # conversion for pretty_plan_name [type = java.lang.String]
103
+ @pretty_plan_name = @pretty_plan_name.to_s unless @pretty_plan_name.nil?
104
+
102
105
  # conversion for phase_name [type = java.lang.String]
103
106
  @phase_name = @phase_name.to_s unless @phase_name.nil?
104
107
 
108
+ # conversion for pretty_phase_name [type = java.lang.String]
109
+ @pretty_phase_name = @pretty_phase_name.to_s unless @pretty_phase_name.nil?
110
+
105
111
  # conversion for usage_name [type = java.lang.String]
106
112
  @usage_name = @usage_name.to_s unless @usage_name.nil?
107
113
 
114
+ # conversion for pretty_usage_name [type = java.lang.String]
115
+ @pretty_usage_name = @pretty_usage_name.to_s unless @pretty_usage_name.nil?
116
+
108
117
  # conversion for rate [type = java.math.BigDecimal]
109
118
  if @rate.nil?
110
119
  @rate = java.math.BigDecimal::ZERO
@@ -188,12 +197,21 @@ module Killbill
188
197
  # conversion for plan_name [type = java.lang.String]
189
198
  @plan_name = j_obj.plan_name
190
199
 
200
+ # conversion for pretty_plan_name [type = java.lang.String]
201
+ @pretty_plan_name = j_obj.pretty_plan_name
202
+
191
203
  # conversion for phase_name [type = java.lang.String]
192
204
  @phase_name = j_obj.phase_name
193
205
 
206
+ # conversion for pretty_phase_name [type = java.lang.String]
207
+ @pretty_phase_name = j_obj.pretty_phase_name
208
+
194
209
  # conversion for usage_name [type = java.lang.String]
195
210
  @usage_name = j_obj.usage_name
196
211
 
212
+ # conversion for pretty_usage_name [type = java.lang.String]
213
+ @pretty_usage_name = j_obj.pretty_usage_name
214
+
197
215
  # conversion for rate [type = java.math.BigDecimal]
198
216
  @rate = j_obj.rate
199
217
  @rate = @rate.nil? ? 0 : BigDecimal.new(@rate.to_s)
@@ -34,7 +34,7 @@ module Killbill
34
34
 
35
35
  include org.killbill.billing.invoice.api.formatters.InvoiceItemFormatter
36
36
 
37
- attr_accessor :invoice_item_type, :invoice_id, :account_id, :child_account_id, :start_date, :end_date, :amount, :currency, :description, :bundle_id, :subscription_id, :plan_name, :phase_name, :usage_name, :rate, :linked_item_id, :id, :created_date, :updated_date, :formatted_start_date, :formatted_end_date, :formatted_amount
37
+ attr_accessor :invoice_item_type, :invoice_id, :account_id, :child_account_id, :start_date, :end_date, :amount, :currency, :description, :bundle_id, :subscription_id, :plan_name, :pretty_plan_name, :phase_name, :pretty_phase_name, :usage_name, :pretty_usage_name, :rate, :linked_item_id, :id, :created_date, :updated_date, :formatted_start_date, :formatted_end_date, :formatted_amount
38
38
 
39
39
  def initialize()
40
40
  end
@@ -84,12 +84,21 @@ module Killbill
84
84
  # conversion for plan_name [type = java.lang.String]
85
85
  @plan_name = @plan_name.to_s unless @plan_name.nil?
86
86
 
87
+ # conversion for pretty_plan_name [type = java.lang.String]
88
+ @pretty_plan_name = @pretty_plan_name.to_s unless @pretty_plan_name.nil?
89
+
87
90
  # conversion for phase_name [type = java.lang.String]
88
91
  @phase_name = @phase_name.to_s unless @phase_name.nil?
89
92
 
93
+ # conversion for pretty_phase_name [type = java.lang.String]
94
+ @pretty_phase_name = @pretty_phase_name.to_s unless @pretty_phase_name.nil?
95
+
90
96
  # conversion for usage_name [type = java.lang.String]
91
97
  @usage_name = @usage_name.to_s unless @usage_name.nil?
92
98
 
99
+ # conversion for pretty_usage_name [type = java.lang.String]
100
+ @pretty_usage_name = @pretty_usage_name.to_s unless @pretty_usage_name.nil?
101
+
93
102
  # conversion for rate [type = java.math.BigDecimal]
94
103
  if @rate.nil?
95
104
  @rate = java.math.BigDecimal::ZERO
@@ -177,12 +186,21 @@ module Killbill
177
186
  # conversion for plan_name [type = java.lang.String]
178
187
  @plan_name = j_obj.plan_name
179
188
 
189
+ # conversion for pretty_plan_name [type = java.lang.String]
190
+ @pretty_plan_name = j_obj.pretty_plan_name
191
+
180
192
  # conversion for phase_name [type = java.lang.String]
181
193
  @phase_name = j_obj.phase_name
182
194
 
195
+ # conversion for pretty_phase_name [type = java.lang.String]
196
+ @pretty_phase_name = j_obj.pretty_phase_name
197
+
183
198
  # conversion for usage_name [type = java.lang.String]
184
199
  @usage_name = j_obj.usage_name
185
200
 
201
+ # conversion for pretty_usage_name [type = java.lang.String]
202
+ @pretty_usage_name = j_obj.pretty_usage_name
203
+
186
204
  # conversion for rate [type = java.math.BigDecimal]
187
205
  @rate = j_obj.rate
188
206
  @rate = @rate.nil? ? 0 : BigDecimal.new(@rate.to_s)