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:, card_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:, card_details: nil) ⇒ CardAcquiringRefund
Returns a new instance of CardAcquiringRefund.
30 31 32 33 34 35 36 37 |
# File 'lib/moov/models/components/cardacquiringrefund.rb', line 30 def initialize(refund_id:, created_on:, updated_on:, status:, amount:, card_details: nil) @refund_id = refund_id @created_on = created_on @updated_on = updated_on @status = status @amount = amount @card_details = card_details end |
Instance Method Details
#==(other) ⇒ Object
40 41 42 43 44 45 46 47 48 49 |
# File 'lib/moov/models/components/cardacquiringrefund.rb', line 40 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 true end |