rock_rms 6.0.4 → 6.0.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: da4caae8fdb2aac247791226b248cda65af1110fab52adad19f9fc6968fae3cd
4
- data.tar.gz: 773f7f6e25e4ec5ca9389e78cd113f8e44d29af2e5a2f0ce2b59803779caa0a9
3
+ metadata.gz: 1e008fb1fcc7c3fd5ae8b524a0766c89d1232b36fddf8c183bdb56ccf60e5bb1
4
+ data.tar.gz: a8543f772e1c1feffbb5b233856346d21681442d7cd2309e251b8caba8c1c0f8
5
5
  SHA512:
6
- metadata.gz: 368d09ee713ceedcc744bee4486ff23b15e406378cefbbe90d6decdef8e425d2a2f9b9489a10d517f97d3df4c2e927b3a195e9be7a59e1307b918385f9f534a2
7
- data.tar.gz: c6171cb087332d56da11940817d5b37cee291112cbd89c0acb8da4c1978754917c7e7e677b01e1055c5d9c5ae0f91607fae82e41e8701f3cfaef58c255d45a24
6
+ metadata.gz: e314b9a967d888d66115508937ea4923ce2b33e542788a0c697352e89f6e491658f71307b369770d898306dfd3291d531c10567ac745a8076eaa52dd31db1a6f
7
+ data.tar.gz: d4344e82e132d901b2024cdb8b3c49b530dba68aba909454810019080738069d9a9a5e43f17e441dd294edb75e177e52180d6c43b02bd098852383d4c5543269
@@ -86,7 +86,8 @@ module RockRMS
86
86
  funds.map do |fund|
87
87
  {
88
88
  'Amount' => fund[:amount],
89
- 'AccountId' => fund[:fund_id]
89
+ 'AccountId' => fund[:fund_id],
90
+ 'FeeCoverageAmount' => fund[:fee_coverage_amount]
90
91
  }
91
92
  end
92
93
  end
@@ -5,16 +5,18 @@ module RockRMS
5
5
  module RecurringDonationDetail
6
6
  def create_recurring_donation_detail(
7
7
  recurring_donation_id:,
8
+ fee_coverage_amount: nil,
8
9
  fund_id:,
9
10
  amount:
10
11
  )
11
-
12
12
  options = {
13
13
  'AccountId' => fund_id,
14
14
  'Amount' => amount,
15
15
  'ScheduledTransactionId' => recurring_donation_id
16
16
  }
17
17
 
18
+ options['FeeCoverageAmount'] = fee_coverage_amount if fee_coverage_amount
19
+
18
20
  post(recurring_donation_detail_path, options)
19
21
  end
20
22
 
@@ -22,10 +24,11 @@ module RockRMS
22
24
  delete(recurring_donation_detail_path(id))
23
25
  end
24
26
 
25
- def update_recurring_donation_detail(id, fund_id: nil, amount: nil)
27
+ def update_recurring_donation_detail(id, fund_id: nil, amount: nil, fee_coverage_amount: nil)
26
28
  options = {}
27
29
  options['AccountId'] = fund_id if fund_id
28
30
  options['Amount'] = amount if amount
31
+ options['FeeCoverageAmount'] = fee_coverage_amount if fee_coverage_amount
29
32
 
30
33
  patch(recurring_donation_detail_path(id), options)
31
34
  end
@@ -9,6 +9,7 @@ module RockRMS
9
9
  def create_saved_payment_method(
10
10
  gateway_id:,
11
11
  gateway_person_id: nil,
12
+ is_default: 0,
12
13
  payment_detail_id:,
13
14
  person_alias_id:,
14
15
  name:,
@@ -17,6 +18,7 @@ module RockRMS
17
18
  options = {
18
19
  'FinancialGatewayId' => gateway_id,
19
20
  'FinancialPaymentDetailId' => payment_detail_id,
21
+ 'IsDefault' => is_default,
20
22
  'Name' => name,
21
23
  'PersonAliasId' => person_alias_id,
22
24
  'ReferenceNumber' => reference_number
@@ -33,6 +35,7 @@ module RockRMS
33
35
  id,
34
36
  gateway_id: nil,
35
37
  gateway_person_id: nil,
38
+ is_default: nil,
36
39
  payment_detail_id: nil,
37
40
  person_alias_id: nil,
38
41
  name: nil,
@@ -42,6 +45,7 @@ module RockRMS
42
45
 
43
46
  options['FinancialGatewayId'] = gateway_id if gateway_id
44
47
  options['GatewayPersonIdentifier'] = gateway_person_id if gateway_person_id
48
+ options['IsDefault'] = is_default if is_default
45
49
  options['FinancialPaymentDetailId'] = payment_detail_id if payment_detail_id
46
50
  options['Name'] = name if name
47
51
  options['PersonAliasId'] = person_alias_id if person_alias_id
@@ -102,7 +102,8 @@ module RockRMS
102
102
  'AccountId' => fund[:fund_id],
103
103
  'EntityTypeId' => fund[:entity_type_id],
104
104
  'EntityId' => fund[:entity_id],
105
- 'FeeAmount' => fund[:fee_amount]
105
+ 'FeeAmount' => fund[:fee_amount],
106
+ 'FeeCoverageAmount' => fund[:fee_coverage_amount]
106
107
  }
107
108
  end
108
109
  end
@@ -21,12 +21,12 @@ module RockRMS
21
21
  entity_id: nil
22
22
  )
