FieldState

sealed class FieldState

Represents the state of a VGS input field. It contains information about the field's content, validity, and other metadata.

Inheritors

Types

Link copied to clipboard

The state of a card holder name field.

Link copied to clipboard

The state of a card number field.

Link copied to clipboard

The state of a CVC field.

Link copied to clipboard

The state of a date field.

Link copied to clipboard

The state of a generic text field.

Link copied to clipboard

The state of a Social Security Number (SSN) field.

Properties

Link copied to clipboard

The length of the content in the field.

Link copied to clipboard

The name of the field used for data transfer to the VGS proxy.

Link copied to clipboard

The type of the VGS input field.

Link copied to clipboard

True if the field has focus, false otherwise.

Link copied to clipboard

True if the field is empty, false otherwise.

Link copied to clipboard

True if the field is required, false otherwise.

Link copied to clipboard

True if the field's contents are valid, false otherwise.

Link copied to clipboard

A list of validation errors.

Functions

Link copied to clipboard
open override fun toString(): String