From d79c9b47872ae0c1b0680f3f7b417744a5982a67 Mon Sep 17 00:00:00 2001 From: Gaurav Karna Date: Thu, 18 Nov 2021 16:02:49 -0800 Subject: [PATCH] Updating version + fixes --- sdk/SdkSamples/Customers/GetValidationStatus.cs | 5 +++++ sdk/SdkSamples/Program.cs | 2 ++ sdk/SdkSamples/SdkSamples.csproj | 14 +++++++------- sdk/SdkSamples/packages.config | 4 ++-- 4 files changed, 16 insertions(+), 9 deletions(-) diff --git a/sdk/SdkSamples/Customers/GetValidationStatus.cs b/sdk/SdkSamples/Customers/GetValidationStatus.cs index 72ac15a..e3171be 100644 --- a/sdk/SdkSamples/Customers/GetValidationStatus.cs +++ b/sdk/SdkSamples/Customers/GetValidationStatus.cs @@ -3,8 +3,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // // ----------------------------------------------------------------------- + namespace Microsoft.Store.PartnerCenter.Samples.Customers { + using Microsoft.Store.PartnerCenter.Models.ValidationStatus.Enums; + /// /// A scenario that showcases retrieving a customer's validation status. /// @@ -28,6 +31,8 @@ namespace Microsoft.Store.PartnerCenter.Samples.Customers var partnerOperations = this.Context.UserPartnerOperations; this.Context.ConsoleHelper.StartProgress($"Retrieving customer's validation status for type: {ValidationType.Account}"); + var validationTypeToFetch = ValidationType.Account; + var customerValidationStatus = partnerOperations.Customers.ById(customerIdToRetrieve).ValidationStatus.GetValidationStatus(validationTypeToFetch); this.Context.ConsoleHelper.StopProgress(); diff --git a/sdk/SdkSamples/Program.cs b/sdk/SdkSamples/Program.cs index bf076dd..5d5ec23 100644 --- a/sdk/SdkSamples/Program.cs +++ b/sdk/SdkSamples/Program.cs @@ -36,6 +36,7 @@ namespace Microsoft.Store.PartnerCenter.Samples using Subscriptions; using Utilization; using Validations; + using ValidationStatus; /// /// The main program class for the partner center .NET SDK samples. @@ -241,6 +242,7 @@ namespace Microsoft.Store.PartnerCenter.Samples new GetCustomerQualifications(context), new CreateCustomerQualification(context), new CreateCustomerQualificationWithGCC(context), + new GetValidationStatus(context), new DeleteCustomerFromTipAccount(context), new GetCustomerManagedServices(context), new GetCustomerRelationshipRequest(context), diff --git a/sdk/SdkSamples/SdkSamples.csproj b/sdk/SdkSamples/SdkSamples.csproj index 03809d4..a8a3efe 100644 --- a/sdk/SdkSamples/SdkSamples.csproj +++ b/sdk/SdkSamples/SdkSamples.csproj @@ -45,21 +45,21 @@ ..\packages\Microsoft.Identity.Client.4.31.0\lib\net461\Microsoft.Identity.Client.dll - - ..\packages\Microsoft.Store.PartnerCenter.2.0.1\lib\netstandard2.0\Microsoft.Store.PartnerCenter.dll + + ..\packages\Microsoft.Store.PartnerCenter.3.0.0\lib\netstandard2.0\Microsoft.Store.PartnerCenter.dll - - ..\packages\Microsoft.Store.PartnerCenter.2.0.1\lib\netstandard2.0\Microsoft.Store.PartnerCenter.Extensions.dll + + ..\packages\Microsoft.Store.PartnerCenter.3.0.0\lib\netstandard2.0\Microsoft.Store.PartnerCenter.Extensions.dll - - ..\packages\Microsoft.Store.PartnerCenter.2.0.1\lib\netstandard2.0\Microsoft.Store.PartnerCenter.Models.dll + + ..\packages\Microsoft.Store.PartnerCenter.3.0.0\lib\netstandard2.0\Microsoft.Store.PartnerCenter.Models.dll ..\packages\Newtonsoft.Json.12.0.2\lib\net45\Newtonsoft.Json.dll - ..\packages\System.ComponentModel.Annotations.4.7.0\lib\net461\System.ComponentModel.Annotations.dll + ..\packages\System.ComponentModel.Annotations.5.0.0\lib\net461\System.ComponentModel.Annotations.dll diff --git a/sdk/SdkSamples/packages.config b/sdk/SdkSamples/packages.config index a3a2bd3..265ea90 100644 --- a/sdk/SdkSamples/packages.config +++ b/sdk/SdkSamples/packages.config @@ -1,9 +1,9 @@  - + - +