Skip to content

Commit

Permalink
Merge pull request #67 from sanjacob/basePriceIdFix
Browse files Browse the repository at this point in the history
Fix PriceId when using an advanced pricing model
  • Loading branch information
azchohfi authored Nov 13, 2024
2 parents 6799786 + 6e6cbc3 commit 892abce
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions MSStore.CLI/Helpers/IStorePackagedAPIExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,12 @@ public static async Task<int> PublishAsync(

DevCenterSubmission? devCenterSubmission = submission as DevCenterSubmission;
DevCenterFlightSubmission? devCenterFlightSubmission = submission as DevCenterFlightSubmission;

if (devCenterSubmission?.Pricing != null && devCenterSubmission.Pricing.IsAdvancedPricingModel)
{
devCenterSubmission.Pricing.PriceId = null;
}

if ((devCenterSubmission != null && devCenterSubmission.ApplicationPackages == null) ||
(devCenterFlightSubmission != null && devCenterFlightSubmission.FlightPackages == null))
{
Expand Down

0 comments on commit 892abce

Please sign in to comment.