killbill 1.1.2 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (123) hide show
  1. data/VERSION +1 -1
  2. data/gen_config/api.conf +42 -0
  3. data/gen_config/plugin_api.conf +14 -0
  4. data/lib/killbill.rb +3 -3
  5. data/lib/killbill/gen/{account.rb → api/account.rb} +0 -0
  6. data/lib/killbill/gen/{account_api_exception.rb → api/account_api_exception.rb} +0 -0
  7. data/lib/killbill/gen/{account_data.rb → api/account_data.rb} +0 -0
  8. data/lib/killbill/gen/{account_email.rb → api/account_email.rb} +0 -0
  9. data/lib/killbill/gen/{account_user_api.rb → api/account_user_api.rb} +19 -16
  10. data/lib/killbill/gen/{audit_user_api.rb → api/audit_user_api.rb} +25 -0
  11. data/lib/killbill/gen/{billing_exception_base.rb → api/billing_exception_base.rb} +0 -0
  12. data/lib/killbill/gen/{blockable.rb → api/blockable.rb} +0 -0
  13. data/lib/killbill/gen/{blocking_api_exception.rb → api/blocking_api_exception.rb} +0 -0
  14. data/lib/killbill/gen/{blocking_state.rb → api/blocking_state.rb} +0 -0
  15. data/lib/killbill/gen/{call_context.rb → api/call_context.rb} +0 -0
  16. data/lib/killbill/gen/{catalog.rb → api/catalog.rb} +0 -0
  17. data/lib/killbill/gen/{catalog_api_exception.rb → api/catalog_api_exception.rb} +0 -0
  18. data/lib/killbill/gen/{catalog_user_api.rb → api/catalog_user_api.rb} +2 -0
  19. data/lib/killbill/gen/{column_info.rb → api/column_info.rb} +0 -0
  20. data/lib/killbill/gen/{control_tag.rb → api/control_tag.rb} +0 -0
  21. data/lib/killbill/gen/{currency_value_null.rb → api/currency_value_null.rb} +0 -0
  22. data/lib/killbill/gen/{custom_field.rb → api/custom_field.rb} +0 -0
  23. data/lib/killbill/gen/{custom_field_api_exception.rb → api/custom_field_api_exception.rb} +0 -0
  24. data/lib/killbill/gen/{custom_field_user_api.rb → api/custom_field_user_api.rb} +10 -0
  25. data/lib/killbill/gen/{database_export_output_stream.rb → api/database_export_output_stream.rb} +0 -0
  26. data/lib/killbill/gen/{duration.rb → api/duration.rb} +0 -0
  27. data/lib/killbill/gen/{entitlement_user_api.rb → api/entitlement_user_api.rb} +31 -0
  28. data/lib/killbill/gen/{entitlement_user_api_exception.rb → api/entitlement_user_api_exception.rb} +0 -0
  29. data/lib/killbill/gen/{entity.rb → api/entity.rb} +0 -0
  30. data/lib/killbill/gen/{illegal_plan_change.rb → api/illegal_plan_change.rb} +0 -0
  31. data/lib/killbill/gen/{international_price.rb → api/international_price.rb} +2 -2
  32. data/lib/killbill/gen/{invalid_config_exception.rb → api/invalid_config_exception.rb} +0 -0
  33. data/lib/killbill/gen/{invoice.rb → api/invoice.rb} +12 -12
  34. data/lib/killbill/gen/{invoice_api_exception.rb → api/invoice_api_exception.rb} +0 -0
  35. data/lib/killbill/gen/{invoice_creation_event.rb → api/invoice_creation_event.rb} +0 -0
  36. data/lib/killbill/gen/api/invoice_formatter.rb +278 -0
  37. data/lib/killbill/gen/{invoice_item.rb → api/invoice_item.rb} +4 -4
  38. data/lib/killbill/gen/api/invoice_item_formatter.rb +213 -0
  39. data/lib/killbill/gen/{invoice_payment.rb → api/invoice_payment.rb} +2 -2
  40. data/lib/killbill/gen/{invoice_payment_api.rb → api/invoice_payment_api.rb} +23 -2
  41. data/lib/killbill/gen/{invoice_user_api.rb → api/invoice_user_api.rb} +85 -8
  42. data/lib/killbill/gen/{junction_api.rb → api/junction_api.rb} +2 -0
  43. data/lib/killbill/gen/{limit.rb → api/limit.rb} +0 -0
  44. data/lib/killbill/gen/{listing.rb → api/listing.rb} +0 -0
  45. data/lib/killbill/gen/{migration_plan.rb → api/migration_plan.rb} +0 -0
  46. data/lib/killbill/gen/{mutable_account_data.rb → api/mutable_account_data.rb} +0 -0
  47. data/lib/killbill/gen/api/osgi_killbill.rb +175 -0
  48. data/lib/killbill/gen/{external_bus.rb → api/osgi_plugin_properties.rb} +3 -3
  49. data/lib/killbill/gen/{payment.rb → api/payment.rb} +4 -4
  50. data/lib/killbill/gen/{payment_api.rb → api/payment_api.rb} +63 -4
  51. data/lib/killbill/gen/{payment_api_exception.rb → api/payment_api_exception.rb} +0 -0
  52. data/lib/killbill/gen/{payment_attempt.rb → api/payment_attempt.rb} +0 -0
  53. data/lib/killbill/gen/{payment_method.rb → api/payment_method.rb} +0 -0
  54. data/lib/killbill/gen/{payment_method_kv_info.rb → api/payment_method_kv_info.rb} +0 -0
  55. data/lib/killbill/gen/{payment_method_plugin.rb → api/payment_method_plugin.rb} +0 -0
  56. data/lib/killbill/gen/{plan.rb → api/plan.rb} +0 -0
  57. data/lib/killbill/gen/{plan_change_result.rb → api/plan_change_result.rb} +0 -0
  58. data/lib/killbill/gen/{plan_phase.rb → api/plan_phase.rb} +0 -0
  59. data/lib/killbill/gen/{plan_phase_specifier.rb → api/plan_phase_specifier.rb} +0 -0
  60. data/lib/killbill/gen/{plan_specifier.rb → api/plan_specifier.rb} +0 -0
  61. data/lib/killbill/gen/api/plugin_config_service_api.rb +64 -0
  62. data/lib/killbill/gen/{price.rb → api/price.rb} +2 -2
  63. data/lib/killbill/gen/{price_list.rb → api/price_list.rb} +0 -0
  64. data/lib/killbill/gen/{price_list_set.rb → api/price_list_set.rb} +0 -0
  65. data/lib/killbill/gen/{product.rb → api/product.rb} +0 -0
  66. data/lib/killbill/gen/{record_id_api.rb → api/record_id_api.rb} +3 -0
  67. data/lib/killbill/gen/{refund.rb → api/refund.rb} +2 -2
  68. data/lib/killbill/gen/api/require_gen.rb +107 -0
  69. data/lib/killbill/gen/api/rolled_up_usage.rb +101 -0
  70. data/lib/killbill/gen/{static_catalog.rb → api/static_catalog.rb} +0 -0
  71. data/lib/killbill/gen/{subscription.rb → api/subscription.rb} +0 -0
  72. data/lib/killbill/gen/{subscription_bundle.rb → api/subscription_bundle.rb} +0 -0
  73. data/lib/killbill/gen/{subscription_status_dry_run.rb → api/subscription_status_dry_run.rb} +0 -0
  74. data/lib/killbill/gen/{subscription_transition.rb → api/subscription_transition.rb} +0 -0
  75. data/lib/killbill/gen/{tag.rb → api/tag.rb} +0 -0
  76. data/lib/killbill/gen/{tag_api_exception.rb → api/tag_api_exception.rb} +0 -0
  77. data/lib/killbill/gen/{tag_definition.rb → api/tag_definition.rb} +0 -0
  78. data/lib/killbill/gen/{tag_definition_api_exception.rb → api/tag_definition_api_exception.rb} +0 -0
  79. data/lib/killbill/gen/{tag_user_api.rb → api/tag_user_api.rb} +34 -0
  80. data/lib/killbill/gen/{tenant.rb → api/tenant.rb} +0 -0
  81. data/lib/killbill/gen/{tenant_api_exception.rb → api/tenant_api_exception.rb} +0 -0
  82. data/lib/killbill/gen/{tenant_context.rb → api/tenant_context.rb} +0 -0
  83. data/lib/killbill/gen/{tenant_data.rb → api/tenant_data.rb} +0 -0
  84. data/lib/killbill/gen/{tenant_kv.rb → api/tenant_kv.rb} +0 -0
  85. data/lib/killbill/gen/{tenant_user_api.rb → api/tenant_user_api.rb} +11 -0
  86. data/lib/killbill/gen/{unit.rb → api/unit.rb} +0 -0
  87. data/lib/killbill/gen/api/usage_user_api.rb +89 -0
  88. data/lib/killbill/gen/{ext_bus_event.rb → plugin-api/ext_bus_event.rb} +0 -0
  89. data/lib/killbill/gen/plugin-api/notification_plugin_api.rb +61 -0
  90. data/lib/killbill/gen/{payment_info_plugin.rb → plugin-api/payment_info_plugin.rb} +2 -2
  91. data/lib/killbill/gen/{payment_method_info_plugin.rb → plugin-api/payment_method_info_plugin.rb} +0 -0
  92. data/lib/killbill/gen/plugin-api/payment_plugin_api.rb +356 -0
  93. data/lib/killbill/gen/{payment_plugin_api_exception.rb → plugin-api/payment_plugin_api_exception.rb} +0 -0
  94. data/lib/killbill/gen/{refund_info_plugin.rb → plugin-api/refund_info_plugin.rb} +2 -2
  95. data/lib/killbill/gen/plugin-api/require_gen.rb +32 -0
  96. data/lib/killbill/jplugin.rb +0 -71
  97. data/lib/killbill/killbill_api.rb +0 -7
  98. data/spec/killbill/killbillapi_spec.rb +1 -1
  99. data/spec/killbill/notification_plugin_api_spec.rb +22 -0
  100. data/spec/killbill/payment_plugin_api_spec.rb +122 -0
  101. data/spec/killbill/payment_test.rb +1 -1
  102. metadata +100 -107
  103. data/lib/killbill/enum.rb +0 -72
  104. data/lib/killbill/gen/account_service.rb +0 -55
  105. data/lib/killbill/gen/beatrix_service.rb +0 -55
  106. data/lib/killbill/gen/catalog_service.rb +0 -69
  107. data/lib/killbill/gen/default_mutable_account_data.rb +0 -180
  108. data/lib/killbill/gen/entitlement_service.rb +0 -55
  109. data/lib/killbill/gen/entity_persistence_exception.rb +0 -66
  110. data/lib/killbill/gen/export_user_api.rb +0 -17
  111. data/lib/killbill/gen/invoice_migration_api.rb +0 -66
  112. data/lib/killbill/gen/invoice_notifier.rb +0 -51
  113. data/lib/killbill/gen/invoice_service.rb +0 -55
  114. data/lib/killbill/gen/migration_account_data.rb +0 -228
  115. data/lib/killbill/gen/no_op_payment_plugin_api.rb +0 -254
  116. data/lib/killbill/gen/payment_plugin_api.rb +0 -232
  117. data/lib/killbill/gen/payment_service.rb +0 -62
  118. data/lib/killbill/gen/require_gen.rb +0 -120
  119. data/lib/killbill/gen/tenant_service.rb +0 -55
  120. data/lib/killbill/jpayment.rb +0 -107
  121. data/spec/killbill/jnotification_spec.rb +0 -39
  122. data/spec/killbill/jpayment_spec.rb +0 -126
  123. data/tools/java2ruby.rb +0 -440
