src/Service/Subscription/SubscriptionService.php
public function cancelSubscription($subscriptionId, \DateTime $cancellationDate = null, $cancellationNote = null)
    {
        $requestData = new Cancel\RequestData($subscriptionId);
        $requestData->setCancellationDate($cancellationDate);
        $requestData->setCancellationNote($cancellationNote);

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

        return $this->sendRequest($request, Cancel\ApiResponse::class);
    }
public function cancelSubscription($subscriptionId, \DateTime $cancellationDate = null, $cancellationNote = null)
    {
        $requestData = new Cancel\RequestData($subscriptionId);
        $requestData->setCancellationDate($cancellationDate);
        $requestData->setCancellationNote($cancellationNote);

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

        return $this->sendRequest($request, Cancel\ApiResponse::class);
    }
public function cancelSubscription ( $ subscriptionId , \ DateTime $ cancellationDate = null , $ cancellationNote = null ) { $ requestData = new Cancel \ RequestData ( $ subscriptionId ) ; $ requestData -> setCancellationDate ( $ cancellationDate ) ; $ requestData -> setCancellationNote ( $ cancellationNote ) ; $ request = new Cancel \ Request ( $ requestData ) ; return $ this -> sendRequest ( $ request , Cancel \ ApiResponse :: class ) ; }
Cancel a subscription.

@param integer $subscriptionId The subscription ID.
@param \DateTime $cancellationDate The cancellation date and time.
@param string $cancellationNote The cancellation note.
@return Cancel\ApiResponse
Cancel a subscription .