rock_rms 6.0.1 → 6.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d62174e5f930871eb31adf696902a1d2ce038aea33439609d0c1a62fa5db5163
4
- data.tar.gz: 68b82d19df797b7f65f7b86c4465653f7702bda8ecfba54a5100aec5ca318d17
3
+ metadata.gz: 0c860673f10c0a690acb6b028347d8a1710ccb53b014a096103060cdc93a914e
4
+ data.tar.gz: 31960073bd5ae7af6ce63e2a83b559f7377a07f2fdfadcc265e02cb8ca3136a0
5
5
  SHA512:
6
- metadata.gz: 9776eaeb73263e684ccdb9f58fef16a92f2d17b1ae7f54f4f55df4026c0789346fcbf043e6c6757238130b6b61dc7bcdffbf02c26abc7442045581915e51d79f
7
- data.tar.gz: 81bcc9e6cb711b4aef9627e0097c9067c080978eb182dd86edb399ba461be700ff8c3bc8901872e89020cd30c8698421b46822497b4e79c9f0e52194c7d5aa63
6
+ metadata.gz: d5fdcfeec02a400267129f701274df44eceaf98e5a8f28bf36acf96967ec7306cea4afc764d886babde61d326b677ad998e4f9a2d4de9557eb5758e3158db880
7
+ data.tar.gz: 32ce26f879b8f55ccbb748c29765da3c9df53284a7f0eb4a26422492643dfa03a9620359467d57c3b5f434b336733ec8d9f34a6f99cf0c25b21a727573a9d965
@@ -86,7 +86,8 @@ module RockRMS
86
86
  funds.map do |fund|
87
87
  {
88
88
  'Amount' => fund[:amount],
89
- 'AccountId' => fund[:fund_id]
89
+ 'AccountId' => fund[:fund_id],
90
+ 'FeeCoverageAmount' => fund[:fee_coverage_amount]
90
91
  }
91
92
  end
92
93
  end
@@ -22,10 +22,11 @@ module RockRMS
22
22
  delete(recurring_donation_detail_path(id))
23
23
  end
24
24
 
25
- def update_recurring_donation_detail(id, fund_id: nil, amount: nil)
25
+ def update_recurring_donation_detail(id, fund_id: nil, amount: nil, fee_coverage_amount: nil)
26
26
  options = {}
27
27
  options['AccountId'] = fund_id if fund_id
28
28
  options['Amount'] = amount if amount
29
+ options['FeeCoverageAmount'] = fee_coverage_amount if fee_coverage_amount
29
30
 
30
31
  patch(recurring_donation_detail_path(id), options)
31
32
  end
@@ -57,7 +57,8 @@ module RockRMS
57
57
  source_type_id: nil,
58
58
  transaction_code: nil,
59
59
  transaction_type_value_id: nil,
60
- authorized_person_id: nil
60
+ authorized_person_id: nil,
61
+ date: nil
61
62
  )
62
63
  options = {}
63
64
 
@@ -69,6 +70,7 @@ module RockRMS
69
70
  options['TransactionTypeValueId'] = transaction_type_value_id if transaction_type_value_id
70
71
  options['TransactionCode'] = transaction_code if transaction_code
71
72
  options['AuthorizedPersonAliasId'] = authorized_person_id if authorized_person_id
73
+ options['TransactionDateTime'] = date if date
72
74
 
73
75
  patch(transaction_path(id), options)
74
76
  end
@@ -99,7 +101,9 @@ module RockRMS
99
101
  'Amount' => fund[:amount],
100
102
  'AccountId' => fund[:fund_id],
101
103
  'EntityTypeId' => fund[:entity_type_id],
102
- 'EntityId' => fund[:entity_id]
104
+ 'EntityId' => fund[:entity_id],
105
+ 'FeeAmount' => fund[:fee_amount],
106
+ 'FeeCoverageAmount' => fund[:fee_coverage_amount]
103
107
  }
104
108
  end
105
109
  end
@@ -21,12 +21,12 @@ module RockRMS
21
21
  entity_id: nil
22
22
  )
23
23
  options = {}
