diff --git a/app/Services/EDocument/Gateway/Storecove/Storecove.php b/app/Services/EDocument/Gateway/Storecove/Storecove.php index 7ce2fbd07d3f..c3a424799e7e 100644 --- a/app/Services/EDocument/Gateway/Storecove/Storecove.php +++ b/app/Services/EDocument/Gateway/Storecove/Storecove.php @@ -103,14 +103,17 @@ class Storecove { $payload = [ "legalEntityId"=> 290868, "idempotencyGuid"=> \Illuminate\Support\Str::uuid(), + "routing" => [ + "eIdentifiers" => [], + "emails" => ["david@invoiceninja.com"] + ], "document"=> [ 'documentType' => 'invoice', - "invoice" => [], - ], - "rawDocumentData"=> [ - "document" => base64_encode($document), - "parse" => true, - "parseStrategy"=> "ubl", + "rawDocumentData"=> [ + "document" => base64_encode($document), + "parse" => true, + "parseStrategy"=> "ubl", + ], ], ]; diff --git a/tests/Integration/Einvoice/Storecove/StorecoveTest.php b/tests/Integration/Einvoice/Storecove/StorecoveTest.php index df05079470fd..2bd38ec13141 100644 --- a/tests/Integration/Einvoice/Storecove/StorecoveTest.php +++ b/tests/Integration/Einvoice/Storecove/StorecoveTest.php @@ -103,7 +103,12 @@ class StorecoveTest extends TestCase public function testSendDocument() { - $x = ' + $x = ' + + 0061 2024-07-15 380 @@ -221,7 +226,6 @@ class StorecoveTest extends TestCase '; - $sc = new \App\Services\EDocument\Gateway\Storecove\Storecove(); $sc->sendDocument($x);