com.fintecsystems.xs2a.java.models.form.FormFlicker.kt Maven / Gradle / Ivy
The newest version!
package com.fintecsystems.xs2a.java.models.form
import com.squareup.moshi.Json
/**
*
* @param name The name of the form element
* @param value The set value of the form element
* @param code The actual flicker image as an array representation (0 = black bar, 1 = white bar)
* @param label The label of the form element
* @param validation List of validation rules, concatenated with a pipe character
* @param invalid Indicates whether the validation of the element failed
* @param failedValidationRules A list of failed validation rules (concatenated with a pipe character)
* @param validationError The validation error (human readable)
*/
data class FormFlicker (
/* The name of the form element */
@Json(name = "name")
override var name: String,
/* The set value of the form element */
@Json(name = "value")
var value: String,
/* The actual flicker image as an array representation (0 = black bar, 1 = white bar) */
@Json(name = "code")
var code: List>,
/* The label of the form element */
@Json(name = "label")
var label: String,
/* List of validation rules, concatenated with a pipe character */
@Json(name = "validation")
var validation: String,
/* Indicates whether the validation of the element failed */
@Json(name = "invalid")
var invalid: Boolean,
/* A list of failed validation rules. String if empty and List of Strings if populated */
@Json(name = "failed_validation_rules")
var failedValidationRules: Any,
/* The validation error (human readable) */
@Json(name = "validation_error")
var validationError: String
) : FormNameBase()