Class: CorePro::Account

Inherits:
Models::ModelBase show all
Defined in:
lib/corepro/account.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

#from_json!, #is_hash?, #to_hash, #to_json

Constructor Details

#initializeAccount

Returns a new instance of Account.



68
# File 'lib/corepro/account.rb', line 68

def initialize; end

Instance Attribute Details

#accessTypeCodeObject

Returns the value of attribute accessTypeCode.



58
59
60
# File 'lib/corepro/account.rb', line 58

def accessTypeCode
  @accessTypeCode
end

#accountBalanceObject

Returns the value of attribute accountBalance.



41
42
43
# File 'lib/corepro/account.rb', line 41

def accountBalance
  @accountBalance
end

#accountIdObject

Identifiers



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

def accountId
  @accountId
end

#accountNumberObject

Returns the value of attribute accountNumber.



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

def accountNumber
  @accountNumber
end

#accountNumberMaskedObject

Returns the value of attribute accountNumberMasked.



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

def accountNumberMasked
  @accountNumberMasked
end

#availableBalanceObject

balance related



40
41
42
# File 'lib/corepro/account.rb', line 40

def availableBalance
  @availableBalance
end

#balanceLastModifiedDateObject

Returns the value of attribute balanceLastModifiedDate.



43
44
45
# File 'lib/corepro/account.rb', line 43

def balanceLastModifiedDate
  @balanceLastModifiedDate
end

#categoryObject

Returns the value of attribute category.



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

def category
  @category
end

#closedDateObject

Returns the value of attribute closedDate.



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

def closedDate
  @closedDate
end

#createdDateObject

Returns the value of attribute createdDate.



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

def createdDate
  @createdDate
end

#customerIdObject

Returns the value of attribute customerId.



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

def customerId
  @customerId
end

#customerPriorityObject

Returns the value of attribute customerPriority.



59
60
61
# File 'lib/corepro/account.rb', line 59

def customerPriority
  @customerPriority
end

#customField1Object

customizable



62
63
64
# File 'lib/corepro/account.rb', line 62

def customField1
  @customField1
end

#customField2Object

Returns the value of attribute customField2.



63
64
65
# File 'lib/corepro/account.rb', line 63

def customField2
  @customField2
end

#customField3Object

Returns the value of attribute customField3.



64
65
66
# File 'lib/corepro/account.rb', line 64

def customField3
  @customField3
end

#customField4Object

Returns the value of attribute customField4.



65
66
67
# File 'lib/corepro/account.rb', line 65

def customField4
  @customField4
end

#customField5Object

Returns the value of attribute customField5.



66
67
68
# File 'lib/corepro/account.rb', line 66

def customField5
  @customField5
end

#isCloseableObject

Returns the value of attribute isCloseable.



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

def isCloseable
  @isCloseable
end

#isJointAccountObject

Returns the value of attribute isJointAccount.



55
56
57
# File 'lib/corepro/account.rb', line 55

def isJointAccount
  @isJointAccount
end

#isPrimaryObject

Returns the value of attribute isPrimary.



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

def isPrimary
  @isPrimary
end

#isPrimaryCustomerObject

Returns the value of attribute isPrimaryCustomer.



57
58
59
# File 'lib/corepro/account.rb', line 57

def isPrimaryCustomer
  @isPrimaryCustomer
end

#lastModifiedDateObject

Returns the value of attribute lastModifiedDate.



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

def lastModifiedDate
  @lastModifiedDate
end

#legalName1Object

Returns the value of attribute legalName1.



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

def legalName1
  @legalName1
end

#legalName2Object

Returns the value of attribute legalName2.



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

def legalName2
  @legalName2
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#pendingBalanceObject

Returns the value of attribute pendingBalance.



42
43
44
# File 'lib/corepro/account.rb', line 42

def pendingBalance
  @pendingBalance
end

#primaryCustomerIdObject

Returns the value of attribute primaryCustomerId.



56
57
58
# File 'lib/corepro/account.rb', line 56

def primaryCustomerId
  @primaryCustomerId
end

#productIdObject

Returns the value of attribute productId.



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

def productId
  @productId
end

#recurringContributionAmountObject

Returns the value of attribute recurringContributionAmount.



47
48
49
# File 'lib/corepro/account.rb', line 47

def recurringContributionAmount
  @recurringContributionAmount
end

#recurringContributionEndDateObject

Returns the value of attribute recurringContributionEndDate.



50
51
52
# File 'lib/corepro/account.rb', line 50

def recurringContributionEndDate
  @recurringContributionEndDate
end

#recurringContributionFromExternalAccountIdObject

Returns the value of attribute recurringContributionFromExternalAccountId.



48
49
50
# File 'lib/corepro/account.rb', line 48

def recurringContributionFromExternalAccountId
  @recurringContributionFromExternalAccountId
end

