File tree Expand file tree Collapse file tree 8 files changed +149
-8
lines changed Expand file tree Collapse file tree 8 files changed +149
-8
lines changed Original file line number Diff line number Diff line change 6
6
Pacote de integração com a [ API v3 do ERP Bling] ( https://developer.bling.com.br )
7
7
para PHP 8.2+. O mais completo existente.
8
8
9
- Atualizado com a versão ` v305 ` da API ([ veja o registro de alterações] ( https://developer.bling.com.br/changelogs#2024-07-24 ) ).
9
+ Atualizado com a versão ` v306 ` da API ([ veja o registro de alterações] ( https://developer.bling.com.br/changelogs#2024-08-16 ) ).
10
10
11
11
## Instalação
12
12
Original file line number Diff line number Diff line change 21
21
* @param FindResponseDataContato $contato
22
22
* @param ?Id $naturezaOperacao
23
23
* @param ?Id $loja
24
- * @param string $serie
24
+ * @param ?int $serie
25
+ * @param ?float $valorNota
26
+ * @param ?string $chaveAcesso
27
+ * @param ?string $xml
28
+ * @param ?string $linkDanfe
29
+ * @param ?string $linkPDF
30
+ * @param ?string $numeroPedidoLoja
31
+ * @param ?FindResponseDataTransporte $transporte
32
+ * @param ?Id $vendedor
25
33
*/
26
34
public function __construct (
27
35
public ?int $ id ,
@@ -33,7 +41,14 @@ public function __construct(
33
41
public FindResponseDataContato $ contato ,
34
42
public ?Id $ naturezaOperacao ,
35
43
public ?Id $ loja ,
36
- public string $ serie ,
37
- ) {
38
- }
44
+ public ?int $ serie ,
45
+ public ?float $ valorNota ,
46
+ public ?string $ chaveAcesso ,
47
+ public ?string $ xml ,
48
+ public ?string $ linkDanfe ,
49
+ public ?string $ linkPDF ,
50
+ public ?string $ numeroPedidoLoja ,
51
+ public ?FindResponseDataTransporte $ transporte ,
52
+ public ?Id $ vendedor ,
53
+ ) {}
39
54
}
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace AleBatistella \BlingErpApi \Entities \Nfces \Schema \Find ;
4
+
5
+ use AleBatistella \BlingErpApi \Entities \Shared \BaseResponseObject ;
6
+ use AleBatistella \BlingErpApi \Entities \Nfes \Enum \FretePorConta ;
7
+ use AleBatistella \BlingErpApi \Entities \Shared \DTO \Schema \Id ;
8
+
9
+ readonly final class FindResponseDataTransporte extends BaseResponseObject
10
+ {
11
+ /**
12
+ * Constrói o objeto.
13
+ *
14
+ * @param ?FretePorConta $fretePorConta
15
+ * @param ?FindResponseDataTransporteTransportador $transportador
16
+ * @param ?Id[] $volumes
17
+ * @param ?FindResponseDataTransporteEtiqueta $etiqueta
18
+ */
19
+ public function __construct (
20
+ public ?FretePorConta $ fretePorConta ,
21
+ public ?FindResponseDataTransporteTransportador $ transportador ,
22
+ public ?array $ volumes ,
23
+ public ?FindResponseDataTransporteEtiqueta $ etiqueta ,
24
+ ) {}
25
+
26
+ /**
27
+ * @inheritDoc
28
+ */
29
+ protected static function fromRules (): array
30
+ {
31
+ return [
32
+ 'volumes ' => Id::class
33
+ ];
34
+ }
35
+ }
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace AleBatistella \BlingErpApi \Entities \Nfces \Schema \Find ;
4
+
5
+ use AleBatistella \BlingErpApi \Entities \Shared \BaseResponseObject ;
6
+
7
+ readonly final class FindResponseDataTransporteEtiqueta extends BaseResponseObject
8
+ {
9
+ /**
10
+ * Constrói o objeto.
11
+ *
12
+ * @param ?string $nome
13
+ * @param ?string $endereco
14
+ * @param ?string $numero
15
+ * @param ?string $complemento
16
+ * @param ?string $municipio
17
+ * @param ?string $uf
18
+ * @param ?string $cep
19
+ * @param ?string $bairro
20
+ */
21
+ public function __construct (
22
+ public ?string $ nome ,
23
+ public ?string $ endereco ,
24
+ public ?string $ numero ,
25
+ public ?string $ complemento ,
26
+ public ?string $ municipio ,
27
+ public ?string $ uf ,
28
+ public ?string $ cep ,
29
+ public ?string $ bairro ,
30
+ ) {}
31
+ }
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace AleBatistella \BlingErpApi \Entities \Nfces \Schema \Find ;
4
+
5
+ use AleBatistella \BlingErpApi \Entities \Shared \BaseResponseObject ;
6
+
7
+ readonly final class FindResponseDataTransporteTransportador extends BaseResponseObject
8
+ {
9
+ /**
10
+ * Constrói o objeto.
11
+ *
12
+ * @param string $nome
13
+ * @param ?string $numeroDocumento
14
+ */
15
+ public function __construct (
16
+ public string $ nome ,
17
+ public ?string $ numeroDocumento ,
18
+ ) {}
19
+ }
Original file line number Diff line number Diff line change 31
31
"loja" : {
32
32
"id" : 12345678
33
33
},
34
- "serie" : " 1"
34
+ "serie" : 1 ,
35
+ "valorNota" : 10.3 ,
36
+ "chaveAcesso" : " string" ,
37
+ "xml" : " string" ,
38
+ "linkDanfe" : " string" ,
39
+ "linkPDF" : " string" ,
40
+ "numeroPedidoLoja" : " string" ,
41
+ "transporte" : {
42
+ "fretePorConta" : 0 ,
43
+ "transportador" : {
44
+ "nome" : " Transportador" ,
45
+ "numeroDocumento" : " 30188025000121"
46
+ },
47
+ "volumes" : [
48
+ {
49
+ "id" : 12345678
50
+ }
51
+ ],
52
+ "etiqueta" : {
53
+ "nome" : " Transportador" ,
54
+ "endereco" : " Olavo Bilac" ,
55
+ "numero" : " 914" ,
56
+ "complemento" : " Sala 101" ,
57
+ "municipio" : " Bento Gonçalves" ,
58
+ "uf" : " RS" ,
59
+ "cep" : " 95702-000" ,
60
+ "bairro" : " Imigrante"
61
+ }
62
+ },
63
+ "vendedor" : {
64
+ "id" : 12345679
65
+ }
35
66
}
36
67
}
Original file line number Diff line number Diff line change 22
22
* @param ?Id $naturezaOperacao
23
23
* @param ?Id $loja
24
24
* @param ?int $serie
25
+ * @param ?float $valorNota
25
26
* @param ?string $chaveAcesso
26
27
* @param ?string $xml
27
28
* @param ?string $linkDanfe
28
29
* @param ?string $linkPDF
30
+ * @param ?string $numeroPedidoLoja
29
31
* @param ?FindResponseDataTransporte $transporte
32
+ * @param ?Id $vendedor
30
33
*/
31
34
public function __construct (
32
35
public ?int $ id ,
@@ -39,11 +42,13 @@ public function __construct(
39
42
public ?Id $ naturezaOperacao ,
40
43
public ?Id $ loja ,
41
44
public ?int $ serie ,
45
+ public ?float $ valorNota ,
42
46
public ?string $ chaveAcesso ,
43
47
public ?string $ xml ,
44
48
public ?string $ linkDanfe ,
45
49
public ?string $ linkPDF ,
50
+ public ?string $ numeroPedidoLoja ,
46
51
public ?FindResponseDataTransporte $ transporte ,
47
- ) {
48
- }
52
+ public ? Id $ vendedor ,
53
+ ) { }
49
54
}
Original file line number Diff line number Diff line change 32
32
"id" : 12345678
33
33
},
34
34
"serie" : 1 ,
35
+ "valorNota" : 10.3 ,
35
36
"chaveAcesso" : " string" ,
36
37
"xml" : " string" ,
37
38
"linkDanfe" : " string" ,
38
39
"linkPDF" : " string" ,
40
+ "numeroPedidoLoja" : " string" ,
39
41
"transporte" : {
40
42
"fretePorConta" : 0 ,
41
43
"transportador" : {
57
59
"cep" : " 95702-000" ,
58
60
"bairro" : " Imigrante"
59
61
}
62
+ },
63
+ "vendedor" : {
64
+ "id" : 12345679
60
65
}
61
66
}
62
67
}
You can’t perform that action at this time.
0 commit comments