| 1 | <?php |
||
| 5 | class Subscription extends BaseDataType |
||
| 6 | { |
||
| 7 | protected $propertyMap = [ |
||
| 8 | 'name', |
||
| 9 | 'paymentSchedule', |
||
| 10 | 'amount', |
||
| 11 | 'trialAmount', |
||
| 12 | 'payment', |
||
| 13 | 'order', |
||
| 14 | 'billTo', |
||
| 15 | 'shipTo', |
||
| 16 | 'profile', |
||
| 17 | ]; |
||
| 18 | |||
| 19 | 1 | public function addPaymentSchedule(PaymentSchedule $paymentSchedule) |
|
| 20 | { |
||
| 21 | 1 | $this->properties['paymentSchedule'] = $paymentSchedule->toArray(); |
|
| 22 | 1 | } |
|
| 23 | |||
| 24 | public function addPayment(PaymentMethodInterface $payment) |
||
| 28 | |||
| 29 | public function addOrder(Order $order) |
||
| 33 | |||
| 34 | public function addBillTo(BillTo $billTo) |
||
| 38 | |||
| 39 | public function addShipTo(ShipTo $shipTo) |
||
| 43 | |||
| 44 | 1 | public function addProfile(CustomerProfileId $profile) |
|
| 48 | } |
||
| 49 |