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