Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation postTerminalLocations
Synopsis
- postTerminalLocations :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> PostTerminalLocationsRequestBody -> m (Either HttpException (Response PostTerminalLocationsResponse))
- postTerminalLocationsRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> PostTerminalLocationsRequestBody -> m (Either HttpException (Response ByteString))
- postTerminalLocationsM :: forall m s. (MonadHTTP m, SecurityScheme s) => PostTerminalLocationsRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostTerminalLocationsResponse))
- postTerminalLocationsRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => PostTerminalLocationsRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString))
- data PostTerminalLocationsRequestBody = PostTerminalLocationsRequestBody {}
- data PostTerminalLocationsRequestBodyAddress' = PostTerminalLocationsRequestBodyAddress' {
- postTerminalLocationsRequestBodyAddress'City :: Maybe String
- postTerminalLocationsRequestBodyAddress'Country :: String
- postTerminalLocationsRequestBodyAddress'Line1 :: Maybe String
- postTerminalLocationsRequestBodyAddress'Line2 :: Maybe String
- postTerminalLocationsRequestBodyAddress'PostalCode :: Maybe String
- postTerminalLocationsRequestBodyAddress'State :: Maybe String
- data PostTerminalLocationsRequestBodyMetadata' = PostTerminalLocationsRequestBodyMetadata' {
- data PostTerminalLocationsResponse
Documentation
postTerminalLocations Source #
:: (MonadHTTP m, SecurityScheme s) | |
=> Configuration s | The configuration to use in the request |
-> PostTerminalLocationsRequestBody | The request body to send |
-> m (Either HttpException (Response PostTerminalLocationsResponse)) | Monad containing the result of the operation |
POST /v1/terminal/locations
<p>Creates a new <code>Location</code> object.</p>
postTerminalLocationsRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> PostTerminalLocationsRequestBody -> m (Either HttpException (Response ByteString)) Source #
POST /v1/terminal/locations
The same as postTerminalLocations
but returns the raw ByteString
postTerminalLocationsM :: forall m s. (MonadHTTP m, SecurityScheme s) => PostTerminalLocationsRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostTerminalLocationsResponse)) Source #
POST /v1/terminal/locations
Monadic version of postTerminalLocations
(use with runWithConfiguration
)
postTerminalLocationsRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => PostTerminalLocationsRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString)) Source #
POST /v1/terminal/locations
Monadic version of postTerminalLocationsRaw
(use with runWithConfiguration
)
data PostTerminalLocationsRequestBody Source #
Defines the data type for the schema postTerminalLocationsRequestBody
PostTerminalLocationsRequestBody | |
|
data PostTerminalLocationsRequestBodyAddress' Source #
Defines the data type for the schema postTerminalLocationsRequestBodyAddress'
The full address of the location.
PostTerminalLocationsRequestBodyAddress' | |
|
data PostTerminalLocationsRequestBodyMetadata' Source #
Defines the data type for the schema postTerminalLocationsRequestBodyMetadata'
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`.
data PostTerminalLocationsResponse Source #
Represents a response of the operation postTerminalLocations
.
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), PostTerminalLocationsResponseError
is used.
PostTerminalLocationsResponseError String | Means either no matching case available or a parse error |
PostTerminalLocationsResponse200 Terminal'location | Successful response. |
PostTerminalLocationsResponseDefault Error | Error response. |