Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation getSkusId
Synopsis
- getSkusId :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> Maybe String -> String -> GetSkusIdRequestBody -> m (Either HttpException (Response GetSkusIdResponse))
- getSkusIdRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> Maybe String -> String -> GetSkusIdRequestBody -> m (Either HttpException (Response ByteString))
- getSkusIdM :: forall m s. (MonadHTTP m, SecurityScheme s) => Maybe String -> String -> GetSkusIdRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response GetSkusIdResponse))
- getSkusIdRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => Maybe String -> String -> GetSkusIdRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString))
- data GetSkusIdRequestBody = GetSkusIdRequestBody {
- data GetSkusIdResponse
- data GetSkusIdResponseBody200 = GetSkusIdResponseBody200 {
- getSkusIdResponseBody200Active :: Maybe Bool
- getSkusIdResponseBody200Attributes :: Maybe GetSkusIdResponseBody200Attributes'
- getSkusIdResponseBody200Created :: Maybe Integer
- getSkusIdResponseBody200Currency :: Maybe String
- getSkusIdResponseBody200Deleted :: Maybe GetSkusIdResponseBody200Deleted'
- getSkusIdResponseBody200Id :: Maybe String
- getSkusIdResponseBody200Image :: Maybe String
- getSkusIdResponseBody200Inventory :: Maybe Inventory
- getSkusIdResponseBody200Livemode :: Maybe Bool
- getSkusIdResponseBody200Metadata :: Maybe GetSkusIdResponseBody200Metadata'
- getSkusIdResponseBody200Object :: Maybe GetSkusIdResponseBody200Object'
- getSkusIdResponseBody200PackageDimensions :: Maybe GetSkusIdResponseBody200PackageDimensions'
- getSkusIdResponseBody200Price :: Maybe Integer
- getSkusIdResponseBody200Product :: Maybe GetSkusIdResponseBody200Product'Variants
- getSkusIdResponseBody200Updated :: Maybe Integer
- data GetSkusIdResponseBody200Attributes' = GetSkusIdResponseBody200Attributes' {
- data GetSkusIdResponseBody200Deleted'
- data GetSkusIdResponseBody200Metadata' = GetSkusIdResponseBody200Metadata' {
- data GetSkusIdResponseBody200Object'
- data GetSkusIdResponseBody200PackageDimensions' = GetSkusIdResponseBody200PackageDimensions' {}
- data GetSkusIdResponseBody200Product'Variants
Documentation
:: (MonadHTTP m, SecurityScheme s) | |
=> Configuration s | The configuration to use in the request |
-> Maybe String | expand: Specifies which fields in the response should be expanded. |
-> String | id | Constraints: Maximum length of 5000 |
-> GetSkusIdRequestBody | The request body to send |
-> m (Either HttpException (Response GetSkusIdResponse)) | Monad containing the result of the operation |
GET /v1/skus/{id}
<p>Retrieves the details of an existing SKU. Supply the unique SKU identifier from either a SKU creation request or from the product, and Stripe will return the corresponding SKU information.</p>
getSkusIdRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> Maybe String -> String -> GetSkusIdRequestBody -> m (Either HttpException (Response ByteString)) Source #
GET /v1/skus/{id}
The same as getSkusId
but returns the raw ByteString
getSkusIdM :: forall m s. (MonadHTTP m, SecurityScheme s) => Maybe String -> String -> GetSkusIdRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response GetSkusIdResponse)) Source #
GET /v1/skus/{id}
Monadic version of getSkusId
(use with runWithConfiguration
)
getSkusIdRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => Maybe String -> String -> GetSkusIdRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString)) Source #
GET /v1/skus/{id}
Monadic version of getSkusIdRaw
(use with runWithConfiguration
)
data GetSkusIdRequestBody Source #
Defines the data type for the schema getSkusIdRequestBody
Instances
Eq GetSkusIdRequestBody Source # | |
Defined in StripeAPI.Operations.GetSkusId (==) :: GetSkusIdRequestBody -> GetSkusIdRequestBody -> Bool # (/=) :: GetSkusIdRequestBody -> GetSkusIdRequestBody -> Bool # | |
Show GetSkusIdRequestBody Source # | |
Defined in StripeAPI.Operations.GetSkusId showsPrec :: Int -> GetSkusIdRequestBody -> ShowS # show :: GetSkusIdRequestBody -> String # showList :: [GetSkusIdRequestBody] -> ShowS # | |
ToJSON GetSkusIdRequestBody Source # | |
Defined in StripeAPI.Operations.GetSkusId toJSON :: GetSkusIdRequestBody -> Value # toEncoding :: GetSkusIdRequestBody -> Encoding # toJSONList :: [GetSkusIdRequestBody] -> Value # toEncodingList :: [GetSkusIdRequestBody] -> Encoding # | |
FromJSON GetSkusIdRequestBody Source # | |
Defined in StripeAPI.Operations.GetSkusId parseJSON :: Value -> Parser GetSkusIdRequestBody # parseJSONList :: Value -> Parser [GetSkusIdRequestBody] # |
data GetSkusIdResponse Source #
Represents a response of the operation getSkusId
.
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), GetSkusIdResponseError
is used.
GetSkusIdResponseError String | Means either no matching case available or a parse error |
GetSkusIdResponse200 GetSkusIdResponseBody200 | Successful response. |
GetSkusIdResponseDefault Error | Error response. |
Instances
Eq GetSkusIdResponse Source # | |
Defined in StripeAPI.Operations.GetSkusId (==) :: GetSkusIdResponse -> GetSkusIdResponse -> Bool # (/=) :: GetSkusIdResponse -> GetSkusIdResponse -> Bool # | |
Show GetSkusIdResponse Source # | |
Defined in StripeAPI.Operations.GetSkusId showsPrec :: Int -> GetSkusIdResponse -> ShowS # show :: GetSkusIdResponse -> String # showList :: [GetSkusIdResponse] -> ShowS # |
data GetSkusIdResponseBody200 Source #
Defines the data type for the schema GetSkusIdResponseBody200
GetSkusIdResponseBody200 | |
|
Instances
Eq GetSkusIdResponseBody200 Source # | |
Defined in StripeAPI.Operations.GetSkusId | |
Show GetSkusIdResponseBody200 Source # | |
Defined in StripeAPI.Operations.GetSkusId showsPrec :: Int -> GetSkusIdResponseBody200 -> ShowS # show :: GetSkusIdResponseBody200 -> String # showList :: [GetSkusIdResponseBody200] -> ShowS # | |
ToJSON GetSkusIdResponseBody200 Source # | |
Defined in StripeAPI.Operations.GetSkusId | |
FromJSON GetSkusIdResponseBody200 Source # | |
Defined in StripeAPI.Operations.GetSkusId |
data GetSkusIdResponseBody200Attributes' Source #
Defines the data type for the schema GetSkusIdResponseBody200Attributes'
A dictionary of attributes and values for the attributes defined by the product. If, for example, a product's attributes are `["size", "gender"]`, a valid SKU has the following dictionary of attributes: `{"size": "Medium", "gender": "Unisex"}`.
data GetSkusIdResponseBody200Deleted' Source #
Defines the enum schema GetSkusIdResponseBody200Deleted'
Always true for a deleted object
GetSkusIdResponseBody200Deleted'EnumOther Value | |
GetSkusIdResponseBody200Deleted'EnumTyped Bool | |
GetSkusIdResponseBody200Deleted'EnumBoolTrue |
data GetSkusIdResponseBody200Metadata' Source #
Defines the data type for the schema GetSkusIdResponseBody200Metadata'
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
data GetSkusIdResponseBody200Object' Source #
Defines the enum schema GetSkusIdResponseBody200Object'
String representing the object's type. Objects of the same type share the same value.
GetSkusIdResponseBody200Object'EnumOther Value | |
GetSkusIdResponseBody200Object'EnumTyped String | |
GetSkusIdResponseBody200Object'EnumStringSku |
data GetSkusIdResponseBody200PackageDimensions' Source #
Defines the data type for the schema GetSkusIdResponseBody200Package_dimensions'
The dimensions of this SKU for shipping purposes.
GetSkusIdResponseBody200PackageDimensions' | |
|
data GetSkusIdResponseBody200Product'Variants Source #
Define the one-of schema GetSkusIdResponseBody200Product'
The ID of the product this SKU is associated with. The product must be currently active.