Click or drag to resize
Infosoft Logo

IAddressServiceGetCustomerMainAddress Method

Gets the active main address of the customer with a given customer number on a given date.

Namespace: Infosoft.Common.Contracts.ServiceContracts.Customers
Assembly: Infosoft.Common.Contracts (in Infosoft.Common.Contracts.dll) Version: 4.00.0.0
Syntax
AddressResponse GetCustomerMainAddress(
	GetCustomerMainAddressRequest request
)

Parameters

request  GetCustomerMainAddressRequest
A request object that contains a customer number and a date.

Return Value

AddressResponse
A response object that contains the active main address of the customer on the given date.
Remarks

There's a business rule saying that every customer should have exactly one active main address for any given date. However, in some cases there will still be no active main address, in which case the returned address will be null.

If a customer somehow has more than one active main address on the given date, one of the addresses will be chosen arbitrarily.

See Also