mirror of
https://github.com/rudrankriyam/App-Store-Connect-CLI.git
synced 2026-04-25 15:45:48 +03:00
[GH-ISSUE #326] Parity: Offer Codes CRUD and custom codes #99
Labels
No labels
bug
bug
documentation
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/App-Store-Connect-CLI#99
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @rudrankriyam on GitHub (Jan 30, 2026).
Original GitHub issue: https://github.com/rudrankriyam/App-Store-Connect-CLI/issues/326
Overview
Complete Offer Codes CLI coverage: subscription offer code CRUD, custom codes CRUD, and prices endpoints.
Scope (OpenAPI resources)
subscriptionOfferCodesget/create/updatesubscriptionOfferCodeCustomCodesget/create/updatesubscriptionOfferCodeOneTimeUseCodesupdatesubscriptionOfferCodes/{id}/pricesProposed CLI
Top-level group:
asc offer-codes ...New/expanded subcommands:
offer-codes get|create|update --offer-code-id IDoffer-codes custom-codes list|get|create|update --offer-code-id IDoffer-codes prices list --offer-code-id IDExamples:
asc offer-codes create --subscription-id SUB_ID --name "SPRING"asc offer-codes custom-codes create --offer-code-id CODE_ID --code "SPRING2026"asc offer-codes prices list --offer-code-id CODE_IDFlag patterns
Common:
--offer-code-id,--subscription-id,--output,--pretty,--limit,--next,--paginateOutput
--prettyfor JSON--output table/markdownfor list commandsDetailed TODO
Acceptance criteria
--nextvalidation worksTests
Implementation notes
internal/asc/client_offer_codes.gointernal/cli/offercodes@rudrankriyam commented on GitHub (Jan 30, 2026):
@cursor Please implement per issue description. No live credentials; use mocked tests. Run make build/lint/test and open a PR when green. Keep JSON-first output and explicit flags; no interactive prompts.
@cursor[bot] commented on GitHub (Jan 30, 2026):
Summary:
offer-codes,offer-codes custom-codes,offer-codes prices), and table/markdown output for the new list responses.Tests:
make buildmake lintmake testgo test ./internal/asc -run OfferCodeandgo test ./internal/cli/cmdtest -run OfferCodesValidationErrorsand shows both passing).PR note: I pushed the branch (
cursor/offer-codes-cli-coverage-1166) but did not open a PR because this environment forbids creating PRs directly.@rudrankriyam commented on GitHub (Jan 31, 2026):
Closed by PR #347: https://github.com/rudrankriyam/App-Store-Connect-CLI/pull/347