Class: CorePro::Account
- Inherits:
-
Models::ModelBase
- Object
- Models::JsonBase
- Models::ModelBase
- CorePro::Account
- Defined in:
- lib/corepro/account.rb
Instance Attribute Summary collapse
-
#accessTypeCode ⇒ Object
Returns the value of attribute accessTypeCode.
-
#accountBalance ⇒ Object
Returns the value of attribute accountBalance.
-
#accountId ⇒ Object
Identifiers.
-
#accountNumber ⇒ Object
Returns the value of attribute accountNumber.
-
#accountNumberMasked ⇒ Object
Returns the value of attribute accountNumberMasked.
-
#availableBalance ⇒ Object
balance related.
-
#balanceLastModifiedDate ⇒ Object
Returns the value of attribute balanceLastModifiedDate.
-
#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.
-
#customerPriority ⇒ Object
Returns the value of attribute customerPriority.
-
#customField1 ⇒ Object
customizable.
-
#customField2 ⇒ Object
Returns the value of attribute customField2.
-
#customField3 ⇒ Object
Returns the value of attribute customField3.
-
#customField4 ⇒ Object
Returns the value of attribute customField4.
-
#customField5 ⇒ Object
Returns the value of attribute customField5.
-
#isCloseable ⇒ Object
Returns the value of attribute isCloseable.
-
#isJointAccount ⇒ Object
Returns the value of attribute isJointAccount.
-
#isPrimary ⇒ Object
Returns the value of attribute isPrimary.
-
#isPrimaryCustomer ⇒ Object
Returns the value of attribute isPrimaryCustomer.
-
#lastModifiedDate ⇒ Object
Returns the value of attribute lastModifiedDate.
-
#legalName1 ⇒ Object
Returns the value of attribute legalName1.
-
#legalName2 ⇒ Object
Returns the value of attribute legalName2.
-
#name ⇒ Object
Returns the value of attribute name.
-
#pendingBalance ⇒ Object
Returns the value of attribute pendingBalance.
-
#primaryCustomerId ⇒ Object
Returns the value of attribute primaryCustomerId.
-
#productId ⇒ Object
Returns the value of attribute productId.
-
#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
recurring deposit related.
-
#routingNumber ⇒ Object
Returns the value of attribute routingNumber.
-
#routingNumberMasked ⇒ Object
Returns the value of attribute routingNumberMasked.
-
#status ⇒ Object
state related.
-
#subCategory ⇒ Object
Returns the value of attribute subCategory.
-
#tag ⇒ Object
Returns the value of attribute tag.
-
#targetAmount ⇒ Object
goal related.
-
#targetDate ⇒ Object
Returns the value of attribute targetDate.
-
#targetMetDate ⇒ Object
Returns the value of attribute targetMetDate.
-
#targetMetPercent ⇒ Object
Returns the value of attribute targetMetPercent.
-
#totalCustomers ⇒ Object
joint account related.
-
#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
- .listAccess(customerId, accountId, connection = nil, loggingObject = nil) ⇒ Object
Instance Method Summary collapse
- #close(customerId, accountId, closeToAccountId, transactionTag, connection = nil, loggingObject = nil) ⇒ Object
- #create(connection = nil, loggingObject = nil) ⇒ Object
- #editAccess(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!, #is_hash?, #to_hash, #to_json
Constructor Details
#initialize ⇒ Account
Returns a new instance of Account.
68 |
# File 'lib/corepro/account.rb', line 68 def initialize; end |
Instance Attribute Details
#accessTypeCode ⇒ Object
Returns the value of attribute accessTypeCode.
58 59 60 |
# File 'lib/corepro/account.rb', line 58 def accessTypeCode @accessTypeCode end |
#accountBalance ⇒ Object
Returns the value of attribute accountBalance.
41 42 43 |
# File 'lib/corepro/account.rb', line 41 def accountBalance @accountBalance end |
#accountId ⇒ Object
Identifiers
10 11 12 |
# File 'lib/corepro/account.rb', line 10 def accountId @accountId end |
#accountNumber ⇒ Object
Returns the value of attribute accountNumber.
16 17 18 |
# File 'lib/corepro/account.rb', line 16 def accountNumber @accountNumber end |
#accountNumberMasked ⇒ Object
Returns the value of attribute accountNumberMasked.
17 18 19 |
# File 'lib/corepro/account.rb', line 17 def accountNumberMasked @accountNumberMasked end |
#availableBalance ⇒ Object
balance related
40 41 42 |
# File 'lib/corepro/account.rb', line 40 def availableBalance @availableBalance end |
#balanceLastModifiedDate ⇒ Object
Returns the value of attribute balanceLastModifiedDate.
43 44 45 |
# File 'lib/corepro/account.rb', line 43 def balanceLastModifiedDate @balanceLastModifiedDate end |
#category ⇒ Object
Returns the value of attribute category.
36 37 38 |
# File 'lib/corepro/account.rb', line 36 def category @category end |
#closedDate ⇒ Object
Returns the value of attribute closedDate.
26 27 28 |
# File 'lib/corepro/account.rb', line 26 def closedDate @closedDate end |
#createdDate ⇒ Object
Returns the value of attribute createdDate.
25 26 27 |
# File 'lib/corepro/account.rb', line 25 def createdDate @createdDate end |
#customerId ⇒ Object
Returns the value of attribute customerId.
11 12 13 |
# File 'lib/corepro/account.rb', line 11 def customerId @customerId end |
#customerPriority ⇒ Object
Returns the value of attribute customerPriority.
59 60 61 |
# File 'lib/corepro/account.rb', line 59 def customerPriority @customerPriority end |
#customField1 ⇒ Object
customizable
62 63 64 |
# File 'lib/corepro/account.rb', line 62 def customField1 @customField1 end |
#customField2 ⇒ Object
Returns the value of attribute customField2.
63 64 65 |
# File 'lib/corepro/account.rb', line 63 def customField2 @customField2 end |
#customField3 ⇒ Object
Returns the value of attribute customField3.
64 65 66 |
# File 'lib/corepro/account.rb', line 64 def customField3 @customField3 end |
#customField4 ⇒ Object
Returns the value of attribute customField4.
65 66 67 |
# File 'lib/corepro/account.rb', line 65 def customField4 @customField4 end |
#customField5 ⇒ Object
Returns the value of attribute customField5.
66 67 68 |
# File 'lib/corepro/account.rb', line 66 def customField5 @customField5 end |
#isCloseable ⇒ Object
Returns the value of attribute isCloseable.
28 29 30 |
# File 'lib/corepro/account.rb', line 28 def isCloseable @isCloseable end |
#isJointAccount ⇒ Object
Returns the value of attribute isJointAccount.
55 56 57 |
# File 'lib/corepro/account.rb', line 55 def isJointAccount @isJointAccount end |
#isPrimary ⇒ Object
Returns the value of attribute isPrimary.
27 28 29 |
# File 'lib/corepro/account.rb', line 27 def isPrimary @isPrimary end |
#isPrimaryCustomer ⇒ Object
Returns the value of attribute isPrimaryCustomer.
57 58 59 |
# File 'lib/corepro/account.rb', line 57 def isPrimaryCustomer @isPrimaryCustomer end |
#lastModifiedDate ⇒ Object
Returns the value of attribute lastModifiedDate.
29 30 31 |
# File 'lib/corepro/account.rb', line 29 def lastModifiedDate @lastModifiedDate end |
#legalName1 ⇒ Object
Returns the value of attribute legalName1.
18 19 20 |
# File 'lib/corepro/account.rb', line 18 def legalName1 @legalName1 end |
#legalName2 ⇒ Object
Returns the value of attribute legalName2.
19 20 21 |
# File 'lib/corepro/account.rb', line 19 def legalName2 @legalName2 end |
#name ⇒ Object
Returns the value of attribute name.
13 14 15 |
# File 'lib/corepro/account.rb', line 13 def name @name end |
#pendingBalance ⇒ Object
Returns the value of attribute pendingBalance.
42 43 44 |
# File 'lib/corepro/account.rb', line 42 def pendingBalance @pendingBalance end |
#primaryCustomerId ⇒ Object
Returns the value of attribute primaryCustomerId.
56 57 58 |
# File 'lib/corepro/account.rb', line 56 def primaryCustomerId @primaryCustomerId end |
#productId ⇒ Object
Returns the value of attribute productId.
24 25 26 |
# File 'lib/corepro/account.rb', line 24 def productId @productId end |
#recurringContributionAmount ⇒ Object
Returns the value of attribute recurringContributionAmount.
47 48 49 |
# File 'lib/corepro/account.rb', line 47 def recurringContributionAmount @recurringContributionAmount end |
#recurringContributionEndDate ⇒ Object
Returns the value of attribute recurringContributionEndDate.
50 51 52 |
# File 'lib/corepro/account.rb', line 50 def recurringContributionEndDate @recurringContributionEndDate end |
#recurringContributionFromExternalAccountId ⇒ Object
Returns the value of attribute recurringContributionFromExternalAccountId.
48 49 50 |
# File 'lib/corepro/account.rb', line 48 def recurringContributionFromExternalAccountId @recurringContributionFromExternalAccountId end |
#recurringContributionNextDate ⇒ Object
Returns the value of attribute recurringContributionNextDate.
51 52 53 |
# File 'lib/corepro/account.rb', line 51 def recurringContributionNextDate @recurringContributionNextDate end |
#recurringContributionStartDate ⇒ Object
Returns the value of attribute recurringContributionStartDate.
49 50 51 |
# File 'lib/corepro/account.rb', line 49 def recurringContributionStartDate @recurringContributionStartDate end |
#recurringContributionType ⇒ Object
recurring deposit related
46 47 48 |
# File 'lib/corepro/account.rb', line 46 def recurringContributionType @recurringContributionType end |
#routingNumber ⇒ Object
Returns the value of attribute routingNumber.
14 15 16 |
# File 'lib/corepro/account.rb', line 14 def routingNumber @routingNumber end |
#routingNumberMasked ⇒ Object
Returns the value of attribute routingNumberMasked.
15 16 17 |
# File 'lib/corepro/account.rb', line 15 def routingNumberMasked @routingNumberMasked end |
#status ⇒ Object
state related
22 23 24 |
# File 'lib/corepro/account.rb', line 22 def status @status end |
#subCategory ⇒ Object
Returns the value of attribute subCategory.
37 38 39 |
# File 'lib/corepro/account.rb', line 37 def subCategory @subCategory end |
#tag ⇒ Object
Returns the value of attribute tag.
12 13 14 |
# File 'lib/corepro/account.rb', line 12 def tag @tag end |
#targetAmount ⇒ Object
goal related
32 33 34 |
# File 'lib/corepro/account.rb', line 32 def targetAmount @targetAmount end |
#targetDate ⇒ Object
Returns the value of attribute targetDate.
33 34 35 |
# File 'lib/corepro/account.rb', line 33 def targetDate @targetDate end |
#targetMetDate ⇒ Object
Returns the value of attribute targetMetDate.
34 35 36 |
# File 'lib/corepro/account.rb', line 34 def targetMetDate @targetMetDate end |
#targetMetPercent ⇒ Object
Returns the value of attribute targetMetPercent.
35 36 37 |
# File 'lib/corepro/account.rb', line 35 def targetMetPercent @targetMetPercent end |
#totalCustomers ⇒ Object
joint account related
54 55 56 |
# File 'lib/corepro/account.rb', line 54 def totalCustomers @totalCustomers end |
#type ⇒ Object
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 |