Safe Haskell | None |
---|---|
Language | Haskell2010 |
StripeAPI.Operations.PostTerminalLocationsLocation
Description
Contains the different functions to run the operation postTerminalLocationsLocation
Synopsis
- postTerminalLocationsLocation :: forall m. MonadHTTP m => Text -> Maybe PostTerminalLocationsLocationRequestBody -> ClientT m (Response PostTerminalLocationsLocationResponse)
- data PostTerminalLocationsLocationRequestBody = PostTerminalLocationsLocationRequestBody {
- postTerminalLocationsLocationRequestBodyAddress :: Maybe PostTerminalLocationsLocationRequestBodyAddress'
- postTerminalLocationsLocationRequestBodyDisplayName :: Maybe Text
- postTerminalLocationsLocationRequestBodyExpand :: Maybe [Text]
- postTerminalLocationsLocationRequestBodyMetadata :: Maybe PostTerminalLocationsLocationRequestBodyMetadata'Variants
- mkPostTerminalLocationsLocationRequestBody :: PostTerminalLocationsLocationRequestBody
- data PostTerminalLocationsLocationRequestBodyAddress' = PostTerminalLocationsLocationRequestBodyAddress' {
- postTerminalLocationsLocationRequestBodyAddress'City :: Maybe Text
- postTerminalLocationsLocationRequestBodyAddress'Country :: Maybe Text
- postTerminalLocationsLocationRequestBodyAddress'Line1 :: Maybe Text
- postTerminalLocationsLocationRequestBodyAddress'Line2 :: Maybe Text
- postTerminalLocationsLocationRequestBodyAddress'PostalCode :: Maybe Text
- postTerminalLocationsLocationRequestBodyAddress'State :: Maybe Text
- mkPostTerminalLocationsLocationRequestBodyAddress' :: PostTerminalLocationsLocationRequestBodyAddress'
- data PostTerminalLocationsLocationRequestBodyMetadata'Variants
- data PostTerminalLocationsLocationResponse
Documentation
postTerminalLocationsLocation Source #
Arguments
:: forall m. MonadHTTP m | |
=> Text | location | Constraints: Maximum length of 5000 |
-> Maybe PostTerminalLocationsLocationRequestBody | The request body to send |
-> ClientT m (Response PostTerminalLocationsLocationResponse) | Monadic computation which returns 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>
data PostTerminalLocationsLocationRequestBody Source #
Defines the object schema located at paths./v1/terminal/locations/{location}.POST.requestBody.content.application/x-www-form-urlencoded.schema
in the specification.
Constructors
PostTerminalLocationsLocationRequestBody | |
Fields
|
mkPostTerminalLocationsLocationRequestBody :: PostTerminalLocationsLocationRequestBody Source #
Create a new PostTerminalLocationsLocationRequestBody
with all required fields.
data PostTerminalLocationsLocationRequestBodyAddress' Source #
Defines the object schema located at paths./v1/terminal/locations/{location}.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.address
in the specification.
The full address of the location.
Constructors
PostTerminalLocationsLocationRequestBodyAddress' | |
Fields
|
Instances
mkPostTerminalLocationsLocationRequestBodyAddress' :: PostTerminalLocationsLocationRequestBodyAddress' Source #
Create a new PostTerminalLocationsLocationRequestBodyAddress'
with all required fields.
data PostTerminalLocationsLocationRequestBodyMetadata'Variants Source #
Defines the oneOf schema located at paths./v1/terminal/locations/{location}.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.metadata.anyOf
in the specification.
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`.
Constructors
PostTerminalLocationsLocationRequestBodyMetadata'EmptyString | Represents the JSON value |
PostTerminalLocationsLocationRequestBodyMetadata'Object Object |
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.
Constructors
PostTerminalLocationsLocationResponseError String | Means either no matching case available or a parse error |
PostTerminalLocationsLocationResponse200 Terminal'location | Successful response. |
PostTerminalLocationsLocationResponseDefault Error | Error response. |