original_string: 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);
      }
code: 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);
      }
code_tokens: 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 ) ; }
docstring: 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
docstring_tokens: Cancel a subscription .