feat(products): Stripe & Paddle store bindings in products create - #6
Open
mlnchk wants to merge 2 commits into
Open
feat(products): Stripe & Paddle store bindings in products create#6mlnchk wants to merge 2 commits into
mlnchk wants to merge 2 commits into
Conversation
Add --stripe-product-id/--stripe-price-id and --paddle-product-id/--paddle-price-id flags to `adapty products create`, each pair required together. Relax the store guard so web-only products (no ios/android id) are valid, matching the API.
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.
What
Adds Stripe & Paddle store bindings to
adapty products create, matching the new Developer API create fields.New flags (each pair required together, or both omitted):
--stripe-product-id+--stripe-price-id--paddle-product-id+--paddle-price-idChanges
api-schemas.ts— four optional fields onProductCreateRequestDTO(response types already match).products/create.ts— flags, per-store "required together" guards, and relaxed the store guard so a Stripe/Paddle-only (web) product with no mobile id is valid. Body mapping via the existing conditional-assign idiom.skills/adapty-cliSKILL + cli-commands reference.Scope: create-only, mirroring the API (update still edits only title/access_level_id).
Verification
pnpm build/pnpm test(33 passing) /pnpm lint(0 errors).