-
-
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
a27a935
commit db87d5f
Showing
31 changed files
with
203 additions
and
187 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
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
32 changes: 0 additions & 32 deletions
32
src/Entities/ContasReceber/Schema/GetBankSlips/GetBankSlipsAccountsResponse.php
This file was deleted.
Oops, something went wrong.
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
27 changes: 27 additions & 0 deletions
27
src/Entities/ContasReceber/Schema/GetBankSlips/GetBankSlipsResponseContas.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,27 @@ | ||
<?php | ||
|
||
namespace AleBatistella\BlingErpApi\Entities\ContasReceber\Schema\GetBankSlips; | ||
|
||
use AleBatistella\BlingErpApi\Entities\Shared\BaseResponseObject; | ||
use AleBatistella\BlingErpApi\Entities\ContasReceber\Enum\BankSlipSituacao; | ||
|
||
readonly final class GetBankSlipsResponseContas extends BaseResponseObject | ||
{ | ||
|
||
/** | ||
* Constrói o objeto. | ||
* | ||
* @param ?int $id | ||
* @param ?string $numeroExterno | ||
* @param ?string $vencimento | ||
* @param ?float $valor | ||
* @param ?BankSlipSituacao $situacao | ||
*/ | ||
public function __construct( | ||
public ?int $id, | ||
public ?string $numeroExterno, | ||
public ?string $vencimento, | ||
public ?float $valor, | ||
public ?BankSlipSituacao $situacao, | ||
) {} | ||
} |
17 changes: 17 additions & 0 deletions
17
src/Entities/ContasReceber/Schema/GetBankSlips/GetBankSlipsResponseNotaFiscal.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,17 @@ | ||
<?php | ||
|
||
namespace AleBatistella\BlingErpApi\Entities\ContasReceber\Schema\GetBankSlips; | ||
|
||
use AleBatistella\BlingErpApi\Entities\Shared\BaseResponseObject; | ||
|
||
readonly final class GetBankSlipsResponseNotaFiscal extends BaseResponseObject | ||
{ | ||
/** | ||
* Constrói o objeto. | ||
* | ||
* @param string $numero | ||
*/ | ||
public function __construct( | ||
public string $numero, | ||
) {} | ||
} |
17 changes: 17 additions & 0 deletions
17
src/Entities/ContasReceber/Schema/GetBankSlips/GetBankSlipsResponseVenda.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,17 @@ | ||
<?php | ||
|
||
namespace AleBatistella\BlingErpApi\Entities\ContasReceber\Schema\GetBankSlips; | ||
|
||
use AleBatistella\BlingErpApi\Entities\Shared\BaseResponseObject; | ||
|
||
readonly final class GetBankSlipsResponseVenda extends BaseResponseObject | ||
{ | ||
/** | ||
* Constrói o objeto. | ||
* | ||
* @param string $numero | ||
*/ | ||
public function __construct( | ||
public string $numero, | ||
) {} | ||
} |
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
16 changes: 11 additions & 5 deletions
16
src/Entities/ContasReceber/__tests__/cancel-bank-slips/request.json
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 |
---|---|---|
@@ -1,7 +1,13 @@ | ||
{ | ||
"type2FA": 1, | ||
"code2FA": "111111", | ||
"idOrigem": 16853468718, | ||
"idDuplicata": 16853468712, | ||
"reason": "motivo" | ||
"autenticacao": { | ||
"tipo": 1, | ||
"codigo": "111111" | ||
}, | ||
"origem": { | ||
"id": 5436875653 | ||
}, | ||
"conta": { | ||
"id": 6423836115 | ||
}, | ||
"motivo": "Cancelado por força maior" | ||
} |
34 changes: 17 additions & 17 deletions
34
src/Entities/ContasReceber/__tests__/get-bank-slips/response.json
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 |
---|---|---|
@@ -1,18 +1,18 @@ | ||
{ | ||
"numberSale": "149", | ||
"numberNF": "000001", | ||
"amountAccounts": 1, | ||
"amountValuesAccounts": 111.2, | ||
"haveAccountWithIntegration": true, | ||
"accounts": [ | ||
{ | ||
"id": 1328793273, | ||
"idExternal": "BWbXB", | ||
"dueDate": "2023-09-12", | ||
"value": 111.2, | ||
"situation": "aberto", | ||
"iconSituation": "aberto", | ||
"descriptionSituation": "Em aberto" | ||
} | ||
] | ||
} | ||
"venda": { | ||
"numero": "123" | ||
}, | ||
"notaFiscal": { | ||
"numero": "000001" | ||
}, | ||
"valorTotal": 111.2, | ||
"contas": [ | ||
{ | ||
"id": 1328793273, | ||
"numeroExterno": "BWbXB", | ||
"vencimento": "2023-09-12", | ||
"valor": 111.2, | ||
"situacao": 1 | ||
} | ||
] | ||
} |
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
11 changes: 5 additions & 6 deletions
11
...ulateItemTax/CalculateItemTaxResponse.php → ...es/Schema/ObtainTax/ObtainTaxResponse.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
Oops, something went wrong.