UNPKG

@paytrail/paytrail-js-sdk

Version:

The goal for this project is to develop a Javascript SDK for the Paytrail payment service. The aim is to provide JS developers with an easier and more streamlined way to integrate our API into their applications.

18 lines (17 loc) 750 B
import { ValidationArguments, ValidatorConstraintInterface, ValidationOptions } from 'class-validator'; /** * Validator constraint for validating unitPrice based on context */ export declare class IsValidUnitPriceConstraint implements ValidatorConstraintInterface { validate(unitPrice: number, args: ValidationArguments): boolean; /** * Find the payment request context from the validation context */ private findPaymentRequestContext; defaultMessage(args: ValidationArguments): string; } /** * Custom decorator for validating unitPrice with context awareness * @param validationOptions */ export declare function IsValidUnitPrice(validationOptions?: ValidationOptions): (object: object, propertyName: string) => void;