killbill 9.2.1 → 9.2.2
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/Gemfile.lock +1 -1
- data/Jarfile +10 -10
- data/Jarfile.lock +23 -23
- data/NEWS +10 -0
- data/lib/killbill/gen/plugin-api/invoice_context.rb +193 -0
- data/lib/killbill/gen/plugin-api/invoice_plugin_api.rb +93 -0
- data/lib/killbill/gen/plugin-api/on_failure_invoice_result.rb +53 -0
- data/lib/killbill/gen/plugin-api/on_success_invoice_result.rb +53 -0
- data/lib/killbill/gen/plugin-api/prior_invoice_result.rb +77 -0
- data/lib/killbill/gen/plugin-api/require_gen.rb +4 -0
- data/lib/killbill/helpers/active_merchant/payment_plugin.rb +12 -12
- data/lib/killbill/version.rb +1 -1
- metadata +6 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d4b3c904551bc86f9e98e4bd696435490a1878e0
|
|
4
|
+
data.tar.gz: 09bd877095df109669dab84a793ea954adc8c307
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f007e62b8b2882b5ef31deb39567397230f66473ec32f1638862e1120d171350f4fb2411fdf762aeaaf46b1940161f019f0780dec6ca2e7833e02f049cb96257
|
|
7
|
+
data.tar.gz: c2e30a6996f08f71861a9f0482ea37a63a9cc24801ebabd4d54fd9fafd3953fa22837202cb9d22f9a241c028053abf833839e3273ba04dcf6f1b31c885ec7f66
|
data/Gemfile.lock
CHANGED
data/Jarfile
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
jar 'org.kill-bill.billing:killbill-api', '0.51.
|
|
2
|
-
jar 'org.kill-bill.billing.plugin:killbill-plugin-api-currency', '0.24.
|
|
3
|
-
jar 'org.kill-bill.billing.plugin:killbill-plugin-api-invoice', '0.24.
|
|
4
|
-
jar 'org.kill-bill.billing.plugin:killbill-plugin-api-notification', '0.24.
|
|
5
|
-
jar 'org.kill-bill.billing.plugin:killbill-plugin-api-payment', '0.24.
|
|
6
|
-
jar 'org.kill-bill.billing.plugin:killbill-plugin-api-control', '0.24.
|
|
7
|
-
jar 'org.kill-bill.billing.plugin:killbill-plugin-api-catalog', '0.24.
|
|
8
|
-
jar 'org.kill-bill.billing.plugin:killbill-plugin-api-entitlement', '0.24.
|
|
9
|
-
jar 'org.kill-bill.billing:killbill-util:tests', '0.19.
|
|
10
|
-
jar 'org.kill-bill.billing:killbill-util', '0.19.
|
|
1
|
+
jar 'org.kill-bill.billing:killbill-api', '0.51.13'
|
|
2
|
+
jar 'org.kill-bill.billing.plugin:killbill-plugin-api-currency', '0.24.6'
|
|
3
|
+
jar 'org.kill-bill.billing.plugin:killbill-plugin-api-invoice', '0.24.6'
|
|
4
|
+
jar 'org.kill-bill.billing.plugin:killbill-plugin-api-notification', '0.24.6'
|
|
5
|
+
jar 'org.kill-bill.billing.plugin:killbill-plugin-api-payment', '0.24.6'
|
|
6
|
+
jar 'org.kill-bill.billing.plugin:killbill-plugin-api-control', '0.24.6'
|
|
7
|
+
jar 'org.kill-bill.billing.plugin:killbill-plugin-api-catalog', '0.24.6'
|
|
8
|
+
jar 'org.kill-bill.billing.plugin:killbill-plugin-api-entitlement', '0.24.6'
|
|
9
|
+
jar 'org.kill-bill.billing:killbill-util:tests', '0.19.6'
|
|
10
|
+
jar 'org.kill-bill.billing:killbill-util', '0.19.6'
|
|
11
11
|
jar 'org.mockito:mockito-all', '1.10.19'
|
|
12
12
|
jar 'javax.servlet:javax.servlet-api', '4.0.0'
|
data/Jarfile.lock
CHANGED
|
@@ -5,17 +5,19 @@
|
|
|
5
5
|
- com.fasterxml.jackson.dataformat:jackson-dataformat-csv:jar:2.6.7
|
|
6
6
|
- org.skife.config:config-magic:jar:0.17
|
|
7
7
|
- org.weakref:jmxutils:jar:1.19
|
|
8
|
+
- org.kill-bill.billing.plugin:killbill-plugin-api-notification:jar:0.24.6
|
|
8
9
|
- aopalliance:aopalliance:jar:1.0
|
|
9
|
-
- org.kill-bill.commons:killbill-concurrent:jar:0.21.8
|
|
10
|
-
- org.kill-bill.billing.plugin:killbill-plugin-api-catalog:jar:0.24.4
|
|
11
10
|
- org.osgi:org.osgi.core:jar:5.0.0
|
|
12
11
|
- com.ning:async-http-client:jar:1.9.40
|
|
13
|
-
- org.kill-bill.
|
|
14
|
-
- org.kill-bill.billing:killbill-
|
|
15
|
-
- org.kill-bill.billing:killbill-
|
|
16
|
-
- org.kill-bill.billing
|
|
12
|
+
- org.kill-bill.billing:killbill-platform-osgi-api:jar:0.37.10
|
|
13
|
+
- org.kill-bill.billing.plugin:killbill-plugin-api-payment:jar:0.24.6
|
|
14
|
+
- org.kill-bill.billing:killbill-api:jar:0.51.13
|
|
15
|
+
- org.kill-bill.billing:killbill-util:jar:0.19.6
|
|
16
|
+
- org.kill-bill.billing.plugin:killbill-plugin-api-invoice:jar:0.24.6
|
|
17
|
+
- org.kill-bill.billing:killbill-util:jar:tests:0.19.6
|
|
17
18
|
- org.joda:joda-money:jar:0.9
|
|
18
19
|
- org.ehcache.integrations.shiro:shiro-ehcache3:jar:1.0.0
|
|
20
|
+
- org.kill-bill.billing:killbill-platform-base:jar:0.37.10
|
|
19
21
|
- com.fasterxml.jackson.dataformat:jackson-dataformat-smile:jar:2.6.7
|
|
20
22
|
- com.fasterxml:classmate:jar:1.1.0
|
|
21
23
|
- org.slf4j:jcl-over-slf4j:jar:1.7.25
|
|
@@ -24,47 +26,45 @@
|
|
|
24
26
|
- org.apache.felix:org.apache.felix.framework:jar:4.4.1
|
|
25
27
|
- org.ehcache:ehcache-clustered:jar:3.3.1
|
|
26
28
|
- com.google.code.findbugs:jsr305:jar:3.0.1
|
|
27
|
-
- org.kill-bill.billing.plugin:killbill-plugin-api-invoice:jar:0.24.4
|
|
28
29
|
- com.google.guava:guava:jar:20.0
|
|
29
30
|
- com.samskivert:jmustache:jar:1.5
|
|
30
|
-
- org.kill-bill.
|
|
31
|
-
- org.kill-bill.commons:killbill-
|
|
31
|
+
- org.kill-bill.billing.plugin:killbill-plugin-api-control:jar:0.24.6
|
|
32
|
+
- org.kill-bill.commons:killbill-clock:jar:0.21.9
|
|
32
33
|
- javax.cache:cache-api:jar:1.0.0
|
|
33
|
-
- org.kill-bill.billing:killbill-util:jar:0.19.5
|
|
34
|
-
- org.kill-bill.billing:killbill-internal-api:jar:0.19.5
|
|
35
34
|
- org.bgee.log4jdbc-log4j2:log4jdbc-log4j2-jdbc4:jar:1.16
|
|
36
|
-
- org.kill-bill.billing.plugin:killbill-plugin-api-notification:jar:0.24.4
|
|
37
35
|
- javax.servlet:javax.servlet-api:jar:4.0.0
|
|
36
|
+
- org.kill-bill.billing:killbill-platform-osgi:jar:0.37.10
|
|
37
|
+
- org.kill-bill.billing.plugin:killbill-plugin-api-currency:jar:0.24.6
|
|
38
38
|
- com.fasterxml.jackson.core:jackson-annotations:jar:2.6.7
|
|
39
|
-
- org.kill-bill.billing:killbill-platform-api:jar:0.37.9
|
|
40
|
-
- org.kill-bill.billing.plugin:killbill-plugin-api-entitlement:jar:0.24.4
|
|
41
39
|
- org.apache.shiro:shiro-core:jar:1.3.2
|
|
40
|
+
- org.kill-bill.billing.plugin:killbill-plugin-api-catalog:jar:0.24.6
|
|
42
41
|
- org.ow2.asm:asm:jar:5.0.3
|
|
43
42
|
- com.fasterxml.jackson.core:jackson-databind:jar:2.6.7
|
|
44
|
-
- org.kill-bill.
|
|
43
|
+
- org.kill-bill.commons:killbill-xmlloader:jar:0.21.9
|
|
45
44
|
- com.google.code.findbugs:annotations:jar:3.0.1u2
|
|
46
|
-
- org.kill-bill.
|
|
45
|
+
- org.kill-bill.commons:killbill-locker:jar:0.21.9
|
|
47
46
|
- org.antlr:ST4:jar:4.0.8
|
|
48
47
|
- org.apache.shiro:shiro-guice:jar:1.3.2
|
|
49
|
-
- org.kill-bill.commons:killbill-jdbi:jar:0.21.8
|
|
50
48
|
- org.antlr:antlr-runtime:jar:3.5.2
|
|
51
|
-
- org.kill-bill.commons:killbill-queue:jar:0.21.8
|
|
52
49
|
- org.ehcache:ehcache:jar:3.3.1
|
|
53
50
|
- io.dropwizard.metrics:metrics-jcache:jar:3.2.2
|
|
51
|
+
- org.kill-bill.billing:killbill-internal-api:jar:0.19.6
|
|
54
52
|
- com.fasterxml.jackson.datatype:jackson-datatype-joda:jar:2.6.7
|
|
55
53
|
- com.google.inject.extensions:guice-multibindings:jar:3.0
|
|
56
|
-
- org.kill-bill.commons:killbill-clock:jar:0.21.8
|
|
57
54
|
- joda-time:joda-time:jar:2.9.9
|
|
58
55
|
- javax.inject:javax.inject:jar:1
|
|
59
|
-
- org.kill-bill.
|
|
56
|
+
- org.kill-bill.commons:killbill-concurrent:jar:0.21.9
|
|
60
57
|
- com.h2database:h2:jar:1.4.194
|
|
61
58
|
- commons-beanutils:commons-beanutils:jar:1.8.3
|
|
62
59
|
- com.fasterxml.jackson.core:jackson-core:jar:2.6.7
|
|
63
60
|
- cglib:cglib:jar:3.1
|
|
64
61
|
- io.dropwizard.metrics:metrics-core:jar:3.2.2
|
|
62
|
+
- org.kill-bill.billing:killbill-platform-api:jar:0.37.10
|
|
65
63
|
- org.slf4j:slf4j-api:jar:1.7.25
|
|
66
|
-
- org.kill-bill.
|
|
67
|
-
- org.kill-bill.billing:killbill-
|
|
64
|
+
- org.kill-bill.commons:killbill-queue:jar:0.21.9
|
|
65
|
+
- org.kill-bill.billing.plugin:killbill-plugin-api-entitlement:jar:0.24.6
|
|
66
|
+
- org.kill-bill.commons:killbill-embeddeddb-common:jar:0.21.9
|
|
67
|
+
- org.kill-bill.commons:killbill-jdbi:jar:0.21.9
|
|
68
68
|
- org.mockito:mockito-all:jar:1.10.19
|
|
69
|
-
- org.kill-bill.billing:killbill-api:jar:0.51.12
|
|
70
69
|
- org.osgi:org.osgi.compendium:jar:5.0.0
|
|
70
|
+
- org.kill-bill.billing:killbill-platform-lifecycle:jar:0.37.10
|
data/NEWS
CHANGED
|
@@ -1,9 +1,19 @@
|
|
|
1
|
+
9.2.2
|
|
2
|
+
Release for Kill Bill 0.19.7
|
|
3
|
+
ActiveMerchant: pass in extra_params to gateway api calls
|
|
4
|
+
|
|
1
5
|
9.2.1
|
|
2
6
|
Release for Kill Bill 0.19.6
|
|
3
7
|
|
|
4
8
|
9.2.0
|
|
5
9
|
Initial release for Kill Bill 0.19.x
|
|
6
10
|
|
|
11
|
+
8.3.4
|
|
12
|
+
ActiveMerchant: pass in extra_params to gateway api calls
|
|
13
|
+
|
|
14
|
+
8.3.3
|
|
15
|
+
active_merchant: update default CC year in tests
|
|
16
|
+
|
|
7
17
|
8.3.2
|
|
8
18
|
Merge global configuration into each account specific configuration
|
|
9
19
|
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
#############################################################################################
|
|
2
|
+
# #
|
|
3
|
+
# Copyright 2010-2013 Ning, Inc. #
|
|
4
|
+
# Copyright 2014 Groupon, Inc. #
|
|
5
|
+
# Copyright 2014 The Billing Project, LLC #
|
|
6
|
+
# #
|
|
7
|
+
# The Billing Project licenses this file to you under the Apache License, version 2.0 #
|
|
8
|
+
# (the "License"); you may not use this file except in compliance with the #
|
|
9
|
+
# License. You may obtain a copy of the License at: #
|
|
10
|
+
# #
|
|
11
|
+
# http://www.apache.org/licenses/LICENSE-2.0 #
|
|
12
|
+
# #
|
|
13
|
+
# Unless required by applicable law or agreed to in writing, software #
|
|
14
|
+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT #
|
|
15
|
+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the #
|
|
16
|
+
# License for the specific language governing permissions and limitations #
|
|
17
|
+
# under the License. #
|
|
18
|
+
# #
|
|
19
|
+
#############################################################################################
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
#
|
|
23
|
+
# DO NOT EDIT!!!
|
|
24
|
+
# File automatically generated by killbill-java-parser (git@github.com:killbill/killbill-java-parser.git)
|
|
25
|
+
#
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
module Killbill
|
|
29
|
+
module Plugin
|
|
30
|
+
module Model
|
|
31
|
+
|
|
32
|
+
java_package 'org.killbill.billing.invoice.plugin.api'
|
|
33
|
+
class InvoiceContext
|
|
34
|
+
|
|
35
|
+
include org.killbill.billing.invoice.plugin.api.InvoiceContext
|
|
36
|
+
|
|
37
|
+
attr_accessor :user_token, :user_name, :call_origin, :user_type, :reason_code, :comments, :created_date, :updated_date, :account_id, :tenant_id, :target_date, :invoice, :existing_invoices, :is_dry_run, :is_rescheduled
|
|
38
|
+
|
|
39
|
+
def initialize()
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
def to_java()
|
|
43
|
+
# conversion for user_token [type = java.util.UUID]
|
|
44
|
+
@user_token = java.util.UUID.fromString(@user_token.to_s) unless @user_token.nil?
|
|
45
|
+
|
|
46
|
+
# conversion for user_name [type = java.lang.String]
|
|
47
|
+
@user_name = @user_name.to_s unless @user_name.nil?
|
|
48
|
+
|
|
49
|
+
# conversion for call_origin [type = org.killbill.billing.util.callcontext.CallOrigin]
|
|
50
|
+
@call_origin = Java::org.killbill.billing.util.callcontext.CallOrigin.value_of( @call_origin.to_s ) unless @call_origin.nil?
|
|
51
|
+
|
|
52
|
+
# conversion for user_type [type = org.killbill.billing.util.callcontext.UserType]
|
|
53
|
+
@user_type = Java::org.killbill.billing.util.callcontext.UserType.value_of( @user_type.to_s ) unless @user_type.nil?
|
|
54
|
+
|
|
55
|
+
# conversion for reason_code [type = java.lang.String]
|
|
56
|
+
@reason_code = @reason_code.to_s unless @reason_code.nil?
|
|
57
|
+
|
|
58
|
+
# conversion for comments [type = java.lang.String]
|
|
59
|
+
@comments = @comments.to_s unless @comments.nil?
|
|
60
|
+
|
|
61
|
+
# conversion for created_date [type = org.joda.time.DateTime]
|
|
62
|
+
if !@created_date.nil?
|
|
63
|
+
@created_date = (@created_date.kind_of? Time) ? DateTime.parse(@created_date.to_s) : @created_date
|
|
64
|
+
@created_date = Java::org.joda.time.DateTime.new(@created_date.to_s, Java::org.joda.time.DateTimeZone::UTC)
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
# conversion for updated_date [type = org.joda.time.DateTime]
|
|
68
|
+
if !@updated_date.nil?
|
|
69
|
+
@updated_date = (@updated_date.kind_of? Time) ? DateTime.parse(@updated_date.to_s) : @updated_date
|
|
70
|
+
@updated_date = Java::org.joda.time.DateTime.new(@updated_date.to_s, Java::org.joda.time.DateTimeZone::UTC)
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# conversion for account_id [type = java.util.UUID]
|
|
74
|
+
@account_id = java.util.UUID.fromString(@account_id.to_s) unless @account_id.nil?
|
|
75
|
+
|
|
76
|
+
# conversion for tenant_id [type = java.util.UUID]
|
|
77
|
+
@tenant_id = java.util.UUID.fromString(@tenant_id.to_s) unless @tenant_id.nil?
|
|
78
|
+
|
|
79
|
+
# conversion for target_date [type = org.joda.time.LocalDate]
|
|
80
|
+
if !@target_date.nil?
|
|
81
|
+
@target_date = Java::org.joda.time.LocalDate.parse(@target_date.to_s)
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
# conversion for invoice [type = org.killbill.billing.invoice.api.Invoice]
|
|
85
|
+
@invoice = @invoice.to_java unless @invoice.nil?
|
|
86
|
+
|
|
87
|
+
# conversion for existing_invoices [type = java.util.List]
|
|
88
|
+
tmp = java.util.ArrayList.new
|
|
89
|
+
(@existing_invoices || []).each do |m|
|
|
90
|
+
# conversion for m [type = org.killbill.billing.invoice.api.Invoice]
|
|
91
|
+
m = m.to_java unless m.nil?
|
|
92
|
+
tmp.add(m)
|
|
93
|
+
end
|
|
94
|
+
@existing_invoices = tmp
|
|
95
|
+
|
|
96
|
+
# conversion for is_dry_run [type = boolean]
|
|
97
|
+
@is_dry_run = @is_dry_run.nil? ? java.lang.Boolean.new(false) : java.lang.Boolean.new(@is_dry_run)
|
|
98
|
+
|
|
99
|
+
# conversion for is_rescheduled [type = boolean]
|
|
100
|
+
@is_rescheduled = @is_rescheduled.nil? ? java.lang.Boolean.new(false) : java.lang.Boolean.new(@is_rescheduled)
|
|
101
|
+
self
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
def to_ruby(j_obj)
|
|
105
|
+
# conversion for user_token [type = java.util.UUID]
|
|
106
|
+
@user_token = j_obj.user_token
|
|
107
|
+
@user_token = @user_token.nil? ? nil : @user_token.to_s
|
|
108
|
+
|
|
109
|
+
# conversion for user_name [type = java.lang.String]
|
|
110
|
+
@user_name = j_obj.user_name
|
|
111
|
+
|
|
112
|
+
# conversion for call_origin [type = org.killbill.billing.util.callcontext.CallOrigin]
|
|
113
|
+
@call_origin = j_obj.call_origin
|
|
114
|
+
@call_origin = @call_origin.to_s.to_sym unless @call_origin.nil?
|
|
115
|
+
|
|
116
|
+
# conversion for user_type [type = org.killbill.billing.util.callcontext.UserType]
|
|
117
|
+
@user_type = j_obj.user_type
|
|
118
|
+
@user_type = @user_type.to_s.to_sym unless @user_type.nil?
|
|
119
|
+
|
|
120
|
+
# conversion for reason_code [type = java.lang.String]
|
|
121
|
+
@reason_code = j_obj.reason_code
|
|
122
|
+
|
|
123
|
+
# conversion for comments [type = java.lang.String]
|
|
124
|
+
@comments = j_obj.comments
|
|
125
|
+
|
|
126
|
+
# conversion for created_date [type = org.joda.time.DateTime]
|
|
127
|
+
@created_date = j_obj.created_date
|
|
128
|
+
if !@created_date.nil?
|
|
129
|
+
fmt = Java::org.joda.time.format.ISODateTimeFormat.date_time_no_millis # See https://github.com/killbill/killbill-java-parser/issues/3
|
|
130
|
+
str = fmt.print(@created_date)
|
|
131
|
+
@created_date = DateTime.iso8601(str)
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
# conversion for updated_date [type = org.joda.time.DateTime]
|
|
135
|
+
@updated_date = j_obj.updated_date
|
|
136
|
+
if !@updated_date.nil?
|
|
137
|
+
fmt = Java::org.joda.time.format.ISODateTimeFormat.date_time_no_millis # See https://github.com/killbill/killbill-java-parser/issues/3
|
|
138
|
+
str = fmt.print(@updated_date)
|
|
139
|
+
@updated_date = DateTime.iso8601(str)
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
# conversion for account_id [type = java.util.UUID]
|
|
143
|
+
@account_id = j_obj.account_id
|
|
144
|
+
@account_id = @account_id.nil? ? nil : @account_id.to_s
|
|
145
|
+
|
|
146
|
+
# conversion for tenant_id [type = java.util.UUID]
|
|
147
|
+
@tenant_id = j_obj.tenant_id
|
|
148
|
+
@tenant_id = @tenant_id.nil? ? nil : @tenant_id.to_s
|
|
149
|
+
|
|
150
|
+
# conversion for target_date [type = org.joda.time.LocalDate]
|
|
151
|
+
@target_date = j_obj.target_date
|
|
152
|
+
if !@target_date.nil?
|
|
153
|
+
@target_date = @target_date.to_s
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
# conversion for invoice [type = org.killbill.billing.invoice.api.Invoice]
|
|
157
|
+
@invoice = j_obj.invoice
|
|
158
|
+
@invoice = Killbill::Plugin::Model::Invoice.new.to_ruby(@invoice) unless @invoice.nil?
|
|
159
|
+
|
|
160
|
+
# conversion for existing_invoices [type = java.util.List]
|
|
161
|
+
@existing_invoices = j_obj.existing_invoices
|
|
162
|
+
tmp = []
|
|
163
|
+
(@existing_invoices || []).each do |m|
|
|
164
|
+
# conversion for m [type = org.killbill.billing.invoice.api.Invoice]
|
|
165
|
+
m = Killbill::Plugin::Model::Invoice.new.to_ruby(m) unless m.nil?
|
|
166
|
+
tmp << m
|
|
167
|
+
end
|
|
168
|
+
@existing_invoices = tmp
|
|
169
|
+
|
|
170
|
+
# conversion for is_dry_run [type = boolean]
|
|
171
|
+
@is_dry_run = j_obj.is_dry_run
|
|
172
|
+
if @is_dry_run.nil?
|
|
173
|
+
@is_dry_run = false
|
|
174
|
+
else
|
|
175
|
+
tmp_bool = (@is_dry_run.java_kind_of? java.lang.Boolean) ? @is_dry_run.boolean_value : @is_dry_run
|
|
176
|
+
@is_dry_run = tmp_bool ? true : false
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
# conversion for is_rescheduled [type = boolean]
|
|
180
|
+
@is_rescheduled = j_obj.is_rescheduled
|
|
181
|
+
if @is_rescheduled.nil?
|
|
182
|
+
@is_rescheduled = false
|
|
183
|
+
else
|
|
184
|
+
tmp_bool = (@is_rescheduled.java_kind_of? java.lang.Boolean) ? @is_rescheduled.boolean_value : @is_rescheduled
|
|
185
|
+
@is_rescheduled = tmp_bool ? true : false
|
|
186
|
+
end
|
|
187
|
+
self
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
end
|
|
191
|
+
end
|
|
192
|
+
end
|
|
193
|
+
end
|
|
@@ -40,6 +40,37 @@ module Killbill
|
|
|
40
40
|
end
|
|
41
41
|
|
|
42
42
|
|
|
43
|
+
java_signature 'Java::org.killbill.billing.invoice.plugin.api.PriorInvoiceResult priorCall(Java::org.killbill.billing.invoice.plugin.api.InvoiceContext, Java::java.lang.Iterable)'
|
|
44
|
+
def prior_call(context, properties)
|
|
45
|
+
|
|
46
|
+
# conversion for context [type = org.killbill.billing.invoice.plugin.api.InvoiceContext]
|
|
47
|
+
context = Killbill::Plugin::Model::InvoiceContext.new.to_ruby(context) unless context.nil?
|
|
48
|
+
|
|
49
|
+
# conversion for properties [type = java.lang.Iterable]
|
|
50
|
+
tmp = []
|
|
51
|
+
(properties.nil? ? [] : properties.iterator).each do |m|
|
|
52
|
+
# conversion for m [type = org.killbill.billing.payment.api.PluginProperty]
|
|
53
|
+
m = Killbill::Plugin::Model::PluginProperty.new.to_ruby(m) unless m.nil?
|
|
54
|
+
tmp << m
|
|
55
|
+
end
|
|
56
|
+
properties = tmp
|
|
57
|
+
begin
|
|
58
|
+
res = @delegate_plugin.prior_call(context, properties)
|
|
59
|
+
# conversion for res [type = org.killbill.billing.invoice.plugin.api.PriorInvoiceResult]
|
|
60
|
+
res = res.to_java unless res.nil?
|
|
61
|
+
return res
|
|
62
|
+
rescue Exception => e
|
|
63
|
+
message = "Failure in prior_call: #{e}"
|
|
64
|
+
unless e.backtrace.nil?
|
|
65
|
+
message = "#{message}\n#{e.backtrace.join("\n")}"
|
|
66
|
+
end
|
|
67
|
+
logger.warn message
|
|
68
|
+
raise Java::org.killbill.billing.payment.plugin.api.PaymentPluginApiException.new("prior_call failure", e.message)
|
|
69
|
+
ensure
|
|
70
|
+
@delegate_plugin.after_request
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
|
|
43
74
|
java_signature 'Java::java.util.List getAdditionalInvoiceItems(Java::org.killbill.billing.invoice.api.Invoice, Java::boolean, Java::java.lang.Iterable, Java::org.killbill.billing.util.callcontext.CallContext)'
|
|
44
75
|
def get_additional_invoice_items(invoice, dryRun, properties, context)
|
|
45
76
|
|
|
@@ -87,6 +118,68 @@ module Killbill
|
|
|
87
118
|
@delegate_plugin.after_request
|
|
88
119
|
end
|
|
89
120
|
end
|
|
121
|
+
|
|
122
|
+
java_signature 'Java::org.killbill.billing.invoice.plugin.api.OnSuccessInvoiceResult onSuccessCall(Java::org.killbill.billing.invoice.plugin.api.InvoiceContext, Java::java.lang.Iterable)'
|
|
123
|
+
def on_success_call(context, properties)
|
|
124
|
+
|
|
125
|
+
# conversion for context [type = org.killbill.billing.invoice.plugin.api.InvoiceContext]
|
|
126
|
+
context = Killbill::Plugin::Model::InvoiceContext.new.to_ruby(context) unless context.nil?
|
|
127
|
+
|
|
128
|
+
# conversion for properties [type = java.lang.Iterable]
|
|
129
|
+
tmp = []
|
|
130
|
+
(properties.nil? ? [] : properties.iterator).each do |m|
|
|
131
|
+
# conversion for m [type = org.killbill.billing.payment.api.PluginProperty]
|
|
132
|
+
m = Killbill::Plugin::Model::PluginProperty.new.to_ruby(m) unless m.nil?
|
|
133
|
+
tmp << m
|
|
134
|
+
end
|
|
135
|
+
properties = tmp
|
|
136
|
+
begin
|
|
137
|
+
res = @delegate_plugin.on_success_call(context, properties)
|
|
138
|
+
# conversion for res [type = org.killbill.billing.invoice.plugin.api.OnSuccessInvoiceResult]
|
|
139
|
+
res = res.to_java unless res.nil?
|
|
140
|
+
return res
|
|
141
|
+
rescue Exception => e
|
|
142
|
+
message = "Failure in on_success_call: #{e}"
|
|
143
|
+
unless e.backtrace.nil?
|
|
144
|
+
message = "#{message}\n#{e.backtrace.join("\n")}"
|
|
145
|
+
end
|
|
146
|
+
logger.warn message
|
|
147
|
+
raise Java::org.killbill.billing.payment.plugin.api.PaymentPluginApiException.new("on_success_call failure", e.message)
|
|
148
|
+
ensure
|
|
149
|
+
@delegate_plugin.after_request
|
|
150
|
+
end
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
java_signature 'Java::org.killbill.billing.invoice.plugin.api.OnFailureInvoiceResult onFailureCall(Java::org.killbill.billing.invoice.plugin.api.InvoiceContext, Java::java.lang.Iterable)'
|
|
154
|
+
def on_failure_call(context, properties)
|
|
155
|
+
|
|
156
|
+
# conversion for context [type = org.killbill.billing.invoice.plugin.api.InvoiceContext]
|
|
157
|
+
context = Killbill::Plugin::Model::InvoiceContext.new.to_ruby(context) unless context.nil?
|
|
158
|
+
|
|
159
|
+
# conversion for properties [type = java.lang.Iterable]
|
|
160
|
+
tmp = []
|
|
161
|
+
(properties.nil? ? [] : properties.iterator).each do |m|
|
|
162
|
+
# conversion for m [type = org.killbill.billing.payment.api.PluginProperty]
|
|
163
|
+
m = Killbill::Plugin::Model::PluginProperty.new.to_ruby(m) unless m.nil?
|
|
164
|
+
tmp << m
|
|
165
|
+
end
|
|
166
|
+
properties = tmp
|
|
167
|
+
begin
|
|
168
|
+
res = @delegate_plugin.on_failure_call(context, properties)
|
|
169
|
+
# conversion for res [type = org.killbill.billing.invoice.plugin.api.OnFailureInvoiceResult]
|
|
170
|
+
res = res.to_java unless res.nil?
|
|
171
|
+
return res
|
|
172
|
+
rescue Exception => e
|
|
173
|
+
message = "Failure in on_failure_call: #{e}"
|
|
174
|
+
unless e.backtrace.nil?
|
|
175
|
+
message = "#{message}\n#{e.backtrace.join("\n")}"
|
|
176
|
+
end
|
|
177
|
+
logger.warn message
|
|
178
|
+
raise Java::org.killbill.billing.payment.plugin.api.PaymentPluginApiException.new("on_failure_call failure", e.message)
|
|
179
|
+
ensure
|
|
180
|
+
@delegate_plugin.after_request
|
|
181
|
+
end
|
|
182
|
+
end
|
|
90
183
|
end
|
|
91
184
|
end
|
|
92
185
|
end
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
#############################################################################################
|
|
2
|
+
# #
|
|
3
|
+
# Copyright 2010-2013 Ning, Inc. #
|
|
4
|
+
# Copyright 2014 Groupon, Inc. #
|
|
5
|
+
# Copyright 2014 The Billing Project, LLC #
|
|
6
|
+
# #
|
|
7
|
+
# The Billing Project licenses this file to you under the Apache License, version 2.0 #
|
|
8
|
+
# (the "License"); you may not use this file except in compliance with the #
|
|
9
|
+
# License. You may obtain a copy of the License at: #
|
|
10
|
+
# #
|
|
11
|
+
# http://www.apache.org/licenses/LICENSE-2.0 #
|
|
12
|
+
# #
|
|
13
|
+
# Unless required by applicable law or agreed to in writing, software #
|
|
14
|
+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT #
|
|
15
|
+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the #
|
|
16
|
+
# License for the specific language governing permissions and limitations #
|
|
17
|
+
# under the License. #
|
|
18
|
+
# #
|
|
19
|
+
#############################################################################################
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
#
|
|
23
|
+
# DO NOT EDIT!!!
|
|
24
|
+
# File automatically generated by killbill-java-parser (git@github.com:killbill/killbill-java-parser.git)
|
|
25
|
+
#
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
module Killbill
|
|
29
|
+
module Plugin
|
|
30
|
+
module Model
|
|
31
|
+
|
|
32
|
+
java_package 'org.killbill.billing.invoice.plugin.api'
|
|
33
|
+
class OnFailureInvoiceResult
|
|
34
|
+
|
|
35
|
+
include org.killbill.billing.invoice.plugin.api.OnFailureInvoiceResult
|
|
36
|
+
|
|
37
|
+
attr_accessor
|
|
38
|
+
|
|
39
|
+
def initialize()
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
def to_java()
|
|
43
|
+
self
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
def to_ruby(j_obj)
|
|
47
|
+
self
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
#############################################################################################
|
|
2
|
+
# #
|
|
3
|
+
# Copyright 2010-2013 Ning, Inc. #
|
|
4
|
+
# Copyright 2014 Groupon, Inc. #
|
|
5
|
+
# Copyright 2014 The Billing Project, LLC #
|
|
6
|
+
# #
|
|
7
|
+
# The Billing Project licenses this file to you under the Apache License, version 2.0 #
|
|
8
|
+
# (the "License"); you may not use this file except in compliance with the #
|
|
9
|
+
# License. You may obtain a copy of the License at: #
|
|
10
|
+
# #
|
|
11
|
+
# http://www.apache.org/licenses/LICENSE-2.0 #
|
|
12
|
+
# #
|
|
13
|
+
# Unless required by applicable law or agreed to in writing, software #
|
|
14
|
+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT #
|
|
15
|
+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the #
|
|
16
|
+
# License for the specific language governing permissions and limitations #
|
|
17
|
+
# under the License. #
|
|
18
|
+
# #
|
|
19
|
+
#############################################################################################
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
#
|
|
23
|
+
# DO NOT EDIT!!!
|
|
24
|
+
# File automatically generated by killbill-java-parser (git@github.com:killbill/killbill-java-parser.git)
|
|
25
|
+
#
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
module Killbill
|
|
29
|
+
module Plugin
|
|
30
|
+
module Model
|
|
31
|
+
|
|
32
|
+
java_package 'org.killbill.billing.invoice.plugin.api'
|
|
33
|
+
class OnSuccessInvoiceResult
|
|
34
|
+
|
|
35
|
+
include org.killbill.billing.invoice.plugin.api.OnSuccessInvoiceResult
|
|
36
|
+
|
|
37
|
+
attr_accessor
|
|
38
|
+
|
|
39
|
+
def initialize()
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
def to_java()
|
|
43
|
+
self
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
def to_ruby(j_obj)
|
|
47
|
+
self
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
#############################################################################################
|
|
2
|
+
# #
|
|
3
|
+
# Copyright 2010-2013 Ning, Inc. #
|
|
4
|
+
# Copyright 2014 Groupon, Inc. #
|
|
5
|
+
# Copyright 2014 The Billing Project, LLC #
|
|
6
|
+
# #
|
|
7
|
+
# The Billing Project licenses this file to you under the Apache License, version 2.0 #
|
|
8
|
+
# (the "License"); you may not use this file except in compliance with the #
|
|
9
|
+
# License. You may obtain a copy of the License at: #
|
|
10
|
+
# #
|
|
11
|
+
# http://www.apache.org/licenses/LICENSE-2.0 #
|
|
12
|
+
# #
|
|
13
|
+
# Unless required by applicable law or agreed to in writing, software #
|
|
14
|
+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT #
|
|
15
|
+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the #
|
|
16
|
+
# License for the specific language governing permissions and limitations #
|
|
17
|
+
# under the License. #
|
|
18
|
+
# #
|
|
19
|
+
#############################################################################################
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
#
|
|
23
|
+
# DO NOT EDIT!!!
|
|
24
|
+
# File automatically generated by killbill-java-parser (git@github.com:killbill/killbill-java-parser.git)
|
|
25
|
+
#
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
module Killbill
|
|
29
|
+
module Plugin
|
|
30
|
+
module Model
|
|
31
|
+
|
|
32
|
+
java_package 'org.killbill.billing.invoice.plugin.api'
|
|
33
|
+
class PriorInvoiceResult
|
|
34
|
+
|
|
35
|
+
include org.killbill.billing.invoice.plugin.api.PriorInvoiceResult
|
|
36
|
+
|
|
37
|
+
attr_accessor :is_aborted, :reschedule_date
|
|
38
|
+
|
|
39
|
+
def initialize()
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
def to_java()
|
|
43
|
+
# conversion for is_aborted [type = boolean]
|
|
44
|
+
@is_aborted = @is_aborted.nil? ? java.lang.Boolean.new(false) : java.lang.Boolean.new(@is_aborted)
|
|
45
|
+
|
|
46
|
+
# conversion for reschedule_date [type = org.joda.time.DateTime]
|
|
47
|
+
if !@reschedule_date.nil?
|
|
48
|
+
@reschedule_date = (@reschedule_date.kind_of? Time) ? DateTime.parse(@reschedule_date.to_s) : @reschedule_date
|
|
49
|
+
@reschedule_date = Java::org.joda.time.DateTime.new(@reschedule_date.to_s, Java::org.joda.time.DateTimeZone::UTC)
|
|
50
|
+
end
|
|
51
|
+
self
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
def to_ruby(j_obj)
|
|
55
|
+
# conversion for is_aborted [type = boolean]
|
|
56
|
+
@is_aborted = j_obj.is_aborted
|
|
57
|
+
if @is_aborted.nil?
|
|
58
|
+
@is_aborted = false
|
|
59
|
+
else
|
|
60
|
+
tmp_bool = (@is_aborted.java_kind_of? java.lang.Boolean) ? @is_aborted.boolean_value : @is_aborted
|
|
61
|
+
@is_aborted = tmp_bool ? true : false
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
# conversion for reschedule_date [type = org.joda.time.DateTime]
|
|
65
|
+
@reschedule_date = j_obj.reschedule_date
|
|
66
|
+
if !@reschedule_date.nil?
|
|
67
|
+
fmt = Java::org.joda.time.format.ISODateTimeFormat.date_time_no_millis # See https://github.com/killbill/killbill-java-parser/issues/3
|
|
68
|
+
str = fmt.print(@reschedule_date)
|
|
69
|
+
@reschedule_date = DateTime.iso8601(str)
|
|
70
|
+
end
|
|
71
|
+
self
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
end
|
|
@@ -58,3 +58,7 @@ require 'killbill/gen/plugin-api/entitlement_plugin_api_exception'
|
|
|
58
58
|
require 'killbill/gen/plugin-api/payment_transaction_info_plugin'
|
|
59
59
|
require 'killbill/gen/plugin-api/hosted_payment_page_form_descriptor'
|
|
60
60
|
require 'killbill/gen/plugin-api/gateway_notification'
|
|
61
|
+
require 'killbill/gen/plugin-api/invoice_context'
|
|
62
|
+
require 'killbill/gen/plugin-api/on_failure_invoice_result'
|
|
63
|
+
require 'killbill/gen/plugin-api/on_success_invoice_result'
|
|
64
|
+
require 'killbill/gen/plugin-api/prior_invoice_result'
|
|
@@ -49,15 +49,15 @@ module Killbill
|
|
|
49
49
|
end
|
|
50
50
|
end
|
|
51
51
|
|
|
52
|
-
def authorize_payment(kb_account_id, kb_payment_id, kb_payment_transaction_id, kb_payment_method_id, amount, currency, properties, context)
|
|
52
|
+
def authorize_payment(kb_account_id, kb_payment_id, kb_payment_transaction_id, kb_payment_method_id, amount, currency, properties, context, extra_params = {})
|
|
53
53
|
gateway_call_proc = Proc.new do |gateway, linked_transaction, payment_source, amount_in_cents, options|
|
|
54
54
|
gateway.authorize(amount_in_cents, payment_source, options)
|
|
55
55
|
end
|
|
56
56
|
|
|
57
|
-
dispatch_to_gateways(:authorize, kb_account_id, kb_payment_id, kb_payment_transaction_id, kb_payment_method_id, amount, currency, properties, context, gateway_call_proc)
|
|
57
|
+
dispatch_to_gateways(:authorize, kb_account_id, kb_payment_id, kb_payment_transaction_id, kb_payment_method_id, amount, currency, properties, context, gateway_call_proc, nil, extra_params)
|
|
58
58
|
end
|
|
59
59
|
|
|
60
|
-
def capture_payment(kb_account_id, kb_payment_id, kb_payment_transaction_id, kb_payment_method_id, amount, currency, properties, context)
|
|
60
|
+
def capture_payment(kb_account_id, kb_payment_id, kb_payment_transaction_id, kb_payment_method_id, amount, currency, properties, context, extra_params = {})
|
|
61
61
|
gateway_call_proc = Proc.new do |gateway, linked_transaction, payment_source, amount_in_cents, options|
|
|
62
62
|
gateway.capture(amount_in_cents, linked_transaction.txn_id, options)
|
|
63
63
|
end
|
|
@@ -69,18 +69,18 @@ module Killbill
|
|
|
69
69
|
last_authorization
|
|
70
70
|
end
|
|
71
71
|
|
|
72
|
-
dispatch_to_gateways(:capture, kb_account_id, kb_payment_id, kb_payment_transaction_id, kb_payment_method_id, amount, currency, properties, context, gateway_call_proc, linked_transaction_proc)
|
|
72
|
+
dispatch_to_gateways(:capture, kb_account_id, kb_payment_id, kb_payment_transaction_id, kb_payment_method_id, amount, currency, properties, context, gateway_call_proc, linked_transaction_proc, extra_params)
|
|
73
73
|
end
|
|
74
74
|
|
|
75
|
-
def purchase_payment(kb_account_id, kb_payment_id, kb_payment_transaction_id, kb_payment_method_id, amount, currency, properties, context)
|
|
75
|
+
def purchase_payment(kb_account_id, kb_payment_id, kb_payment_transaction_id, kb_payment_method_id, amount, currency, properties, context, extra_params = {})
|
|
76
76
|
gateway_call_proc = Proc.new do |gateway, linked_transaction, payment_source, amount_in_cents, options|
|
|
77
77
|
gateway.purchase(amount_in_cents, payment_source, options)
|
|
78
78
|
end
|
|
79
79
|
|
|
80
|
-
dispatch_to_gateways(:purchase, kb_account_id, kb_payment_id, kb_payment_transaction_id, kb_payment_method_id, amount, currency, properties, context, gateway_call_proc)
|
|
80
|
+
dispatch_to_gateways(:purchase, kb_account_id, kb_payment_id, kb_payment_transaction_id, kb_payment_method_id, amount, currency, properties, context, gateway_call_proc, nil, extra_params)
|
|
81
81
|
end
|
|
82
82
|
|
|
83
|
-
def void_payment(kb_account_id, kb_payment_id, kb_payment_transaction_id, kb_payment_method_id, properties, context)
|
|
83
|
+
def void_payment(kb_account_id, kb_payment_id, kb_payment_transaction_id, kb_payment_method_id, properties, context, extra_params = {})
|
|
84
84
|
gateway_call_proc = Proc.new do |gateway, linked_transaction, payment_source, amount_in_cents, options|
|
|
85
85
|
authorization = linked_transaction.txn_id
|
|
86
86
|
|
|
@@ -99,18 +99,18 @@ module Killbill
|
|
|
99
99
|
@transaction_model.find_candidate_transaction_for_void(kb_payment_id, context.tenant_id, linked_transaction_type)
|
|
100
100
|
end
|
|
101
101
|
|
|
102
|
-
dispatch_to_gateways(:void, kb_account_id, kb_payment_id, kb_payment_transaction_id, kb_payment_method_id, nil, nil, properties, context, gateway_call_proc, linked_transaction_proc)
|
|
102
|
+
dispatch_to_gateways(:void, kb_account_id, kb_payment_id, kb_payment_transaction_id, kb_payment_method_id, nil, nil, properties, context, gateway_call_proc, linked_transaction_proc, extra_params)
|
|
103
103
|
end
|
|
104
104
|
|
|
105
|
-
def credit_payment(kb_account_id, kb_payment_id, kb_payment_transaction_id, kb_payment_method_id, amount, currency, properties, context)
|
|
105
|
+
def credit_payment(kb_account_id, kb_payment_id, kb_payment_transaction_id, kb_payment_method_id, amount, currency, properties, context, extra_params = {})
|
|
106
106
|
gateway_call_proc = Proc.new do |gateway, linked_transaction, payment_source, amount_in_cents, options|
|
|
107
107
|
gateway.credit(amount_in_cents, payment_source, options)
|
|
108
108
|
end
|
|
109
109
|
|
|
110
|
-
dispatch_to_gateways(:credit, kb_account_id, kb_payment_id, kb_payment_transaction_id, kb_payment_method_id, amount, currency, properties, context, gateway_call_proc)
|
|
110
|
+
dispatch_to_gateways(:credit, kb_account_id, kb_payment_id, kb_payment_transaction_id, kb_payment_method_id, amount, currency, properties, context, gateway_call_proc, nil, extra_params)
|
|
111
111
|
end
|
|
112
112
|
|
|
113
|
-
def refund_payment(kb_account_id, kb_payment_id, kb_payment_transaction_id, kb_payment_method_id, amount, currency, properties, context)
|
|
113
|
+
def refund_payment(kb_account_id, kb_payment_id, kb_payment_transaction_id, kb_payment_method_id, amount, currency, properties, context, extra_params = {})
|
|
114
114
|
gateway_call_proc = Proc.new do |gateway, linked_transaction, payment_source, amount_in_cents, options|
|
|
115
115
|
gateway.refund(amount_in_cents, linked_transaction.txn_id, options)
|
|
116
116
|
end
|
|
@@ -123,7 +123,7 @@ module Killbill
|
|
|
123
123
|
transaction
|
|
124
124
|
end
|
|
125
125
|
|
|
126
|
-
dispatch_to_gateways(:refund, kb_account_id, kb_payment_id, kb_payment_transaction_id, kb_payment_method_id, amount, currency, properties, context, gateway_call_proc, linked_transaction_proc)
|
|
126
|
+
dispatch_to_gateways(:refund, kb_account_id, kb_payment_id, kb_payment_transaction_id, kb_payment_method_id, amount, currency, properties, context, gateway_call_proc, linked_transaction_proc, extra_params)
|
|
127
127
|
end
|
|
128
128
|
|
|
129
129
|
def get_payment_info(kb_account_id, kb_payment_id, properties, context)
|
data/lib/killbill/version.rb
CHANGED
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: 9.2.
|
|
4
|
+
version: 9.2.2
|
|
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: 2018-03-
|
|
11
|
+
date: 2018-03-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -532,14 +532,17 @@ files:
|
|
|
532
532
|
- lib/killbill/gen/plugin-api/ext_bus_event.rb
|
|
533
533
|
- lib/killbill/gen/plugin-api/gateway_notification.rb
|
|
534
534
|
- lib/killbill/gen/plugin-api/hosted_payment_page_form_descriptor.rb
|
|
535
|
+
- lib/killbill/gen/plugin-api/invoice_context.rb
|
|
535
536
|
- lib/killbill/gen/plugin-api/invoice_payment_metadata.rb
|
|
536
537
|
- lib/killbill/gen/plugin-api/invoice_plugin_api.rb
|
|
537
538
|
- lib/killbill/gen/plugin-api/invoice_plugin_api_retry_exception.rb
|
|
538
539
|
- lib/killbill/gen/plugin-api/notification_plugin_api.rb
|
|
539
540
|
- lib/killbill/gen/plugin-api/notification_plugin_api_retry_exception.rb
|
|
540
541
|
- lib/killbill/gen/plugin-api/on_failure_entitlement_result.rb
|
|
542
|
+
- lib/killbill/gen/plugin-api/on_failure_invoice_result.rb
|
|
541
543
|
- lib/killbill/gen/plugin-api/on_failure_payment_control_result.rb
|
|
542
544
|
- lib/killbill/gen/plugin-api/on_success_entitlement_result.rb
|
|
545
|
+
- lib/killbill/gen/plugin-api/on_success_invoice_result.rb
|
|
543
546
|
- lib/killbill/gen/plugin-api/on_success_payment_control_result.rb
|
|
544
547
|
- lib/killbill/gen/plugin-api/payment_control_api_exception.rb
|
|
545
548
|
- lib/killbill/gen/plugin-api/payment_control_context.rb
|
|
@@ -550,6 +553,7 @@ files:
|
|
|
550
553
|
- lib/killbill/gen/plugin-api/payment_plugin_api_exception.rb
|
|
551
554
|
- lib/killbill/gen/plugin-api/payment_transaction_info_plugin.rb
|
|
552
555
|
- lib/killbill/gen/plugin-api/prior_entitlement_result.rb
|
|
556
|
+
- lib/killbill/gen/plugin-api/prior_invoice_result.rb
|
|
553
557
|
- lib/killbill/gen/plugin-api/prior_payment_control_result.rb
|
|
554
558
|
- lib/killbill/gen/plugin-api/require_gen.rb
|
|
555
559
|
- lib/killbill/gen/plugin-api/standalone_plugin_catalog.rb
|