Class: UnitOpenapiRubySdk::ThreadIndividualAccountPurpose

Inherits:
Object
  • Object
show all
Defined in:
lib/unit_openapi_ruby_sdk/models/thread_individual_account_purpose.rb

Constant Summary collapse

PAYROLL_OR_DIRECT_DEPOSIT =
"PayrollOrDirectDeposit".freeze
PERSONAL_SAVINGS_OR_EMERGENCY_FUND =
"PersonalSavingsOrEmergencyFund".freeze
EVERYDAY_SPENDING =
"EverydaySpending".freeze
DOMESTIC_P2_P_AND_BILL_PAY =
"DomesticP2PAndBillPay".freeze
INTERNATIONAL_REMITTANCES =
"InternationalRemittances".freeze
CASH_HEAVY_PERSONAL_INCOME =
"CashHeavyPersonalIncome".freeze
PROPERTY_PURCHASE_OR_INVESTMENT =
"PropertyPurchaseOrInvestment".freeze
EDUCATION_OR_STUDENT_USE =
"EducationOrStudentUse".freeze
TRUST_OR_ESTATE_DISTRIBUTIONS =
"TrustOrEstateDistributions".freeze
CRYPTOCURRENCY =
"Cryptocurrency".freeze

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.all_varsObject



29
30
31
# File 'lib/unit_openapi_ruby_sdk/models/thread_individual_account_purpose.rb', line 29

def self.all_vars
  @all_vars ||= [PAYROLL_OR_DIRECT_DEPOSIT, PERSONAL_SAVINGS_OR_EMERGENCY_FUND, EVERYDAY_SPENDING, DOMESTIC_P2_P_AND_BILL_PAY, INTERNATIONAL_REMITTANCES, CASH_HEAVY_PERSONAL_INCOME, PROPERTY_PURCHASE_OR_INVESTMENT, EDUCATION_OR_STUDENT_USE, TRUST_OR_ESTATE_DISTRIBUTIONS, CRYPTOCURRENCY].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



36
37
38
# File 'lib/unit_openapi_ruby_sdk/models/thread_individual_account_purpose.rb', line 36

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



43
44
45
46
# File 'lib/unit_openapi_ruby_sdk/models/thread_individual_account_purpose.rb', line 43

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