modulr-api 0.0.22 → 0.0.24

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 17a999653b30cd623bb46c2869956d5762446d7df8c96db25595b29671e5bad5
4
- data.tar.gz: 9f38f78ba8132e15f5a12cf09764250d1a648dab067fc9063656e3570e8a4b33
3
+ metadata.gz: 4c1dc8aa140f6be1d96ad9b068a6d9a1020b3c1e553aa332598915699e657f99
4
+ data.tar.gz: af067bdb4a8cd588b71e86e43aa6f0bf5f1a2c9af22fe6792a6a3c6055875c05
5
5
  SHA512:
6
- metadata.gz: d66576dc1757c67beef2f58c26f574b130b5671d555e8e666b0ce8b4c6d02a2723210caaf8ae196ce8c4f2845c47a2b3e050d359ae435c7f28e0d7987aee01cc
7
- data.tar.gz: 659a084781dc4057003ba4f7880dd62eb911963782036f60fe6145f9e84dd51133d61c8740a45c13b27cb66c7db491dfdd0fab271b03c934492b41d5350450b1
6
+ metadata.gz: 34cada4ed145c82954fd8e9d2206eb7814d1fb3d4c49de1a5949ad99783c7a7dd8f47626c8a11b7a2cf6feee2b1c3c3cb548d0fd8df6e24ef3a98a98f101a07e
7
+ data.tar.gz: b455c299a24441b12d3cbe79fe4c3b2d34e845a0fe32db391a1592ad60d29b77a5b51271969e4d767b7007420874eb46cd818309e59fb79f34cef2099f6552b0
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- modulr-api (0.0.22)
4
+ modulr-api (0.0.24)
5
5
  faraday (~> 1.0)
6
6
  faraday_middleware (~> 1.0)
7
7
 
@@ -129,6 +129,7 @@ PLATFORMS
129
129
  arm64-darwin-20
130
130
  arm64-darwin-21
131
131
  x86_64-darwin-20
132
+ x86_64-darwin-22
132
133
  x86_64-linux
133
134
 
134
135
  DEPENDENCIES
@@ -10,7 +10,7 @@ module Modulr
10
10
  end
11
11
 
12
12
  def format_datetime(datetime)
13
- datetime.strftime("%Y-%m-%dT%l:%M:%S%z")
13
+ datetime.strftime("%Y-%m-%dT%H:%M:%S%z")
14
14
  end
15
15
  end
16
16
  end
@@ -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[:details])
18
+ @details = parse_details(attributes)
19
19
  end
20
20
 
21
- private def parse_details(details)
22
- case details[:type]
23
- when "PI_SEPA_INST", "PI_FAST"
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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Modulr
4
- VERSION = "0.0.22"
4
+ VERSION = "0.0.24"
5
5
  end
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.22
4
+ version: 0.0.24
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-26 00:00:00.000000000 Z
11
+ date: 2023-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday