rock_rms 9.15.0 → 9.17.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: c54c985591d6f2ea29eba426642b209ea1b812604e9484298dc2cc26d818722a
4
- data.tar.gz: f2929fc58d2f2e34cafc60179af2476232059f1054e1cad98f9cbab6829ec83d
3
+ metadata.gz: 9ad7c16dbbfc98f16fdff9f66bd26d4939d895855be3bb0dd6ce8f7d3d4ab0b3
4
+ data.tar.gz: 607be1b3b97e5accc40eaf8798cfcf4b1459ff6c9168b56b7a68822e9caead49
5
5
  SHA512:
6
- metadata.gz: b73eba9bde8110b80ce14114bf1fc757c7455f2dd02a34ce26a6d41e6728465cb6be7cdd24d8bd524e4fdac2bcf1058337216756ae373be46110b82049bb8c6d
7
- data.tar.gz: 0f749aa1e03fe013d2217946ce3afbc02678e4863f3c88ef659a75f30d9fc690d953babee6004fd442246a3aa55377ad2ea458341a51e21a0c19ca325f1e36aa
6
+ metadata.gz: 5d467ed57afcc5ffaba72407e1bd4d468fdf381a7d508eb242ca96ae977aa46a7f5b62ee18df5db99891cd0d8dff1506133b40d7c615b0e75c0a45f40b1943ec
7
+ data.tar.gz: 4aeffdfa596b75dc68eb6df5c37c851ffcc96abd90b2037d72666a39d461c3e84efec3ba790bbc72a1548137297c059d91fa2791f16b9144e3f365a62ae23237
@@ -25,6 +25,7 @@ module RockRMS
25
25
  include RockRMS::Client::ContentChannelItem
26
26
  include RockRMS::Client::DefinedType
27
27
  include RockRMS::Client::DefinedValue
28
+ include RockRMS::Client::EntityType
28
29
  include RockRMS::Client::ExceptionLog
29
30
  include RockRMS::Client::Gateway
30
31
  include RockRMS::Client::Group
@@ -15,7 +15,7 @@ module RockRMS
15
15
  id:,
16
16
  foreign_key: nil
17
17
  )
18
- options = { foreign_key: foreign_key }.compact
18
+ options = { 'ForeignKey' => foreign_key }.compact
19
19
 
20
20
  patch(content_channel_path(id), options)
21
21
  end
@@ -0,0 +1,23 @@
1
+ module RockRMS
2
+ class Client
3
+ module EntityType
4
+ PATH = 'EntityTypes'.freeze
5
+
6
+ def list_entity_types(options = {})
7
+ res = get(entity_type_path, options)
8
+ Response::EntityType.format(res)
9
+ end
10
+
11
+ def find_entity_type(id)
12
+ res = get(entity_type_path(id))
13
+ Response::EntityType.format(res)
14
+ end
15
+
16
+ private
17
+
18
+ def entity_type_path(id = nil)
19
+ id ? "#{PATH}/#{id}" : PATH
20
+ end
21
+ end
22
+ end
23
+ end
@@ -62,6 +62,7 @@ module RockRMS
62
62
  payment_detail_id: nil,
63
63
  active: nil,
64
64
  frequency: nil,
65
+ number_of_payments: nil,
65
66
  end_date: nil,
66
67
  summary: nil,
67
68
  status: nil,
@@ -72,6 +73,7 @@ module RockRMS
72
73
  options['TransactionCode'] = transaction_code if transaction_code
73
74
  options['IsActive'] = active if !active.nil?
74
75
  options['TransactionFrequencyValueId'] = RecurringFrequencies::RECURRING_FREQUENCIES[frequency] if !frequency.nil?
76
+ options['NumberOfPayments'] = number_of_payments if !number_of_payments.nil?
75
77
  options['EndDate'] = end_date if end_date
76
78
  options['Summary'] = summary if summary
77
79
  options['Status'] = status if status
@@ -13,6 +13,12 @@ module RockRMS
13
13
  Response::Registration.format(res)
14
14
  end
15
15
 
16
+ def update_registration(id, scheduled_transaction_id: nil)
17
+ options = {}
18
+ options['PaymentPlanFinancialScheduledTransactionId'] = scheduled_transaction_id if scheduled_transaction_id
19
+ patch(registration_path(id), options)
20
+ end
21
+
16
22
  def delete_registration(id)
17
23
  delete(registration_path(id))
18
24
  end
@@ -0,0 +1,18 @@
1
+ module RockRMS
2
+ module Response
3
+ class EntityType < Base
4
+ MAP = {
5
+ name: 'Name',
6
+ friendly_name: 'FriendlyName',
7
+ is_entity: 'IsEntity',
8
+ is_secured: 'IsSecured'
9
+ }.freeze
10
+
11
+ def format_single(data)
12
+ response = to_h(MAP, data)
13
+ response[:blocks] = Block.format(response[:blocks])
14
+ response
15
+ end
16
+ end
17
+ end
18
+ end
@@ -1,3 +1,3 @@
1
1
  module RockRMS
2
- VERSION = '9.15.0'.freeze
2
+ VERSION = '9.17.0'.freeze
3
3
  end
data/rock_rms.gemspec CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
13
13
  s.license = 'MIT'
14
14
 
15
15
  s.files = `git ls-files`.split($/)
16
- s.executables = s.files.grep(%r{^bin/}).map { |f| File.basename(f) }
16
+ s.executables = []
17
17
  s.test_files = s.files.grep(%r{^(test)/})
18
18
 
19
19
  s.required_ruby_version = '>= 2.7'
@@ -40,7 +40,7 @@ RSpec.describe RockRMS::Client::ContentChannel, type: :model do
40
40
  end
41
41
 
42
42
  it 'sends a patch request' do
43
- expect(client).to receive(:patch).with('ContentChannels/123', { foreign_key: 3925 })
43
+ expect(client).to receive(:patch).with('ContentChannels/123', { 'ForeignKey' => 3925 })
44
44
  client.update_content_channel(id: 123, foreign_key: 3925)
45
45
  end
46
46
  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.15.0
4
+ version: 9.17.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-03-19 00:00:00.000000000 Z
11
+ date: 2025-06-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -196,8 +196,7 @@ description: A Ruby wrapper for the Rock RMS API -- a church management platform
196
196
  simplified.
197
197
  email:
198
198
  - tbrooks@gmail.com
199
- executables:
200
- - rspec
199
+ executables: []
201
200
  extensions: []
202
201
  extra_rdoc_files: []
203
202
  files:
@@ -209,7 +208,6 @@ files:
209
208
  - LICENSE
210
209
  - README.md
211
210
  - Rakefile
212
- - bin/rspec
213
211
  - lib/rock_rms.rb
214
212
  - lib/rock_rms/client.rb
215
213
  - lib/rock_rms/error.rb
@@ -228,6 +226,7 @@ files:
228
226
  - lib/rock_rms/resources/content_channel_type.rb
229
227
  - lib/rock_rms/resources/defined_type.rb
230
228
  - lib/rock_rms/resources/defined_value.rb
229
+ - lib/rock_rms/resources/entity_type.rb
231
230
  - lib/rock_rms/resources/exception_log.rb
232
231
  - lib/rock_rms/resources/fund.rb
233
232
  - lib/rock_rms/resources/gateway.rb
@@ -269,6 +268,7 @@ files:
269
268
  - lib/rock_rms/response/content_channel_type.rb
270
269
  - lib/rock_rms/response/defined_type.rb
271
270
  - lib/rock_rms/response/defined_value.rb
271
+ - lib/rock_rms/response/entity_type.rb
272
272
  - lib/rock_rms/response/exception_log.rb
273
273
  - lib/rock_rms/response/fund.rb
274
274
  - lib/rock_rms/response/gateway.rb
data/bin/rspec DELETED
@@ -1,19 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- # This file was generated by Bundler.
5
- #
6
- # The application 'rspec' is installed as part of a gem, and
7
- # this file is here to facilitate running it.
8
- #
9
-
10
- require 'pathname'
11
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path(
12
- '../../Gemfile',
13
- Pathname.new(__FILE__).realpath
14
- )
15
-
16
- require 'rubygems'
17
- require 'bundler/setup'
18
-
19
- load Gem.bin_path('rspec-core', 'rspec')