Skip to content

feat: Add comprehensive webhook subscription support#102

Merged
vredeling merged 2 commits into
basvandorst:developfrom
lajennylove:develop
Sep 21, 2025
Merged

feat: Add comprehensive webhook subscription support#102
vredeling merged 2 commits into
basvandorst:developfrom
lajennylove:develop

Conversation

@lajennylove
Copy link
Copy Markdown
Contributor

  • Add createWebhookSubscription, listWebhookSubscriptions, deleteWebhookSubscription methods to Client
  • Implement webhook subscription methods in REST service and ServiceInterface
  • Add Webhook helper class with event processing and validation utilities
  • Include comprehensive test coverage for all webhook functionality
  • Add example files demonstrating webhook usage
  • Update README with webhook integration documentation

Author: Jennifer Martinez
Closes: #99 (webhook functionality request)

- Add createWebhookSubscription, listWebhookSubscriptions, deleteWebhookSubscription methods to Client
- Implement webhook subscription methods in REST service and ServiceInterface
- Add Webhook helper class with event processing and validation utilities
- Include comprehensive test coverage for all webhook functionality
- Add example files demonstrating webhook usage
- Update README with webhook integration documentation

Author: Jennifer Martinez
Closes: basvandorst#99 (webhook functionality request)
- Fix PHP 8.4 nullable parameter deprecation warnings by adding explicit ? type hints
- Fix return type errors in Client methods by updating test expectations
- Fix webhook DELETE operation to return proper array structure for 204 responses
- Update all nullable parameters across Client, ServiceInterface, REST, and Stub classes
- Ensure all 204 tests pass with proper array assertions

All 204 tests now pass without deprecation warnings or errors.
@vredeling vredeling self-assigned this Sep 21, 2025
@vredeling
Copy link
Copy Markdown
Collaborator

Hi Jennifer, thanks for your contribution. Code looks good. I didn't extensively test this, but since it is completely new functionality and nobody is currently using it I'm inclined to merge. Thanks also for the php compatibility fixes. In the future I'd rather receive corrections like these in a separate PR, as it's quite a big review already.

@vredeling vredeling merged commit 3be914e into basvandorst:develop Sep 21, 2025
2 of 8 checks passed
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.

Library fork?

2 participants