Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation deleteCouponsCoupon
Synopsis
- deleteCouponsCoupon :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> DeleteCouponsCouponRequestBody -> m (Either HttpException (Response DeleteCouponsCouponResponse))
- deleteCouponsCouponRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> DeleteCouponsCouponRequestBody -> m (Either HttpException (Response ByteString))
- deleteCouponsCouponM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> DeleteCouponsCouponRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response DeleteCouponsCouponResponse))
- deleteCouponsCouponRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> DeleteCouponsCouponRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString))
- data DeleteCouponsCouponRequestBody = DeleteCouponsCouponRequestBody {
- data DeleteCouponsCouponResponse
Documentation
:: (MonadHTTP m, SecurityScheme s) | |
=> Configuration s | The configuration to use in the request |
-> String | coupon | Constraints: Maximum length of 5000 |
-> DeleteCouponsCouponRequestBody | The request body to send |
-> m (Either HttpException (Response DeleteCouponsCouponResponse)) | Monad containing the result of the operation |
DELETE /v1/coupons/{coupon}
<p>You can delete coupons via the <a href="https://dashboard.stripe.com/coupons">coupon management</a> page of the Stripe dashboard. However, deleting a coupon does not affect any customers who have already applied the coupon; it means that new customers can’t redeem the coupon. You can also delete coupons via the API.</p>
deleteCouponsCouponRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> DeleteCouponsCouponRequestBody -> m (Either HttpException (Response ByteString)) Source #
DELETE /v1/coupons/{coupon}
The same as deleteCouponsCoupon
but returns the raw ByteString
deleteCouponsCouponM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> DeleteCouponsCouponRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response DeleteCouponsCouponResponse)) Source #
DELETE /v1/coupons/{coupon}
Monadic version of deleteCouponsCoupon
(use with runWithConfiguration
)
deleteCouponsCouponRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> DeleteCouponsCouponRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString)) Source #
DELETE /v1/coupons/{coupon}
Monadic version of deleteCouponsCouponRaw
(use with runWithConfiguration
)
data DeleteCouponsCouponRequestBody Source #
Defines the data type for the schema deleteCouponsCouponRequestBody
data DeleteCouponsCouponResponse Source #
Represents a response of the operation deleteCouponsCoupon
.
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), DeleteCouponsCouponResponseError
is used.
DeleteCouponsCouponResponseError String | Means either no matching case available or a parse error |
DeleteCouponsCouponResponse200 DeletedCoupon | Successful response. |
DeleteCouponsCouponResponseDefault Error | Error response. |