Sha256: 8fa357418c0458d0b8a3fd4df104afcdcc511c4f4eaca079ecd93b5889ba7caf

Contents?: true

Size: 1.44 KB

Versions: 3

Compression:

Stored size: 1.44 KB

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 PaymentErrorCode
    
    INVALID_EMITTER = 'invalidEmitter'.freeze
    INSUFFICIENT_FUNDS = 'insufficientFunds'.freeze
    INVALID_AMOUNT = 'invalidAmount'.freeze
    INVALID_CURRENCY = 'invalidCurrency'.freeze
    INVALID_DATE = 'invalidDate'.freeze
    INVALID_BENEFICIARY = 'invalidBeneficiary'.freeze
    INVALID_LABEL = 'invalidLabel'.freeze
    REGULATORY_REASON = 'regulatoryReason'.freeze
    AUTHENTICATION_FAILED = 'authenticationFailed'.freeze
    NO_ANSWER_FROM_CUSTOMER = 'noAnswerFromCustomer'.freeze
    NO_SPECIFIED_REASON = 'noSpecifiedReason'.freeze
    CANCELLED_BY_USER = 'CancelledByUser'.freeze
    BANK_MESSAGE = 'bankMessage'.freeze
    INVALID_VALUE = 'invalidValue'.freeze
    ACTION_NEEDED = 'actionNeeded'.freeze
    BUG = 'bug'.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 = PaymentErrorCode.constants.select { |c| PaymentErrorCode::const_get(c) == value }
      raise "Invalid ENUM value #{value} for class #PaymentErrorCode" 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_error_code.rb
budgea_client-5.5.0 lib/budgea_client/models/payment_error_code.rb
budgea_client-5.4.0 lib/budgea_client/models/payment_error_code.rb