Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation postProducts
Synopsis
- postProducts :: forall m. MonadHTTP m => PostProductsRequestBody -> StripeT m (Response PostProductsResponse)
- data PostProductsRequestBody = PostProductsRequestBody {
- postProductsRequestBodyActive :: Maybe Bool
- postProductsRequestBodyDescription :: Maybe Text
- postProductsRequestBodyExpand :: Maybe [Text]
- postProductsRequestBodyId :: Maybe Text
- postProductsRequestBodyImages :: Maybe [Text]
- postProductsRequestBodyMetadata :: Maybe Object
- postProductsRequestBodyName :: Text
- postProductsRequestBodyPackageDimensions :: Maybe PostProductsRequestBodyPackageDimensions'
- postProductsRequestBodyShippable :: Maybe Bool
- postProductsRequestBodyStatementDescriptor :: Maybe Text
- postProductsRequestBodyTaxCode :: Maybe Text
- postProductsRequestBodyUnitLabel :: Maybe Text
- postProductsRequestBodyUrl :: Maybe Text
- mkPostProductsRequestBody :: Text -> PostProductsRequestBody
- data PostProductsRequestBodyPackageDimensions' = PostProductsRequestBodyPackageDimensions' {}
- mkPostProductsRequestBodyPackageDimensions' :: Double -> Double -> Double -> Double -> PostProductsRequestBodyPackageDimensions'
- data PostProductsResponse
Documentation
:: forall m. MonadHTTP m | |
=> PostProductsRequestBody | The request body to send |
-> StripeT m (Response PostProductsResponse) | Monadic computation which returns the result of the operation |
POST /v1/products
<p>Creates a new product object.</p>
data PostProductsRequestBody Source #
Defines the object schema located at paths./v1/products.POST.requestBody.content.application/x-www-form-urlencoded.schema
in the specification.
PostProductsRequestBody | |
|
Instances
Eq PostProductsRequestBody Source # | |
Defined in StripeAPI.Operations.PostProducts | |
Show PostProductsRequestBody Source # | |
Defined in StripeAPI.Operations.PostProducts showsPrec :: Int -> PostProductsRequestBody -> ShowS # show :: PostProductsRequestBody -> String # showList :: [PostProductsRequestBody] -> ShowS # | |
ToJSON PostProductsRequestBody Source # | |
Defined in StripeAPI.Operations.PostProducts | |
FromJSON PostProductsRequestBody Source # | |
Defined in StripeAPI.Operations.PostProducts |
mkPostProductsRequestBody Source #
Create a new PostProductsRequestBody
with all required fields.
data PostProductsRequestBodyPackageDimensions' Source #
Defines the object schema located at paths./v1/products.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.package_dimensions
in the specification.
The dimensions of this product for shipping purposes.
mkPostProductsRequestBodyPackageDimensions' Source #
Create a new PostProductsRequestBodyPackageDimensions'
with all required fields.
data PostProductsResponse Source #
Represents a response of the operation postProducts
.
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), PostProductsResponseError
is used.
PostProductsResponseError String | Means either no matching case available or a parse error |
PostProductsResponse200 Product | Successful response. |
PostProductsResponseDefault Error | Error response. |
Instances
Eq PostProductsResponse Source # | |
Defined in StripeAPI.Operations.PostProducts (==) :: PostProductsResponse -> PostProductsResponse -> Bool # (/=) :: PostProductsResponse -> PostProductsResponse -> Bool # | |
Show PostProductsResponse Source # | |
Defined in StripeAPI.Operations.PostProducts showsPrec :: Int -> PostProductsResponse -> ShowS # show :: PostProductsResponse -> String # showList :: [PostProductsResponse] -> ShowS # |