Skip to content

Commit

Permalink
Corrige chave faltando e payment id no lugar errado
Browse files Browse the repository at this point in the history
  • Loading branch information
jbarreto2020 committed May 31, 2022
1 parent d2af147 commit 4869f3e
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 4869f3e

Please sign in to comment.