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 |
Creates a standard profile.
A standard profile represents the following attributes for a customer profile in a domain.
Synopsis
- data CreateProfile = CreateProfile' {
- 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
- gender :: Maybe Gender
- genderString :: Maybe Text
- homePhoneNumber :: Maybe Text
- lastName :: Maybe Text
- mailingAddress :: Maybe Address
- middleName :: Maybe Text
- mobilePhoneNumber :: Maybe Text
- partyType :: Maybe PartyType
- partyTypeString :: Maybe Text
- personalEmailAddress :: Maybe Text
- phoneNumber :: Maybe Text
- shippingAddress :: Maybe Address
- domainName :: Text
- newCreateProfile :: Text -> CreateProfile
- createProfile_accountNumber :: Lens' CreateProfile (Maybe Text)
- createProfile_additionalInformation :: Lens' CreateProfile (Maybe Text)
- createProfile_address :: Lens' CreateProfile (Maybe Address)
- createProfile_attributes :: Lens' CreateProfile (Maybe (HashMap Text Text))
- createProfile_billingAddress :: Lens' CreateProfile (Maybe Address)
- createProfile_birthDate :: Lens' CreateProfile (Maybe Text)
- createProfile_businessEmailAddress :: Lens' CreateProfile (Maybe Text)
- createProfile_businessName :: Lens' CreateProfile (Maybe Text)
- createProfile_businessPhoneNumber :: Lens' CreateProfile (Maybe Text)
- createProfile_emailAddress :: Lens' CreateProfile (Maybe Text)
- createProfile_firstName :: Lens' CreateProfile (Maybe Text)
- createProfile_gender :: Lens' CreateProfile (Maybe Gender)
- createProfile_genderString :: Lens' CreateProfile (Maybe Text)
- createProfile_homePhoneNumber :: Lens' CreateProfile (Maybe Text)
- createProfile_lastName :: Lens' CreateProfile (Maybe Text)
- createProfile_mailingAddress :: Lens' CreateProfile (Maybe Address)
- createProfile_middleName :: Lens' CreateProfile (Maybe Text)
- createProfile_mobilePhoneNumber :: Lens' CreateProfile (Maybe Text)
- createProfile_partyType :: Lens' CreateProfile (Maybe PartyType)
- createProfile_partyTypeString :: Lens' CreateProfile (Maybe Text)
- createProfile_personalEmailAddress :: Lens' CreateProfile (Maybe Text)
- createProfile_phoneNumber :: Lens' CreateProfile (Maybe Text)
- createProfile_shippingAddress :: Lens' CreateProfile (Maybe Address)
- createProfile_domainName :: Lens' CreateProfile Text
- data CreateProfileResponse = CreateProfileResponse' {
- httpStatus :: Int
- profileId :: Text
- newCreateProfileResponse :: Int -> Text -> CreateProfileResponse
- createProfileResponse_httpStatus :: Lens' CreateProfileResponse Int
- createProfileResponse_profileId :: Lens' CreateProfileResponse Text
Creating a Request
data CreateProfile Source #
See: newCreateProfile
smart constructor.
CreateProfile' | |
|
Instances
Create a value of CreateProfile
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:
CreateProfile
, createProfile_accountNumber
- A unique account number that you have given to the customer.
CreateProfile
, createProfile_additionalInformation
- Any additional information relevant to the customer’s profile.
CreateProfile
, createProfile_address
- A generic address associated with the customer that is not mailing,
shipping, or billing.
CreateProfile
, createProfile_attributes
- A key value pair of attributes of a customer profile.
CreateProfile
, createProfile_billingAddress
- The customer’s billing address.
CreateProfile
, createProfile_birthDate
- The customer’s birth date.
CreateProfile
, createProfile_businessEmailAddress
- The customer’s business email address.
CreateProfile
, createProfile_businessName
- The name of the customer’s business.
CreateProfile
, createProfile_businessPhoneNumber
- The customer’s business phone number.
CreateProfile
, createProfile_emailAddress
- The customer’s email address, which has not been specified as a personal
or business address.
CreateProfile
, createProfile_firstName
- The customer’s first name.
CreateProfile
, createProfile_gender
- The gender with which the customer identifies.
$sel:genderString:CreateProfile'
, createProfile_genderString
- An alternative to Gender
which accepts any string as input.
CreateProfile
, createProfile_homePhoneNumber
- The customer’s home phone number.
CreateProfile
, createProfile_lastName
- The customer’s last name.
CreateProfile
, createProfile_mailingAddress
- The customer’s mailing address.
CreateProfile
, createProfile_middleName
- The customer’s middle name.
CreateProfile
, createProfile_mobilePhoneNumber
- The customer’s mobile phone number.
CreateProfile
, createProfile_partyType
- The type of profile used to describe the customer.
$sel:partyTypeString:CreateProfile'
, createProfile_partyTypeString
- An alternative to PartyType
which accepts any string as input.
CreateProfile
, createProfile_personalEmailAddress
- The customer’s personal email address.
CreateProfile
, createProfile_phoneNumber
- The customer’s phone number, which has not been specified as a mobile,
home, or business number.
CreateProfile
, createProfile_shippingAddress
- The customer’s shipping address.
CreateProfile
, createProfile_domainName
- The unique name of the domain.
Request Lenses
createProfile_accountNumber :: Lens' CreateProfile (Maybe Text) Source #
A unique account number that you have given to the customer.
createProfile_additionalInformation :: Lens' CreateProfile (Maybe Text) Source #
Any additional information relevant to the customer’s profile.
createProfile_address :: Lens' CreateProfile (Maybe Address) Source #
A generic address associated with the customer that is not mailing, shipping, or billing.
createProfile_attributes :: Lens' CreateProfile (Maybe (HashMap Text Text)) Source #
A key value pair of attributes of a customer profile.
createProfile_billingAddress :: Lens' CreateProfile (Maybe Address) Source #
The customer’s billing address.
createProfile_birthDate :: Lens' CreateProfile (Maybe Text) Source #
The customer’s birth date.
createProfile_businessEmailAddress :: Lens' CreateProfile (Maybe Text) Source #
The customer’s business email address.
createProfile_businessName :: Lens' CreateProfile (Maybe Text) Source #
The name of the customer’s business.
createProfile_businessPhoneNumber :: Lens' CreateProfile (Maybe Text) Source #
The customer’s business phone number.
createProfile_emailAddress :: Lens' CreateProfile (Maybe Text) Source #
The customer’s email address, which has not been specified as a personal or business address.
createProfile_firstName :: Lens' CreateProfile (Maybe Text) Source #
The customer’s first name.
createProfile_gender :: Lens' CreateProfile (Maybe Gender) Source #
The gender with which the customer identifies.
createProfile_genderString :: Lens' CreateProfile (Maybe Text) Source #
An alternative to Gender
which accepts any string as input.
createProfile_homePhoneNumber :: Lens' CreateProfile (Maybe Text) Source #
The customer’s home phone number.
createProfile_lastName :: Lens' CreateProfile (Maybe Text) Source #
The customer’s last name.
createProfile_mailingAddress :: Lens' CreateProfile (Maybe Address) Source #
The customer’s mailing address.
createProfile_middleName :: Lens' CreateProfile (Maybe Text) Source #
The customer’s middle name.
createProfile_mobilePhoneNumber :: Lens' CreateProfile (Maybe Text) Source #
The customer’s mobile phone number.
createProfile_partyType :: Lens' CreateProfile (Maybe PartyType) Source #
The type of profile used to describe the customer.
createProfile_partyTypeString :: Lens' CreateProfile (Maybe Text) Source #
An alternative to PartyType
which accepts any string as input.
createProfile_personalEmailAddress :: Lens' CreateProfile (Maybe Text) Source #
The customer’s personal email address.
createProfile_phoneNumber :: Lens' CreateProfile (Maybe Text) Source #
The customer’s phone number, which has not been specified as a mobile, home, or business number.
createProfile_shippingAddress :: Lens' CreateProfile (Maybe Address) Source #
The customer’s shipping address.
createProfile_domainName :: Lens' CreateProfile Text Source #
The unique name of the domain.
Destructuring the Response
data CreateProfileResponse Source #
See: newCreateProfileResponse
smart constructor.
CreateProfileResponse' | |
|
Instances
newCreateProfileResponse Source #
Create a value of CreateProfileResponse
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:CreateProfileResponse'
, createProfileResponse_httpStatus
- The response's http status code.
CreateProfileResponse
, createProfileResponse_profileId
- The unique identifier of a customer profile.
Response Lenses
createProfileResponse_httpStatus :: Lens' CreateProfileResponse Int Source #
The response's http status code.
createProfileResponse_profileId :: Lens' CreateProfileResponse Text Source #
The unique identifier of a customer profile.