rock_rms 4.2.1 → 4.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 44af2b305b68433973a5b341724f9617fc52583d
4
- data.tar.gz: 2981dedbe2d1ecd665b344e8317b0d533ee8b203
3
+ metadata.gz: 3e90e1496217895422ba3398235b5c3ea00e5eb3
4
+ data.tar.gz: 3c86bd6016a550c089ca371690458160af5229ea
5
5
  SHA512:
6
- metadata.gz: 768e57de15e953f8415619ad5831677cfa5ac9984c85a0fc25f9f91b116f68f4064a923eb16f9dc0b728eed0c53b59f2a48446d53dc044a3beb479cd30912ba4
7
- data.tar.gz: c9be8a5d9d000a0f1d26eb050c35fc7f4f0dae10453aad316bf13dec3f1ea2fede6145fa86d2c83bd0671dbc5bc6d7bddc248fb306bfc8480e8fff6a8239fd29
6
+ metadata.gz: 1340a42060b5bae82105076bc286e76a30528e42cfb9205f6224c6c1075d7954fad738303ef26b18041894fe206eab8e5eaebe6d341b71c941cc2ef4becf362a
7
+ data.tar.gz: 78a6b2e335a5a6e10a1b493fadbe2b6ff9bcd63f8795f30226c6e770b805caf6364a6aa273f6a19ddd93b49d35cfd2c7ae2626b891f98ad4f36d582f45bd6ad1
@@ -7,7 +7,8 @@ module RockRMS
7
7
  batch_id:,
8
8
  date:,
9
9
  reason_id:,
10
- transaction_id:
10
+ transaction_id:,
11
+ transaction_code: nil
11
12
  )
12
13
  old_transaction = list_transactions(
13
14
  '$expand' => 'TransactionDetails',
@@ -21,6 +22,7 @@ module RockRMS
21
22
  'AuthorizedPersonAliasId' => old_transaction[:person_id],
22
23
  'BatchId' => batch_id,
23
24
  'FinancialPaymentDetailId' => old_transaction[:payment_detail_id],
25
+ 'TransactionCode' => transaction_code,
24
26
  'TransactionDateTime' => date,
25
27
  'TransactionDetails' => translate_negative(old_transaction[:details]),
26
28
  'TransactionTypeValueId' => old_transaction[:transaction_type_id]
@@ -53,7 +53,8 @@ module RockRMS
53
53
  summary: nil,
54
54
  recurring_donation_id: nil,
55
55
  gateway_id: nil,
56
- source_type_id: nil
56
+ source_type_id: nil,
57
+ transaction_code: nil
57
58
  )
58
59
  options = {}
59
60
 
@@ -62,6 +63,7 @@ module RockRMS
62
63
  options['FinancialGatewayId'] = gateway_id if gateway_id
63
64
  options['ScheduledTransactionId'] = recurring_donation_id if recurring_donation_id
64
65
  options['SourceTypeValueId'] = source_type_id if source_type_id
66
+ options['TransactionCode'] = transaction_code if transaction_code
65
67
 
66
68
  patch(transaction_path(id), options)
67
69
  end
@@ -1,3 +1,3 @@
1
1
  module RockRMS
2
- VERSION = '4.2.1'.freeze
2
+ VERSION = '4.2.2'.freeze
3
3
  end
@@ -57,7 +57,8 @@ RSpec.describe RockRMS::Client::Refund, type: :model do
57
57
  'AccountId' => 23
58
58
  }
59
59
  ],
60
- 'TransactionTypeValueId' => 53
60
+ 'TransactionTypeValueId' => 53,
61
+ 'TransactionCode' => nil
61
62
  }
62
63
  )
63
64
  .and_call_original
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.2.1
4
+ version: 4.2.2
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-06-03 00:00:00.000000000 Z
11
+ date: 2018-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday