class Payture::Cheques::Responses::Status
Constants
- ERROR_STATES
Public Instance Methods
cheques()
click to toggle source
# File lib/payture/cheques/responses/status.rb, line 14 def cheques @cheques ||= body['Cheques'].map { |c| ChequeStatus.new(c) } end
error_code()
click to toggle source
# File lib/payture/cheques/responses/status.rb, line 30 def error_code body['ErrCode'] || ERROR_STATES[body['Status']] end
processed?()
click to toggle source
# File lib/payture/cheques/responses/status.rb, line 22 def processed? error_code.nil? && cheques.all?(&:processed?) end
processing_error?()
click to toggle source
# File lib/payture/cheques/responses/status.rb, line 26 def processing_error? !error_code.nil? || cheques.any?(&:processing_error?) end
status()
click to toggle source
# File lib/payture/cheques/responses/status.rb, line 34 def status body['Status'] end
success?()
click to toggle source
# File lib/payture/cheques/responses/status.rb, line 18 def success? body['Success'] == true end