23
23
  options = {}
24
- options['AccountId'] = fund_id if fund_id
25
- options['Amount'] = amount if amount
26
- options['FeeAmount'] = fee_amount if fee_amount
27
- options['EntityTypeId'] = entity_type_id if entity_type_id
28
- options['EntityId'] = entity_id if entity_id
29
- options['FeeCoverageAmount'] = fee_coverage_amount if fee_coverage_amount
24
+ options['AccountId'] = fund_id if fund_id
25
+ options['Amount'] = amount if amount
26
+ options['FeeAmount'] = fee_amount if fee_amount
27
+ options['EntityTypeId'] = entity_type_id if entity_type_id
28
+ options['EntityId'] = entity_id if entity_id
29
+ options['FeeCoverageAmount'] = fee_coverage_amount if fee_coverage_amount
30
30
 
31
31
  patch(transaction_detail_path(id), options)
32
32
  end
@@ -4,6 +4,7 @@ module RockRMS
4
4
  MAP = {
5
5
  id: 'Id',
6
6
  amount: 'Amount',
7
+ fee_coverage_amount: 'FeeCoverageAmount',
7
8
  fund_id: 'AccountId',
8
9
  entity_type_id: 'EntityTypeId',
9
10
  entity_id: 'EntityId'
@@ -6,6 +6,7 @@ module RockRMS
6
6
  foreign_key: 'ForeignKey',
7
7
  gateway_id: 'FinancialGatewayId',
8
8
  gateway_person_id: 'GatewayPersonIdentifier',
9
+ is_default: 'IsDefault',
9
10
  name: 'Name',
10
11
  payment_details: 'FinancialPaymentDetail',
11
12
  payment_detail_id: 'FinancialPaymentDetailId',
@@ -4,6 +4,7 @@ module RockRMS
4
4
  MAP = {
5
5
  id: 'Id',
6
6
  fee_amount: 'FeeAmount',
7
+ fee_coverage_amount: 'FeeCoverageAmount',
7
8
  fund: 'Account',
8
9
  fund_id: 'AccountId',
9
10
  amount: 'Amount',
@@ -1,3 +1,3 @@
1
1
  module RockRMS
2
- VERSION = '6.0.4'.freeze
2
+ VERSION = '6.0.7'.freeze
3
3
  end
@@ -139,7 +139,7 @@ RSpec.describe RockRMS::Client::RecurringDonation, type: :model do
139
139
  'FinancialGatewayId' => nil,
140
140
  'FinancialPaymentDetailId' => nil,
141
141
  'TransactionCode' => 'asdf',
142
- 'ScheduledTransactionDetails' => [{ 'Amount' => 450, 'AccountId' => 2, 'EntityId' => nil, 'EntityTypeId' => nil, 'FeeAmount' => nil }],
142
+ 'ScheduledTransactionDetails' => [{ 'Amount' => 450, 'AccountId' => 2, 'EntityId' => nil, 'EntityTypeId' => nil, 'FeeAmount' => nil, 'FeeCoverageAmount' => nil}],
143
143
  'GatewayScheduleId' => nil,
144
144
  'SourceTypeValueId' => 10,
145
145
  'ForeignKey' => nil
@@ -60,6 +60,7 @@ RSpec.describe RockRMS::Client::SavedPaymentMethod, type: :model do
60
60
  'Name' => 'Sapphire Preferred',
61
61
  'ReferenceNumber' => 'card_1234',
62
62
  'PersonAliasId' => 1,
63
+ 'IsDefault' => 0,
63
64
  'FinancialGatewayId' => 2,
64
65
  'FinancialPaymentDetailId' => 1
65
66
  ).and_call_original
@@ -85,7 +85,7 @@ RSpec.describe RockRMS::Client::Transaction, type: :model do
85
85
  'FinancialPaymentDetailId' => 1,
86
86
  'TransactionCode' => 'asdf',
87
87
  'TransactionDateTime' => 1,
88
- 'TransactionDetails' => [{ 'Amount' => 450, 'AccountId' => 2, 'EntityTypeId' => nil, 'EntityId' => nil, 'FeeAmount' => nil }],
88
+ 'TransactionDetails' => [{ 'Amount' => 450, 'AccountId' => 2, 'EntityTypeId' => nil, 'EntityId' => nil, 'FeeAmount' => nil, 'FeeCoverageAmount' => nil }],
89
89
  'TransactionTypeValueId' => 53,
90
90
  'SourceTypeValueId' => 10,
91
91
  'Summary' => 'taco tuesday'
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: 6.0.4
4
+ version: 6.0.7
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-06-15 00:00:00.000000000 Z
11
+ date: 2022-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday