Sha256: 1b805e7645a5dd6b1c64ae9f7453c06235c1add0d8a0b6a6808caaf1eb66b10b

Contents?: true

Size: 1.27 KB

Versions: 1

Compression:

Stored size: 1.27 KB

Contents

=begin
#The Plaid API

#The Plaid REST API. Please see https://plaid.com/docs/api for more details.

The version of the OpenAPI document: 2020-09-14_1.5.3

Generated by: https://openapi-generator.tech
OpenAPI Generator version: 5.0.0

=end

require 'date'
require 'time'

module Plaid
  class Products
    ASSETS = "assets".freeze
    AUTH = "auth".freeze
    BALANCE = "balance".freeze
    IDENTITY = "identity".freeze
    INVESTMENTS = "investments".freeze
    LIABILITIES = "liabilities".freeze
    PAYMENT_INITIATION = "payment_initiation".freeze
    TRANSACTIONS = "transactions".freeze
    CREDIT_DETAILS = "credit_details".freeze
    INCOME = "income".freeze
    DEPOSIT_SWITCH = "deposit_switch".freeze

    # Builds the enum from string
    # @param [String] The enum value in the form of the string
    # @return [String] The enum value
    def self.build_from_hash(value)
      new.build_from_hash(value)
    end

    # 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 = Products.constants.select { |c| Products::const_get(c) == value }
      raise "Invalid ENUM value #{value} for class #Products" if constantValues.empty?
      value
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
plaid-14.0.0.beta.2 lib/plaid/models/products.rb