Class: UnitOpenapiRubySdk::ThreadIndividualAccountPurpose
- Inherits:
-
Object
- Object
- UnitOpenapiRubySdk::ThreadIndividualAccountPurpose
- 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
- .all_vars ⇒ Object
-
.build_from_hash(value) ⇒ String
Builds the enum from string.
Instance Method Summary collapse
-
#build_from_hash(value) ⇒ String
Builds the enum from string.
Class Method Details
.all_vars ⇒ Object
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
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
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 |