rock_rms 8.20.0 → 8.21.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: c691d56692e51a977969f06bdb9a990a42ed6b51e20fedd4b0ad38ff89e85ac1
4
- data.tar.gz: e5c8f79f5e471bd1a5ab0d8d1a5144d7ed13bba4ba851a0a6d72c9c6973567f4
3
+ metadata.gz: e1e0edb506babdff02df7b17a55d345d166e14e7c82d74a3851f2f7ced4bdc1e
4
+ data.tar.gz: 1366b2457dc65eda9a4700676c6bddd92bd13c5ac00a5a0885434a29d42144a9
5
5
  SHA512:
6
- metadata.gz: 12d44c778099cd60f59f42ca0a5bc7c19f974db21d91c2946dbeb6e3d80e5c177a2457a5ef9b72cdb05383b5f85cd08bd20e44edc09fc5d556f86ed8c5114426
7
- data.tar.gz: f6fe6941f2218816806adcd5429f551db13148d9e79c6b34989479861832dc308dbc7bc256a27ccba2a6040257c562baaf7ccb512f1b96c1c4c7bde132693224
6
+ metadata.gz: 4c42841eb19d491c68faeb41d6793550bf8db7c638187f55a6668b7337bddc110f815e4f03b4b9a8df2fbdc4a0d913e1a6b08dee9947c6bd9dc47e7b661a534c
7
+ data.tar.gz: dd5c399cee1798dfd60a32be25d995d9e4cd0bdc2a883004ac11ed03fb4c8a08f713df2908c6af16bf7b787e526b325a71cd972a4f82f060cae15301158daa8d
@@ -6,12 +6,19 @@ module RockRMS
6
6
  Response::PaymentDetail.format(res)
7
7
  end
8
8
 
9
- def create_payment_detail(payment_type:, foreign_key: nil, card_type: nil, last_4: nil)
9
+ def create_payment_detail(
10
+ payment_type:,
11
+ foreign_key: nil,
12
+ card_type: nil,
13
+ last_4: nil,
14
+ currency_type_value_id: nil
15
+ )
10
16
  options = {
11
- 'CurrencyTypeValueId' => cast_payment_type(payment_type),
17
+ 'CurrencyTypeValueId' => currency_type_value_id || cast_payment_type(payment_type),
12
18
  'CreditCardTypeValueId' => cast_card_type(card_type),
13
19
  'ForeignKey' => foreign_key
14
20
  }
21
+
15
22
  options['AccountNumberMasked'] = "************#{last_4}" if last_4
16
23
 
17
24
  post(payment_detail_path, options)
@@ -1,3 +1,3 @@
1
1
  module RockRMS
2
- VERSION = '8.20.0'.freeze
2
+ VERSION = '8.21.0'.freeze
3
3
  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.20.0
4
+ version: 8.21.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-03-20 00:00:00.000000000 Z
11
+ date: 2024-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday