public function addCoupon(string $subscriptionId, string $couponId)
    {
        // Log Debug
        $this->flow->getLogger()->debug("Adding Coupon $couponId to $subscriptionId");

        return $this->make(
            $this->flow->send(
                'post',
                $this->endpoint . '/addCoupon',
                [
                    'subscriptionId' => $subscriptionId,
                    'couponId' => $couponId,
                ]
            )
        );
    }
public function addCoupon(string $subscriptionId, string $couponId)
    {
        // Log Debug
        $this->flow->getLogger()->debug("Adding Coupon $couponId to $subscriptionId");

        return $this->make(
            $this->flow->send(
                'post',
                $this->endpoint . '/addCoupon',
                [
                    'subscriptionId' => $subscriptionId,
                    'couponId' => $couponId,
                ]
            )
        );
    }
public function addCoupon ( string $ subscriptionId , string $ couponId ) { // Log Debug $ this -> flow -> getLogger ( ) -> debug ( "Adding Coupon $couponId to $subscriptionId" ) ; return $ this -> make ( $ this -> flow -> send ( 'post' , $ this -> endpoint . '/addCoupon' , [ 'subscriptionId' => $ subscriptionId , 'couponId' => $ couponId , ] ) ) ; }
Adds a Coupon to a Subscription

@param string $subscriptionId
@param string $couponId
@return \DarkGhostHunter\FlowSdk\Resources\BasicResource & SubscriptionResource
@throws \Exception
Adds a Coupon to a Subscription