mirror of
https://github.com/rudrankriyam/App-Store-Connect-CLI.git
synced 2026-04-25 07:35:48 +03:00
[PR #439] [MERGED] feat(iap): add consolidated iap prices command #528
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#528
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?
📋 Pull Request Information
Original PR: https://github.com/rudrankriyam/App-Store-Connect-CLI/pull/439
Author: @rudrankriyam
Created: 2/7/2026
Status: ✅ Merged
Merged: 2/7/2026
Merged by: @rudrankriyam
Base:
main← Head:feat/iap-prices-438📝 Commits (10+)
2d13b80feat(iap): add consolidated iap prices commandfd98d32fix(iap): include scheduled changes from encoded price IDse370c4bfix(iap): return cancellation error on partial summary work251aae6fix(iap): resolve manual legacy price points without hardcoding50cd504fix(subscriptions): use per-page timeout for price-points pagination819862dfeat(subscriptions): add consolidatedasc subscriptions pricingcommand5fd362dfeat(subscriptions): add --territory filter to price-points list9cfa1dbfeat(subscriptions): add --stream flag for NDJSON paginated outputb5d8680Fix error check order in resolveSubscriptionPriceSummaries and remove unused priceFields field9c51f73Merge pull request #441 from rudrankriyam/cursor/subscription-pricing-and-queries-ed84📊 Changes
19 files changed (+3711 additions, -11 deletions)
View changed files
📝
internal/asc/client_iap_subresources.go(+18 -2)📝
internal/asc/client_iap_subresources_test.go(+152 -0)📝
internal/asc/iap_queries.go(+123 -1)📝
internal/asc/subscription_resources_queries.go(+53 -0)📝
internal/asc/subscriptions_resources_http_test.go(+24 -0)➕
internal/cli/cmdtest/iap_price_schedules_get_test.go(+110 -0)➕
internal/cli/cmdtest/iap_prices_test.go(+578 -0)➕
internal/cli/cmdtest/subscriptions_price_points_test.go(+239 -0)➕
internal/cli/cmdtest/subscriptions_pricing_test.go(+378 -0)📝
internal/cli/iap/iap.go(+2 -0)📝
internal/cli/iap/price_schedules.go(+71 -3)➕
internal/cli/iap/prices.go(+1063 -0)➕
internal/cli/iap/prices_test.go(+107 -0)📝
internal/cli/shared/shared.go(+11 -0)📝
internal/cli/subscriptions/price_points.go(+59 -4)➕
internal/cli/subscriptions/pricing.go(+559 -0)➕
internal/cli/subscriptions/pricing_test.go(+157 -0)📝
internal/cli/subscriptions/shared_wrappers.go(+4 -0)📝
internal/cli/subscriptions/subscriptions.go(+3 -1)📄 Description
Closes #438
Summary
Adds a consolidated
asc iap pricescommand so users can retrieve current and scheduled in-app purchase prices in one command, instead of chaining multipleasccalls and manual parsing.What Changed
asc iap prices--appor--iap-id(mutually exclusive)--territory--output json|table|markdown--pretty(JSON only)asc iap price-schedules getwith include/fields/limit flagsFollow-up Fix From Real Flow Validation
Validated the exact manual flow style from the screenshot and fixed one gap:
startDate/endDatein attributes and only encode schedule dates in the base64 resource ID (sd/ed).asc iap pricesnow decodes those ID fields and reports scheduled changes correctly.asc iap pricesalso forces full schedule subresource fetch when included results hit include limits, preventing truncated schedule analysis.Zenther Flow Verification
Using Zenther (
app id: 6748252780,iap id: 6749273457):59.99 USD/50.99 USDMUSmoves10357 -> 10387on2026-02-16asc iap prices --app 6748252780 --output jsonTiming Results (Refreshed)
Measured after the follow-up fix above.
1) Existing multi-command workflow (legacy)
7.37s,7.00s,6.88s7.083s2) New single command (
asc iap prices)3.68s,4.02s,3.70s3.800s3) Speedup
~1.86x4)
--helpdiscovery timingasc --help+ old IAP help chain):0.074sasc --help,asc iap --help,asc iap prices --help):0.033s~2.24x5) Fresh-context background agent timing (no prior context)
80.486s3.203s83.689sValidation
go test ./internal/asc -run 'InAppPurchasePriceSchedule|InAppPurchasePricePoints'go test ./internal/cli/iapgo test ./internal/cli/cmdtest -run 'IAPPrices|IAPPriceSchedulesGet'make testmake lint🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.