rock_rms 4.12.2 → 4.12.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 432ae9e7b2d83d7ae9382f5bf6984414869bba01
4
- data.tar.gz: e8eeda2e01daf8379e12d6e07220ff1a28114239
3
+ metadata.gz: e76ed6931e3e3ba5413bffaf4b69bec21f092cbf
4
+ data.tar.gz: 9bd81c05db0db677b8146f71be4a655d654f5154
5
5
  SHA512:
6
- metadata.gz: a3aff2259d538e71a6a7949578d5848dd1486834931c4edbf134524019986f88716bc558a801436c70c1bf9babdca14c4cab25d8bb5c6c11a1803c29c5c8fd8d
7
- data.tar.gz: 620e793ae3f3061cffd47090cbaa647a11bbec11a2e34286823d69ed9964668e5115ed79eeaea5bcf8fcfb0f6feb493049eb8fa72a64ae2fe780733429eb22ea
6
+ metadata.gz: 275b494aeb227aa922ba6571c74c29604350b882c02b0b65059e23cdd10aad21a10def601ed09b099cdb51c6f996b3cbd4c27487b07fa458b0549ee3d6b20c88
7
+ data.tar.gz: 5453d5327af4ae699e29e942ef53457f70981f2de4e910435d068e8002a8ffb64810d066452f3e188c402949af8fd20826fe4bbb1cece6763b2b3a426eba4de6
@@ -6,6 +6,7 @@ require 'faraday'
6
6
  module FaradayMiddleware
7
7
  class RockRMSErrorHandler < Faraday::Response::Middleware
8
8
  ERROR_STATUSES = 400..600
9
+
9
10
  def on_complete(env)
10
11
  case env[:status]
11
12
  when ERROR_STATUSES
@@ -56,17 +56,19 @@ module RockRMS
56
56
  gateway_id: nil,
57
57
  source_type_id: nil,
58
58
  transaction_code: nil,
59
- transaction_type_value_id: nil
59
+ transaction_type_value_id: nil,
60
+ authorized_person_id: nil
60
61
  )
61
62
  options = {}
62
63
 
63
64
  options['Summary'] = summary if summary
64
65
  options['BatchId'] = batch_id if batch_id
65
- options['FinancialGatewayId'] = gateway_id if gateway_id
66
- options['ScheduledTransactionId'] = recurring_donation_id if recurring_donation_id
67
- options['SourceTypeValueId'] = source_type_id if source_type_id
68
- options['TransactionTypeValueId'] = transaction_type_value_id if transaction_type_value_id
69
- options['TransactionCode'] = transaction_code if transaction_code
66
+ options['FinancialGatewayId'] = gateway_id if gateway_id
67
+ options['ScheduledTransactionId'] = recurring_donation_id if recurring_donation_id
68
+ options['SourceTypeValueId'] = source_type_id if source_type_id
69
+ options['TransactionTypeValueId'] = transaction_type_value_id if transaction_type_value_id
70
+ options['TransactionCode'] = transaction_code if transaction_code
71
+ options['AuthorizedPersonAliasId'] = authorized_person_id if authorized_person_id
70
72
 
71
73
  patch(transaction_path(id), options)
72
74
  end
@@ -1,3 +1,3 @@
1
1
  module RockRMS
2
- VERSION = '4.12.2'.freeze
2
+ VERSION = '4.12.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rock_rms
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.12.2
4
+ version: 4.12.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Taylor Brooks
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-25 00:00:00.000000000 Z
11
+ date: 2019-02-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday