rock_rms 8.21.0 → 8.22.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a7f73d80641abc5b8aa251bb82553e316d755f4e5c28fc1146f30d8b735ecd20
|
4
|
+
data.tar.gz: fdd6ce2022a980d102b7210d552bb1a6e8fb4d390b7934110af3e350e8241de4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41cb76b8c8ac39e43f4346fa6f4ad987b1ddec615c257692abb1aaad0e3ecb8da538f63c8b48736741327590a71647f57dc1684f88abcbd6f327aff5fc396f9d
|
7
|
+
data.tar.gz: a1bac72066d3360453cfd0c2fac0cfc273b38344f13a8156e025f74922002cd04bc01ea63e05f5d9564023c9abacf5305b7fe92d87f9b319fa3635eb7895f47c
|
@@ -7,7 +7,7 @@ module RockRMS
|
|
7
7
|
end
|
8
8
|
|
9
9
|
def create_payment_detail(
|
10
|
-
payment_type
|
10
|
+
payment_type: nil,
|
11
11
|
foreign_key: nil,
|
12
12
|
card_type: nil,
|
13
13
|
last_4: nil,
|
@@ -24,12 +24,13 @@ module RockRMS
|
|
24
24
|
post(payment_detail_path, options)
|
25
25
|
end
|
26
26
|
|
27
|
-
def update_payment_detail(id, foreign_key: nil, card_type: nil, last_4: nil)
|
27
|
+
def update_payment_detail(id, foreign_key: nil, card_type: nil, last_4: nil, currency_type_value_id: nil)
|
28
28
|
options = {}
|
29
29
|
|
30
30
|
options['CreditCardTypeValueId'] = cast_card_type(card_type) if card_type
|
31
31
|
options['ForeignKey'] = foreign_key if foreign_key
|
32
32
|
options['AccountNumberMasked'] = "************#{last_4}" if last_4
|
33
|
+
options['CurrencyTypeValueId'] = currency_type_value_id if currency_type_value_id
|
33
34
|
|
34
35
|
patch(payment_detail_path(id), options)
|
35
36
|
end
|
data/lib/rock_rms/version.rb
CHANGED
@@ -12,13 +12,6 @@ RSpec.describe RockRMS::Client::PaymentDetail, type: :model do
|
|
12
12
|
end
|
13
13
|
|
14
14
|
describe '#create_payment_detail' do
|
15
|
-
context 'arguments' do
|
16
|
-
it 'require `payment_type`' do
|
17
|
-
expect { client.create_payment_detail }
|
18
|
-
.to raise_error(ArgumentError, /payment_type/)
|
19
|
-
end
|
20
|
-
end
|
21
|
-
|
22
15
|
subject(:resource) do
|
23
16
|
client.create_payment_detail(payment_type: 'card', card_type: 'amex')
|
24
17
|
end
|
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: 8.
|
4
|
+
version: 8.22.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Taylor Brooks
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-04-
|
11
|
+
date: 2024-04-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|