diff --git a/sdk/SdkSamples/CustomerProducts/GetCustomerSkuDownloadOptions.cs b/sdk/SdkSamples/CustomerProducts/GetCustomerSkuDownloadOptions.cs deleted file mode 100644 index ea02b19..0000000 --- a/sdk/SdkSamples/CustomerProducts/GetCustomerSkuDownloadOptions.cs +++ /dev/null @@ -1,41 +0,0 @@ -// ----------------------------------------------------------------------- -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// ----------------------------------------------------------------------- - -namespace Microsoft.Store.PartnerCenter.Samples.CustomerProducts -{ - using System.Globalization; - - /// - /// A scenario that retrieves the download options of a product's SKU for a customer. - /// - public class GetCustomerSkuDownloadOptions : BasePartnerScenario - { - /// - /// Initializes a new instance of the class. - /// - /// The scenario context. - public GetCustomerSkuDownloadOptions(IScenarioContext context) : base("Get sku download options for customer", context) - { - } - - /// - /// Executes the scenario. - /// - protected override void RunScenario() - { - var partnerOperations = this.Context.UserPartnerOperations; - var customerId = this.ObtainCustomerId("Enter the ID of the corresponding customer"); - var productId = this.ObtainProductId("Enter the ID of the corresponding product"); - var skuId = this.ObtainSkuId("Enter the ID of the corresponding sku"); - - this.Context.ConsoleHelper.StartProgress(string.Format(CultureInfo.InvariantCulture, "Getting sku download options for sku {0} from product {1} for customer {2}", skuId, productId, customerId)); - var sku = partnerOperations.Customers.ById(customerId).Products.ById(productId).Skus.ById(skuId).DownloadOptions.Get(); - this.Context.ConsoleHelper.StopProgress(); - - this.Context.ConsoleHelper.WriteObject(sku, "Sku download options for customer"); - } - } -} diff --git a/sdk/SdkSamples/Products/GetSkuDownloadOptions.cs b/sdk/SdkSamples/Products/GetSkuDownloadOptions.cs deleted file mode 100644 index 3167c31..0000000 --- a/sdk/SdkSamples/Products/GetSkuDownloadOptions.cs +++ /dev/null @@ -1,41 +0,0 @@ -// ----------------------------------------------------------------------- -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// ----------------------------------------------------------------------- - -namespace Microsoft.Store.PartnerCenter.Samples.Products -{ - using System.Globalization; - - /// - /// A scenario that retrieves the download options of a product's SKU. - /// - public class GetSkuDownloadOptions : BasePartnerScenario - { - /// - /// Initializes a new instance of the class. - /// - /// The scenario context. - public GetSkuDownloadOptions(IScenarioContext context) : base("Get sku download options", context) - { - } - - /// - /// Executes the scenario. - /// - protected override void RunScenario() - { - var partnerOperations = this.Context.UserPartnerOperations; - var productId = this.ObtainProductId("Enter the ID of the corresponding product"); - var skuId = this.ObtainSkuId("Enter the ID of the corresponding sku"); - string countryCode = this.Context.ConsoleHelper.ReadNonEmptyString("Enter the 2 digit country code of the sku", "The country code can't be empty"); - - this.Context.ConsoleHelper.StartProgress(string.Format(CultureInfo.InvariantCulture, "Getting sku download options for product {0} and sku {1} in country {2}", productId, skuId, countryCode)); - var sku = partnerOperations.Products.ByCountry(countryCode).ById(productId).Skus.ById(skuId).DownloadOptions.Get(); - this.Context.ConsoleHelper.StopProgress(); - - this.Context.ConsoleHelper.WriteObject(sku, string.Format(CultureInfo.InvariantCulture, "Download options for sku {0}", skuId)); - } - } -} diff --git a/sdk/SdkSamples/Program.cs b/sdk/SdkSamples/Program.cs index 6b6b0c7..bf6b1c1 100644 --- a/sdk/SdkSamples/Program.cs +++ b/sdk/SdkSamples/Program.cs @@ -281,7 +281,6 @@ namespace Microsoft.Store.PartnerCenter.Samples new GetSkus(context), new GetSkusByTargetSegment(context), new GetSku(context), - new GetSkuDownloadOptions(context), new GetAvailabilities(context), new GetAvailabilitiesByTargetSegment(context), new GetAvailability(context), @@ -306,7 +305,6 @@ namespace Microsoft.Store.PartnerCenter.Samples new GetCustomerSkus(context), new GetCustomerSkusByTargetSegment(context), new GetCustomerSku(context), - new GetCustomerSkuDownloadOptions(context), new GetCustomerAvailabilities(context), new GetCustomerAvailabilitiesByTargetSegment(context), new GetCustomerAvailability(context) diff --git a/sdk/SdkSamples/SdkSamples.csproj b/sdk/SdkSamples/SdkSamples.csproj index e06ad6f..88635e5 100644 --- a/sdk/SdkSamples/SdkSamples.csproj +++ b/sdk/SdkSamples/SdkSamples.csproj @@ -105,7 +105,6 @@ - @@ -189,7 +188,6 @@ -