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: e1e0edb506babdff02df7b17a55d345d166e14e7c82d74a3851f2f7ced4bdc1e
4
- data.tar.gz: 1366b2457dc65eda9a4700676c6bddd92bd13c5ac00a5a0885434a29d42144a9
3
+ metadata.gz: a7f73d80641abc5b8aa251bb82553e316d755f4e5c28fc1146f30d8b735ecd20
4
+ data.tar.gz: fdd6ce2022a980d102b7210d552bb1a6e8fb4d390b7934110af3e350e8241de4
5
5
  SHA512:
6
- metadata.gz: 4c42841eb19d491c68faeb41d6793550bf8db7c638187f55a6668b7337bddc110f815e4f03b4b9a8df2fbdc4a0d913e1a6b08dee9947c6bd9dc47e7b661a534c
7
- data.tar.gz: dd5c399cee1798dfd60a32be25d995d9e4cd0bdc2a883004ac11ed03fb4c8a08f713df2908c6af16bf7b787e526b325a71cd972a4f82f060cae15301158daa8d
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
@@ -1,3 +1,3 @@
1
1
  module RockRMS
2
- VERSION = '8.21.0'.freeze
2
+ VERSION = '8.22.0'.freeze
3
3
  end
@@ -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.21.0
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-01 00:00:00.000000000 Z
11
+ date: 2024-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday