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