dscf-credit 0.2.7 → 0.2.9
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c914fd16b9fb0dd15339a3af9bf97e95d48d3e1775a729f4fefe00e6d097b070
|
4
|
+
data.tar.gz: a22057ffd689e168026b01e279a5695af7ffb292bec64998db8d73266cfdb2d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d322610efcb2472084f0bdc462a76ee502da87f4d9be227ad66b4f8e38041b39b6c74690281ab407e50e38c445231cdc702a1e04c389c490d6d2189870ba096
|
7
|
+
data.tar.gz: 0af0fb14a256dc42893fe5dc6b920107b0f104a6ebfc403de37467b36b64017f4684a64201024ea9766f563132c5de3a24b3df21ba4b47121c32cdcf0cfcba32
|
@@ -74,13 +74,13 @@ module Dscf::Credit
|
|
74
74
|
facilitator_info = loan_profile.loan_application.facilitator_info || {}
|
75
75
|
|
76
76
|
# Find avg_monthly_purchase from the nested JSON structure
|
77
|
-
# facilitator_info structure: { "301": { "param_name": "avg_monthly_purchase", "value": 30000 } }
|
77
|
+
# facilitator_info structure: { "301": { "param_name": "avg_monthly_purchase", "value": 0.1, "raw_value": 30000 } }
|
78
78
|
avg_monthly_purchase = nil
|
79
79
|
|
80
80
|
facilitator_info.each do |param_id, param_data|
|
81
81
|
if param_data.is_a?(Hash) &&
|
82
82
|
(param_data["param_name"] == "avg_monthly_purchase" || param_data[:param_name] == "avg_monthly_purchase")
|
83
|
-
avg_monthly_purchase = param_data["
|
83
|
+
avg_monthly_purchase = param_data["raw_value"] || param_data[:raw_value]
|
84
84
|
break
|
85
85
|
end
|
86
86
|
end
|
data/lib/dscf/credit/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dscf-credit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adoniyas
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-10-
|
10
|
+
date: 2025-10-10 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: dscf-core
|
@@ -15,14 +15,14 @@ dependencies:
|
|
15
15
|
requirements:
|
16
16
|
- - "~>"
|
17
17
|
- !ruby/object:Gem::Version
|
18
|
-
version: 0.
|
18
|
+
version: 0.2.0
|
19
19
|
type: :runtime
|
20
20
|
prerelease: false
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
22
22
|
requirements:
|
23
23
|
- - "~>"
|
24
24
|
- !ruby/object:Gem::Version
|
25
|
-
version: 0.
|
25
|
+
version: 0.2.0
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: active_model_serializers
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|