rock_rms 6.0.5 → 6.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rock_rms/resources/payment_detail.rb +10 -0
- data/lib/rock_rms/resources/recurring_donation_detail.rb +3 -1
- data/lib/rock_rms/resources/saved_payment_method.rb +4 -0
- data/lib/rock_rms/response/saved_payment_method.rb +1 -0
- data/lib/rock_rms/version.rb +1 -1
- data/spec/rock_rms/resources/saved_payment_method_spec.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 281809a16889264042ae567d225929e212fef4ab98eaa240498e262603b18828
|
4
|
+
data.tar.gz: e1208d3da16704766b4707db5a6c69895ee45d9ca87b915b12711ad9c88ec8fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/rock_rms/version.rb
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2022-07-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|