Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation postAccountsAccountExternalAccounts
Synopsis
- postAccountsAccountExternalAccounts :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostAccountsAccountExternalAccountsRequestBody -> m (Either HttpException (Response PostAccountsAccountExternalAccountsResponse))
- postAccountsAccountExternalAccountsRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostAccountsAccountExternalAccountsRequestBody -> m (Either HttpException (Response ByteString))
- postAccountsAccountExternalAccountsM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostAccountsAccountExternalAccountsRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostAccountsAccountExternalAccountsResponse))
- postAccountsAccountExternalAccountsRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostAccountsAccountExternalAccountsRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString))
- data PostAccountsAccountExternalAccountsRequestBody = PostAccountsAccountExternalAccountsRequestBody {
- postAccountsAccountExternalAccountsRequestBodyBankAccount :: Maybe PostAccountsAccountExternalAccountsRequestBodyBankAccount'Variants
- postAccountsAccountExternalAccountsRequestBodyDefaultForCurrency :: Maybe Bool
- postAccountsAccountExternalAccountsRequestBodyExpand :: Maybe ([] String)
- postAccountsAccountExternalAccountsRequestBodyExternalAccount :: Maybe String
- postAccountsAccountExternalAccountsRequestBodyMetadata :: Maybe PostAccountsAccountExternalAccountsRequestBodyMetadata'
- data PostAccountsAccountExternalAccountsRequestBodyBankAccount'OneOf2 = PostAccountsAccountExternalAccountsRequestBodyBankAccount'OneOf2 {
- postAccountsAccountExternalAccountsRequestBodyBankAccount'OneOf2AccountHolderName :: Maybe String
- postAccountsAccountExternalAccountsRequestBodyBankAccount'OneOf2AccountHolderType :: Maybe PostAccountsAccountExternalAccountsRequestBodyBankAccount'OneOf2AccountHolderType'
- postAccountsAccountExternalAccountsRequestBodyBankAccount'OneOf2AccountNumber :: String
- postAccountsAccountExternalAccountsRequestBodyBankAccount'OneOf2Country :: String
- postAccountsAccountExternalAccountsRequestBodyBankAccount'OneOf2Currency :: Maybe String
- postAccountsAccountExternalAccountsRequestBodyBankAccount'OneOf2Object :: Maybe PostAccountsAccountExternalAccountsRequestBodyBankAccount'OneOf2Object'
- postAccountsAccountExternalAccountsRequestBodyBankAccount'OneOf2RoutingNumber :: Maybe String
- data PostAccountsAccountExternalAccountsRequestBodyBankAccount'OneOf2AccountHolderType'
- = PostAccountsAccountExternalAccountsRequestBodyBankAccount'OneOf2AccountHolderType'EnumOther Value
- | PostAccountsAccountExternalAccountsRequestBodyBankAccount'OneOf2AccountHolderType'EnumTyped String
- | PostAccountsAccountExternalAccountsRequestBodyBankAccount'OneOf2AccountHolderType'EnumStringCompany
- | PostAccountsAccountExternalAccountsRequestBodyBankAccount'OneOf2AccountHolderType'EnumStringIndividual
- data PostAccountsAccountExternalAccountsRequestBodyBankAccount'OneOf2Object'
- data PostAccountsAccountExternalAccountsRequestBodyBankAccount'Variants
- data PostAccountsAccountExternalAccountsRequestBodyMetadata' = PostAccountsAccountExternalAccountsRequestBodyMetadata' {
- data PostAccountsAccountExternalAccountsResponse
Documentation
postAccountsAccountExternalAccounts Source #
:: (MonadHTTP m, SecurityScheme s) | |
=> Configuration s | The configuration to use in the request |
-> String | account | Constraints: Maximum length of 5000 |
-> PostAccountsAccountExternalAccountsRequestBody | The request body to send |
-> m (Either HttpException (Response PostAccountsAccountExternalAccountsResponse)) | Monad containing the result of the operation |
POST /v1/accounts/{account}/external_accounts
<p>Create an external account for a given account.</p>
postAccountsAccountExternalAccountsRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostAccountsAccountExternalAccountsRequestBody -> m (Either HttpException (Response ByteString)) Source #
POST /v1/accounts/{account}/external_accounts
The same as postAccountsAccountExternalAccounts
but returns the raw ByteString
postAccountsAccountExternalAccountsM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostAccountsAccountExternalAccountsRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostAccountsAccountExternalAccountsResponse)) Source #
POST /v1/accounts/{account}/external_accounts
Monadic version of postAccountsAccountExternalAccounts
(use with runWithConfiguration
)
postAccountsAccountExternalAccountsRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostAccountsAccountExternalAccountsRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString)) Source #
POST /v1/accounts/{account}/external_accounts
Monadic version of postAccountsAccountExternalAccountsRaw
(use with runWithConfiguration
)
data PostAccountsAccountExternalAccountsRequestBody Source #
Defines the data type for the schema postAccountsAccountExternalAccountsRequestBody
PostAccountsAccountExternalAccountsRequestBody | |
|
Instances
data PostAccountsAccountExternalAccountsRequestBodyBankAccount'OneOf2 Source #
Defines the data type for the schema postAccountsAccountExternalAccountsRequestBodyBank_account'OneOf2
Instances
data PostAccountsAccountExternalAccountsRequestBodyBankAccount'OneOf2AccountHolderType' Source #
Defines the enum schema postAccountsAccountExternalAccountsRequestBodyBank_account'OneOf2Account_holder_type'
Instances
data PostAccountsAccountExternalAccountsRequestBodyBankAccount'OneOf2Object' Source #
Defines the enum schema postAccountsAccountExternalAccountsRequestBodyBank_account'OneOf2Object'
Instances
data PostAccountsAccountExternalAccountsRequestBodyBankAccount'Variants Source #
Define the one-of schema postAccountsAccountExternalAccountsRequestBodyBank_account'
Either a token, like the ones returned by Stripe.js, or a dictionary containing a user's bank account details.
Instances
data PostAccountsAccountExternalAccountsRequestBodyMetadata' Source #
Defines the data type for the schema postAccountsAccountExternalAccountsRequestBodyMetadata'
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`.
Instances
data PostAccountsAccountExternalAccountsResponse Source #
Represents a response of the operation postAccountsAccountExternalAccounts
.
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), PostAccountsAccountExternalAccountsResponseError
is used.
PostAccountsAccountExternalAccountsResponseError String | Means either no matching case available or a parse error |
PostAccountsAccountExternalAccountsResponse200 ExternalAccount | Successful response. |
PostAccountsAccountExternalAccountsResponseDefault Error | Error response. |