rock_rms 9.25.0 → 9.26.0

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
  SHA256:
3
- metadata.gz: 6a526e06dab239aa5506ad7e2be719ae9ce5856c7008374ea34f159631eaf931
4
- data.tar.gz: af800031a38dc74df61c74b7fd09bc8b0978b3ab880e67e074f73b0f1de9d14c
3
+ metadata.gz: 27aea9ecae372a67fda74526dd9a6e15786a35a3209ae273650763a0e6cc00e2
4
+ data.tar.gz: f66647868cdea81d844eec9a681b43a1837a28823d291bf2ed6b09fd29c4481d
5
5
  SHA512:
6
- metadata.gz: ac5d35e8736fc70a0d4e0fd3a81f2c243f2e60407703772dff2f8e8a21f35a51e58187c890c362c2cb2e60044de62b8998fefd2bd899f6d32c4dcbae026f2bac
7
- data.tar.gz: 0e030dea46f07e7cb6616850ada083c34d4af3ab73df757451cd40fd670dd3f99ba21d432d331ada15bd18e0312ad6759437517be29e30f73a860fbd5194ad07
6
+ metadata.gz: 65eba1ea739976c7cfe396623d2f0ae5bd563791c5e6a0a8a4abbdc61bd466d13c94da117c1aeeafb1be78f471d1efd5608d20da21048bd2b4319910ea50c1e6
7
+ data.tar.gz: 4c5c66491bf5db10c65110d291546beff15fe5ebf81eeeae89f3d527a1b967185995c652e9ec29825465f7b0f8b1093fc6aa8154e66df786a275713512377e9d
@@ -6,6 +6,8 @@ module RockRMS
6
6
  def create_recurring_donation_detail(
7
7
  recurring_donation_id:,
8
8
  fee_coverage_amount: nil,
9
+ entity_type_id: nil,
10
+ entity_id: nil,
9
11
  fund_id:,
10
12
  amount:
11
13
  )
@@ -16,6 +18,8 @@ module RockRMS
16
18
  }
17
19
 
18
20
  options['FeeCoverageAmount'] = fee_coverage_amount if fee_coverage_amount
21
+ options['EntityTypeId'] = entity_type_id if entity_type_id
22
+ options['EntityId'] = entity_id if entity_id
19
23
 
20
24
  post(recurring_donation_detail_path, options)
21
25
  end
@@ -24,11 +28,13 @@ module RockRMS
24
28
  delete(recurring_donation_detail_path(id))
25
29
  end
26
30
 
27
- def update_recurring_donation_detail(id, fund_id: nil, amount: nil, fee_coverage_amount: nil)
31
+ def update_recurring_donation_detail(id, fund_id: nil, amount: nil, fee_coverage_amount: nil, entity_type_id: nil, entity_id: nil)
28
32
  options = {}
29
33
  options['AccountId'] = fund_id if fund_id
30
34
  options['Amount'] = amount if amount
31
35
  options['FeeCoverageAmount'] = fee_coverage_amount if fee_coverage_amount
36
+ options['EntityTypeId'] = entity_type_id if entity_type_id
37
+ options['EntityId'] = entity_id if entity_id
32
38
 
33
39
  patch(recurring_donation_detail_path(id), options)
34
40
  end
@@ -1,3 +1,3 @@
1
1
  module RockRMS
2
- VERSION = '9.25.0'.freeze
2
+ VERSION = '9.26.0'.freeze
3
3
  end
@@ -20,13 +20,25 @@ RSpec.describe RockRMS::Client::RecurringDonationDetail, type: :model do
20
20
  .to raise_error(ArgumentError, /recurring_donation_id/)
21
21
  end
22
22
 
23
+ it 'allows `entity_type_id` and `entity_id`' do
24
+ expect { client.create_recurring_donation_detail(
25
+ fund_id: 1,
26
+ amount: 5.00,
27
+ recurring_donation_id: 1,
28
+ entity_type_id: 1,
29
+ entity_id: 123
30
+ ) }.not_to raise_error
31
+ end
32
+
23
33
  end
24
34
 
25
35
  subject(:resource) do
26
36
  client.create_recurring_donation_detail(
27
37
  fund_id: 1,
28
38
  amount: 5.00,
29
- recurring_donation_id: 1
39
+ recurring_donation_id: 1,
40
+ entity_type_id: 1,
41
+ entity_id: 123
30
42
  )
31
43
  end
32
44
 
@@ -42,6 +54,8 @@ RSpec.describe RockRMS::Client::RecurringDonationDetail, type: :model do
42
54
  'AccountId' => 1,
43
55
  'ScheduledTransactionId' => 1,
44
56
  'Amount' => 5.00,
57
+ 'EntityTypeId' => 1,
58
+ 'EntityId' => 123
45
59
  }
46
60
  )
47
61
  .and_call_original
@@ -54,7 +68,9 @@ RSpec.describe RockRMS::Client::RecurringDonationDetail, type: :model do
54
68
  client.update_recurring_donation_detail(
55
69
  123,
56
70
  fund_id: 2,
57
- amount: 100.0
71
+ amount: 100.0,
72
+ entity_type_id: 1,
73
+ entity_id: 123
58
74
  )
59
75
  end
60
76
 
@@ -68,7 +84,9 @@ RSpec.describe RockRMS::Client::RecurringDonationDetail, type: :model do
68
84
  'FinancialScheduledTransactionDetails/123',
69
85
  {
70
86
  'AccountId' => 2,
71
- 'Amount' => 100.0
87
+ 'Amount' => 100.0,
88
+ 'EntityTypeId' => 1,
89
+ 'EntityId' => 123
72
90
  }
73
91
  ).and_call_original
74
92
  resource
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: 9.25.0
4
+ version: 9.26.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Taylor Brooks
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-10-23 00:00:00.000000000 Z
11
+ date: 2025-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday