From 1c713fac198860569ac3fdd6713dcc7b33d67c57 Mon Sep 17 00:00:00 2001 From: Herculino Trotta Date: Thu, 23 Jan 2025 21:07:48 -0300 Subject: [PATCH] feat(import): add Nuconta preset --- app/import_presets/nuconta/config.yml | 54 ++++++++++++++++++++++++ app/import_presets/nuconta/manifest.json | 7 +++ 2 files changed, 61 insertions(+) create mode 100644 app/import_presets/nuconta/config.yml create mode 100644 app/import_presets/nuconta/manifest.json diff --git a/app/import_presets/nuconta/config.yml b/app/import_presets/nuconta/config.yml new file mode 100644 index 0000000..20fbdc3 --- /dev/null +++ b/app/import_presets/nuconta/config.yml @@ -0,0 +1,54 @@ +settings: + file_type: csv + delimiter: "," + encoding: utf-8 + skip_lines: 0 + importing: transactions + trigger_transaction_rules: true + skip_errors: true + +mapping: + account: + target: account + default: + type: name + + date: + target: date + source: Data + format: "%d/%m/%Y" + + amount: + target: amount + source: Valor + + description: + target: description + source: Descrição + transformations: + - type: split + separator: " - " + index: 0 + + type: + source: "Valor" + target: "type" + detection_method: sign + + notes: + target: notes + source: Notes + + internal_id: + target: internal_id + source: Identificador + + is_paid: + target: is_paid + detection_method: always_paid + +deduplicate: + - type: compare + fields: + - internal_id + match_type: lax diff --git a/app/import_presets/nuconta/manifest.json b/app/import_presets/nuconta/manifest.json new file mode 100644 index 0000000..a9d025f --- /dev/null +++ b/app/import_presets/nuconta/manifest.json @@ -0,0 +1,7 @@ +{ + "author": "eitchtee", + "description": "Importe suas transações da conta corrente do Nubank", + "schema_version": 1, + "name": "Nubank - Conta Corrente", + "message": "Mude '' para o nome da sua Nuconta dentro do WYGIWYH" +}