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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/orbital/api.rb +4 -3
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f14e1ae4b7b2bde781ca5fbe6e4dac361db5ca3d
4
- data.tar.gz: fd8982890fde3ff7a24a514a625aecc65421783e
3
+ metadata.gz: a84f93dde501806b7e3dc898846cbba49ed85646
4
+ data.tar.gz: d64dc466c2689b610129d5172b61cde4e106023a
5
5
  SHA512:
6
- metadata.gz: 685653b258fee88041ddbcd2e407bef5b12bb0511bf4a17a63300e65f9fed5c5c1764c1cc33bc85d2fed816bc58fae57c875b2e3fdf29ad98787bb670efbb67a
7
- data.tar.gz: eb071378582c5f1c88419c0dd2d442700f4a3516ab10496fe5c8d68abcc6e7c392b45b4da40dfb00d8e230b9d2280e71d8b7f3414b21dbf81b1cff307f67ecf0
6
+ metadata.gz: e968c2b0a4b5b0e7af1cdeb89c7826e7c778c14501225b16e3127dba2dc0460c3a90e7bb0ee3a3b971cdfd2b7d7be576694c1bb236843144a876d87e12fcfcc0
7
+ data.tar.gz: 01cee3bf478256ae9af46cb609e433d2c2d83176b5de4a371b1ffb8dc471732c3872abff6c6dac593d53a021e426ce605e050e7c09a6f3fb4aa5a479a57d19f0
@@ -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
- if should_credit?(kb_payment_id, context, properties)
78
- # Note: from the plugin perspective, this transaction is a CREDIT but Kill Bill doesn't care about PaymentTransactionInfoPlugin#TransactionType
79
- return credit_payment(kb_account_id, kb_payment_id, kb_payment_transaction_id, kb_payment_method_id, amount, currency, properties, context)
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.17
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-25 00:00:00.000000000 Z
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