for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace CommerceGuys\AuthNet\DataTypes;
class Subscription extends BaseDataType
{
protected $propertyMap = [
'name',
'paymentSchedule',
'amount',
'trialAmount',
'payment',
'order',
'billTo',
'shipTo',
'profile',
];
public function addPaymentSchedule(PaymentSchedule $paymentSchedule)
$this->properties['paymentSchedule'] = $paymentSchedule->toArray();
}
public function addPayment(PaymentMethodInterface $payment)
$this->properties['payment'] = $payment->toArray();
public function addOrder(Order $order)
$this->addDataType($order);
public function addBillTo(BillTo $billTo)
$this->addDataType($billTo);
public function addShipTo(ShipTo $shipTo)
$this->addDataType($shipTo);
public function addProfile(CustomerProfileId $profile)
$this->properties['profile'] = $profile->toArray();