Copyright | (c) 2015-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 |
Updates a customer.
See: Admin Directory API Reference for directory.customers.update
.
Synopsis
- type CustomersUpdateResource = "admin" :> ("directory" :> ("v1" :> ("customers" :> (Capture "customerKey" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Customer :> Put '[JSON] Customer))))))
- customersUpdate :: Text -> Customer -> CustomersUpdate
- data CustomersUpdate
- cuCustomerKey :: Lens' CustomersUpdate Text
- cuPayload :: Lens' CustomersUpdate Customer
REST Resource
type CustomersUpdateResource = "admin" :> ("directory" :> ("v1" :> ("customers" :> (Capture "customerKey" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Customer :> Put '[JSON] Customer)))))) Source #
A resource alias for directory.customers.update
method which the
CustomersUpdate
request conforms to.
Creating a Request
Creates a value of CustomersUpdate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CustomersUpdate Source #
Updates a customer.
See: customersUpdate
smart constructor.
Instances
Request Lenses
cuCustomerKey :: Lens' CustomersUpdate Text Source #
Id of the customer to be updated