Documentation
Show / Hide Table of Contents

Interface ICustomerServiceContract

Namespace: Evatic.Common.Service.Contract
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
Type Description
System.Collections.Generic.List<TinyAddressDataContract>
View Source

GetByMachineGuid(Guid)

Get customer from machine guid.

Declaration
[OperationContract]
TinyCustomerDataContract GetByMachineGuid(Guid machineGuid)
Parameters
Type Name Description
System.Guid machineGuid
Returns
Type Description
TinyCustomerDataContract
View Source

GetContactAndAddress(Guid)

Gets a list of customer addresses and contacts.

Declaration
[OperationContract]
ContactAndAddressDataContract GetContactAndAddress(Guid customerGuid)
Parameters
Type Name Description
System.Guid customerGuid
Returns
Type Description
ContactAndAddressDataContract
View Source

GetContactForMachine(CustomerAndMachineGuidDataContract)

Returns a list of contacts for machine

Declaration
[OperationContract]
List<ContactBaseDataContract> GetContactForMachine(CustomerAndMachineGuidDataContract request)
Parameters
Type Name Description
CustomerAndMachineGuidDataContract request
Returns
Type Description
System.Collections.Generic.List<ContactBaseDataContract>
View Source

GetContacts(Guid)

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
Type Description
System.Collections.Generic.List<ContactBaseDataContract>
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
Type Description
System.Collections.Generic.List<CustomerAddressNameDataContract>
View Source

ListContacts(ContactCustomerReferenceDataContract)

Retuns a list of contact information.

Declaration
[OperationContract]
List<ContactBaseDataContract> ListContacts(ContactCustomerReferenceDataContract source)
Parameters
Type Name Description
ContactCustomerReferenceDataContract source
Returns
Type Description
System.Collections.Generic.List<ContactBaseDataContract>
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
Type Name Description
CustomerSearchRequestDataContract request
Returns
Type Description
System.Collections.Generic.List<CustomerSearchResponseDataContract>
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

UpdateContact(ContactDataContract)

Update contact information.

Declaration
[OperationContract]
int UpdateContact(ContactDataContract contact)
Parameters
Type Name Description
ContactDataContract contact
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

  • View Source
CONTACT INFORMATION

Asolvi AS Sluppenveien 25
N-7037 Trondheim
+47 73 80 22 00
Support
FOLLOW US

© Asolvi AS 2018