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
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
Make Address.houseNumberOrName field using houseNumberOrName and apartmentSuite fields.
Link copied to clipboard
fun markAddressListItemSelected(list: List<AddressListItem>, code: String? = null): List<AddressListItem>
Mark the item that matches the given code as selected in the given input list.