wirecardmapper 0.10.0 → 0.10.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -30,7 +30,7 @@ module WirecardMapper
|
|
30
30
|
reload_card_info_cache
|
31
31
|
transaction_log("change_card_status", response)
|
32
32
|
raise WirecardMapper::Exception, "Wirecard-System[ERROR]: #{response.return_message}" unless response.ok?
|
33
|
-
|
33
|
+
update_status_cache
|
34
34
|
end
|
35
35
|
return response
|
36
36
|
end
|
@@ -72,7 +72,7 @@ module WirecardMapper
|
|
72
72
|
end
|
73
73
|
|
74
74
|
def status
|
75
|
-
self.respond_to?(:
|
75
|
+
self.respond_to?(:status_cache) && self.status_cache.present? ? self.status_cache : card_info.status_code
|
76
76
|
end
|
77
77
|
|
78
78
|
def balance
|
@@ -117,8 +117,8 @@ module WirecardMapper
|
|
117
117
|
@card_info = nil
|
118
118
|
end
|
119
119
|
|
120
|
-
def
|
121
|
-
self.update_attribute(:
|
120
|
+
def update_status_cache
|
121
|
+
self.update_attribute(:status_cache, card_info.status_code) if self.respond_to?(:status_cache=)
|
122
122
|
end
|
123
123
|
|
124
124
|
end
|