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' {
- city :: Maybe (Sensitive Text)
- country :: Maybe (Sensitive Text)
- postDirectional :: Maybe (Sensitive Text)
- postalCode :: Maybe (Sensitive Text)
- postalCodePlus4 :: Maybe (Sensitive Text)
- preDirectional :: Maybe (Sensitive Text)
- state :: Maybe (Sensitive Text)
- streetName :: Maybe (Sensitive Text)
- streetNumber :: Maybe (Sensitive Text)
- streetSuffix :: Maybe (Sensitive Text)
- newAddress :: Address
- address_city :: Lens' Address (Maybe Text)
- address_country :: Lens' Address (Maybe Text)
- address_postDirectional :: Lens' Address (Maybe Text)
- address_postalCode :: Lens' Address (Maybe Text)
- address_postalCodePlus4 :: Lens' Address (Maybe Text)
- address_preDirectional :: Lens' Address (Maybe Text)
- address_state :: Lens' Address (Maybe Text)
- address_streetName :: Lens' Address (Maybe Text)
- address_streetNumber :: Lens' Address (Maybe Text)
- address_streetSuffix :: Lens' Address (Maybe Text)
Documentation
A validated address.
See: newAddress
smart constructor.
Address' | |
|
Instances
newAddress :: Address Source #
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:city:Address'
, address_city
- The city of an address.
$sel:country:Address'
, address_country
- The country of an address.
$sel:postDirectional:Address'
, address_postDirectional
- An address suffix location, such as the S. Unit A
in
Central Park S. Unit A
.
$sel:postalCode:Address'
, address_postalCode
- The postal code of an address.
$sel:postalCodePlus4:Address'
, address_postalCodePlus4
- The Zip + 4 or postal code + 4 of an address.
$sel:preDirectional:Address'
, address_preDirectional
- An address prefix location, such as the N
in N. Third St.
.
$sel:state:Address'
, address_state
- The state of an address.
$sel:streetName:Address'
, address_streetName
- The address street, such as 8th Avenue
.
$sel:streetNumber:Address'
, address_streetNumber
- The numeric portion of an address.
$sel:streetSuffix:Address'
, address_streetSuffix
- The address suffix, such as the N
in 8th Avenue N
.
address_postDirectional :: Lens' Address (Maybe Text) Source #
An address suffix location, such as the S. Unit A
in
Central Park S. Unit A
.
address_postalCodePlus4 :: Lens' Address (Maybe Text) Source #
The Zip + 4 or postal code + 4 of an address.