Class: TinkoffInvestClient::OperationTypeWithCommission
- Inherits:
-
Object
- Object
- TinkoffInvestClient::OperationTypeWithCommission
- Defined in:
- lib/tinkoff_invest_client/models/operation_type_with_commission.rb
Constant Summary collapse
- BUY =
"Buy".freeze
- BUY_CARD =
"BuyCard".freeze
- SELL =
"Sell".freeze
- BROKER_COMMISSION =
"BrokerCommission".freeze
- EXCHANGE_COMMISSION =
"ExchangeCommission".freeze
- SERVICE_COMMISSION =
"ServiceCommission".freeze
- MARGIN_COMMISSION =
"MarginCommission".freeze
- OTHER_COMMISSION =
"OtherCommission".freeze
- PAY_IN =
"PayIn".freeze
- PAY_OUT =
"PayOut".freeze
- TAX =
"Tax".freeze
- TAX_LUCRE =
"TaxLucre".freeze
- TAX_DIVIDEND =
"TaxDividend".freeze
- TAX_COUPON =
"TaxCoupon".freeze
- TAX_BACK =
"TaxBack".freeze
- REPAYMENT =
"Repayment".freeze
- PART_REPAYMENT =
"PartRepayment".freeze
- COUPON =
"Coupon".freeze
- DIVIDEND =
"Dividend".freeze
- SECURITY_IN =
"SecurityIn".freeze
- SECURITY_OUT =
"SecurityOut".freeze
Class Method Summary collapse
-
.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
.build_from_hash(value) ⇒ String
Builds the enum from string
43 44 45 |
# File 'lib/tinkoff_invest_client/models/operation_type_with_commission.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
50 51 52 53 54 |
# File 'lib/tinkoff_invest_client/models/operation_type_with_commission.rb', line 50 def build_from_hash(value) constantValues = OperationTypeWithCommission.constants.select { |c| OperationTypeWithCommission::const_get(c) == value } raise "Invalid ENUM value #{value} for class #OperationTypeWithCommission" if constantValues.empty? value end |