rock_rms 9.29.0 → 9.31.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: 8eb26f4c787503fd6cf359b6f25ba4c14a164fb4ed7774024a514e5fe6fb007f
4
+ data.tar.gz: fc922280fbeddee6cfd6bd8fd6473a4669a08dad1e7394addc5e27fc8974f7a2
5
5
  SHA512:
6
- metadata.gz: 2796642a76ed4132d98c73ebf0f97d30581c41cbf27768e0ad4a59e5d9aaa3ec0fb6f42692ff1ce8e882db154b45e6cefd7dc4837d70f4dd753deb96b6c6f6c0
7
- data.tar.gz: 8f12d267b8f742bae6e593079e78916d87847ab5d3151dc0d4368d0e3f11a8e2f3bc93fcb8a01dd828017a2cf3cad9bb2bea54d089f95727d2016788616fb21f
6
+ metadata.gz: b4f51f18522f24bfe645094803b0ee3c110755f31b6f6a56959774433414542073ab667a719c069e01cb1e2417a50734c700f7b05c7c4b9ed1c3c6fea410cd44
7
+ data.tar.gz: 676ad972d5b2f4a87f43871549b7fc8b4b2498233cfa0b105615a312f4e2f597522e0d4baf94043da9aea071ace63656df8e86226e497c2b10a099bb2519c451
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.7.4
1
+ 3.3.5
@@ -42,6 +42,7 @@ module RockRMS
42
42
  gender: 1,
43
43
  connection_status_value_id: nil,
44
44
  record_status_value_id: nil,
45
+ record_source_value_id: nil,
45
46
  record_type_value_id: 1,
46
47
  email_preference: 0
47
48
  )
@@ -53,6 +54,7 @@ module RockRMS
53
54
  'EmailPreference' => email_preference,
54
55
  'Gender' => gender,
55
56
  'ConnectionStatusValueId' => connection_status_value_id,
57
+ 'RecordSourceValueId' => record_source_value_id,
56
58
  'RecordStatusValueId' => record_status_value_id,
57
59
  'RecordTypeValueId' => record_type_value_id
58
60
  }
@@ -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
@@ -13,6 +13,7 @@ module RockRMS
13
13
  graduation_year: 'GraduationYear',
14
14
  alias_id: 'PrimaryAliasId',
15
15
  connection_status_value_id: 'ConnectionStatusValueId',
16
+ record_source_value_id: 'RecordSourceValueId',
16
17
  record_type_value_id: 'RecordTypeValueId',
17
18
  primary_family_id: 'PrimaryFamilyId'
18
19
  }.freeze
@@ -1,3 +1,3 @@
1
1
  module RockRMS
2
- VERSION = '9.29.0'.freeze
2
+ VERSION = '9.31.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.31.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Taylor Brooks
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-11-20 00:00:00.000000000 Z
11
+ date: 2026-07-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -417,7 +417,7 @@ homepage: https://github.com/taylorbrooks/rock_rms
417
417
  licenses:
418
418
  - MIT
419
419
  metadata: {}
420
- post_install_message:
420
+ post_install_message:
421
421
  rdoc_options: []
422
422
  require_paths:
423
423
  - lib
@@ -432,8 +432,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
432
432
  - !ruby/object:Gem::Version
433
433
  version: '0'
434
434
  requirements: []
435
- rubygems_version: 3.1.6
436
- signing_key:
435
+ rubygems_version: 3.5.16
436
+ signing_key:
437
437
  specification_version: 4
438
438
  summary: A Ruby wrapper for the Rock RMS API
439
439
  test_files: []