stripeapi-0.1.0.0: Stripe-Library

Safe HaskellNone
LanguageHaskell2010

StripeAPI.Operations.GetSkusId

Description

Contains the different functions to run the operation getSkusId

Synopsis

Documentation

getSkusId Source #

Arguments

:: (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

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.

Constructors

GetSkusIdResponseError String

Means either no matching case available or a parse error

GetSkusIdResponse200 GetSkusIdResponseBody200

Successful response.

GetSkusIdResponseDefault Error

Error response.

data GetSkusIdResponseBody200 Source #

Defines the data type for the schema GetSkusIdResponseBody200

Constructors

GetSkusIdResponseBody200 

Fields

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

data GetSkusIdResponseBody200PackageDimensions' Source #

Defines the data type for the schema GetSkusIdResponseBody200Package_dimensions'

The dimensions of this SKU for shipping purposes.

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.

Instances
Eq GetSkusIdResponseBody200Product'Variants Source # 
Instance details

Defined in StripeAPI.Operations.GetSkusId

Show GetSkusIdResponseBody200Product'Variants Source # 
Instance details

Defined in StripeAPI.Operations.GetSkusId

Generic GetSkusIdResponseBody200Product'Variants Source # 
Instance details

Defined in StripeAPI.Operations.GetSkusId

ToJSON GetSkusIdResponseBody200Product'Variants Source # 
Instance details

Defined in StripeAPI.Operations.GetSkusId

FromJSON GetSkusIdResponseBody200Product'Variants Source # 
Instance details

Defined in StripeAPI.Operations.GetSkusId

type Rep GetSkusIdResponseBody200Product'Variants Source # 
Instance details

Defined in StripeAPI.Operations.GetSkusId

type Rep GetSkusIdResponseBody200Product'Variants = D1 (MetaData "GetSkusIdResponseBody200Product'Variants" "StripeAPI.Operations.GetSkusId" "stripeapi-0.1.0.0-A3hJyYFbMZN6w4qjBpK6b6" False) (C1 (MetaCons "GetSkusIdResponseBody200Product'Product" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Product)) :+: C1 (MetaCons "GetSkusIdResponseBody200Product'String" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 String)))