Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation postAccountsAccountExternalAccountsId
Synopsis
- postAccountsAccountExternalAccountsId :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> String -> PostAccountsAccountExternalAccountsIdRequestBody -> m (Either HttpException (Response PostAccountsAccountExternalAccountsIdResponse))
- postAccountsAccountExternalAccountsIdRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> String -> PostAccountsAccountExternalAccountsIdRequestBody -> m (Either HttpException (Response ByteString))
- postAccountsAccountExternalAccountsIdM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> String -> PostAccountsAccountExternalAccountsIdRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostAccountsAccountExternalAccountsIdResponse))
- postAccountsAccountExternalAccountsIdRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> String -> PostAccountsAccountExternalAccountsIdRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString))
- data PostAccountsAccountExternalAccountsIdRequestBody = PostAccountsAccountExternalAccountsIdRequestBody {
- postAccountsAccountExternalAccountsIdRequestBodyAccountHolderName :: Maybe String
- postAccountsAccountExternalAccountsIdRequestBodyAccountHolderType :: Maybe PostAccountsAccountExternalAccountsIdRequestBodyAccountHolderType'
- postAccountsAccountExternalAccountsIdRequestBodyAddressCity :: Maybe String
- postAccountsAccountExternalAccountsIdRequestBodyAddressCountry :: Maybe String
- postAccountsAccountExternalAccountsIdRequestBodyAddressLine1 :: Maybe String
- postAccountsAccountExternalAccountsIdRequestBodyAddressLine2 :: Maybe String
- postAccountsAccountExternalAccountsIdRequestBodyAddressState :: Maybe String
- postAccountsAccountExternalAccountsIdRequestBodyAddressZip :: Maybe String
- postAccountsAccountExternalAccountsIdRequestBodyDefaultForCurrency :: Maybe Bool
- postAccountsAccountExternalAccountsIdRequestBodyExpMonth :: Maybe String
- postAccountsAccountExternalAccountsIdRequestBodyExpYear :: Maybe String
- postAccountsAccountExternalAccountsIdRequestBodyExpand :: Maybe ([] String)
- postAccountsAccountExternalAccountsIdRequestBodyMetadata :: Maybe PostAccountsAccountExternalAccountsIdRequestBodyMetadata'
- postAccountsAccountExternalAccountsIdRequestBodyName :: Maybe String
- data PostAccountsAccountExternalAccountsIdRequestBodyAccountHolderType'
- = PostAccountsAccountExternalAccountsIdRequestBodyAccountHolderType'EnumOther Value
- | PostAccountsAccountExternalAccountsIdRequestBodyAccountHolderType'EnumTyped String
- | PostAccountsAccountExternalAccountsIdRequestBodyAccountHolderType'EnumString_
- | PostAccountsAccountExternalAccountsIdRequestBodyAccountHolderType'EnumStringCompany
- | PostAccountsAccountExternalAccountsIdRequestBodyAccountHolderType'EnumStringIndividual
- data PostAccountsAccountExternalAccountsIdRequestBodyMetadata' = PostAccountsAccountExternalAccountsIdRequestBodyMetadata' {
- data PostAccountsAccountExternalAccountsIdResponse
Documentation
postAccountsAccountExternalAccountsId Source #
:: (MonadHTTP m, SecurityScheme s) | |
=> Configuration s | The configuration to use in the request |
-> String | account | Constraints: Maximum length of 5000 |
-> String | id |
-> PostAccountsAccountExternalAccountsIdRequestBody | The request body to send |
-> m (Either HttpException (Response PostAccountsAccountExternalAccountsIdResponse)) | Monad containing the result of the operation |
POST /v1/accounts/{account}/external_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>
postAccountsAccountExternalAccountsIdRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> String -> PostAccountsAccountExternalAccountsIdRequestBody -> m (Either HttpException (Response ByteString)) Source #
POST /v1/accounts/{account}/external_accounts/{id}
The same as postAccountsAccountExternalAccountsId
but returns the raw ByteString
postAccountsAccountExternalAccountsIdM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> String -> PostAccountsAccountExternalAccountsIdRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostAccountsAccountExternalAccountsIdResponse)) Source #
POST /v1/accounts/{account}/external_accounts/{id}
Monadic version of postAccountsAccountExternalAccountsId
(use with runWithConfiguration
)
postAccountsAccountExternalAccountsIdRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> String -> PostAccountsAccountExternalAccountsIdRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString)) Source #
POST /v1/accounts/{account}/external_accounts/{id}
Monadic version of postAccountsAccountExternalAccountsIdRaw
(use with runWithConfiguration
)
data PostAccountsAccountExternalAccountsIdRequestBody Source #
Defines the data type for the schema postAccountsAccountExternalAccountsIdRequestBody
PostAccountsAccountExternalAccountsIdRequestBody | |
|
Instances
data PostAccountsAccountExternalAccountsIdRequestBodyAccountHolderType' Source #
Defines the enum schema postAccountsAccountExternalAccountsIdRequestBodyAccount_holder_type'
The type of entity that holds the account. This can be either `individual` or `company`.
Instances
data PostAccountsAccountExternalAccountsIdRequestBodyMetadata' Source #
Defines the data type for the schema postAccountsAccountExternalAccountsIdRequestBodyMetadata'
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 PostAccountsAccountExternalAccountsIdResponse Source #
Represents a response of the operation postAccountsAccountExternalAccountsId
.
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), PostAccountsAccountExternalAccountsIdResponseError
is used.
PostAccountsAccountExternalAccountsIdResponseError String | Means either no matching case available or a parse error |
PostAccountsAccountExternalAccountsIdResponse200 ExternalAccount | Successful response. |
PostAccountsAccountExternalAccountsIdResponseDefault Error | Error response. |