public function updateSubscription(
        $subscriptionId,
        $nextEvent = null,
        $subscriptionExternalId = null,
        $status = null,
        array $xAttributes = [],
        array $features = []
    ) {
        $requestData = new Update\RequestData($subscriptionId);

        $requestData->setSubscriptionId($subscriptionId);
        $requestData->setNextEvent($nextEvent);
        $requestData->setSubscriptionExternalId($subscriptionExternalId);
        $requestData->setStatus($status);
        $requestData->setXAttributes($xAttributes);
        $requestData->setFeatures($features);

        $request = new Update\Request($requestData);

        return $this->sendRequest($request, Update\ApiResponse::class);
    }
public function updateSubscription(
        $subscriptionId,
        $nextEvent = null,
        $subscriptionExternalId = null,
        $status = null,
        array $xAttributes = [],
        array $features = []
    ) {
        $requestData = new Update\RequestData($subscriptionId);

        $requestData->setSubscriptionId($subscriptionId);
        $requestData->setNextEvent($nextEvent);
        $requestData->setSubscriptionExternalId($subscriptionExternalId);
        $requestData->setStatus($status);
        $requestData->setXAttributes($xAttributes);
        $requestData->setFeatures($features);

        $request = new Update\Request($requestData);

        return $this->sendRequest($request, Update\ApiResponse::class);
    }
public function updateSubscription ( $ subscriptionId , $ nextEvent = null , $ subscriptionExternalId = null , $ status = null , array $ xAttributes = [ ] , array $ features = [ ] ) { $ requestData = new Update \ RequestData ( $ subscriptionId ) ; $ requestData -> setSubscriptionId ( $ subscriptionId ) ; $ requestData -> setNextEvent ( $ nextEvent ) ; $ requestData -> setSubscriptionExternalId ( $ subscriptionExternalId ) ; $ requestData -> setStatus ( $ status ) ; $ requestData -> setXAttributes ( $ xAttributes ) ; $ requestData -> setFeatures ( $ features ) ; $ request = new Update \ Request ( $ requestData ) ; return $ this -> sendRequest ( $ request , Update \ ApiResponse :: class ) ; }
Update a subscription.

@param integer $subscriptionId The subscription ID.
@param \DateTime $nextEvent The next event date and time.
@param string $subscriptionExternalId The external subscription ID.
@param string $status The subscription status.
@param array $xAttributes The subscription x attributes.
@param Feature[] $features The features.
@return Update\ApiResponse
Update a subscription .