PayPalApiCarrierAccount

Class CarrierAccount.

Defined (1)

The class is defined in the following location(s).

/classes/lib/PayPal/Api/CarrierAccount.php  
  1. class CarrierAccount extends PayPalModel 
  2. /** 
  3. * ID that identifies the payer*s carrier account. Can be used in subsequent REST API calls, e.g. for making payments. 
  4. * @param string $id 
  5. *  
  6. * @return $this 
  7. */ 
  8. public function setId($id) 
  9. $this->id = $id; 
  10. return $this; 
  11.  
  12. /** 
  13. * ID that identifies the payer*s carrier account. Can be used in subsequent REST API calls, e.g. for making payments. 
  14. * @return string 
  15. */ 
  16. public function getId() 
  17. return $this->id; 
  18.  
  19. /** 
  20. * The payer*s phone number in E.164 format. 
  21. * @param string $phone_number 
  22. *  
  23. * @return $this 
  24. */ 
  25. public function setPhoneNumber($phone_number) 
  26. $this->phone_number = $phone_number; 
  27. return $this; 
  28.  
  29. /** 
  30. * The payer*s phone number in E.164 format. 
  31. * @return string 
  32. */ 
  33. public function getPhoneNumber() 
  34. return $this->phone_number; 
  35.  
  36. /** 
  37. * User identifier as created by the merchant. 
  38. * @param string $external_customer_id 
  39. *  
  40. * @return $this 
  41. */ 
  42. public function setExternalCustomerId($external_customer_id) 
  43. $this->external_customer_id = $external_customer_id; 
  44. return $this; 
  45.  
  46. /** 
  47. * User identifier as created by the merchant. 
  48. * @return string 
  49. */ 
  50. public function getExternalCustomerId() 
  51. return $this->external_customer_id; 
  52.  
  53. /** 
  54. * The method of obtaining the phone number (USER_PROVIDED or READ_FROM_DEVICE). 
  55. * Valid Values: ["READ_FROM_DEVICE", "USER_PROVIDED"] 
  56. * @param string $phone_source 
  57. *  
  58. * @return $this 
  59. */ 
  60. public function setPhoneSource($phone_source) 
  61. $this->phone_source = $phone_source; 
  62. return $this; 
  63.  
  64. /** 
  65. * The method of obtaining the phone number (USER_PROVIDED or READ_FROM_DEVICE). 
  66. * @return string 
  67. */ 
  68. public function getPhoneSource() 
  69. return $this->phone_source; 
  70.  
  71. /** 
  72. * The country where the phone number is registered. Specified in 2-character IS0-3166-1 format. 
  73. * @param \PayPal\Api\CountryCode $country_code 
  74. *  
  75. * @return $this 
  76. */ 
  77. public function setCountryCode($country_code) 
  78. $this->country_code = $country_code; 
  79. return $this; 
  80.  
  81. /** 
  82. * The country where the phone number is registered. Specified in 2-character IS0-3166-1 format. 
  83. * @return \PayPal\Api\CountryCode 
  84. */ 
  85. public function getCountryCode() 
  86. return $this->country_code; 
  87.