Sha256: a9e79441164bcdf59350481f9001358d6f7f0447d42582d163dbee034474f7b2
Contents?: true
Size: 931 Bytes
Versions: 3
Compression:
Stored size: 931 Bytes
Contents
=begin #Budgea API Documentation #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git Swagger Codegen version: 2.4.19 =end require 'date' module BudgeaClient class PaymentState CREATED = 'created'.freeze VALIDATING = 'validating'.freeze ERROR = 'error'.freeze PENDING = 'pending'.freeze REJECTED = 'rejected'.freeze DONE = 'done'.freeze EXPIRED = 'expired'.freeze # Builds the enum from string # @param [String] The enum value in the form of the string # @return [String] The enum value def build_from_hash(value) constantValues = PaymentState.constants.select { |c| PaymentState::const_get(c) == value } raise "Invalid ENUM value #{value} for class #PaymentState" if constantValues.empty? value end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
budgea_client-5.6.0 | lib/budgea_client/models/payment_state.rb |
budgea_client-5.5.0 | lib/budgea_client/models/payment_state.rb |
budgea_client-5.4.0 | lib/budgea_client/models/payment_state.rb |