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 |
ResolveCustomer is called by a SaaS application during the registration process. When a buyer visits your website during the registration process, the buyer submits a registration token through their browser. The registration token is resolved through this API to obtain a CustomerIdentifier and product code.
Synopsis
- data ResolveCustomer = ResolveCustomer' {}
- newResolveCustomer :: Text -> ResolveCustomer
- resolveCustomer_registrationToken :: Lens' ResolveCustomer Text
- data ResolveCustomerResponse = ResolveCustomerResponse' {}
- newResolveCustomerResponse :: Int -> ResolveCustomerResponse
- resolveCustomerResponse_customerIdentifier :: Lens' ResolveCustomerResponse (Maybe Text)
- resolveCustomerResponse_productCode :: Lens' ResolveCustomerResponse (Maybe Text)
- resolveCustomerResponse_httpStatus :: Lens' ResolveCustomerResponse Int
Creating a Request
data ResolveCustomer Source #
Contains input to the ResolveCustomer operation.
See: newResolveCustomer
smart constructor.
ResolveCustomer' | |
|
Instances
Create a value of ResolveCustomer
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:registrationToken:ResolveCustomer'
, resolveCustomer_registrationToken
- When a buyer visits your website during the registration process, the
buyer submits a registration token through the browser. The registration
token is resolved to obtain a CustomerIdentifier and product code.
Request Lenses
resolveCustomer_registrationToken :: Lens' ResolveCustomer Text Source #
When a buyer visits your website during the registration process, the buyer submits a registration token through the browser. The registration token is resolved to obtain a CustomerIdentifier and product code.
Destructuring the Response
data ResolveCustomerResponse Source #
The result of the ResolveCustomer operation. Contains the CustomerIdentifier and product code.
See: newResolveCustomerResponse
smart constructor.
ResolveCustomerResponse' | |
|
Instances
newResolveCustomerResponse Source #
Create a value of ResolveCustomerResponse
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:customerIdentifier:ResolveCustomerResponse'
, resolveCustomerResponse_customerIdentifier
- The CustomerIdentifier is used to identify an individual customer in
your application. Calls to BatchMeterUsage require CustomerIdentifiers
for each UsageRecord.
$sel:productCode:ResolveCustomerResponse'
, resolveCustomerResponse_productCode
- The product code is returned to confirm that the buyer is registering
for your product. Subsequent BatchMeterUsage calls should be made using
this product code.
$sel:httpStatus:ResolveCustomerResponse'
, resolveCustomerResponse_httpStatus
- The response's http status code.
Response Lenses
resolveCustomerResponse_customerIdentifier :: Lens' ResolveCustomerResponse (Maybe Text) Source #
The CustomerIdentifier is used to identify an individual customer in your application. Calls to BatchMeterUsage require CustomerIdentifiers for each UsageRecord.
resolveCustomerResponse_productCode :: Lens' ResolveCustomerResponse (Maybe Text) Source #
The product code is returned to confirm that the buyer is registering for your product. Subsequent BatchMeterUsage calls should be made using this product code.
resolveCustomerResponse_httpStatus :: Lens' ResolveCustomerResponse Int Source #
The response's http status code.