24
- options['AccountId'] = fund_id if fund_id
25
- options['Amount'] = amount if amount
26
- options['FeeAmount'] = fee_amount if fee_amount
27
- options['FeeCoverageAmount'] = fee_amount if fee_amount
28
- options['EntityTypeId'] = entity_type_id if entity_type_id
29
- options['EntityId'] = entity_id if entity_id
24
+ options['AccountId'] = fund_id if fund_id
25
+ options['Amount'] = amount if amount
26
+ options['FeeAmount'] = fee_amount if fee_amount
27
+ options['EntityTypeId'] = entity_type_id if entity_type_id
28
+ options['EntityId'] = entity_id if entity_id
29
+ options['FeeCoverageAmount'] = fee_coverage_amount if fee_coverage_amount
30
30
 
31
31
  patch(transaction_detail_path(id), options)
32
32
  end
@@ -4,6 +4,7 @@ module RockRMS
4
4
  MAP = {
5
5
  id: 'Id',
6
6
  amount: 'Amount',
7
+ fee_coverage_amount: 'FeeCoverageAmount',
7
8
  fund_id: 'AccountId',
8
9
  entity_type_id: 'EntityTypeId',
9
10
  entity_id: 'EntityId'
@@ -4,6 +4,7 @@ module RockRMS
4
4
  MAP = {
5
5
  id: 'Id',
6
6
  fee_amount: 'FeeAmount',
7
+ fee_coverage_amount: 'FeeCoverageAmount',
7
8
  fund: 'Account',
8
9
  fund_id: 'AccountId',
9
10
  amount: 'Amount',
@@ -1,3 +1,3 @@
1
1
  module RockRMS
2
- VERSION = '6.0.1'.freeze
2
+ VERSION = '6.0.5'.freeze
3
3
  end
@@ -139,7 +139,7 @@ RSpec.describe RockRMS::Client::RecurringDonation, type: :model do
139
139
  'FinancialGatewayId' => nil,
140
140
  'FinancialPaymentDetailId' => nil,
141
141
  'TransactionCode' => 'asdf',
142
- 'ScheduledTransactionDetails' => [{ 'Amount' => 450, 'AccountId' => 2, 'EntityId' => nil, 'EntityTypeId' => nil }],
142
+ 'ScheduledTransactionDetails' => [{ 'Amount' => 450, 'AccountId' => 2, 'EntityId' => nil, 'EntityTypeId' => nil, 'FeeAmount' => nil, 'FeeCoverageAmount' => nil}],
143
143
  'GatewayScheduleId' => nil,
144
144
  'SourceTypeValueId' => 10,
145
145
  'ForeignKey' => nil
@@ -62,7 +62,7 @@ RSpec.describe RockRMS::Client::TransactionDetail, type: :model do
62
62
  123,
63
63
  fund_id: 2,
64
64
  fee_amount: 50,
65
- fee_coverage_amount: 50
65
+ fee_coverage_amount: 45
66
66
  )
67
67
  end
68
68
 
@@ -71,7 +71,7 @@ RSpec.describe RockRMS::Client::TransactionDetail, type: :model do
71
71
  .with(
72
72
  'FinancialTransactionDetails/123',
73
73
  'FeeAmount' => 50,
74
- 'FeeCoverageAmount' => 50,
74
+ 'FeeCoverageAmount' => 45,
75
75
  'AccountId' => 2
76
76
  ).and_call_original
77
77
  resource
@@ -85,7 +85,7 @@ RSpec.describe RockRMS::Client::Transaction, type: :model do
85
85
  'FinancialPaymentDetailId' => 1,
86
86
  'TransactionCode' => 'asdf',
87
87
  'TransactionDateTime' => 1,
88
- 'TransactionDetails' => [{ 'Amount' => 450, 'AccountId' => 2, 'EntityTypeId' => nil, 'EntityId' => nil }],
88
+ 'TransactionDetails' => [{ 'Amount' => 450, 'AccountId' => 2, 'EntityTypeId' => nil, 'EntityId' => nil, 'FeeAmount' => nil, 'FeeCoverageAmount' => nil }],
89
89
  'TransactionTypeValueId' => 53,
90
90
  'SourceTypeValueId' => 10,
91
91
  'Summary' => 'taco tuesday'
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: 6.0.1
4
+ version: 6.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Taylor Brooks
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-13 00:00:00.000000000 Z
11
+ date: 2022-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday