mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 19:04:41 -04:00
qvalia
This commit is contained in:
parent
6f25be937d
commit
fb46889bb4
31
app/Services/EDocument/Gateway/Qvalia/Invoice.php
Normal file
31
app/Services/EDocument/Gateway/Qvalia/Invoice.php
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Invoice Ninja (https://invoiceninja.com).
|
||||||
|
*
|
||||||
|
* @link https://github.com/invoiceninja/invoiceninja source repository
|
||||||
|
*
|
||||||
|
* @copyright Copyright (c) 2024. Invoice Ninja LLC (https://invoiceninja.com)
|
||||||
|
*
|
||||||
|
* @license https://www.elastic.co/licensing/elastic-license
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace App\Services\EDocument\Gateway\Qvalia;
|
||||||
|
|
||||||
|
class Invoice
|
||||||
|
{
|
||||||
|
|
||||||
|
public function __construct(public Qvalia $qvalia)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
// Methods
|
||||||
|
public function status(string $legal_entity_id, string $integration_id)
|
||||||
|
{
|
||||||
|
$uri = "/account/{$legal_entity_id}/action/invoice/outgoing/status/{$integration_id}";
|
||||||
|
|
||||||
|
$r = $this->qvalia->httpClient($uri, (\App\Enum\HttpVerb::GET)->value, []);
|
||||||
|
|
||||||
|
return $r->object();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -49,7 +49,9 @@ class Qvalia
|
|||||||
|
|
||||||
private ?int $legal_entity_id;
|
private ?int $legal_entity_id;
|
||||||
|
|
||||||
public Partner $parter;
|
public Partner $partner;
|
||||||
|
|
||||||
|
public Invoice $invoice;
|
||||||
|
|
||||||
//integrationid - returned in headers
|
//integrationid - returned in headers
|
||||||
|
|
||||||
@ -57,6 +59,7 @@ class Qvalia
|
|||||||
{
|
{
|
||||||
$this->init();
|
$this->init();
|
||||||
$this->partner = new Partner($this);
|
$this->partner = new Partner($this);
|
||||||
|
$this->invoice = new Invoice($this);
|
||||||
}
|
}
|
||||||
|
|
||||||
private function init(): self
|
private function init(): self
|
||||||
|
Loading…
x
Reference in New Issue
Block a user