AddressFormUtils

Functions

Link copied to clipboard
fun initializeCountryOptions(shopperLocale: Locale, addressParams: AddressParams?, countryList: List<AddressItem>): List<AddressListItem>

Initialize country options using AddressParams.

Link copied to clipboard

Initialize state options.

Link copied to clipboard
fun isAddressRequired(addressFormUIState: AddressFormUIState): Boolean

Check whether the address is required for creation of Payment Component Data.

Link copied to clipboard
fun makeAddressData(addressOutputData: AddressOutputData, addressFormUIState: AddressFormUIState): Address?

Make Address object from the output data.

Link copied to clipboard
fun makeHouseNumberOrName(houseNumberOrName: String, apartmentSuite: String): String

Make Address.houseNumberOrName field using houseNumberOrName and apartmentSuite fields.

Link copied to clipboard

Mark the item that matches the given code as selected in the given input list.