1 <?php
2
3 namespace PayPal\Api;
4
5 use PayPal\Common\PayPalModel;
6
7 /**
8 * Class BankToken
9 *
10 * A resource representing a bank that can be used to fund a payment.
11 *
12 * @package PayPal\Api
13 *
14 * @property string bank_id
15 * @property string external_customer_id
16 * @property string mandate_reference_number
17 */
18 class BankToken extends PayPalModel
19 {
20 /**
21 * ID of a previously saved Bank resource using /vault/bank API.
22 *
23 * @param string $bank_id
24 *
25 * @return $this
26 */
27 public function setBankId($bank_id)
28 {
29 $this->bank_id = $bank_id;
30 return $this;
31 }
32
33 /**
34 * ID of a previously saved Bank resource using /vault/bank API.
35 *
36 * @return string
37 */
38 public function getBankId()
39 {
40 return $this->bank_id;
41 }
42
43 /**
44 * The unique identifier of the payer used when saving this bank using /vault/bank API.
45 *
46 * @param string $external_customer_id
47 *
48 * @return $this
49 */
50 public function setExternalCustomerId($external_customer_id)
51 {
52 $this->external_customer_id = $external_customer_id;
53 return $this;
54 }
55
56 /**
57 * The unique identifier of the payer used when saving this bank using /vault/bank API.
58 *
59 * @return string
60 */
61 public function getExternalCustomerId()
62 {
63 return $this->external_customer_id;
64 }
65
66 /**
67 * Identifier of the direct debit mandate to validate. Currently supported only for EU bank accounts(SEPA).
68 *
69 * @param string $mandate_reference_number
70 *
71 * @return $this
72 */
73 public function setMandateReferenceNumber($mandate_reference_number)
74 {
75 $this->mandate_reference_number = $mandate_reference_number;
76 return $this;
77 }
78
79 /**
80 * Identifier of the direct debit mandate to validate. Currently supported only for EU bank accounts(SEPA).
81 *
82 * @return string
83 */
84 public function getMandateReferenceNumber()
85 {
86 return $this->mandate_reference_number;
87 }
88
89 }
90