Skip to content

Commit

Permalink
Added ability to post rejection message to RSO
Browse files Browse the repository at this point in the history
Allows QT to return a message along with the rejection status to enable user to know why was the invoice rejected
  • Loading branch information
xersion22 authored Jul 13, 2023
1 parent 59334d4 commit 30c9fdb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Qbil/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ public function getProcessedInvoice(Document $document)
*
* @throws \GuzzleHttp\Exception\GuzzleException
*/
public function setDocumentStatus(Document $document, $status)
public function setDocumentStatus(Document $document, $status, $message = null)
{
return json_decode(
$this
Expand All @@ -197,7 +197,7 @@ public function setDocumentStatus(Document $document, $status)
[
'json' => [
'Status' => $status,
'Message' => null,
'Message' => $message,
'CodingLines' => null,
'CorrelationData' => null,
'ExternalId' => null,
Expand Down

0 comments on commit 30c9fdb

Please sign in to comment.