Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation postAccountExternalAccounts
Synopsis
- postAccountExternalAccounts :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> PostAccountExternalAccountsRequestBody -> m (Either HttpException (Response PostAccountExternalAccountsResponse))
- postAccountExternalAccountsRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> PostAccountExternalAccountsRequestBody -> m (Either HttpException (Response ByteString))
- postAccountExternalAccountsM :: forall m s. (MonadHTTP m, SecurityScheme s) => PostAccountExternalAccountsRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostAccountExternalAccountsResponse))
- postAccountExternalAccountsRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => PostAccountExternalAccountsRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString))
- data PostAccountExternalAccountsRequestBody = PostAccountExternalAccountsRequestBody {
- postAccountExternalAccountsRequestBodyBankAccount :: Maybe PostAccountExternalAccountsRequestBodyBankAccount'Variants
- postAccountExternalAccountsRequestBodyDefaultForCurrency :: Maybe Bool
- postAccountExternalAccountsRequestBodyExpand :: Maybe ([] String)
- postAccountExternalAccountsRequestBodyExternalAccount :: Maybe String
- postAccountExternalAccountsRequestBodyMetadata :: Maybe PostAccountExternalAccountsRequestBodyMetadata'
- data PostAccountExternalAccountsRequestBodyBankAccount'OneOf2 = PostAccountExternalAccountsRequestBodyBankAccount'OneOf2 {
- postAccountExternalAccountsRequestBodyBankAccount'OneOf2AccountHolderName :: Maybe String
- postAccountExternalAccountsRequestBodyBankAccount'OneOf2AccountHolderType :: Maybe PostAccountExternalAccountsRequestBodyBankAccount'OneOf2AccountHolderType'
- postAccountExternalAccountsRequestBodyBankAccount'OneOf2AccountNumber :: String
- postAccountExternalAccountsRequestBodyBankAccount'OneOf2Country :: String
- postAccountExternalAccountsRequestBodyBankAccount'OneOf2Currency :: Maybe String
- postAccountExternalAccountsRequestBodyBankAccount'OneOf2Object :: Maybe PostAccountExternalAccountsRequestBodyBankAccount'OneOf2Object'
- postAccountExternalAccountsRequestBodyBankAccount'OneOf2RoutingNumber :: Maybe String
- data PostAccountExternalAccountsRequestBodyBankAccount'OneOf2AccountHolderType'
- = PostAccountExternalAccountsRequestBodyBankAccount'OneOf2AccountHolderType'EnumOther Value
- | PostAccountExternalAccountsRequestBodyBankAccount'OneOf2AccountHolderType'EnumTyped String
- | PostAccountExternalAccountsRequestBodyBankAccount'OneOf2AccountHolderType'EnumStringCompany
- | PostAccountExternalAccountsRequestBodyBankAccount'OneOf2AccountHolderType'EnumStringIndividual
- data PostAccountExternalAccountsRequestBodyBankAccount'OneOf2Object'
- data PostAccountExternalAccountsRequestBodyBankAccount'Variants
- data PostAccountExternalAccountsRequestBodyMetadata' = PostAccountExternalAccountsRequestBodyMetadata' {
- data PostAccountExternalAccountsResponse
Documentation
postAccountExternalAccounts Source #
:: (MonadHTTP m, SecurityScheme s) | |
=> Configuration s | The configuration to use in the request |
-> PostAccountExternalAccountsRequestBody | The request body to send |
-> m (Either HttpException (Response PostAccountExternalAccountsResponse)) | Monad containing the result of the operation |
POST /v1/account/external_accounts
<p>Create an external account for a given account.</p>
postAccountExternalAccountsRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> PostAccountExternalAccountsRequestBody -> m (Either HttpException (Response ByteString)) Source #
POST /v1/account/external_accounts
The same as postAccountExternalAccounts
but returns the raw ByteString
postAccountExternalAccountsM :: forall m s. (MonadHTTP m, SecurityScheme s) => PostAccountExternalAccountsRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostAccountExternalAccountsResponse)) Source #
POST /v1/account/external_accounts
Monadic version of postAccountExternalAccounts
(use with runWithConfiguration
)
postAccountExternalAccountsRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => PostAccountExternalAccountsRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString)) Source #
POST /v1/account/external_accounts
Monadic version of postAccountExternalAccountsRaw
(use with runWithConfiguration
)
data PostAccountExternalAccountsRequestBody Source #
Defines the data type for the schema postAccountExternalAccountsRequestBody
PostAccountExternalAccountsRequestBody | |
|
data PostAccountExternalAccountsRequestBodyBankAccount'OneOf2 Source #
Defines the data type for the schema postAccountExternalAccountsRequestBodyBank_account'OneOf2
Instances
data PostAccountExternalAccountsRequestBodyBankAccount'OneOf2AccountHolderType' Source #
Defines the enum schema postAccountExternalAccountsRequestBodyBank_account'OneOf2Account_holder_type'
Instances
data PostAccountExternalAccountsRequestBodyBankAccount'OneOf2Object' Source #
Defines the enum schema postAccountExternalAccountsRequestBodyBank_account'OneOf2Object'
Instances
data PostAccountExternalAccountsRequestBodyBankAccount'Variants Source #
Define the one-of schema postAccountExternalAccountsRequestBodyBank_account'
Either a token, like the ones returned by Stripe.js, or a dictionary containing a user's bank account details.
Instances
data PostAccountExternalAccountsRequestBodyMetadata' Source #
Defines the data type for the schema postAccountExternalAccountsRequestBodyMetadata'
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 PostAccountExternalAccountsResponse Source #
Represents a response of the operation postAccountExternalAccounts
.
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), PostAccountExternalAccountsResponseError
is used.
PostAccountExternalAccountsResponseError String | Means either no matching case available or a parse error |
PostAccountExternalAccountsResponse200 ExternalAccount | Successful response. |
PostAccountExternalAccountsResponseDefault Error | Error response. |