Sha256: c16b87635d6eb95a72fead1b386efe3c574117e3bf6f179baceffdb71420c96d

Contents?: true

Size: 1.09 KB

Versions: 2

Compression:

Stored size: 1.09 KB

Contents

require_relative 'json_base'
require_relative 'program_interest_rate'
require_relative 'program_limit'
module CorePro
  module Models
    class ProgramChecking < JsonBase

      def is_hash?
        true
      end
      attr_accessor :category
      attr_accessor :type
      attr_accessor :balanceLimit
      attr_accessor :interestRates
      attr_accessor :isExternalWithdrawEnabled
      attr_accessor :isInterestEnabled
      attr_accessor :isRecurringContributionEnabled
      attr_accessor :perTransactionDepositLimit
      attr_accessor :perTransactionWithdrawLimit

      def initialize
        super
        @interestRates = []
      end

      def from_json! json, classDefs
        classDefs = classDefs || {}
        classDefs['balanceLimit'] = CorePro::Models::ProgramLimit
        classDefs['interestRates'] = CorePro::Models::ProgramInterestRate
        classDefs['perTransactionDepositLimit'] = CorePro::Models::ProgramLimit
        classDefs['perTransactionWithdrawLimit'] = CorePro::Models::ProgramLimit

        super json, classDefs
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
corepro-1.0.1 lib/corepro/models/program_checking.rb
corepro-1.0.0 lib/corepro/models/program_checking.rb