data/lib/killbill/enum.rb DELETED
@@ -1,72 +0,0 @@
1
- module Killbill
2
- module Plugin
3
-
4
- module Enum
5
-
6
- class NameValuePair
7
- attr_reader :label, :value
8
-
9
- def initialize(label, value)
10
- @label = label
11
- @value = value
12
- end
13
-
14
- def first
15
- @label
16
- end
17
-
18
- def last
19
- @value
20
- end
21
- end
22
-
23
- def const_missing(key)
24
- @enum_hash[key]
25
- end
26
-
27
- def add_enum(key, value)
28
- @enum_hash ||= {}
29
- @enum_hash[key] = NameValuePair.new(value, key.to_s)
30
- end
31
-
32
- def each
33
- @enum_hash.values.sort { |v1, v2| v1.label <=> v2.label }.each do |k|
34
- yield(k)
35
- end
36
- end
37
-
38
- def collect
39
- @enum_hash.values.sort { |v1, v2| v1.label <=> v2.label }.collect do |k|
40
- yield(k)
41
- end
42
- end
43
-
44
- def each_with_index
45
- @enum_hash.values.sort { |v1, v2| v1.label <=> v2.label }.each_with_index do |k, i|
46
- yield(k, i)
47
- end
48
- end
49
-
50
- def enums
51
- @enum_hash.keys
52
- end
53
-
54
- def enum_values
55
- @enum_hash.values
56
- end
57
-
58
- def get_enum_hash
59
- @enum_hash
60
- end
61
-
62
- def find_by_key(key)
63
- @enum_hash[key.upcase.to_sym]
64
- end
65
-
66
- def size
67
- @enum_hash.keys.size
68
- end
69
- end
70
- end
71
- end
72
-
@@ -1,55 +0,0 @@
1
- ###################################################################################
2
- # #
3
- # Copyright 2010-2013 Ning, Inc. #
4
- # #
5
- # Ning licenses this file to you under the Apache License, version 2.0 #
6
- # (the "License"); you may not use this file except in compliance with the #
7
- # License. You may obtain a copy of the License at: #
8
- # #
9
- # http://www.apache.org/licenses/LICENSE-2.0 #
10
- # #
11
- # Unless required by applicable law or agreed to in writing, software #
12
- # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT #
13
- # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the #
14
- # License for the specific language governing permissions and limitations #
15
- # under the License. #
16
- # #
17
- ###################################################################################
18
-
19
-
20
- #
21
- # DO NOT EDIT!!!
22
- # File automatically generated by killbill-java-parser (git@github.com:killbill/killbill-java-parser.git)
23
- #
24
-
25
-
26
- module Killbill
27
- module Plugin
28
- module Model
29
-
30
- java_package 'com.ning.billing.account.api'
31
- class AccountService
32
-
33
- include com.ning.billing.account.api.AccountService
34
-
35
- attr_accessor :name
36
-
37
- def initialize()
38
- end
39
-
40
- def to_java()
41
- # conversion for name [type = java.lang.String]
42
- @name = @name.to_s unless @name.nil?
43
- self
44
- end
45
-
46
- def to_ruby(j_obj)
47
- # conversion for name [type = java.lang.String]
48
- @name = j_obj.name
49
- self
50
- end
51
-
52
- end
53
- end
54
- end
55
- end
@@ -1,55 +0,0 @@
1
- ###################################################################################
2
- # #
3
- # Copyright 2010-2013 Ning, Inc. #
4
- # #
5
- # Ning licenses this file to you under the Apache License, version 2.0 #
6
- # (the "License"); you may not use this file except in compliance with the #
7
- # License. You may obtain a copy of the License at: #
8
- # #
9
- # http://www.apache.org/licenses/LICENSE-2.0 #
10
- # #
11
- # Unless required by applicable law or agreed to in writing, software #
12
- # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT #
13
- # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the #
14
- # License for the specific language governing permissions and limitations #
15
- # under the License. #
16
- # #
17
- ###################################################################################
18
-
19
-
20
- #
21
- # DO NOT EDIT!!!
22
- # File automatically generated by killbill-java-parser (git@github.com:killbill/killbill-java-parser.git)
23
- #
24
-
25
-
26
- module Killbill
27
- module Plugin
28
- module Model
29
-
30
- java_package 'com.ning.billing.beatrix.bus.api'
31
- class BeatrixService
32
-
33
- include com.ning.billing.beatrix.bus.api.BeatrixService
34
-
35
- attr_accessor :name
36
-
37
- def initialize()
38
- end
39
-
40
- def to_java()
41
- # conversion for name [type = java.lang.String]
42
- @name = @name.to_s unless @name.nil?
43
- self
44
- end
45
-
46
- def to_ruby(j_obj)
47
- # conversion for name [type = java.lang.String]
48
- @name = j_obj.name
49
- self
50
- end
51
-
52
- end
53
- end
54
- end
55
- end
@@ -1,69 +0,0 @@
1
- ###################################################################################
2
- # #
3
- # Copyright 2010-2013 Ning, Inc. #
4
- # #
5
- # Ning licenses this file to you under the Apache License, version 2.0 #
6
- # (the "License"); you may not use this file except in compliance with the #
7
- # License. You may obtain a copy of the License at: #
8
- # #
9
- # http://www.apache.org/licenses/LICENSE-2.0 #
10
- # #
11
- # Unless required by applicable law or agreed to in writing, software #
12
- # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT #
13
- # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the #
14
- # License for the specific language governing permissions and limitations #
15
- # under the License. #
16
- # #
17
- ###################################################################################
18
-
19
-
20
- #
21
- # DO NOT EDIT!!!
22
- # File automatically generated by killbill-java-parser (git@github.com:killbill/killbill-java-parser.git)
23
- #
24
-
25
-
26
- module Killbill
27
- module Plugin
28
- module Model
29
-
30
- java_package 'com.ning.billing.catalog.api'
31
- class CatalogService
32
-
33
- include com.ning.billing.catalog.api.CatalogService
34
-
35
- attr_accessor :name, :full_catalog, :current_catalog
36
-
37
- def initialize()
38
- end
39
-
40
- def to_java()
41
- # conversion for name [type = java.lang.String]
42
- @name = @name.to_s unless @name.nil?
43
-
44
- # conversion for full_catalog [type = com.ning.billing.catalog.api.Catalog]
45
- @full_catalog = @full_catalog.to_java unless @full_catalog.nil?
46
-
47
- # conversion for current_catalog [type = com.ning.billing.catalog.api.StaticCatalog]
48
- @current_catalog = @current_catalog.to_java unless @current_catalog.nil?
49
- self
50
- end
51
-
52
- def to_ruby(j_obj)
53
- # conversion for name [type = java.lang.String]
54
- @name = j_obj.name
55
-
56
- # conversion for full_catalog [type = com.ning.billing.catalog.api.Catalog]
57
- @full_catalog = j_obj.full_catalog
58
- @full_catalog = Killbill::Plugin::Model::Catalog.new.to_ruby(@full_catalog) unless @full_catalog.nil?
59
-
60
- # conversion for current_catalog [type = com.ning.billing.catalog.api.StaticCatalog]
61
- @current_catalog = j_obj.current_catalog
62
- @current_catalog = Killbill::Plugin::Model::StaticCatalog.new.to_ruby(@current_catalog) unless @current_catalog.nil?
63
- self
64
- end
65
-
66
- end
67
- end
68
- end
69
- end
@@ -1,180 +0,0 @@
1
- ###################################################################################
2
- # #
3
- # Copyright 2010-2013 Ning, Inc. #
4
- # #
5
- # Ning licenses this file to you under the Apache License, version 2.0 #
6
- # (the "License"); you may not use this file except in compliance with the #
7
- # License. You may obtain a copy of the License at: #
8
- # #
9
- # http://www.apache.org/licenses/LICENSE-2.0 #
10
- # #
11
- # Unless required by applicable law or agreed to in writing, software #
12
- # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT #
13
- # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the #
14
- # License for the specific language governing permissions and limitations #
15
- # under the License. #
16
- # #
17
- ###################################################################################
18
-
19
-
20
- #
21
- # DO NOT EDIT!!!
22
- # File automatically generated by killbill-java-parser (git@github.com:killbill/killbill-java-parser.git)
23
- #
24
-
25
-
26
- module Killbill
27
- module Plugin
28
- module Model
29
-
30
- class DefaultMutableAccountData
31
-
32
-
33
- attr_accessor :external_key, :email, :name, :first_name_length, :currency, :bill_cycle_day_local, :payment_method_id, :time_zone, :locale, :address1, :address2, :company_name, :city, :state_or_province, :country, :postal_code, :phone, :is_migrated, :is_notified_for_invoices
34
-
35
- def initialize()
36
- end
37
-
38
- def to_java()
39
- # conversion for external_key [type = java.lang.String]
40
- @external_key = @external_key.to_s unless @external_key.nil?
41
-
42
- # conversion for email [type = java.lang.String]
43
- @email = @email.to_s unless @email.nil?
44
-
45
- # conversion for name [type = java.lang.String]
46
- @name = @name.to_s unless @name.nil?
47
-
48
- # conversion for first_name_length [type = java.lang.Integer]
49
- @first_name_length = @first_name_length
50
-
51
- # conversion for currency [type = com.ning.billing.catalog.api.Currency]
52
- @currency = Java::com.ning.billing.catalog.api.Currency.value_of("#{@currency.to_s}") unless @currency.nil?
53
-
54
- # conversion for bill_cycle_day_local [type = java.lang.Integer]
55
- @bill_cycle_day_local = @bill_cycle_day_local
56
-
57
- # conversion for payment_method_id [type = java.util.UUID]
58
- @payment_method_id = java.util.UUID.fromString(@payment_method_id.to_s) unless @payment_method_id.nil?
59
-
60
- # conversion for time_zone [type = org.joda.time.DateTimeZone]
61
- if !@time_zone.nil?
62
- @time_zone = Java::org.joda.time.DateTimeZone.forID((@time_zone.respond_to?(:identifier) ? @time_zone.identifier : @time_zone.to_s))
63
- end
64
-
65
- # conversion for locale [type = java.lang.String]
66
- @locale = @locale.to_s unless @locale.nil?
67
-
68
- # conversion for address1 [type = java.lang.String]
69
- @address1 = @address1.to_s unless @address1.nil?
70
-
71
- # conversion for address2 [type = java.lang.String]
72
- @address2 = @address2.to_s unless @address2.nil?
73
-
74
- # conversion for company_name [type = java.lang.String]
75
- @company_name = @company_name.to_s unless @company_name.nil?
76
-
77
- # conversion for city [type = java.lang.String]
78
- @city = @city.to_s unless @city.nil?
79
-
80
- # conversion for state_or_province [type = java.lang.String]
81
- @state_or_province = @state_or_province.to_s unless @state_or_province.nil?
82
-
83
- # conversion for country [type = java.lang.String]
84
- @country = @country.to_s unless @country.nil?
85
-
86
- # conversion for postal_code [type = java.lang.String]
87
- @postal_code = @postal_code.to_s unless @postal_code.nil?
88
-
89
- # conversion for phone [type = java.lang.String]
90
- @phone = @phone.to_s unless @phone.nil?
91
-
92
- # conversion for is_migrated [type = java.lang.Boolean]
93
- @is_migrated = @is_migrated.nil? ? java.lang.Boolean.new(false) : java.lang.Boolean.new(@is_migrated)
94
-
95
- # conversion for is_notified_for_invoices [type = java.lang.Boolean]
96
- @is_notified_for_invoices = @is_notified_for_invoices.nil? ? java.lang.Boolean.new(false) : java.lang.Boolean.new(@is_notified_for_invoices)
97
- Java::com.ning.billing.account.api.DefaultMutableAccountData.new(@external_key, @email, @name, @first_name_length, @currency, @bill_cycle_day_local, @payment_method_id, @time_zone, @locale, @address1, @address2, @company_name, @city, @state_or_province, @country, @postal_code, @phone, @is_migrated, @is_notified_for_invoices)
98
- end
99
-
100
- def to_ruby(j_obj)
101
- # conversion for external_key [type = java.lang.String]
102
- @external_key = j_obj.external_key
103
-
104
- # conversion for email [type = java.lang.String]
105
- @email = j_obj.email
106
-
107
- # conversion for name [type = java.lang.String]
108
- @name = j_obj.name
109
-
110
- # conversion for first_name_length [type = java.lang.Integer]
111
- @first_name_length = j_obj.first_name_length
112
-
113
- # conversion for currency [type = com.ning.billing.catalog.api.Currency]
114
- @currency = j_obj.currency
115
- @currency = @currency.to_s.to_sym unless @currency.nil?
116
-
117
- # conversion for bill_cycle_day_local [type = java.lang.Integer]
118
- @bill_cycle_day_local = j_obj.bill_cycle_day_local
119
-
120
- # conversion for payment_method_id [type = java.util.UUID]
121
- @payment_method_id = j_obj.payment_method_id
122
- @payment_method_id = @payment_method_id.nil? ? nil : @payment_method_id.to_s
123
-
124
- # conversion for time_zone [type = org.joda.time.DateTimeZone]
125
- @time_zone = j_obj.time_zone
126
- if !@time_zone.nil?
127
- @time_zone = TZInfo::Timezone.get(@time_zone.get_id)
128
- end
129
-
130
- # conversion for locale [type = java.lang.String]
131
- @locale = j_obj.locale
132
-
133
- # conversion for address1 [type = java.lang.String]
134
- @address1 = j_obj.address1
135
-
136
- # conversion for address2 [type = java.lang.String]
137
- @address2 = j_obj.address2
138
-
139
- # conversion for company_name [type = java.lang.String]
140
- @company_name = j_obj.company_name
141
-
142
- # conversion for city [type = java.lang.String]
143
- @city = j_obj.city
144
-
145
- # conversion for state_or_province [type = java.lang.String]
146
- @state_or_province = j_obj.state_or_province
147
-
148
- # conversion for country [type = java.lang.String]
149
- @country = j_obj.country
150
-
151
- # conversion for postal_code [type = java.lang.String]
152
- @postal_code = j_obj.postal_code
153
-
154
- # conversion for phone [type = java.lang.String]
155
- @phone = j_obj.phone
156
-
157
- # conversion for is_migrated [type = java.lang.Boolean]
158
- @is_migrated = j_obj.is_migrated
159
- if @is_migrated.nil?
160
- @is_migrated = false
161
- else
162
- tmp_bool = (@is_migrated.java_kind_of? java.lang.Boolean) ? @is_migrated.boolean_value : @is_migrated
163
- @is_migrated = tmp_bool ? true : false
164
- end
165
-
166
- # conversion for is_notified_for_invoices [type = java.lang.Boolean]
167
- @is_notified_for_invoices = j_obj.is_notified_for_invoices
168
- if @is_notified_for_invoices.nil?
169
- @is_notified_for_invoices = false
170
- else
171
- tmp_bool = (@is_notified_for_invoices.java_kind_of? java.lang.Boolean) ? @is_notified_for_invoices.boolean_value : @is_notified_for_invoices
172
- @is_notified_for_invoices = tmp_bool ? true : false
173
- end
174
- self
175
- end
176
-
177
- end
178
- end
179
- end
180
- end
@@ -1,55 +0,0 @@
1
- ###################################################################################
2
- # #
3
- # Copyright 2010-2013 Ning, Inc. #
4
- # #
5
- # Ning licenses this file to you under the Apache License, version 2.0 #
6
- # (the "License"); you may not use this file except in compliance with the #
7
- # License. You may obtain a copy of the License at: #
8
- # #
9
- # http://www.apache.org/licenses/LICENSE-2.0 #
10
- # #
11
- # Unless required by applicable law or agreed to in writing, software #
12
- # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT #
13
- # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the #
14
- # License for the specific language governing permissions and limitations #
15
- # under the License. #
16
- # #
17
- ###################################################################################
18
-
19
-
20
- #
21
- # DO NOT EDIT!!!
22
- # File automatically generated by killbill-java-parser (git@github.com:killbill/killbill-java-parser.git)
23
- #
24
-
25
-
26
- module Killbill
27
- module Plugin
28
- module Model
29
-
30
- java_package 'com.ning.billing.entitlement.api'
31
- class EntitlementService
32
-
33
- include com.ning.billing.entitlement.api.EntitlementService
34
-
35
- attr_accessor :name
36
-
37
- def initialize()
38
- end
39
-
40
- def to_java()
41
- # conversion for name [type = java.lang.String]
42
- @name = @name.to_s unless @name.nil?
43
- self
44
- end
45
-
46
- def to_ruby(j_obj)
47
- # conversion for name [type = java.lang.String]
48
- @name = j_obj.name
49
- self
50
- end
51
-
52
- end
53
- end
54
- end
55
- end