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

#is_hash?, #to_hash, #to_json

Constructor Details

#initializeProgram

Returns a new instance of Program.



34
35
36
37
38
39
40
# File 'lib/corepro/program.rb', line 34

def initialize
  super
  @checkingProducts = {}
  @eCodeProducts = {}
  @savingsProducts = {}
  @prepaidProducts = {}
end

Instance Attribute Details

#accountCountMaxObject

Returns the value of attribute accountCountMax.



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

def accountCountMax
  @accountCountMax
end

#checkingProductsObject

Returns the value of attribute checkingProducts.



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

def checkingProducts
  @checkingProducts
end

#decimalCountObject

Returns the value of attribute decimalCount.



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

def decimalCount
  @decimalCount
end

#eCodeProductsObject

Returns the value of attribute eCodeProducts.



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

def eCodeProducts
  @eCodeProducts
end

#externalAccountCountMaxObject

Returns the value of attribute externalAccountCountMax.



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

def externalAccountCountMax
  @externalAccountCountMax
end

#filledDateObject

Returns the value of attribute filledDate.



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

def filledDate
  @filledDate
end

#isInternalToInternalTransferEnabledObject

Returns the value of attribute isInternalToInternalTransferEnabled.



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

def isInternalToInternalTransferEnabled
  @isInternalToInternalTransferEnabled
end

#nameObject

Returns the value of attribute name.



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

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.



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

def perProgramDailyWithdrawLimit
  @perProgramDailyWithdrawLimit
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.



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

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.



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

def perUserMonthlyWithdrawLimit
  @perUserMonthlyWithdrawLimit
end

#prepaidProductsObject

Returns the value of attribute prepaidProducts.



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

def prepaidProducts
  @prepaidProducts
end

#savingsProductsObject

Returns the value of attribute savingsProducts.



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

def savingsProducts
  @savingsProducts
end

#timeZoneObject

Returns the value of attribute timeZone.



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

def timeZone
  @timeZone
end

#validAccountTypesObject

Returns the value of attribute validAccountTypes.



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

def validAccountTypes
  @validAccountTypes
end

#verificationTypeObject

Returns the value of attribute verificationType.



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

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



60
61
62
# File 'lib/corepro/program.rb', line 60

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



42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# File 'lib/corepro/program.rb', line 42

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

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

  classDefs['checkingProducts'] = CorePro::Models::ProgramChecking
  classDefs['eCodeProducts'] = CorePro::Models::ProgramECode
  classDefs['savingsProducts'] = CorePro::Models::ProgramSavings
  classDefs['prepaidProducts'] = CorePro::Models::ProgramPrepaid

  super json, classDefs
end