/// <summary> /// Executes the operations associated with the cmdlet. /// </summary> public override void ExecuteCmdlet() { ProductId.AssertNotEmpty(nameof(ProductId)); string countryCode = (string.IsNullOrEmpty(CountryCode)) ? PartnerProfile.Instance.Context.CountryCode : CountryCode; if (Variables == null) { Variables = new Hashtable(); } GetProductInventory(countryCode, ProductId, SkuId, Variables); }
/// <summary> /// Executes the operations associated with the cmdlet. /// </summary> public override void ExecuteCmdlet() { string countryCode = (string.IsNullOrEmpty(CountryCode)) ? PartnerSession.Instance.Context.CountryCode : CountryCode; ProductId.AssertNotEmpty(nameof(ProductId)); if (!string.IsNullOrEmpty(SkuId)) { GetProductSku(countryCode, ProductId, SkuId); } else { GetProductSkus(countryCode, ProductId, Segment); } }