Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Updates the properties of a profile. The ProfileId is required for updating a customer profile.
When calling the UpdateProfile API, specifying an empty string value means that any existing value will be removed. Not specifying a string value means that any value already there will be kept.
Synopsis
- data UpdateProfile = UpdateProfile' {
- shippingAddress :: Maybe UpdateAddress
- mobilePhoneNumber :: Maybe Text
- mailingAddress :: Maybe UpdateAddress
- middleName :: Maybe Text
- personalEmailAddress :: Maybe Text
- lastName :: Maybe Text
- additionalInformation :: Maybe Text
- homePhoneNumber :: Maybe Text
- address :: Maybe UpdateAddress
- partyType :: Maybe PartyType
- businessEmailAddress :: Maybe Text
- attributes :: Maybe (HashMap Text Text)
- gender :: Maybe Gender
- phoneNumber :: Maybe Text
- accountNumber :: Maybe Text
- emailAddress :: Maybe Text
- firstName :: Maybe Text
- billingAddress :: Maybe UpdateAddress
- businessPhoneNumber :: Maybe Text
- birthDate :: Maybe Text
- businessName :: Maybe Text
- domainName :: Text
- profileId :: Text
- newUpdateProfile :: Text -> Text -> UpdateProfile
- updateProfile_shippingAddress :: Lens' UpdateProfile (Maybe UpdateAddress)
- updateProfile_mobilePhoneNumber :: Lens' UpdateProfile (Maybe Text)
- updateProfile_mailingAddress :: Lens' UpdateProfile (Maybe UpdateAddress)
- updateProfile_middleName :: Lens' UpdateProfile (Maybe Text)
- updateProfile_personalEmailAddress :: Lens' UpdateProfile (Maybe Text)
- updateProfile_lastName :: Lens' UpdateProfile (Maybe Text)
- updateProfile_additionalInformation :: Lens' UpdateProfile (Maybe Text)
- updateProfile_homePhoneNumber :: Lens' UpdateProfile (Maybe Text)
- updateProfile_address :: Lens' UpdateProfile (Maybe UpdateAddress)
- updateProfile_partyType :: Lens' UpdateProfile (Maybe PartyType)
- updateProfile_businessEmailAddress :: Lens' UpdateProfile (Maybe Text)
- updateProfile_attributes :: Lens' UpdateProfile (Maybe (HashMap Text Text))
- updateProfile_gender :: Lens' UpdateProfile (Maybe Gender)
- updateProfile_phoneNumber :: Lens' UpdateProfile (Maybe Text)
- updateProfile_accountNumber :: Lens' UpdateProfile (Maybe Text)
- updateProfile_emailAddress :: Lens' UpdateProfile (Maybe Text)
- updateProfile_firstName :: Lens' UpdateProfile (Maybe Text)
- updateProfile_billingAddress :: Lens' UpdateProfile (Maybe UpdateAddress)
- updateProfile_businessPhoneNumber :: Lens' UpdateProfile (Maybe Text)
- updateProfile_birthDate :: Lens' UpdateProfile (Maybe Text)
- updateProfile_businessName :: Lens' UpdateProfile (Maybe Text)
- updateProfile_domainName :: Lens' UpdateProfile Text
- updateProfile_profileId :: Lens' UpdateProfile Text
- data UpdateProfileResponse = UpdateProfileResponse' {
- httpStatus :: Int
- profileId :: Text
- newUpdateProfileResponse :: Int -> Text -> UpdateProfileResponse
- updateProfileResponse_httpStatus :: Lens' UpdateProfileResponse Int
- updateProfileResponse_profileId :: Lens' UpdateProfileResponse Text
Creating a Request
data UpdateProfile Source #
See: newUpdateProfile
smart constructor.
UpdateProfile' | |
|
Instances
Create a value of UpdateProfile
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:shippingAddress:UpdateProfile'
, updateProfile_shippingAddress
- The customer’s shipping address.
$sel:mobilePhoneNumber:UpdateProfile'
, updateProfile_mobilePhoneNumber
- The customer’s mobile phone number.
$sel:mailingAddress:UpdateProfile'
, updateProfile_mailingAddress
- The customer’s mailing address.
$sel:middleName:UpdateProfile'
, updateProfile_middleName
- The customer’s middle name.
$sel:personalEmailAddress:UpdateProfile'
, updateProfile_personalEmailAddress
- The customer’s personal email address.
$sel:lastName:UpdateProfile'
, updateProfile_lastName
- The customer’s last name.
$sel:additionalInformation:UpdateProfile'
, updateProfile_additionalInformation
- Any additional information relevant to the customer’s profile.
$sel:homePhoneNumber:UpdateProfile'
, updateProfile_homePhoneNumber
- The customer’s home phone number.
$sel:address:UpdateProfile'
, updateProfile_address
- A generic address associated with the customer that is not mailing,
shipping, or billing.
$sel:partyType:UpdateProfile'
, updateProfile_partyType
- The type of profile used to describe the customer.
$sel:businessEmailAddress:UpdateProfile'
, updateProfile_businessEmailAddress
- The customer’s business email address.
$sel:attributes:UpdateProfile'
, updateProfile_attributes
- A key value pair of attributes of a customer profile.
$sel:gender:UpdateProfile'
, updateProfile_gender
- The gender with which the customer identifies.
$sel:phoneNumber:UpdateProfile'
, updateProfile_phoneNumber
- The customer’s phone number, which has not been specified as a mobile,
home, or business number.
$sel:accountNumber:UpdateProfile'
, updateProfile_accountNumber
- A unique account number that you have given to the customer.
$sel:emailAddress:UpdateProfile'
, updateProfile_emailAddress
- The customer’s email address, which has not been specified as a personal
or business address.
$sel:firstName:UpdateProfile'
, updateProfile_firstName
- The customer’s first name.
$sel:billingAddress:UpdateProfile'
, updateProfile_billingAddress
- The customer’s billing address.
$sel:businessPhoneNumber:UpdateProfile'
, updateProfile_businessPhoneNumber
- The customer’s business phone number.
$sel:birthDate:UpdateProfile'
, updateProfile_birthDate
- The customer’s birth date.
$sel:businessName:UpdateProfile'
, updateProfile_businessName
- The name of the customer’s business.
$sel:domainName:UpdateProfile'
, updateProfile_domainName
- The unique name of the domain.
$sel:profileId:UpdateProfile'
, updateProfile_profileId
- The unique identifier of a customer profile.
Request Lenses
updateProfile_shippingAddress :: Lens' UpdateProfile (Maybe UpdateAddress) Source #
The customer’s shipping address.
updateProfile_mobilePhoneNumber :: Lens' UpdateProfile (Maybe Text) Source #
The customer’s mobile phone number.
updateProfile_mailingAddress :: Lens' UpdateProfile (Maybe UpdateAddress) Source #
The customer’s mailing address.
updateProfile_middleName :: Lens' UpdateProfile (Maybe Text) Source #
The customer’s middle name.
updateProfile_personalEmailAddress :: Lens' UpdateProfile (Maybe Text) Source #
The customer’s personal email address.
updateProfile_lastName :: Lens' UpdateProfile (Maybe Text) Source #
The customer’s last name.
updateProfile_additionalInformation :: Lens' UpdateProfile (Maybe Text) Source #
Any additional information relevant to the customer’s profile.
updateProfile_homePhoneNumber :: Lens' UpdateProfile (Maybe Text) Source #
The customer’s home phone number.
updateProfile_address :: Lens' UpdateProfile (Maybe UpdateAddress) Source #
A generic address associated with the customer that is not mailing, shipping, or billing.
updateProfile_partyType :: Lens' UpdateProfile (Maybe PartyType) Source #
The type of profile used to describe the customer.
updateProfile_businessEmailAddress :: Lens' UpdateProfile (Maybe Text) Source #
The customer’s business email address.
updateProfile_attributes :: Lens' UpdateProfile (Maybe (HashMap Text Text)) Source #
A key value pair of attributes of a customer profile.
updateProfile_gender :: Lens' UpdateProfile (Maybe Gender) Source #
The gender with which the customer identifies.
updateProfile_phoneNumber :: Lens' UpdateProfile (Maybe Text) Source #
The customer’s phone number, which has not been specified as a mobile, home, or business number.
updateProfile_accountNumber :: Lens' UpdateProfile (Maybe Text) Source #
A unique account number that you have given to the customer.
updateProfile_emailAddress :: Lens' UpdateProfile (Maybe Text) Source #
The customer’s email address, which has not been specified as a personal or business address.
updateProfile_firstName :: Lens' UpdateProfile (Maybe Text) Source #
The customer’s first name.
updateProfile_billingAddress :: Lens' UpdateProfile (Maybe UpdateAddress) Source #
The customer’s billing address.
updateProfile_businessPhoneNumber :: Lens' UpdateProfile (Maybe Text) Source #
The customer’s business phone number.
updateProfile_birthDate :: Lens' UpdateProfile (Maybe Text) Source #
The customer’s birth date.
updateProfile_businessName :: Lens' UpdateProfile (Maybe Text) Source #
The name of the customer’s business.
updateProfile_domainName :: Lens' UpdateProfile Text Source #
The unique name of the domain.
updateProfile_profileId :: Lens' UpdateProfile Text Source #
The unique identifier of a customer profile.
Destructuring the Response
data UpdateProfileResponse Source #
See: newUpdateProfileResponse
smart constructor.
UpdateProfileResponse' | |
|
Instances
newUpdateProfileResponse Source #
:: Int | |
-> Text | |
-> UpdateProfileResponse |
Create a value of UpdateProfileResponse
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:httpStatus:UpdateProfileResponse'
, updateProfileResponse_httpStatus
- The response's http status code.
$sel:profileId:UpdateProfile'
, updateProfileResponse_profileId
- The unique identifier of a customer profile.
Response Lenses
updateProfileResponse_httpStatus :: Lens' UpdateProfileResponse Int Source #
The response's http status code.
updateProfileResponse_profileId :: Lens' UpdateProfileResponse Text Source #
The unique identifier of a customer profile.