Interface IDiscountServiceContract
%Service for interacting with discounts in %Evatic.
Namespace: Evatic.Common.Service.Contract
Assembly: Evatic.Common.dll
Syntax
[IncludeDocumentationInWsdl]
[ServiceContract(Namespace = "http://schema.evatic.com/2012/10/24", Name = "DiscountService")]
public interface IDiscountServiceContract
Methods
View SourceCreateOrUpdateCustomerArticleDiscount(CustomerArticleDiscountDataContract)
Create or update a customer/article discount. By sending in an unused Guid, a new discount will be created. By sending in an existing one, the matching discount will be updated. This method can not change the relation of the discount, e.g. from customer/article to contract/article.
Declaration
[OperationContract]
void CreateOrUpdateCustomerArticleDiscount(CustomerArticleDiscountDataContract articleDiscount)
Parameters
Type | Name | Description |
---|---|---|
CustomerArticleDiscountDataContract | articleDiscount |
DeleteDiscount(Guid)
Delete any type of discount by Guid.
Declaration
[OperationContract]
void DeleteDiscount(Guid discountGuid)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | discountGuid |
GetCustomerArticleDiscounts(Guid)
Get all customer/article discounts for a given customer.
Declaration
[OperationContract]
List<CustomerArticleDiscountDataContract> GetCustomerArticleDiscounts(Guid customerGuid)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | customerGuid |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<CustomerArticleDiscountDataContract> |