[PR #788] [MERGED] feat: Support selecting price points by customer price in schedule creation #787

Closed
opened 2026-02-26 22:32:33 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/rudrankriyam/App-Store-Connect-CLI/pull/788
Author: @WZBbiao
Created: 2/26/2026
Status: Merged
Merged: 2/26/2026
Merged by: @rudrankriyam

Base: mainHead: feat/price-schedule-tier-selection


📝 Commits (2)

  • 1d448bf feat: Support selecting price points by customer price in schedule creation
  • ede0103 fix(pricing): validate and numerically resolve --price

📊 Changes

3 files changed (+272 additions, -3 deletions)

View changed files

internal/cli/cmdtest/pricing_schedule_create_price_test.go (+166 -0)
📝 internal/cli/pricing/pricing_test.go (+41 -0)
📝 internal/cli/shared/pricing_command.go (+65 -3)

📄 Description

This PR adds a --price flag to the pricing schedule create command, allowing users to select a price point by its customer price value (e.g., "0.99") instead of the opaque Price Point ID.\n\nWhen --price is provided:\n1. The CLI fetches all price points for the specified base territory.\n2. It finds the price point with a matching customerPrice.\n3. It uses that price point's ID to create the schedule.\n\nThis resolves #649 by providing a more user-friendly way to set prices, aligning with the "tier-based" selection request (as tiers map to prices).\n\nUsage:\nasc pricing schedule create --app <ID> --base-territory USA --price "0.99" --start-date "2026-03-01"


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/rudrankriyam/App-Store-Connect-CLI/pull/788 **Author:** [@WZBbiao](https://github.com/WZBbiao) **Created:** 2/26/2026 **Status:** ✅ Merged **Merged:** 2/26/2026 **Merged by:** [@rudrankriyam](https://github.com/rudrankriyam) **Base:** `main` ← **Head:** `feat/price-schedule-tier-selection` --- ### 📝 Commits (2) - [`1d448bf`](https://github.com/rudrankriyam/App-Store-Connect-CLI/commit/1d448bf227b08ebec0aec261030d9344304f5fa6) feat: Support selecting price points by customer price in schedule creation - [`ede0103`](https://github.com/rudrankriyam/App-Store-Connect-CLI/commit/ede01038d1aceed1a806080f77e521fa0eff4786) fix(pricing): validate and numerically resolve --price ### 📊 Changes **3 files changed** (+272 additions, -3 deletions) <details> <summary>View changed files</summary> ➕ `internal/cli/cmdtest/pricing_schedule_create_price_test.go` (+166 -0) 📝 `internal/cli/pricing/pricing_test.go` (+41 -0) 📝 `internal/cli/shared/pricing_command.go` (+65 -3) </details> ### 📄 Description This PR adds a `--price` flag to the `pricing schedule create` command, allowing users to select a price point by its customer price value (e.g., "0.99") instead of the opaque Price Point ID.\n\nWhen `--price` is provided:\n1. The CLI fetches all price points for the specified base territory.\n2. It finds the price point with a matching `customerPrice`.\n3. It uses that price point's ID to create the schedule.\n\nThis resolves #649 by providing a more user-friendly way to set prices, aligning with the "tier-based" selection request (as tiers map to prices).\n\nUsage:\n`asc pricing schedule create --app <ID> --base-territory USA --price "0.99" --start-date "2026-03-01"` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 22:32:33 +03:00
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#787
No description provided.