rock_rms 6.0.7 → 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/version.rb +1 -1
- 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
|
data/lib/rock_rms/version.rb
CHANGED
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-07-
|
11
|
+
date: 2022-07-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|