1 <?php
2
3 namespace PayPal\Api;
4
5 use PayPal\Common\PayPalModel;
6
7 /**
8 * Class PaymentCardToken
9 *
10 * A resource representing a payment card that can be used to fund a payment.
11 *
12 * @package PayPal\Api
13 *
14 * @property string payment_card_id
15 * @property string external_customer_id
16 * @property string last4
17 * @property string type
18 * @property int expire_month
19 * @property int expire_year
20 */
21 class PaymentCardToken extends PayPalModel
22 {
23 /**
24 * ID of a previously saved Payment Card resource.
25 *
26 * @param string $payment_card_id
27 *
28 * @return $this
29 */
30 public function setPaymentCardId($payment_card_id)
31 {
32 $this->payment_card_id = $payment_card_id;
33 return $this;
34 }
35
36 /**
37 * ID of a previously saved Payment Card resource.
38 *
39 * @return string
40 */
41 public function getPaymentCardId()
42 {
43 return $this->payment_card_id;
44 }
45
46 /**
47 * The unique identifier of the payer used when saving this payment card.
48 *
49 * @param string $external_customer_id
50 *
51 * @return $this
52 */
53 public function setExternalCustomerId($external_customer_id)
54 {
55 $this->external_customer_id = $external_customer_id;
56 return $this;
57 }
58
59 /**
60 * The unique identifier of the payer used when saving this payment card.
61 *
62 * @return string
63 */
64 public function getExternalCustomerId()
65 {
66 return $this->external_customer_id;
67 }
68
69 /**
70 * Last 4 digits of the card number from the saved card.
71 *
72 * @param string $last4
73 *
74 * @return $this
75 */
76 public function setLast4($last4)
77 {
78 $this->last4 = $last4;
79 return $this;
80 }
81
82 /**
83 * Last 4 digits of the card number from the saved card.
84 *
85 * @return string
86 */
87 public function getLast4()
88 {
89 return $this->last4;
90 }
91
92 /**
93 * Type of the Card.
94 * Valid Values: ["VISA", "AMEX", "SOLO", "JCB", "STAR", "DELTA", "DISCOVER", "SWITCH", "MAESTRO", "CB_NATIONALE", "CONFINOGA", "COFIDIS", "ELECTRON", "CETELEM", "CHINA_UNION_PAY", "MASTERCARD"]
95 *
96 * @param string $type
97 *
98 * @return $this
99 */
100 public function setType($type)
101 {
102 $this->type = $type;
103 return $this;
104 }
105
106 /**
107 * Type of the Card.
108 *
109 * @return string
110 */
111 public function getType()
112 {
113 return $this->type;
114 }
115
116 /**
117 * Expiry month from the saved card with value 1 - 12.
118 *
119 * @param int $expire_month
120 *
121 * @return $this
122 */
123 public function setExpireMonth($expire_month)
124 {
125 $this->expire_month = $expire_month;
126 return $this;
127 }
128
129 /**
130 * Expiry month from the saved card with value 1 - 12.
131 *
132 * @return int
133 */
134 public function getExpireMonth()
135 {
136 return $this->expire_month;
137 }
138
139 /**
140 * Four digit expiry year from the saved card, represented as YYYY format.
141 *
142 * @param int $expire_year
143 *
144 * @return $this
145 */
146 public function setExpireYear($expire_year)
147 {
148 $this->expire_year = $expire_year;
149 return $this;
150 }
151
152 /**
153 * Four digit expiry year from the saved card, represented as YYYY format.
154 *
155 * @return int
156 */
157 public function getExpireYear()
158 {
159 return $this->expire_year;
160 }
161
162 }
163