Class AbstractPagoValidatorAbstract
Properties
Protected code
code: string = ''
Protected title
title: string = ''
Methods
Protected createCurrencyDecimals
- createCurrencyDecimals(currency: string): CurrencyDecimals
-
Returns CurrencyDecimals
Protected createPaymentType
getCode
- getCode(): string
-
Returns string
getTitle
- getTitle(): string
-
Returns string
Protected isEqual
- isEqual(expected: number, value: number): boolean
-
Parameters
-
expected: number
-
value: number
Returns boolean
Protected isGreaterThan
- isGreaterThan(value: number, compare: number): boolean
-
Parameters
-
value: number
-
compare: number
Returns boolean
registerInAssets
- registerInAssets(asserts: Asserts): void
-
Returns void
Abstract validatePago
- validatePago(pago: CNodeInterface): boolean
-
Returns boolean
In this method is where all validations must occur
Throws
ValidatePagoException Then validation fails
Throws
Error In the implementer if it does not return TRUE