docs: document create endpoints for products and plans#46
Merged
Conversation
Adopt vatlify#1778 (shipped in vatly-api-php v0.1.0-alpha.24): - One-off Products: document POST /v1/one-off-products (createOneOffProduct) - Subscription Plans: document POST /v1/subscription-plans (createSubscriptionPlan) Both note the live=pending / test=active approval behaviour and the plan interval/productType constraints. Refresh vendored public/openapi.yaml.
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
Documents two create operations added upstream in sandervanhooft/vatlify#1778 and shipped in
vatly-api-phpv0.1.0-alpha.24. These paths were previously read-only, so they weren't covered by the earlier spec sync (#45).POST /v1/one-off-products(createOneOffProduct):name,description,basePrice,productType(saas|ebook).POST /v1/subscription-plans(createSubscriptionPlan):name,description,basePrice,productType(saas),interval,intervalCount.Both sections document the approval behaviour (live token →
pendingpending Vatly review; test token → auto-active) and the subscription-plan interval/productTypeconstraints, with cURL + PHP + response examples matching the spec. Vendoredpublic/openapi.yamlrefreshed to the current bundled spec (6217 → 6446 lines; the only delta is these two POST operations + their request schemas).Verification
main(preserves the SDK-doc sync incontent/3.packages/)