Class: CorePro::Card
- Inherits:
-
Models::ModelBase
- Object
- Models::JsonBase
- Models::ModelBase
- CorePro::Card
- Defined in:
- lib/corepro/card.rb
Instance Attribute Summary collapse
-
#accounts ⇒ Object
Returns the value of attribute accounts.
-
#archivedDate ⇒ Object
Returns the value of attribute archivedDate.
-
#cardHolderCustomerId ⇒ Object
Returns the value of attribute cardHolderCustomerId.
-
#cardId ⇒ Object
Returns the value of attribute cardId.
-
#cardNumberMasked ⇒ Object
Returns the value of attribute cardNumberMasked.
-
#createdDate ⇒ Object
Returns the value of attribute createdDate.
-
#customerId ⇒ Object
Returns the value of attribute customerId.
-
#deniedDate ⇒ Object
Returns the value of attribute deniedDate.
-
#expiredDate ⇒ Object
Returns the value of attribute expiredDate.
-
#expireMonth ⇒ Object
Returns the value of attribute expireMonth.
-
#expireYear ⇒ Object
Returns the value of attribute expireYear.
-
#firstName ⇒ Object
Returns the value of attribute firstName.
-
#lastModifiedDate ⇒ Object
Returns the value of attribute lastModifiedDate.
-
#lastName ⇒ Object
Returns the value of attribute lastName.
-
#lockReasonTypeCode ⇒ Object
Returns the value of attribute lockReasonTypeCode.
-
#lockTypeCode ⇒ Object
Returns the value of attribute lockTypeCode.
-
#middleName ⇒ Object
Returns the value of attribute middleName.
-
#newPin ⇒ Object
Returns the value of attribute newPin.
-
#nickName ⇒ Object
Returns the value of attribute nickName.
-
#primaryAccountId ⇒ Object
Returns the value of attribute primaryAccountId.
-
#reissuedDate ⇒ Object
Returns the value of attribute reissuedDate.
-
#requestedDate ⇒ Object
Returns the value of attribute requestedDate.
-
#status ⇒ Object
Returns the value of attribute status.
-
#tag ⇒ Object
Returns the value of attribute tag.
-
#typeCode ⇒ Object
Returns the value of attribute typeCode.
-
#vendorTypeCode ⇒ Object
Returns the value of attribute vendorTypeCode.
-
#verifiedDate ⇒ Object
Returns the value of attribute verifiedDate.
Attributes inherited from Models::ModelBase
Class Method Summary collapse
- .get(customerId, cardId, connection = nil, loggingObject = nil) ⇒ Object
- .getByTag(customerId, tag, connection = nil, loggingObject = nil) ⇒ Object
- .list(customerId, connection = nil, loggingObject = nil) ⇒ Object
Instance Method Summary collapse
- #addAccount(connection = nil, loggingObject = nil) ⇒ Object
- #archive(connection = nil, loggingObject = nil) ⇒ Object
- #hotlist(connection = nil, loggingObject = nil) ⇒ Object
- #initiate(connection = nil, loggingObject = nil) ⇒ Object
- #lock(connection = nil, loggingObject = nil) ⇒ Object
- #reissue(connection = nil, loggingObject = nil) ⇒ Object
- #removeAccount(connection = nil, loggingObject = nil) ⇒ Object
- #reprioritizeAccount(connection = nil, loggingObject = nil) ⇒ Object
- #unlock(connection = nil, loggingObject = nil) ⇒ Object
- #verify(connection = nil, loggingObject = nil) ⇒ Object
Methods inherited from Models::ModelBase
Methods inherited from Models::JsonBase
#from_json!, #is_hash?, #to_hash, #to_json
Instance Attribute Details
#accounts ⇒ Object
Returns the value of attribute accounts.
31 32 33 |
# File 'lib/corepro/card.rb', line 31 def accounts @accounts end |
#archivedDate ⇒ Object
Returns the value of attribute archivedDate.
29 30 31 |
# File 'lib/corepro/card.rb', line 29 def archivedDate @archivedDate end |
#cardHolderCustomerId ⇒ Object
Returns the value of attribute cardHolderCustomerId.
8 9 10 |
# File 'lib/corepro/card.rb', line 8 def cardHolderCustomerId @cardHolderCustomerId end |
#cardId ⇒ Object
Returns the value of attribute cardId.
6 7 8 |
# File 'lib/corepro/card.rb', line 6 def cardId @cardId end |
#cardNumberMasked ⇒ Object
Returns the value of attribute cardNumberMasked.
12 13 14 |
# File 'lib/corepro/card.rb', line 12 def cardNumberMasked @cardNumberMasked end |
#createdDate ⇒ Object
Returns the value of attribute createdDate.
23 24 25 |
# File 'lib/corepro/card.rb', line 23 def createdDate @createdDate end |
#customerId ⇒ Object
Returns the value of attribute customerId.
7 8 9 |
# File 'lib/corepro/card.rb', line 7 def customerId @customerId end |
#deniedDate ⇒ Object
Returns the value of attribute deniedDate.
27 28 29 |
# File 'lib/corepro/card.rb', line 27 def deniedDate @deniedDate end |
#expiredDate ⇒ Object
Returns the value of attribute expiredDate.
28 29 30 |
# File 'lib/corepro/card.rb', line 28 def expiredDate @expiredDate end |
#expireMonth ⇒ Object
Returns the value of attribute expireMonth.
18 19 20 |
# File 'lib/corepro/card.rb', line 18 def expireMonth @expireMonth end |
#expireYear ⇒ Object
Returns the value of attribute expireYear.
19 20 21 |
# File 'lib/corepro/card.rb', line 19 def expireYear @expireYear end |
#firstName ⇒ Object
Returns the value of attribute firstName.
14 15 16 |
# File 'lib/corepro/card.rb', line 14 def firstName @firstName end |
#lastModifiedDate ⇒ Object
Returns the value of attribute lastModifiedDate.
30 31 32 |
# File 'lib/corepro/card.rb', line 30 def lastModifiedDate @lastModifiedDate end |
#lastName ⇒ Object
Returns the value of attribute lastName.
16 17 18 |
# File 'lib/corepro/card.rb', line 16 def lastName @lastName end |
#lockReasonTypeCode ⇒ Object
Returns the value of attribute lockReasonTypeCode.
22 23 24 |
# File 'lib/corepro/card.rb', line 22 def lockReasonTypeCode @lockReasonTypeCode end |
#lockTypeCode ⇒ Object
Returns the value of attribute lockTypeCode.
21 22 23 |
# File 'lib/corepro/card.rb', line 21 def lockTypeCode @lockTypeCode end |
#middleName ⇒ Object
Returns the value of attribute middleName.
15 16 17 |
# File 'lib/corepro/card.rb', line 15 def middleName @middleName end |
#newPin ⇒ Object
Returns the value of attribute newPin.
32 33 34 |
# File 'lib/corepro/card.rb', line 32 def newPin @newPin end |
#nickName ⇒ Object
Returns the value of attribute nickName.
17 18 19 |
# File 'lib/corepro/card.rb', line 17 def nickName @nickName end |
#primaryAccountId ⇒ Object
Returns the value of attribute primaryAccountId.
20 21 22 |
# File 'lib/corepro/card.rb', line 20 def primaryAccountId @primaryAccountId end |
#reissuedDate ⇒ Object
Returns the value of attribute reissuedDate.
26 27 28 |
# File 'lib/corepro/card.rb', line 26 def reissuedDate @reissuedDate end |
#requestedDate ⇒ Object
Returns the value of attribute requestedDate.
24 25 26 |
# File 'lib/corepro/card.rb', line 24 def requestedDate @requestedDate end |
#status ⇒ Object
Returns the value of attribute status.
11 12 13 |
# File 'lib/corepro/card.rb', line 11 def status @status end |
#tag ⇒ Object
Returns the value of attribute tag.
13 14 15 |
# File 'lib/corepro/card.rb', line 13 def tag @tag end |
#typeCode ⇒ Object
Returns the value of attribute typeCode.
9 10 11 |
# File 'lib/corepro/card.rb', line 9 def typeCode @typeCode end |
#vendorTypeCode ⇒ Object
Returns the value of attribute vendorTypeCode.
10 11 12 |
# File 'lib/corepro/card.rb', line 10 def vendorTypeCode @vendorTypeCode end |
#verifiedDate ⇒ Object
Returns the value of attribute verifiedDate.
25 26 27 |
# File 'lib/corepro/card.rb', line 25 def verifiedDate @verifiedDate end |
Class Method Details
.get(customerId, cardId, connection = nil, loggingObject = nil) ⇒ Object
34 35 36 |
# File 'lib/corepro/card.rb', line 34 def self.get(customerId, cardId, connection = nil, loggingObject = nil) CorePro::Utils::Requestor.get("/card/get/#{customerId}/#{cardId}", Card, connection, loggingObject) end |
.getByTag(customerId, tag, connection = nil, loggingObject = nil) ⇒ Object
38 39 40 |
# File 'lib/corepro/card.rb', line 38 def self.getByTag(customerId, tag, connection = nil, loggingObject = nil) CorePro::Utils::Requestor.get("/card/getByTag/#{customerId}/#{escape(tag)}", Card, connection, loggingObject) end |
Instance Method Details
#addAccount(connection = nil, loggingObject = nil) ⇒ Object
64 65 66 |
# File 'lib/corepro/card.rb', line 64 def addAccount(connection = nil, loggingObject = nil) CorePro::Utils::Requestor.post('/card/addAccount', Card, self, connection, loggingObject) end |
#archive(connection = nil, loggingObject = nil) ⇒ Object
58 59 60 |
# File 'lib/corepro/card.rb', line 58 def archive(connection = nil, loggingObject = nil) CorePro::Utils::Requestor.post('/card/archive', nil, self, connection, loggingObject) end |
#hotlist(connection = nil, loggingObject = nil) ⇒ Object
77 78 79 |
# File 'lib/corepro/card.rb', line 77 def hotlist(connection = nil, loggingObject = nil) CorePro::Utils::Requestor.post('/card/hotlist', Card, self, connection, loggingObject) end |
#initiate(connection = nil, loggingObject = nil) ⇒ Object
46 47 48 |
# File 'lib/corepro/card.rb', line 46 def initiate(connection = nil, loggingObject = nil) CorePro::Utils::Requestor.post('/card/initiate', Card, self, connection, loggingObject) end |
#lock(connection = nil, loggingObject = nil) ⇒ Object
81 82 83 |
# File 'lib/corepro/card.rb', line 81 def lock(connection = nil, loggingObject = nil) CorePro::Utils::Requestor.post('/card/lock', Card, self, connection, loggingObject) end |
#reissue(connection = nil, loggingObject = nil) ⇒ Object
54 55 56 |
# File 'lib/corepro/card.rb', line 54 def reissue(connection = nil, loggingObject = nil) CorePro::Utils::Requestor.post('/card/reissue', Card, self, connection, loggingObject) end |
#removeAccount(connection = nil, loggingObject = nil) ⇒ Object
68 69 70 |
# File 'lib/corepro/card.rb', line 68 def removeAccount(connection = nil, loggingObject = nil) CorePro::Utils::Requestor.post('/card/removeAccount', Card, self, connection, loggingObject) end |
#reprioritizeAccount(connection = nil, loggingObject = nil) ⇒ Object
72 73 74 |
# File 'lib/corepro/card.rb', line 72 def reprioritizeAccount(connection = nil, loggingObject = nil) CorePro::Utils::Requestor.post('/card/reprioritizeAccount', Card, self, connection, loggingObject) end |