From 641082d257c9a43224a7387651f47d58d6bbf8a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Roggeri=20Campos?= Date: Tue, 4 Aug 2020 17:48:39 -0300 Subject: [PATCH] feat: Add debit transaction values MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Reynaldo Tadeu Lourenço Mansi --- pynubank/nubank.py | 2 ++ pynubank/queries/account_feed.gql | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/pynubank/nubank.py b/pynubank/nubank.py index c73ee2a..4a8dd4c 100644 --- a/pynubank/nubank.py +++ b/pynubank/nubank.py @@ -15,6 +15,8 @@ 'DebitPurchaseEvent', 'DebitPurchaseReversalEvent', 'BillPaymentEvent', + 'DebitWithdrawalFeeEvent', + 'DebitWithdrawalEvent' ) diff --git a/pynubank/queries/account_feed.gql b/pynubank/queries/account_feed.gql index 5236319..f2e589a 100644 --- a/pynubank/queries/account_feed.gql +++ b/pynubank/queries/account_feed.gql @@ -29,6 +29,12 @@ ... on BarcodePaymentEvent { amount } + ... on DebitWithdrawalFeeEvent { + amount + } + ... on DebitWithdrawalEvent { + amount + } } } }