| 1 | <?php |
||
| 8 | class BillShipper |
||
| 9 | { |
||
| 10 | const TYPE_ALTERNATE_PAYMENT_METHOD_PAYPAL = '01'; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | private $accountNumber; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var CreditCard |
||
| 19 | */ |
||
| 20 | private $creditCard; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var string |
||
| 24 | */ |
||
| 25 | private $alternatePaymentMethod; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @param \stdClass|null $attributes |
||
| 29 | */ |
||
| 30 | 3 | public function __construct(\stdClass $attributes = null) |
|
| 42 | |||
| 43 | /** |
||
| 44 | * @return string |
||
| 45 | */ |
||
| 46 | public function getAccountNumber() |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @param string $accountNumber |
||
| 53 | * |
||
| 54 | * @return BillShipper |
||
| 55 | */ |
||
| 56 | public function setAccountNumber($accountNumber) |
||
| 62 | |||
| 63 | /** |
||
| 64 | * @return CreditCard |
||
| 65 | */ |
||
| 66 | public function getCreditCard() |
||
| 70 | |||
| 71 | /** |
||
| 72 | * @param CreditCard $creditCard |
||
| 73 | * @return BillShipper |
||
| 74 | */ |
||
| 75 | public function setCreditCard(CreditCard $creditCard) |
||
| 81 | |||
| 82 | /** |
||
| 83 | * @param string $type |
||
| 84 | * @return BillShipper |
||
| 85 | */ |
||
| 86 | public function setAlternatePaymentMethod($type) |
||
| 92 | |||
| 93 | /** |
||
| 94 | * @return string|null |
||
| 95 | */ |
||
| 96 | public function getAlternatePaymentMethod() |
||
| 100 | } |
||
| 101 |