-
Notifications
You must be signed in to change notification settings - Fork 1
Add transactions resource #35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking great! a few comments.
pybutton/resources/transactions.py
Outdated
| Args: | ||
| account_id (str) optional: A Button account id ('acc-XXX') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copypasta
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch! Done.
| print(response) | ||
| # <class pybutton.Response id: customer-1234, ...> | ||
| Transactions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add description for how this differs from accounts#transactions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added, not sure if I used the right convention in the description, though.
| * ``cursor`` (string): An API cursor to fetch a specific set of results. | ||
| * ``start`` (ISO-8601 datetime string): Fetch transactions after this time. | ||
| * ``end`` (ISO-8601 datetime string): Fetch transactions before this time. | ||
| * ``time_field`` (string): Which time field ``start`` and ``end`` filter on. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
default?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added.
README.rst
Outdated
| client = Client('sk-XXX') | ||
| response = client.accounts.transactions( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
client.transactions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed! Thanks!
|
Did you want to add |
|
|
e2fbedb to
eddb7a7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! I think you have one linting failure that is a consequence of a branch I merged underneath you--let's make sure the build passes and merge up!
Seems we don't have some python version binaries we need? About half the versions are passing and about half can't be found.