1 <?php
2
3 namespace PayPal\Api;
4
5 use PayPal\Common\PayPalModel;
6
7 /**
8 * Class CarrierAccount
9 *
10 * Payment instrument that enables carrier billing.
11 *
12 * @package PayPal\Api
13 *
14 * @property string id
15 * @property string phone_number
16 * @property string external_customer_id
17 * @property string phone_source
18 * @property \PayPal\Api\CountryCode country_code
19 */
20 class CarrierAccount extends PayPalModel
21 {
22 /**
23 * The ID of the carrier account of the payer. Use in subsequent REST API calls. For example, to make payments.
24 *
25 * @param string $id
26 *
27 * @return $this
28 */
29 public function setId($id)
30 {
31 $this->id = $id;
32 return $this;
33 }
34
35 /**
36 * The ID of the carrier account of the payer. Use in subsequent REST API calls. For example, to make payments.
37 *
38 * @return string
39 */
40 public function getId()
41 {
42 return $this->id;
43 }
44
45 /**
46 * The phone number of the payer, in E.164 format.
47 *
48 * @param string $phone_number
49 *
50 * @return $this
51 */
52 public function setPhoneNumber($phone_number)
53 {
54 $this->phone_number = $phone_number;
55 return $this;
56 }
57
58 /**
59 * The phone number of the payer, in E.164 format.
60 *
61 * @return string
62 */
63 public function getPhoneNumber()
64 {
65 return $this->phone_number;
66 }
67
68 /**
69 * The ID of the customer, as created by the merchant.
70 *
71 * @param string $external_customer_id
72 *
73 * @return $this
74 */
75 public function setExternalCustomerId($external_customer_id)
76 {
77 $this->external_customer_id = $external_customer_id;
78 return $this;
79 }
80
81 /**
82 * The ID of the customer, as created by the merchant.
83 *
84 * @return string
85 */
86 public function getExternalCustomerId()
87 {
88 return $this->external_customer_id;
89 }
90
91 /**
92 * The method used to obtain the phone number. Value is `READ_FROM_DEVICE` or `USER_PROVIDED`.
93 * Valid Values: ["READ_FROM_DEVICE", "USER_PROVIDED"]
94 *
95 * @param string $phone_source
96 *
97 * @return $this
98 */
99 public function setPhoneSource($phone_source)
100 {
101 $this->phone_source = $phone_source;
102 return $this;
103 }
104
105 /**
106 * The method used to obtain the phone number. Value is `READ_FROM_DEVICE` or `USER_PROVIDED`.
107 *
108 * @return string
109 */
110 public function getPhoneSource()
111 {
112 return $this->phone_source;
113 }
114
115 /**
116 * The ISO 3166-1 alpha-2 country code where the phone number is registered.
117 *
118 * @param \PayPal\Api\CountryCode $country_code
119 *
120 * @return $this
121 */
122 public function setCountryCode($country_code)
123 {
124 $this->country_code = $country_code;
125 return $this;
126 }
127
128 /**
129 * The ISO 3166-1 alpha-2 country code where the phone number is registered.
130 *
131 * @return \PayPal\Api\CountryCode
132 */
133 public function getCountryCode()
134 {
135 return $this->country_code;
136 }
137
138 }
139