Class: CorePro::Card

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

Instance Attribute Details

#accountsObject

Returns the value of attribute accounts.



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

def accounts
  @accounts
end

#archivedDateObject

Returns the value of attribute archivedDate.



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

def archivedDate
  @archivedDate
end

#cardHolderCustomerIdObject

Returns the value of attribute cardHolderCustomerId.



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

def cardHolderCustomerId
  @cardHolderCustomerId
end

#cardIdObject

Returns the value of attribute cardId.



6
7
8
# File 'lib/corepro/card.rb', line 6

def cardId
  @cardId
end

#cardNumberMaskedObject

Returns the value of attribute cardNumberMasked.



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

def cardNumberMasked
  @cardNumberMasked
end

#createdDateObject

Returns the value of attribute createdDate.



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

def createdDate
  @createdDate
end

#customerIdObject

Returns the value of attribute customerId.



7
8
9
# File 'lib/corepro/card.rb', line 7

def customerId
  @customerId
end

#deniedDateObject

Returns the value of attribute deniedDate.



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

def deniedDate
  @deniedDate
end

#expiredDateObject

Returns the value of attribute expiredDate.



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

def expiredDate
  @expiredDate
end

#expireMonthObject

Returns the value of attribute expireMonth.



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

def expireMonth
  @expireMonth
end

#expireYearObject

Returns the value of attribute expireYear.



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

def expireYear
  @expireYear
end

#firstNameObject

Returns the value of attribute firstName.



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

def firstName
  @firstName
end

#lastModifiedDateObject

Returns the value of attribute lastModifiedDate.



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

def lastModifiedDate
  @lastModifiedDate
end

#lastNameObject

Returns the value of attribute lastName.



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

def lastName
  @lastName
end

#lockReasonTypeCodeObject

Returns the value of attribute lockReasonTypeCode.



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

def lockReasonTypeCode
  @lockReasonTypeCode
end

#lockTypeCodeObject

Returns the value of attribute lockTypeCode.



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

def lockTypeCode
  @lockTypeCode
end

#middleNameObject

Returns the value of attribute middleName.



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

def middleName
  @middleName
end

#newPinObject

Returns the value of attribute newPin.



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

def newPin
  @newPin
end

#nickNameObject

Returns the value of attribute nickName.



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

def nickName
  @nickName
end

#primaryAccountIdObject

Returns the value of attribute primaryAccountId.



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

def primaryAccountId
  @primaryAccountId
end

#reissuedDateObject

Returns the value of attribute reissuedDate.



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

def reissuedDate
  @reissuedDate
end

#requestedDateObject

Returns the value of attribute requestedDate.



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

def requestedDate
  @requestedDate
end

#statusObject

Returns the value of attribute status.



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

def status
  @status
end

#tagObject

Returns the value of attribute tag.



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

def tag
  @tag
end

#typeCodeObject

Returns the value of attribute typeCode.



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

def typeCode
  @typeCode
end

#vendorTypeCodeObject

Returns the value of attribute vendorTypeCode.



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

def vendorTypeCode
  @vendorTypeCode
end

#verifiedDateObject

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

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



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

def self.list(customerId, connection = nil, loggingObject = nil)
  CorePro::Utils::Requestor.get("/card/list/#{customerId}", 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

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



85
86
87
# File 'lib/corepro/card.rb', line 85

def unlock(connection = nil, loggingObject = nil)
  CorePro::Utils::Requestor.post('/card/unlock', Card, self, connection, loggingObject)
end

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



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

def verify(connection = nil, loggingObject = nil)
  CorePro::Utils::Requestor.post('/card/verify', Card, self, connection, loggingObject)
end