Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation deleteCustomersCustomerDiscount
Synopsis
- deleteCustomersCustomerDiscount :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> Text -> Maybe DeleteCustomersCustomerDiscountRequestBody -> m (Either HttpException (Response DeleteCustomersCustomerDiscountResponse))
- deleteCustomersCustomerDiscountRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> Text -> Maybe DeleteCustomersCustomerDiscountRequestBody -> m (Either HttpException (Response ByteString))
- deleteCustomersCustomerDiscountM :: forall m s. (MonadHTTP m, SecurityScheme s) => Text -> Maybe DeleteCustomersCustomerDiscountRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response DeleteCustomersCustomerDiscountResponse))
- deleteCustomersCustomerDiscountRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => Text -> Maybe DeleteCustomersCustomerDiscountRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString))
- data DeleteCustomersCustomerDiscountRequestBody = DeleteCustomersCustomerDiscountRequestBody {
- data DeleteCustomersCustomerDiscountResponse
Documentation
deleteCustomersCustomerDiscount Source #
:: (MonadHTTP m, SecurityScheme s) | |
=> Configuration s | The configuration to use in the request |
-> Text | customer | Constraints: Maximum length of 5000 |
-> Maybe DeleteCustomersCustomerDiscountRequestBody | The request body to send |
-> m (Either HttpException (Response DeleteCustomersCustomerDiscountResponse)) | Monad containing the result of the operation |
DELETE /v1/customers/{customer}/discount
<p>Removes the currently applied discount on a customer.</p>
deleteCustomersCustomerDiscountRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> Text -> Maybe DeleteCustomersCustomerDiscountRequestBody -> m (Either HttpException (Response ByteString)) Source #
DELETE /v1/customers/{customer}/discount
The same as deleteCustomersCustomerDiscount
but returns the raw ByteString
deleteCustomersCustomerDiscountM :: forall m s. (MonadHTTP m, SecurityScheme s) => Text -> Maybe DeleteCustomersCustomerDiscountRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response DeleteCustomersCustomerDiscountResponse)) Source #
DELETE /v1/customers/{customer}/discount
Monadic version of deleteCustomersCustomerDiscount
(use with runWithConfiguration
)
deleteCustomersCustomerDiscountRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => Text -> Maybe DeleteCustomersCustomerDiscountRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString)) Source #
DELETE /v1/customers/{customer}/discount
Monadic version of deleteCustomersCustomerDiscountRaw
(use with runWithConfiguration
)
data DeleteCustomersCustomerDiscountRequestBody Source #
Defines the data type for the schema deleteCustomersCustomerDiscountRequestBody
Instances
data DeleteCustomersCustomerDiscountResponse Source #
Represents a response of the operation deleteCustomersCustomerDiscount
.
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), DeleteCustomersCustomerDiscountResponseError
is used.
DeleteCustomersCustomerDiscountResponseError String | Means either no matching case available or a parse error |
DeleteCustomersCustomerDiscountResponse200 DeletedDiscount | Successful response. |
DeleteCustomersCustomerDiscountResponseDefault Error | Error response. |