File tree Expand file tree Collapse file tree 6 files changed +23
-2
lines changed Expand file tree Collapse file tree 6 files changed +23
-2
lines changed Original file line number Diff line number Diff line change 2
2
"name" : " alebatistella/bling-erp-api" ,
3
3
"description" : " Pacote de integração com a API do Bling ERP" ,
4
4
"type" : " library" ,
5
- "version" : " 1.14.0 " ,
5
+ "version" : " 1.14.1 " ,
6
6
"license" : " MIT" ,
7
7
"autoload" : {
8
8
"psr-4" : {
Original file line number Diff line number Diff line change 4
4
5
5
use AleBatistella \BlingErpApi \Entities \Borderos \Borderos ;
6
6
use AleBatistella \BlingErpApi \Entities \CamposCustomizados \CamposCustomizados ;
7
+ use AleBatistella \BlingErpApi \Entities \CanaisDeVenda \CanaisDeVenda ;
7
8
use AleBatistella \BlingErpApi \Entities \CategoriasLojas \CategoriasLojas ;
8
9
use AleBatistella \BlingErpApi \Entities \CategoriasProdutos \CategoriasProdutos ;
9
10
use AleBatistella \BlingErpApi \Entities \CategoriasReceitasDespesas \CategoriasReceitasDespesas ;
50
51
*
51
52
* @property Borderos $borderos
52
53
* @property CamposCustomizados $camposCustomizados
54
+ * @property CanaisDeVenda $canaisDeVenda
53
55
* @property CategoriasLojas $categoriasLojas
54
56
* @property CategoriasProdutos $categoriasProdutos
55
57
* @property CategoriasReceitasDespesas $categoriasReceitasDespesas
@@ -130,6 +132,7 @@ public function __get(string $name)
130
132
return match ($ name ) {
131
133
'borderos ' => $ this ->getModule (Borderos::class),
132
134
'camposCustomizados ' => $ this ->getModule (CamposCustomizados::class),
135
+ 'canaisDeVenda ' => $ this ->getModule (CanaisDeVenda::class),
133
136
'categoriasLojas ' => $ this ->getModule (CategoriasLojas::class),
134
137
'categoriasProdutos ' => $ this ->getModule (CategoriasProdutos::class),
135
138
'categoriasReceitasDespesas ' => $ this ->getModule (CategoriasReceitasDespesas::class),
Original file line number Diff line number Diff line change 5
5
use AleBatistella \BlingErpApi \Bling ;
6
6
use AleBatistella \BlingErpApi \Entities \Borderos \Borderos ;
7
7
use AleBatistella \BlingErpApi \Entities \CamposCustomizados \CamposCustomizados ;
8
+ use AleBatistella \BlingErpApi \Entities \CanaisDeVenda \CanaisDeVenda ;
8
9
use AleBatistella \BlingErpApi \Entities \CategoriasLojas \CategoriasLojas ;
9
10
use AleBatistella \BlingErpApi \Entities \CategoriasProdutos \CategoriasProdutos ;
10
11
use AleBatistella \BlingErpApi \Entities \CategoriasReceitasDespesas \CategoriasReceitasDespesas ;
@@ -115,6 +116,20 @@ public function testShouldGetCamposCustomizadosCorrectly(): void
115
116
$ this ->assertInstanceOf ($ expected , $ actual );
116
117
}
117
118
119
+ /**
120
+ * Testa obter a entidade Canais de Venda.
121
+ *
122
+ * @return void
123
+ */
124
+ public function testShouldGetCanaisDeVendaCorrectly (): void
125
+ {
126
+ $ expected = CanaisDeVenda::class;
127
+
128
+ $ actual = $ this ->getInstance ()->canaisDeVenda ;
129
+
130
+ $ this ->assertInstanceOf ($ expected , $ actual );
131
+ }
132
+
118
133
/**
119
134
* Testa obter a entidade Categorias - Lojas.
120
135
*
@@ -610,7 +625,7 @@ public function testShouldGetUsuariosCorrectly(): void
610
625
*
611
626
* @return void
612
627
*/
613
- public function VendedoresCorrectly (): void
628
+ public function testShouldGetVendedoresCorrectly (): void
614
629
{
615
630
$ expected = Vendedores::class;
616
631
Original file line number Diff line number Diff line change @@ -10,4 +10,5 @@ enum LancamentoEstoque: string
10
10
case PRODUTO_E_COMPONENTE = 'A ' ;
11
11
case COMPONENTE = 'M ' ;
12
12
case PRODUTO = 'P ' ;
13
+ case NAO_DEFINIDO = "" ;
13
14
}
Original file line number Diff line number Diff line change @@ -9,4 +9,5 @@ enum Situacao: string
9
9
{
10
10
case ATIVO = 'A ' ;
11
11
case INATIVO = 'I ' ;
12
+ case EXCLUIDO = 'E ' ;
12
13
}
Original file line number Diff line number Diff line change @@ -9,4 +9,5 @@ enum TipoEstoque: string
9
9
{
10
10
case FISICO = 'F ' ;
11
11
case VIRTUAL = 'V ' ;
12
+ case NAO_DEFINIDO = "" ;
12
13
}
You can’t perform that action at this time.
0 commit comments