Class: Sink::Models::FundingAccount

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/sink/models/funding_account.rb

Defined Under Namespace

Classes: State, Type

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

#[], #deconstruct_keys, #inspect, #to_h, #to_s

Constructor Details

#initialize(data = {}) ⇒ FundingAccount

Create a new instance of FundingAccount from a Hash of raw data.

Parameters:

  • data (Hash{Symbol => Object}) (defaults to: {})

    . @option data [String] :token A globally unique identifier for this FundingAccount. @option data [String] :created An ISO 8601 string representing when this funding source was added to the Lithic

    . This may be `null`. UTC time zone.
    

    @option data [String] :lastFour The last 4 digits of the account (e.g. bank account, debit card) associated with

    this FundingAccount. This may be null.
    

    @option data [String] :state State of funding source.

    Funding source states:
    
    - `ENABLED` - The funding  is available to use for card creation and
      transactions.
    - `PENDING` - The funding  is still being verified e.g. bank
      micro-deposits verification.
    - `DELETED` - The founding  has been deleted.
    

    @option data [String] :type

    Types of funding source:
    
    - `DEPOSITORY_CHECKING` - Bank checking .
    - `DEPOSITORY_SAVINGS` - Bank savings .
    

    @option data [String, nil] :account_name Account name identifying the funding source. This may be ‘null`. @option data [String, nil] :nickname The nickname given to the `FundingAccount` or `null` if it has no nickname.



25
# File 'lib/sink/models/funding_account.rb', line 25

def initialize(data = {}) = super

Instance Attribute Details

#account_nameString

Account name identifying the funding source. This may be ‘null`.

Returns:

  • (String)


43
# File 'lib/sink/models/funding_account.rb', line 43

optional :account_name, String

#createdTime

An ISO 8601 string representing when this funding source was added to the Lithic account. This may be ‘null`. UTC time zone.

Returns:

  • (Time)


14
# File 'lib/sink/models/funding_account.rb', line 14

required :created, Time

#last_fourString

The last 4 digits of the account (e.g. bank account, debit card) associated with this FundingAccount. This may be null.

Returns:

  • (String)


19
# File 'lib/sink/models/funding_account.rb', line 19

required :last_four, String, api_name: :lastFour

#nicknameString

The nickname given to the ‘FundingAccount` or `null` if it has no nickname.

Returns:

  • (String)


48
# File 'lib/sink/models/funding_account.rb', line 48

optional :nickname, String

#stateObject

State of funding source.



30
# File 'lib/sink/models/funding_account.rb', line 30

required :state, enum: -> { Sink::Models::FundingAccount::State }

#tokenString

A globally unique identifier for this FundingAccount.

Returns:

  • (String)


9
# File 'lib/sink/models/funding_account.rb', line 9

required :token, String

#typeObject

Types of funding source:



38
# File 'lib/sink/models/funding_account.rb', line 38

required :type, enum: -> { Sink::Models::FundingAccount::Type }