Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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 and product code.
- resolveCustomer :: Text -> ResolveCustomer
- data ResolveCustomer
- rcRegistrationToken :: Lens' ResolveCustomer Text
- resolveCustomerResponse :: Int -> ResolveCustomerResponse
- data ResolveCustomerResponse
- rcrsCustomerIdentifier :: Lens' ResolveCustomerResponse (Maybe Text)
- rcrsProductCode :: Lens' ResolveCustomerResponse (Maybe Text)
- rcrsResponseStatus :: Lens' ResolveCustomerResponse Int
Creating a Request
Creates a value of ResolveCustomer
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
rcRegistrationToken
- 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.
data ResolveCustomer Source #
Contains input to the ResolveCustomer operation.
See: resolveCustomer
smart constructor.
Request Lenses
rcRegistrationToken :: 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
resolveCustomerResponse Source #
Creates a value of ResolveCustomerResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
rcrsCustomerIdentifier
- The CustomerIdentifier is used to identify an individual customer in your application. Calls to BatchMeterUsage require CustomerIdentifiers for each UsageRecord.rcrsProductCode
- 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.rcrsResponseStatus
- -- | The response status code.
data ResolveCustomerResponse Source #
The result of the ResolveCustomer operation. Contains the CustomerIdentifier and product code.
See: resolveCustomerResponse
smart constructor.
Response Lenses
rcrsCustomerIdentifier :: 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.
rcrsProductCode :: 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.
rcrsResponseStatus :: Lens' ResolveCustomerResponse Int Source #
- - | The response status code.