killbill 2.0.1 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Jarfile +5 -5
- data/NEWS +3 -0
- data/VERSION +1 -1
- data/gen_config/api.conf +34 -34
- data/gen_config/plugin_api.conf +3 -3
- data/killbill.gemspec +2 -2
- data/lib/killbill.rb +11 -11
- data/lib/killbill/gen/api/account.rb +5 -5
- data/lib/killbill/gen/api/account_api_exception.rb +1 -1
- data/lib/killbill/gen/api/account_audit_logs.rb +32 -32
- data/lib/killbill/gen/api/account_audit_logs_for_object_type.rb +4 -4
- data/lib/killbill/gen/api/account_data.rb +5 -5
- data/lib/killbill/gen/api/account_email.rb +2 -2
- data/lib/killbill/gen/api/account_user_api.rb +36 -36
- data/lib/killbill/gen/api/audit_log.rb +8 -8
- data/lib/killbill/gen/api/audit_user_api.rb +14 -14
- data/lib/killbill/gen/api/billing_exception_base.rb +1 -1
- data/lib/killbill/gen/api/blockable.rb +2 -2
- data/lib/killbill/gen/api/blocking_api_exception.rb +1 -1
- data/lib/killbill/gen/api/blocking_state.rb +5 -5
- data/lib/killbill/gen/api/call_context.rb +8 -8
- data/lib/killbill/gen/api/catalog.rb +9 -9
- data/lib/killbill/gen/api/catalog_api_exception.rb +1 -1
- data/lib/killbill/gen/api/catalog_user_api.rb +5 -5
- data/lib/killbill/gen/api/column_info.rb +2 -2
- data/lib/killbill/gen/api/control_tag.rb +8 -8
- data/lib/killbill/gen/api/currency_conversion.rb +7 -7
- data/lib/killbill/gen/api/currency_conversion_api.rb +14 -14
- data/lib/killbill/gen/api/currency_conversion_exception.rb +1 -1
- data/lib/killbill/gen/api/currency_value_null.rb +1 -1
- data/lib/killbill/gen/api/custom_field.rb +5 -5
- data/lib/killbill/gen/api/custom_field_api_exception.rb +1 -1
- data/lib/killbill/gen/api/custom_field_user_api.rb +27 -27
- data/lib/killbill/gen/api/database_export_output_stream.rb +2 -2
- data/lib/killbill/gen/api/duration.rb +5 -5
- data/lib/killbill/gen/api/entitlement.rb +19 -19
- data/lib/killbill/gen/api/entitlement_ao_status_dry_run.rb +11 -11
- data/lib/killbill/gen/api/entitlement_api.rb +44 -44
- data/lib/killbill/gen/api/entitlement_api_exception.rb +1 -1
- data/lib/killbill/gen/api/entity.rb +2 -2
- data/lib/killbill/gen/api/illegal_plan_change.rb +1 -1
- data/lib/killbill/gen/api/international_price.rb +4 -4
- data/lib/killbill/gen/api/invalid_config_exception.rb +1 -1
- data/lib/killbill/gen/api/invoice.rb +9 -9
- data/lib/killbill/gen/api/invoice_api_exception.rb +1 -1
- data/lib/killbill/gen/api/invoice_creation_event.rb +2 -2
- data/lib/killbill/gen/api/invoice_formatter.rb +12 -12
- data/lib/killbill/gen/api/invoice_item.rb +8 -8
- data/lib/killbill/gen/api/invoice_item_formatter.rb +8 -8
- data/lib/killbill/gen/api/invoice_payment.rb +11 -11
- data/lib/killbill/gen/api/invoice_payment_api.rb +34 -34
- data/lib/killbill/gen/api/invoice_user_api.rb +90 -90
- data/lib/killbill/gen/api/limit.rb +4 -4
- data/lib/killbill/gen/api/listing.rb +6 -6
- data/lib/killbill/gen/api/migration_plan.rb +13 -13
- data/lib/killbill/gen/api/mutable_account_data.rb +5 -5
- data/lib/killbill/gen/api/osgi_killbill.rb +34 -34
- data/lib/killbill/gen/api/osgi_plugin_properties.rb +2 -2
- data/lib/killbill/gen/api/pagination.rb +2 -2
- data/lib/killbill/gen/api/payment.rb +12 -12
- data/lib/killbill/gen/api/payment_api.rb +103 -103
- data/lib/killbill/gen/api/payment_api_exception.rb +1 -1
- data/lib/killbill/gen/api/payment_attempt.rb +5 -5
- data/lib/killbill/gen/api/payment_method.rb +4 -4
- data/lib/killbill/gen/api/payment_method_kv_info.rb +1 -1
- data/lib/killbill/gen/api/payment_method_plugin.rb +4 -4
- data/lib/killbill/gen/api/plan.rb +13 -13
- data/lib/killbill/gen/api/plan_change_result.rb +9 -9
- data/lib/killbill/gen/api/plan_phase.rb +18 -18
- data/lib/killbill/gen/api/plan_phase_specifier.rb +10 -10
- data/lib/killbill/gen/api/plan_specifier.rb +7 -7
- data/lib/killbill/gen/api/plugin_config_service_api.rb +6 -6
- data/lib/killbill/gen/api/price.rb +5 -5
- data/lib/killbill/gen/api/price_list.rb +4 -4
- data/lib/killbill/gen/api/price_list_set.rb +4 -4
- data/lib/killbill/gen/api/product.rb +11 -11
- data/lib/killbill/gen/api/rate.rb +8 -8
- data/lib/killbill/gen/api/record_id_api.rb +6 -6
- data/lib/killbill/gen/api/refund.rb +10 -10
- data/lib/killbill/gen/api/rolled_up_usage.rb +2 -2
- data/lib/killbill/gen/api/security_api_exception.rb +1 -1
- data/lib/killbill/gen/api/static_catalog.rb +15 -15
- data/lib/killbill/gen/api/subscription.rb +19 -19
- data/lib/killbill/gen/api/subscription_api.rb +34 -34
- data/lib/killbill/gen/api/subscription_api_exception.rb +1 -1
- data/lib/killbill/gen/api/subscription_bundle.rb +6 -6
- data/lib/killbill/gen/api/subscription_bundle_timeline.rb +4 -4
- data/lib/killbill/gen/api/subscription_event.rb +27 -27
- data/lib/killbill/gen/api/tag.rb +5 -5
- data/lib/killbill/gen/api/tag_api_exception.rb +1 -1
- data/lib/killbill/gen/api/tag_definition.rb +5 -5
- data/lib/killbill/gen/api/tag_definition_api_exception.rb +1 -1
- data/lib/killbill/gen/api/tag_user_api.rb +54 -54
- data/lib/killbill/gen/api/tenant.rb +2 -2
- data/lib/killbill/gen/api/tenant_api_exception.rb +1 -1
- data/lib/killbill/gen/api/tenant_context.rb +2 -2
- data/lib/killbill/gen/api/tenant_data.rb +2 -2
- data/lib/killbill/gen/api/tenant_kv.rb +2 -2
- data/lib/killbill/gen/api/tenant_user_api.rb +20 -20
- data/lib/killbill/gen/api/unit.rb +2 -2
- data/lib/killbill/gen/api/usage_user_api.rb +7 -7
- data/lib/killbill/gen/plugin-api/currency_plugin_api.rb +19 -19
- data/lib/killbill/gen/plugin-api/ext_bus_event.rb +8 -8
- data/lib/killbill/gen/plugin-api/notification_plugin_api.rb +5 -5
- data/lib/killbill/gen/plugin-api/payment_info_plugin.rb +8 -8
- data/lib/killbill/gen/plugin-api/payment_method_info_plugin.rb +2 -2
- data/lib/killbill/gen/plugin-api/payment_plugin_api.rb +52 -52
- data/lib/killbill/gen/plugin-api/payment_plugin_api_exception.rb +1 -1
- data/lib/killbill/gen/plugin-api/refund_info_plugin.rb +8 -8
- data/lib/killbill/http_servlet.rb +1 -1
- data/lib/killbill/jnotification.rb +3 -3
- data/spec/killbill/killbill_integration_spec.rb +1 -1
- data/spec/killbill/notification_plugin_api_spec.rb +3 -3
- data/spec/killbill/payment_plugin_api_spec.rb +13 -13
- data/spec/spec_helper.rb +1 -1
- metadata +5 -5
@@ -44,7 +44,7 @@ module Killbill
|
|
44
44
|
|
45
45
|
# conversion for code [type = int]
|
46
46
|
@code = @code
|
47
|
-
Java::
|
47
|
+
Java::org.killbill.billing.util.api.TagApiException.new(@message, @cause, @code)
|
48
48
|
end
|
49
49
|
|
50
50
|
def to_ruby(j_obj)
|
@@ -27,10 +27,10 @@ module Killbill
|
|
27
27
|
module Plugin
|
28
28
|
module Model
|
29
29
|
|
30
|
-
java_package '
|
30
|
+
java_package 'org.killbill.billing.util.tag'
|
31
31
|
class TagDefinition
|
32
32
|
|
33
|
-
include
|
33
|
+
include org.killbill.billing.util.tag.TagDefinition
|
34
34
|
|
35
35
|
attr_accessor :id, :created_date, :updated_date, :name, :description, :is_control_tag, :applicable_object_types
|
36
36
|
|
@@ -65,8 +65,8 @@ module Killbill
|
|
65
65
|
# conversion for applicable_object_types [type = java.util.List]
|
66
66
|
tmp = java.util.ArrayList.new
|
67
67
|
(@applicable_object_types || []).each do |m|
|
68
|
-
# conversion for m [type =
|
69
|
-
m = Java::
|
68
|
+
# conversion for m [type = org.killbill.billing.ObjectType]
|
69
|
+
m = Java::org.killbill.billing.ObjectType.value_of("#{m.to_s}") unless m.nil?
|
70
70
|
tmp.add(m)
|
71
71
|
end
|
72
72
|
@applicable_object_types = tmp
|
@@ -113,7 +113,7 @@ module Killbill
|
|
113
113
|
@applicable_object_types = j_obj.applicable_object_types
|
114
114
|
tmp = []
|
115
115
|
(@applicable_object_types || []).each do |m|
|
116
|
-
# conversion for m [type =
|
116
|
+
# conversion for m [type = org.killbill.billing.ObjectType]
|
117
117
|
m = m.to_s.to_sym unless m.nil?
|
118
118
|
tmp << m
|
119
119
|
end
|
@@ -44,7 +44,7 @@ module Killbill
|
|
44
44
|
|
45
45
|
# conversion for code [type = int]
|
46
46
|
@code = @code
|
47
|
-
Java::
|
47
|
+
Java::org.killbill.billing.util.api.TagDefinitionApiException.new(@message, @cause, @code)
|
48
48
|
end
|
49
49
|
|
50
50
|
def to_ruby(j_obj)
|
@@ -27,26 +27,26 @@ module Killbill
|
|
27
27
|
module Plugin
|
28
28
|
module Api
|
29
29
|
|
30
|
-
java_package '
|
30
|
+
java_package 'org.killbill.billing.util.api'
|
31
31
|
class TagUserApi
|
32
32
|
|
33
|
-
include
|
33
|
+
include org.killbill.billing.util.api.TagUserApi
|
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 getTagDefinitions(Java::
|
40
|
+
java_signature 'Java::java.util.List getTagDefinitions(Java::org.killbill.billing.util.callcontext.TenantContext)'
|
41
41
|
def get_tag_definitions(context)
|
42
42
|
|
43
|
-
# conversion for context [type =
|
43
|
+
# conversion for context [type = org.killbill.billing.util.callcontext.TenantContext]
|
44
44
|
context = context.to_java unless context.nil?
|
45
45
|
res = @real_java_api.get_tag_definitions(context)
|
46
46
|
# conversion for res [type = java.util.List]
|
47
47
|
tmp = []
|
48
48
|
(res || []).each do |m|
|
49
|
-
# conversion for m [type =
|
49
|
+
# conversion for m [type = org.killbill.billing.util.tag.TagDefinition]
|
50
50
|
m = Killbill::Plugin::Model::TagDefinition.new.to_ruby(m) unless m.nil?
|
51
51
|
tmp << m
|
52
52
|
end
|
@@ -54,7 +54,7 @@ module Killbill
|
|
54
54
|
return res
|
55
55
|
end
|
56
56
|
|
57
|
-
java_signature 'Java::
|
57
|
+
java_signature 'Java::org.killbill.billing.util.tag.TagDefinition createTagDefinition(Java::java.lang.String, Java::java.lang.String, Java::org.killbill.billing.util.callcontext.CallContext)'
|
58
58
|
def create_tag_definition(definitionName, description, context)
|
59
59
|
|
60
60
|
# conversion for definitionName [type = java.lang.String]
|
@@ -63,73 +63,73 @@ module Killbill
|
|
63
63
|
# conversion for description [type = java.lang.String]
|
64
64
|
description = description.to_s unless description.nil?
|
65
65
|
|
66
|
-
# conversion for context [type =
|
66
|
+
# conversion for context [type = org.killbill.billing.util.callcontext.CallContext]
|
67
67
|
context = context.to_java unless context.nil?
|
68
68
|
begin
|
69
69
|
res = @real_java_api.create_tag_definition(definitionName, description, context)
|
70
|
-
# conversion for res [type =
|
70
|
+
# conversion for res [type = org.killbill.billing.util.tag.TagDefinition]
|
71
71
|
res = Killbill::Plugin::Model::TagDefinition.new.to_ruby(res) unless res.nil?
|
72
72
|
return res
|
73
|
-
rescue Java::
|
73
|
+
rescue Java::org.killbill.billing.util.api.TagDefinitionApiException => e
|
74
74
|
raise Killbill::Plugin::Model::TagDefinitionApiException.new.to_ruby(e)
|
75
75
|
end
|
76
76
|
end
|
77
77
|
|
78
|
-
java_signature 'Java::void deleteTagDefinition(Java::java.util.UUID, Java::
|
78
|
+
java_signature 'Java::void deleteTagDefinition(Java::java.util.UUID, Java::org.killbill.billing.util.callcontext.CallContext)'
|
79
79
|
def delete_tag_definition(tagDefinitionId, context)
|
80
80
|
|
81
81
|
# conversion for tagDefinitionId [type = java.util.UUID]
|
82
82
|
tagDefinitionId = java.util.UUID.fromString(tagDefinitionId.to_s) unless tagDefinitionId.nil?
|
83
83
|
|
84
|
-
# conversion for context [type =
|
84
|
+
# conversion for context [type = org.killbill.billing.util.callcontext.CallContext]
|
85
85
|
context = context.to_java unless context.nil?
|
86
86
|
@real_java_api.delete_tag_definition(tagDefinitionId, context)
|
87
87
|
end
|
88
88
|
|
89
|
-
java_signature 'Java::
|
89
|
+
java_signature 'Java::org.killbill.billing.util.tag.TagDefinition getTagDefinition(Java::java.util.UUID, Java::org.killbill.billing.util.callcontext.TenantContext)'
|
90
90
|
def get_tag_definition(tagDefinitionId, context)
|
91
91
|
|
92
92
|
# conversion for tagDefinitionId [type = java.util.UUID]
|
93
93
|
tagDefinitionId = java.util.UUID.fromString(tagDefinitionId.to_s) unless tagDefinitionId.nil?
|
94
94
|
|
95
|
-
# conversion for context [type =
|
95
|
+
# conversion for context [type = org.killbill.billing.util.callcontext.TenantContext]
|
96
96
|
context = context.to_java unless context.nil?
|
97
97
|
begin
|
98
98
|
res = @real_java_api.get_tag_definition(tagDefinitionId, context)
|
99
|
-
# conversion for res [type =
|
99
|
+
# conversion for res [type = org.killbill.billing.util.tag.TagDefinition]
|
100
100
|
res = Killbill::Plugin::Model::TagDefinition.new.to_ruby(res) unless res.nil?
|
101
101
|
return res
|
102
|
-
rescue Java::
|
102
|
+
rescue Java::org.killbill.billing.util.api.TagDefinitionApiException => e
|
103
103
|
raise Killbill::Plugin::Model::TagDefinitionApiException.new.to_ruby(e)
|
104
104
|
end
|
105
105
|
end
|
106
106
|
|
107
|
-
java_signature 'Java::
|
107
|
+
java_signature 'Java::org.killbill.billing.util.tag.TagDefinition getTagDefinitionForName(Java::java.lang.String, Java::org.killbill.billing.util.callcontext.TenantContext)'
|
108
108
|
def get_tag_definition_for_name(tageDefinitionName, context)
|
109
109
|
|
110
110
|
# conversion for tageDefinitionName [type = java.lang.String]
|
111
111
|
tageDefinitionName = tageDefinitionName.to_s unless tageDefinitionName.nil?
|
112
112
|
|
113
|
-
# conversion for context [type =
|
113
|
+
# conversion for context [type = org.killbill.billing.util.callcontext.TenantContext]
|
114
114
|
context = context.to_java unless context.nil?
|
115
115
|
begin
|
116
116
|
res = @real_java_api.get_tag_definition_for_name(tageDefinitionName, context)
|
117
|
-
# conversion for res [type =
|
117
|
+
# conversion for res [type = org.killbill.billing.util.tag.TagDefinition]
|
118
118
|
res = Killbill::Plugin::Model::TagDefinition.new.to_ruby(res) unless res.nil?
|
119
119
|
return res
|
120
|
-
rescue Java::
|
120
|
+
rescue Java::org.killbill.billing.util.api.TagDefinitionApiException => e
|
121
121
|
raise Killbill::Plugin::Model::TagDefinitionApiException.new.to_ruby(e)
|
122
122
|
end
|
123
123
|
end
|
124
124
|
|
125
|
-
java_signature 'Java::void addTags(Java::java.util.UUID, Java::
|
125
|
+
java_signature 'Java::void addTags(Java::java.util.UUID, Java::org.killbill.billing.ObjectType, Java::java.util.Collection, Java::org.killbill.billing.util.callcontext.CallContext)'
|
126
126
|
def add_tags(objectId, objectType, tagDefinitionIds, context)
|
127
127
|
|
128
128
|
# conversion for objectId [type = java.util.UUID]
|
129
129
|
objectId = java.util.UUID.fromString(objectId.to_s) unless objectId.nil?
|
130
130
|
|
131
|
-
# conversion for objectType [type =
|
132
|
-
objectType = Java::
|
131
|
+
# conversion for objectType [type = org.killbill.billing.ObjectType]
|
132
|
+
objectType = Java::org.killbill.billing.ObjectType.value_of("#{objectType.to_s}") unless objectType.nil?
|
133
133
|
|
134
134
|
# conversion for tagDefinitionIds [type = java.util.Collection]
|
135
135
|
tmp = java.util.ArrayList.new
|
@@ -140,36 +140,36 @@ module Killbill
|
|
140
140
|
end
|
141
141
|
tagDefinitionIds = tmp
|
142
142
|
|
143
|
-
# conversion for context [type =
|
143
|
+
# conversion for context [type = org.killbill.billing.util.callcontext.CallContext]
|
144
144
|
context = context.to_java unless context.nil?
|
145
145
|
@real_java_api.add_tags(objectId, objectType, tagDefinitionIds, context)
|
146
146
|
end
|
147
147
|
|
148
|
-
java_signature 'Java::void addTag(Java::java.util.UUID, Java::
|
148
|
+
java_signature 'Java::void addTag(Java::java.util.UUID, Java::org.killbill.billing.ObjectType, Java::java.util.UUID, Java::org.killbill.billing.util.callcontext.CallContext)'
|
149
149
|
def add_tag(objectId, objectType, tagDefinitionId, context)
|
150
150
|
|
151
151
|
# conversion for objectId [type = java.util.UUID]
|
152
152
|
objectId = java.util.UUID.fromString(objectId.to_s) unless objectId.nil?
|
153
153
|
|
154
|
-
# conversion for objectType [type =
|
155
|
-
objectType = Java::
|
154
|
+
# conversion for objectType [type = org.killbill.billing.ObjectType]
|
155
|
+
objectType = Java::org.killbill.billing.ObjectType.value_of("#{objectType.to_s}") unless objectType.nil?
|
156
156
|
|
157
157
|
# conversion for tagDefinitionId [type = java.util.UUID]
|
158
158
|
tagDefinitionId = java.util.UUID.fromString(tagDefinitionId.to_s) unless tagDefinitionId.nil?
|
159
159
|
|
160
|
-
# conversion for context [type =
|
160
|
+
# conversion for context [type = org.killbill.billing.util.callcontext.CallContext]
|
161
161
|
context = context.to_java unless context.nil?
|
162
162
|
@real_java_api.add_tag(objectId, objectType, tagDefinitionId, context)
|
163
163
|
end
|
164
164
|
|
165
|
-
java_signature 'Java::void removeTags(Java::java.util.UUID, Java::
|
165
|
+
java_signature 'Java::void removeTags(Java::java.util.UUID, Java::org.killbill.billing.ObjectType, Java::java.util.Collection, Java::org.killbill.billing.util.callcontext.CallContext)'
|
166
166
|
def remove_tags(objectId, objectType, tagDefinitions, context)
|
167
167
|
|
168
168
|
# conversion for objectId [type = java.util.UUID]
|
169
169
|
objectId = java.util.UUID.fromString(objectId.to_s) unless objectId.nil?
|
170
170
|
|
171
|
-
# conversion for objectType [type =
|
172
|
-
objectType = Java::
|
171
|
+
# conversion for objectType [type = org.killbill.billing.ObjectType]
|
172
|
+
objectType = Java::org.killbill.billing.ObjectType.value_of("#{objectType.to_s}") unless objectType.nil?
|
173
173
|
|
174
174
|
# conversion for tagDefinitions [type = java.util.Collection]
|
175
175
|
tmp = java.util.ArrayList.new
|
@@ -180,29 +180,29 @@ module Killbill
|
|
180
180
|
end
|
181
181
|
tagDefinitions = tmp
|
182
182
|
|
183
|
-
# conversion for context [type =
|
183
|
+
# conversion for context [type = org.killbill.billing.util.callcontext.CallContext]
|
184
184
|
context = context.to_java unless context.nil?
|
185
185
|
@real_java_api.remove_tags(objectId, objectType, tagDefinitions, context)
|
186
186
|
end
|
187
187
|
|
188
|
-
java_signature 'Java::void removeTag(Java::java.util.UUID, Java::
|
188
|
+
java_signature 'Java::void removeTag(Java::java.util.UUID, Java::org.killbill.billing.ObjectType, Java::java.util.UUID, Java::org.killbill.billing.util.callcontext.CallContext)'
|
189
189
|
def remove_tag(objectId, objectType, tagDefinitionId, context)
|
190
190
|
|
191
191
|
# conversion for objectId [type = java.util.UUID]
|
192
192
|
objectId = java.util.UUID.fromString(objectId.to_s) unless objectId.nil?
|
193
193
|
|
194
|
-
# conversion for objectType [type =
|
195
|
-
objectType = Java::
|
194
|
+
# conversion for objectType [type = org.killbill.billing.ObjectType]
|
195
|
+
objectType = Java::org.killbill.billing.ObjectType.value_of("#{objectType.to_s}") unless objectType.nil?
|
196
196
|
|
197
197
|
# conversion for tagDefinitionId [type = java.util.UUID]
|
198
198
|
tagDefinitionId = java.util.UUID.fromString(tagDefinitionId.to_s) unless tagDefinitionId.nil?
|
199
199
|
|
200
|
-
# conversion for context [type =
|
200
|
+
# conversion for context [type = org.killbill.billing.util.callcontext.CallContext]
|
201
201
|
context = context.to_java unless context.nil?
|
202
202
|
@real_java_api.remove_tag(objectId, objectType, tagDefinitionId, context)
|
203
203
|
end
|
204
204
|
|
205
|
-
java_signature 'Java::
|
205
|
+
java_signature 'Java::org.killbill.billing.util.entity.Pagination searchTags(Java::java.lang.String, Java::java.lang.Long, Java::java.lang.Long, Java::org.killbill.billing.util.callcontext.TenantContext)'
|
206
206
|
def search_tags(searchKey, offset, limit, context)
|
207
207
|
|
208
208
|
# conversion for searchKey [type = java.lang.String]
|
@@ -214,15 +214,15 @@ module Killbill
|
|
214
214
|
# conversion for limit [type = java.lang.Long]
|
215
215
|
limit = limit
|
216
216
|
|
217
|
-
# conversion for context [type =
|
217
|
+
# conversion for context [type = org.killbill.billing.util.callcontext.TenantContext]
|
218
218
|
context = context.to_java unless context.nil?
|
219
219
|
res = @real_java_api.search_tags(searchKey, offset, limit, context)
|
220
|
-
# conversion for res [type =
|
220
|
+
# conversion for res [type = org.killbill.billing.util.entity.Pagination]
|
221
221
|
res = Killbill::Plugin::Model::Pagination.new.to_ruby(res) unless res.nil?
|
222
222
|
return res
|
223
223
|
end
|
224
224
|
|
225
|
-
java_signature 'Java::
|
225
|
+
java_signature 'Java::org.killbill.billing.util.entity.Pagination getTags(Java::java.lang.Long, Java::java.lang.Long, Java::org.killbill.billing.util.callcontext.TenantContext)'
|
226
226
|
def get_tags(offset, limit, context)
|
227
227
|
|
228
228
|
# conversion for offset [type = java.lang.Long]
|
@@ -231,33 +231,33 @@ module Killbill
|
|
231
231
|
# conversion for limit [type = java.lang.Long]
|
232
232
|
limit = limit
|
233
233
|
|
234
|
-
# conversion for context [type =
|
234
|
+
# conversion for context [type = org.killbill.billing.util.callcontext.TenantContext]
|
235
235
|
context = context.to_java unless context.nil?
|
236
236
|
res = @real_java_api.get_tags(offset, limit, context)
|
237
|
-
# conversion for res [type =
|
237
|
+
# conversion for res [type = org.killbill.billing.util.entity.Pagination]
|
238
238
|
res = Killbill::Plugin::Model::Pagination.new.to_ruby(res) unless res.nil?
|
239
239
|
return res
|
240
240
|
end
|
241
241
|
|
242
|
-
java_signature 'Java::java.util.List getTagsForObject(Java::java.util.UUID, Java::
|
242
|
+
java_signature 'Java::java.util.List getTagsForObject(Java::java.util.UUID, Java::org.killbill.billing.ObjectType, Java::boolean, Java::org.killbill.billing.util.callcontext.TenantContext)'
|
243
243
|
def get_tags_for_object(objectId, objectType, includedDeleted, context)
|
244
244
|
|
245
245
|
# conversion for objectId [type = java.util.UUID]
|
246
246
|
objectId = java.util.UUID.fromString(objectId.to_s) unless objectId.nil?
|
247
247
|
|
248
|
-
# conversion for objectType [type =
|
249
|
-
objectType = Java::
|
248
|
+
# conversion for objectType [type = org.killbill.billing.ObjectType]
|
249
|
+
objectType = Java::org.killbill.billing.ObjectType.value_of("#{objectType.to_s}") unless objectType.nil?
|
250
250
|
|
251
251
|
# conversion for includedDeleted [type = boolean]
|
252
252
|
includedDeleted = includedDeleted.nil? ? java.lang.Boolean.new(false) : java.lang.Boolean.new(includedDeleted)
|
253
253
|
|
254
|
-
# conversion for context [type =
|
254
|
+
# conversion for context [type = org.killbill.billing.util.callcontext.TenantContext]
|
255
255
|
context = context.to_java unless context.nil?
|
256
256
|
res = @real_java_api.get_tags_for_object(objectId, objectType, includedDeleted, context)
|
257
257
|
# conversion for res [type = java.util.List]
|
258
258
|
tmp = []
|
259
259
|
(res || []).each do |m|
|
260
|
-
# conversion for m [type =
|
260
|
+
# conversion for m [type = org.killbill.billing.util.tag.Tag]
|
261
261
|
m = Killbill::Plugin::Model::Tag.new.to_ruby(m) unless m.nil?
|
262
262
|
tmp << m
|
263
263
|
end
|
@@ -265,25 +265,25 @@ module Killbill
|
|
265
265
|
return res
|
266
266
|
end
|
267
267
|
|
268
|
-
java_signature 'Java::java.util.List getTagsForAccountType(Java::java.util.UUID, Java::
|
268
|
+
java_signature 'Java::java.util.List getTagsForAccountType(Java::java.util.UUID, Java::org.killbill.billing.ObjectType, Java::boolean, Java::org.killbill.billing.util.callcontext.TenantContext)'
|
269
269
|
def get_tags_for_account_type(accountId, objectType, includedDeleted, context)
|
270
270
|
|
271
271
|
# conversion for accountId [type = java.util.UUID]
|
272
272
|
accountId = java.util.UUID.fromString(accountId.to_s) unless accountId.nil?
|
273
273
|
|
274
|
-
# conversion for objectType [type =
|
275
|
-
objectType = Java::
|
274
|
+
# conversion for objectType [type = org.killbill.billing.ObjectType]
|
275
|
+
objectType = Java::org.killbill.billing.ObjectType.value_of("#{objectType.to_s}") unless objectType.nil?
|
276
276
|
|
277
277
|
# conversion for includedDeleted [type = boolean]
|
278
278
|
includedDeleted = includedDeleted.nil? ? java.lang.Boolean.new(false) : java.lang.Boolean.new(includedDeleted)
|
279
279
|
|
280
|
-
# conversion for context [type =
|
280
|
+
# conversion for context [type = org.killbill.billing.util.callcontext.TenantContext]
|
281
281
|
context = context.to_java unless context.nil?
|
282
282
|
res = @real_java_api.get_tags_for_account_type(accountId, objectType, includedDeleted, context)
|
283
283
|
# conversion for res [type = java.util.List]
|
284
284
|
tmp = []
|
285
285
|
(res || []).each do |m|
|
286
|
-
# conversion for m [type =
|
286
|
+
# conversion for m [type = org.killbill.billing.util.tag.Tag]
|
287
287
|
m = Killbill::Plugin::Model::Tag.new.to_ruby(m) unless m.nil?
|
288
288
|
tmp << m
|
289
289
|
end
|
@@ -291,7 +291,7 @@ module Killbill
|
|
291
291
|
return res
|
292
292
|
end
|
293
293
|
|
294
|
-
java_signature 'Java::java.util.List getTagsForAccount(Java::java.util.UUID, Java::boolean, Java::
|
294
|
+
java_signature 'Java::java.util.List getTagsForAccount(Java::java.util.UUID, Java::boolean, Java::org.killbill.billing.util.callcontext.TenantContext)'
|
295
295
|
def get_tags_for_account(accountId, includedDeleted, context)
|
296
296
|
|
297
297
|
# conversion for accountId [type = java.util.UUID]
|
@@ -300,13 +300,13 @@ module Killbill
|
|
300
300
|
# conversion for includedDeleted [type = boolean]
|
301
301
|
includedDeleted = includedDeleted.nil? ? java.lang.Boolean.new(false) : java.lang.Boolean.new(includedDeleted)
|
302
302
|
|
303
|
-
# conversion for context [type =
|
303
|
+
# conversion for context [type = org.killbill.billing.util.callcontext.TenantContext]
|
304
304
|
context = context.to_java unless context.nil?
|
305
305
|
res = @real_java_api.get_tags_for_account(accountId, includedDeleted, context)
|
306
306
|
# conversion for res [type = java.util.List]
|
307
307
|
tmp = []
|
308
308
|
(res || []).each do |m|
|
309
|
-
# conversion for m [type =
|
309
|
+
# conversion for m [type = org.killbill.billing.util.tag.Tag]
|
310
310
|
m = Killbill::Plugin::Model::Tag.new.to_ruby(m) unless m.nil?
|
311
311
|
tmp << m
|
312
312
|
end
|
@@ -27,10 +27,10 @@ module Killbill
|
|
27
27
|
module Plugin
|
28
28
|
module Model
|
29
29
|
|
30
|
-
java_package '
|
30
|
+
java_package 'org.killbill.billing.tenant.api'
|
31
31
|
class Tenant
|
32
32
|
|
33
|
-
include
|
33
|
+
include org.killbill.billing.tenant.api.Tenant
|
34
34
|
|
35
35
|
attr_accessor :id, :created_date, :updated_date, :external_key, :api_key, :api_secret
|
36
36
|
|
@@ -44,7 +44,7 @@ module Killbill
|
|
44
44
|
|
45
45
|
# conversion for code [type = int]
|
46
46
|
@code = @code
|
47
|
-
Java::
|
47
|
+
Java::org.killbill.billing.tenant.api.TenantApiException.new(@message, @cause, @code)
|
48
48
|
end
|
49
49
|
|
50
50
|
def to_ruby(j_obj)
|
@@ -27,10 +27,10 @@ module Killbill
|
|
27
27
|
module Plugin
|
28
28
|
module Model
|
29
29
|
|
30
|
-
java_package '
|
30
|
+
java_package 'org.killbill.billing.util.callcontext'
|
31
31
|
class TenantContext
|
32
32
|
|
33
|
-
include
|
33
|
+
include org.killbill.billing.util.callcontext.TenantContext
|
34
34
|
|
35
35
|
attr_accessor :tenant_id
|
36
36
|
|
@@ -27,10 +27,10 @@ module Killbill
|
|
27
27
|
module Plugin
|
28
28
|
module Model
|
29
29
|
|
30
|
-
java_package '
|
30
|
+
java_package 'org.killbill.billing.tenant.api'
|
31
31
|
class TenantData
|
32
32
|
|
33
|
-
include
|
33
|
+
include org.killbill.billing.tenant.api.TenantData
|
34
34
|
|
35
35
|
attr_accessor :external_key, :api_key, :api_secret
|
36
36
|
|
@@ -27,10 +27,10 @@ module Killbill
|
|
27
27
|
module Plugin
|
28
28
|
module Model
|
29
29
|
|
30
|
-
java_package '
|
30
|
+
java_package 'org.killbill.billing.tenant.api'
|
31
31
|
class TenantKV
|
32
32
|
|
33
|
-
include
|
33
|
+
include org.killbill.billing.tenant.api.TenantKV
|
34
34
|
|
35
35
|
attr_accessor :id, :created_date, :updated_date, :key, :value
|
36
36
|
|
@@ -27,71 +27,71 @@ module Killbill
|
|
27
27
|
module Plugin
|
28
28
|
module Api
|
29
29
|
|
30
|
-
java_package '
|
30
|
+
java_package 'org.killbill.billing.tenant.api'
|
31
31
|
class TenantUserApi
|
32
32
|
|
33
|
-
include
|
33
|
+
include org.killbill.billing.tenant.api.TenantUserApi
|
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::
|
40
|
+
java_signature 'Java::org.killbill.billing.tenant.api.Tenant createTenant(Java::org.killbill.billing.tenant.api.TenantData, Java::org.killbill.billing.util.callcontext.CallContext)'
|
41
41
|
def create_tenant(data, context)
|
42
42
|
|
43
|
-
# conversion for data [type =
|
43
|
+
# conversion for data [type = org.killbill.billing.tenant.api.TenantData]
|
44
44
|
data = data.to_java unless data.nil?
|
45
45
|
|
46
|
-
# conversion for context [type =
|
46
|
+
# conversion for context [type = org.killbill.billing.util.callcontext.CallContext]
|
47
47
|
context = context.to_java unless context.nil?
|
48
48
|
begin
|
49
49
|
res = @real_java_api.create_tenant(data, context)
|
50
|
-
# conversion for res [type =
|
50
|
+
# conversion for res [type = org.killbill.billing.tenant.api.Tenant]
|
51
51
|
res = Killbill::Plugin::Model::Tenant.new.to_ruby(res) unless res.nil?
|
52
52
|
return res
|
53
|
-
rescue Java::
|
53
|
+
rescue Java::org.killbill.billing.tenant.api.TenantApiException => e
|
54
54
|
raise Killbill::Plugin::Model::TenantApiException.new.to_ruby(e)
|
55
55
|
end
|
56
56
|
end
|
57
57
|
|
58
|
-
java_signature 'Java::
|
58
|
+
java_signature 'Java::org.killbill.billing.tenant.api.Tenant getTenantByApiKey(Java::java.lang.String)'
|
59
59
|
def get_tenant_by_api_key(key)
|
60
60
|
|
61
61
|
# conversion for key [type = java.lang.String]
|
62
62
|
key = key.to_s unless key.nil?
|
63
63
|
begin
|
64
64
|
res = @real_java_api.get_tenant_by_api_key(key)
|
65
|
-
# conversion for res [type =
|
65
|
+
# conversion for res [type = org.killbill.billing.tenant.api.Tenant]
|
66
66
|
res = Killbill::Plugin::Model::Tenant.new.to_ruby(res) unless res.nil?
|
67
67
|
return res
|
68
|
-
rescue Java::
|
68
|
+
rescue Java::org.killbill.billing.tenant.api.TenantApiException => e
|
69
69
|
raise Killbill::Plugin::Model::TenantApiException.new.to_ruby(e)
|
70
70
|
end
|
71
71
|
end
|
72
72
|
|
73
|
-
java_signature 'Java::
|
73
|
+
java_signature 'Java::org.killbill.billing.tenant.api.Tenant getTenantById(Java::java.util.UUID)'
|
74
74
|
def get_tenant_by_id(tenantId)
|
75
75
|
|
76
76
|
# conversion for tenantId [type = java.util.UUID]
|
77
77
|
tenantId = java.util.UUID.fromString(tenantId.to_s) unless tenantId.nil?
|
78
78
|
begin
|
79
79
|
res = @real_java_api.get_tenant_by_id(tenantId)
|
80
|
-
# conversion for res [type =
|
80
|
+
# conversion for res [type = org.killbill.billing.tenant.api.Tenant]
|
81
81
|
res = Killbill::Plugin::Model::Tenant.new.to_ruby(res) unless res.nil?
|
82
82
|
return res
|
83
|
-
rescue Java::
|
83
|
+
rescue Java::org.killbill.billing.tenant.api.TenantApiException => e
|
84
84
|
raise Killbill::Plugin::Model::TenantApiException.new.to_ruby(e)
|
85
85
|
end
|
86
86
|
end
|
87
87
|
|
88
|
-
java_signature 'Java::java.util.List getTenantValueForKey(Java::java.lang.String, Java::
|
88
|
+
java_signature 'Java::java.util.List getTenantValueForKey(Java::java.lang.String, Java::org.killbill.billing.util.callcontext.TenantContext)'
|
89
89
|
def get_tenant_value_for_key(key, context)
|
90
90
|
|
91
91
|
# conversion for key [type = java.lang.String]
|
92
92
|
key = key.to_s unless key.nil?
|
93
93
|
|
94
|
-
# conversion for context [type =
|
94
|
+
# conversion for context [type = org.killbill.billing.util.callcontext.TenantContext]
|
95
95
|
context = context.to_java unless context.nil?
|
96
96
|
begin
|
97
97
|
res = @real_java_api.get_tenant_value_for_key(key, context)
|
@@ -103,12 +103,12 @@ module Killbill
|
|
103
103
|
end
|
104
104
|
res = tmp
|
105
105
|
return res
|
106
|
-
rescue Java::
|
106
|
+
rescue Java::org.killbill.billing.tenant.api.TenantApiException => e
|
107
107
|
raise Killbill::Plugin::Model::TenantApiException.new.to_ruby(e)
|
108
108
|
end
|
109
109
|
end
|
110
110
|
|
111
|
-
java_signature 'Java::void addTenantKeyValue(Java::java.lang.String, Java::java.lang.String, Java::
|
111
|
+
java_signature 'Java::void addTenantKeyValue(Java::java.lang.String, Java::java.lang.String, Java::org.killbill.billing.util.callcontext.CallContext)'
|
112
112
|
def add_tenant_key_value(key, value, context)
|
113
113
|
|
114
114
|
# conversion for key [type = java.lang.String]
|
@@ -117,18 +117,18 @@ module Killbill
|
|
117
117
|
# conversion for value [type = java.lang.String]
|
118
118
|
value = value.to_s unless value.nil?
|
119
119
|
|
120
|
-
# conversion for context [type =
|
120
|
+
# conversion for context [type = org.killbill.billing.util.callcontext.CallContext]
|
121
121
|
context = context.to_java unless context.nil?
|
122
122
|
@real_java_api.add_tenant_key_value(key, value, context)
|
123
123
|
end
|
124
124
|
|
125
|
-
java_signature 'Java::void deleteTenantKey(Java::java.lang.String, Java::
|
125
|
+
java_signature 'Java::void deleteTenantKey(Java::java.lang.String, Java::org.killbill.billing.util.callcontext.CallContext)'
|
126
126
|
def delete_tenant_key(key, context)
|
127
127
|
|
128
128
|
# conversion for key [type = java.lang.String]
|
129
129
|
key = key.to_s unless key.nil?
|
130
130
|
|
131
|
-
# conversion for context [type =
|
131
|
+
# conversion for context [type = org.killbill.billing.util.callcontext.CallContext]
|
132
132
|
context = context.to_java unless context.nil?
|
133
133
|
@real_java_api.delete_tenant_key(key, context)
|
134
134
|
end
|