Table of Contents

Method ValidateCustomerAccount

Namespace
Everest.Service.Customers
Assembly
Everest.Service.dll

ValidateCustomerAccount(WebCustomerAccountRegistrationContract)

[OperationContract]
[FaultContract(typeof(ValidationFaultContract))]
[FaultContract(typeof(DbFaultContract))]
[SwaggerWcfTag("Customers", false)]
[SwaggerWcfPath(null, null, null, null, null, false, null, Summary = "Verify the existence of a customer matching the provided web-account information.", Description = "This method should be used by the web-app, after the customer validates their email, in order to verify the existence of the given customer in the partners database.")]
[WebInvoke(UriTemplate = "ValidateRegistration", Method = "POST", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]
[SwaggerWcfResponse(StatusCode = HttpStatusCode.OK, Description = "The account validation was successfully: returns the existing partner code or null if no matching customer account was found.")]
[SwaggerWcfResponse(StatusCode = HttpStatusCode.BadRequest, Description = "Invalid email provided", Type = typeof(JsonErrorMessage))]
[SwaggerWcfResponse(StatusCode = HttpStatusCode.InternalServerError, Description = "An unexpected error occurred while processing the request.", Type = typeof(JsonErrorMessage))]
string? ValidateCustomerAccount(WebCustomerAccountRegistrationContract webCustomerAccount)

Parameters

webCustomerAccount WebCustomerAccountRegistrationContract

Returns

string