Class: Moov::Models::Errors::CardAcquiringRefundError
- Inherits:
-
Object
- Object
- Moov::Models::Errors::CardAcquiringRefundError
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/errors/cardacquiringrefund_error.rb
Overview
Details of a card refund.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(refund_id:, created_on:, updated_on:, status:, amount:, card_details: nil, raw_response: nil) ⇒ CardAcquiringRefundError
constructor
A new instance of CardAcquiringRefundError.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(refund_id:, created_on:, updated_on:, status:, amount:, card_details: nil, raw_response: nil) ⇒ CardAcquiringRefundError
Returns a new instance of CardAcquiringRefundError.
32 33 34 35 36 37 38 39 40 |
# File 'lib/moov/models/errors/cardacquiringrefund_error.rb', line 32 def initialize(refund_id:, created_on:, updated_on:, status:, amount:, card_details: nil, raw_response: nil) @refund_id = refund_id @created_on = created_on @updated_on = updated_on @status = status @amount = amount @card_details = card_details @raw_response = raw_response end |
Instance Method Details
#==(other) ⇒ Object
43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/moov/models/errors/cardacquiringrefund_error.rb', line 43 def ==(other) return false unless other.is_a? self.class return false unless @refund_id == other.refund_id return false unless @created_on == other.created_on return false unless @updated_on == other.updated_on return false unless @status == other.status return false unless @amount == other.amount return false unless @card_details == other.card_details return false unless @raw_response == other.raw_response true end |