Class: Moov::Models::Components::AsyncCreatedRefund

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/moov/models/components/asynccreatedrefund.rb

Overview

Asynchronous refund response

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(refund_id:, created_on:, amount:, capture_id: nil, amount_details: nil) ⇒ AsyncCreatedRefund

Returns a new instance of AsyncCreatedRefund.



27
28
29
30
31
32
33
# File 'lib/moov/models/components/asynccreatedrefund.rb', line 27

def initialize(refund_id:, created_on:, amount:, capture_id: nil, amount_details: nil)
  @refund_id = refund_id
  @created_on = created_on
  @amount = amount
  @capture_id = capture_id
  @amount_details = amount_details
end

Instance Method Details

#==(other) ⇒ Object



36
37
38
39
40
41
42
43
44
# File 'lib/moov/models/components/asynccreatedrefund.rb', line 36

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 @amount == other.amount
  return false unless @capture_id == other.capture_id
  return false unless @amount_details == other.amount_details
  true
end