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!, #to_hash, #to_json

Constructor Details

#initializeAccount

Returns a new instance of Account.



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

def initialize()
end

Instance Attribute Details

#accountBalanceObject

Returns the value of attribute accountBalance.



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

def accountBalance
  @accountBalance
end

#accountIdObject

Returns the value of attribute accountId.



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

def accountId
  @accountId
end

#accountNumberObject

Returns the value of attribute accountNumber.



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

def accountNumber
  @accountNumber
end

#accountNumberMaskedObject

Returns the value of attribute accountNumberMasked.



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

def accountNumberMasked
  @accountNumberMasked
end

#availableBalanceObject

Returns the value of attribute availableBalance.



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

def availableBalance
  @availableBalance
end

#categoryObject

Returns the value of attribute category.



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

def category
  @category
end

#closedDateObject

Returns the value of attribute closedDate.



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

def closedDate
  @closedDate
end

#createdDateObject

Returns the value of attribute createdDate.



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

def createdDate
  @createdDate
end

#customerIdObject

Returns the value of attribute customerId.



8
9
10
# File 'lib/corepro/account.rb', line 8

def customerId
  @customerId
end

#isCloseableObject

Returns the value of attribute isCloseable.



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

def isCloseable
  @isCloseable
end

#isPrimaryObject

Returns the value of attribute isPrimary.



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

def isPrimary
  @isPrimary
end

#miscellaneousObject

Returns the value of attribute miscellaneous.



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

def miscellaneous
  @miscellaneous
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#recurringContributionAmountObject

Returns the value of attribute recurringContributionAmount.



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

def recurringContributionAmount
  @recurringContributionAmount
end

#recurringContributionEndDateObject

Returns the value of attribute recurringContributionEndDate.



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

def recurringContributionEndDate
  @recurringContributionEndDate
end

#recurringContributionFromExternalAccountIdObject

Returns the value of attribute recurringContributionFromExternalAccountId.



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

def recurringContributionFromExternalAccountId
  @recurringContributionFromExternalAccountId
end

#recurringContributionNextDateObject

Returns the value of attribute recurringContributionNextDate.



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

def recurringContributionNextDate
  @recurringContributionNextDate
end

#recurringContributionStartDateObject

Returns the value of attribute recurringContributionStartDate.



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

def recurringContributionStartDate
  @recurringContributionStartDate
end

#recurringContributionTypeObject

Returns the value of attribute recurringContributionType.



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

def recurringContributionType
  @recurringContributionType
end

#routingNumberObject

Returns the value of attribute routingNumber.



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

def routingNumber
  @routingNumber
end

#statusObject

Returns the value of attribute status.



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

def status
  @status
end

#subCategoryObject

Returns the value of attribute subCategory.



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

def subCategory
  @subCategory
end

#tagObject

Returns the value of attribute tag.



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

def tag
  @tag
end

#targetAmountObject

Returns the value of attribute targetAmount.



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

def targetAmount
  @targetAmount
end

#targetDateObject

Returns the value of attribute targetDate.



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

def targetDate
  @targetDate
end

#typeObject

Returns the value of attribute type.



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

def type
  @type
end

Class Method Details

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



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

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

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



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

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

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



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

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

Instance Method Details

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



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

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

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



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

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

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



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

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