Skip to content
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

Updates to ActionKit, S3, and NGPVan #775

Merged
merged 64 commits into from
Dec 7, 2022
Merged

Conversation

crayolakat
Copy link
Collaborator

  1. Add cancel_orderrecurring and update_paymenttoken functions to ActionKit connector
  2. Add use_env_token parameter to S3 initializer
  3. Add ContactNotes class to NGPVan

crayolakat and others added 30 commits March 22, 2022 14:34
Update setup_google_application_credentials to support dict parameter
…egation

The oauth2client library is deprecated, and gspread will drop most information from the oauth2client authorization.  Switch to the actively maintained google-auth library and add an argument for a delegated account name.
Update authorization library for Google Sheets to support account del…
Update authorization library for Google Sheets to support account delegation
Don't auto-grab session token if it's not passed in
The new method paginated_get expands get_events to work for any type of object, and get_events has been updated to refer to paginated_get.
In addition, a new method, paginated_get_custom_limit, allows for truncating the data based on the value of a field, rather than a fixed set of results.  For example, this would allow you to return all users created within the last day. (Some fields which permit ordering may not permit filtering, which is why this can't be accomplished with a simple filter.)

Tests have also been written for the new methods.

Names of methods and arguments are not final and could use some work; suggestions welcome.
Modeled on transaction search.  Test data obtained by editing the subscription gateway to print the search response (https://github.com/braintree/braintree_python/blob/fc98c738f9e74736a7d1e82cfb4e37f6e493c3c4/braintree/subscription_gateway.py#L59).
Add subscription search to Braintree
Add new general object search methods to ActionKit
S3 gets initialized from inside the Redshift code, so add the option to the Redshift setup as well.
Fix import and linting issues
Add use_env_token option to Redshift
@crayolakat crayolakat mentioned this pull request Nov 22, 2022
@crayolakat crayolakat mentioned this pull request Nov 22, 2022
Copy link
Collaborator

@shaunagm shaunagm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the delay in reviewing! Overall this looks great—my only question is around test coverage. Only one of the three new ActionKit methods has a test, and the new NGPVAN class has two methods, neither of which have tests. Is there a reason not to include tests for these things?

@crayolakat
Copy link
Collaborator Author

Hey @shaunagm , no reason not to have tests. I can add them

@shaunagm
Copy link
Collaborator

shaunagm commented Dec 1, 2022

Thank you!

@crayolakat
Copy link
Collaborator Author

Hey @shaunagm , I added the tests

@shaunagm
Copy link
Collaborator

shaunagm commented Dec 7, 2022

Awesome, thank you @crayolakat

@shaunagm shaunagm merged commit f87d901 into move-coop:main Dec 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants