Class: Moov::Models::Components::IssuedCardTransaction

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(card_transaction_id:, issued_card_id:, funding_wallet_id:, amount:, authorized_on:, merchant_data:, created_on:, authorization_id: nil) ⇒ IssuedCardTransaction

Returns a new instance of IssuedCardTransaction.



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

def initialize(card_transaction_id:, issued_card_id:, funding_wallet_id:, amount:, authorized_on:, merchant_data:, created_on:, authorization_id: nil)
  @card_transaction_id = card_transaction_id
  @issued_card_id = issued_card_id
  @funding_wallet_id = funding_wallet_id
  @amount = amount
  @authorized_on = authorized_on
  @merchant_data = merchant_data
  @created_on = created_on
  @authorization_id = authorization_id
end

Instance Method Details

#==(other) ⇒ Object



46
47
48
49
50
51
52
53
54
55
56
57
# File 'lib/moov/models/components/issuedcardtransaction.rb', line 46

def ==(other)
  return false unless other.is_a? self.class
  return false unless @card_transaction_id == other.card_transaction_id
  return false unless @issued_card_id == other.issued_card_id
  return false unless @funding_wallet_id == other.funding_wallet_id
  return false unless @amount == other.amount
  return false unless @authorized_on == other.authorized_on
  return false unless @merchant_data == other.merchant_data
  return false unless @created_on == other.created_on
  return false unless @authorization_id == other.authorization_id
  true
end