1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace Onend\PayPal\Payment\Model; |
4
|
|
|
|
5
|
|
|
use JMS\Serializer\Annotation as JMS; |
6
|
|
|
use Onend\PayPal\Common\Model\AbstractModel; |
7
|
|
|
|
8
|
|
|
class CreditCardToken extends AbstractModel |
9
|
|
|
{ |
10
|
|
|
/** |
11
|
|
|
* @JMS\Type("string") |
12
|
|
|
* @JMS\SerializedName("credit_card_id") |
13
|
|
|
* |
14
|
|
|
* @var string |
15
|
|
|
*/ |
16
|
|
|
protected $creditCardId; |
17
|
|
|
|
18
|
|
|
/** |
19
|
|
|
* @JMS\Type("string") |
20
|
|
|
* @JMS\SerializedName("payer_id") |
21
|
|
|
* |
22
|
|
|
* @var string |
23
|
|
|
*/ |
24
|
|
|
protected $payerId; |
25
|
|
|
|
26
|
|
|
/** |
27
|
|
|
* @JMS\Type("string") |
28
|
|
|
* |
29
|
|
|
* @var string |
30
|
|
|
*/ |
31
|
|
|
protected $last4; |
32
|
|
|
|
33
|
|
|
/** |
34
|
|
|
* @JMS\Type("string") |
35
|
|
|
* |
36
|
|
|
* @var string |
37
|
|
|
*/ |
38
|
|
|
protected $type; |
39
|
|
|
|
40
|
|
|
/** |
41
|
|
|
* @JMS\Type("integer") |
42
|
|
|
* @JMS\SerializedNamew("expire_year") |
43
|
|
|
* |
44
|
|
|
* @var int |
45
|
|
|
*/ |
46
|
|
|
protected $expireYear; |
47
|
|
|
|
48
|
|
|
/** |
49
|
|
|
* @JMS\Type("integer") |
50
|
|
|
* @JMS\SerializedName("expire_month") |
51
|
|
|
* |
52
|
|
|
* @var int |
53
|
|
|
*/ |
54
|
|
|
protected $expireMonth; |
55
|
|
|
|
56
|
|
|
/** |
57
|
|
|
* @return string |
58
|
|
|
*/ |
59
|
|
|
public function getCreditCardId() |
60
|
|
|
{ |
61
|
|
|
return $this->creditCardId; |
62
|
|
|
} |
63
|
|
|
|
64
|
|
|
/** |
65
|
|
|
* @param string $creditCardId |
66
|
|
|
*/ |
67
|
|
|
public function setCreditCardId($creditCardId) |
68
|
|
|
{ |
69
|
|
|
$this->creditCardId = $creditCardId; |
70
|
|
|
} |
71
|
|
|
|
72
|
|
|
/** |
73
|
|
|
* @return int |
74
|
|
|
*/ |
75
|
|
|
public function getExpireMonth() |
76
|
|
|
{ |
77
|
|
|
return $this->expireMonth; |
78
|
|
|
} |
79
|
|
|
|
80
|
|
|
/** |
81
|
|
|
* @param int $expireMonth |
82
|
|
|
*/ |
83
|
|
|
public function setExpireMonth($expireMonth) |
84
|
|
|
{ |
85
|
|
|
$this->expireMonth = $expireMonth; |
86
|
|
|
} |
87
|
|
|
|
88
|
|
|
/** |
89
|
|
|
* @return int |
90
|
|
|
*/ |
91
|
|
|
public function getExpireYear() |
92
|
|
|
{ |
93
|
|
|
return $this->expireYear; |
94
|
|
|
} |
95
|
|
|
|
96
|
|
|
/** |
97
|
|
|
* @param int $expireYear |
98
|
|
|
*/ |
99
|
|
|
public function setExpireYear($expireYear) |
100
|
|
|
{ |
101
|
|
|
$this->expireYear = $expireYear; |
102
|
|
|
} |
103
|
|
|
|
104
|
|
|
/** |
105
|
|
|
* @return string |
106
|
|
|
*/ |
107
|
|
|
public function getLast4() |
108
|
|
|
{ |
109
|
|
|
return $this->last4; |
110
|
|
|
} |
111
|
|
|
|
112
|
|
|
/** |
113
|
|
|
* @param string $last4 |
114
|
|
|
*/ |
115
|
|
|
public function setLast4($last4) |
116
|
|
|
{ |
117
|
|
|
$this->last4 = $last4; |
118
|
|
|
} |
119
|
|
|
|
120
|
|
|
/** |
121
|
|
|
* @return string |
122
|
|
|
*/ |
123
|
|
|
public function getPayerId() |
124
|
|
|
{ |
125
|
|
|
return $this->payerId; |
126
|
|
|
} |
127
|
|
|
|
128
|
|
|
/** |
129
|
|
|
* @param string $payerId |
130
|
|
|
*/ |
131
|
|
|
public function setPayerId($payerId) |
132
|
|
|
{ |
133
|
|
|
$this->payerId = $payerId; |
134
|
|
|
} |
135
|
|
|
|
136
|
|
|
/** |
137
|
|
|
* @return string |
138
|
|
|
*/ |
139
|
|
|
public function getType() |
140
|
|
|
{ |
141
|
|
|
return $this->type; |
142
|
|
|
} |
143
|
|
|
|
144
|
|
|
/** |
145
|
|
|
* @param string $type |
146
|
|
|
*/ |
147
|
|
|
public function setType($type) |
148
|
|
|
{ |
149
|
|
|
$this->type = $type; |
150
|
|
|
} |
151
|
|
|
} |
152
|
|
|
|