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 |
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
along with the CustomerAWSAccountId
and
ProductCode
.
The API needs to called from the seller account id used to publish the SaaS application to successfully resolve the token.
For an example of using ResolveCustomer
, see
ResolveCustomer code example
in the AWS Marketplace Seller Guide.
Synopsis
- data ResolveCustomer = ResolveCustomer' {}
- newResolveCustomer :: Text -> ResolveCustomer
- resolveCustomer_registrationToken :: Lens' ResolveCustomer Text
- data ResolveCustomerResponse = ResolveCustomerResponse' {}
- newResolveCustomerResponse :: Int -> ResolveCustomerResponse
- resolveCustomerResponse_customerAWSAccountId :: Lens' ResolveCustomerResponse (Maybe Text)
- 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
along with the
CustomerAWSAccountId
and ProductCode
.
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
along with the
CustomerAWSAccountId
and ProductCode
.
Destructuring the Response
data ResolveCustomerResponse Source #
The result of the ResolveCustomer
operation. Contains the
CustomerIdentifier
along with the CustomerAWSAccountId
and
ProductCode
.
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:customerAWSAccountId:ResolveCustomerResponse'
, resolveCustomerResponse_customerAWSAccountId
- The CustomerAWSAccountId
provides the AWS account ID associated with
the CustomerIdentifier
for the individual customer.
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_customerAWSAccountId :: Lens' ResolveCustomerResponse (Maybe Text) Source #
The CustomerAWSAccountId
provides the AWS account ID associated with
the CustomerIdentifier
for the individual customer.
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.