rock_rms 6.0.5 → 6.0.8

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: 0c860673f10c0a690acb6b028347d8a1710ccb53b014a096103060cdc93a914e
4
- data.tar.gz: 31960073bd5ae7af6ce63e2a83b559f7377a07f2fdfadcc265e02cb8ca3136a0
3
+ metadata.gz: 281809a16889264042ae567d225929e212fef4ab98eaa240498e262603b18828
4
+ data.tar.gz: e1208d3da16704766b4707db5a6c69895ee45d9ca87b915b12711ad9c88ec8fa
5
5
  SHA512:
6
- metadata.gz: d5fdcfeec02a400267129f701274df44eceaf98e5a8f28bf36acf96967ec7306cea4afc764d886babde61d326b677ad998e4f9a2d4de9557eb5758e3158db880
7
- data.tar.gz: 32ce26f879b8f55ccbb748c29765da3c9df53284a7f0eb4a26422492643dfa03a9620359467d57c3b5f434b336733ec8d9f34a6f99cf0c25b21a727573a9d965
6
+ metadata.gz: 02f11de776f0c06c6efd3b7d9789a70b7c0c3a68c612184489a12320b08de52cd94222614ad6f33a764c73089327f7f2520fdf847d39f9d3b057f99cac9f144b
7
+ data.tar.gz: b30814b7f958bdb0e0cb8437f2a60bd36179715667309105b085ba8077176f7d086020869a4e587997ce77e14085a0acd352d5600897be2bd2b30bfba23fa15d
@@ -17,6 +17,16 @@ module RockRMS
17
17
  post(payment_detail_path, options)
18
18
  end
19
19
 
20
+ def update_payment_detail(id, foreign_key: nil, card_type: nil, last_4: nil)
21
+ options = {}
22
+
23
+ options['CreditCardTypeValueId'] = cast_card_type(card_type) if card_type
24
+ options['ForeignKey'] = foreign_key if foreign_key
25
+ options['AccountNumberMasked'] = "************#{last_4}" if last_4
26
+
27
+ patch(payment_detail_path(id), options)
28
+ end
29
+
20
30
  def delete_payment_detail(id)
21
31
  delete(payment_detail_path(id))
22
32
  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
 
@@ -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
@@ -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',
@@ -1,3 +1,3 @@
1
1
  module RockRMS
2
- VERSION = '6.0.5'.freeze
2
+ VERSION = '6.0.8'.freeze
3
3
  end
@@ -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
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.5
4
+ version: 6.0.8
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-16 00:00:00.000000000 Z
11
+ date: 2022-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday