rock_rms 9.15.0 → 9.16.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: 5d1bb6b2cd54d3ddf3110097578447e3729c5bcbe40af7a8ae2ed6690bf4d0f4
4
+ data.tar.gz: 77fa5f74b2735d8fc6adf13459e5f16a2b1556a6be211928f707bc3199479b7b
5
5
  SHA512:
6
- metadata.gz: b73eba9bde8110b80ce14114bf1fc757c7455f2dd02a34ce26a6d41e6728465cb6be7cdd24d8bd524e4fdac2bcf1058337216756ae373be46110b82049bb8c6d
7
- data.tar.gz: 0f749aa1e03fe013d2217946ce3afbc02678e4863f3c88ef659a75f30d9fc690d953babee6004fd442246a3aa55377ad2ea458341a51e21a0c19ca325f1e36aa
6
+ metadata.gz: a6d03f184c6acba240b0c81c761dbdb3e0e57c91a3f066181688438465a8daf92ce27294a800b491a59f959d193b86cfc87af0b438fe5ceffc8c08e2c5a4a5c7
7
+ data.tar.gz: 51475c453bf766306acbaf91dd49a3d7069860902bfe4dcb168af52f66ee2b5ef7a5b0817c1694f3a8056c087fe58c1898da4cb1f3370d6f354a00551e00d6bf
@@ -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.16.0'.freeze
3
3
  end
@@ -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.16.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-04-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -228,6 +228,7 @@ files:
228
228
  - lib/rock_rms/resources/content_channel_type.rb
229
229
  - lib/rock_rms/resources/defined_type.rb
230
230
  - lib/rock_rms/resources/defined_value.rb
231
+ - lib/rock_rms/resources/entity_type.rb
231
232
  - lib/rock_rms/resources/exception_log.rb
232
233
  - lib/rock_rms/resources/fund.rb
233
234
  - lib/rock_rms/resources/gateway.rb
@@ -269,6 +270,7 @@ files:
269
270
  - lib/rock_rms/response/content_channel_type.rb
270
271
  - lib/rock_rms/response/defined_type.rb
271
272
  - lib/rock_rms/response/defined_value.rb
273
+ - lib/rock_rms/response/entity_type.rb
272
274
  - lib/rock_rms/response/exception_log.rb
273
275
  - lib/rock_rms/response/fund.rb
274
276
  - lib/rock_rms/response/gateway.rb