killbill 1.5.0 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- data/NEWS +4 -1
- data/VERSION +1 -1
- data/lib/killbill/gen/api/account_user_api.rb +20 -0
- data/lib/killbill/gen/api/payment_api.rb +20 -0
- data/lib/killbill/gen/api/payment_method_plugin.rb +8 -1
- metadata +2 -2
data/NEWS
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.6.0
|
@@ -102,6 +102,26 @@ module Killbill
|
|
102
102
|
end
|
103
103
|
end
|
104
104
|
|
105
|
+
java_signature 'Java::java.util.List searchAccounts(Java::java.lang.String, Java::com.ning.billing.util.callcontext.TenantContext)'
|
106
|
+
def search_accounts(searchKey, context)
|
107
|
+
|
108
|
+
# conversion for searchKey [type = java.lang.String]
|
109
|
+
searchKey = searchKey.to_s unless searchKey.nil?
|
110
|
+
|
111
|
+
# conversion for context [type = com.ning.billing.util.callcontext.TenantContext]
|
112
|
+
context = context.to_java unless context.nil?
|
113
|
+
res = @real_java_api.search_accounts(searchKey, context)
|
114
|
+
# conversion for res [type = java.util.List]
|
115
|
+
tmp = []
|
116
|
+
(res || []).each do |m|
|
117
|
+
# conversion for m [type = com.ning.billing.account.api.Account]
|
118
|
+
m = Killbill::Plugin::Model::Account.new.to_ruby(m) unless m.nil?
|
119
|
+
tmp << m
|
120
|
+
end
|
121
|
+
res = tmp
|
122
|
+
return res
|
123
|
+
end
|
124
|
+
|
105
125
|
java_signature 'Java::java.util.List getAccounts(Java::com.ning.billing.util.callcontext.TenantContext)'
|
106
126
|
def get_accounts(context)
|
107
127
|
|
@@ -429,6 +429,26 @@ module Killbill
|
|
429
429
|
end
|
430
430
|
end
|
431
431
|
|
432
|
+
java_signature 'Java::java.util.List searchPaymentMethods(Java::java.lang.String, Java::com.ning.billing.util.callcontext.TenantContext)'
|
433
|
+
def search_payment_methods(searchKey, context)
|
434
|
+
|
435
|
+
# conversion for searchKey [type = java.lang.String]
|
436
|
+
searchKey = searchKey.to_s unless searchKey.nil?
|
437
|
+
|
438
|
+
# conversion for context [type = com.ning.billing.util.callcontext.TenantContext]
|
439
|
+
context = context.to_java unless context.nil?
|
440
|
+
res = @real_java_api.search_payment_methods(searchKey, context)
|
441
|
+
# conversion for res [type = java.util.List]
|
442
|
+
tmp = []
|
443
|
+
(res || []).each do |m|
|
444
|
+
# conversion for m [type = com.ning.billing.payment.api.PaymentMethod]
|
445
|
+
m = Killbill::Plugin::Model::PaymentMethod.new.to_ruby(m) unless m.nil?
|
446
|
+
tmp << m
|
447
|
+
end
|
448
|
+
res = tmp
|
449
|
+
return res
|
450
|
+
end
|
451
|
+
|
432
452
|
java_signature 'Java::void deletedPaymentMethod(Java::com.ning.billing.account.api.Account, Java::java.util.UUID, Java::boolean, Java::com.ning.billing.util.callcontext.CallContext)'
|
433
453
|
def deleted_payment_method(account, paymentMethodId, deleteDefaultPaymentMethodWithAutoPayOff, context)
|
434
454
|
|
@@ -32,12 +32,15 @@ module Killbill
|
|
32
32
|
|
33
33
|
include com.ning.billing.payment.api.PaymentMethodPlugin
|
34
34
|
|
35
|
-
attr_accessor :external_payment_method_id, :is_default_payment_method, :properties, :type, :cc_name, :cc_type, :cc_expiration_month, :cc_expiration_year, :cc_last4, :address1, :address2, :city, :state, :zip, :country
|
35
|
+
attr_accessor :kb_payment_method_id, :external_payment_method_id, :is_default_payment_method, :properties, :type, :cc_name, :cc_type, :cc_expiration_month, :cc_expiration_year, :cc_last4, :address1, :address2, :city, :state, :zip, :country
|
36
36
|
|
37
37
|
def initialize()
|
38
38
|
end
|
39
39
|
|
40
40
|
def to_java()
|
41
|
+
# conversion for kb_payment_method_id [type = java.util.UUID]
|
42
|
+
@kb_payment_method_id = java.util.UUID.fromString(@kb_payment_method_id.to_s) unless @kb_payment_method_id.nil?
|
43
|
+
|
41
44
|
# conversion for external_payment_method_id [type = java.lang.String]
|
42
45
|
@external_payment_method_id = @external_payment_method_id.to_s unless @external_payment_method_id.nil?
|
43
46
|
|
@@ -92,6 +95,10 @@ module Killbill
|
|
92
95
|
end
|
93
96
|
|
94
97
|
def to_ruby(j_obj)
|
98
|
+
# conversion for kb_payment_method_id [type = java.util.UUID]
|
99
|
+
@kb_payment_method_id = j_obj.kb_payment_method_id
|
100
|
+
@kb_payment_method_id = @kb_payment_method_id.nil? ? nil : @kb_payment_method_id.to_s
|
101
|
+
|
95
102
|
# conversion for external_payment_method_id [type = java.lang.String]
|
96
103
|
@external_payment_method_id = j_obj.external_payment_method_id
|
97
104
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: killbill
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.6.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-08-
|
12
|
+
date: 2013-08-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sinatra
|