Class: Moov::Models::Components::WebhookDataWalletTransactionUpdated

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(account_id:, wallet_id:, transaction_id:, status:, available_balance: nil) ⇒ WebhookDataWalletTransactionUpdated

Returns a new instance of WebhookDataWalletTransactionUpdated.



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

def initialize(account_id:, wallet_id:, transaction_id:, status:, available_balance: nil)
  @account_id = 
  @wallet_id = wallet_id
  @transaction_id = transaction_id
  @status = status
  @available_balance = available_balance
end

Instance Method Details

#==(other) ⇒ Object



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

def ==(other)
  return false unless other.is_a? self.class
  return false unless @account_id == other.
  return false unless @wallet_id == other.wallet_id
  return false unless @transaction_id == other.transaction_id
  return false unless @status == other.status
  return false unless @available_balance == other.available_balance
  true
end