AddressSpec

data class AddressSpec(    val apiPath: IdentifierSpec = IdentifierSpec.Generic("billing_details[address]"),     val allowedCountryCodes: Set<String> = supportedBillingCountries,     val displayFields: Set<DisplayField> = emptySet(),     val showLabel: Boolean = true,     val type: AddressType = AddressType.Normal()) : FormItemSpec

Constructors

Link copied to clipboard
fun AddressSpec(    apiPath: IdentifierSpec = IdentifierSpec.Generic("billing_details[address]"),     allowedCountryCodes: Set<String> = supportedBillingCountries,     displayFields: Set<DisplayField> = emptySet(),     showLabel: Boolean = true,     type: AddressType = AddressType.Normal())

Functions

Link copied to clipboard
fun transform(initialValues: Map<IdentifierSpec, String?>, addressRepository: AddressFieldElementRepository): SectionElement

Properties

Link copied to clipboard
val allowedCountryCodes: Set<String>
Link copied to clipboard
open override val apiPath: IdentifierSpec
Link copied to clipboard
val displayFields: Set<DisplayField>
Link copied to clipboard
val showLabel: Boolean = true
Link copied to clipboard
val type: AddressType

This field is not deserialized, this field is used for the Address Element