1 <?php
2
3 namespace PayPal\Api;
4
5 use PayPal\Common\PayPalModel;
6
7 /**
8 * Class AlternatePayment
9 *
10 * A resource representing a alternate payment account that can be used to fund a payment.
11 *
12 * @package PayPal\Api
13 *
14 * @deprecated Used for limited release only.
15 *
16 * @property string alternate_payment_account_id
17 * @property string external_customer_id
18 * @property string alternate_payment_provider_id
19 */
20 class AlternatePayment extends PayPalModel
21 {
22 /**
23 * The unique identifier of the alternate payment account.
24 *
25 * @param string $alternate_payment_account_id
26 *
27 * @return $this
28 */
29 public function setAlternatePaymentAccountId($alternate_payment_account_id)
30 {
31 $this->alternate_payment_account_id = $alternate_payment_account_id;
32 return $this;
33 }
34
35 /**
36 * The unique identifier of the alternate payment account.
37 *
38 * @return string
39 */
40 public function getAlternatePaymentAccountId()
41 {
42 return $this->alternate_payment_account_id;
43 }
44
45 /**
46 * The unique identifier of the payer
47 *
48 * @param string $external_customer_id
49 *
50 * @return $this
51 */
52 public function setExternalCustomerId($external_customer_id)
53 {
54 $this->external_customer_id = $external_customer_id;
55 return $this;
56 }
57
58 /**
59 * The unique identifier of the payer
60 *
61 * @return string
62 */
63 public function getExternalCustomerId()
64 {
65 return $this->external_customer_id;
66 }
67
68 /**
69 * Alternate Payment provider id. This is an optional attribute needed only for certain alternate providers e.g Ideal
70 *
71 * @param string $alternate_payment_provider_id
72 *
73 * @return $this
74 */
75 public function setAlternatePaymentProviderId($alternate_payment_provider_id)
76 {
77 $this->alternate_payment_provider_id = $alternate_payment_provider_id;
78 return $this;
79 }
80
81 /**
82 * Alternate Payment provider id. This is an optional attribute needed only for certain alternate providers e.g Ideal
83 *
84 * @return string
85 */
86 public function getAlternatePaymentProviderId()
87 {
88 return $this->alternate_payment_provider_id;
89 }
90
91 }
92