Class: CybridApiBank::TransferFailureCodeBankModel
- Inherits:
-
Object
- Object
- CybridApiBank::TransferFailureCodeBankModel
- Defined in:
- lib/cybrid_api_bank_ruby/models/transfer_failure_code_bank_model.rb
Constant Summary collapse
- NON_SUFFICIENT_FUNDS =
"non_sufficient_funds".freeze
- REFRESH_REQUIRED =
"refresh_required".freeze
- PARTY_NAME_INVALID =
"party_name_invalid".freeze
- PAYMENT_RAIL_INVALID =
"payment_rail_invalid".freeze
- COMPLIANCE_REJECTION =
"compliance_rejection".freeze
- CANCELLED =
"cancelled".freeze
- REVERSED =
"reversed".freeze
- LIMIT_EXCEEDED =
"limit_exceeded".freeze
- NETWORK_FEE_TOO_LOW =
"network_fee_too_low".freeze
- AMOUNT_TOO_LOW =
"amount_too_low".freeze
- INTERNAL_ERROR =
"internal_error".freeze
- INVALID_ADDRESS =
"invalid_address".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
34 35 36 |
# File 'lib/cybrid_api_bank_ruby/models/transfer_failure_code_bank_model.rb', line 34 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
41 42 43 44 45 |
# File 'lib/cybrid_api_bank_ruby/models/transfer_failure_code_bank_model.rb', line 41 def build_from_hash(value) constantValues = TransferFailureCodeBankModel.constants.select { |c| TransferFailureCodeBankModel::const_get(c) == value } raise "Invalid ENUM value #{value} for class #TransferFailureCodeBankModel" if constantValues.empty? value end |