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 Profile = Profile' {
- accountNumber :: Maybe Text
- additionalInformation :: Maybe Text
- address :: Maybe Address
- attributes :: Maybe (HashMap Text Text)
- billingAddress :: Maybe Address
- birthDate :: Maybe Text
- businessEmailAddress :: Maybe Text
- businessName :: Maybe Text
- businessPhoneNumber :: Maybe Text
- emailAddress :: Maybe Text
- firstName :: Maybe Text
- foundByItems :: Maybe (NonEmpty FoundByKeyValue)
- gender :: Maybe Gender
- homePhoneNumber :: Maybe Text
- lastName :: Maybe Text
- mailingAddress :: Maybe Address
- middleName :: Maybe Text
- mobilePhoneNumber :: Maybe Text
- partyType :: Maybe PartyType
- personalEmailAddress :: Maybe Text
- phoneNumber :: Maybe Text
- profileId :: Maybe Text
- shippingAddress :: Maybe Address
- newProfile :: Profile
- profile_accountNumber :: Lens' Profile (Maybe Text)
- profile_additionalInformation :: Lens' Profile (Maybe Text)
- profile_address :: Lens' Profile (Maybe Address)
- profile_attributes :: Lens' Profile (Maybe (HashMap Text Text))
- profile_billingAddress :: Lens' Profile (Maybe Address)
- profile_birthDate :: Lens' Profile (Maybe Text)
- profile_businessEmailAddress :: Lens' Profile (Maybe Text)
- profile_businessName :: Lens' Profile (Maybe Text)
- profile_businessPhoneNumber :: Lens' Profile (Maybe Text)
- profile_emailAddress :: Lens' Profile (Maybe Text)
- profile_firstName :: Lens' Profile (Maybe Text)
- profile_foundByItems :: Lens' Profile (Maybe (NonEmpty FoundByKeyValue))
- profile_gender :: Lens' Profile (Maybe Gender)
- profile_homePhoneNumber :: Lens' Profile (Maybe Text)
- profile_lastName :: Lens' Profile (Maybe Text)
- profile_mailingAddress :: Lens' Profile (Maybe Address)
- profile_middleName :: Lens' Profile (Maybe Text)
- profile_mobilePhoneNumber :: Lens' Profile (Maybe Text)
- profile_partyType :: Lens' Profile (Maybe PartyType)
- profile_personalEmailAddress :: Lens' Profile (Maybe Text)
- profile_phoneNumber :: Lens' Profile (Maybe Text)
- profile_profileId :: Lens' Profile (Maybe Text)
- profile_shippingAddress :: Lens' Profile (Maybe Address)
Documentation
The standard profile of a customer.
See: newProfile
smart constructor.
Profile' | |
|
Instances
newProfile :: Profile Source #
Create a value of Profile
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:accountNumber:Profile'
, profile_accountNumber
- A unique account number that you have given to the customer.
$sel:additionalInformation:Profile'
, profile_additionalInformation
- Any additional information relevant to the customer’s profile.
$sel:address:Profile'
, profile_address
- A generic address associated with the customer that is not mailing,
shipping, or billing.
$sel:attributes:Profile'
, profile_attributes
- A key value pair of attributes of a customer profile.
$sel:billingAddress:Profile'
, profile_billingAddress
- The customer’s billing address.
$sel:birthDate:Profile'
, profile_birthDate
- The customer’s birth date.
$sel:businessEmailAddress:Profile'
, profile_businessEmailAddress
- The customer’s business email address.
$sel:businessName:Profile'
, profile_businessName
- The name of the customer’s business.
$sel:businessPhoneNumber:Profile'
, profile_businessPhoneNumber
- The customer’s home phone number.
$sel:emailAddress:Profile'
, profile_emailAddress
- The customer’s email address, which has not been specified as a personal
or business address.
$sel:firstName:Profile'
, profile_firstName
- The customer’s first name.
$sel:foundByItems:Profile'
, profile_foundByItems
- A list of items used to find a profile returned in a
SearchProfiles
response. An item is a key-value(s) pair that matches an attribute in
the profile.
If the optional AdditionalSearchKeys
parameter was included in the
SearchProfiles
request, the FoundByItems
list should be interpreted based on the
LogicalOperator
used in the request:
AND
- The profile included in the response matched all of the search keys specified in the request. TheFoundByItems
will include all of the key-value(s) pairs that were specified in the request (as this is a requirement ofAND
search logic).OR
- The profile included in the response matched at least one of the search keys specified in the request. TheFoundByItems
will include each of the key-value(s) pairs that the profile was found by.
The OR
relationship is the default behavior if the LogicalOperator
parameter is not included in the
SearchProfiles
request.
$sel:gender:Profile'
, profile_gender
- The gender with which the customer identifies.
$sel:homePhoneNumber:Profile'
, profile_homePhoneNumber
- The customer’s home phone number.
$sel:lastName:Profile'
, profile_lastName
- The customer’s last name.
$sel:mailingAddress:Profile'
, profile_mailingAddress
- The customer’s mailing address.
$sel:middleName:Profile'
, profile_middleName
- The customer’s middle name.
$sel:mobilePhoneNumber:Profile'
, profile_mobilePhoneNumber
- The customer’s mobile phone number.
$sel:partyType:Profile'
, profile_partyType
- The type of profile used to describe the customer.
$sel:personalEmailAddress:Profile'
, profile_personalEmailAddress
- The customer’s personal email address.
$sel:phoneNumber:Profile'
, profile_phoneNumber
- The customer's phone number, which has not been specified as a mobile,
home, or business number.
$sel:profileId:Profile'
, profile_profileId
- The unique identifier of a customer profile.
$sel:shippingAddress:Profile'
, profile_shippingAddress
- The customer’s shipping address.
profile_accountNumber :: Lens' Profile (Maybe Text) Source #
A unique account number that you have given to the customer.
profile_additionalInformation :: Lens' Profile (Maybe Text) Source #
Any additional information relevant to the customer’s profile.
profile_address :: Lens' Profile (Maybe Address) Source #
A generic address associated with the customer that is not mailing, shipping, or billing.
profile_attributes :: Lens' Profile (Maybe (HashMap Text Text)) Source #
A key value pair of attributes of a customer profile.
profile_businessEmailAddress :: Lens' Profile (Maybe Text) Source #
The customer’s business email address.
profile_emailAddress :: Lens' Profile (Maybe Text) Source #
The customer’s email address, which has not been specified as a personal or business address.
profile_foundByItems :: Lens' Profile (Maybe (NonEmpty FoundByKeyValue)) Source #
A list of items used to find a profile returned in a SearchProfiles response. An item is a key-value(s) pair that matches an attribute in the profile.
If the optional AdditionalSearchKeys
parameter was included in the
SearchProfiles
request, the FoundByItems
list should be interpreted based on the
LogicalOperator
used in the request:
AND
- The profile included in the response matched all of the search keys specified in the request. TheFoundByItems
will include all of the key-value(s) pairs that were specified in the request (as this is a requirement ofAND
search logic).OR
- The profile included in the response matched at least one of the search keys specified in the request. TheFoundByItems
will include each of the key-value(s) pairs that the profile was found by.
The OR
relationship is the default behavior if the LogicalOperator
parameter is not included in the
SearchProfiles
request.
profile_gender :: Lens' Profile (Maybe Gender) Source #
The gender with which the customer identifies.
profile_partyType :: Lens' Profile (Maybe PartyType) Source #
The type of profile used to describe the customer.
profile_personalEmailAddress :: Lens' Profile (Maybe Text) Source #
The customer’s personal email address.
profile_phoneNumber :: Lens' Profile (Maybe Text) Source #
The customer's phone number, which has not been specified as a mobile, home, or business number.