Documentation
¶
Index ¶
- func AppPriceActiveOn(startDate, endDate string, now time.Time) (active bool, known bool)
- func PricingAvailabilityCommand() *ffcli.Command
- func PricingAvailabilityCreateCommand() *ffcli.Command
- func PricingAvailabilityGetCommand() *ffcli.Command
- func PricingAvailabilityPlatformsCommand() *ffcli.Command
- func PricingAvailabilityRemoveFromSaleCommand() *ffcli.Command
- func PricingAvailabilitySetCommand() *ffcli.Command
- func PricingAvailabilityTerritoryAvailabilitiesCommand() *ffcli.Command
- func PricingCommand() *ffcli.Command
- func PricingCurrentCommand() *ffcli.Command
- func PricingPricePointsCommand() *ffcli.Command
- func PricingPricePointsEqualizationsCommand() *ffcli.Command
- func PricingPricePointsGetCommand() *ffcli.Command
- func PricingScheduleAutomaticPricesCommand() *ffcli.Command
- func PricingScheduleCommand() *ffcli.Command
- func PricingScheduleCreateCommand() *ffcli.Command
- func PricingScheduleGetCommand() *ffcli.Command
- func PricingScheduleManualPricesCommand() *ffcli.Command
- func PricingTerritoriesCommand() *ffcli.Command
- func PricingTerritoriesListCommand() *ffcli.Command
- func PricingTiersCommand() *ffcli.Command
- func SetAvailabilityClientFactory(fn func() (*asc.Client, error)) func()
- type AppBasePriceStatus
- type AppPriceRequestRunner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppPriceActiveOn ¶
AppPriceActiveOn reports whether an app price with startDate and endDate applies on now's App Store Connect pricing date (the US Pacific date, see shared.PricingDate). Start dates are inclusive and end dates are exclusive, so a price stops applying on its end date. An empty date is unbounded. known is false when a date is not a YYYY-MM-DD date.
func PricingAvailabilityCommand ¶
PricingAvailabilityCommand returns the availability command group.
func PricingAvailabilityCreateCommand ¶ added in v1.260722.0
PricingAvailabilityCreateCommand returns the availability create subcommand.
func PricingAvailabilityGetCommand ¶
PricingAvailabilityGetCommand returns the availability get subcommand.
func PricingAvailabilityPlatformsCommand ¶ added in v1.260825.0
PricingAvailabilityPlatformsCommand returns the platforms subcommand.
func PricingAvailabilityRemoveFromSaleCommand ¶ added in v1.260819.0
PricingAvailabilityRemoveFromSaleCommand returns the remove-from-sale subcommand.
func PricingAvailabilitySetCommand ¶
PricingAvailabilitySetCommand returns the availability edit subcommand.
func PricingAvailabilityTerritoryAvailabilitiesCommand ¶
PricingAvailabilityTerritoryAvailabilitiesCommand returns the availability territory-availabilities subcommand.
func PricingCommand ¶
PricingCommand returns the pricing command group.
func PricingCurrentCommand ¶ added in v1.260331.0
PricingCurrentCommand returns the current pricing command.
func PricingPricePointsCommand ¶
PricingPricePointsCommand returns the price points command.
func PricingPricePointsEqualizationsCommand ¶
PricingPricePointsEqualizationsCommand returns the price point equalizations subcommand.
func PricingPricePointsGetCommand ¶
PricingPricePointsGetCommand returns the price point get subcommand.
func PricingScheduleAutomaticPricesCommand ¶
PricingScheduleAutomaticPricesCommand returns the schedule automatic-prices subcommand.
func PricingScheduleCommand ¶
PricingScheduleCommand returns the pricing schedule command group.
func PricingScheduleCreateCommand ¶
PricingScheduleCreateCommand returns the schedule create subcommand.
func PricingScheduleGetCommand ¶
PricingScheduleGetCommand returns the schedule get subcommand.
func PricingScheduleManualPricesCommand ¶
PricingScheduleManualPricesCommand returns the schedule manual-prices subcommand.
func PricingTerritoriesCommand ¶
PricingTerritoriesCommand returns the territories subcommand group.
func PricingTerritoriesListCommand ¶
PricingTerritoriesListCommand returns the territories list subcommand.
func PricingTiersCommand ¶
PricingTiersCommand returns the tiers subcommand.
func SetAvailabilityClientFactory ¶ added in v1.260722.0
SetAvailabilityClientFactory replaces the ASC client factory for availability tests. It returns a restore function to reset the previous handler.
Types ¶
type AppBasePriceStatus ¶
type AppBasePriceStatus struct {
// Configured is false when App Store Connect reports that the app's price
// schedule was never created.
Configured bool
// BaseTerritory is the schedule's base territory ID, such as USA.
BaseTerritory string
// HasPrice is true when the base territory has a manual price that is
// active now or scheduled to start later. A free price counts.
HasPrice bool
}
AppBasePriceStatus reports whether an app price schedule has a price for its base territory, using the same schedule reads as `asc pricing current`.
func FetchAppBasePriceStatus ¶
func FetchAppBasePriceStatus(ctx context.Context, client *asc.Client, scheduleID string, run AppPriceRequestRunner) (AppBasePriceStatus, error)
FetchAppBasePriceStatus reads the base territory and manual prices of the price schedule scheduleID, running each request through run. A nil run bounds each request with shared.ContextWithTimeout. A schedule that App Store Connect reports as never configured returns Configured=false without an error; every other request or decoding failure is returned so callers can treat the price as unverified.
type AppPriceRequestRunner ¶
AppPriceRequestRunner runs one App Store Connect request. Callers that share a request limit across concurrent reads pass a runner that applies it; the runner must bound request with a timeout derived from ctx.