Skip to content

Commit

Permalink
Merge pull request #5 from jbarreto2020/v5.x
Browse files Browse the repository at this point in the history
Corrige chave faltando e payment id no lugar errado
  • Loading branch information
alisonvalente authored May 31, 2022
2 parents d2af147 + 4869f3e commit 66ca88f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Entity/MovementManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,15 @@ public function fillReport(EntityInterface $report, OutputInterface $output = nu
$lines = $this->fetchCsvFileLines($report, self::SETTLEMENT_REPORT_ENDPOINT, $output);
$keys = $this->resolveKeysFromHeader(array_shift($lines), false);
$final_keys = $this->replaceKeysFromHeader($keys, [
'source_id' => 'id',
'source_id' => 'reference_id',
'payment_method_type' => 'financial_entity',
'transaction_type' => 'type',
'settlement_net_amount' => 'amount',
'settlement_currency' => 'currency_id',
'transaction_date' => 'date_created',
'settlement_date' => 'date_released',
'external_reference' => 'reference_id',
'external_reference' => 'id',
'record_type' => 'status',
]);

foreach($lines as $raw_line) {
Expand Down

0 comments on commit 66ca88f

Please sign in to comment.