[GH-ISSUE #401] Parity: Pricing schedule and availability lookups by ID #114

Closed
opened 2026-02-26 21:33:30 +03:00 by kerem · 3 comments
Owner

Originally created by @rudrankriyam on GitHub (Feb 2, 2026).
Original GitHub issue: https://github.com/rudrankriyam/App-Store-Connect-CLI/issues/401

Overview

Add get-by-id commands for app price schedules and v2 app availability.

Scope (OpenAPI resources)

  • /v1/appPriceSchedules/{id}
  • /v2/appAvailabilities/{id}

Proposed CLI

  • asc pricing schedule get --id \"SCHEDULE_ID\"
  • asc pricing availability get --id \"AVAILABILITY_ID\"

Examples:

  • asc pricing schedule get --id \"SCHEDULE_ID\"
  • asc pricing availability get --id \"AVAILABILITY_ID\"

Flag patterns

Common: --id, --output, --pretty

Output

  • JSON minified by default
  • --pretty for JSON
  • --output table/markdown when supported

Detailed TODO

  • Add client methods in internal/asc for app price schedule get-by-id and app availability v2 get-by-id
  • Extend pricing schedule get to accept --id (mutually exclusive with --app)
  • Extend pricing availability get to accept --id (mutually exclusive with --app)
  • Add HTTP client tests (mocked)
  • Add CLI cmdtests for flag validation + output

Acceptance criteria

  • Schedule and availability can be fetched by ID
  • --app and --id are mutually exclusive

Tests

  • Flag validation tests
  • HTTP client tests for each endpoint

Implementation notes

  • Keep error messaging consistent with existing pricing commands

References

  • docs/openapi/paths.txt
  • docs/openapi/latest.json

@cursor

Originally created by @rudrankriyam on GitHub (Feb 2, 2026). Original GitHub issue: https://github.com/rudrankriyam/App-Store-Connect-CLI/issues/401 # Overview Add get-by-id commands for app price schedules and v2 app availability. # Scope (OpenAPI resources) - `/v1/appPriceSchedules/{id}` - `/v2/appAvailabilities/{id}` # Proposed CLI - `asc pricing schedule get --id \"SCHEDULE_ID\"` - `asc pricing availability get --id \"AVAILABILITY_ID\"` Examples: - `asc pricing schedule get --id \"SCHEDULE_ID\"` - `asc pricing availability get --id \"AVAILABILITY_ID\"` # Flag patterns Common: `--id`, `--output`, `--pretty` # Output - JSON minified by default - `--pretty` for JSON - `--output table/markdown` when supported # Detailed TODO - [ ] Add client methods in `internal/asc` for app price schedule get-by-id and app availability v2 get-by-id - [ ] Extend `pricing schedule get` to accept `--id` (mutually exclusive with `--app`) - [ ] Extend `pricing availability get` to accept `--id` (mutually exclusive with `--app`) - [ ] Add HTTP client tests (mocked) - [ ] Add CLI cmdtests for flag validation + output # Acceptance criteria - [ ] Schedule and availability can be fetched by ID - [ ] `--app` and `--id` are mutually exclusive # Tests - Flag validation tests - HTTP client tests for each endpoint # Implementation notes - Keep error messaging consistent with existing pricing commands # References - `docs/openapi/paths.txt` - `docs/openapi/latest.json` @cursor
kerem closed this issue 2026-02-26 21:33:30 +03:00
Author
Owner

@rudrankriyam commented on GitHub (Feb 2, 2026):

@cursor implement this

<!-- gh-comment-id:3836615996 --> @rudrankriyam commented on GitHub (Feb 2, 2026): @cursor implement this
Author
Owner

@cursor[bot] commented on GitHub (Feb 2, 2026):

Summary:

  • I added --id support (with mutual exclusivity vs --app) for pricing schedule get and pricing availability get, including updated help/examples and routing to ID-based fetches. 339:392:internal/cli/pricing/pricing.go 525:582:internal/cli/pricing/pricing.go
  • I exposed ASC client helpers for schedule/availability lookups by ID to back the new CLI flow. 135:154:internal/asc/client_pricing.go 308:326:internal/asc/client_pricing.go

Tests:

  • go test ./internal/asc ./internal/cli/pricing ./internal/cli/cmdtest

Notes:

  • No UI changes here, so no screen recording was applicable.

View PR
Open in Cursor Open in Web

<!-- gh-comment-id:3836618609 --> @cursor[bot] commented on GitHub (Feb 2, 2026): Summary: - I added `--id` support (with mutual exclusivity vs `--app`) for `pricing schedule get` and `pricing availability get`, including updated help/examples and routing to ID-based fetches. ```339:392:internal/cli/pricing/pricing.go``` ```525:582:internal/cli/pricing/pricing.go``` - I exposed ASC client helpers for schedule/availability lookups by ID to back the new CLI flow. ```135:154:internal/asc/client_pricing.go``` ```308:326:internal/asc/client_pricing.go``` Tests: - `go test ./internal/asc ./internal/cli/pricing ./internal/cli/cmdtest` Notes: - No UI changes here, so no screen recording was applicable. <a href="https://github.com/rudrankriyam/App-Store-Connect-CLI/pull/409"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/assets/images/view-pr-dark.png"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/assets/images/view-pr-light.png"><img alt="View PR" width="86" height="28" src="https://cursor.com/assets/images/view-pr-light.png"></picture></a> <a href="https://cursor.com/background-agent?bcId=bc-0caae371-6943-4964-8487-53b301a69888"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/assets/images/open-in-cursor-dark.png"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/assets/images/open-in-cursor-light.png"><img alt="Open in Cursor" width="131" height="28" src="https://cursor.com/assets/images/open-in-cursor-dark.png"></picture></a>&nbsp;<a href="https://cursor.com/agents?id=bc-0caae371-6943-4964-8487-53b301a69888"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/assets/images/open-in-web-dark.png"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/assets/images/open-in-web-light.png"><img alt="Open in Web" width="114" height="28" src="https://cursor.com/assets/images/open-in-web-dark.png"></picture></a>
Author
Owner

@rudrankriyam commented on GitHub (Feb 2, 2026):

Completed in PR #409 (merged).

Added:

  • asc pricing schedule get --id "SCHEDULE_ID" (mutually exclusive with --app)
  • asc pricing availability get --id "AVAILABILITY_ID" (mutually exclusive with --app)
<!-- gh-comment-id:3837448996 --> @rudrankriyam commented on GitHub (Feb 2, 2026): Completed in PR #409 (merged). Added: - `asc pricing schedule get --id "SCHEDULE_ID"` (mutually exclusive with --app) - `asc pricing availability get --id "AVAILABILITY_ID"` (mutually exclusive with --app)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/App-Store-Connect-CLI#114
No description provided.