Skip to content

Commit

Permalink
Updated date types to string (for consistency)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kubinyete committed Jan 3, 2024
1 parent 624184a commit 1892d2a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ foreach ($paginator as $item) {
| plano | string | `TransactionalMovement::getPlano`
| parcela | string | `TransactionalMovement::getParcela`
| quantidade_parcela | string | `TransactionalMovement::getQuantidadeParcela`
| data_prevista_pagamento | date | `TransactionalMovement::getDataPrevistaPagamento`
| data_prevista_pagamento | string | `TransactionalMovement::getDataPrevistaPagamento`
| taxa_parcela_comprador | float | `TransactionalMovement::getTaxaParcelaComprador`
| tarifa_boleto_compra | float | `TransactionalMovement::getTarifaBoletoCompra`
| valor_original_transacao | float | `TransactionalMovement::getValorOriginalTransacao`
Expand Down
7 changes: 7 additions & 0 deletions src/Model/Movement/FinantialMovement.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Kubinyete\Edi\PagSeguro\Model\Movement;

use DateTimeInterface;
use Kubinyete\Edi\PagSeguro\Model\Model;
use Kubinyete\Edi\PagSeguro\Model\Schema\SchemaBuilder;

Expand All @@ -26,6 +27,7 @@ protected function schema(SchemaBuilder $schema)
$schema->string("plano"); //: "1 ",
$schema->string("parcela"); //: "1",
$schema->string("quantidade_parcela"); //: "0",
$schema->string("data_movimentacao"); //: "2023-11-15",
$schema->float("taxa_parcela_comprador")->nullable(); //: null,
$schema->float("tarifa_boleto_compra")->nullable(); //: null,
$schema->float("valor_original_transacao")->nullable(); //: 663.66,
Expand Down Expand Up @@ -259,6 +261,11 @@ public function getTxId(): string

//

public function getDataMovimentacao(): string
{
return $this->get('data_movimentacao');
}

public function getTaxaAntecipacao(): float
{
return $this->get('taxa_antecipacao');
Expand Down
2 changes: 1 addition & 1 deletion src/Model/Movement/TransactionalMovement.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ protected function schema(SchemaBuilder $schema)
$schema->string("plano"); //: "1 ",
$schema->string("parcela"); //: "1",
$schema->string("quantidade_parcela"); //: "0",
$schema->date("data_prevista_pagamento", format: 'Y-m-d'); //: "2023-11-15",
$schema->string("data_prevista_pagamento"); //: "2023-11-15",
$schema->float("taxa_parcela_comprador")->nullable(); //: null,
$schema->float("tarifa_boleto_compra")->nullable(); //: null,
$schema->float("valor_original_transacao")->nullable(); //: 663.66,
Expand Down

0 comments on commit 1892d2a

Please sign in to comment.