Interface ICustomerServiceContract
Assembly: Evatic.Common.dll
Syntax
[IncludeDocumentationInWsdl]
[ServiceContract(Namespace = "http://schema.evatic.com/2012/10/24", Name = "CustomerService")]
public interface ICustomerServiceContract
Methods
View Source
GetAdresses(Guid)
Gets a list of addresses for the customer.
Declaration
[OperationContract]
List<TinyAddressDataContract> GetAdresses(Guid customerGuid)
Parameters
Type |
Name |
Description |
System.Guid |
customerGuid |
|
Returns
View Source
GetByMachineGuid(Guid)
Get customer from machine guid.
Declaration
[OperationContract]
TinyCustomerDataContract GetByMachineGuid(Guid machineGuid)
Parameters
Type |
Name |
Description |
System.Guid |
machineGuid |
|
Returns
View Source
Gets a list of customer addresses and contacts.
Declaration
[OperationContract]
ContactAndAddressDataContract GetContactAndAddress(Guid customerGuid)
Parameters
Type |
Name |
Description |
System.Guid |
customerGuid |
|
Returns
View Source
Returns a list of contacts for machine
Declaration
[OperationContract]
List<ContactBaseDataContract> GetContactForMachine(CustomerAndMachineGuidDataContract request)
Parameters
Returns
View Source
Gets a list of customer contacts with the necessary information.
Declaration
[OperationContract]
List<ContactBaseDataContract> GetContacts(Guid customerGuid)
Parameters
Type |
Name |
Description |
System.Guid |
customerGuid |
|
Returns
View Source
ListAddressNameAndRow(Guid)
Returns only address name and address row from customer guid.
Declaration
[OperationContract]
List<CustomerAddressNameDataContract> ListAddressNameAndRow(Guid customerGuid)
Parameters
Type |
Name |
Description |
System.Guid |
customerGuid |
|
Returns
View Source
Retuns a list of contact information.
Declaration
[OperationContract]
List<ContactBaseDataContract> ListContacts(ContactCustomerReferenceDataContract source)
Parameters
Returns
View Source
Search(CustomerSearchRequestDataContract)
This is a search method. It will provide a list of customer that
matches the criterion.
Declaration
[OperationContract]
List<CustomerSearchResponseDataContract> Search(CustomerSearchRequestDataContract request)
Parameters
Returns
View Source
SearchByName(String)
DO NOT USE.
Get customers by customer name.
Declaration
[Obsolete("SearchByName is obsolete and will be permanently removed 2018-01-01. Please use Search instead.", false)]
[OperationContract]
List<TinyCustomerDataContract> SearchByName(string customerName)
Parameters
Type |
Name |
Description |
System.String |
customerName |
|
Returns
Type |
Description |
System.Collections.Generic.List<TinyCustomerDataContract> |
This will only search customers linked to the authenticated users company.
|
View Source
Update contact information.
Declaration
[OperationContract]
int UpdateContact(ContactDataContract contact)
Parameters
Returns
Type |
Description |
System.Int32 |
|
View Source
ValidateCustomerNo(String)
Validate the customer with customer nummber.
Declaration
[OperationContract]
Guid ValidateCustomerNo(string customerNo)
Parameters
Type |
Name |
Description |
System.String |
customerNo |
|
Returns
Type |
Description |
System.Guid |
Gudid empty if customer no dont exsist
|