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.



38
39
40
41
42
43
44
45
46
# File 'lib/corepro/program.rb', line 38

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

Instance Attribute Details

#accountCountMaxObject

Returns the value of attribute accountCountMax.



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

def accountCountMax
  @accountCountMax
end

#accountsObject

Returns the value of attribute accounts.



35
36
37
# File 'lib/corepro/program.rb', line 35

def accounts
  @accounts
end

#checkingProductsObject

Returns the value of attribute checkingProducts.



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

def checkingProducts
  @checkingProducts
end

#decimalCountObject

Returns the value of attribute decimalCount.



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

def decimalCount
  @decimalCount
end

#eCodeProductsObject

Returns the value of attribute eCodeProducts.



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

def eCodeProducts
  @eCodeProducts
end

#externalAccountCountMaxObject

Returns the value of attribute externalAccountCountMax.



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

def externalAccountCountMax
  @externalAccountCountMax
end

#externalAccountsObject

Returns the value of attribute externalAccounts.



36
37
38
# File 'lib/corepro/program.rb', line 36

def externalAccounts
  @externalAccounts
end

#filledDateObject

Returns the value of attribute filledDate.



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

def filledDate
  @filledDate
end

#isInternalToInternalTransferEnabledObject

Returns the value of attribute isInternalToInternalTransferEnabled.



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

def isInternalToInternalTransferEnabled
  @isInternalToInternalTransferEnabled
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#perProgramDailyDepositLimitObject

Returns the value of attribute perProgramDailyDepositLimit.



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

def perProgramDailyDepositLimit
  @perProgramDailyDepositLimit
end

#perProgramDailyWithdrawLimitObject

Returns the value of attribute perProgramDailyWithdrawLimit.



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

def perProgramDailyWithdrawLimit
  @perProgramDailyWithdrawLimit
end

#perUserDailyDepositLimitObject

Returns the value of attribute perUserDailyDepositLimit.



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

def perUserDailyDepositLimit
  @perUserDailyDepositLimit
end

#perUserDailyWithdrawLimitObject

Returns the value of attribute perUserDailyWithdrawLimit.



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

def perUserDailyWithdrawLimit
  @perUserDailyWithdrawLimit
end

#perUserMonthlyDepositLimitObject

Returns the value of attribute perUserMonthlyDepositLimit.



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

def perUserMonthlyDepositLimit
  @perUserMonthlyDepositLimit
end

#perUserMonthlyWithdrawLimitObject

Returns the value of attribute perUserMonthlyWithdrawLimit.



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

def perUserMonthlyWithdrawLimit
  @perUserMonthlyWithdrawLimit
end

#prepaidProductsObject

Returns the value of attribute prepaidProducts.



34
35
36
# File 'lib/corepro/program.rb', line 34

def prepaidProducts
  @prepaidProducts
end

#savingsProductsObject

Returns the value of attribute savingsProducts.



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

def savingsProducts
  @savingsProducts
end

#timeZoneObject

Returns the value of attribute timeZone.



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

def timeZone
  @timeZone
end

#validAccountTypesObject

Returns the value of attribute validAccountTypes.



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

def validAccountTypes
  @validAccountTypes
end

#verificationTypeObject

Returns the value of attribute verificationType.



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

def verificationType
  @verificationType
end

#websiteObject

Returns the value of attribute website.



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

def website
  @website
end

Class Method Details

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



69
70
71
# File 'lib/corepro/program.rb', line 69

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



48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# File 'lib/corepro/program.rb', line 48

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

  classDefs['accounts'] = CorePro::Models::ProgramAccount
  classDefs['externalAccounts'] = CorePro::Models::ProgramExternalAccount

  super json, classDefs
end