This PR changes the return type for all() function in the webhook service from WebhookCollection to a list of webhooks. We made this change so it matches other type-strict client libraries (C# and Go) since this list is unpaginated.
Removed CarbonOffset model, this was missed from previous PR
Testing
Update the unit test
Pull Request Type
Please select the option(s) that are relevant to this PR.
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[x] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Improvement (fixing a typo, updating readme, renaming a variable name, etc)
Description
This PR changes the return type for
all()
function in the webhook service fromWebhookCollection
to a list of webhooks. We made this change so it matches other type-strict client libraries (C# and Go) since this list is unpaginated. Removed CarbonOffset model, this was missed from previous PRTesting
Update the unit test
Pull Request Type
Please select the option(s) that are relevant to this PR.