rock_rms 7.0.2 → 7.0.3

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.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rock_rms/response/attribute.rb +0 -1
  3. data/lib/rock_rms/response/attribute_value.rb +0 -1
  4. data/lib/rock_rms/response/base.rb +11 -3
  5. data/lib/rock_rms/response/batch.rb +0 -1
  6. data/lib/rock_rms/response/block.rb +0 -1
  7. data/lib/rock_rms/response/block_type.rb +0 -1
  8. data/lib/rock_rms/response/campus.rb +0 -1
  9. data/lib/rock_rms/response/defined_type.rb +0 -1
  10. data/lib/rock_rms/response/defined_value.rb +0 -1
  11. data/lib/rock_rms/response/fund.rb +0 -1
  12. data/lib/rock_rms/response/gateway.rb +0 -1
  13. data/lib/rock_rms/response/group.rb +0 -1
  14. data/lib/rock_rms/response/group_location.rb +0 -1
  15. data/lib/rock_rms/response/history.rb +0 -1
  16. data/lib/rock_rms/response/location.rb +0 -1
  17. data/lib/rock_rms/response/page.rb +0 -1
  18. data/lib/rock_rms/response/payment_detail.rb +0 -1
  19. data/lib/rock_rms/response/person.rb +0 -1
  20. data/lib/rock_rms/response/phone_number.rb +0 -1
  21. data/lib/rock_rms/response/recurring_donation.rb +0 -1
  22. data/lib/rock_rms/response/recurring_donation_details.rb +0 -1
  23. data/lib/rock_rms/response/registration.rb +0 -1
  24. data/lib/rock_rms/response/registration_instance.rb +0 -1
  25. data/lib/rock_rms/response/saved_payment_method.rb +0 -1
  26. data/lib/rock_rms/response/service_job.rb +0 -1
  27. data/lib/rock_rms/response/transaction.rb +0 -1
  28. data/lib/rock_rms/response/transaction_detail.rb +0 -1
  29. data/lib/rock_rms/response/workflow_activity_type.rb +0 -1
  30. data/lib/rock_rms/response/workflow_type.rb +0 -1
  31. data/lib/rock_rms/version.rb +1 -1
  32. data/spec/rock_rms/response/attribute_value_spec.rb +1 -1
  33. data/spec/rock_rms/response/recurring_donation_spec.rb +3 -1
  34. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e2a4fa58c26f7319dbc70a9caa55a0195f1f9516e941d706e0fd0d21dab41d32
4
- data.tar.gz: e73dfae38fcb5e46109e46338354a6b080f017bdbee844b363f54dd855cbd72b
3
+ metadata.gz: d50622be87ae69275c27c620dcc9e21d5e473c700554219f7ac4eb29b854ba6e
4
+ data.tar.gz: 01d46085478582b1add636fa558932a7df8f0f99546c66f29f0494de38353c6d
5
5
  SHA512:
6
- metadata.gz: e3b5ea27899ea899d8e4a101cac5276e7a9d7aab01892fbb23bd84f0a90bcd4025484d8f73aba87e550fb9a6722afc71eee48329f567b952f4f2f33540bce21b
7
- data.tar.gz: 222a7a3bff1c2e5d60836d916cbdfcf67985b5e569926395f3fa2c622f50de85f5cca3b6f5ff9a3fe0643108c11620ccfe5889ffb7b860749f98406d3cef02fa
6
+ metadata.gz: '09895f32647c2cf61724fdc79d11965da9294a253eaa95544a53d29bcfd877c41f9976150dd91b311f41b45ac32795586ae83b93a448ff073b8a502eadecc4a7'
7
+ data.tar.gz: 520aa2aaf064a0a5efecfd6b418b48fbb1559a30b94584f77a59a6675b7156d905fb6ae9b25534c11601c8ecd11fe7bed8f95d74caf747c58a7cf4ad1c10e39b
@@ -2,7 +2,6 @@ module RockRMS
2
2
  module Response
3
3
  class Attribute < Base
