Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation postAccountBankAccountsId
Synopsis
- postAccountBankAccountsId :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostAccountBankAccountsIdRequestBody -> m (Either HttpException (Response PostAccountBankAccountsIdResponse))
- postAccountBankAccountsIdRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostAccountBankAccountsIdRequestBody -> m (Either HttpException (Response ByteString))
- postAccountBankAccountsIdM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostAccountBankAccountsIdRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostAccountBankAccountsIdResponse))
- postAccountBankAccountsIdRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostAccountBankAccountsIdRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString))
- data PostAccountBankAccountsIdRequestBody = PostAccountBankAccountsIdRequestBody {
- postAccountBankAccountsIdRequestBodyAccountHolderName :: Maybe String
- postAccountBankAccountsIdRequestBodyAccountHolderType :: Maybe PostAccountBankAccountsIdRequestBodyAccountHolderType'
- postAccountBankAccountsIdRequestBodyAddressCity :: Maybe String
- postAccountBankAccountsIdRequestBodyAddressCountry :: Maybe String
- postAccountBankAccountsIdRequestBodyAddressLine1 :: Maybe String
- postAccountBankAccountsIdRequestBodyAddressLine2 :: Maybe String
- postAccountBankAccountsIdRequestBodyAddressState :: Maybe String
- postAccountBankAccountsIdRequestBodyAddressZip :: Maybe String
- postAccountBankAccountsIdRequestBodyDefaultForCurrency :: Maybe Bool
- postAccountBankAccountsIdRequestBodyExpMonth :: Maybe String
- postAccountBankAccountsIdRequestBodyExpYear :: Maybe String
- postAccountBankAccountsIdRequestBodyExpand :: Maybe ([] String)
- postAccountBankAccountsIdRequestBodyMetadata :: Maybe PostAccountBankAccountsIdRequestBodyMetadata'
- postAccountBankAccountsIdRequestBodyName :: Maybe String
- data PostAccountBankAccountsIdRequestBodyAccountHolderType'
- = PostAccountBankAccountsIdRequestBodyAccountHolderType'EnumOther Value
- | PostAccountBankAccountsIdRequestBodyAccountHolderType'EnumTyped String
- | PostAccountBankAccountsIdRequestBodyAccountHolderType'EnumString_
- | PostAccountBankAccountsIdRequestBodyAccountHolderType'EnumStringCompany
- | PostAccountBankAccountsIdRequestBodyAccountHolderType'EnumStringIndividual
- data PostAccountBankAccountsIdRequestBodyMetadata' = PostAccountBankAccountsIdRequestBodyMetadata' {
- data PostAccountBankAccountsIdResponse
Documentation
postAccountBankAccountsId Source #
:: (MonadHTTP m, SecurityScheme s) | |
=> Configuration s | The configuration to use in the request |
-> String | id |
-> PostAccountBankAccountsIdRequestBody | The request body to send |
-> m (Either HttpException (Response PostAccountBankAccountsIdResponse)) | Monad containing the result of the operation |
POST /v1/account/bank_accounts/{id}
<p>Updates the metadata, account holder name, and account holder type of a bank account belonging to a <a href="/docs/connect/custom-accounts">Custom account</a>, and optionally sets it as the default for its currency. Other bank account details are not editable by design.</p> <p>You can re-enable a disabled bank account by performing an update call without providing any arguments or changes.</p>
postAccountBankAccountsIdRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostAccountBankAccountsIdRequestBody -> m (Either HttpException (Response ByteString)) Source #
POST /v1/account/bank_accounts/{id}
The same as postAccountBankAccountsId
but returns the raw ByteString
postAccountBankAccountsIdM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostAccountBankAccountsIdRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostAccountBankAccountsIdResponse)) Source #
POST /v1/account/bank_accounts/{id}
Monadic version of postAccountBankAccountsId
(use with runWithConfiguration
)
postAccountBankAccountsIdRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostAccountBankAccountsIdRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString)) Source #
POST /v1/account/bank_accounts/{id}
Monadic version of postAccountBankAccountsIdRaw
(use with runWithConfiguration
)
data PostAccountBankAccountsIdRequestBody Source #
Defines the data type for the schema postAccountBankAccountsIdRequestBody
PostAccountBankAccountsIdRequestBody | |
|
data PostAccountBankAccountsIdRequestBodyAccountHolderType' Source #
Defines the enum schema postAccountBankAccountsIdRequestBodyAccount_holder_type'
The type of entity that holds the account. This can be either `individual` or `company`.
Instances
data PostAccountBankAccountsIdRequestBodyMetadata' Source #
Defines the data type for the schema postAccountBankAccountsIdRequestBodyMetadata'
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 PostAccountBankAccountsIdResponse Source #
Represents a response of the operation postAccountBankAccountsId
.
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), PostAccountBankAccountsIdResponseError
is used.
PostAccountBankAccountsIdResponseError String | Means either no matching case available or a parse error |
PostAccountBankAccountsIdResponse200 ExternalAccount | Successful response. |
PostAccountBankAccountsIdResponseDefault Error | Error response. |