Class UpdateVelocityTemplateRequest
Request for updating an existing velocity template
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 | |
| Action | TemplateAction | Approve, Decline, Suspend. How to handle a transaction that exceeds velocity limits. Required field. |
| Criteria | VelocityTemplateCriteria | Required. Criteria to find an existing velocity template to update. |
| DailyAmountLimit | System.Decimal | Decimal field max value is 999999999. Value must be less than or equal to PeriodAmountLimit. Limit of total amount per day. Required field. |
| DailyCountLimit | System.Int32 | Decimal field max value is 999999999. Value must be less than or equal to PeriodCountLimit. Limit of checks per day. Required field. |
| Description | System.String | String value with a max length of 250 characters. A brief description of the template. Required field. Limit of total amount per period. Required field. |
| IsEnabled | System.Boolean | Indicates whether or not the velocity template is enabled |
| PeriodAmountLimit | System.Decimal | Decimal field max value is 999999999. Value must be greater than or equal to DailyAmountLimit. Limit of checks per period. Required field. |
| PeriodCountLimit | System.Int32 | Decimal field max value is 999999999. Value must be greater than or equal to DailyCountLimit. Required field. |
| SingleAmountLimit | System.Decimal | Required. Limit of amount per item |
| TemplateName | System.String | Name of the template that exists in the EPS system. Max length is 50 characters. Must be unique. |
VelocityTemplateCriteria
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| TemplateName | System.String | Name of the template that exists in the EPS system. Max length is 50 characters. Must be unique. |
Example
{
"Credentials":{
"EntityId": "123456",
"StoreId": null,
"StoreKey": null
},
"__type":"UpdateVelocityTemplateRequest:#JackHenry.Eps.Mobile.RDAAdmin",
"Criteria":
{
"__type":"VelocityTemplateCriteria:#JackHenry.Eps.Mobile.RDAAdmin",
"TemplateName":"String Content",
}
"TemplateName":"String Content",
"Description":"String Content",
"IsEnabled":true,
"SingleAmountLimit":12678967.54,
"DailyCountLimit":0,
"DailyAmountLimit":12678967.54,
"PeriodCountLimit":0,
"PeriodAmountLimit":12678967.54,
"Action":
}
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 | Criteria cannot be null |
| JHA.EPS.SharedService.Common.Validator.ValidationResult | TemplateName cannot be null or empty |
| JHA.EPS.SharedService.Common.Validator.ValidationResult | TemplateName must be beween 1 - 50 characters |
| JHA.EPS.SharedService.Common.Validator.ValidationResult | TemplateName must contain visible characters |
| JHA.EPS.SharedService.Common.Validator.ValidationResult | If Description is not null then Description must be less than 251 characters |
| JHA.EPS.SharedService.Common.Validator.ValidationResult | If Description is not null then Description must be visible characters |
| JHA.EPS.SharedService.Common.Validator.ValidationResult | SingleAmountLimit cannot be greater than DailyAmountLimit |
| JHA.EPS.SharedService.Common.Validator.ValidationResult | DailyCountLimit cannot be greater than PeriodCountLimit |
| JHA.EPS.SharedService.Common.Validator.ValidationResult | DailyAmountLimit cannot be greater than PeriodAmountLimit |
| JHA.EPS.SharedService.Common.Validator.ValidationResult | Must have edit velocity permission |
| JHA.EPS.SharedService.Common.Validator.ValidationResult | TemplateName must be unique in our system |
| JHA.EPS.SharedService.Common.Validator.ValidationResult | Criteria.TemplateName must exist in our system |