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 |
Inserts a new job. Only the state field of the job should be set.
See: Google Maps Coordinate API Reference for coordinate.jobs.insert
.
- type JobsInsertResource = "coordinate" :> ("v1" :> ("teams" :> (Capture "teamId" Text :> ("jobs" :> (QueryParam "address" Text :> (QueryParam "lat" (Textual Double) :> (QueryParam "lng" (Textual Double) :> (QueryParam "title" Text :> (QueryParam "note" Text :> (QueryParam "customerPhoneNumber" Text :> (QueryParam "customerName" Text :> (QueryParam "assignee" Text :> (QueryParams "customField" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Job :> Post '[JSON] Job)))))))))))))))
- jobsInsert :: Text -> Text -> Job -> Double -> Double -> Text -> JobsInsert
- data JobsInsert
- jiNote :: Lens' JobsInsert (Maybe Text)
- jiTeamId :: Lens' JobsInsert Text
- jiCustomerPhoneNumber :: Lens' JobsInsert (Maybe Text)
- jiCustomerName :: Lens' JobsInsert (Maybe Text)
- jiAddress :: Lens' JobsInsert Text
- jiPayload :: Lens' JobsInsert Job
- jiAssignee :: Lens' JobsInsert (Maybe Text)
- jiLat :: Lens' JobsInsert Double
- jiLng :: Lens' JobsInsert Double
- jiTitle :: Lens' JobsInsert Text
- jiCustomField :: Lens' JobsInsert [Text]
REST Resource
type JobsInsertResource = "coordinate" :> ("v1" :> ("teams" :> (Capture "teamId" Text :> ("jobs" :> (QueryParam "address" Text :> (QueryParam "lat" (Textual Double) :> (QueryParam "lng" (Textual Double) :> (QueryParam "title" Text :> (QueryParam "note" Text :> (QueryParam "customerPhoneNumber" Text :> (QueryParam "customerName" Text :> (QueryParam "assignee" Text :> (QueryParams "customField" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Job :> Post '[JSON] Job))))))))))))))) Source #
A resource alias for coordinate.jobs.insert
method which the
JobsInsert
request conforms to.
Creating a Request
Creates a value of JobsInsert
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data JobsInsert Source #
Inserts a new job. Only the state field of the job should be set.
See: jobsInsert
smart constructor.
Eq JobsInsert Source # | |
Data JobsInsert Source # | |
Show JobsInsert Source # | |
Generic JobsInsert Source # | |
GoogleRequest JobsInsert Source # | |
type Rep JobsInsert Source # | |
type Scopes JobsInsert Source # | |
type Rs JobsInsert Source # | |
Request Lenses
jiCustomerPhoneNumber :: Lens' JobsInsert (Maybe Text) Source #
Customer phone number
jiCustomerName :: Lens' JobsInsert (Maybe Text) Source #
Customer name
jiAssignee :: Lens' JobsInsert (Maybe Text) Source #
Assignee email address, or empty string to unassign.
jiCustomField :: Lens' JobsInsert [Text] Source #
Sets the value of custom fields. To set a custom field, pass the field id (from /team/teamId/custom_fields), a URL escaped '=' character, and the desired value as a parameter. For example, customField=12%3DAlice. Repeat the parameter for each custom field. Note that '=' cannot appear in the parameter value. Specifying an invalid, or inactive enum field will result in an error 500.