/// <summary> /// Request constructor. /// <param name="client">BaseClient</param> /// <param name="attributeTemplate">AttributeTemplate</param> /// </summary> public AttributeTemplateDeleteRequest(BaseClient client = null, AttributeTemplate attributeTemplate = null) : base(client) { Function = "AttributeTemplate_Delete"; if (attributeTemplate != null) { if (attributeTemplate.Id > 0) { AttributeTemplateId = attributeTemplate.Id; } else if (attributeTemplate.Code.Length > 0) { AttributeTemplateCode = attributeTemplate.Code; } else if (attributeTemplate.Code.Length > 0) { EditAttributeTemplate = attributeTemplate.Code; } } }
/// <summary> /// Request constructor. /// <param name="client">BaseClient</param> /// <param name="attributeTemplate">AttributeTemplate</param> /// </summary> public AttributeTemplateProductListLoadQueryRequest(BaseClient client = null, AttributeTemplate attributeTemplate = null) : base(client) { Function = "AttributeTemplateProductList_Load_Query"; if (attributeTemplate != null) { if (attributeTemplate.Id > 0) { AttributeTemplateId = attributeTemplate.Id; } else if (attributeTemplate.Code.Length > 0) { AttributeTemplateCode = attributeTemplate.Code; } else if (attributeTemplate.Code.Length > 0) { EditAttributeTemplate = attributeTemplate.Code; } } }
/// <summary> /// Request constructor. /// <param name="client">BaseClient</param> /// <param name="attributeTemplate">AttributeTemplate</param> /// </summary> public AttributeTemplateProductUpdateAssignedRequest(BaseClient client = null, AttributeTemplate attributeTemplate = null) : base(client) { Function = "AttributeTemplateProduct_Update_Assigned"; if (attributeTemplate != null) { if (attributeTemplate.Id > 0) { AttributeTemplateId = attributeTemplate.Id; } else if (attributeTemplate.Code.Length > 0) { AttributeTemplateCode = attributeTemplate.Code; } else if (attributeTemplate.Code.Length > 0) { EditAttributeTemplate = attributeTemplate.Code; } } }