stripeapi-0.1.0.0: Stripe-Library

Safe HaskellNone
LanguageHaskell2010

StripeAPI.Operations.DeleteProductsId

Description

Contains the different functions to run the operation deleteProductsId

Synopsis

Documentation

deleteProductsId Source #

Arguments

:: (MonadHTTP m, SecurityScheme s) 
=> Configuration s

The configuration to use in the request

-> String

id | Constraints: Maximum length of 5000

-> DeleteProductsIdRequestBody

The request body to send

-> m (Either HttpException (Response DeleteProductsIdResponse))

Monad containing the result of the operation

DELETE /v1/products/{id}

<p>Delete a product. Deleting a product with type=<code>good</code> is only possible if it has no SKUs associated with it. Deleting a product with type=<code>service</code> is only possible if it has no plans associated with it.</p>

deleteProductsIdRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> DeleteProductsIdRequestBody -> m (Either HttpException (Response ByteString)) Source #

DELETE /v1/products/{id}

The same as deleteProductsId but returns the raw ByteString

data DeleteProductsIdResponse Source #

Represents a response of the operation deleteProductsId.

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), DeleteProductsIdResponseError is used.

Constructors

DeleteProductsIdResponseError String

Means either no matching case available or a parse error

DeleteProductsIdResponse200 DeletedProduct

Successful response.

DeleteProductsIdResponseDefault Error

Error response.