| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
StripeAPI.Operations.DeleteCustomersCustomerDiscount
Description
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 #
Arguments
| :: (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}/discountThe 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}/discountMonadic 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}/discountMonadic version of deleteCustomersCustomerDiscountRaw (use with runWithConfiguration)
data DeleteCustomersCustomerDiscountRequestBody Source #
Defines the data type for the schema deleteCustomersCustomerDiscountRequestBody
Constructors
| 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.
Constructors
| DeleteCustomersCustomerDiscountResponseError String | Means either no matching case available or a parse error |
| DeleteCustomersCustomerDiscountResponse200 DeletedDiscount | Successful response. |
| DeleteCustomersCustomerDiscountResponseDefault Error | Error response. |