PaymentInstrumentCard.php
2.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<?php
namespace Cardinity\Method\Payment;
use Cardinity\Method\ResultObject;
class PaymentInstrumentCard extends ResultObject implements PaymentInstrumentInterface
{
/** @type string Card brand.
Value assigned by Cardinity. */
private $cardBrand;
/** @type string Card number.
When creating a payment merchant provide full card number. However while
retrieving an existing payments only last 4 digits are returned. */
private $pan;
/** @type integer Expiration year. 4 digits, e.g. 2021. */
private $expYear;
/** @type integer Expiration month, e.g. 9. */
private $expMonth;
/** @type string Card holder’s name. Max length 32 characters. */
private $holder;
/**
* Gets the value of cardBrand.
* @return mixed
*/
public function getCardBrand()
{
return $this->cardBrand;
}
/**
* Sets the value of cardBrand.
* @param mixed $cardBrand the card brand
* @return void
*/
public function setCardBrand($cardBrand)
{
$this->cardBrand = $cardBrand;
}
/**
* Gets the value of pan.
* @return mixed
*/
public function getPan()
{
return $this->pan;
}
/**
* Sets the value of pan.
* @param mixed $pan the pan
* @return void
*/
public function setPan($pan)
{
$this->pan = $pan;
}
/**
* Gets the value of expYear.
* @return mixed
*/
public function getExpYear()
{
return $this->expYear;
}
/**
* Sets the value of expYear.
* @param mixed $expYear the exp year
* @return void
*/
public function setExpYear($expYear)
{
$this->expYear = $expYear;
}
/**
* Gets the value of expMonth.
* @return mixed
*/
public function getExpMonth()
{
return $this->expMonth;
}
/**
* Sets the value of expMonth.
* @param mixed $expMonth the exp month
* @return void
*/
public function setExpMonth($expMonth)
{
$this->expMonth = $expMonth;
}
/**
* Gets the value of holder.
* @return mixed
*/
public function getHolder()
{
return $this->holder;
}
/**
* Sets the value of holder.
* @param mixed $holder the holder
* @return void
*/
public function setHolder($holder)
{
$this->holder = $holder;
}
}