Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation postAccountLinks
Synopsis
- postAccountLinks :: forall m. MonadHTTP m => PostAccountLinksRequestBody -> StripeT m (Response PostAccountLinksResponse)
- data PostAccountLinksRequestBody = PostAccountLinksRequestBody {
- postAccountLinksRequestBodyAccount :: Text
- postAccountLinksRequestBodyCollect :: Maybe PostAccountLinksRequestBodyCollect'
- postAccountLinksRequestBodyExpand :: Maybe [Text]
- postAccountLinksRequestBodyRefreshUrl :: Maybe Text
- postAccountLinksRequestBodyReturnUrl :: Maybe Text
- postAccountLinksRequestBodyType :: PostAccountLinksRequestBodyType'
- mkPostAccountLinksRequestBody :: Text -> PostAccountLinksRequestBodyType' -> PostAccountLinksRequestBody
- data PostAccountLinksRequestBodyCollect'
- data PostAccountLinksRequestBodyType'
- data PostAccountLinksResponse
Documentation
:: 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.
PostAccountLinksRequestBody | |
|
Instances
mkPostAccountLinksRequestBody Source #
Create a new PostAccountLinksRequestBody
with all required 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`.
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 |
PostAccountLinksRequestBodyCollect'EnumEventuallyDue | Represents the JSON value |
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`.
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 |
PostAccountLinksRequestBodyType'EnumAccountUpdate | Represents the JSON value |
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.
PostAccountLinksResponseError String | Means either no matching case available or a parse error |
PostAccountLinksResponse200 AccountLink | Successful response. |
PostAccountLinksResponseDefault Error | Error response. |
Instances
Eq PostAccountLinksResponse Source # | |
Defined in StripeAPI.Operations.PostAccountLinks | |
Show PostAccountLinksResponse Source # | |
Defined in StripeAPI.Operations.PostAccountLinks showsPrec :: Int -> PostAccountLinksResponse -> ShowS # show :: PostAccountLinksResponse -> String # showList :: [PostAccountLinksResponse] -> ShowS # |