Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation postAccountsAccountBankAccountsId
Synopsis
- postAccountsAccountBankAccountsId :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> Text -> Text -> Maybe PostAccountsAccountBankAccountsIdRequestBody -> m (Either HttpException (Response PostAccountsAccountBankAccountsIdResponse))
- postAccountsAccountBankAccountsIdRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> Text -> Text -> Maybe PostAccountsAccountBankAccountsIdRequestBody -> m (Either HttpException (Response ByteString))
- postAccountsAccountBankAccountsIdM :: forall m s. (MonadHTTP m, SecurityScheme s) => Text -> Text -> Maybe PostAccountsAccountBankAccountsIdRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostAccountsAccountBankAccountsIdResponse))
- postAccountsAccountBankAccountsIdRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => Text -> Text -> Maybe PostAccountsAccountBankAccountsIdRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString))
- data PostAccountsAccountBankAccountsIdRequestBody = PostAccountsAccountBankAccountsIdRequestBody {
- postAccountsAccountBankAccountsIdRequestBodyAccountHolderName :: Maybe Text
- postAccountsAccountBankAccountsIdRequestBodyAccountHolderType :: Maybe PostAccountsAccountBankAccountsIdRequestBodyAccountHolderType'
- postAccountsAccountBankAccountsIdRequestBodyAddressCity :: Maybe Text
- postAccountsAccountBankAccountsIdRequestBodyAddressCountry :: Maybe Text
- postAccountsAccountBankAccountsIdRequestBodyAddressLine1 :: Maybe Text
- postAccountsAccountBankAccountsIdRequestBodyAddressLine2 :: Maybe Text
- postAccountsAccountBankAccountsIdRequestBodyAddressState :: Maybe Text
- postAccountsAccountBankAccountsIdRequestBodyAddressZip :: Maybe Text
- postAccountsAccountBankAccountsIdRequestBodyDefaultForCurrency :: Maybe Bool
- postAccountsAccountBankAccountsIdRequestBodyExpMonth :: Maybe Text
- postAccountsAccountBankAccountsIdRequestBodyExpYear :: Maybe Text
- postAccountsAccountBankAccountsIdRequestBodyExpand :: Maybe ([] Text)
- postAccountsAccountBankAccountsIdRequestBodyMetadata :: Maybe PostAccountsAccountBankAccountsIdRequestBodyMetadata'
- postAccountsAccountBankAccountsIdRequestBodyName :: Maybe Text
- data PostAccountsAccountBankAccountsIdRequestBodyAccountHolderType'
- = PostAccountsAccountBankAccountsIdRequestBodyAccountHolderType'EnumOther Value
- | PostAccountsAccountBankAccountsIdRequestBodyAccountHolderType'EnumTyped Text
- | PostAccountsAccountBankAccountsIdRequestBodyAccountHolderType'EnumString_
- | PostAccountsAccountBankAccountsIdRequestBodyAccountHolderType'EnumStringCompany
- | PostAccountsAccountBankAccountsIdRequestBodyAccountHolderType'EnumStringIndividual
- data PostAccountsAccountBankAccountsIdRequestBodyMetadata' = PostAccountsAccountBankAccountsIdRequestBodyMetadata' {
- data PostAccountsAccountBankAccountsIdResponse
Documentation
postAccountsAccountBankAccountsId Source #
:: (MonadHTTP m, SecurityScheme s) | |
=> Configuration s | The configuration to use in the request |
-> Text | account | Constraints: Maximum length of 5000 |
-> Text | id |
-> Maybe PostAccountsAccountBankAccountsIdRequestBody | The request body to send |
-> m (Either HttpException (Response PostAccountsAccountBankAccountsIdResponse)) | Monad containing the result of the operation |
POST /v1/accounts/{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>
postAccountsAccountBankAccountsIdRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> Text -> Text -> Maybe PostAccountsAccountBankAccountsIdRequestBody -> m (Either HttpException (Response ByteString)) Source #
POST /v1/accounts/{account}/bank_accounts/{id}
The same as postAccountsAccountBankAccountsId
but returns the raw ByteString
postAccountsAccountBankAccountsIdM :: forall m s. (MonadHTTP m, SecurityScheme s) => Text -> Text -> Maybe PostAccountsAccountBankAccountsIdRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostAccountsAccountBankAccountsIdResponse)) Source #
POST /v1/accounts/{account}/bank_accounts/{id}
Monadic version of postAccountsAccountBankAccountsId
(use with runWithConfiguration
)
postAccountsAccountBankAccountsIdRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => Text -> Text -> Maybe PostAccountsAccountBankAccountsIdRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString)) Source #
POST /v1/accounts/{account}/bank_accounts/{id}
Monadic version of postAccountsAccountBankAccountsIdRaw
(use with runWithConfiguration
)
data PostAccountsAccountBankAccountsIdRequestBody Source #
Defines the data type for the schema postAccountsAccountBankAccountsIdRequestBody
PostAccountsAccountBankAccountsIdRequestBody | |
|
Instances
data PostAccountsAccountBankAccountsIdRequestBodyAccountHolderType' Source #
Defines the enum schema postAccountsAccountBankAccountsIdRequestBodyAccount_holder_type'
The type of entity that holds the account. This can be either `individual` or `company`.
Instances
data PostAccountsAccountBankAccountsIdRequestBodyMetadata' Source #
Defines the data type for the schema postAccountsAccountBankAccountsIdRequestBodyMetadata'
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 PostAccountsAccountBankAccountsIdResponse Source #
Represents a response of the operation postAccountsAccountBankAccountsId
.
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), PostAccountsAccountBankAccountsIdResponseError
is used.
PostAccountsAccountBankAccountsIdResponseError String | Means either no matching case available or a parse error |
PostAccountsAccountBankAccountsIdResponse200 ExternalAccount | Successful response. |
PostAccountsAccountBankAccountsIdResponseDefault Error | Error response. |