# frozen_string_literal: true
module Lithic
module Models
module FinancialAccounts
# @see Lithic::Resources::FinancialAccounts::LoanTapes#retrieve
class LoanTape < Lithic::Internal::Type::BaseModel
# @!attribute token
# Globally unique identifier for a loan tape
#
# @return [String]
required :token, String
# @!attribute account_standing
#
# @return [Lithic::Models::FinancialAccounts::LoanTape::AccountStanding]
required :account_standing, -> { Lithic::Models::FinancialAccounts::LoanTape::AccountStanding }
# @!attribute available_credit
# Amount of credit available to spend in cents
#
# @return [Integer]
required :available_credit, Integer
# @!attribute balances
#
# @return [Lithic::Models::FinancialAccounts::LoanTape::Balances]
required :balances, -> { Lithic::Models::FinancialAccounts::LoanTape::Balances }
# @!attribute created
# Timestamp of when the loan tape was created
#
# @return [Time]
required :created, Time
# @!attribute credit_limit
# For prepay accounts, this is the minimum prepay balance that must be maintained.
# For charge card accounts, this is the maximum credit balance extended by a
# lender
#
# @return [Integer]
required :credit_limit, Integer
# @!attribute credit_product_token
# Globally unique identifier for a credit product
#
# @return [String]
required :credit_product_token, String
# @!attribute date
# Date of transactions that this loan tape covers
#
# @return [Date]
required :date, Date
# @!attribute day_totals
#
# @return [Lithic::Models::FinancialAccounts::LoanTape::DayTotals]
required :day_totals, -> { Lithic::Models::FinancialAccounts::LoanTape::DayTotals }
# @!attribute ending_balance
# Balance at the end of the day
#
# @return [Integer]
required :ending_balance, Integer
# @!attribute excess_credits
# Excess credits in the form of provisional credits, payments, or purchase
# refunds. If positive, the account is in net credit state with no outstanding
# balances. An overpayment could land an account in this state
#
# @return [Integer]
required :excess_credits, Integer
# @!attribute financial_account_token
# Globally unique identifier for a financial account
#
# @return [String]
required :financial_account_token, String
# @!attribute interest_details
#
# @return [Lithic::Models::FinancialAccounts::LoanTape::InterestDetails, nil]
required :interest_details,
-> { Lithic::Models::FinancialAccounts::LoanTape::InterestDetails },
nil?: true
# @!attribute minimum_payment_balance
#
# @return [Lithic::Models::FinancialAccounts::LoanTape::MinimumPaymentBalance]
required :minimum_payment_balance,
-> { Lithic::Models::FinancialAccounts::LoanTape::MinimumPaymentBalance }
# @!attribute payment_allocation
#
# @return [Lithic::Models::FinancialAccounts::LoanTape::PaymentAllocation]
required :payment_allocation, -> { Lithic::Models::FinancialAccounts::LoanTape::PaymentAllocation }
# @!attribute period_totals
#
# @return [Lithic::Models::FinancialAccounts::LoanTape::PeriodTotals]
required :period_totals, -> { Lithic::Models::FinancialAccounts::LoanTape::PeriodTotals }
# @!attribute previous_statement_balance
#
# @return [Lithic::Models::FinancialAccounts::LoanTape::PreviousStatementBalance]
required :previous_statement_balance,
-> { Lithic::Models::FinancialAccounts::LoanTape::PreviousStatementBalance }
# @!attribute starting_balance
# Balance at the start of the day
#
# @return [Integer]
required :starting_balance, Integer
# @!attribute updated
# Timestamp of when the loan tape was updated
#
# @return [Time]
required :updated, Time
# @!attribute version
# Version number of the loan tape. This starts at 1
#
# @return [Integer]
required :version, Integer
# @!attribute ytd_totals
#
# @return [Lithic::Models::FinancialAccounts::LoanTape::YtdTotals]
required :ytd_totals, -> { Lithic::Models::FinancialAccounts::LoanTape::YtdTotals }
# @!attribute [r] tier
# Interest tier to which this account belongs to
#
# @return [String, nil]
optional :tier, String
# @!parse
# # @return [String]
# attr_writer :tier
# @!parse
# # @param token [String]
# # @param account_standing [Lithic::Models::FinancialAccounts::LoanTape::AccountStanding]
# # @param available_credit [Integer]
# # @param balances [Lithic::Models::FinancialAccounts::LoanTape::Balances]
# # @param created [Time]
# # @param credit_limit [Integer]
# # @param credit_product_token [String]
# # @param date [Date]
# # @param day_totals [Lithic::Models::FinancialAccounts::LoanTape::DayTotals]
# # @param ending_balance [Integer]
# # @param excess_credits [Integer]
# # @param financial_account_token [String]
# # @param interest_details [Lithic::Models::FinancialAccounts::LoanTape::InterestDetails, nil]
# # @param minimum_payment_balance [Lithic::Models::FinancialAccounts::LoanTape::MinimumPaymentBalance]
# # @param payment_allocation [Lithic::Models::FinancialAccounts::LoanTape::PaymentAllocation]
# # @param period_totals [Lithic::Models::FinancialAccounts::LoanTape::PeriodTotals]
# # @param previous_statement_balance [Lithic::Models::FinancialAccounts::LoanTape::PreviousStatementBalance]
# # @param starting_balance [Integer]
# # @param updated [Time]
# # @param version [Integer]
# # @param ytd_totals [Lithic::Models::FinancialAccounts::LoanTape::YtdTotals]
# # @param tier [String]
# #
# def initialize(
# token:,
# account_standing:,
# available_credit:,
# balances:,
# created:,
# credit_limit:,
# credit_product_token:,
# date:,
# day_totals:,
# ending_balance:,
# excess_credits:,
# financial_account_token:,
# interest_details:,
# minimum_payment_balance:,
# payment_allocation:,
# period_totals:,
# previous_statement_balance:,
# starting_balance:,
# updated:,
# version:,
# ytd_totals:,
# tier: nil,
# **
# )
# super
# end
# def initialize: (Hash | Lithic::Internal::Type::BaseModel) -> void
# @see Lithic::Models::FinancialAccounts::LoanTape#account_standing
class AccountStanding < Lithic::Internal::Type::BaseModel
# @!attribute consecutive_full_payments_made
# Number of consecutive full payments made
#
# @return [Integer]
required :consecutive_full_payments_made, Integer
# @!attribute consecutive_minimum_payments_made
# Number of consecutive minimum payments made
#
# @return [Integer]
required :consecutive_minimum_payments_made, Integer
# @!attribute consecutive_minimum_payments_missed
# Number of consecutive minimum payments missed
#
# @return [Integer]
required :consecutive_minimum_payments_missed, Integer
# @!attribute days_past_due
# Number of days past due
#
# @return [Integer]
required :days_past_due, Integer
# @!attribute financial_account_state
# Information about the financial account state
#
# @return [Lithic::Models::FinancialAccounts::LoanTape::AccountStanding::FinancialAccountState]
required :financial_account_state,
-> { Lithic::Models::FinancialAccounts::LoanTape::AccountStanding::FinancialAccountState }
# @!attribute has_grace
# Whether the account currently has grace or not
#
# @return [Boolean]
required :has_grace, Lithic::Internal::Type::BooleanModel
# @!attribute period_number
# Current overall period number
#
# @return [Integer]
required :period_number, Integer
# @!attribute period_state
#
# @return [Symbol, Lithic::Models::FinancialAccounts::LoanTape::AccountStanding::PeriodState]
required :period_state,
enum: -> { Lithic::Models::FinancialAccounts::LoanTape::AccountStanding::PeriodState }
# @!parse
# # @param consecutive_full_payments_made [Integer]
# # @param consecutive_minimum_payments_made [Integer]
# # @param consecutive_minimum_payments_missed [Integer]
# # @param days_past_due [Integer]
# # @param financial_account_state [Lithic::Models::FinancialAccounts::LoanTape::AccountStanding::FinancialAccountState]
# # @param has_grace [Boolean]
# # @param period_number [Integer]
# # @param period_state [Symbol, Lithic::Models::FinancialAccounts::LoanTape::AccountStanding::PeriodState]
# #
# def initialize(
# consecutive_full_payments_made:,
# consecutive_minimum_payments_made:,
# consecutive_minimum_payments_missed:,
# days_past_due:,
# financial_account_state:,
# has_grace:,
# period_number:,
# period_state:,
# **
# )
# super
# end
# def initialize: (Hash | Lithic::Internal::Type::BaseModel) -> void
# @see Lithic::Models::FinancialAccounts::LoanTape::AccountStanding#financial_account_state
class FinancialAccountState < Lithic::Internal::Type::BaseModel
# @!attribute status
# Status of the financial account
#
# @return [Symbol, Lithic::Models::FinancialAccounts::LoanTape::AccountStanding::FinancialAccountState::Status]
required :status,
enum: -> { Lithic::Models::FinancialAccounts::LoanTape::AccountStanding::FinancialAccountState::Status }
# @!attribute status_change_reason
# Reason for the financial account status change
#
# @return [Symbol, Lithic::Models::FinancialAccounts::LoanTape::AccountStanding::FinancialAccountState::StatusChangeReason, nil]
optional :status_change_reason,
enum: -> { Lithic::Models::FinancialAccounts::LoanTape::AccountStanding::FinancialAccountState::StatusChangeReason },
nil?: true
# @!parse
# # Information about the financial account state
# #
# # @param status [Symbol, Lithic::Models::FinancialAccounts::LoanTape::AccountStanding::FinancialAccountState::Status]
# # @param status_change_reason [Symbol, Lithic::Models::FinancialAccounts::LoanTape::AccountStanding::FinancialAccountState::StatusChangeReason, nil]
# #
# def initialize(status:, status_change_reason: nil, **) = super
# def initialize: (Hash | Lithic::Internal::Type::BaseModel) -> void
# Status of the financial account
#
# @see Lithic::Models::FinancialAccounts::LoanTape::AccountStanding::FinancialAccountState#status
module Status
extend Lithic::Internal::Type::Enum
OPEN = :OPEN
CLOSED = :CLOSED
SUSPENDED = :SUSPENDED
PENDING = :PENDING
finalize!
# @!parse
# # @return [Array<Symbol>]
# def self.values; end
end
# Reason for the financial account status change
#
# @see Lithic::Models::FinancialAccounts::LoanTape::AccountStanding::FinancialAccountState#status_change_reason
module StatusChangeReason
extend Lithic::Internal::Type::Enum
CHARGED_OFF_DELINQUENT = :CHARGED_OFF_DELINQUENT
CHARGED_OFF_FRAUD = :CHARGED_OFF_FRAUD
END_USER_REQUEST = :END_USER_REQUEST
BANK_REQUEST = :BANK_REQUEST
DELINQUENT = :DELINQUENT
finalize!
# @!parse
# # @return [Array<Symbol>]
# def self.values; end
end
end
# @see Lithic::Models::FinancialAccounts::LoanTape::AccountStanding#period_state
module PeriodState
extend Lithic::Internal::Type::Enum
STANDARD = :STANDARD
PROMO = :PROMO
PENALTY = :PENALTY
finalize!
# @!parse
# # @return [Array<Symbol>]
# def self.values; end
end
end
# @see Lithic::Models::FinancialAccounts::LoanTape#balances
class Balances < Lithic::Internal::Type::BaseModel
# @!attribute due
# Amount due for the prior billing cycle. Any amounts not fully paid off on this
# due date will be considered past due the next day
#
# @return [Lithic::Models::FinancialAccounts::LoanTape::Balances::Due]
required :due, -> { Lithic::Models::FinancialAccounts::LoanTape::Balances::Due }
# @!attribute next_statement_due
# Amount due for the current billing cycle. Any amounts not paid off by early
# payments or credits will be considered due at the end of the current billing
# period
#
# @return [Lithic::Models::FinancialAccounts::LoanTape::Balances::NextStatementDue]
required :next_statement_due,
-> { Lithic::Models::FinancialAccounts::LoanTape::Balances::NextStatementDue }
# @!attribute past_due
# Amount not paid off on previous due dates
#
# @return [Lithic::Models::FinancialAccounts::LoanTape::Balances::PastDue]
required :past_due, -> { Lithic::Models::FinancialAccounts::LoanTape::Balances::PastDue }
# @!attribute past_statements_due
# Amount due for the past billing cycles.
#
# @return [Lithic::Models::FinancialAccounts::LoanTape::Balances::PastStatementsDue]
required :past_statements_due,
-> { Lithic::Models::FinancialAccounts::LoanTape::Balances::PastStatementsDue }
# @!parse
# # @param due [Lithic::Models::FinancialAccounts::LoanTape::Balances::Due]
# # @param next_statement_due [Lithic::Models::FinancialAccounts::LoanTape::Balances::NextStatementDue]
# # @param past_due [Lithic::Models::FinancialAccounts::LoanTape::Balances::PastDue]
# # @param past_statements_due [Lithic::Models::FinancialAccounts::LoanTape::Balances::PastStatementsDue]
# #
# def initialize(due:, next_statement_due:, past_due:, past_statements_due:, **) = super
# def initialize: (Hash | Lithic::Internal::Type::BaseModel) -> void
# @see Lithic::Models::FinancialAccounts::LoanTape::Balances#due
class Due < Lithic::Internal::Type::BaseModel
# @!attribute fees
#
# @return [Integer]
required :fees, Integer
# @!attribute interest
#
# @return [Integer]
required :interest, Integer
# @!attribute principal
#
# @return [Integer]
required :principal, Integer
# @!parse
# # Amount due for the prior billing cycle. Any amounts not fully paid off on this
# # due date will be considered past due the next day
# #
# # @param fees [Integer]
# # @param interest [Integer]
# # @param principal [Integer]
# #
# def initialize(fees:, interest:, principal:, **) = super
# def initialize: (Hash | Lithic::Internal::Type::BaseModel) -> void
end
# @see Lithic::Models::FinancialAccounts::LoanTape::Balances#next_statement_due
class NextStatementDue < Lithic::Internal::Type::BaseModel
# @!attribute fees
#
# @return [Integer]
required :fees, Integer
# @!attribute interest
#
# @return [Integer]
required :interest, Integer
# @!attribute principal
#
# @return [Integer]
required :principal, Integer
# @!parse
# # Amount due for the current billing cycle. Any amounts not paid off by early
# # payments or credits will be considered due at the end of the current billing
# # period
# #
# # @param fees [Integer]
# # @param interest [Integer]
# # @param principal [Integer]
# #
# def initialize(fees:, interest:, principal:, **) = super
# def initialize: (Hash | Lithic::Internal::Type::BaseModel) -> void
end
# @see Lithic::Models::FinancialAccounts::LoanTape::Balances#past_due
class PastDue < Lithic::Internal::Type::BaseModel
# @!attribute fees
#
# @return [Integer]
required :fees, Integer
# @!attribute interest
#
# @return [Integer]
required :interest, Integer
# @!attribute principal
#
# @return [Integer]
required :principal, Integer
# @!parse
# # Amount not paid off on previous due dates
# #
# # @param fees [Integer]
# # @param interest [Integer]
# # @param principal [Integer]
# #
# def initialize(fees:, interest:, principal:, **) = super
# def initialize: (Hash | Lithic::Internal::Type::BaseModel) -> void
end
# @see Lithic::Models::FinancialAccounts::LoanTape::Balances#past_statements_due
class PastStatementsDue < Lithic::Internal::Type::BaseModel
# @!attribute fees
#
# @return [Integer]
required :fees, Integer
# @!attribute interest
#
# @return [Integer]
required :interest, Integer
# @!attribute principal
#
# @return [Integer]
required :principal, Integer
# @!parse
# # Amount due for the past billing cycles.
# #
# # @param fees [Integer]
# # @param interest [Integer]
# # @param principal [Integer]
# #
# def initialize(fees:, interest:, principal:, **) = super
# def initialize: (Hash | Lithic::Internal::Type::BaseModel) -> void
end
end
# @see Lithic::Models::FinancialAccounts::LoanTape#day_totals
class DayTotals < Lithic::Internal::Type::BaseModel
# @!attribute balance_transfers
# Opening balance transferred from previous account in cents
#
# @return [Integer]
required :balance_transfers, Integer
# @!attribute cash_advances
# ATM and cashback transactions in cents
#
# @return [Integer]
required :cash_advances, Integer
# @!attribute credits
# Volume of credit management operation transactions less any balance transfers in
# cents
#
# @return [Integer]
required :credits, Integer
# @!attribute fees
# Volume of debit management operation transactions less any interest in cents
#
# @return [Integer]
required :fees, Integer
# @!attribute interest
# Interest accrued in cents
#
# @return [Integer]
required :interest, Integer
# @!attribute payments
# Any funds transfers which affective the balance in cents
#
# @return [Integer]
required :payments, Integer
# @!attribute purchases
# Net card transaction volume less any cash advances in cents
#
# @return [Integer]
required :purchases, Integer
# @!parse
# # @param balance_transfers [Integer]
# # @param cash_advances [Integer]
# # @param credits [Integer]
# # @param fees [Integer]
# # @param interest [Integer]
# # @param payments [Integer]
# # @param purchases [Integer]
# #
# def initialize(balance_transfers:, cash_advances:, credits:, fees:, interest:, payments:, purchases:, **) = super
# def initialize: (Hash | Lithic::Internal::Type::BaseModel) -> void
end
# @see Lithic::Models::FinancialAccounts::LoanTape#interest_details
class InterestDetails < Lithic::Internal::Type::BaseModel
# @!attribute actual_interest_charged
#
# @return [Integer, nil]
required :actual_interest_charged, Integer, nil?: true
# @!attribute daily_balance_amounts
#
# @return [Lithic::Models::FinancialAccounts::LoanTape::InterestDetails::DailyBalanceAmounts]
required :daily_balance_amounts,
-> { Lithic::Models::FinancialAccounts::LoanTape::InterestDetails::DailyBalanceAmounts }
# @!attribute effective_apr
#
# @return [Lithic::Models::FinancialAccounts::LoanTape::InterestDetails::EffectiveApr]
required :effective_apr, -> { Lithic::Models::FinancialAccounts::LoanTape::InterestDetails::EffectiveApr }
# @!attribute interest_calculation_method
#
# @return [Symbol, Lithic::Models::FinancialAccounts::LoanTape::InterestDetails::InterestCalculationMethod]
required :interest_calculation_method,
enum: -> { Lithic::Models::FinancialAccounts::LoanTape::InterestDetails::InterestCalculationMethod }
# @!attribute interest_for_period
#
# @return [Lithic::Models::FinancialAccounts::LoanTape::InterestDetails::InterestForPeriod]
required :interest_for_period,
-> { Lithic::Models::FinancialAccounts::LoanTape::InterestDetails::InterestForPeriod }
# @!attribute prime_rate
#
# @return [String, nil]
required :prime_rate, String, nil?: true
# @!attribute minimum_interest_charged
#
# @return [Integer, nil]
optional :minimum_interest_charged, Integer, nil?: true
# @!parse
# # @param actual_interest_charged [Integer, nil]
# # @param daily_balance_amounts [Lithic::Models::FinancialAccounts::LoanTape::InterestDetails::DailyBalanceAmounts]
# # @param effective_apr [Lithic::Models::FinancialAccounts::LoanTape::InterestDetails::EffectiveApr]
# # @param interest_calculation_method [Symbol, Lithic::Models::FinancialAccounts::LoanTape::InterestDetails::InterestCalculationMethod]
# # @param interest_for_period [Lithic::Models::FinancialAccounts::LoanTape::InterestDetails::InterestForPeriod]
# # @param prime_rate [String, nil]
# # @param minimum_interest_charged [Integer, nil]
# #
# def initialize(
# actual_interest_charged:,
# daily_balance_amounts:,
# effective_apr:,
# interest_calculation_method:,
# interest_for_period:,
# prime_rate:,
# minimum_interest_charged: nil,
# **
# )
# super
# end
# def initialize: (Hash | Lithic::Internal::Type::BaseModel) -> void
# @see Lithic::Models::FinancialAccounts::LoanTape::InterestDetails#daily_balance_amounts
class DailyBalanceAmounts < Lithic::Internal::Type::BaseModel
# @!attribute balance_transfers
#
# @return [String]
required :balance_transfers, String
# @!attribute cash_advances
#
# @return [String]
required :cash_advances, String
# @!attribute purchases
#
# @return [String]
required :purchases, String
# @!parse
# # @param balance_transfers [String]
# # @param cash_advances [String]
# # @param purchases [String]
# #
# def initialize(balance_transfers:, cash_advances:, purchases:, **) = super
# def initialize: (Hash | Lithic::Internal::Type::BaseModel) -> void
end
# @see Lithic::Models::FinancialAccounts::LoanTape::InterestDetails#effective_apr
class EffectiveApr < Lithic::Internal::Type::BaseModel
# @!attribute balance_transfers
#
# @return [String]
required :balance_transfers, String
# @!attribute cash_advances
#
# @return [String]
required :cash_advances, String
# @!attribute purchases
#
# @return [String]
required :purchases, String
# @!parse
# # @param balance_transfers [String]
# # @param cash_advances [String]
# # @param purchases [String]
# #
# def initialize(balance_transfers:, cash_advances:, purchases:, **) = super
# def initialize: (Hash | Lithic::Internal::Type::BaseModel) -> void
end
# @see Lithic::Models::FinancialAccounts::LoanTape::InterestDetails#interest_calculation_method
module InterestCalculationMethod
extend Lithic::Internal::Type::Enum
DAILY = :DAILY
AVERAGE_DAILY = :AVERAGE_DAILY
finalize!
# @!parse
# # @return [Array<Symbol>]
# def self.values; end
end
# @see Lithic::Models::FinancialAccounts::LoanTape::InterestDetails#interest_for_period
class InterestForPeriod < Lithic::Internal::Type::BaseModel
# @!attribute balance_transfers
#
# @return [String]
required :balance_transfers, String
# @!attribute cash_advances
#
# @return [String]
required :cash_advances, String
# @!attribute purchases
#
# @return [String]
required :purchases, String
# @!parse
# # @param balance_transfers [String]
# # @param cash_advances [String]
# # @param purchases [String]
# #
# def initialize(balance_transfers:, cash_advances:, purchases:, **) = super
# def initialize: (Hash | Lithic::Internal::Type::BaseModel) -> void
end
end
# @see Lithic::Models::FinancialAccounts::LoanTape#minimum_payment_balance
class MinimumPaymentBalance < Lithic::Internal::Type::BaseModel
# @!attribute amount
#
# @return [Integer]
required :amount, Integer
# @!attribute remaining
#
# @return [Integer]
required :remaining, Integer
# @!parse
# # @param amount [Integer]
# # @param remaining [Integer]
# #
# def initialize(amount:, remaining:, **) = super
# def initialize: (Hash | Lithic::Internal::Type::BaseModel) -> void
end
# @see Lithic::Models::FinancialAccounts::LoanTape#payment_allocation
class PaymentAllocation < Lithic::Internal::Type::BaseModel
# @!attribute fees
#
# @return [Integer]
required :fees, Integer
# @!attribute interest
#
# @return [Integer]
required :interest, Integer
# @!attribute principal
#
# @return [Integer]
required :principal, Integer
# @!parse
# # @param fees [Integer]
# # @param interest [Integer]
# # @param principal [Integer]
# #
# def initialize(fees:, interest:, principal:, **) = super
# def initialize: (Hash | Lithic::Internal::Type::BaseModel) -> void
end
# @see Lithic::Models::FinancialAccounts::LoanTape#period_totals
class PeriodTotals < Lithic::Internal::Type::BaseModel
# @!attribute balance_transfers
# Opening balance transferred from previous account in cents
#
# @return [Integer]
required :balance_transfers, Integer
# @!attribute cash_advances
# ATM and cashback transactions in cents
#
# @return [Integer]
required :cash_advances, Integer
# @!attribute credits
# Volume of credit management operation transactions less any balance transfers in
# cents
#
# @return [Integer]
required :credits, Integer
# @!attribute fees
# Volume of debit management operation transactions less any interest in cents
#
# @return [Integer]
required :fees, Integer
# @!attribute interest
# Interest accrued in cents
#
# @return [Integer]
required :interest, Integer
# @!attribute payments
# Any funds transfers which affective the balance in cents
#
# @return [Integer]
required :payments, Integer
# @!attribute purchases
# Net card transaction volume less any cash advances in cents
#
# @return [Integer]
required :purchases, Integer
# @!parse
# # @param balance_transfers [Integer]
# # @param cash_advances [Integer]
# # @param credits [Integer]
# # @param fees [Integer]
# # @param interest [Integer]
# # @param payments [Integer]
# # @param purchases [Integer]
# #
# def initialize(balance_transfers:, cash_advances:, credits:, fees:, interest:, payments:, purchases:, **) = super
# def initialize: (Hash | Lithic::Internal::Type::BaseModel) -> void
end
# @see Lithic::Models::FinancialAccounts::LoanTape#previous_statement_balance
class PreviousStatementBalance < Lithic::Internal::Type::BaseModel
# @!attribute amount
#
# @return [Integer]
required :amount, Integer
# @!attribute remaining
#
# @return [Integer]
required :remaining, Integer
# @!parse
# # @param amount [Integer]
# # @param remaining [Integer]
# #
# def initialize(amount:, remaining:, **) = super
# def initialize: (Hash | Lithic::Internal::Type::BaseModel) -> void
end
# @see Lithic::Models::FinancialAccounts::LoanTape#ytd_totals
class YtdTotals < Lithic::Internal::Type::BaseModel
# @!attribute balance_transfers
# Opening balance transferred from previous account in cents
#
# @return [Integer]
required :balance_transfers, Integer
# @!attribute cash_advances
# ATM and cashback transactions in cents
#
# @return [Integer]
required :cash_advances, Integer
# @!attribute credits
# Volume of credit management operation transactions less any balance transfers in
# cents
#
# @return [Integer]
required :credits, Integer
# @!attribute fees
# Volume of debit management operation transactions less any interest in cents
#
# @return [Integer]
required :fees, Integer
# @!attribute interest
# Interest accrued in cents
#
# @return [Integer]
required :interest, Integer
# @!attribute payments
# Any funds transfers which affective the balance in cents
#
# @return [Integer]
required :payments, Integer
# @!attribute purchases
# Net card transaction volume less any cash advances in cents
#
# @return [Integer]
required :purchases, Integer
# @!parse
# # @param balance_transfers [Integer]
# # @param cash_advances [Integer]
# # @param credits [Integer]
# # @param fees [Integer]
# # @param interest [Integer]
# # @param payments [Integer]
# # @param purchases [Integer]
# #
# def initialize(balance_transfers:, cash_advances:, credits:, fees:, interest:, payments:, purchases:, **) = super
# def initialize: (Hash | Lithic::Internal::Type::BaseModel) -> void
end
end
end
end
end