modulr-api 0.0.30 → 0.0.32
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 +5 -2
- 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: 9bff1a371f331732b18e8ea2219c12aa4502cfb587fe1bb3bfc21cc1ea04f01d
|
4
|
+
data.tar.gz: 1ccbdd8b8b988e4e602dd1c0c3a4be676609c3568145f045c044d78b441ece87
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0dc02b155a382ba7b974d6d94f4d866d433c147d00f83686d82ea656e4376d7454a4c8da91400afd1286b9f318bfe46f252fb5747d2431378f93cbe2f5770e9f
|
7
|
+
data.tar.gz: bb46276d1c33827c5fa50e381ecf057087a51833af731dc70adf55869ccdc2e6c816d9cd8199564441fc9b5e745edf45067ded2755e254fb71608a795958d1dd
|
data/Gemfile.lock
CHANGED
@@ -47,6 +47,8 @@ module Modulr
|
|
47
47
|
doc.dig(key, :document, :fitoFICstmrCdtTrf, :cdtTrfTxInf, :pmtId, :endToEndId)
|
48
48
|
when "FFCCTRNS" # SEPA regular
|
49
49
|
doc.dig(key, :document, :fitoFICstmrCdtTrf, :cdtTrfTxInf).first&.dig(:pmtId, :endToEndId)
|
50
|
+
when "PRTRN" # SEPA REVERSAL
|
51
|
+
nil
|
50
52
|
end
|
51
53
|
end
|
52
54
|
|
@@ -64,7 +66,7 @@ module Modulr
|
|
64
66
|
detail_type = @attr_details&.dig(:type) || @attr_details&.dig(:destinationType)
|
65
67
|
|
66
68
|
case detail_type
|
67
|
-
when "PI_SECT", "PI_SEPA_INST", "PI_FAST", "PI_REV"
|
69
|
+
when "PI_SECT", "PI_SEPA_INST", "PI_FAST", "PI_REV", "PO_REV"
|
68
70
|
incoming_detail
|
69
71
|
when "ACCOUNT"
|
70
72
|
incoming_internal_details
|
@@ -86,7 +88,7 @@ module Modulr
|
|
86
88
|
|
87
89
|
private def parse_scheme
|
88
90
|
case payment_type
|
89
|
-
when "PI_SECT", "PO_SECT"
|
91
|
+
when "PI_SECT", "PO_SECT", "PO_REV"
|
90
92
|
sepa_regular
|
91
93
|
when "PI_SEPA_INST", "PO_SEPA_INST"
|
92
94
|
sepa_instant
|
@@ -148,6 +150,7 @@ module Modulr
|
|
148
150
|
|
149
151
|
private def internal?
|
150
152
|
(@attr_details[:sourceAccountId] && @attr_details.key?(:destinationId)) ||
|
153
|
+
!@attributes.key?(:schemeInfo) ||
|
151
154
|
@attributes[:schemeInfo].empty?
|
152
155
|
end
|
153
156
|
end
|
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.32
|
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-07-
|
11
|
+
date: 2023-07-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|