chore: sync with OpenAPI — self-service link operation renames#16
Merged
sandervanhooft merged 1 commit intoMay 21, 2026
Merged
Conversation
Pull endpoint paths, method names, and HTTP verbs back in line with the latest vatly-docs OpenAPI spec (synced 2026-05-21). This effectively reverts the renames from #14: vatlify's canonical operationIds and URL shapes are the ones the OpenAPI documents, and they remained the spec's source of truth. ### Method/URL/verb changes | Old | New | | --- | --- | | `OrderEndpoint::createInvoiceUpdateLink` | `OrderEndpoint::requestAddressUpdateLink` | | `Order::createInvoiceUpdateLink` | `Order::requestAddressUpdateLink` | | `POST /orders/{id}/invoice-update-link` | `POST /orders/{id}/request-address-update-link` | | `SubscriptionEndpoint::createBillingUpdateLink` | `SubscriptionEndpoint::updateBilling` | | `Subscription::createBillingUpdateLink` | `Subscription::updateBilling` | | `POST /subscriptions/{id}/billing-update-link` | `PATCH /subscriptions/{id}/update-billing` | Both operations still return a `{href, type}` hosted-link payload, so the return type stays `Vatly\API\Types\Link`. ### Schema cleanup - `OrderLine::$links` removed. The OpenAPI's OrderLine schema has no `links` property — it isn't a top-level addressable resource and doesn't carry HATEOAS links. The unused `OrderLineLinks` class is deleted along with it. ### Tests Endpoint tests updated to assert the new URLs and (for `updateBilling`) the PATCH verb. All 71 tests pass. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This was referenced May 21, 2026
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Pulls endpoint paths, method names, and HTTP verbs back in line with the latest OpenAPI spec synced into
vatly-docson 2026-05-21.This effectively reverses the renames from #14: vatlify's canonical operationIds and URL shapes are the ones the OpenAPI documents, and they remained the spec's source of truth.
Method / URL / verb changes
Both operations still return a `{href, type}` hosted-link payload — return type stays `Vatly\API\Types\Link`.
Schema cleanup
Tests
Endpoint tests updated to assert the new URLs and (for `updateBilling`) the PATCH verb. All 71 tests pass.
Breaking changes (downstream coordination required)
This is a breaking-change release. Coordinated companion PRs will update the downstream packages:
Test plan
🤖 Generated with Claude Code