4 use PayPal\Common\PPModel;
6 class CreditCardToken extends PPModel {
8 * ID of a previously saved Credit Card resource using /vault/credit-card API.
9 * @param string $credit_card_id
11 public function setCreditCardId($credit_card_id) {
12 $this->credit_card_id = $credit_card_id;
17 * ID of a previously saved Credit Card resource using /vault/credit-card API.
20 public function getCreditCardId() {
21 return $this->credit_card_id;
25 * ID of a previously saved Credit Card resource using /vault/credit-card API.
26 * @param string $credit_card_id
27 * @deprecated. Instead use setCreditCardId
29 public function setCredit_card_id($credit_card_id) {
30 $this->credit_card_id = $credit_card_id;
34 * ID of a previously saved Credit Card resource using /vault/credit-card API.
36 * @deprecated. Instead use getCreditCardId
38 public function getCredit_card_id() {
39 return $this->credit_card_id;
43 * The unique identifier of the payer used when saving this credit card using /vault/credit-card API.
44 * @param string $payer_id
46 public function setPayerId($payer_id) {
47 $this->payer_id = $payer_id;
52 * The unique identifier of the payer used when saving this credit card using /vault/credit-card API.
55 public function getPayerId() {
56 return $this->payer_id;
60 * The unique identifier of the payer used when saving this credit card using /vault/credit-card API.
61 * @param string $payer_id
62 * @deprecated. Instead use setPayerId
64 public function setPayer_id($payer_id) {
65 $this->payer_id = $payer_id;
69 * The unique identifier of the payer used when saving this credit card using /vault/credit-card API.
71 * @deprecated. Instead use getPayerId
73 public function getPayer_id() {
74 return $this->payer_id;
78 * Last 4 digits of the card number from the saved card.
79 * @param string $last4
81 public function setLast4($last4) {
82 $this->last4 = $last4;
87 * Last 4 digits of the card number from the saved card.
90 public function getLast4() {
96 * Type of the Card (eg. visa, mastercard, etc.) from the saved card. Please note that the values are always in lowercase and not meant to be used directly for display.
99 public function setType($type) {
105 * Type of the Card (eg. visa, mastercard, etc.) from the saved card. Please note that the values are always in lowercase and not meant to be used directly for display.
108 public function getType() {
114 * card expiry month from the saved card with value 1 - 12
115 * @param integer $expire_month
117 public function setExpireMonth($expire_month) {
118 $this->expire_month = $expire_month;
123 * card expiry month from the saved card with value 1 - 12
126 public function getExpireMonth() {
127 return $this->expire_month;
131 * card expiry month from the saved card with value 1 - 12
132 * @param integer $expire_month
133 * @deprecated. Instead use setExpireMonth
135 public function setExpire_month($expire_month) {
136 $this->expire_month = $expire_month;
140 * card expiry month from the saved card with value 1 - 12
142 * @deprecated. Instead use getExpireMonth
144 public function getExpire_month() {
145 return $this->expire_month;
149 * 4 digit card expiry year from the saved card
150 * @param integer $expire_year
152 public function setExpireYear($expire_year) {
153 $this->expire_year = $expire_year;
158 * 4 digit card expiry year from the saved card
161 public function getExpireYear() {
162 return $this->expire_year;
166 * 4 digit card expiry year from the saved card
167 * @param integer $expire_year
168 * @deprecated. Instead use setExpireYear
170 public function setExpire_year($expire_year) {
171 $this->expire_year = $expire_year;
175 * 4 digit card expiry year from the saved card
177 * @deprecated. Instead use getExpireYear
179 public function getExpire_year() {
180 return $this->expire_year;