killbill 1.9.0 → 2.0.0
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 +5 -5
- data/NEWS +3 -0
- data/VERSION +1 -1
- data/lib/killbill/gen/api/custom_field_user_api.rb +54 -0
- data/lib/killbill/gen/api/payment_api.rb +88 -0
- data/lib/killbill/gen/api/refund.rb +6 -6
- data/lib/killbill/gen/api/subscription_api.rb +14 -0
- data/lib/killbill/gen/api/tag_user_api.rb +37 -0
- data/lib/killbill/gen/plugin-api/payment_plugin_api.rb +28 -0
- data/lib/killbill/gen/plugin-api/refund_info_plugin.rb +18 -5
- metadata +31 -31
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 02dfd4e9ab24cdf22535782dc21a48b1622d4f2e
|
4
|
+
data.tar.gz: a62fce09f47ec9db2d49833466d13653495eeed4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da626bab727e9fe7e95fc95a3807789654fca24fafa306798e890385c8ace98b20372788aede8581e3a9da26fa4f654176be56783cf09d6eb95b5e8036781575
|
7
|
+
data.tar.gz: 911e769e59c60972557ee73495ea6eedbe2bec87e821c09bbac6a0f007a11f029dfe7f2ef6aeb06dadb36e05c55c04143f85bba5c889049cb016cd01b83171a7
|
data/Jarfile
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
jar 'com.ning.billing:killbill-api', '0.
|
2
|
-
jar 'com.ning.billing.plugin:killbill-plugin-api-notification', '0.6.
|
3
|
-
jar 'com.ning.billing.plugin:killbill-plugin-api-payment', '0.6.
|
4
|
-
jar 'com.ning.billing.plugin:killbill-plugin-api-currency', '0.6.
|
5
|
-
jar 'com.ning.billing:killbill-util:tests', '0.
|
1
|
+
jar 'com.ning.billing:killbill-api', '0.8.0'
|
2
|
+
jar 'com.ning.billing.plugin:killbill-plugin-api-notification', '0.6.3'
|
3
|
+
jar 'com.ning.billing.plugin:killbill-plugin-api-payment', '0.6.3'
|
4
|
+
jar 'com.ning.billing.plugin:killbill-plugin-api-currency', '0.6.3'
|
5
|
+
jar 'com.ning.billing:killbill-util:tests', '0.8.8'
|
6
6
|
jar 'javax.servlet:javax.servlet-api', '3.0.1'
|
data/NEWS
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
2.0.0
|
@@ -37,6 +37,43 @@ module Killbill
|
|
37
37
|
end
|
38
38
|
|
39
39
|
|
40
|
+
java_signature 'Java::com.ning.billing.util.entity.Pagination searchCustomFields(Java::java.lang.String, Java::java.lang.Long, Java::java.lang.Long, Java::com.ning.billing.util.callcontext.TenantContext)'
|
41
|
+
def search_custom_fields(searchKey, offset, limit, context)
|
42
|
+
|
43
|
+
# conversion for searchKey [type = java.lang.String]
|
44
|
+
searchKey = searchKey.to_s unless searchKey.nil?
|
45
|
+
|
46
|
+
# conversion for offset [type = java.lang.Long]
|
47
|
+
offset = offset
|
48
|
+
|
49
|
+
# conversion for limit [type = java.lang.Long]
|
50
|
+
limit = limit
|
51
|
+
|
52
|
+
# conversion for context [type = com.ning.billing.util.callcontext.TenantContext]
|
53
|
+
context = context.to_java unless context.nil?
|
54
|
+
res = @real_java_api.search_custom_fields(searchKey, offset, limit, context)
|
55
|
+
# conversion for res [type = com.ning.billing.util.entity.Pagination]
|
56
|
+
res = Killbill::Plugin::Model::Pagination.new.to_ruby(res) unless res.nil?
|
57
|
+
return res
|
58
|
+
end
|
59
|
+
|
60
|
+
java_signature 'Java::com.ning.billing.util.entity.Pagination getCustomFields(Java::java.lang.Long, Java::java.lang.Long, Java::com.ning.billing.util.callcontext.TenantContext)'
|
61
|
+
def get_custom_fields(offset, limit, context)
|
62
|
+
|
63
|
+
# conversion for offset [type = java.lang.Long]
|
64
|
+
offset = offset
|
65
|
+
|
66
|
+
# conversion for limit [type = java.lang.Long]
|
67
|
+
limit = limit
|
68
|
+
|
69
|
+
# conversion for context [type = com.ning.billing.util.callcontext.TenantContext]
|
70
|
+
context = context.to_java unless context.nil?
|
71
|
+
res = @real_java_api.get_custom_fields(offset, limit, context)
|
72
|
+
# conversion for res [type = com.ning.billing.util.entity.Pagination]
|
73
|
+
res = Killbill::Plugin::Model::Pagination.new.to_ruby(res) unless res.nil?
|
74
|
+
return res
|
75
|
+
end
|
76
|
+
|
40
77
|
java_signature 'Java::void addCustomFields(Java::java.util.List, Java::com.ning.billing.util.callcontext.CallContext)'
|
41
78
|
def add_custom_fields(fields, context)
|
42
79
|
|
@@ -54,6 +91,23 @@ module Killbill
|
|
54
91
|
@real_java_api.add_custom_fields(fields, context)
|
55
92
|
end
|
56
93
|
|
94
|
+
java_signature 'Java::void removeCustomFields(Java::java.util.List, Java::com.ning.billing.util.callcontext.CallContext)'
|
95
|
+
def remove_custom_fields(fields, context)
|
96
|
+
|
97
|
+
# conversion for fields [type = java.util.List]
|
98
|
+
tmp = java.util.ArrayList.new
|
99
|
+
(fields || []).each do |m|
|
100
|
+
# conversion for m [type = com.ning.billing.util.customfield.CustomField]
|
101
|
+
m = m.to_java unless m.nil?
|
102
|
+
tmp.add(m)
|
103
|
+
end
|
104
|
+
fields = tmp
|
105
|
+
|
106
|
+
# conversion for context [type = com.ning.billing.util.callcontext.CallContext]
|
107
|
+
context = context.to_java unless context.nil?
|
108
|
+
@real_java_api.remove_custom_fields(fields, context)
|
109
|
+
end
|
110
|
+
|
57
111
|
java_signature 'Java::java.util.List getCustomFieldsForObject(Java::java.util.UUID, Java::com.ning.billing.ObjectType, Java::com.ning.billing.util.callcontext.TenantContext)'
|
58
112
|
def get_custom_fields_for_object(objectId, objectType, context)
|
59
113
|
|
@@ -93,6 +93,23 @@ module Killbill
|
|
93
93
|
end
|
94
94
|
end
|
95
95
|
|
96
|
+
java_signature 'Java::void notifyPendingPaymentOfStateChanged(Java::com.ning.billing.account.api.Account, Java::java.util.UUID, Java::boolean, Java::com.ning.billing.util.callcontext.CallContext)'
|
97
|
+
def notify_pending_payment_of_state_changed(account, paymentId, isSuccess, context)
|
98
|
+
|
99
|
+
# conversion for account [type = com.ning.billing.account.api.Account]
|
100
|
+
account = account.to_java unless account.nil?
|
101
|
+
|
102
|
+
# conversion for paymentId [type = java.util.UUID]
|
103
|
+
paymentId = java.util.UUID.fromString(paymentId.to_s) unless paymentId.nil?
|
104
|
+
|
105
|
+
# conversion for isSuccess [type = boolean]
|
106
|
+
isSuccess = isSuccess.nil? ? java.lang.Boolean.new(false) : java.lang.Boolean.new(isSuccess)
|
107
|
+
|
108
|
+
# conversion for context [type = com.ning.billing.util.callcontext.CallContext]
|
109
|
+
context = context.to_java unless context.nil?
|
110
|
+
@real_java_api.notify_pending_payment_of_state_changed(account, paymentId, isSuccess, context)
|
111
|
+
end
|
112
|
+
|
96
113
|
java_signature 'Java::com.ning.billing.payment.api.Payment retryPayment(Java::com.ning.billing.account.api.Account, Java::java.util.UUID, Java::com.ning.billing.util.callcontext.CallContext)'
|
97
114
|
def retry_payment(account, paymentId, context)
|
98
115
|
|
@@ -142,6 +159,23 @@ module Killbill
|
|
142
159
|
end
|
143
160
|
end
|
144
161
|
|
162
|
+
java_signature 'Java::void notifyPendingRefundOfStateChanged(Java::com.ning.billing.account.api.Account, Java::java.util.UUID, Java::boolean, Java::com.ning.billing.util.callcontext.CallContext)'
|
163
|
+
def notify_pending_refund_of_state_changed(account, paymentId, isSuccess, context)
|
164
|
+
|
165
|
+
# conversion for account [type = com.ning.billing.account.api.Account]
|
166
|
+
account = account.to_java unless account.nil?
|
167
|
+
|
168
|
+
# conversion for paymentId [type = java.util.UUID]
|
169
|
+
paymentId = java.util.UUID.fromString(paymentId.to_s) unless paymentId.nil?
|
170
|
+
|
171
|
+
# conversion for isSuccess [type = boolean]
|
172
|
+
isSuccess = isSuccess.nil? ? java.lang.Boolean.new(false) : java.lang.Boolean.new(isSuccess)
|
173
|
+
|
174
|
+
# conversion for context [type = com.ning.billing.util.callcontext.CallContext]
|
175
|
+
context = context.to_java unless context.nil?
|
176
|
+
@real_java_api.notify_pending_refund_of_state_changed(account, paymentId, isSuccess, context)
|
177
|
+
end
|
178
|
+
|
145
179
|
java_signature 'Java::com.ning.billing.payment.api.Refund getRefund(Java::java.util.UUID, Java::boolean, Java::com.ning.billing.util.callcontext.TenantContext)'
|
146
180
|
def get_refund(refundId, withPluginInfo, context)
|
147
181
|
|
@@ -338,6 +372,23 @@ module Killbill
|
|
338
372
|
end
|
339
373
|
end
|
340
374
|
|
375
|
+
java_signature 'Java::com.ning.billing.util.entity.Pagination getPayments(Java::java.lang.Long, Java::java.lang.Long, Java::com.ning.billing.util.callcontext.TenantContext)'
|
376
|
+
def get_payments(offset, limit, context)
|
377
|
+
|
378
|
+
# conversion for offset [type = java.lang.Long]
|
379
|
+
offset = offset
|
380
|
+
|
381
|
+
# conversion for limit [type = java.lang.Long]
|
382
|
+
limit = limit
|
383
|
+
|
384
|
+
# conversion for context [type = com.ning.billing.util.callcontext.TenantContext]
|
385
|
+
context = context.to_java unless context.nil?
|
386
|
+
res = @real_java_api.get_payments(offset, limit, context)
|
387
|
+
# conversion for res [type = com.ning.billing.util.entity.Pagination]
|
388
|
+
res = Killbill::Plugin::Model::Pagination.new.to_ruby(res) unless res.nil?
|
389
|
+
return res
|
390
|
+
end
|
391
|
+
|
341
392
|
java_signature 'Java::com.ning.billing.util.entity.Pagination searchPayments(Java::java.lang.String, Java::java.lang.Long, Java::java.lang.Long, Java::com.ning.billing.util.callcontext.TenantContext)'
|
342
393
|
def search_payments(searchKey, offset, limit, context)
|
343
394
|
|
@@ -358,6 +409,43 @@ module Killbill
|
|
358
409
|
return res
|
359
410
|
end
|
360
411
|
|
412
|
+
java_signature 'Java::com.ning.billing.util.entity.Pagination getRefunds(Java::java.lang.Long, Java::java.lang.Long, Java::com.ning.billing.util.callcontext.TenantContext)'
|
413
|
+
def get_refunds(offset, limit, context)
|
414
|
+
|
415
|
+
# conversion for offset [type = java.lang.Long]
|
416
|
+
offset = offset
|
417
|
+
|
418
|
+
# conversion for limit [type = java.lang.Long]
|
419
|
+
limit = limit
|
420
|
+
|
421
|
+
# conversion for context [type = com.ning.billing.util.callcontext.TenantContext]
|
422
|
+
context = context.to_java unless context.nil?
|
423
|
+
res = @real_java_api.get_refunds(offset, limit, context)
|
424
|
+
# conversion for res [type = com.ning.billing.util.entity.Pagination]
|
425
|
+
res = Killbill::Plugin::Model::Pagination.new.to_ruby(res) unless res.nil?
|
426
|
+
return res
|
427
|
+
end
|
428
|
+
|
429
|
+
java_signature 'Java::com.ning.billing.util.entity.Pagination searchRefunds(Java::java.lang.String, Java::java.lang.Long, Java::java.lang.Long, Java::com.ning.billing.util.callcontext.TenantContext)'
|
430
|
+
def search_refunds(searchKey, offset, limit, context)
|
431
|
+
|
432
|
+
# conversion for searchKey [type = java.lang.String]
|
433
|
+
searchKey = searchKey.to_s unless searchKey.nil?
|
434
|
+
|
435
|
+
# conversion for offset [type = java.lang.Long]
|
436
|
+
offset = offset
|
437
|
+
|
438
|
+
# conversion for limit [type = java.lang.Long]
|
439
|
+
limit = limit
|
440
|
+
|
441
|
+
# conversion for context [type = com.ning.billing.util.callcontext.TenantContext]
|
442
|
+
context = context.to_java unless context.nil?
|
443
|
+
res = @real_java_api.search_refunds(searchKey, offset, limit, context)
|
444
|
+
# conversion for res [type = com.ning.billing.util.entity.Pagination]
|
445
|
+
res = Killbill::Plugin::Model::Pagination.new.to_ruby(res) unless res.nil?
|
446
|
+
return res
|
447
|
+
end
|
448
|
+
|
361
449
|
java_signature 'Java::java.util.Set getAvailablePlugins()'
|
362
450
|
def get_available_plugins()
|
363
451
|
res = @real_java_api.get_available_plugins()
|
@@ -32,7 +32,7 @@ module Killbill
|
|
32
32
|
|
33
33
|
include com.ning.billing.payment.api.Refund
|
34
34
|
|
35
|
-
attr_accessor :id, :created_date, :updated_date, :payment_id, :is_adjusted, :refund_amount, :currency, :effective_date, :refund_status, :
|
35
|
+
attr_accessor :id, :created_date, :updated_date, :payment_id, :is_adjusted, :refund_amount, :currency, :effective_date, :refund_status, :refund_info_plugin
|
36
36
|
|
37
37
|
def initialize()
|
38
38
|
end
|
@@ -78,8 +78,8 @@ module Killbill
|
|
78
78
|
# conversion for refund_status [type = com.ning.billing.payment.api.RefundStatus]
|
79
79
|
@refund_status = Java::com.ning.billing.payment.api.RefundStatus.value_of("#{@refund_status.to_s}") unless @refund_status.nil?
|
80
80
|
|
81
|
-
# conversion for
|
82
|
-
@
|
81
|
+
# conversion for refund_info_plugin [type = com.ning.billing.payment.plugin.api.RefundInfoPlugin]
|
82
|
+
@refund_info_plugin = @refund_info_plugin.to_java unless @refund_info_plugin.nil?
|
83
83
|
self
|
84
84
|
end
|
85
85
|
|
@@ -137,9 +137,9 @@ module Killbill
|
|
137
137
|
@refund_status = j_obj.refund_status
|
138
138
|
@refund_status = @refund_status.to_s.to_sym unless @refund_status.nil?
|
139
139
|
|
140
|
-
# conversion for
|
141
|
-
@
|
142
|
-
@
|
140
|
+
# conversion for refund_info_plugin [type = com.ning.billing.payment.plugin.api.RefundInfoPlugin]
|
141
|
+
@refund_info_plugin = j_obj.refund_info_plugin
|
142
|
+
@refund_info_plugin = Killbill::Plugin::Model::RefundInfoPlugin.new.to_ruby(@refund_info_plugin) unless @refund_info_plugin.nil?
|
143
143
|
self
|
144
144
|
end
|
145
145
|
|
@@ -73,6 +73,20 @@ module Killbill
|
|
73
73
|
end
|
74
74
|
end
|
75
75
|
|
76
|
+
java_signature 'Java::void updateExternalKey(Java::java.util.UUID, Java::java.lang.String, Java::com.ning.billing.util.callcontext.CallContext)'
|
77
|
+
def update_external_key(bundleId, newExternalKey, context)
|
78
|
+
|
79
|
+
# conversion for bundleId [type = java.util.UUID]
|
80
|
+
bundleId = java.util.UUID.fromString(bundleId.to_s) unless bundleId.nil?
|
81
|
+
|
82
|
+
# conversion for newExternalKey [type = java.lang.String]
|
83
|
+
newExternalKey = newExternalKey.to_s unless newExternalKey.nil?
|
84
|
+
|
85
|
+
# conversion for context [type = com.ning.billing.util.callcontext.CallContext]
|
86
|
+
context = context.to_java unless context.nil?
|
87
|
+
@real_java_api.update_external_key(bundleId, newExternalKey, context)
|
88
|
+
end
|
89
|
+
|
76
90
|
java_signature 'Java::java.util.List getSubscriptionBundlesForAccountIdAndExternalKey(Java::java.util.UUID, Java::java.lang.String, Java::com.ning.billing.util.callcontext.TenantContext)'
|
77
91
|
def get_subscription_bundles_for_account_id_and_external_key(accountId, externalKey, context)
|
78
92
|
|
@@ -202,6 +202,43 @@ module Killbill
|
|
202
202
|
@real_java_api.remove_tag(objectId, objectType, tagDefinitionId, context)
|
203
203
|
end
|
204
204
|
|
205
|
+
java_signature 'Java::com.ning.billing.util.entity.Pagination searchTags(Java::java.lang.String, Java::java.lang.Long, Java::java.lang.Long, Java::com.ning.billing.util.callcontext.TenantContext)'
|
206
|
+
def search_tags(searchKey, offset, limit, context)
|
207
|
+
|
208
|
+
# conversion for searchKey [type = java.lang.String]
|
209
|
+
searchKey = searchKey.to_s unless searchKey.nil?
|
210
|
+
|
211
|
+
# conversion for offset [type = java.lang.Long]
|
212
|
+
offset = offset
|
213
|
+
|
214
|
+
# conversion for limit [type = java.lang.Long]
|
215
|
+
limit = limit
|
216
|
+
|
217
|
+
# conversion for context [type = com.ning.billing.util.callcontext.TenantContext]
|
218
|
+
context = context.to_java unless context.nil?
|
219
|
+
res = @real_java_api.search_tags(searchKey, offset, limit, context)
|
220
|
+
# conversion for res [type = com.ning.billing.util.entity.Pagination]
|
221
|
+
res = Killbill::Plugin::Model::Pagination.new.to_ruby(res) unless res.nil?
|
222
|
+
return res
|
223
|
+
end
|
224
|
+
|
225
|
+
java_signature 'Java::com.ning.billing.util.entity.Pagination getTags(Java::java.lang.Long, Java::java.lang.Long, Java::com.ning.billing.util.callcontext.TenantContext)'
|
226
|
+
def get_tags(offset, limit, context)
|
227
|
+
|
228
|
+
# conversion for offset [type = java.lang.Long]
|
229
|
+
offset = offset
|
230
|
+
|
231
|
+
# conversion for limit [type = java.lang.Long]
|
232
|
+
limit = limit
|
233
|
+
|
234
|
+
# conversion for context [type = com.ning.billing.util.callcontext.TenantContext]
|
235
|
+
context = context.to_java unless context.nil?
|
236
|
+
res = @real_java_api.get_tags(offset, limit, context)
|
237
|
+
# conversion for res [type = com.ning.billing.util.entity.Pagination]
|
238
|
+
res = Killbill::Plugin::Model::Pagination.new.to_ruby(res) unless res.nil?
|
239
|
+
return res
|
240
|
+
end
|
241
|
+
|
205
242
|
java_signature 'Java::java.util.List getTagsForObject(Java::java.util.UUID, Java::com.ning.billing.ObjectType, Java::boolean, Java::com.ning.billing.util.callcontext.TenantContext)'
|
206
243
|
def get_tags_for_object(objectId, objectType, includedDeleted, context)
|
207
244
|
|
@@ -198,6 +198,34 @@ module Killbill
|
|
198
198
|
end
|
199
199
|
end
|
200
200
|
|
201
|
+
java_signature 'Java::com.ning.billing.util.entity.Pagination searchRefunds(Java::java.lang.String, Java::java.lang.Long, Java::java.lang.Long, Java::com.ning.billing.util.callcontext.TenantContext)'
|
202
|
+
def search_refunds(searchKey, offset, limit, context)
|
203
|
+
|
204
|
+
# conversion for searchKey [type = java.lang.String]
|
205
|
+
|
206
|
+
# conversion for offset [type = java.lang.Long]
|
207
|
+
|
208
|
+
# conversion for limit [type = java.lang.Long]
|
209
|
+
|
210
|
+
# conversion for context [type = com.ning.billing.util.callcontext.TenantContext]
|
211
|
+
context = Killbill::Plugin::Model::TenantContext.new.to_ruby(context) unless context.nil?
|
212
|
+
begin
|
213
|
+
res = @delegate_plugin.search_refunds(searchKey, offset, limit, context)
|
214
|
+
# conversion for res [type = com.ning.billing.util.entity.Pagination]
|
215
|
+
res = res.to_java unless res.nil?
|
216
|
+
return res
|
217
|
+
rescue Exception => e
|
218
|
+
message = "Failure in search_refunds: #{e}"
|
219
|
+
unless e.backtrace.nil?
|
220
|
+
message = "#{message}\n#{e.backtrace.join("\n")}"
|
221
|
+
end
|
222
|
+
logger.warn message
|
223
|
+
raise Java::com.ning.billing.payment.plugin.api.PaymentPluginApiException.new("search_refunds failure", e.message)
|
224
|
+
ensure
|
225
|
+
@delegate_plugin.after_request
|
226
|
+
end
|
227
|
+
end
|
228
|
+
|
201
229
|
java_signature 'Java::void addPaymentMethod(Java::java.util.UUID, Java::java.util.UUID, Java::com.ning.billing.payment.api.PaymentMethodPlugin, Java::boolean, Java::com.ning.billing.util.callcontext.CallContext)'
|
202
230
|
def add_payment_method(kbAccountId, kbPaymentMethodId, paymentMethodProps, setDefault, context)
|
203
231
|
|
@@ -32,12 +32,15 @@ module Killbill
|
|
32
32
|
|
33
33
|
include com.ning.billing.payment.plugin.api.RefundInfoPlugin
|
34
34
|
|
35
|
-
attr_accessor :amount, :currency, :created_date, :effective_date, :status, :gateway_error, :gateway_error_code, :
|
35
|
+
attr_accessor :kb_payment_id, :amount, :currency, :created_date, :effective_date, :status, :gateway_error, :gateway_error_code, :first_refund_reference_id, :second_refund_reference_id
|
36
36
|
|
37
37
|
def initialize()
|
38
38
|
end
|
39
39
|
|
40
40
|
def to_java()
|
41
|
+
# conversion for kb_payment_id [type = java.util.UUID]
|
42
|
+
@kb_payment_id = java.util.UUID.fromString(@kb_payment_id.to_s) unless @kb_payment_id.nil?
|
43
|
+
|
41
44
|
# conversion for amount [type = java.math.BigDecimal]
|
42
45
|
if @amount.nil?
|
43
46
|
@amount = java.math.BigDecimal::ZERO
|
@@ -69,12 +72,19 @@ module Killbill
|
|
69
72
|
# conversion for gateway_error_code [type = java.lang.String]
|
70
73
|
@gateway_error_code = @gateway_error_code.to_s unless @gateway_error_code.nil?
|
71
74
|
|
72
|
-
# conversion for
|
73
|
-
@
|
75
|
+
# conversion for first_refund_reference_id [type = java.lang.String]
|
76
|
+
@first_refund_reference_id = @first_refund_reference_id.to_s unless @first_refund_reference_id.nil?
|
77
|
+
|
78
|
+
# conversion for second_refund_reference_id [type = java.lang.String]
|
79
|
+
@second_refund_reference_id = @second_refund_reference_id.to_s unless @second_refund_reference_id.nil?
|
74
80
|
self
|
75
81
|
end
|
76
82
|
|
77
83
|
def to_ruby(j_obj)
|
84
|
+
# conversion for kb_payment_id [type = java.util.UUID]
|
85
|
+
@kb_payment_id = j_obj.kb_payment_id
|
86
|
+
@kb_payment_id = @kb_payment_id.nil? ? nil : @kb_payment_id.to_s
|
87
|
+
|
78
88
|
# conversion for amount [type = java.math.BigDecimal]
|
79
89
|
@amount = j_obj.amount
|
80
90
|
@amount = @amount.nil? ? 0 : BigDecimal.new(@amount.to_s)
|
@@ -109,8 +119,11 @@ module Killbill
|
|
109
119
|
# conversion for gateway_error_code [type = java.lang.String]
|
110
120
|
@gateway_error_code = j_obj.gateway_error_code
|
111
121
|
|
112
|
-
# conversion for
|
113
|
-
@
|
122
|
+
# conversion for first_refund_reference_id [type = java.lang.String]
|
123
|
+
@first_refund_reference_id = j_obj.first_refund_reference_id
|
124
|
+
|
125
|
+
# conversion for second_refund_reference_id [type = java.lang.String]
|
126
|
+
@second_refund_reference_id = j_obj.second_refund_reference_id
|
114
127
|
self
|
115
128
|
end
|
116
129
|
|
metadata
CHANGED
@@ -1,99 +1,99 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: killbill
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kill Bill core team
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-01-
|
11
|
+
date: 2014-01-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sinatra
|
15
|
-
|
15
|
+
version_requirements: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 1.3.4
|
20
|
-
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
20
|
+
requirement: !ruby/object:Gem::Requirement
|
23
21
|
requirements:
|
24
22
|
- - ~>
|
25
23
|
- !ruby/object:Gem::Version
|
26
24
|
version: 1.3.4
|
25
|
+
prerelease: false
|
26
|
+
type: :runtime
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: tzinfo
|
29
|
-
|
29
|
+
version_requirements: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: 0.3.37
|
34
|
-
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
34
|
+
requirement: !ruby/object:Gem::Requirement
|
37
35
|
requirements:
|
38
36
|
- - ~>
|
39
37
|
- !ruby/object:Gem::Version
|
40
38
|
version: 0.3.37
|
39
|
+
prerelease: false
|
40
|
+
type: :runtime
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: jbundler
|
43
|
-
|
43
|
+
version_requirements: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - ~>
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: 0.4.3
|
48
|
-
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
51
49
|
requirements:
|
52
50
|
- - ~>
|
53
51
|
- !ruby/object:Gem::Version
|
54
52
|
version: 0.4.3
|
53
|
+
prerelease: false
|
54
|
+
type: :development
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rack
|
57
|
-
|
57
|
+
version_requirements: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - '>='
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: 1.5.2
|
62
|
-
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
62
|
+
requirement: !ruby/object:Gem::Requirement
|
65
63
|
requirements:
|
66
64
|
- - '>='
|
67
65
|
- !ruby/object:Gem::Version
|
68
66
|
version: 1.5.2
|
67
|
+
prerelease: false
|
68
|
+
type: :development
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rake
|
71
|
-
|
71
|
+
version_requirements: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - '>='
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: 0.8.7
|
76
|
-
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
76
|
+
requirement: !ruby/object:Gem::Requirement
|
79
77
|
requirements:
|
80
78
|
- - '>='
|
81
79
|
- !ruby/object:Gem::Version
|
82
80
|
version: 0.8.7
|
81
|
+
prerelease: false
|
82
|
+
type: :development
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rspec
|
85
|
-
|
85
|
+
version_requirements: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - ~>
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: 2.12.0
|
90
|
-
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
90
|
+
requirement: !ruby/object:Gem::Requirement
|
93
91
|
requirements:
|
94
92
|
- - ~>
|
95
93
|
- !ruby/object:Gem::Version
|
96
94
|
version: 2.12.0
|
95
|
+
prerelease: false
|
96
|
+
type: :development
|
97
97
|
description: Base classes to write plugins.
|
98
98
|
email: killbilling-users@googlegroups.com
|
99
99
|
executables: []
|
@@ -244,7 +244,7 @@ homepage: http://kill-bill.org
|
|
244
244
|
licenses:
|
245
245
|
- Apache License (2.0)
|
246
246
|
metadata: {}
|
247
|
-
post_install_message:
|
247
|
+
post_install_message:
|
248
248
|
rdoc_options:
|
249
249
|
- --exclude
|
250
250
|
- .
|
@@ -263,9 +263,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
263
263
|
requirements:
|
264
264
|
- jar 'com.ning.billing:killbill-api'
|
265
265
|
- jar 'com.ning.billing:killbill-util:tests'
|
266
|
-
rubyforge_project:
|
267
|
-
rubygems_version: 2.0
|
268
|
-
signing_key:
|
266
|
+
rubyforge_project:
|
267
|
+
rubygems_version: 2.2.0
|
268
|
+
signing_key:
|
269
269
|
specification_version: 4
|
270
270
|
summary: Framework to write Kill Bill plugins in Ruby.
|
271
271
|
test_files:
|