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

RecurlyClient.Operations.Update_shipping_method

Description

Contains the different functions to run the operation update_shipping_method

Synopsis

Documentation

update_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`.

-> ShippingMethodUpdate

The request body to send

-> ClientT m (Response Update_shipping_methodResponse)

Monadic computation which returns the result of the operation

PUT /shipping_methods/{shipping_method_id}

Update an active Shipping Method

data Update_shipping_methodResponse Source #

Represents a response of the operation update_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), Update_shipping_methodResponseError is used.

Constructors

Update_shipping_methodResponseError String

Means either no matching case available or a parse error

Update_shipping_methodResponse200 ShippingMethod

The updated shipping method.

Update_shipping_methodResponse400 Error

Bad request, perhaps invalid JSON?

Update_shipping_methodResponse404 Error

Incorrect site or shipping method ID.

Update_shipping_methodResponse422 Error

Invalid request parameters

Update_shipping_methodResponseDefault Error

Unexpected error.

update_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`.

-> ShippingMethodUpdate

The request body to send

-> m (Response Update_shipping_methodResponse)

Monadic computation which returns the result of the operation

PUT /shipping_methods/{shipping_method_id}

The same as update_shipping_method but accepts an explicit configuration.

update_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`.

-> ShippingMethodUpdate

The request body to send

-> ClientT m (Response ByteString)

Monadic computation which returns the result of the operation

PUT /shipping_methods/{shipping_method_id}

The same as update_shipping_method but returns the raw ByteString.

update_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`.

-> ShippingMethodUpdate

The request body to send

-> m (Response ByteString)

Monadic computation which returns the result of the operation

PUT /shipping_methods/{shipping_method_id}

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