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: AddressRepository, shippingValues: Map<IdentifierSpec, String?>?): SectionElement

Properties

Link copied to clipboard
Link copied to clipboard
open override val apiPath: IdentifierSpec
Link copied to clipboard
Link copied to clipboard
val showLabel: Boolean = true
Link copied to clipboard

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