![JAR search and dependency download from the Maven repository](/logo.png)
com.wix.pay.creditcard.AddressDetailed.scala Maven / Gradle / Ivy
The newest version!
package com.wix.pay.creditcard
import java.util.Locale
case class AddressDetailed(street: Option[String] = None,
city: Option[String] = None,
state: Option[String] = None,
postalCode: Option[String] = None,
countryCode: Option[Locale] = None) {
val composedAddress: String = {
(street.getOrElse("") + " " + city.getOrElse("") + " " + state.getOrElse(" ") + " " +
postalCode.getOrElse(" ") + countryCode.map(_.getDisplayCountry).getOrElse("")).trim
}
val isCompletelyEmpty: Boolean =
street.isEmpty &&
city.isEmpty &&
state.isEmpty &&
postalCode.isEmpty &&
countryCode.isEmpty
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy