Skip to content

feat(products): Stripe & Paddle store bindings in products create - #6

Open
mlnchk wants to merge 2 commits into
mainfrom
feat-stripe-paddle-product-flags
Open

feat(products): Stripe & Paddle store bindings in products create#6
mlnchk wants to merge 2 commits into
mainfrom
feat-stripe-paddle-product-flags

Conversation

@mlnchk

@mlnchk mlnchk commented Jul 27, 2026

Copy link
Copy Markdown
Collaborator

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-id
adapty products create --app <uuid> --title "Premium" --period annual \
  --access-level-id <uuid> \
  --stripe-product-id prod_xxx --stripe-price-id price_xxx \
  --paddle-product-id pro_xxx  --paddle-price-id  pri_xxx

Changes

  • api-schemas.ts — four optional fields on ProductCreateRequestDTO (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.
  • Tests — Stripe map, Paddle map, and lone-flag rejection (no fetch, non-zero exit).
  • Docs — skills/adapty-cli SKILL + 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).

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.
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.

1 participant