CountrySpec

data class CountrySpec(val apiPath: IdentifierSpec = IdentifierSpec.Country, val allowedCountryCodes: Set<String> = CountryUtils.supportedBillingCountries) : FormItemSpec

This is the specification for a country field.

Constructors

Link copied to clipboard
constructor(apiPath: IdentifierSpec = IdentifierSpec.Country, allowedCountryCodes: Set<String> = CountryUtils.supportedBillingCountries)

Properties

Link copied to clipboard
@SerialName(value = "allowed_country_codes")
val allowedCountryCodes: Set<String>

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

Link copied to clipboard
@SerialName(value = "api_path")
open override val apiPath: IdentifierSpec

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)