Sha256: 1e436a9f70002cdb9851c4786557448856c5bb5d1d64a0191ac0653d9ca21f0f

Contents?: true

Size: 1.11 KB

Versions: 9

Compression:

Stored size: 1.11 KB

Contents

require_relative 'json_base'
require_relative 'program_interest_rate'
require_relative 'program_limit'
module CorePro
  module Models
    class ProgramPrepaid < JsonBase
      def is_hash?
        true
      end
      attr_accessor :category
      attr_accessor :type
      attr_accessor :balanceLimit
      attr_accessor :interestRates
      attr_accessor :isImmediateLoadFromLinkedAccountEnabled
      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

9 entries across 9 versions & 3 rubygems

Version Path
corepro_fvr-1.0.9 lib/corepro/models/program_prepaid.rb
corepro_eg-1.0.8 lib/corepro/models/program_prepaid.rb
corepro_eg-1.0.7 lib/corepro/models/program_prepaid.rb
corepro_eg-1.0.6 lib/corepro/models/program_prepaid.rb
corepro_eg-1.0.5 lib/corepro/models/program_prepaid.rb
corepro_eg-1.0.4 lib/corepro/models/program_prepaid.rb
corepro_eg-1.0.3 lib/corepro/models/program_prepaid.rb
corepro_eg-1.0.2 lib/corepro/models/program_prepaid.rb
corepro-0.0.9 lib/corepro/models/program_prepaid.rb