bscf-core 0.4.96 → 0.4.97
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: ca5f351bc1c4d0ef3f5682b4b01524be4b79366267c313badd649185ba197118
|
4
|
+
data.tar.gz: 257e06eed096459bc7f7479abfe00620692fe7e534f1b327ecab8056b75d07ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc857844cd4f14fdc8ac0d96be4b9eb06ac2513aef4b649c011dc4595387a4d63047fa4066ac85ec5cfbc9730264cb4709b4caf5a58d9c9cdff6b744c5ba0447
|
7
|
+
data.tar.gz: fc8944ef60c284da3bf9489a8f4dec0afdb75d732f167cc7831f9a64aeb76da8c8f95cb8dd1f9916da8841796f7223c43ed13aeb8c4a796124470c163d44025d
|
@@ -15,7 +15,7 @@ module Bscf
|
|
15
15
|
scope :verified, -> { where(is_verified: true) }
|
16
16
|
scope :unverified, -> { where(is_verified: false) }
|
17
17
|
|
18
|
-
enum :document_type, { business_license: 0, delegation_letter: 1, drivers_license: 2, libre: 3}
|
18
|
+
enum :document_type, { business_license: 0, delegation_letter: 1, drivers_license: 2, libre: 3 }
|
19
19
|
|
20
20
|
private
|
21
21
|
|
@@ -26,10 +26,10 @@ module Bscf
|
|
26
26
|
|
27
27
|
def update_virtual_account_status
|
28
28
|
return unless user&.virtual_account.present?
|
29
|
-
|
30
|
-
if kyc_status ==
|
29
|
+
|
30
|
+
if kyc_status == "approved"
|
31
31
|
user.virtual_account.update(status: :active)
|
32
|
-
elsif kyc_status ==
|
32
|
+
elsif kyc_status == "rejected"
|
33
33
|
user.virtual_account.update(status: :suspended)
|
34
34
|
end
|
35
35
|
end
|
data/lib/bscf/core/version.rb
CHANGED