pagarmeRequest( method: 'POST', path: '/transfers', payload: new PagarmeTransferRequestData( amount: $amountInCents, recipientId: $recipientId, ), idempotencyKey: $idempotencyKey, errorMessage: 'Erro ao criar transferencia (saque) no Pagar.me.', ); } public function getTransfer(string $transferId): array { return $this->pagarmeRequest( method: 'GET', path: "/transfers/{$transferId}", payload: [], idempotencyKey: "get-transfer-{$transferId}", errorMessage: 'Erro ao consultar transferencia no Pagar.me.', ); } }