Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation postTerminalLocationsLocation
Synopsis
- postTerminalLocationsLocation :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostTerminalLocationsLocationRequestBody -> m (Either HttpException (Response PostTerminalLocationsLocationResponse))
- postTerminalLocationsLocationRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostTerminalLocationsLocationRequestBody -> m (Either HttpException (Response ByteString))
- postTerminalLocationsLocationM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostTerminalLocationsLocationRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostTerminalLocationsLocationResponse))
- postTerminalLocationsLocationRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostTerminalLocationsLocationRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString))
- data PostTerminalLocationsLocationRequestBody = PostTerminalLocationsLocationRequestBody {
- postTerminalLocationsLocationRequestBodyAddress :: Maybe PostTerminalLocationsLocationRequestBodyAddress'
- postTerminalLocationsLocationRequestBodyDisplayName :: Maybe String
- postTerminalLocationsLocationRequestBodyExpand :: Maybe ([] String)
- postTerminalLocationsLocationRequestBodyMetadata :: Maybe PostTerminalLocationsLocationRequestBodyMetadata'
- data PostTerminalLocationsLocationRequestBodyAddress' = PostTerminalLocationsLocationRequestBodyAddress' {
- postTerminalLocationsLocationRequestBodyAddress'City :: Maybe String
- postTerminalLocationsLocationRequestBodyAddress'Country :: String
- postTerminalLocationsLocationRequestBodyAddress'Line1 :: Maybe String
- postTerminalLocationsLocationRequestBodyAddress'Line2 :: Maybe String
- postTerminalLocationsLocationRequestBodyAddress'PostalCode :: Maybe String
- postTerminalLocationsLocationRequestBodyAddress'State :: Maybe String
- data PostTerminalLocationsLocationRequestBodyMetadata' = PostTerminalLocationsLocationRequestBodyMetadata' {
- data PostTerminalLocationsLocationResponse
Documentation
postTerminalLocationsLocation Source #
:: (MonadHTTP m, SecurityScheme s) | |
=> Configuration s | The configuration to use in the request |
-> String | location | Constraints: Maximum length of 5000 |
-> PostTerminalLocationsLocationRequestBody | The request body to send |
-> m (Either HttpException (Response PostTerminalLocationsLocationResponse)) | Monad containing the result of the operation |
POST /v1/terminal/locations/{location}
<p>Updates a <code>Location</code> object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.</p>
postTerminalLocationsLocationRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostTerminalLocationsLocationRequestBody -> m (Either HttpException (Response ByteString)) Source #
POST /v1/terminal/locations/{location}
The same as postTerminalLocationsLocation
but returns the raw ByteString
postTerminalLocationsLocationM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostTerminalLocationsLocationRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostTerminalLocationsLocationResponse)) Source #
POST /v1/terminal/locations/{location}
Monadic version of postTerminalLocationsLocation
(use with runWithConfiguration
)
postTerminalLocationsLocationRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostTerminalLocationsLocationRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString)) Source #
POST /v1/terminal/locations/{location}
Monadic version of postTerminalLocationsLocationRaw
(use with runWithConfiguration
)
data PostTerminalLocationsLocationRequestBody Source #
Defines the data type for the schema postTerminalLocationsLocationRequestBody
PostTerminalLocationsLocationRequestBody | |
|
data PostTerminalLocationsLocationRequestBodyAddress' Source #
Defines the data type for the schema postTerminalLocationsLocationRequestBodyAddress'
The full address of the location.
PostTerminalLocationsLocationRequestBodyAddress' | |
|
Instances
data PostTerminalLocationsLocationRequestBodyMetadata' Source #
Defines the data type for the schema postTerminalLocationsLocationRequestBodyMetadata'
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
Instances
data PostTerminalLocationsLocationResponse Source #
Represents a response of the operation postTerminalLocationsLocation
.
The response constructor is chosen by the status code of the response. If no case matches (no specific case for the response code, no range case, no default case), PostTerminalLocationsLocationResponseError
is used.
PostTerminalLocationsLocationResponseError String | Means either no matching case available or a parse error |
PostTerminalLocationsLocationResponse200 Terminal'location | Successful response. |
PostTerminalLocationsLocationResponseDefault Error | Error response. |