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

:: forall m. MonadHTTP m 
=> PostAccountLinksRequestBody

The request body to send

-> StripeT m (Response PostAccountLinksResponse)

Monadic computation which returns the result of the operation

POST /v1/account_links

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

data PostAccountLinksRequestBody Source #

Defines the object schema located at paths./v1/account_links.POST.requestBody.content.application/x-www-form-urlencoded.schema in the specification.

Constructors

PostAccountLinksRequestBody 

Fields

data PostAccountLinksRequestBodyCollect' Source #

Defines the enum schema located at paths./v1/account_links.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.collect in the specification.

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

Constructors

PostAccountLinksRequestBodyCollect'Other Value

This case is used if the value encountered during decoding does not match any of the provided cases in the specification.

PostAccountLinksRequestBodyCollect'Typed Text

This constructor can be used to send values to the server which are not present in the specification yet.

PostAccountLinksRequestBodyCollect'EnumCurrentlyDue

Represents the JSON value "currently_due"

PostAccountLinksRequestBodyCollect'EnumEventuallyDue

Represents the JSON value "eventually_due"

data PostAccountLinksRequestBodyType' Source #

Defines the enum schema located at paths./v1/account_links.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.type in the specification.

The type of account link the user is requesting. Possible values are `account_onboarding` or `account_update`.

Constructors

PostAccountLinksRequestBodyType'Other Value

This case is used if the value encountered during decoding does not match any of the provided cases in the specification.

PostAccountLinksRequestBodyType'Typed Text

This constructor can be used to send values to the server which are not present in the specification yet.

PostAccountLinksRequestBodyType'EnumAccountOnboarding

Represents the JSON value "account_onboarding"

PostAccountLinksRequestBodyType'EnumAccountUpdate

Represents the JSON value "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.