Exemplo n.º 1
0
 public function testInstance()
 {
     $post = new Cancellations($this->transport);
     $this->assertEquals([], $post->getParamWhiteList());
     $this->assertEquals('POST', $post->getMethod());
     $this->assertEquals('reports/cancellations/', $post->getURI());
 }
Exemplo n.º 2
0
 /**
  * @return int
  */
 public function cancellations()
 {
     $endpoint = new Cancellations($this->getTransport());
     $resultRequest = $endpoint->performRequest();
     return Response::extractId($resultRequest, '/reports/%d/');
 }