/** * @return CouponResponse */ protected function createCoupon() { $duration = 'once'; $percentOff = 50; $request = $this->coupons->createCouponRequest($duration)->setPercentOff($percentOff); return $this->coupons->createCoupon($request); }
protected function tearDown() { $this->customers->deleteCustomer($this->customerId); $this->coupons->deleteCoupon($this->couponId); $this->plans->deletePlan($this->planId); parent::tearDown(); }