acc 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/acc/check_transaction_response.rb +2 -2
- data/lib/acc/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8398dac7711ed3acb08eea64b8b75ef57974809e
|
4
|
+
data.tar.gz: ef71561e3fcdff2e2c4a957edd43f0efb4c7978e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9600a3fe8d522efeb5546f80e6cb12b7876ad0beee54fcc53493b0503a3eaa33f6423eaf96e5b309092cca4d40dc4bbeaadcb6f7a1bde20617f1248b5211650b
|
7
|
+
data.tar.gz: c90eb0994bb3663462dac9b348cf6fad8e730fe2c3caef37083b4df787db82e79e887048e50322d2f1d08db269bac8392a4986d2dfeb13d72bdcc9170907d020
|
@@ -15,12 +15,12 @@ class Acc::CheckTransactionResponse
|
|
15
15
|
end
|
16
16
|
|
17
17
|
def in_progress?
|
18
|
-
in_progress_array_error?
|
18
|
+
error_response.kind_of?(Array) ? in_progress_array_error? : in_progress_error?
|
19
19
|
end
|
20
20
|
|
21
21
|
|
22
22
|
def in_progress_array_error?
|
23
|
-
error_response.present? && error_response.
|
23
|
+
error_response.present? && error_response.first['errorCode'] == 'DEP-ERR-4003'
|
24
24
|
end
|
25
25
|
|
26
26
|
def in_progress_error?
|
data/lib/acc/version.rb
CHANGED