Class: Moov::Models::Components::IssuedCardAuthorization

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(authorization_id:, issued_card_id:, funding_wallet_id:, network:, authorized_amount:, status:, merchant_data:, created_on:, card_transactions: nil) ⇒ IssuedCardAuthorization

Returns a new instance of IssuedCardAuthorization.



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

def initialize(authorization_id:, issued_card_id:, funding_wallet_id:, network:, authorized_amount:, status:, merchant_data:, created_on:, card_transactions: nil)
  @authorization_id = authorization_id
  @issued_card_id = issued_card_id
  @funding_wallet_id = funding_wallet_id
  @network = network
  @authorized_amount = authorized_amount
  @status = status
  @merchant_data = merchant_data
  @created_on = created_on
  @card_transactions = card_transactions
end

Instance Method Details

#==(other) ⇒ Object



49
50
51
52
53
54
55
56
57
58
59
60
61
# File 'lib/moov/models/components/issuedcardauthorization.rb', line 49

def ==(other)
  return false unless other.is_a? self.class
  return false unless @authorization_id == other.authorization_id
  return false unless @issued_card_id == other.issued_card_id
  return false unless @funding_wallet_id == other.funding_wallet_id
  return false unless @network == other.network
  return false unless @authorized_amount == other.authorized_amount
  return false unless @status == other.status
  return false unless @merchant_data == other.merchant_data
  return false unless @created_on == other.created_on
  return false unless @card_transactions == other.card_transactions
  true
end