Skip to main content
Version: Lab (preview)

Address

The Address class represents a physical address for billing or personal information.

Properties​

PropertyTypeDescription
line1String?Primary address line
line2String?Secondary address line (optional)
cityString?City name
regionString?State/Province/Region
postal_codeString?ZIP/Postal code
countryString?Country code

Example​

val address = Address(
line1 = "123 Main St",
line2 = "Apt 4B",
city = "Columbus",
region = "OH",
postal_code = "43215",
country = "USA"
)

Usage Notes​

  • All fields are optional and can be null
  • Used for both billing and personal addresses
  • Country defaults to USA if not specified
  • Postal code validation is performed for US addresses
  • Required when requireBillingAddress is true in configuration