killbill 3.1.11 → 3.1.12
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.
- checksums.yaml +4 -4
- data/Jarfile +6 -6
- data/NEWS +6 -0
- data/VERSION +1 -1
- data/generators/active_merchant/templates/Jarfile.rb +7 -7
- data/generators/active_merchant/templates/db/ddl.sql.rb +2 -0
- data/generators/active_merchant/templates/db/schema.rb +2 -0
- data/generators/active_merchant/templates/lib/application.rb +1 -5
- data/generators/active_merchant/templates/lib/models/response.rb +2 -1
- data/generators/active_merchant/templates/lib/plugin.rb +1 -0
- data/generators/active_merchant/templates/lib/private_api.rb +7 -0
- data/generators/active_merchant/templates/plugin.gemspec.rb +3 -2
- data/generators/active_merchant/templates/spec/integration_spec.rb +103 -2
- data/killbill.gemspec +4 -1
- data/lib/killbill/gen/api/dry_run_arguments.rb +100 -0
- data/lib/killbill/gen/api/invoice_user_api.rb +5 -5
- data/lib/killbill/gen/api/killbill_api.rb +19 -18
- data/lib/killbill/gen/api/payment_options.rb +17 -5
- data/lib/killbill/gen/api/require_gen.rb +5 -0
- data/lib/killbill/gen/api/rolled_up_unit.rb +63 -0
- data/lib/killbill/gen/api/rolled_up_usage.rb +31 -35
- data/lib/killbill/gen/api/static_catalog.rb +8 -8
- data/lib/killbill/gen/api/subscription_usage_record.rb +75 -0
- data/lib/killbill/gen/api/unit_usage_record.rb +74 -0
- data/lib/killbill/gen/api/usage_record.rb +66 -0
- data/lib/killbill/gen/api/usage_user_api.rb +22 -56
- data/lib/killbill/gen/plugin-api/currency_plugin_api.rb +19 -18
- data/lib/killbill/gen/plugin-api/ext_bus_event.rb +19 -18
- data/lib/killbill/gen/plugin-api/gateway_notification.rb +19 -18
- data/lib/killbill/gen/plugin-api/hosted_payment_page_form_descriptor.rb +19 -18
- data/lib/killbill/gen/plugin-api/notification_plugin_api.rb +19 -18
- data/lib/killbill/gen/plugin-api/payment_method_info_plugin.rb +19 -18
- data/lib/killbill/gen/plugin-api/payment_plugin_api.rb +19 -18
- data/lib/killbill/gen/plugin-api/payment_plugin_api_exception.rb +19 -18
- data/lib/killbill/gen/plugin-api/payment_transaction_info_plugin.rb +19 -18
- data/lib/killbill/gen/plugin-api/require_gen.rb +19 -18
- data/lib/killbill/helpers/active_merchant/active_record/models/payment_method.rb +4 -0
- data/lib/killbill/helpers/active_merchant/active_record/models/response.rb +65 -34
- data/lib/killbill/helpers/active_merchant/active_record/models/streamy_result_set.rb +14 -2
- data/lib/killbill/helpers/active_merchant/active_record/models/transaction.rb +9 -5
- data/lib/killbill/helpers/active_merchant/killbill_spec_helper.rb +28 -23
- data/lib/killbill/helpers/active_merchant/payment_plugin.rb +66 -36
- data/lib/killbill/helpers/active_merchant/private_payment_plugin.rb +18 -31
- data/lib/killbill/helpers/active_merchant/sinatra.rb +7 -2
- data/lib/killbill/helpers/active_merchant/utils.rb +12 -0
- data/spec/killbill/helpers/killbill_spec_helper_spec.rb +24 -0
- data/spec/killbill/helpers/payment_method_spec.rb +5 -0
- data/spec/killbill/helpers/payment_plugin_spec.rb +33 -2
- data/spec/killbill/helpers/private_payment_plugin_spec.rb +83 -0
- data/spec/killbill/helpers/response_spec.rb +47 -24
- data/spec/killbill/helpers/streamy_result_set_spec.rb +38 -0
- data/spec/killbill/helpers/test_schema.rb +2 -0
- metadata +57 -8
- data/lib/killbill/gen/api/payment_attempt.rb +0 -117
- data/lib/killbill/gen/api/payment_method_kv_info.rb +0 -71
- data/lib/killbill/gen/plugin-api/billing_address.rb +0 -85
- data/lib/killbill/gen/plugin-api/customer.rb +0 -73
@@ -32,6 +32,7 @@ ActiveRecord::Schema.define(:version => 20140410153635) do
|
|
32
32
|
t.string "kb_payment_id", :null => false
|
33
33
|
t.string "kb_payment_transaction_id", :null => false
|
34
34
|
t.string "transaction_type", :null => false
|
35
|
+
t.string "payment_processor_account_id"
|
35
36
|
t.string "txn_id"
|
36
37
|
t.integer "amount_in_cents"
|
37
38
|
t.string "currency"
|
@@ -48,6 +49,7 @@ ActiveRecord::Schema.define(:version => 20140410153635) do
|
|
48
49
|
t.string "kb_payment_id"
|
49
50
|
t.string "kb_payment_transaction_id"
|
50
51
|
t.string "transaction_type"
|
52
|
+
t.string "payment_processor_account_id"
|
51
53
|
t.string "message"
|
52
54
|
t.string "authorization"
|
53
55
|
t.boolean "fraud_review"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: killbill
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kill Bill core team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-10-
|
11
|
+
date: 2014-10-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sinatra
|
@@ -94,18 +94,60 @@ dependencies:
|
|
94
94
|
version: 1.3.7
|
95
95
|
prerelease: false
|
96
96
|
type: :development
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: actionpack
|
99
|
+
version_requirements: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ~>
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 4.1.0
|
104
|
+
requirement: !ruby/object:Gem::Requirement
|
105
|
+
requirements:
|
106
|
+
- - ~>
|
107
|
+
- !ruby/object:Gem::Version
|
108
|
+
version: 4.1.0
|
109
|
+
prerelease: false
|
110
|
+
type: :development
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: actionview
|
113
|
+
version_requirements: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ~>
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 4.1.0
|
118
|
+
requirement: !ruby/object:Gem::Requirement
|
119
|
+
requirements:
|
120
|
+
- - ~>
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
version: 4.1.0
|
123
|
+
prerelease: false
|
124
|
+
type: :development
|
97
125
|
- !ruby/object:Gem::Dependency
|
98
126
|
name: activemerchant
|
99
127
|
version_requirements: !ruby/object:Gem::Requirement
|
100
128
|
requirements:
|
101
129
|
- - ~>
|
102
130
|
- !ruby/object:Gem::Version
|
103
|
-
version: 1.
|
131
|
+
version: 1.44.1
|
132
|
+
requirement: !ruby/object:Gem::Requirement
|
133
|
+
requirements:
|
134
|
+
- - ~>
|
135
|
+
- !ruby/object:Gem::Version
|
136
|
+
version: 1.44.1
|
137
|
+
prerelease: false
|
138
|
+
type: :development
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: offsite_payments
|
141
|
+
version_requirements: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ~>
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: 2.0.1
|
104
146
|
requirement: !ruby/object:Gem::Requirement
|
105
147
|
requirements:
|
106
148
|
- - ~>
|
107
149
|
- !ruby/object:Gem::Version
|
108
|
-
version:
|
150
|
+
version: 2.0.1
|
109
151
|
prerelease: false
|
110
152
|
type: :development
|
111
153
|
- !ruby/object:Gem::Dependency
|
@@ -286,6 +328,7 @@ files:
|
|
286
328
|
- lib/killbill/gen/api/custom_field_api_exception.rb
|
287
329
|
- lib/killbill/gen/api/custom_field_user_api.rb
|
288
330
|
- lib/killbill/gen/api/database_export_output_stream.rb
|
331
|
+
- lib/killbill/gen/api/dry_run_arguments.rb
|
289
332
|
- lib/killbill/gen/api/duration.rb
|
290
333
|
- lib/killbill/gen/api/entitlement.rb
|
291
334
|
- lib/killbill/gen/api/entitlement_ao_status_dry_run.rb
|
@@ -317,10 +360,8 @@ files:
|
|
317
360
|
- lib/killbill/gen/api/payment.rb
|
318
361
|
- lib/killbill/gen/api/payment_api.rb
|
319
362
|
- lib/killbill/gen/api/payment_api_exception.rb
|
320
|
-
- lib/killbill/gen/api/payment_attempt.rb
|
321
363
|
- lib/killbill/gen/api/payment_gateway_api.rb
|
322
364
|
- lib/killbill/gen/api/payment_method.rb
|
323
|
-
- lib/killbill/gen/api/payment_method_kv_info.rb
|
324
365
|
- lib/killbill/gen/api/payment_method_plugin.rb
|
325
366
|
- lib/killbill/gen/api/payment_options.rb
|
326
367
|
- lib/killbill/gen/api/payment_transaction.rb
|
@@ -340,6 +381,7 @@ files:
|
|
340
381
|
- lib/killbill/gen/api/recurring.rb
|
341
382
|
- lib/killbill/gen/api/refund.rb
|
342
383
|
- lib/killbill/gen/api/require_gen.rb
|
384
|
+
- lib/killbill/gen/api/rolled_up_unit.rb
|
343
385
|
- lib/killbill/gen/api/rolled_up_usage.rb
|
344
386
|
- lib/killbill/gen/api/security_api_exception.rb
|
345
387
|
- lib/killbill/gen/api/static_catalog.rb
|
@@ -349,6 +391,7 @@ files:
|
|
349
391
|
- lib/killbill/gen/api/subscription_bundle.rb
|
350
392
|
- lib/killbill/gen/api/subscription_bundle_timeline.rb
|
351
393
|
- lib/killbill/gen/api/subscription_event.rb
|
394
|
+
- lib/killbill/gen/api/subscription_usage_record.rb
|
352
395
|
- lib/killbill/gen/api/tag.rb
|
353
396
|
- lib/killbill/gen/api/tag_api_exception.rb
|
354
397
|
- lib/killbill/gen/api/tag_definition.rb
|
@@ -363,11 +406,11 @@ files:
|
|
363
406
|
- lib/killbill/gen/api/tier.rb
|
364
407
|
- lib/killbill/gen/api/tiered_block.rb
|
365
408
|
- lib/killbill/gen/api/unit.rb
|
409
|
+
- lib/killbill/gen/api/unit_usage_record.rb
|
366
410
|
- lib/killbill/gen/api/usage.rb
|
411
|
+
- lib/killbill/gen/api/usage_record.rb
|
367
412
|
- lib/killbill/gen/api/usage_user_api.rb
|
368
|
-
- lib/killbill/gen/plugin-api/billing_address.rb
|
369
413
|
- lib/killbill/gen/plugin-api/currency_plugin_api.rb
|
370
|
-
- lib/killbill/gen/plugin-api/customer.rb
|
371
414
|
- lib/killbill/gen/plugin-api/ext_bus_event.rb
|
372
415
|
- lib/killbill/gen/plugin-api/gateway_notification.rb
|
373
416
|
- lib/killbill/gen/plugin-api/hosted_payment_page_form_descriptor.rb
|
@@ -408,9 +451,12 @@ files:
|
|
408
451
|
- spec/killbill/gen_conversions_spec.rb
|
409
452
|
- spec/killbill/helpers/configuration_spec.rb
|
410
453
|
- spec/killbill/helpers/connection_spec.rb
|
454
|
+
- spec/killbill/helpers/killbill_spec_helper_spec.rb
|
411
455
|
- spec/killbill/helpers/payment_method_spec.rb
|
412
456
|
- spec/killbill/helpers/payment_plugin_spec.rb
|
457
|
+
- spec/killbill/helpers/private_payment_plugin_spec.rb
|
413
458
|
- spec/killbill/helpers/response_spec.rb
|
459
|
+
- spec/killbill/helpers/streamy_result_set_spec.rb
|
414
460
|
- spec/killbill/helpers/test_schema.rb
|
415
461
|
- spec/killbill/helpers/transaction_spec.rb
|
416
462
|
- spec/killbill/helpers/utils_spec.rb
|
@@ -460,9 +506,12 @@ test_files:
|
|
460
506
|
- spec/killbill/gen_conversions_spec.rb
|
461
507
|
- spec/killbill/helpers/configuration_spec.rb
|
462
508
|
- spec/killbill/helpers/connection_spec.rb
|
509
|
+
- spec/killbill/helpers/killbill_spec_helper_spec.rb
|
463
510
|
- spec/killbill/helpers/payment_method_spec.rb
|
464
511
|
- spec/killbill/helpers/payment_plugin_spec.rb
|
512
|
+
- spec/killbill/helpers/private_payment_plugin_spec.rb
|
465
513
|
- spec/killbill/helpers/response_spec.rb
|
514
|
+
- spec/killbill/helpers/streamy_result_set_spec.rb
|
466
515
|
- spec/killbill/helpers/test_schema.rb
|
467
516
|
- spec/killbill/helpers/transaction_spec.rb
|
468
517
|
- spec/killbill/helpers/utils_spec.rb
|
@@ -1,117 +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 'org.killbill.billing.payment.api'
|
31
|
-
class PaymentAttempt
|
32
|
-
|
33
|
-
include org.killbill.billing.payment.api.PaymentAttempt
|
34
|
-
|
35
|
-
attr_accessor :id, :created_date, :updated_date, :effective_date, :gateway_error_code, :gateway_error_msg, :payment_status
|
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 effective_date [type = org.joda.time.DateTime]
|
57
|
-
if !@effective_date.nil?
|
58
|
-
@effective_date = (@effective_date.kind_of? Time) ? DateTime.parse(@effective_date.to_s) : @effective_date
|
59
|
-
@effective_date = Java::org.joda.time.DateTime.new(@effective_date.to_s, Java::org.joda.time.DateTimeZone::UTC)
|
60
|
-
end
|
61
|
-
|
62
|
-
# conversion for gateway_error_code [type = java.lang.String]
|
63
|
-
@gateway_error_code = @gateway_error_code.to_s unless @gateway_error_code.nil?
|
64
|
-
|
65
|
-
# conversion for gateway_error_msg [type = java.lang.String]
|
66
|
-
@gateway_error_msg = @gateway_error_msg.to_s unless @gateway_error_msg.nil?
|
67
|
-
|
68
|
-
# conversion for payment_status [type = org.killbill.billing.payment.api.PaymentStatus]
|
69
|
-
@payment_status = Java::org.killbill.billing.payment.api.PaymentStatus.value_of("#{@payment_status.to_s}") unless @payment_status.nil?
|
70
|
-
self
|
71
|
-
end
|
72
|
-
|
73
|
-
def to_ruby(j_obj)
|
74
|
-
# conversion for id [type = java.util.UUID]
|
75
|
-
@id = j_obj.id
|
76
|
-
@id = @id.nil? ? nil : @id.to_s
|
77
|
-
|
78
|
-
# conversion for created_date [type = org.joda.time.DateTime]
|
79
|
-
@created_date = j_obj.created_date
|
80
|
-
if !@created_date.nil?
|
81
|
-
fmt = Java::org.joda.time.format.ISODateTimeFormat.date_time_no_millis # See https://github.com/killbill/killbill-java-parser/issues/3
|
82
|
-
str = fmt.print(@created_date)
|
83
|
-
@created_date = DateTime.iso8601(str)
|
84
|
-
end
|
85
|
-
|
86
|
-
# conversion for updated_date [type = org.joda.time.DateTime]
|
87
|
-
@updated_date = j_obj.updated_date
|
88
|
-
if !@updated_date.nil?
|
89
|
-
fmt = Java::org.joda.time.format.ISODateTimeFormat.date_time_no_millis # See https://github.com/killbill/killbill-java-parser/issues/3
|
90
|
-
str = fmt.print(@updated_date)
|
91
|
-
@updated_date = DateTime.iso8601(str)
|
92
|
-
end
|
93
|
-
|
94
|
-
# conversion for effective_date [type = org.joda.time.DateTime]
|
95
|
-
@effective_date = j_obj.effective_date
|
96
|
-
if !@effective_date.nil?
|
97
|
-
fmt = Java::org.joda.time.format.ISODateTimeFormat.date_time_no_millis # See https://github.com/killbill/killbill-java-parser/issues/3
|
98
|
-
str = fmt.print(@effective_date)
|
99
|
-
@effective_date = DateTime.iso8601(str)
|
100
|
-
end
|
101
|
-
|
102
|
-
# conversion for gateway_error_code [type = java.lang.String]
|
103
|
-
@gateway_error_code = j_obj.gateway_error_code
|
104
|
-
|
105
|
-
# conversion for gateway_error_msg [type = java.lang.String]
|
106
|
-
@gateway_error_msg = j_obj.gateway_error_msg
|
107
|
-
|
108
|
-
# conversion for payment_status [type = org.killbill.billing.payment.api.PaymentStatus]
|
109
|
-
@payment_status = j_obj.payment_status
|
110
|
-
@payment_status = @payment_status.to_s.to_sym unless @payment_status.nil?
|
111
|
-
self
|
112
|
-
end
|
113
|
-
|
114
|
-
end
|
115
|
-
end
|
116
|
-
end
|
117
|
-
end
|
@@ -1,71 +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 PaymentMethodKVInfo
|
31
|
-
|
32
|
-
|
33
|
-
attr_accessor :key, :value, :is_updatable
|
34
|
-
|
35
|
-
def initialize()
|
36
|
-
end
|
37
|
-
|
38
|
-
def to_java()
|
39
|
-
# conversion for key [type = java.lang.String]
|
40
|
-
@key = @key.to_s unless @key.nil?
|
41
|
-
|
42
|
-
# conversion for value [type = java.lang.Object]
|
43
|
-
@value = @value.to_s unless @value.nil?
|
44
|
-
|
45
|
-
# conversion for is_updatable [type = java.lang.Boolean]
|
46
|
-
@is_updatable = @is_updatable.nil? ? java.lang.Boolean.new(false) : java.lang.Boolean.new(@is_updatable)
|
47
|
-
Java::org.killbill.billing.payment.api.PaymentMethodKVInfo.new(@key, @value, @is_updatable)
|
48
|
-
end
|
49
|
-
|
50
|
-
def to_ruby(j_obj)
|
51
|
-
# conversion for key [type = java.lang.String]
|
52
|
-
@key = j_obj.key
|
53
|
-
|
54
|
-
# conversion for value [type = java.lang.Object]
|
55
|
-
@value = j_obj.value
|
56
|
-
|
57
|
-
# conversion for is_updatable [type = java.lang.Boolean]
|
58
|
-
@is_updatable = j_obj.is_updatable
|
59
|
-
if @is_updatable.nil?
|
60
|
-
@is_updatable = false
|
61
|
-
else
|
62
|
-
tmp_bool = (@is_updatable.java_kind_of? java.lang.Boolean) ? @is_updatable.boolean_value : @is_updatable
|
63
|
-
@is_updatable = tmp_bool ? true : false
|
64
|
-
end
|
65
|
-
self
|
66
|
-
end
|
67
|
-
|
68
|
-
end
|
69
|
-
end
|
70
|
-
end
|
71
|
-
end
|
@@ -1,85 +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 'org.killbill.billing.payment.plugin.api'
|
31
|
-
class BillingAddress
|
32
|
-
|
33
|
-
include org.killbill.billing.payment.plugin.api.BillingAddress
|
34
|
-
|
35
|
-
attr_accessor :city, :address1, :address2, :state, :zip, :country
|
36
|
-
|
37
|
-
def initialize()
|
38
|
-
end
|
39
|
-
|
40
|
-
def to_java()
|
41
|
-
# conversion for city [type = java.lang.String]
|
42
|
-
@city = @city.to_s unless @city.nil?
|
43
|
-
|
44
|
-
# conversion for address1 [type = java.lang.String]
|
45
|
-
@address1 = @address1.to_s unless @address1.nil?
|
46
|
-
|
47
|
-
# conversion for address2 [type = java.lang.String]
|
48
|
-
@address2 = @address2.to_s unless @address2.nil?
|
49
|
-
|
50
|
-
# conversion for state [type = java.lang.String]
|
51
|
-
@state = @state.to_s unless @state.nil?
|
52
|
-
|
53
|
-
# conversion for zip [type = java.lang.String]
|
54
|
-
@zip = @zip.to_s unless @zip.nil?
|
55
|
-
|
56
|
-
# conversion for country [type = java.lang.String]
|
57
|
-
@country = @country.to_s unless @country.nil?
|
58
|
-
self
|
59
|
-
end
|
60
|
-
|
61
|
-
def to_ruby(j_obj)
|
62
|
-
# conversion for city [type = java.lang.String]
|
63
|
-
@city = j_obj.city
|
64
|
-
|
65
|
-
# conversion for address1 [type = java.lang.String]
|
66
|
-
@address1 = j_obj.address1
|
67
|
-
|
68
|
-
# conversion for address2 [type = java.lang.String]
|
69
|
-
@address2 = j_obj.address2
|
70
|
-
|
71
|
-
# conversion for state [type = java.lang.String]
|
72
|
-
@state = j_obj.state
|
73
|
-
|
74
|
-
# conversion for zip [type = java.lang.String]
|
75
|
-
@zip = j_obj.zip
|
76
|
-
|
77
|
-
# conversion for country [type = java.lang.String]
|
78
|
-
@country = j_obj.country
|
79
|
-
self
|
80
|
-
end
|
81
|
-
|
82
|
-
end
|
83
|
-
end
|
84
|
-
end
|
85
|
-
end
|
@@ -1,73 +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 'org.killbill.billing.payment.plugin.api'
|
31
|
-
class Customer
|
32
|
-
|
33
|
-
include org.killbill.billing.payment.plugin.api.Customer
|
34
|
-
|
35
|
-
attr_accessor :first_name, :last_name, :email, :phone
|
36
|
-
|
37
|
-
def initialize()
|
38
|
-
end
|
39
|
-
|
40
|
-
def to_java()
|
41
|
-
# conversion for first_name [type = java.lang.String]
|
42
|
-
@first_name = @first_name.to_s unless @first_name.nil?
|
43
|
-
|
44
|
-
# conversion for last_name [type = java.lang.String]
|
45
|
-
@last_name = @last_name.to_s unless @last_name.nil?
|
46
|
-
|
47
|
-
# conversion for email [type = java.lang.String]
|
48
|
-
@email = @email.to_s unless @email.nil?
|
49
|
-
|
50
|
-
# conversion for phone [type = java.lang.String]
|
51
|
-
@phone = @phone.to_s unless @phone.nil?
|
52
|
-
self
|
53
|
-
end
|
54
|
-
|
55
|
-
def to_ruby(j_obj)
|
56
|
-
# conversion for first_name [type = java.lang.String]
|
57
|
-
@first_name = j_obj.first_name
|
58
|
-
|
59
|
-
# conversion for last_name [type = java.lang.String]
|
60
|
-
@last_name = j_obj.last_name
|
61
|
-
|
62
|
-
# conversion for email [type = java.lang.String]
|
63
|
-
@email = j_obj.email
|
64
|
-
|
65
|
-
# conversion for phone [type = java.lang.String]
|
66
|
-
@phone = j_obj.phone
|
67
|
-
self
|
68
|
-
end
|
69
|
-
|
70
|
-
end
|
71
|
-
end
|
72
|
-
end
|
73
|
-
end
|