lib/lithic/models/cards/balance_list_response.rb
# frozen_string_literal: true module Lithic module Models module Cards # @see Lithic::Resources::Cards::Balances#list class BalanceListResponse < Lithic::Internal::Type::BaseModel # @!attribute token # Globally unique identifier for the financial account that holds this balance. # # @return [String] required :token, String # @!attribute available_amount # Funds available for spend in the currency's smallest unit (e.g., cents for USD) # # @return [Integer] required :available_amount, Integer # @!attribute created # Date and time for when the balance was first created. # # @return [Time] required :created, Time # @!attribute currency # 3-character alphabetic ISO 4217 code for the local currency of the balance. # # @return [String] required :currency, String # @!attribute last_transaction_event_token # Globally unique identifier for the last financial transaction event that # impacted this balance. # # @return [String] required :last_transaction_event_token, String # @!attribute last_transaction_token # Globally unique identifier for the last financial transaction that impacted this # balance. # # @return [String] required :last_transaction_token, String # @!attribute pending_amount # Funds not available for spend due to card authorizations or pending ACH release. # Shown in the currency's smallest unit (e.g., cents for USD). # # @return [Integer] required :pending_amount, Integer # @!attribute total_amount # The sum of available and pending balance in the currency's smallest unit (e.g., # cents for USD). # # @return [Integer] required :total_amount, Integer # @!attribute type # Type of financial account. # # @return [Symbol, Lithic::Models::Cards::BalanceListResponse::Type] required :type, enum: -> { Lithic::Models::Cards::BalanceListResponse::Type } # @!attribute updated # Date and time for when the balance was last updated. # # @return [Time] required :updated, Time # @!parse # # Balance of a Financial Account # # # # @param token [String] # # @param available_amount [Integer] # # @param created [Time] # # @param currency [String] # # @param last_transaction_event_token [String] # # @param last_transaction_token [String] # # @param pending_amount [Integer] # # @param total_amount [Integer] # # @param type [Symbol, Lithic::Models::Cards::BalanceListResponse::Type] # # @param updated [Time] # # # def initialize( # token:, # available_amount:, # created:, # currency:, # last_transaction_event_token:, # last_transaction_token:, # pending_amount:, # total_amount:, # type:, # updated:, # ** # ) # super # end # def initialize: (Hash | Lithic::Internal::Type::BaseModel) -> void # Type of financial account. # # @see Lithic::Models::Cards::BalanceListResponse#type module Type extend Lithic::Internal::Type::Enum ISSUING = :ISSUING OPERATING = :OPERATING RESERVE = :RESERVE finalize! # @!parse # # @return [Array<Symbol>] # def self.values; end end end end end end