recurly-client-0.1.0.0: Client for Recurly subscription management
Safe HaskellSafe-Inferred
LanguageHaskell2010

RecurlyClient.Operations.Deactivate_shipping_method

Description

Contains the different functions to run the operation deactivate_shipping_method

Synopsis

Documentation

deactivate_shipping_method Source #

Arguments

:: forall m. MonadHTTP m 
=> Text

shipping_method_id: Shipping Method ID or code. For ID no prefix is used e.g. `e28zov4fw0v2`. For code use prefix `code-`, e.g. `code-usps_2-day`.

-> ClientT m (Response Deactivate_shipping_methodResponse)

Monadic computation which returns the result of the operation

DELETE /shipping_methods/{shipping_method_id}

Deactivating a shipping method makes it unavailable for new subscriptions or purchases. It will not affect existing subscriptions.

data Deactivate_shipping_methodResponse Source #

Represents a response of the operation deactivate_shipping_method.

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

Constructors

Deactivate_shipping_methodResponseError String

Means either no matching case available or a parse error

Deactivate_shipping_methodResponse200 ShippingMethod

A shipping method.

Deactivate_shipping_methodResponse422 Error

Shipping method may already be inactive.

Deactivate_shipping_methodResponseDefault Error

Unexpected error.

deactivate_shipping_methodWithConfiguration Source #

Arguments

:: forall m. MonadHTTP m 
=> Configuration

The configuration to use in the request

-> Text

shipping_method_id: Shipping Method ID or code. For ID no prefix is used e.g. `e28zov4fw0v2`. For code use prefix `code-`, e.g. `code-usps_2-day`.

-> m (Response Deactivate_shipping_methodResponse)

Monadic computation which returns the result of the operation

DELETE /shipping_methods/{shipping_method_id}

The same as deactivate_shipping_method but accepts an explicit configuration.

deactivate_shipping_methodRaw Source #

Arguments

:: forall m. MonadHTTP m 
=> Text

shipping_method_id: Shipping Method ID or code. For ID no prefix is used e.g. `e28zov4fw0v2`. For code use prefix `code-`, e.g. `code-usps_2-day`.

-> ClientT m (Response ByteString)

Monadic computation which returns the result of the operation

DELETE /shipping_methods/{shipping_method_id}

The same as deactivate_shipping_method but returns the raw ByteString.

deactivate_shipping_methodWithConfigurationRaw Source #

Arguments

:: forall m. MonadHTTP m 
=> Configuration

The configuration to use in the request

-> Text

shipping_method_id: Shipping Method ID or code. For ID no prefix is used e.g. `e28zov4fw0v2`. For code use prefix `code-`, e.g. `code-usps_2-day`.

-> m (Response ByteString)

Monadic computation which returns the result of the operation

DELETE /shipping_methods/{shipping_method_id}

The same as deactivate_shipping_method but accepts an explicit configuration and returns the raw ByteString.