killbill 1.0.19 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Jarfile +4 -2
- data/VERSION +1 -1
- data/killbill.gemspec +4 -3
- data/lib/killbill.rb +7 -51
- data/lib/killbill/creator.rb +10 -18
- data/lib/killbill/gen/account.rb +208 -27
- data/lib/killbill/gen/account_api_exception.rb +66 -0
- data/lib/killbill/gen/account_data.rb +166 -23
- data/lib/killbill/gen/account_email.rb +80 -8
- data/lib/killbill/gen/account_service.rb +55 -0
- data/lib/killbill/gen/account_user_api.rb +187 -0
- data/lib/killbill/gen/audit_user_api.rb +196 -0
- data/lib/killbill/gen/beatrix_service.rb +55 -0
- data/lib/killbill/gen/billing_exception_base.rb +66 -0
- data/lib/killbill/gen/blockable.rb +91 -0
- data/lib/killbill/gen/blocking_api_exception.rb +66 -0
- data/lib/killbill/gen/blocking_state.rb +150 -16
- data/lib/killbill/gen/call_context.rb +107 -13
- data/lib/killbill/gen/catalog.rb +76 -0
- data/lib/killbill/gen/catalog_api_exception.rb +66 -0
- data/lib/killbill/gen/catalog_service.rb +69 -0
- data/lib/killbill/gen/catalog_user_api.rb +54 -0
- data/lib/killbill/gen/column_info.rb +67 -0
- data/lib/killbill/gen/control_tag.rb +112 -0
- data/lib/killbill/gen/currency_value_null.rb +66 -0
- data/lib/killbill/gen/custom_field.rb +93 -10
- data/lib/killbill/gen/custom_field_api_exception.rb +66 -0
- data/lib/killbill/gen/custom_field_user_api.rb +115 -0
- data/lib/killbill/gen/database_export_output_stream.rb +51 -0
- data/lib/killbill/gen/default_mutable_account_data.rb +180 -0
- data/lib/killbill/gen/duration.rb +62 -0
- data/lib/killbill/gen/entitlement_service.rb +55 -0
- data/lib/killbill/gen/entitlement_user_api.rb +272 -0
- data/lib/killbill/gen/entitlement_user_api_exception.rb +66 -0
- data/lib/killbill/gen/entity.rb +84 -0
- data/lib/killbill/gen/entity_persistence_exception.rb +66 -0
- data/lib/killbill/gen/export_user_api.rb +17 -0
- data/lib/killbill/gen/ext_bus_event.rb +68 -9
- data/lib/killbill/gen/external_bus.rb +51 -0
- data/lib/killbill/gen/illegal_plan_change.rb +66 -0
- data/lib/killbill/gen/international_price.rb +79 -0
- data/lib/killbill/gen/invalid_config_exception.rb +49 -0
- data/lib/killbill/gen/invoice.rb +238 -23
- data/lib/killbill/gen/invoice_api_exception.rb +66 -0
- data/lib/killbill/gen/invoice_creation_event.rb +51 -0
- data/lib/killbill/gen/invoice_item.rb +179 -21
- data/lib/killbill/gen/invoice_migration_api.rb +66 -0
- data/lib/killbill/gen/invoice_notifier.rb +51 -0
- data/lib/killbill/gen/invoice_payment.rb +135 -15
- data/lib/killbill/gen/invoice_payment_api.rb +208 -0
- data/lib/killbill/gen/invoice_service.rb +55 -0
- data/lib/killbill/gen/invoice_user_api.rb +461 -0
- data/lib/killbill/gen/junction_api.rb +60 -0
- data/lib/killbill/gen/limit.rb +68 -0
- data/lib/killbill/gen/listing.rb +63 -0
- data/lib/killbill/gen/migration_account_data.rb +228 -0
- data/lib/killbill/gen/migration_plan.rb +143 -0
- data/lib/killbill/gen/mutable_account_data.rb +182 -0
- data/lib/killbill/gen/no_op_payment_plugin_api.rb +254 -0
- data/lib/killbill/gen/payment.rb +183 -20
- data/lib/killbill/gen/payment_api.rb +433 -0
- data/lib/killbill/gen/payment_api_exception.rb +66 -0
- data/lib/killbill/gen/payment_attempt.rb +100 -10
- data/lib/killbill/gen/payment_info_plugin.rb +103 -12
- data/lib/killbill/gen/payment_method.rb +116 -0
- data/lib/killbill/gen/payment_method_info_plugin.rb +64 -7
- data/lib/killbill/gen/payment_method_kv_info.rb +56 -6
- data/lib/killbill/gen/payment_method_plugin.rb +142 -20
- data/lib/killbill/gen/payment_plugin_api.rb +232 -0
- data/lib/killbill/gen/payment_plugin_api_exception.rb +59 -0
- data/lib/killbill/gen/payment_service.rb +62 -0
- data/lib/killbill/gen/plan.rb +143 -0
- data/lib/killbill/gen/plan_change_result.rb +68 -0
- data/lib/killbill/gen/plan_phase.rb +104 -0
- data/lib/killbill/gen/plan_phase_specifier.rb +80 -0
- data/lib/killbill/gen/plan_specifier.rb +73 -0
- data/lib/killbill/gen/price.rb +67 -0
- data/lib/killbill/gen/price_list.rb +74 -0
- data/lib/killbill/gen/price_list_set.rb +56 -0
- data/lib/killbill/gen/product.rb +101 -0
- data/lib/killbill/gen/record_id_api.rb +55 -0
- data/lib/killbill/gen/refund.rb +126 -13
- data/lib/killbill/gen/refund_info_plugin.rb +96 -10
- data/lib/killbill/gen/require_gen.rb +97 -15
- data/lib/killbill/gen/static_catalog.rb +137 -0
- data/lib/killbill/gen/subscription.rb +258 -28
- data/lib/killbill/gen/subscription_bundle.rb +94 -10
- data/lib/killbill/gen/subscription_status_dry_run.rb +89 -0
- data/lib/killbill/gen/subscription_transition.rb +196 -0
- data/lib/killbill/gen/tag.rb +88 -9
- data/lib/killbill/gen/tag_api_exception.rb +66 -0
- data/lib/killbill/gen/tag_definition.rb +110 -10
- data/lib/killbill/gen/tag_definition_api_exception.rb +66 -0
- data/lib/killbill/gen/tag_user_api.rb +239 -0
- data/lib/killbill/gen/tenant.rb +102 -0
- data/lib/killbill/gen/tenant_api_exception.rb +66 -0
- data/lib/killbill/gen/tenant_context.rb +39 -4
- data/lib/killbill/gen/tenant_data.rb +67 -0
- data/lib/killbill/gen/tenant_kv.rb +96 -0
- data/lib/killbill/gen/tenant_service.rb +55 -0
- data/lib/killbill/gen/tenant_user_api.rb +127 -0
- data/lib/killbill/gen/unit.rb +55 -0
- data/lib/killbill/jnotification.rb +1 -1
- data/lib/killbill/jpayment.rb +10 -7
- data/lib/killbill/jplugin.rb +63 -61
- data/lib/killbill/killbill_api.rb +42 -9
- data/spec/killbill/jnotification_spec.rb +15 -1
- data/spec/killbill/jpayment_spec.rb +12 -8
- data/spec/killbill/killbillapi_spec.rb +23 -21
- data/spec/killbill/payment_plugin_spec.rb +1 -9
- data/spec/killbill/payment_test.rb +21 -5
- metadata +96 -22
- data/lib/killbill/gen/audit_log.rb +0 -28
- data/lib/killbill/gen/call_origin.rb +0 -34
- data/lib/killbill/gen/currency.rb +0 -34
- data/lib/killbill/gen/date_time_zone.rb +0 -35
- data/lib/killbill/gen/ext_bus_event_type.rb +0 -34
- data/lib/killbill/gen/invoice_payment_type.rb +0 -34
- data/lib/killbill/gen/object_type.rb +0 -34
- data/lib/killbill/gen/payment_plugin_status.rb +0 -34
- data/lib/killbill/gen/refund_plugin_status.rb +0 -34
- data/lib/killbill/gen/subscription_source_type.rb +0 -34
- data/lib/killbill/gen/subscription_state.rb +0 -34
- data/lib/killbill/gen/user_type.rb +0 -34
- data/lib/killbill/gen/uuid.rb +0 -22
- data/lib/killbill/jconverter.rb +0 -537
- data/lib/killbill/jkillbill_api.rb +0 -137
- data/spec/killbill/jconverter_spec.rb +0 -193
|
@@ -0,0 +1,102 @@
|
|
|
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.tenant.api'
|
|
31
|
+
class Tenant
|
|
32
|
+
|
|
33
|
+
include com.ning.billing.tenant.api.Tenant
|
|
34
|
+
|
|
35
|
+
attr_accessor :id, :created_date, :updated_date, :external_key, :api_key, :api_secret
|
|
36
|
+
|
|
37
|
+
def initialize()
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
def to_java()
|
|
41
|
+
# conversion for id [type = java.util.UUID]
|
|
42
|
+
@id = java.util.UUID.fromString(@id.to_s) unless @id.nil?
|
|
43
|
+
|
|
44
|
+
# conversion for created_date [type = org.joda.time.DateTime]
|
|
45
|
+
if !@created_date.nil?
|
|
46
|
+
@created_date = (@created_date.kind_of? Time) ? DateTime.parse(@created_date.to_s) : @created_date
|
|
47
|
+
@created_date = Java::org.joda.time.DateTime.new(@created_date.to_s, Java::org.joda.time.DateTimeZone::UTC)
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# conversion for updated_date [type = org.joda.time.DateTime]
|
|
51
|
+
if !@updated_date.nil?
|
|
52
|
+
@updated_date = (@updated_date.kind_of? Time) ? DateTime.parse(@updated_date.to_s) : @updated_date
|
|
53
|
+
@updated_date = Java::org.joda.time.DateTime.new(@updated_date.to_s, Java::org.joda.time.DateTimeZone::UTC)
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# conversion for external_key [type = java.lang.String]
|
|
57
|
+
@external_key = @external_key.to_s unless @external_key.nil?
|
|
58
|
+
|
|
59
|
+
# conversion for api_key [type = java.lang.String]
|
|
60
|
+
@api_key = @api_key.to_s unless @api_key.nil?
|
|
61
|
+
|
|
62
|
+
# conversion for api_secret [type = java.lang.String]
|
|
63
|
+
@api_secret = @api_secret.to_s unless @api_secret.nil?
|
|
64
|
+
self
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
def to_ruby(j_obj)
|
|
68
|
+
# conversion for id [type = java.util.UUID]
|
|
69
|
+
@id = j_obj.id
|
|
70
|
+
@id = @id.nil? ? nil : @id.to_s
|
|
71
|
+
|
|
72
|
+
# conversion for created_date [type = org.joda.time.DateTime]
|
|
73
|
+
@created_date = j_obj.created_date
|
|
74
|
+
if !@created_date.nil?
|
|
75
|
+
fmt = Java::org.joda.time.format.ISODateTimeFormat.date_time
|
|
76
|
+
str = fmt.print(@created_date)
|
|
77
|
+
@created_date = DateTime.iso8601(str)
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# conversion for updated_date [type = org.joda.time.DateTime]
|
|
81
|
+
@updated_date = j_obj.updated_date
|
|
82
|
+
if !@updated_date.nil?
|
|
83
|
+
fmt = Java::org.joda.time.format.ISODateTimeFormat.date_time
|
|
84
|
+
str = fmt.print(@updated_date)
|
|
85
|
+
@updated_date = DateTime.iso8601(str)
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# conversion for external_key [type = java.lang.String]
|
|
89
|
+
@external_key = j_obj.external_key
|
|
90
|
+
|
|
91
|
+
# conversion for api_key [type = java.lang.String]
|
|
92
|
+
@api_key = j_obj.api_key
|
|
93
|
+
|
|
94
|
+
# conversion for api_secret [type = java.lang.String]
|
|
95
|
+
@api_secret = j_obj.api_secret
|
|
96
|
+
self
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
end
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
end
|
|
@@ -0,0 +1,66 @@
|
|
|
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 TenantApiException
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
attr_accessor :message, :cause, :code
|
|
34
|
+
|
|
35
|
+
def initialize()
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
def to_java()
|
|
39
|
+
# conversion for message [type = java.lang.String]
|
|
40
|
+
@message = @message.to_s unless @message.nil?
|
|
41
|
+
|
|
42
|
+
# conversion for cause [type = java.lang.Throwable]
|
|
43
|
+
@cause = @cause.to_s unless cause.nil?
|
|
44
|
+
|
|
45
|
+
# conversion for code [type = int]
|
|
46
|
+
@code = @code
|
|
47
|
+
Java::com.ning.billing.tenant.api.TenantApiException.new(@message, @cause, @code)
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
def to_ruby(j_obj)
|
|
51
|
+
# conversion for message [type = java.lang.String]
|
|
52
|
+
@message = j_obj.message
|
|
53
|
+
|
|
54
|
+
# conversion for cause [type = java.lang.Throwable]
|
|
55
|
+
@cause = j_obj.cause
|
|
56
|
+
@cause = @cause.to_s unless @cause.nil?
|
|
57
|
+
|
|
58
|
+
# conversion for code [type = int]
|
|
59
|
+
@code = j_obj.code
|
|
60
|
+
self
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
end
|
|
@@ -1,20 +1,55 @@
|
|
|
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
|
+
|
|
1
19
|
|
|
2
20
|
#
|
|
3
|
-
#
|
|
21
|
+
# DO NOT EDIT!!!
|
|
22
|
+
# File automatically generated by killbill-java-parser (git@github.com:killbill/killbill-java-parser.git)
|
|
4
23
|
#
|
|
24
|
+
|
|
25
|
+
|
|
5
26
|
module Killbill
|
|
6
27
|
module Plugin
|
|
7
28
|
module Model
|
|
8
29
|
|
|
30
|
+
java_package 'com.ning.billing.util.callcontext'
|
|
9
31
|
class TenantContext
|
|
10
32
|
|
|
11
33
|
include com.ning.billing.util.callcontext.TenantContext
|
|
12
34
|
|
|
13
|
-
|
|
35
|
+
attr_accessor :tenant_id
|
|
36
|
+
|
|
37
|
+
def initialize()
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
def to_java()
|
|
41
|
+
# conversion for tenant_id [type = java.util.UUID]
|
|
42
|
+
@tenant_id = java.util.UUID.fromString(@tenant_id.to_s) unless @tenant_id.nil?
|
|
43
|
+
self
|
|
44
|
+
end
|
|
14
45
|
|
|
15
|
-
def
|
|
16
|
-
|
|
46
|
+
def to_ruby(j_obj)
|
|
47
|
+
# conversion for tenant_id [type = java.util.UUID]
|
|
48
|
+
@tenant_id = j_obj.tenant_id
|
|
49
|
+
@tenant_id = @tenant_id.nil? ? nil : @tenant_id.to_s
|
|
50
|
+
self
|
|
17
51
|
end
|
|
52
|
+
|
|
18
53
|
end
|
|
19
54
|
end
|
|
20
55
|
end
|
|
@@ -0,0 +1,67 @@
|
|
|
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.tenant.api'
|
|
31
|
+
class TenantData
|
|
32
|
+
|
|
33
|
+
include com.ning.billing.tenant.api.TenantData
|
|
34
|
+
|
|
35
|
+
attr_accessor :external_key, :api_key, :api_secret
|
|
36
|
+
|
|
37
|
+
def initialize()
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
def to_java()
|
|
41
|
+
# conversion for external_key [type = java.lang.String]
|
|
42
|
+
@external_key = @external_key.to_s unless @external_key.nil?
|
|
43
|
+
|
|
44
|
+
# conversion for api_key [type = java.lang.String]
|
|
45
|
+
@api_key = @api_key.to_s unless @api_key.nil?
|
|
46
|
+
|
|
47
|
+
# conversion for api_secret [type = java.lang.String]
|
|
48
|
+
@api_secret = @api_secret.to_s unless @api_secret.nil?
|
|
49
|
+
self
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
def to_ruby(j_obj)
|
|
53
|
+
# conversion for external_key [type = java.lang.String]
|
|
54
|
+
@external_key = j_obj.external_key
|
|
55
|
+
|
|
56
|
+
# conversion for api_key [type = java.lang.String]
|
|
57
|
+
@api_key = j_obj.api_key
|
|
58
|
+
|
|
59
|
+
# conversion for api_secret [type = java.lang.String]
|
|
60
|
+
@api_secret = j_obj.api_secret
|
|
61
|
+
self
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
end
|
|
@@ -0,0 +1,96 @@
|
|
|
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.tenant.api'
|
|
31
|
+
class TenantKV
|
|
32
|
+
|
|
33
|
+
include com.ning.billing.tenant.api.TenantKV
|
|
34
|
+
|
|
35
|
+
attr_accessor :id, :created_date, :updated_date, :key, :value
|
|
36
|
+
|
|
37
|
+
def initialize()
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
def to_java()
|
|
41
|
+
# conversion for id [type = java.util.UUID]
|
|
42
|
+
@id = java.util.UUID.fromString(@id.to_s) unless @id.nil?
|
|
43
|
+
|
|
44
|
+
# conversion for created_date [type = org.joda.time.DateTime]
|
|
45
|
+
if !@created_date.nil?
|
|
46
|
+
@created_date = (@created_date.kind_of? Time) ? DateTime.parse(@created_date.to_s) : @created_date
|
|
47
|
+
@created_date = Java::org.joda.time.DateTime.new(@created_date.to_s, Java::org.joda.time.DateTimeZone::UTC)
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# conversion for updated_date [type = org.joda.time.DateTime]
|
|
51
|
+
if !@updated_date.nil?
|
|
52
|
+
@updated_date = (@updated_date.kind_of? Time) ? DateTime.parse(@updated_date.to_s) : @updated_date
|
|
53
|
+
@updated_date = Java::org.joda.time.DateTime.new(@updated_date.to_s, Java::org.joda.time.DateTimeZone::UTC)
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# conversion for key [type = java.lang.String]
|
|
57
|
+
@key = @key.to_s unless @key.nil?
|
|
58
|
+
|
|
59
|
+
# conversion for value [type = java.lang.String]
|
|
60
|
+
@value = @value.to_s unless @value.nil?
|
|
61
|
+
self
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
def to_ruby(j_obj)
|
|
65
|
+
# conversion for id [type = java.util.UUID]
|
|
66
|
+
@id = j_obj.id
|
|
67
|
+
@id = @id.nil? ? nil : @id.to_s
|
|
68
|
+
|
|
69
|
+
# conversion for created_date [type = org.joda.time.DateTime]
|
|
70
|
+
@created_date = j_obj.created_date
|
|
71
|
+
if !@created_date.nil?
|
|
72
|
+
fmt = Java::org.joda.time.format.ISODateTimeFormat.date_time
|
|
73
|
+
str = fmt.print(@created_date)
|
|
74
|
+
@created_date = DateTime.iso8601(str)
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# conversion for updated_date [type = org.joda.time.DateTime]
|
|
78
|
+
@updated_date = j_obj.updated_date
|
|
79
|
+
if !@updated_date.nil?
|
|
80
|
+
fmt = Java::org.joda.time.format.ISODateTimeFormat.date_time
|
|
81
|
+
str = fmt.print(@updated_date)
|
|
82
|
+
@updated_date = DateTime.iso8601(str)
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
# conversion for key [type = java.lang.String]
|
|
86
|
+
@key = j_obj.key
|
|
87
|
+
|
|
88
|
+
# conversion for value [type = java.lang.String]
|
|
89
|
+
@value = j_obj.value
|
|
90
|
+
self
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
end
|
|
96
|
+
end
|
|
@@ -0,0 +1,55 @@
|
|
|
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.tenant.api'
|
|
31
|
+
class TenantService
|
|
32
|
+
|
|
33
|
+
include com.ning.billing.tenant.api.TenantService
|
|
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
|