-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f3bf0a5
commit a27a935
Showing
8 changed files
with
149 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
src/Entities/Nfces/Schema/Find/FindResponseDataTransporte.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?php | ||
|
||
namespace AleBatistella\BlingErpApi\Entities\Nfces\Schema\Find; | ||
|
||
use AleBatistella\BlingErpApi\Entities\Shared\BaseResponseObject; | ||
use AleBatistella\BlingErpApi\Entities\Nfes\Enum\FretePorConta; | ||
use AleBatistella\BlingErpApi\Entities\Shared\DTO\Schema\Id; | ||
|
||
readonly final class FindResponseDataTransporte extends BaseResponseObject | ||
{ | ||
/** | ||
* Constrói o objeto. | ||
* | ||
* @param ?FretePorConta $fretePorConta | ||
* @param ?FindResponseDataTransporteTransportador $transportador | ||
* @param ?Id[] $volumes | ||
* @param ?FindResponseDataTransporteEtiqueta $etiqueta | ||
*/ | ||
public function __construct( | ||
public ?FretePorConta $fretePorConta, | ||
public ?FindResponseDataTransporteTransportador $transportador, | ||
public ?array $volumes, | ||
public ?FindResponseDataTransporteEtiqueta $etiqueta, | ||
) {} | ||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
protected static function fromRules(): array | ||
{ | ||
return [ | ||
'volumes' => Id::class | ||
]; | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
src/Entities/Nfces/Schema/Find/FindResponseDataTransporteEtiqueta.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php | ||
|
||
namespace AleBatistella\BlingErpApi\Entities\Nfces\Schema\Find; | ||
|
||
use AleBatistella\BlingErpApi\Entities\Shared\BaseResponseObject; | ||
|
||
readonly final class FindResponseDataTransporteEtiqueta extends BaseResponseObject | ||
{ | ||
/** | ||
* Constrói o objeto. | ||
* | ||
* @param ?string $nome | ||
* @param ?string $endereco | ||
* @param ?string $numero | ||
* @param ?string $complemento | ||
* @param ?string $municipio | ||
* @param ?string $uf | ||
* @param ?string $cep | ||
* @param ?string $bairro | ||
*/ | ||
public function __construct( | ||
public ?string $nome, | ||
public ?string $endereco, | ||
public ?string $numero, | ||
public ?string $complemento, | ||
public ?string $municipio, | ||
public ?string $uf, | ||
public ?string $cep, | ||
public ?string $bairro, | ||
) {} | ||
} |
19 changes: 19 additions & 0 deletions
19
src/Entities/Nfces/Schema/Find/FindResponseDataTransporteTransportador.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
namespace AleBatistella\BlingErpApi\Entities\Nfces\Schema\Find; | ||
|
||
use AleBatistella\BlingErpApi\Entities\Shared\BaseResponseObject; | ||
|
||
readonly final class FindResponseDataTransporteTransportador extends BaseResponseObject | ||
{ | ||
/** | ||
* Constrói o objeto. | ||
* | ||
* @param string $nome | ||
* @param ?string $numeroDocumento | ||
*/ | ||
public function __construct( | ||
public string $nome, | ||
public ?string $numeroDocumento, | ||
) {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters