Skip to content

Commit

Permalink
feat: atualizar para v305
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandreBellas committed Sep 8, 2024
1 parent 78d93f2 commit f413f78
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/Entities/ContasReceber/Enum/TipoFiltroData.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ enum TipoFiltroData: string
{
case DATA_DE_EMISSAO = 'E';
case DATA_DE_VENCIMENTO = 'V';
}
case DATA_DE_RECEBIMENTO = 'R';
}
4 changes: 3 additions & 1 deletion src/Entities/ContasReceber/Schema/Get/GetParams.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
* @param \DateTimeInterface|string|null $dataFinal
* @param ?int[] $idsCategorias
* @param ?int $idPortador
* @param ?int $idContato
* @param ?int $idVendedor
* @param ?int $idFormaPagamento
* @param ?int $boletoGerado
Expand All @@ -40,12 +41,13 @@ public function __construct(
\DateTimeInterface|string|null $dataFinal = null,
public ?array $idsCategorias = null,
public ?int $idPortador = null,
public ?int $idContato = null,
public ?int $idVendedor = null,
public ?int $idFormaPagamento = null,
public ?int $boletoGerado = null
) {
$this->situacoes = array_map(
fn (Situacao|int|null $situacao) => $situacao instanceof Situacao ? $situacao->value : $situacao,
fn(Situacao|int|null $situacao) => $situacao instanceof Situacao ? $situacao->value : $situacao,
$situacoes
);
$this->tipoFiltroData = $tipoFiltroData instanceof TipoFiltroData ? $tipoFiltroData->value : $tipoFiltroData;
Expand Down
14 changes: 13 additions & 1 deletion src/Entities/FormasDePagamentos/Enum/TipoPagamento.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,21 @@ enum TipoPagamento: int
case DUPLICATA_MERCANTIL = 14;
case BOLETO_BANCARIO = 15;
case DEPOSITO_BANCARIO = 16;
/**
* Pagamento Instantâneo (PIX) - Dinâmico
*/
case PIX = 17;
case TRANSFERENCIA_BANCARIA_CARTEIRA_DIGITAL = 18;
case PROGRAMA_DE_FIDELIDADE_CASHBACK_CREDITO_VIRTUAL = 19;
/**
* Pagamento Instantâneo (PIX) – Estático
*/
case PIX_ESTATICO = 20;
case CREDITO_EM_LOJA = 21;
/**
* Pagamento Eletrônico não Informado - falha de hardware do sistema emissor
*/
case PAGAMENTO_ELETRONICO_NAO_INFORMADO = 22;
case SEM_PAGAMENTO = 90;
case OUTROS = 99;
}
}

0 comments on commit f413f78

Please sign in to comment.