CountrySpec

data class CountrySpec(val api_path: IdentifierSpec = IdentifierSpec.Country, val onlyShowCountryCodes: Set<String> = emptySet()) : FormItemSpec, RequiredItemSpec

This is the specification for a country field.

Constructors

Link copied to clipboard
fun CountrySpec(api_path: IdentifierSpec = IdentifierSpec.Country, onlyShowCountryCodes: Set<String> = emptySet())

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
fun transform(initialValues: Map<IdentifierSpec, String?>): SectionElement
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)

Properties

Link copied to clipboard
open override val api_path: IdentifierSpec
Link copied to clipboard
val onlyShowCountryCodes: Set<String>

: a list of country code that should be shown. If empty all countries will be shown.