lib/payture/cheques/responses/status.rb in payture-cheques-0.1.4 vs lib/payture/cheques/responses/status.rb in payture-cheques-0.1.5
- old
+ new
@@ -5,9 +5,10 @@
class Status < Base
ERROR_STATES = {
'Unauthorized' => 'CANNOT_AUTHORIZE_TERMINAL',
'NotFound' => 'NOT_FOUND',
'Timeout' => 'TIMEOUT',
+ 'ServiceUnavailable' => 'SERVICE_UNAVAILABLE',
'Unknown' => 'UNKNOWN',
}.freeze
def cheques
@cheques ||= body['Cheques'].map { |c| ChequeStatus.new(c) }