Class: SyncteraRubySdk::InternalAccountType

Inherits:
Object
  • Object
show all
Defined in:
lib/synctera_ruby_sdk/models/internal_account_type.rb

Constant Summary collapse

ACH_SETTLEMENT =
"ACH_SETTLEMENT".freeze
ACH_SUSPENSE =
"ACH_SUSPENSE".freeze
CARD_SETTLEMENT =
"CARD_SETTLEMENT".freeze
CASH_SETTLEMENT =
"CASH_SETTLEMENT".freeze
CASH_SUSPENSE =
"CASH_SUSPENSE".freeze
CHECK_SETTLEMENT =
"CHECK_SETTLEMENT".freeze
EXTERNAL_CARD_AFT_SETTLEMENT =
"EXTERNAL_CARD_AFT_SETTLEMENT".freeze
EXTERNAL_CARD_OCT_SETTLEMENT =
"EXTERNAL_CARD_OCT_SETTLEMENT".freeze
FEES =
"FEES".freeze
INTEREST_PAYOUT =
"INTEREST_PAYOUT".freeze
MONEY_IN_AND_OUT =
"MONEY_IN_AND_OUT".freeze
NETWORK_ADJUSTMENT =
"NETWORK_ADJUSTMENT".freeze
NETWORK_CHARGEBACK =
"NETWORK_CHARGEBACK".freeze
PROVISIONAL_CREDIT_PNL =
"PROVISIONAL_CREDIT_PNL".freeze
REWARDS =
"REWARDS".freeze
WIRE_SETTLEMENT =
"WIRE_SETTLEMENT".freeze
WIRE_SUSPENSE =
"WIRE_SUSPENSE".freeze

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.all_varsObject



36
37
38
# File 'lib/synctera_ruby_sdk/models/internal_account_type.rb', line 36

def self.all_vars
  @all_vars ||= [ACH_SETTLEMENT, ACH_SUSPENSE, CARD_SETTLEMENT, CASH_SETTLEMENT, CASH_SUSPENSE, CHECK_SETTLEMENT, EXTERNAL_CARD_AFT_SETTLEMENT, EXTERNAL_CARD_OCT_SETTLEMENT, FEES, INTEREST_PAYOUT, MONEY_IN_AND_OUT, NETWORK_ADJUSTMENT, NETWORK_CHARGEBACK, PROVISIONAL_CREDIT_PNL, REWARDS, WIRE_SETTLEMENT, WIRE_SUSPENSE].freeze
end

.build_from_hash(value) ⇒ String

Builds the enum from string

Parameters:

  • The (String)

    enum value in the form of the string

Returns:

  • (String)

    The enum value



43
44
45
# File 'lib/synctera_ruby_sdk/models/internal_account_type.rb', line 43

def self.build_from_hash(value)
  new.build_from_hash(value)
end

Instance Method Details

#build_from_hash(value) ⇒ String

Builds the enum from string

Parameters:

  • The (String)

    enum value in the form of the string

Returns:

  • (String)

    The enum value



50
51
52
53
# File 'lib/synctera_ruby_sdk/models/internal_account_type.rb', line 50

def build_from_hash(value)
  return value if InternalAccountType.all_vars.include?(value)
  raise "Invalid ENUM value #{value} for class #InternalAccountType"
end