Commit graph

10 commits

Author SHA1 Message Date
Brett Smith
f65e353cd9 typing: Add PEP 561 py.typed file. 2021-03-31 16:46:43 -04:00
Brett Smith
1b0740ad5d cliquery: Dump individual objects as an array.
This provides nicer output when querying multiple objects in one run.
2020-11-24 09:22:59 -05:00
Brett Smith
86b8eddc2e client: More specific return type for PayPalAPIClient.get_transaction(). 2020-11-24 09:22:40 -05:00
Brett Smith
efaeb53e91 client: iter_transactions() supports date ranges longer than a month.
This works by extracting the date-crawling code from get_transaction() to a
separate method. Now iter_transactions() will similarly make API requests
with different month-long date ranges until covers the entire date range the
user requested.
2020-11-19 15:38:13 -05:00
Brett Smith
e7342c582e client: Remove unused import. 2020-11-19 15:36:17 -05:00
Brett Smith
e51be066d0 doc: Add docstrings throughout. 2020-11-19 12:00:14 -05:00
Brett Smith
0bd6353105 transaction: Unnamed cart items fall back to the transaction subject. 2020-11-18 16:56:15 -05:00
Brett Smith
23608de591 transaction: Make fee_amount() Optional.
Outgoing payments don't have a fee (PayPal takes their fee out on the
receiver's end).
2020-11-18 16:28:56 -05:00
Brett Smith
63497d18d4 transaction: KeyError messages include transaction ID when available.
This streamlines the debugging process for transactions that don't
follow the expected format.
2020-11-18 16:27:47 -05:00
Brett Smith
2ff353bebb Initial commit.
This is enough code to start using the tool to debug itself,
so it's time to start committing individual bugfixes.
2020-11-18 15:57:38 -05:00