stripeapi-0.1.0.0: Stripe-Library

Safe HaskellNone
LanguageHaskell2010

StripeAPI.Operations.PostAccountLinks

Description

Contains the different functions to run the operation postAccountLinks

Synopsis

Documentation

postAccountLinks Source #

Arguments

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

The configuration to use in the request

-> PostAccountLinksRequestBody

The request body to send

-> m (Either HttpException (Response PostAccountLinksResponse))

Monad containing the result of the operation

POST /v1/account_links

<p>Creates an AccountLink object that returns a single-use Stripe URL that the user can redirect their user to in order to take them through the Connect Onboarding flow.</p>

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

POST /v1/account_links

The same as postAccountLinks but returns the raw ByteString

data PostAccountLinksRequestBody Source #

Defines the data type for the schema postAccountLinksRequestBody

Constructors

PostAccountLinksRequestBody 

Fields

data PostAccountLinksRequestBodyCollect' Source #

Defines the enum schema postAccountLinksRequestBodyCollect'

Which information the platform needs to collect from the user. One of `currently_due` or `eventually_due`. Default is `currently_due`.

data PostAccountLinksRequestBodyType' Source #

Defines the enum schema postAccountLinksRequestBodyType'

The type of account link the user is requesting. Possible values are `custom_account_verification` or `custom_account_update`.

data PostAccountLinksResponse Source #

Represents a response of the operation postAccountLinks.

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

Constructors

PostAccountLinksResponseError String

Means either no matching case available or a parse error

PostAccountLinksResponse200 AccountLink

Successful response.

PostAccountLinksResponseDefault Error

Error response.