Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation getCustomersCustomerDiscount
Synopsis
- getCustomersCustomerDiscount :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> Maybe String -> GetCustomersCustomerDiscountRequestBody -> m (Either HttpException (Response GetCustomersCustomerDiscountResponse))
- getCustomersCustomerDiscountRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> Maybe String -> GetCustomersCustomerDiscountRequestBody -> m (Either HttpException (Response ByteString))
- getCustomersCustomerDiscountM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> Maybe String -> GetCustomersCustomerDiscountRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response GetCustomersCustomerDiscountResponse))
- getCustomersCustomerDiscountRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> Maybe String -> GetCustomersCustomerDiscountRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString))
- data GetCustomersCustomerDiscountRequestBody = GetCustomersCustomerDiscountRequestBody {
- data GetCustomersCustomerDiscountResponse
Documentation
getCustomersCustomerDiscount Source #
:: (MonadHTTP m, SecurityScheme s) | |
=> Configuration s | The configuration to use in the request |
-> String | customer | Constraints: Maximum length of 5000 |
-> Maybe String | expand: Specifies which fields in the response should be expanded. |
-> GetCustomersCustomerDiscountRequestBody | The request body to send |
-> m (Either HttpException (Response GetCustomersCustomerDiscountResponse)) | Monad containing the result of the operation |
GET /v1/customers/{customer}/discount
getCustomersCustomerDiscountRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> Maybe String -> GetCustomersCustomerDiscountRequestBody -> m (Either HttpException (Response ByteString)) Source #
GET /v1/customers/{customer}/discount
The same as getCustomersCustomerDiscount
but returns the raw ByteString
getCustomersCustomerDiscountM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> Maybe String -> GetCustomersCustomerDiscountRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response GetCustomersCustomerDiscountResponse)) Source #
GET /v1/customers/{customer}/discount
Monadic version of getCustomersCustomerDiscount
(use with runWithConfiguration
)
getCustomersCustomerDiscountRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> Maybe String -> GetCustomersCustomerDiscountRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString)) Source #
GET /v1/customers/{customer}/discount
Monadic version of getCustomersCustomerDiscountRaw
(use with runWithConfiguration
)
data GetCustomersCustomerDiscountRequestBody Source #
Defines the data type for the schema getCustomersCustomerDiscountRequestBody
data GetCustomersCustomerDiscountResponse Source #
Represents a response of the operation getCustomersCustomerDiscount
.
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), GetCustomersCustomerDiscountResponseError
is used.
GetCustomersCustomerDiscountResponseError String | Means either no matching case available or a parse error |
GetCustomersCustomerDiscountResponse200 Discount | Successful response. |
GetCustomersCustomerDiscountResponseDefault Error | Error response. |