Skip to main content

Class AddItemRequest

This method is used to add an item to a batch.


Properties

NAMETYPEDESCRIPTION
RequestIdstringUnique identifier used to identify the request. Used when associating the request to the response.
RequestDatedateTimeDateTime request was made. Request timeout is 1 minute.
CredentialsTokenCredentialsREQUIRED. The credentials given from your last response.
AmountdecimalREQUIRED. The amount in DECIMAL format.
BatchReferencestringREQUIRED. The batch number to add the item to.
CustomerReferencestringThe unique value assigned to each customer that can be retrieved using the GetCustomersRequest.
DataFieldsDataField[]The optional, or required, additonal information to be saved along with the item. This depends upon the GetSettings.ShowDataEntry and if the sub items are REQUIRED.
FrontImagestringREQUIRED. The JPEG Base64 representation of the front image captured. Minimum size of 1600 x 1200.
GeoLocationGeoLocationDEPRECATED. This property is no longer used.
LocationReferencestringThis field is not used.
RearImagestringREQUIRED. The JPEG Base64 representation of the back image captured. Minimum size of 1600 x 1200.

DataField

NAMETYPEDESCRIPTION
FieldNamestringThe dynamic field name used to capture custom values.
FieldTypeFieldTypeA grouping to identify where to show the fields.
IsRequiredboolIndicates that the field input is required.
TextstringThe text to display to the user.
ValidationstringThe regular expression used to validate the custom field.
ValidationMessagestringThe message to display when the validation fails.
ValuestringThe value the user input.

GeoLocation

NAMETYPEDESCRIPTION
LatitudeDouble
LongitudeDouble

Examples

{
"__type":"AddItemRequest:#JackHenry.Eps.Mobile.RDC",
"BatchReference":"String Content",
"LocationReference":"String Content",
"Amount":12678967.54,
"FrontImage":"String Content",
"RearImage":"String Content",
"CustomerReference":"String Content",
"DataFields":
[
{
"__type":"DataField:#JackHenry.Eps.Mobile.RDC",
"FieldName":"String Content",
"Text":"String Content",
"IsRequired":true,
"Value":"String Content",
"Validation":"String Content",
"ValidationMessage":"String Content",
"FieldType":FieldType.Transaction,
}
],
"GeoLocation":
}

Methods

Validate(IValidatorContext)

Declaration

public override void Validate(IValidatorContext context)

Parameters

TYPENAMEDESCRIPTION
JHA.EPS.SharedService.Common.Validator.IValidatorContextcontext

Overrides

AuthenticatedRequest.Validate(IValidatorContext)

Exceptions

TYPEDESCRIPTION
JHA.EPS.SharedService.Common.Validator.ValidationResultBatchReference cannot be null or empty
JHA.EPS.SharedService.Common.Validator.ValidationResultBatchReference exists in our system
JHA.EPS.SharedService.Common.Validator.ValidationResultBatchReference refers to an open batch
JHA.EPS.SharedService.Common.Validator.ValidationResultTerminal is enabled
JHA.EPS.SharedService.Common.Validator.ValidationResultFrontImage cannot be null or empty
JHA.EPS.SharedService.Common.Validator.ValidationResultRearImage cannot be null or empty
JHA.EPS.SharedService.Common.Validator.ValidationResultCustomer exists in our system
JHA.EPS.SharedService.Common.Validator.ValidationResultCustomer is valid for association