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,196 @@
|
|
|
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 Api
|
|
29
|
+
|
|
30
|
+
java_package 'com.ning.billing.util.api'
|
|
31
|
+
class AuditUserApi
|
|
32
|
+
|
|
33
|
+
include com.ning.billing.util.api.AuditUserApi
|
|
34
|
+
|
|
35
|
+
def initialize(real_java_api)
|
|
36
|
+
@real_java_api = real_java_api
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
java_signature 'Java::com.ning.billing.util.audit.AuditLogsForAccount getAuditLogsForAccount(Java::java.util.UUID, Java::com.ning.billing.util.api.AuditLevel, Java::com.ning.billing.util.callcontext.TenantContext)'
|
|
41
|
+
def get_audit_logs_for_account(accountId, auditLevel, context)
|
|
42
|
+
# conversion for accountId [type = java.util.UUID]
|
|
43
|
+
accountId = java.util.UUID.fromString(accountId.to_s) unless accountId.nil?
|
|
44
|
+
# conversion for auditLevel [type = com.ning.billing.util.api.AuditLevel]
|
|
45
|
+
auditLevel = Java::com.ning.billing.util.api.AuditLevel.value_of("#{auditLevel.to_s}") unless auditLevel.nil?
|
|
46
|
+
# conversion for context [type = com.ning.billing.util.callcontext.TenantContext]
|
|
47
|
+
context = context.to_java unless context.nil?
|
|
48
|
+
res = @real_java_api.get_audit_logs_for_account(accountId, auditLevel, context)
|
|
49
|
+
# conversion for res [type = com.ning.billing.util.audit.AuditLogsForAccount]
|
|
50
|
+
res = Killbill::Plugin::Model::AuditLogsForAccount.new.to_ruby(res) unless res.nil?
|
|
51
|
+
return res
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
java_signature 'Java::com.ning.billing.util.audit.AuditLogsForBundles getAuditLogsForBundle(Java::java.util.UUID, Java::com.ning.billing.util.api.AuditLevel, Java::com.ning.billing.util.callcontext.TenantContext)'
|
|
55
|
+
def get_audit_logs_for_bundle(bundleId, auditLevel, context)
|
|
56
|
+
# conversion for bundleId [type = java.util.UUID]
|
|
57
|
+
bundleId = java.util.UUID.fromString(bundleId.to_s) unless bundleId.nil?
|
|
58
|
+
# conversion for auditLevel [type = com.ning.billing.util.api.AuditLevel]
|
|
59
|
+
auditLevel = Java::com.ning.billing.util.api.AuditLevel.value_of("#{auditLevel.to_s}") unless auditLevel.nil?
|
|
60
|
+
# conversion for context [type = com.ning.billing.util.callcontext.TenantContext]
|
|
61
|
+
context = context.to_java unless context.nil?
|
|
62
|
+
begin
|
|
63
|
+
res = @real_java_api.get_audit_logs_for_bundle(bundleId, auditLevel, context)
|
|
64
|
+
# conversion for res [type = com.ning.billing.util.audit.AuditLogsForBundles]
|
|
65
|
+
res = Killbill::Plugin::Model::AuditLogsForBundles.new.to_ruby(res) unless res.nil?
|
|
66
|
+
return res
|
|
67
|
+
rescue Java::com.ning.billing.entitlement.api.timeline.EntitlementRepairException => e
|
|
68
|
+
raise Killbill::Plugin::Model::EntitlementRepairException.new.to_ruby(e)
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
java_signature 'Java::com.ning.billing.util.audit.AuditLogsForBundles getAuditLogsForBundles(Java::java.util.List, Java::com.ning.billing.util.api.AuditLevel, Java::com.ning.billing.util.callcontext.TenantContext)'
|
|
73
|
+
def get_audit_logs_for_bundles(bundles, auditLevel, context)
|
|
74
|
+
# conversion for bundles [type = java.util.List]
|
|
75
|
+
tmp = java.util.ArrayList.new
|
|
76
|
+
(bundles || []).each do |m|
|
|
77
|
+
# conversion for m [type = com.ning.billing.entitlement.api.timeline.BundleTimeline]
|
|
78
|
+
m = m.to_java unless m.nil?
|
|
79
|
+
tmp.add(m)
|
|
80
|
+
end
|
|
81
|
+
bundles = tmp
|
|
82
|
+
# conversion for auditLevel [type = com.ning.billing.util.api.AuditLevel]
|
|
83
|
+
auditLevel = Java::com.ning.billing.util.api.AuditLevel.value_of("#{auditLevel.to_s}") unless auditLevel.nil?
|
|
84
|
+
# conversion for context [type = com.ning.billing.util.callcontext.TenantContext]
|
|
85
|
+
context = context.to_java unless context.nil?
|
|
86
|
+
res = @real_java_api.get_audit_logs_for_bundles(bundles, auditLevel, context)
|
|
87
|
+
# conversion for res [type = com.ning.billing.util.audit.AuditLogsForBundles]
|
|
88
|
+
res = Killbill::Plugin::Model::AuditLogsForBundles.new.to_ruby(res) unless res.nil?
|
|
89
|
+
return res
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
java_signature 'Java::com.ning.billing.util.audit.AuditLogsForInvoicePayments getAuditLogsForInvoicePayments(Java::java.util.List, Java::com.ning.billing.util.api.AuditLevel, Java::com.ning.billing.util.callcontext.TenantContext)'
|
|
93
|
+
def get_audit_logs_for_invoice_payments(invoicePayments, auditLevel, context)
|
|
94
|
+
# conversion for invoicePayments [type = java.util.List]
|
|
95
|
+
tmp = java.util.ArrayList.new
|
|
96
|
+
(invoicePayments || []).each do |m|
|
|
97
|
+
# conversion for m [type = com.ning.billing.invoice.api.InvoicePayment]
|
|
98
|
+
m = m.to_java unless m.nil?
|
|
99
|
+
tmp.add(m)
|
|
100
|
+
end
|
|
101
|
+
invoicePayments = tmp
|
|
102
|
+
# conversion for auditLevel [type = com.ning.billing.util.api.AuditLevel]
|
|
103
|
+
auditLevel = Java::com.ning.billing.util.api.AuditLevel.value_of("#{auditLevel.to_s}") unless auditLevel.nil?
|
|
104
|
+
# conversion for context [type = com.ning.billing.util.callcontext.TenantContext]
|
|
105
|
+
context = context.to_java unless context.nil?
|
|
106
|
+
res = @real_java_api.get_audit_logs_for_invoice_payments(invoicePayments, auditLevel, context)
|
|
107
|
+
# conversion for res [type = com.ning.billing.util.audit.AuditLogsForInvoicePayments]
|
|
108
|
+
res = Killbill::Plugin::Model::AuditLogsForInvoicePayments.new.to_ruby(res) unless res.nil?
|
|
109
|
+
return res
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
java_signature 'Java::com.ning.billing.util.audit.AuditLogsForRefunds getAuditLogsForRefunds(Java::java.util.List, Java::com.ning.billing.util.api.AuditLevel, Java::com.ning.billing.util.callcontext.TenantContext)'
|
|
113
|
+
def get_audit_logs_for_refunds(refunds, auditLevel, context)
|
|
114
|
+
# conversion for refunds [type = java.util.List]
|
|
115
|
+
tmp = java.util.ArrayList.new
|
|
116
|
+
(refunds || []).each do |m|
|
|
117
|
+
# conversion for m [type = com.ning.billing.payment.api.Refund]
|
|
118
|
+
m = m.to_java unless m.nil?
|
|
119
|
+
tmp.add(m)
|
|
120
|
+
end
|
|
121
|
+
refunds = tmp
|
|
122
|
+
# conversion for auditLevel [type = com.ning.billing.util.api.AuditLevel]
|
|
123
|
+
auditLevel = Java::com.ning.billing.util.api.AuditLevel.value_of("#{auditLevel.to_s}") unless auditLevel.nil?
|
|
124
|
+
# conversion for context [type = com.ning.billing.util.callcontext.TenantContext]
|
|
125
|
+
context = context.to_java unless context.nil?
|
|
126
|
+
res = @real_java_api.get_audit_logs_for_refunds(refunds, auditLevel, context)
|
|
127
|
+
# conversion for res [type = com.ning.billing.util.audit.AuditLogsForRefunds]
|
|
128
|
+
res = Killbill::Plugin::Model::AuditLogsForRefunds.new.to_ruby(res) unless res.nil?
|
|
129
|
+
return res
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
java_signature 'Java::com.ning.billing.util.audit.AuditLogsForPayments getAuditLogsForPayments(Java::java.util.List, Java::com.ning.billing.util.api.AuditLevel, Java::com.ning.billing.util.callcontext.TenantContext)'
|
|
133
|
+
def get_audit_logs_for_payments(payments, auditLevel, context)
|
|
134
|
+
# conversion for payments [type = java.util.List]
|
|
135
|
+
tmp = java.util.ArrayList.new
|
|
136
|
+
(payments || []).each do |m|
|
|
137
|
+
# conversion for m [type = com.ning.billing.payment.api.Payment]
|
|
138
|
+
m = m.to_java unless m.nil?
|
|
139
|
+
tmp.add(m)
|
|
140
|
+
end
|
|
141
|
+
payments = tmp
|
|
142
|
+
# conversion for auditLevel [type = com.ning.billing.util.api.AuditLevel]
|
|
143
|
+
auditLevel = Java::com.ning.billing.util.api.AuditLevel.value_of("#{auditLevel.to_s}") unless auditLevel.nil?
|
|
144
|
+
# conversion for context [type = com.ning.billing.util.callcontext.TenantContext]
|
|
145
|
+
context = context.to_java unless context.nil?
|
|
146
|
+
res = @real_java_api.get_audit_logs_for_payments(payments, auditLevel, context)
|
|
147
|
+
# conversion for res [type = com.ning.billing.util.audit.AuditLogsForPayments]
|
|
148
|
+
res = Killbill::Plugin::Model::AuditLogsForPayments.new.to_ruby(res) unless res.nil?
|
|
149
|
+
return res
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
java_signature 'Java::com.ning.billing.util.audit.AuditLogsForInvoices getAuditLogsForInvoices(Java::java.util.List, Java::com.ning.billing.util.api.AuditLevel, Java::com.ning.billing.util.callcontext.TenantContext)'
|
|
153
|
+
def get_audit_logs_for_invoices(invoices, auditLevel, context)
|
|
154
|
+
# conversion for invoices [type = java.util.List]
|
|
155
|
+
tmp = java.util.ArrayList.new
|
|
156
|
+
(invoices || []).each do |m|
|
|
157
|
+
# conversion for m [type = com.ning.billing.invoice.api.Invoice]
|
|
158
|
+
m = m.to_java unless m.nil?
|
|
159
|
+
tmp.add(m)
|
|
160
|
+
end
|
|
161
|
+
invoices = tmp
|
|
162
|
+
# conversion for auditLevel [type = com.ning.billing.util.api.AuditLevel]
|
|
163
|
+
auditLevel = Java::com.ning.billing.util.api.AuditLevel.value_of("#{auditLevel.to_s}") unless auditLevel.nil?
|
|
164
|
+
# conversion for context [type = com.ning.billing.util.callcontext.TenantContext]
|
|
165
|
+
context = context.to_java unless context.nil?
|
|
166
|
+
res = @real_java_api.get_audit_logs_for_invoices(invoices, auditLevel, context)
|
|
167
|
+
# conversion for res [type = com.ning.billing.util.audit.AuditLogsForInvoices]
|
|
168
|
+
res = Killbill::Plugin::Model::AuditLogsForInvoices.new.to_ruby(res) unless res.nil?
|
|
169
|
+
return res
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
java_signature 'Java::java.util.List getAuditLogs(Java::java.util.UUID, Java::com.ning.billing.ObjectType, Java::com.ning.billing.util.api.AuditLevel, Java::com.ning.billing.util.callcontext.TenantContext)'
|
|
173
|
+
def get_audit_logs(objectId, objectType, auditLevel, context)
|
|
174
|
+
# conversion for objectId [type = java.util.UUID]
|
|
175
|
+
objectId = java.util.UUID.fromString(objectId.to_s) unless objectId.nil?
|
|
176
|
+
# conversion for objectType [type = com.ning.billing.ObjectType]
|
|
177
|
+
objectType = Java::com.ning.billing.ObjectType.value_of("#{objectType.to_s}") unless objectType.nil?
|
|
178
|
+
# conversion for auditLevel [type = com.ning.billing.util.api.AuditLevel]
|
|
179
|
+
auditLevel = Java::com.ning.billing.util.api.AuditLevel.value_of("#{auditLevel.to_s}") unless auditLevel.nil?
|
|
180
|
+
# conversion for context [type = com.ning.billing.util.callcontext.TenantContext]
|
|
181
|
+
context = context.to_java unless context.nil?
|
|
182
|
+
res = @real_java_api.get_audit_logs(objectId, objectType, auditLevel, context)
|
|
183
|
+
# conversion for res [type = java.util.List]
|
|
184
|
+
tmp = []
|
|
185
|
+
(res || []).each do |m|
|
|
186
|
+
# conversion for m [type = com.ning.billing.util.audit.AuditLog]
|
|
187
|
+
m = Killbill::Plugin::Model::AuditLog.new.to_ruby(m) unless m.nil?
|
|
188
|
+
tmp << m
|
|
189
|
+
end
|
|
190
|
+
res = tmp
|
|
191
|
+
return res
|
|
192
|
+
end
|
|
193
|
+
end
|
|
194
|
+
end
|
|
195
|
+
end
|
|
196
|
+
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.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
|
|
@@ -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 BillingExceptionBase
|
|
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.BillingExceptionBase.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
|
|
@@ -0,0 +1,91 @@
|
|
|
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.junction.api'
|
|
31
|
+
class Blockable
|
|
32
|
+
|
|
33
|
+
include com.ning.billing.junction.api.Blockable
|
|
34
|
+
|
|
35
|
+
attr_accessor :id, :created_date, :updated_date, :blocking_state
|
|
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 blocking_state [type = com.ning.billing.junction.api.BlockingState]
|
|
57
|
+
@blocking_state = @blocking_state.to_java unless @blocking_state.nil?
|
|
58
|
+
self
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
def to_ruby(j_obj)
|
|
62
|
+
# conversion for id [type = java.util.UUID]
|
|
63
|
+
@id = j_obj.id
|
|
64
|
+
@id = @id.nil? ? nil : @id.to_s
|
|
65
|
+
|
|
66
|
+
# conversion for created_date [type = org.joda.time.DateTime]
|
|
67
|
+
@created_date = j_obj.created_date
|
|
68
|
+
if !@created_date.nil?
|
|
69
|
+
fmt = Java::org.joda.time.format.ISODateTimeFormat.date_time
|
|
70
|
+
str = fmt.print(@created_date)
|
|
71
|
+
@created_date = DateTime.iso8601(str)
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
# conversion for updated_date [type = org.joda.time.DateTime]
|
|
75
|
+
@updated_date = j_obj.updated_date
|
|
76
|
+
if !@updated_date.nil?
|
|
77
|
+
fmt = Java::org.joda.time.format.ISODateTimeFormat.date_time
|
|
78
|
+
str = fmt.print(@updated_date)
|
|
79
|
+
@updated_date = DateTime.iso8601(str)
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
# conversion for blocking_state [type = com.ning.billing.junction.api.BlockingState]
|
|
83
|
+
@blocking_state = j_obj.blocking_state
|
|
84
|
+
@blocking_state = Killbill::Plugin::Model::BlockingState.new.to_ruby(@blocking_state) unless @blocking_state.nil?
|
|
85
|
+
self
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
end
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
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 BlockingApiException
|
|
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.junction.api.BlockingApiException.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
|