rock_rms 9.29.0 → 9.30.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: 3af0a7f7841fff845acc3f5cbf01c983b017d103e688ec1bc6b128d1d6e4a0d9
4
- data.tar.gz: 3789f619adbd1ef691a0a16b1bdff15d456d5f121dca6ad611b698ad01475b5d
3
+ metadata.gz: 3c927ed27c77eb56fd88c4f3f6b14c73a322073589dc5de8789a3c668018c9f8
4
+ data.tar.gz: 80f0211f0f9d4a6ba0cec7a47f4dcaf1e693effada92bc9bb5fe2f40302051aa
5
5
  SHA512:
6
- metadata.gz: 2796642a76ed4132d98c73ebf0f97d30581c41cbf27768e0ad4a59e5d9aaa3ec0fb6f42692ff1ce8e882db154b45e6cefd7dc4837d70f4dd753deb96b6c6f6c0
7
- data.tar.gz: 8f12d267b8f742bae6e593079e78916d87847ab5d3151dc0d4368d0e3f11a8e2f3bc93fcb8a01dd828017a2cf3cad9bb2bea54d089f95727d2016788616fb21f
6
+ metadata.gz: 4c414905824d6e733253f0913900742ec97b497dbee63f94bfc6b873f18e1394dc8a2bda0a806e3f533a11642c9cd70674d04d2bb2f79a44989a31d44427708b
7
+ data.tar.gz: 0d27f4444df1f3e81ba2a46222f2a3aa447d498f0d0a5fb38e473c9148f19d793761e3cb01a4750824537abb817ec881892ce67ddac728109d77b0895f00a773
@@ -28,7 +28,8 @@ module RockRMS
28
28
  summary: nil,
29
29
  status: nil,
30
30
  status_message: nil,
31
- guid: nil
31
+ guid: nil,
32
+ transaction_type_value_id: nil
32
33
  )
33
34
 
34
35
  options = {
@@ -51,6 +52,7 @@ module RockRMS
51
52
 
52
53
  options['EndDate'] = end_date if end_date
53
54
  options['Guid'] = guid if guid
55
+ options['TransactionTypeValueId'] = transaction_type_value_id if transaction_type_value_id
54
56
 
55
57
  post(recurring_donation_path, options)
56
58
  end
@@ -66,7 +68,8 @@ module RockRMS
66
68
  end_date: nil,
67
69
  summary: nil,
68
70
  status: nil,
69
- status_message: :default_value
71
+ status_message: :default_value,
72
+ transaction_type_value_id: nil
70
73
  )
71
74
  options = { 'NextPaymentDate' => next_payment_date }
72
75
  options['FinancialPaymentDetailId'] = payment_detail_id if payment_detail_id
@@ -78,6 +81,7 @@ module RockRMS
78
81
  options['Summary'] = summary if summary
79
82
  options['Status'] = status if status
80
83
  options['StatusMessage'] = status_message unless status_message == :default_value
84
+ options['TransactionTypeValueId'] = transaction_type_value_id if transaction_type_value_id
81
85
 
82
86
  patch(recurring_donation_path(id), options)
83
87
  end
@@ -1,3 +1,3 @@
1
1
  module RockRMS
2
- VERSION = '9.29.0'.freeze
2
+ VERSION = '9.30.0'.freeze
3
3
  end
@@ -85,6 +85,25 @@ RSpec.describe RockRMS::Client::RecurringDonation, type: :model do
85
85
  expect(resource).to be_nil
86
86
  end
87
87
 
88
+ it 'updates transaction_type_value_id' do
89
+ expect(client).to receive(:patch)
90
+ .with(
91
+ 'FinancialScheduledTransactions/123',
92
+ {
93
+ 'NextPaymentDate' => '2018-01-01',
94
+ 'TransactionTypeValueId' => 54
95
+ }
96
+ ).and_call_original
97
+
98
+ resource = client.update_recurring_donation(
99
+ 123,
100
+ next_payment_date: '2018-01-01',
101
+ transaction_type_value_id: 54
102
+ )
103
+
104
+ expect(resource).to be_nil
105
+ end
106
+
88
107
  context 'arguments' do
89
108
  it 'require `id`' do
90
109
  expect { client.update_recurring_donation }
@@ -173,5 +192,42 @@ RSpec.describe RockRMS::Client::RecurringDonation, type: :model do
173
192
  .and_call_original
174
193
  resource
175
194
  end
195
+
196
+ it 'passes transaction_type_value_id when provided' do
197
+ expect(client).to receive(:post)
198
+ .with(
199
+ 'FinancialScheduledTransactions',
200
+ hash_including('TransactionTypeValueId' => 54)
201
+ )
202
+ .and_call_original
203
+
204
+ client.create_recurring_donation(
205
+ authorized_person_id: 1,
206
+ funds: [{ amount: 450, fund_id: 2 }],
207
+ transaction_code: 'asdf',
208
+ frequency: 'monthly',
209
+ next_payment_date: '2010-01-01',
210
+ start_date: '2010-01-01',
211
+ transaction_type_value_id: 54
212
+ )
213
+ end
214
+
215
+ it 'does not include TransactionTypeValueId when not provided' do
216
+ expect(client).to receive(:post)
217
+ .with(
218
+ 'FinancialScheduledTransactions',
219
+ hash_not_including('TransactionTypeValueId')
220
+ )
221
+ .and_call_original
222
+
223
+ client.create_recurring_donation(
224
+ authorized_person_id: 1,
225
+ funds: [{ amount: 450, fund_id: 2 }],
226
+ transaction_code: 'asdf',
227
+ frequency: 'monthly',
228
+ next_payment_date: '2010-01-01',
229
+ start_date: '2010-01-01'
230
+ )
231
+ end
176
232
  end
177
233
  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: 9.29.0
4
+ version: 9.30.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-11-20 00:00:00.000000000 Z
11
+ date: 2026-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday