stripeapi-0.1.0.0: Stripe-Library

Safe HaskellNone
LanguageHaskell2010

StripeAPI.Operations.PostFileLinksLink

Description

Contains the different functions to run the operation postFileLinksLink

Synopsis

Documentation

postFileLinksLink Source #

Arguments

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

The configuration to use in the request

-> String

link

-> PostFileLinksLinkRequestBody

The request body to send

-> m (Either HttpException (Response PostFileLinksLinkResponse))

Monad containing the result of the operation

POST /v1/file_links/{link}

<p>Updates an existing file link object. Expired links can no longer be updated.</p>

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

POST /v1/file_links/{link}

The same as postFileLinksLink but returns the raw ByteString

data PostFileLinksLinkRequestBody Source #

Defines the data type for the schema postFileLinksLinkRequestBody

Constructors

PostFileLinksLinkRequestBody 

Fields

data PostFileLinksLinkRequestBodyExpiresAt'OneOf1 Source #

Defines the enum schema postFileLinksLinkRequestBodyExpires_at'OneOf1

data PostFileLinksLinkRequestBodyExpiresAt'OneOf2 Source #

Defines the enum schema postFileLinksLinkRequestBodyExpires_at'OneOf2

data PostFileLinksLinkRequestBodyExpiresAt'Variants Source #

Define the one-of schema postFileLinksLinkRequestBodyExpires_at'

A future timestamp after which the link will no longer be usable, or `now` to expire the link immediately.

Instances
Eq PostFileLinksLinkRequestBodyExpiresAt'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostFileLinksLink

Show PostFileLinksLinkRequestBodyExpiresAt'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostFileLinksLink

Generic PostFileLinksLinkRequestBodyExpiresAt'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostFileLinksLink

ToJSON PostFileLinksLinkRequestBodyExpiresAt'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostFileLinksLink

FromJSON PostFileLinksLinkRequestBodyExpiresAt'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostFileLinksLink

type Rep PostFileLinksLinkRequestBodyExpiresAt'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostFileLinksLink

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

data PostFileLinksLinkRequestBodyMetadata' Source #

Defines the data type for the schema postFileLinksLinkRequestBodyMetadata'

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 PostFileLinksLinkResponse Source #

Represents a response of the operation postFileLinksLink.

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

Constructors

PostFileLinksLinkResponseError String

Means either no matching case available or a parse error

PostFileLinksLinkResponse200 FileLink

Successful response.

PostFileLinksLinkResponseDefault Error

Error response.