Exception: Moov::Models::Errors::CaptureValidationError
- Inherits:
-
StandardError
- Object
- StandardError
- Moov::Models::Errors::CaptureValidationError
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/errors/capturevalidationerror.rb
Overview
Descriptions of any field validations that failed on a capture request.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(destination_payment_method_id: nil, amount: nil, is_final: nil, description: nil, facilitator_fee_amount: nil, metadata: nil, foreign_id: nil, line_items: nil, amount_details: nil, raw_response: nil) ⇒ CaptureValidationError
constructor
A new instance of CaptureValidationError.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(destination_payment_method_id: nil, amount: nil, is_final: nil, description: nil, facilitator_fee_amount: nil, metadata: nil, foreign_id: nil, line_items: nil, amount_details: nil, raw_response: nil) ⇒ CaptureValidationError
Returns a new instance of CaptureValidationError.
37 38 39 40 41 42 43 44 45 46 47 48 |
# File 'lib/moov/models/errors/capturevalidationerror.rb', line 37 def initialize(destination_payment_method_id: nil, amount: nil, is_final: nil, description: nil, facilitator_fee_amount: nil, metadata: nil, foreign_id: nil, line_items: nil, amount_details: nil, raw_response: nil) @destination_payment_method_id = destination_payment_method_id @amount = amount @is_final = is_final @description = description @facilitator_fee_amount = facilitator_fee_amount @metadata = @foreign_id = foreign_id @line_items = line_items @amount_details = amount_details @raw_response = raw_response end |
Instance Method Details
#==(other) ⇒ Object
51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/moov/models/errors/capturevalidationerror.rb', line 51 def ==(other) return false unless other.is_a? self.class return false unless @destination_payment_method_id == other.destination_payment_method_id return false unless @amount == other.amount return false unless @is_final == other.is_final return false unless @description == other.description return false unless @facilitator_fee_amount == other.facilitator_fee_amount return false unless @metadata == other. return false unless @foreign_id == other.foreign_id return false unless @line_items == other.line_items return false unless @amount_details == other.amount_details return false unless @raw_response == other.raw_response true end |