Skip to content

Commit

Permalink
Adımıza Düzenlene Faturaları Sorgulama
Browse files Browse the repository at this point in the history
Admıza Düzenlenen faturaları sorgulama
  • Loading branch information
ibrcan authored Nov 2, 2021
1 parent 2438b62 commit 3ff57c3
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/InvoiceManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,22 @@ public function getInvoicesFromAPI($startDate, $endDate)

return $body;
}
public function getInvoicesMeFromAPI($startDate, $endDate) //Adımıza Düzenlenen faturaları sorgulama
{
$parameters = [
"cmd" => "EARSIV_PORTAL_ADIMA_KESILEN_BELGELERI_GETIR",
"callid" => Uuid::uuid1()->toString(),
"pageName" => "RG_ALICI_TASLAKLAR",
"token" => $this->token,
"jp" => '{"baslangic":"' . $startDate . '","bitis":"' . $endDate . ' " }' ];
$body = $this->sendRequestAndGetBody(self::DISPATCH_PATH, $parameters);
$this->checkError($body);

// Array tipinden verilen tarih aralığında yer alan faturalar dönüyor
$this->invoices = $body['data'];

return $body;
}

/**
* Get main three menu from api
Expand Down

0 comments on commit 3ff57c3

Please sign in to comment.