Class: CorePro::Program

Inherits:
Models::ModelBase show all
Defined in:
lib/corepro/program.rb

Instance Attribute Summary collapse

Attributes inherited from Models::ModelBase

#requestId

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Models::ModelBase

#escape, #to_s

Methods inherited from Models::JsonBase

#to_hash, #to_json

Constructor Details

#initializeProgram

Returns a new instance of Program.



31
32
33
34
# File 'lib/corepro/program.rb', line 31

def initialize
  super
  @interestRates = []
end

Instance Attribute Details

#allowedAccountTypeObject

Returns the value of attribute allowedAccountType.



26
27
28
# File 'lib/corepro/program.rb', line 26

def allowedAccountType
  @allowedAccountType
end

#decimalCountObject

Returns the value of attribute decimalCount.



24
25
26
# File 'lib/corepro/program.rb', line 24

def decimalCount
  @decimalCount
end

#filledDateObject

Returns the value of attribute filledDate.



29
30
31
# File 'lib/corepro/program.rb', line 29

def filledDate
  @filledDate
end

#interestRatesObject

Returns the value of attribute interestRates.



28
29
30
# File 'lib/corepro/program.rb', line 28

def interestRates
  @interestRates
end

#isInterestEnabledObject

Returns the value of attribute isInterestEnabled.



25
26
27
# File 'lib/corepro/program.rb', line 25

def isInterestEnabled
  @isInterestEnabled
end

#isInternalToInternalTransferEnabledObject

Returns the value of attribute isInternalToInternalTransferEnabled.



23
24
25
# File 'lib/corepro/program.rb', line 23

def isInternalToInternalTransferEnabled
  @isInternalToInternalTransferEnabled
end

#isRecurringContributionEnabledObject

Returns the value of attribute isRecurringContributionEnabled.



27
28
29
# File 'lib/corepro/program.rb', line 27

def isRecurringContributionEnabled
  @isRecurringContributionEnabled
end

#nameObject

Returns the value of attribute name.



9
10
11
# File 'lib/corepro/program.rb', line 9

def name
  @name
end

#perProgramDailyDepositLimitObject

Returns the value of attribute perProgramDailyDepositLimit.



21
22
23
# File 'lib/corepro/program.rb', line 21

def perProgramDailyDepositLimit
  @perProgramDailyDepositLimit
end

#perProgramDailyWithdrawLimitObject

Returns the value of attribute perProgramDailyWithdrawLimit.



17
18
19
# File 'lib/corepro/program.rb', line 17

def perProgramDailyWithdrawLimit
  @perProgramDailyWithdrawLimit
end

#perTransactionDepositLimitObject

Returns the value of attribute perTransactionDepositLimit.



18
19
20
# File 'lib/corepro/program.rb', line 18

def perTransactionDepositLimit
  @perTransactionDepositLimit
end

#perTransactionWithdrawLimitObject

Returns the value of attribute perTransactionWithdrawLimit.



14
15
16
# File 'lib/corepro/program.rb', line 14

def perTransactionWithdrawLimit
  @perTransactionWithdrawLimit
end

#perUserDailyDepositLimitObject

Returns the value of attribute perUserDailyDepositLimit.



19
20
21
# File 'lib/corepro/program.rb', line 19

def perUserDailyDepositLimit
  @perUserDailyDepositLimit
end

#perUserDailyWithdrawLimitObject

Returns the value of attribute perUserDailyWithdrawLimit.



15
16
17
# File 'lib/corepro/program.rb', line 15

def perUserDailyWithdrawLimit
  @perUserDailyWithdrawLimit
end

#perUserMonthlyDepositLimitObject

Returns the value of attribute perUserMonthlyDepositLimit.



20
21
22
# File 'lib/corepro/program.rb', line 20

def perUserMonthlyDepositLimit
  @perUserMonthlyDepositLimit
end

#perUserMonthlyWithdrawLimitObject

Returns the value of attribute perUserMonthlyWithdrawLimit.



16
17
18
# File 'lib/corepro/program.rb', line 16

def perUserMonthlyWithdrawLimit
  @perUserMonthlyWithdrawLimit
end

#regDFeeAmountObject

Returns the value of attribute regDFeeAmount.



12
13
14
# File 'lib/corepro/program.rb', line 12

def regDFeeAmount
  @regDFeeAmount
end

#regDMonthlyTransactionWithdrawCountMaxObject

Returns the value of attribute regDMonthlyTransactionWithdrawCountMax.



13
14
15
# File 'lib/corepro/program.rb', line 13

def regDMonthlyTransactionWithdrawCountMax
  @regDMonthlyTransactionWithdrawCountMax
end

#timeZoneObject

Returns the value of attribute timeZone.



11
12
13
# File 'lib/corepro/program.rb', line 11

def timeZone
  @timeZone
end

#verificationTypeObject

Returns the value of attribute verificationType.



10
11
12
# File 'lib/corepro/program.rb', line 10

def verificationType
  @verificationType
end

#websiteObject

Returns the value of attribute website.



22
23
24
# File 'lib/corepro/program.rb', line 22

def website
  @website
end

Class Method Details

.get(connection = nil, loggingObject = nil) ⇒ Object



52
53
54
# File 'lib/corepro/program.rb', line 52

def self.get(connection = nil, loggingObject = nil)
  CorePro::Utils::Requestor.get("/program/get", Program, connection, loggingObject)
end

Instance Method Details

#from_json!(json, classDefs) ⇒ Object



36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'lib/corepro/program.rb', line 36

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

  classDefs['perTransactionDepositLimit'] = CorePro::Models::ProgramLimit
  classDefs['perUserDailyDepositLimit'] = CorePro::Models::ProgramLimit
  classDefs['perUserMonthlyDepositLimit'] = CorePro::Models::ProgramLimit
  classDefs['perProgramDailyDepositLimit'] = CorePro::Models::ProgramLimit

  super json, classDefs
end