Class: Lithic::Models::FinancialAccounts::Statement

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/lithic/models/financial_accounts/statement.rb

Overview

Direct Known Subclasses

StatementsCreatedWebhookEvent

Defined Under Namespace

Modules: StatementType Classes: AccountStanding, AmountDue, InterestDetails, PayoffDetails

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(amount:, past_due:) ⇒ Object

Some parameter documentations has been truncated, see AmountDue for more details.

Parameters:

  • amount (Integer)

    Payment due at the end of the billing period in cents. Negative amount indicates

  • past_due (Integer)

    Amount past due for statement in cents



# File 'lib/lithic/models/financial_accounts/statement.rb', line 135


Instance Attribute Details

#account_standingLithic::Models::FinancialAccounts::Statement::AccountStanding



17
# File 'lib/lithic/models/financial_accounts/statement.rb', line 17

required :account_standing, -> { Lithic::FinancialAccounts::Statement::AccountStanding }

#amount_dueLithic::Models::FinancialAccounts::Statement::AmountDue



22
# File 'lib/lithic/models/financial_accounts/statement.rb', line 22

required :amount_due, -> { Lithic::FinancialAccounts::Statement::AmountDue }

#available_creditInteger

Amount of credit available to spend in cents

Returns:

  • (Integer)


28
# File 'lib/lithic/models/financial_accounts/statement.rb', line 28

required :available_credit, Integer

#createdTime

Timestamp of when the statement was created

Returns:

  • (Time)


34
# File 'lib/lithic/models/financial_accounts/statement.rb', line 34

required :created, Time

#credit_limitInteger

This is the maximum credit balance extended by the lender in cents

Returns:

  • (Integer)


40
# File 'lib/lithic/models/financial_accounts/statement.rb', line 40

required :credit_limit, Integer

#credit_product_tokenString

Globally unique identifier for a credit product

Returns:

  • (String)


46
# File 'lib/lithic/models/financial_accounts/statement.rb', line 46

required :credit_product_token, String

#days_in_billing_cycleInteger

Number of days in the billing cycle

Returns:

  • (Integer)


52
# File 'lib/lithic/models/financial_accounts/statement.rb', line 52

required :days_in_billing_cycle, Integer

#ending_balanceInteger

Balance at the end of the billing period. For charge cards, this should be the same at the statement amount due in cents

Returns:

  • (Integer)


59
# File 'lib/lithic/models/financial_accounts/statement.rb', line 59

required :ending_balance, Integer

#financial_account_tokenString

Globally unique identifier for a financial account

Returns:

  • (String)


65
# File 'lib/lithic/models/financial_accounts/statement.rb', line 65

required :financial_account_token, String

#interest_detailsLithic::Models::FinancialAccounts::Statement::InterestDetails?



115
# File 'lib/lithic/models/financial_accounts/statement.rb', line 115

optional :interest_details, -> { Lithic::FinancialAccounts::Statement::InterestDetails }, nil?: true

#next_payment_due_dateDate?

Date when the next payment is due

Returns:

  • (Date, nil)


121
# File 'lib/lithic/models/financial_accounts/statement.rb', line 121

optional :next_payment_due_date, Date

#next_statement_end_dateDate?

Date when the next billing period will end

Returns:

  • (Date, nil)


127
# File 'lib/lithic/models/financial_accounts/statement.rb', line 127

optional :next_statement_end_date, Date

#payment_due_dateDate?

Date when the payment is due

Returns:

  • (Date, nil)


71
# File 'lib/lithic/models/financial_accounts/statement.rb', line 71

required :payment_due_date, Date, nil?: true

#payoff_detailsLithic::Models::FinancialAccounts::Statement::PayoffDetails?

Details on number and size of payments to pay off balance



133
# File 'lib/lithic/models/financial_accounts/statement.rb', line 133

optional :payoff_details, -> { Lithic::FinancialAccounts::Statement::PayoffDetails }, nil?: true

#period_totalsLithic::Models::StatementTotals



76
# File 'lib/lithic/models/financial_accounts/statement.rb', line 76

required :period_totals, -> { Lithic::StatementTotals }

#starting_balanceInteger

Balance at the start of the billing period

Returns:

  • (Integer)


82
# File 'lib/lithic/models/financial_accounts/statement.rb', line 82

required :starting_balance, Integer

#statement_end_dateDate

Date when the billing period ended

Returns:

  • (Date)


88
# File 'lib/lithic/models/financial_accounts/statement.rb', line 88

required :statement_end_date, Date

#statement_start_dateDate

Date when the billing period began

Returns:

  • (Date)


94
# File 'lib/lithic/models/financial_accounts/statement.rb', line 94

required :statement_start_date, Date

#statement_typeSymbol, Lithic::Models::FinancialAccounts::Statement::StatementType



99
# File 'lib/lithic/models/financial_accounts/statement.rb', line 99

required :statement_type, enum: -> { Lithic::FinancialAccounts::Statement::StatementType }

#tokenString

Globally unique identifier for a statement

Returns:

  • (String)


12
# File 'lib/lithic/models/financial_accounts/statement.rb', line 12

required :token, String

#updatedTime

Timestamp of when the statement was updated

Returns:

  • (Time)


105
# File 'lib/lithic/models/financial_accounts/statement.rb', line 105

required :updated, Time

#ytd_totalsLithic::Models::StatementTotals



110
# File 'lib/lithic/models/financial_accounts/statement.rb', line 110

required :ytd_totals, -> { Lithic::StatementTotals }

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/lithic/models/financial_accounts/statement.rb', line 316