rock_rms 6.0.3 → 6.0.6

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: 1e4f3c74008fb007410ec62c7762913304cbfc0141e1a017b20a6256a348e257
4
- data.tar.gz: 250452aea3db67e7c07105f1c6f3434312d60778b45a5b35e997bb75f8e27565
3
+ metadata.gz: 20e7d7e1e833ece1a5641e1a74ee0b6240ec4ce8a512c8b7fe973adc3780339c
4
+ data.tar.gz: 8391948e2cd15912b483d6a819302ac41d0035381dc5a5518a1df22b4c928acb
5
5
  SHA512:
6
- metadata.gz: 896053a39d2f04344275040f71ab0265ece50ba5925994ed5a2b0bd551dc3b07614f58624b44796c874fdb44c79267d328a7c617f0c9fa1ce993c8a748f44ad0
7
- data.tar.gz: a4f8ddc5a6b4325e972fb30270d122857d4ea6a74e2db0a9ccb6d82e141c43666ac28ca6da23b2be40f230c8bd671c471104cb69f0e5d9c1eacfe75af31dbb08
6
+ metadata.gz: 687e8a8a571e589abe59a181ea509cc69987fe498ad55f4196b0e10fd6738fa907f40615d36e81e9371d15236db61c6f67db7c5c61be27b92bb48c5e78e15c9e
7
+ data.tar.gz: 573f11a04dbe380cf2383ea803f09df6b608068d595f3dc1e04d72be81729f1b518390a72b269f26f0e95499c33d73560669389672487847d0295b0689d87099
@@ -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
@@ -5,16 +5,18 @@ module RockRMS
5
5
  module RecurringDonationDetail
6
6
  def create_recurring_donation_detail(
7
7
  recurring_donation_id:,
8
+ fee_coverage_amount: nil,
8
9
  fund_id:,
9
10
  amount:
10
11
  )
11
-
12
12
  options = {
13
13
  'AccountId' => fund_id,
14
14
  'Amount' => amount,
15
15
  'ScheduledTransactionId' => recurring_donation_id
16
16
  }
17
17
 
18
+ options['FeeCoverageAmount'] = fee_coverage_amount if fee_coverage_amount
19
+
18
20
  post(recurring_donation_detail_path, options)
19
21
  end
20
22
 
@@ -22,10 +24,11 @@ module RockRMS
22
24
  delete(recurring_donation_detail_path(id))
23
25
  end
24
26
 
25
- def update_recurring_donation_detail(id, fund_id: nil, amount: nil)
27
+ def update_recurring_donation_detail(id, fund_id: nil, amount: nil, fee_coverage_amount: nil)
26
28
  options = {}
27
29
  options['AccountId'] = fund_id if fund_id
28
30
  options['Amount'] = amount if amount
31
+ options['FeeCoverageAmount'] = fee_coverage_amount if fee_coverage_amount
29
32
 
30
33
  patch(recurring_donation_detail_path(id), options)
31
34
  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
@@ -100,7 +102,8 @@ module RockRMS
100
102
  'AccountId' => fund[:fund_id],
101
103
  'EntityTypeId' => fund[:entity_type_id],
102
104
  'EntityId' => fund[:entity_id],
103
- 'FeeAmount' => fund[:fee_amount]
105
+ 'FeeAmount' => fund[:fee_amount],
106
+ 'FeeCoverageAmount' => fund[:fee_coverage_amount]
104
107
  }
105
108
  end
106
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['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
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.3'.freeze
2
+ VERSION = '6.0.6'.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, 'FeeAmount' => 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
@@ -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, 'FeeAmount' => 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.3
4
+ version: 6.0.6
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-06-01 00:00:00.000000000 Z
11
+ date: 2022-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday