Class: Moov::Models::Components::CardAcquiringRefund
- Inherits:
-
Object
- Object
- Moov::Models::Components::CardAcquiringRefund
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/cardacquiringrefund.rb
Overview
Details of a card refund.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(refund_id:, created_on:, updated_on:, status:, amount:, processing_details:, capture_id: nil, amount_details: nil) ⇒ CardAcquiringRefund
constructor
A new instance of CardAcquiringRefund.
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:, processing_details:, capture_id: nil, amount_details: nil) ⇒ CardAcquiringRefund
Returns a new instance of CardAcquiringRefund.
33 34 35 36 37 38 39 40 41 42 |
# File 'lib/moov/models/components/cardacquiringrefund.rb', line 33 def initialize(refund_id:, created_on:, updated_on:, status:, amount:, processing_details:, capture_id: nil, amount_details: nil) @refund_id = refund_id @created_on = created_on @updated_on = updated_on @status = status @amount = amount @processing_details = processing_details @capture_id = capture_id @amount_details = amount_details end |
Instance Method Details
#==(other) ⇒ Object
45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/moov/models/components/cardacquiringrefund.rb', line 45 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 @processing_details == other.processing_details return false unless @capture_id == other.capture_id return false unless @amount_details == other.amount_details true end |