Sha256: 83d468e937696f86eaa5f604ee57c228fa754c2cca6daf45dca059ee86251891

Contents?: true

Size: 1.05 KB

Versions: 9

Compression:

Stored size: 1.05 KB

Contents

require_relative 'json_base'
require_relative 'program_interest_rate'
require_relative 'program_limit'
module CorePro
  module Models
    class ProgramSavings < 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
        @interestRates = []
        super
      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_savings.rb
corepro_eg-1.0.8 lib/corepro/models/program_savings.rb
corepro_eg-1.0.7 lib/corepro/models/program_savings.rb
corepro_eg-1.0.6 lib/corepro/models/program_savings.rb
corepro_eg-1.0.5 lib/corepro/models/program_savings.rb
corepro_eg-1.0.4 lib/corepro/models/program_savings.rb
corepro_eg-1.0.3 lib/corepro/models/program_savings.rb
corepro_eg-1.0.2 lib/corepro/models/program_savings.rb
corepro-0.0.9 lib/corepro/models/program_savings.rb