Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
RecurlyClient.Operations.Get_shipping_method
Description
Contains the different functions to run the operation get_shipping_method
Synopsis
- get_shipping_method :: forall m. MonadHTTP m => Text -> ClientT m (Response Get_shipping_methodResponse)
- data Get_shipping_methodResponse
- get_shipping_methodWithConfiguration :: forall m. MonadHTTP m => Configuration -> Text -> m (Response Get_shipping_methodResponse)
- get_shipping_methodRaw :: forall m. MonadHTTP m => Text -> ClientT m (Response ByteString)
- get_shipping_methodWithConfigurationRaw :: forall m. MonadHTTP m => Configuration -> Text -> m (Response ByteString)
Documentation
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 Get_shipping_methodResponse) | Monadic computation which returns the result of the operation |
GET /shipping_methods/{shipping_method_id}
Fetch a shipping method
data Get_shipping_methodResponse Source #
Represents a response of the operation get_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), Get_shipping_methodResponseError
is used.
Constructors
Get_shipping_methodResponseError String | Means either no matching case available or a parse error |
Get_shipping_methodResponse200 ShippingMethod | A shipping method. |
Get_shipping_methodResponse404 Error | Incorrect site or shipping method ID. |
Get_shipping_methodResponseDefault Error | Unexpected error. |
Instances
Show Get_shipping_methodResponse Source # | |
Defined in RecurlyClient.Operations.Get_shipping_method Methods showsPrec :: Int -> Get_shipping_methodResponse -> ShowS # show :: Get_shipping_methodResponse -> String # showList :: [Get_shipping_methodResponse] -> ShowS # | |
Eq Get_shipping_methodResponse Source # | |
Defined in RecurlyClient.Operations.Get_shipping_method Methods (==) :: Get_shipping_methodResponse -> Get_shipping_methodResponse -> Bool # (/=) :: Get_shipping_methodResponse -> Get_shipping_methodResponse -> Bool # |
get_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 Get_shipping_methodResponse) | Monadic computation which returns the result of the operation |
GET /shipping_methods/{shipping_method_id}
The same as get_shipping_method
but accepts an explicit configuration.
get_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 |
GET /shipping_methods/{shipping_method_id}
The same as get_shipping_method
but returns the raw ByteString
.
get_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 |
GET /shipping_methods/{shipping_method_id}
The same as get_shipping_method
but accepts an explicit configuration and returns the raw ByteString
.