killbill-orbital 0.1.17 → 0.1.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/orbital/api.rb +4 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a84f93dde501806b7e3dc898846cbba49ed85646
|
4
|
+
data.tar.gz: d64dc466c2689b610129d5172b61cde4e106023a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e968c2b0a4b5b0e7af1cdeb89c7826e7c778c14501225b16e3127dba2dc0460c3a90e7bb0ee3a3b971cdfd2b7d7be576694c1bb236843144a876d87e12fcfcc0
|
7
|
+
data.tar.gz: 01cee3bf478256ae9af46cb609e433d2c2d83176b5de4a371b1ffb8dc471732c3872abff6c6dac593d53a021e426ce605e050e7c09a6f3fb4aa5a479a57d19f0
|
data/lib/orbital/api.rb
CHANGED
@@ -74,9 +74,10 @@ module Killbill #:nodoc:
|
|
74
74
|
end
|
75
75
|
|
76
76
|
def refund_payment(kb_account_id, kb_payment_id, kb_payment_transaction_id, kb_payment_method_id, amount, currency, properties, context)
|
77
|
-
|
78
|
-
|
79
|
-
|
77
|
+
credit_opts = properties_to_hash(properties)
|
78
|
+
if should_credit?(kb_payment_id, context, credit_opts)
|
79
|
+
# Note: from the plugin perspective, this transaction is a CREDIT but Kill Bill doesn't care about PaymentTransactionInfoPlugin#TransactionType
|
80
|
+
return credit_payment(kb_account_id, kb_payment_id, kb_payment_transaction_id, kb_payment_method_id, amount, currency, hash_to_properties(credit_opts), context)
|
80
81
|
end
|
81
82
|
# Pass extra parameters for the gateway here
|
82
83
|
options = {}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: killbill-orbital
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.18
|
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: 2019-09-
|
11
|
+
date: 2019-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|