#recurringContributionNextDateObject

Returns the value of attribute recurringContributionNextDate.



51
52
53
# File 'lib/corepro/account.rb', line 51

def recurringContributionNextDate
  @recurringContributionNextDate
end

#recurringContributionStartDateObject

Returns the value of attribute recurringContributionStartDate.



49
50
51
# File 'lib/corepro/account.rb', line 49

def recurringContributionStartDate
  @recurringContributionStartDate
end

#recurringContributionTypeObject

recurring deposit related



46
47
48
# File 'lib/corepro/account.rb', line 46

def recurringContributionType
  @recurringContributionType
end

#routingNumberObject

Returns the value of attribute routingNumber.



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

def routingNumber
  @routingNumber
end

#routingNumberMaskedObject

Returns the value of attribute routingNumberMasked.



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

def routingNumberMasked
  @routingNumberMasked
end

#statusObject

state related



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

def status
  @status
end

#subCategoryObject

Returns the value of attribute subCategory.



37
38
39
# File 'lib/corepro/account.rb', line 37

def subCategory
  @subCategory
end

#tagObject

Returns the value of attribute tag.



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

def tag
  @tag
end

#targetAmountObject

goal related



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

def targetAmount
  @targetAmount
end

#targetDateObject

Returns the value of attribute targetDate.



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

def targetDate
  @targetDate
end

#targetMetDateObject

Returns the value of attribute targetMetDate.



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

def targetMetDate
  @targetMetDate
end

#targetMetPercentObject

Returns the value of attribute targetMetPercent.



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

def targetMetPercent
  @targetMetPercent
end

#totalCustomersObject

joint account related



54
55
56
# File 'lib/corepro/account.rb', line 54

def totalCustomers
  @totalCustomers
end

#typeObject

Returns the value of attribute type.



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

def type
  @type
end

Class Method Details

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



74
75
76
# File 'lib/corepro/account.rb', line 74

def self.get(customerId, accountId, connection = nil, loggingObject = nil)
  CorePro::Utils::Requestor.get("/account/get/#{customerId}/#{accountId}", Account, connection, loggingObject)
end

.getByTag(customerId, tag, connection = nil, loggingObject = nil) ⇒ Object



78
79
80
# File 'lib/corepro/account.rb', line 78

def self.getByTag(customerId, tag, connection = nil, loggingObject = nil)
  CorePro::Utils::Requestor.get("/account/getByTag/#{customerId}/#{escape(tag)}", Account, connection, loggingObject)
end

.list(customerId, connection = nil, loggingObject = nil) ⇒ Object



70
71
72
# File 'lib/corepro/account.rb', line 70

def self.list(customerId, connection = nil, loggingObject = nil)
  CorePro::Utils::Requestor.get("/account/list/#{customerId}", Account, connection, loggingObject)
end

.listAccess(customerId, accountId, connection = nil, loggingObject = nil) ⇒ Object



101
102
103
# File 'lib/corepro/account.rb', line 101

def self.listAccess(customerId, accountId, connection = nil, loggingObject = nil)
  CorePro::Utils::Requestor.get("/account/listaccess/#{customerId}/#{accountId}", CorePro::Models::AccountAccess, connection, loggingObject)
end

Instance Method Details

#close(customerId, accountId, closeToAccountId, transactionTag, connection = nil, loggingObject = nil) ⇒ Object



92
93
94
95
96
97
98
99
# File 'lib/corepro/account.rb', line 92

def close(customerId, accountId, closeToAccountId, transactionTag, connection = nil, loggingObject = nil)
  ac = CorePro::AccountClose.new
  ac.customerId = customerId
  ac.accountId = accountId
  ac.closeToAccountId = closeToAccountId
  ac.transactionTag = transactionTag
  ac.close(connection, loggingObject)
end

#create(connection = nil, loggingObject = nil) ⇒ Object



82
83
84
85
# File 'lib/corepro/account.rb', line 82

def create(connection = nil, loggingObject = nil)
  aid = CorePro::Utils::Requestor.post('/account/create', CorePro::Models::AccountIdOnly, self, connection, loggingObject)
  aid.accountId
end

#editAccess(connection = nil, loggingObject = nil) ⇒ Object



105
106
107
108
# File 'lib/corepro/account.rb', line 105

def editAccess(connection = nil, loggingObject = nil)
  aea = CorePro::Utils::Requestor.post('/account/editaccess', CorePro::Models::AccountIdOnly, self, connection, loggingObject)
  aea.accountId
end

#update(connection = nil, loggingObject = nil) ⇒ Object



87
88
89
90
# File 'lib/corepro/account.rb', line 87

def update(connection = nil, loggingObject = nil)
  aid = CorePro::Utils::Requestor.post('/account/update', CorePro::Models::AccountIdOnly, self, connection, loggingObject)
  aid.accountId
end