for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Ipag\Sdk\Endpoint;
use Ipag\Sdk\Core\Endpoint;
use Ipag\Sdk\Http\Response;
use Ipag\Sdk\Model\PaymentLink;
/**
* PaymentLinksEndpoint class
*
* Classe responsável pelo controle dos endpoints do recurso Payment Links.
*/
class PaymentLinksEndpoint extends Endpoint
{
protected string $location = '/service/resources/payment_links';
* Endpoint para criar um recurso `Payment Link`
* @param PaymentLink $paymentLink
* @return Response
public function create(PaymentLink $paymentLink): Response
return $this->_POST($paymentLink->jsonSerialize());
}
* Endpoint para obter um recurso `Payment Link`
* @param integer $id
* @codeCoverageIgnore
public function getById(int $id): Response
return $this->_GET(['id' => $id]);
* Endpoint para obter um recurso `Payment Link` pelo Código Externo
* @param integer $externalCode
public function getByExternalCode(int $externalCode): Response
return $this->_GET(['external_code' => $externalCode]);