modulr-api 0.0.22 → 0.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/modulr/resources/payments/payment.rb +6 -4
- data/lib/modulr/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: 7ed5184be01742b5215ab9a60f438b1b023606db4afab8dd1ab166131e8d20a3
|
4
|
+
data.tar.gz: 5a559e09198c64c7187b5e928ce7cb03c2f364f448fad55fd25424a200e69aac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b4994a56d2b63bb2738a338073713210935f95f5f8d5fe038fe19faf99991b0f2a80c6bfd7d34753e6772f6c275ecb9ea86b4e997b2fd9c21c8ea92a011b4f9
|
7
|
+
data.tar.gz: 01f5cdcaa5d32ec72c420e1161ef4441cd4260b4fa30435a66eece75f7f6bd4fba3a75e1363c4b5bcaac2aea9d631ec47bb1638172d5c3c584cd9862e016b6ce
|
data/Gemfile.lock
CHANGED
@@ -15,12 +15,14 @@ module Modulr
|
|
15
15
|
|
16
16
|
def initialize(raw_response, attributes = {})
|
17
17
|
super(raw_response, attributes)
|
18
|
-
@details = parse_details(attributes
|
18
|
+
@details = parse_details(attributes)
|
19
19
|
end
|
20
20
|
|
21
|
-
private def parse_details(
|
22
|
-
|
23
|
-
|
21
|
+
private def parse_details(attributes)
|
22
|
+
details = attributes[:details]
|
23
|
+
|
24
|
+
case details&.dig(:type)
|
25
|
+
when "PI_SECT", "PI_SEPA_INST", "PI_FAST", "PI_REV"
|
24
26
|
Details::Incoming::General.new(nil, details)
|
25
27
|
else
|
26
28
|
Details::Outgoing::General.new(nil, details)
|
data/lib/modulr/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: modulr-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.23
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aitor García Rey
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-04-
|
11
|
+
date: 2023-04-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|