/// <summary> /// Request constructor. /// <param name="client">BaseClient</param> /// <param name="priceGroup">PriceGroup</param> /// </summary> public PriceGroupCategoryListLoadQueryRequest(BaseClient client = null, PriceGroup priceGroup = null) : base(client) { Function = "PriceGroupCategoryList_Load_Query"; if (priceGroup != null) { if (priceGroup.Id > 0) { PriceGroupId = priceGroup.Id; } } }
/// <summary> /// Request constructor. /// <param name="client">BaseClient</param> /// <param name="priceGroup">PriceGroup</param> /// </summary> public PriceGroupDeleteRequest(BaseClient client = null, PriceGroup priceGroup = null) : base(client) { Function = "PriceGroup_Delete"; if (priceGroup != null) { if (priceGroup.Id > 0) { PriceGroupId = priceGroup.Id; } PriceGroupName = priceGroup.Name; } }
/// <summary> /// Request constructor. /// <param name="client">BaseClient</param> /// <param name="priceGroup">PriceGroup</param> /// </summary> public PriceGroupCustomerUpdateAssignedRequest(BaseClient client = null, PriceGroup priceGroup = null) : base(client) { Function = "PriceGroupCustomer_Update_Assigned"; if (priceGroup != null) { if (priceGroup.Id > 0) { PriceGroupId = priceGroup.Id; } else if (priceGroup.Name.Length > 0) { PriceGroupName = priceGroup.Name; } } }
/// <summary> /// Request constructor. /// <param name="client">BaseClient</param> /// <param name="priceGroup">PriceGroup</param> /// </summary> public PriceGroupProductListLoadQueryRequest(BaseClient client = null, PriceGroup priceGroup = null) : base(client) { Function = "PriceGroupProductList_Load_Query"; if (priceGroup != null) { if (priceGroup.Id > 0) { PriceGroupId = priceGroup.Id; } else if (priceGroup.Name.Length > 0) { PriceGroupName = priceGroup.Name; } } }
/// <summary> /// Request constructor. /// <param name="client">BaseClient</param> /// <param name="priceGroup">PriceGroup</param> /// </summary> public PriceGroupUpdateRequest(BaseClient client = null, PriceGroup priceGroup = null) : base(client) { Function = "PriceGroup_Update"; if (priceGroup != null) { if (priceGroup.Id > 0) { PriceGroupId = priceGroup.Id; } PriceGroupName = priceGroup.Name; Name = priceGroup.Name; CustomerScope = priceGroup.CustomerScope; Rate = priceGroup.Rate; Discount = priceGroup.Discount; Markup = priceGroup.Markup; Exclusion = priceGroup.Exclusion; Description = priceGroup.Description; Display = priceGroup.Display; DateTimeStart = priceGroup.DateTimeStart; DateTimeEnd = priceGroup.DateTimeEnd; QualifyingMinSubtotal = priceGroup.MinimumSubtotal; QualifyingMaxSubtotal = priceGroup.MaximumSubtotal; QualifyingMinQuantity = priceGroup.MinimumQuantity; QualifyingMaxQuantity = priceGroup.MaximumQuantity; QualifyingMinWeight = priceGroup.MinimumWeight; QualifyingMaxWeight = priceGroup.MaximumWeight; BasketMinSubtotal = priceGroup.BasketMinimumSubtotal; BasketMaxSubtotal = priceGroup.BasketMaximumSubtotal; BasketMinQuantity = priceGroup.BasketMinimumQuantity; BasketMaxQuantity = priceGroup.BasketMaximumQuantity; BasketMinWeight = priceGroup.BasketMinimumWeight; BasketMaxWeight = priceGroup.BasketMaximumWeight; Priority = priceGroup.Priority; } }
/// <summary> /// Request constructor. /// <param name="client">BaseClient</param> /// <param name="priceGroup">PriceGroup</param> /// </summary> public PriceGroupExcludedProductUpdateAssignedRequest(BaseClient client = null, PriceGroup priceGroup = null) : base(client) { Function = "PriceGroupExcludedProduct_Update_Assigned"; if (priceGroup != null) { if (priceGroup.Id > 0) { PriceGroupId = priceGroup.Id; } } }
/// <summary> /// Request constructor. /// <param name="client">BaseClient</param> /// <param name="priceGroup">PriceGroup</param> /// </summary> public PriceGroupBusinessAccountUpdateAssignedRequest(BaseClient client = null, PriceGroup priceGroup = null) : base(client) { Function = "PriceGroupBusinessAccount_Update_Assigned"; if (priceGroup != null) { if (priceGroup.Id > 0) { PriceGroupId = priceGroup.Id; } } }