Class: CorePro::Account
- Inherits:
-
Models::ModelBase
- Object
- Models::JsonBase
- Models::ModelBase
- CorePro::Account
- Defined in:
- lib/corepro/account.rb
Instance Attribute Summary collapse
-
#accountBalance ⇒ Object
Returns the value of attribute accountBalance.
-
#accountId ⇒ Object
Returns the value of attribute accountId.
-
#accountNumber ⇒ Object
Returns the value of attribute accountNumber.
-
#accountNumberMasked ⇒ Object
Returns the value of attribute accountNumberMasked.
-
#availableBalance ⇒ Object
Returns the value of attribute availableBalance.
-
#category ⇒ Object
Returns the value of attribute category.
-
#closedDate ⇒ Object
Returns the value of attribute closedDate.
-
#createdDate ⇒ Object
Returns the value of attribute createdDate.
-
#customerId ⇒ Object
Returns the value of attribute customerId.
-
#isCloseable ⇒ Object
Returns the value of attribute isCloseable.
-
#isPrimary ⇒ Object
Returns the value of attribute isPrimary.
-
#miscellaneous ⇒ Object
Returns the value of attribute miscellaneous.
-
#name ⇒ Object
Returns the value of attribute name.
-
#recurringContributionAmount ⇒ Object
Returns the value of attribute recurringContributionAmount.
-
#recurringContributionEndDate ⇒ Object
Returns the value of attribute recurringContributionEndDate.
-
#recurringContributionFromExternalAccountId ⇒ Object
Returns the value of attribute recurringContributionFromExternalAccountId.
-
#recurringContributionNextDate ⇒ Object
Returns the value of attribute recurringContributionNextDate.
-
#recurringContributionStartDate ⇒ Object
Returns the value of attribute recurringContributionStartDate.
-
#recurringContributionType ⇒ Object
Returns the value of attribute recurringContributionType.
-
#routingNumber ⇒ Object
Returns the value of attribute routingNumber.
-
#status ⇒ Object
Returns the value of attribute status.
-
#subCategory ⇒ Object
Returns the value of attribute subCategory.
-
#tag ⇒ Object
Returns the value of attribute tag.
-
#targetAmount ⇒ Object
Returns the value of attribute targetAmount.
-
#targetDate ⇒ Object
Returns the value of attribute targetDate.
-
#type ⇒ Object
Returns the value of attribute type.
Attributes inherited from Models::ModelBase
Class Method Summary collapse
- .get(customerId, accountId, connection = nil, loggingObject = nil) ⇒ Object
- .getByTag(customerId, tag, connection = nil, loggingObject = nil) ⇒ Object
- .list(customerId, connection = nil, loggingObject = nil) ⇒ Object
Instance Method Summary collapse
- #close(closeToAccountId, transactionTag, connection = nil, loggingObject = nil) ⇒ Object
- #create(connection = nil, loggingObject = nil) ⇒ Object
-
#initialize ⇒ Account
constructor
A new instance of Account.
- #update(connection = nil, loggingObject = nil) ⇒ Object
Methods inherited from Models::ModelBase
Methods inherited from Models::JsonBase
#from_json!, #to_hash, #to_json
Constructor Details
#initialize ⇒ Account
Returns a new instance of Account.
35 36 |
# File 'lib/corepro/account.rb', line 35 def initialize() end |
Instance Attribute Details
#accountBalance ⇒ Object
Returns the value of attribute accountBalance.
18 19 20 |
# File 'lib/corepro/account.rb', line 18 def accountBalance @accountBalance end |
#accountId ⇒ Object
Returns the value of attribute accountId.
9 10 11 |
# File 'lib/corepro/account.rb', line 9 def accountId @accountId end |
#accountNumber ⇒ Object
Returns the value of attribute accountNumber.
11 12 13 |
# File 'lib/corepro/account.rb', line 11 def accountNumber @accountNumber end |
#accountNumberMasked ⇒ Object
Returns the value of attribute accountNumberMasked.
12 13 14 |
# File 'lib/corepro/account.rb', line 12 def accountNumberMasked @accountNumberMasked end |
#availableBalance ⇒ Object
Returns the value of attribute availableBalance.
17 18 19 |
# File 'lib/corepro/account.rb', line 17 def availableBalance @availableBalance end |
#category ⇒ Object
Returns the value of attribute category.
24 25 26 |
# File 'lib/corepro/account.rb', line 24 def category @category end |
#closedDate ⇒ Object
Returns the value of attribute closedDate.
16 17 18 |
# File 'lib/corepro/account.rb', line 16 def closedDate @closedDate end |
#createdDate ⇒ Object
Returns the value of attribute createdDate.
15 16 17 |
# File 'lib/corepro/account.rb', line 15 def createdDate @createdDate end |
#customerId ⇒ Object
Returns the value of attribute customerId.
8 9 10 |
# File 'lib/corepro/account.rb', line 8 def customerId @customerId end |
#isCloseable ⇒ Object
Returns the value of attribute isCloseable.
20 21 22 |
# File 'lib/corepro/account.rb', line 20 def isCloseable @isCloseable end |
#isPrimary ⇒ Object
Returns the value of attribute isPrimary.
19 20 21 |
# File 'lib/corepro/account.rb', line 19 def isPrimary @isPrimary end |
#miscellaneous ⇒ Object
Returns the value of attribute miscellaneous.
27 28 29 |
# File 'lib/corepro/account.rb', line 27 def miscellaneous @miscellaneous end |
#name ⇒ Object
Returns the value of attribute name.
10 11 12 |
# File 'lib/corepro/account.rb', line 10 def name @name end |
#recurringContributionAmount ⇒ Object
Returns the value of attribute recurringContributionAmount.
29 30 31 |
# File 'lib/corepro/account.rb', line 29 def recurringContributionAmount @recurringContributionAmount end |
#recurringContributionEndDate ⇒ Object
Returns the value of attribute recurringContributionEndDate.
32 33 34 |
# File 'lib/corepro/account.rb', line 32 def recurringContributionEndDate @recurringContributionEndDate end |
#recurringContributionFromExternalAccountId ⇒ Object
Returns the value of attribute recurringContributionFromExternalAccountId.
30 31 32 |
# File 'lib/corepro/account.rb', line 30 def recurringContributionFromExternalAccountId @recurringContributionFromExternalAccountId end |
#recurringContributionNextDate ⇒ Object
Returns the value of attribute recurringContributionNextDate.
33 34 35 |
# File 'lib/corepro/account.rb', line 33 def recurringContributionNextDate @recurringContributionNextDate end |
#recurringContributionStartDate ⇒ Object
Returns the value of attribute recurringContributionStartDate.
31 32 33 |
# File 'lib/corepro/account.rb', line 31 def recurringContributionStartDate @recurringContributionStartDate end |
#recurringContributionType ⇒ Object
Returns the value of attribute recurringContributionType.
28 29 30 |
# File 'lib/corepro/account.rb', line 28 def recurringContributionType @recurringContributionType end |
#routingNumber ⇒ Object
Returns the value of attribute routingNumber.
21 22 23 |
# File 'lib/corepro/account.rb', line 21 def routingNumber @routingNumber end |
#status ⇒ Object
Returns the value of attribute status.
13 14 15 |
# File 'lib/corepro/account.rb', line 13 def status @status end |
#subCategory ⇒ Object
Returns the value of attribute subCategory.
25 26 27 |
# File 'lib/corepro/account.rb', line 25 def subCategory @subCategory end |
#tag ⇒ Object
Returns the value of attribute tag.
26 27 28 |
# File 'lib/corepro/account.rb', line 26 def tag @tag end |
#targetAmount ⇒ Object
Returns the value of attribute targetAmount.
22 23 24 |
# File 'lib/corepro/account.rb', line 22 def targetAmount @targetAmount end |
#targetDate ⇒ Object
Returns the value of attribute targetDate.
23 24 25 |
# File 'lib/corepro/account.rb', line 23 def targetDate @targetDate end |
#type ⇒ Object
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}", Account, 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)}", Account, 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}", Account, 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 |