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

[GOLF-12281] Add webhook support to LightspeedRestaurantClient #40

Conversation

chen-lightspeed
Copy link
Contributor

Description:
This pull request introduces webhook support to the LightspeedRestaurantClient library. The updates include:

New Webhook Class:

Added a Webhook class to manage webhook-related operations, including:
list: Retrieve a list of all webhooks.
find: Get details for a specific webhook.
create: Create a new webhook.
renew: Renew an existing webhook.
Improved Response Handling:

Updated handle_list_response to handle API responses containing results or data correctly.
Error Handling Enhancements:

Added handling for unauthorized_error in the Request module to better manage API authentication issues.
Testing Improvements:

Added VCR cassettes for webhook-related tests (create, find, list, renew) to ensure consistency and reliability in test cases.
Why These Changes Are Necessary:
This addition enhances the functionality of LightspeedRestaurantClient by enabling developers to easily manage webhooks through the library, improving usability and API coverage.

Checklist:

Added/updated unit tests.

Additional Notes:
Please review the implementation and test cases for completeness and accuracy. Feedback is appreciated!

Copy link
Contributor

@lindseytruong lindseytruong left a comment

Choose a reason for hiding this comment

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

👍 LGTM

@chen-lightspeed chen-lightspeed force-pushed the feature/add-webhook-handling branch from a6f8c14 to 762a85f Compare December 6, 2024 04:00
@chen-lightspeed chen-lightspeed changed the base branch from master to GOLF-12242-external-payment-provider December 6, 2024 04:01
@lindseytruong lindseytruong merged commit a09ec65 into GOLF-12242-external-payment-provider Dec 9, 2024
5 checks passed
@lindseytruong lindseytruong deleted the feature/add-webhook-handling branch December 9, 2024 22:07
lindseytruong added a commit that referenced this pull request Dec 9, 2024
* [GOLF-12281] Add webhook support to LightspeedRestaurantClient (#40)

---------

Co-authored-by: chen-lightspeed <[email protected]>
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.

3 participants