Class AddCustomerRequest
Request for adding a new customer
Properties
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| RequestId | System.string | Unique identifier used to identify the request. Used when associating the request to the response. |
| RequestDate | System.DateTime | DateTime request was made. Request timeout is 1 minute. |
| Credentials | StoreCredentials | |
| AddressLine1 | System.String | Customer street address. Max length is 50 characters |
| AddressLine2 | System.String | Additional address information. Max length is 50 characters |
| City | System.String | The city where the customer resides. Max length is 40 characters |
| CompanyName | System.String | The CompanyName value is not currently utilized. The company name for a MicroBusiness customer type should be populated in the LastName property. The LastName property is required for adding or updating a MicroBusiness customer type. |
| Country | System.String | The country where the customer resides. Max length is 40 characters |
| CustomerType | JackHenry.Eps.Mobile.CustomerType | An enumeration identifying the type of customer or end user. Possible values are: Consumer or MicroBusiness. If a value is not supplied, This field will default to 'Consumer'. |
| EmailAddress | System.String | Email address of the customer. Max length is 60 characters. This is a required field. |
| FirstName | System.String | Max length is 30 characters. Required when CustomerType is Consumer. |
| HomeBankingId | System.String | A string value with a unique identifier for the customer. It is required for all customers boarded with the RDA Web Service and most often corresponds to the customer's unique identifier in the Financial Institution's system. Max length is 50 characters. |
| IsDirectLoginEnabled | System.Boolean | A Boolean value indicating whether or not the customer can directly log in with a username and password maintained in the EPS system (not SSO authentication). If a value is not supplied, This field will default to 'false'. |
| IsEnabled | System.Boolean | Indicates whether customer is enabled in system. If a value is not supplied, This field will default to 'false'. |
| LastName | System.String | A string value that contains either the last name of a consumer capture customer or the name of a company for a micro business customer. This is required if the CustomerType is Consumer or MicroBusiness. Max length is 60 characters. |
| PostalCode | System.String | The postal code where the customer resides. Max length is 10 characters |
| State | System.String | The state where the customer resides. Max length is 40 characters |
| Username | System.String | Max length is 50 characters. Required if IsDirectLoginEnabled is set to true. |
Example
{
"Credentials":{
"EntityId": "123456",
"StoreId": null,
"StoreKey": null
},
"__type":"AddCustomerRequest:#JackHenry.Eps.Mobile.RDAAdmin",
"HomeBankingId":"String Content",
"CustomerType":
"FirstName":"String Content",
"LastName":"String Content",
"CompanyName":"String Content",
"AddressLine1":"String Content",
"AddressLine2":"String Content",
"City":"String Content",
"State":"String Content",
"PostalCode":"String Content",
"Country":"String Content",
"EmailAddress":"String Content",
"Username":"String Content",
"IsDirectLoginEnabled":true,
"IsEnabled":true,
}
Methods
Validate(IValidatorContext)
Declaration
public override void Validate(IValidatorContext context)
Parameters
| TYPE | NAME | DESCRIPTION |
|---|---|---|
| JHA.EPS.SharedService.Common.Validator.IValidatorContext | context |
Overrides
AuthenticatedRequest.Validate(IValidatorContext)
Exceptions
| TYPE | DESCRIPTION |
|---|---|
| JHA.EPS.SharedService.Common.Validator.ValidationResult | Must not be a duplicate Customer |
| JHA.EPS.SharedService.Common.Validator.ValidationResult | Customer type must be valid |
| JHA.EPS.SharedService.Common.Validator.ValidationResult | If Direct Login is enabled then HomeBankingId cannot be null or empty |
| JHA.EPS.SharedService.Common.Validator.ValidationResult | FirstName cannot be null or empty |
| JHA.EPS.SharedService.Common.Validator.ValidationResult | LastName cannot be null or empty |
| JHA.EPS.SharedService.Common.Validator.ValidationResult | Username cannot be null or empty |
| JHA.EPS.SharedService.Common.Validator.ValidationResult | Email cannot be null or empty |
| JHA.EPS.SharedService.Common.Validator.ValidationResult | Email must be a valid email address |
| JHA.EPS.SharedService.Common.Validator.ValidationResult | HomeBankingId must be between 1 and 50 characters |
| JHA.EPS.SharedService.Common.Validator.ValidationResult | Username must be between 1 and 50 characters |
| JHA.EPS.SharedService.Common.Validator.ValidationResult | FirstName must be between 1 and 30 characters |
| JHA.EPS.SharedService.Common.Validator.ValidationResult | LastName must be between 1 and 60 characters |
| JHA.EPS.SharedService.Common.Validator.ValidationResult | Address1 must be between 1 and 50 characters |
| JHA.EPS.SharedService.Common.Validator.ValidationResult | Address2 must be between 1 and 50 characters |
| JHA.EPS.SharedService.Common.Validator.ValidationResult | City must be between 1 and 40 characters |
| JHA.EPS.SharedService.Common.Validator.ValidationResult | State must be between 1 and 40 characters |
| JHA.EPS.SharedService.Common.Validator.ValidationResult | PostalCode must be between 1 and 10 characters |
| JHA.EPS.SharedService.Common.Validator.ValidationResult | Country must be between 1 and 40 characters |
| JHA.EPS.SharedService.Common.Validator.ValidationResult | Email must be between 1 and 60 characters |
| JHA.EPS.SharedService.Common.Validator.ValidationResult | Must have edit user permissions |
| JHA.EPS.SharedService.Common.Validator.ValidationResult | Location must be configured for RDA |
| JHA.EPS.SharedService.Common.Validator.ValidationResult | Must be configured for the customer type |
| JHA.EPS.SharedService.Common.Validator.ValidationResult | Must be configured for mobile |