Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data Address = Address' {}
- newAddress :: Text -> Text -> Text -> Text -> Text -> Address
- address_addressLine2 :: Lens' Address (Maybe Text)
- address_addressLine3 :: Lens' Address (Maybe Text)
- address_contactName :: Lens' Address (Maybe Text)
- address_contactPhoneNumber :: Lens' Address (Maybe Text)
- address_districtOrCounty :: Lens' Address (Maybe Text)
- address_municipality :: Lens' Address (Maybe Text)
- address_addressLine1 :: Lens' Address Text
- address_city :: Lens' Address Text
- address_stateOrRegion :: Lens' Address Text
- address_postalCode :: Lens' Address Text
- address_countryCode :: Lens' Address Text
Documentation
Information about an address.
See: newAddress
smart constructor.
Address' | |
|
Instances
Create a value of Address
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:addressLine2:Address'
, address_addressLine2
- The second line of the address.
$sel:addressLine3:Address'
, address_addressLine3
- The third line of the address.
$sel:contactName:Address'
, address_contactName
- The name of the contact.
$sel:contactPhoneNumber:Address'
, address_contactPhoneNumber
- The phone number of the contact.
$sel:districtOrCounty:Address'
, address_districtOrCounty
- The district or county for the address.
$sel:municipality:Address'
, address_municipality
- The municipality for the address.
$sel:addressLine1:Address'
, address_addressLine1
- The first line of the address.
$sel:city:Address'
, address_city
- The city for the address.
$sel:stateOrRegion:Address'
, address_stateOrRegion
- The state for the address.
$sel:postalCode:Address'
, address_postalCode
- The postal code for the address.
$sel:countryCode:Address'
, address_countryCode
- The ISO-3166 two-letter country code for the address.