4
4
  MAP = {
5
- id: 'Id',
6
5
  name: 'Name',
7
6
  key: 'Key',
8
7
  description: 'Description'
@@ -2,7 +2,6 @@ module RockRMS
2
2
  module Response
3
3
  class AttributeValue < Base
4
4
  MAP = {
5
- id: 'Id',
6
5
  value: 'Value',
7
6
  value_as_number: 'ValueAsNumeric',
8
7
  entity_id: 'EntityId'
@@ -3,6 +3,12 @@ module RockRMS
3
3
  class Base
4
4
  attr_reader :data
5
5
 
6
+ BASE_MAPPING = {
7
+ id: 'Id',
8
+ created_date_time: 'CreatedDateTime',
9
+ modified_date_time: 'ModifiedDateTime'
10
+ }.freeze
11
+
6
12
  def self.format(data)
7
13
  new(data).format
8
14
  end
@@ -22,9 +28,11 @@ module RockRMS
22
28
  def to_h(dict, data)
23
29
  return {} if data.nil?
24
30
 
25
- dict.each_with_object({}) do |(l, r), object|
26
- object[l] = data[r]
27
- end
31
+ dict
32
+ .merge(BASE_MAPPING)
33
+ .each_with_object({}) do |(l, r), object|
34
+ object[l] = data[r]
35
+ end
28
36
  end
29
37
  end
30
38
  end
@@ -2,7 +2,6 @@ module RockRMS
2
2
  module Response
3
3
  class Batch < Base
4
4
  MAP = {
5
- id: 'Id',
6
5
  name: 'Name',
7
6
  control_amount: 'ControlAmount',
8
7
  transactions: 'Transactions',
@@ -2,7 +2,6 @@ module RockRMS
2
2
  module Response
3
3
  class Block < Base
4
4
  MAP = {
5
- id: 'Id',
6
5
  name: 'Name',
7
6
  block_type: 'BlockType',
8
7
  page_id: 'PageId'
@@ -2,7 +2,6 @@ module RockRMS
2
2
  module Response
3
3
  class BlockType < Base
4
4
  MAP = {
5
- id: 'Id',
6
5
  name: 'Name',
7
6
  description: 'Description',
8
7
  category: 'Category',
@@ -2,7 +2,6 @@ module RockRMS
2
2
  module Response
3
3
  class Campus < Base
4
4
  MAP = {
5
- id: 'Id',
6
5
  name: 'Name',
7
6
  is_active: 'IsActive',
8
7
  description: 'Description',
@@ -2,7 +2,6 @@ module RockRMS
2
2
  module Response
3
3
  class DefinedType < Base
4
4
  MAP = {
5
- id: 'Id',
6
5
  name: 'Name',
7
6
  description: 'Description',
8
7
  defined_values: 'DefinedValues',
@@ -2,7 +2,6 @@ module RockRMS
2
2
  module Response
3
3
  class DefinedValue < Base
4
4
  MAP = {
5
- id: 'Id',
6
5
  defined_type_id: 'DefinedTypeId',
7
6
  description: 'Description',
8
7
  order: 'Order',
@@ -2,7 +2,6 @@ module RockRMS
2
2
  module Response
3
3
  class Fund < Base
4
4
  MAP = {
5
- id: 'Id',
6
5
  campus_id: 'CampusId',
7
6
  name: 'Name',
8
7
  gl_code: 'GlCode'
@@ -2,7 +2,6 @@ module RockRMS
2
2
  module Response
3
3
  class Gateway < Base
4
4
  MAP = {
5
- id: 'Id',
6
5
  name: 'Name',
7
6
  active: 'IsActive'
8
7
  }.freeze
@@ -2,7 +2,6 @@ module RockRMS
2
2
  module Response
3
3
  class Group < Base
4
4
  MAP = {
5
- id: 'Id',
6
5
  name: 'Name',
7
6
  group_type_id: 'GroupTypeId',
8
7
  parent_group_id: 'ParentGroupId',
@@ -2,7 +2,6 @@ module RockRMS
2
2
  module Response
3
3
  class GroupLocation < Base
4
4
  MAP = {
5
- id: 'Id',
6
5
  group_id: 'GroupId',
7
6
  location_id: 'LocationId',
8
7
  guid: 'Guid'
@@ -2,7 +2,6 @@ module RockRMS
2
2
  module Response
3
3
  class History < Base
4
4
  MAP = {
5
- id: 'Id',
6
5
  verb: 'Verb',
7
6
  change_type: 'ChangeType',
8
7
  value_name: 'ValueName',
@@ -2,7 +2,6 @@ module RockRMS
2
2
  module Response
3
3
  class Location < Base
4
4
  MAP = {
5
- id: 'Id',
6
5
  name: 'Name',
7
6
  is_active: 'IsActive',
8
7
  street1: 'Street1',
@@ -2,7 +2,6 @@ module RockRMS
2
2
  module Response
3
3
  class Page < Base
4
4
  MAP = {
5
- id: 'Id',
6
5
  name: 'InternalName',
7
6
  page_title: 'PageTitle',
8
7
  browser_title: 'BrowserTitle',
@@ -2,7 +2,6 @@ module RockRMS
2
2
  module Response
3
3
  class PaymentDetail < Base
4
4
  MAP = {
5
- id: 'Id',
6
5
  exp_month: 'ExpirationMonth',
7
6
  exp_year: 'ExpirationYear',
8
7
  foreign_key: 'ForeignKey',
@@ -2,7 +2,6 @@ module RockRMS
2
2
  module Response
3
3
  class Person < Base
4
4
  MAP = {
5
- id: 'Id',
6
5
  name: 'FullName',
7
6
  email: 'Email',
8
7
  first_name: 'FirstName',
@@ -2,7 +2,6 @@ module RockRMS
2
2
  module Response
3
3
  class PhoneNumber < Base
4
4
  MAP = {
5
- id: 'Id',
6
5
  person_id: 'PersonId',
7
6
  number: 'Number',
8
7
  number_type_value_id: 'NumberTypeValueId',
@@ -2,7 +2,6 @@ module RockRMS
2
2
  module Response
3
3
  class RecurringDonation < Base
4
4
  MAP = {
5
- id: 'Id',
6
5
  active: 'IsActive',
7
6
  financial_gateway_id: 'FinancialGatewayId',
8
7
  foreign_key: 'ForeignKey',
@@ -2,7 +2,6 @@ module RockRMS
2
2
  module Response
3
3
  class RecurringDonationDetails < Base
4
4
  MAP = {
5
- id: 'Id',
6
5
  amount: 'Amount',
7
6
  fee_coverage_amount: 'FeeCoverageAmount',
8
7
  fund_id: 'AccountId',
@@ -2,7 +2,6 @@ module RockRMS
2
2
  module Response
3
3
  class Registration < Base
4
4
  MAP = {
5
- id: 'Id',
6
5
  first_name: 'FirstName',
7
6
  last_name: 'LastName',
8
7
  confirmation_email: 'ConfirmationEmail',
@@ -2,7 +2,6 @@ module RockRMS
2
2
  module Response
3
3
  class RegistrationInstance < Base
4
4
  MAP = {
5
- id: 'Id',
6
5
  name: 'Name',
7
6
  start_date: 'StartDateTime',
8
7
  end_date: 'EndDateTime',
@@ -2,7 +2,6 @@ module RockRMS
2
2
  module Response
3
3
  class SavedPaymentMethod < Base
4
4
  MAP = {
5
- id: 'Id',
6
5
  foreign_key: 'ForeignKey',
7
6
  gateway_id: 'FinancialGatewayId',
8
7
  gateway_person_id: 'GatewayPersonIdentifier',
@@ -2,7 +2,6 @@ module RockRMS
2
2
  module Response
3
3
  class ServiceJob < Base
4
4
  MAP = {
5
- id: 'Id',
6
5
  name: 'Name',
7
6
  active: 'IsActive',
8
7
  description: 'Description',
@@ -2,7 +2,6 @@ module RockRMS
2
2
  module Response
3
3
  class Transaction < Base
4
4
  MAP = {
5
- id: 'Id',
6
5
  date: 'TransactionDateTime',
7
6
  person: 'AuthorizedPersonAlias',
8
7
  person_id: 'AuthorizedPersonAliasId',
@@ -2,7 +2,6 @@ module RockRMS
2
2
  module Response
3
3
  class TransactionDetail < Base
4
4
  MAP = {
5
- id: 'Id',
6
5
  fee_amount: 'FeeAmount',
7
6
  fee_coverage_amount: 'FeeCoverageAmount',
8
7
  fund: 'Account',
@@ -2,7 +2,6 @@ module RockRMS
2
2
  module Response
3
3
  class WorkflowActivityType < Base
4
4
  MAP = {
5
- id: 'Id',
6
5
  name: 'Name',
7
6
  description: 'Description',
8
7
  order: 'Order',
@@ -2,7 +2,6 @@ module RockRMS
2
2
  module Response
3
3
  class WorkflowType < Base
4
4
  MAP = {
5
- id: 'Id',
6
5
  active: 'IsActive',
7
6
  name: 'Name',
8
7
  description: 'Description',
@@ -1,3 +1,3 @@
1
1
  module RockRMS
2
- VERSION = '7.0.2'.freeze
2
+ VERSION = '7.0.3'.freeze
3
3
  end
@@ -14,7 +14,7 @@ RSpec.describe RockRMS::Response::AttributeValue, type: :model do
14
14
 
15
15
  it 'has the correct number keys' do
16
16
  keys = result.first.keys
17
- expect(keys.count).to eq(4)
17
+ expect(keys.count).to eq(6)
18
18
  end
19
19
 
20
20
  it 'translates keys' do
@@ -15,7 +15,6 @@ RSpec.describe RockRMS::Response::RecurringDonation, type: :model do
15
15
  it 'has the following keys' do
16
16
  response = result.first
17
17
  expected_keys = %i[
18
- id
19
18
  active
20
19
  financial_gateway_id
21
20
  foreign_key
@@ -30,6 +29,9 @@ RSpec.describe RockRMS::Response::RecurringDonation, type: :model do
30
29
  transaction_code
31
30
  transaction_type_id
32
31
  summary
32
+ id
33
+ created_date_time
34
+ modified_date_time
33
35
  ]
34
36
 
35
37
  expect(response.keys).to eq(expected_keys)
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: 7.0.2
4
+ version: 7.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Taylor Brooks
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-05 00:00:00.000000000 Z
11
+ date: 2022-08-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday