stripeapi-0.1.0.0: Stripe-Library

Safe HaskellNone
LanguageHaskell2010

StripeAPI.Operations.PostSkusId

Description

Contains the different functions to run the operation postSkusId

Synopsis

Documentation

postSkusId Source #

Arguments

:: (MonadHTTP m, SecurityScheme s) 
=> Configuration s

The configuration to use in the request

-> String

id | Constraints: Maximum length of 5000

-> PostSkusIdRequestBody

The request body to send

-> m (Either HttpException (Response PostSkusIdResponse))

Monad containing the result of the operation

POST /v1/skus/{id}

<p>Updates the specific SKU by setting the values of the parameters passed. Any parameters not provided will be left unchanged.</p>

<p>Note that a SKU’s <code>attributes</code> are not editable. Instead, you would need to deactivate the existing SKU and create a new one with the new attribute values.</p>

postSkusIdRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostSkusIdRequestBody -> m (Either HttpException (Response ByteString)) Source #

POST /v1/skus/{id}

The same as postSkusId but returns the raw ByteString

data PostSkusIdRequestBody Source #

Defines the data type for the schema postSkusIdRequestBody

Constructors

PostSkusIdRequestBody 

Fields

data PostSkusIdRequestBodyAttributes' Source #

Defines the data type for the schema postSkusIdRequestBodyAttributes'

A dictionary of attributes and values for the attributes defined by the product. When specified, `attributes` will partially update the existing attributes dictionary on the product, with the postcondition that a value must be present for each attribute key on the product.

data PostSkusIdRequestBodyInventory' Source #

Defines the data type for the schema postSkusIdRequestBodyInventory'

Description of the SKU's inventory.

data PostSkusIdRequestBodyInventory'Type' Source #

Defines the enum schema postSkusIdRequestBodyInventory'Type'

data PostSkusIdRequestBodyInventory'Value' Source #

Defines the enum schema postSkusIdRequestBodyInventory'Value'

data PostSkusIdRequestBodyMetadata' Source #

Defines the data type for the schema postSkusIdRequestBodyMetadata'

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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.

data PostSkusIdRequestBodyPackageDimensions'OneOf1 Source #

Defines the enum schema postSkusIdRequestBodyPackage_dimensions'OneOf1

data PostSkusIdRequestBodyPackageDimensions'OneOf2 Source #

Defines the data type for the schema postSkusIdRequestBodyPackage_dimensions'OneOf2

data PostSkusIdRequestBodyPackageDimensions'Variants Source #

Define the one-of schema postSkusIdRequestBodyPackage_dimensions'

The dimensions of this SKU for shipping purposes.

Instances
Eq PostSkusIdRequestBodyPackageDimensions'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostSkusId

Show PostSkusIdRequestBodyPackageDimensions'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostSkusId

Generic PostSkusIdRequestBodyPackageDimensions'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostSkusId

ToJSON PostSkusIdRequestBodyPackageDimensions'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostSkusId

FromJSON PostSkusIdRequestBodyPackageDimensions'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostSkusId

type Rep PostSkusIdRequestBodyPackageDimensions'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostSkusId

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

data PostSkusIdResponse Source #

Represents a response of the operation postSkusId.

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), PostSkusIdResponseError is used.

Constructors

PostSkusIdResponseError String

Means either no matching case available or a parse error

PostSkusIdResponse200 Sku

Successful response.

PostSkusIdResponseDefault Error

Error response.