Class: Remit::PipelineResponse

Inherits:
InboundRequest show all
Defined in:
lib/remit/pipeline_response.rb

Constant Summary collapse

SIGNATURE_KEY =

signature key name

'awsSignature'

Constants included from SignatureUtilsForOutbound

SignatureUtilsForOutbound::CERTIFICATE_URL_KEYNAME, SignatureUtilsForOutbound::SIGNATURE_KEYNAME, SignatureUtilsForOutbound::SIGNATURE_METHOD_KEYNAME, SignatureUtilsForOutbound::SIGNATURE_VERSION_2, SignatureUtilsForOutbound::SIGNATURE_VERSION_KEYNAME

Instance Attribute Summary

Attributes inherited from InboundRequest

#allow_sigv1, #hash_params, #supplied_signature

Instance Method Summary collapse

Methods inherited from InboundRequest

#initialize, #method_missing, #valid?

Methods included from SignatureUtilsForOutbound

#check_parameters, #get_http_params, #urlencode

Methods included from ConvertKey

#convert_key

Constructor Details

This class inherits a constructor from Remit::InboundRequest

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Remit::InboundRequest

Instance Method Details

#successful?Boolean

Returns:

  • (Boolean)


7
8
9
10
11
12
13
14
15
16
17
# File 'lib/remit/pipeline_response.rb', line 7

def successful?
  [
    Remit::PipelineStatusCode::SUCCESS_UNCHANGED,
    Remit::PipelineStatusCode::SUCCESS_ABT,
    Remit::PipelineStatusCode::SUCCESS_ACH,
    Remit::PipelineStatusCode::SUCCESS_CC,
    Remit::PipelineStatusCode::SUCCESS_RECIPIENT_TOKEN_INSTALLED
  ].include?(@hash_params['status']) #:status])
  # BJM: 'status' not :status

end