Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation postAccountExternalAccountsId
Synopsis
- postAccountExternalAccountsId :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> Text -> Maybe PostAccountExternalAccountsIdRequestBody -> m (Either HttpException (Response PostAccountExternalAccountsIdResponse))
- postAccountExternalAccountsIdRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> Text -> Maybe PostAccountExternalAccountsIdRequestBody -> m (Either HttpException (Response ByteString))
- postAccountExternalAccountsIdM :: forall m s. (MonadHTTP m, SecurityScheme s) => Text -> Maybe PostAccountExternalAccountsIdRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostAccountExternalAccountsIdResponse))
- postAccountExternalAccountsIdRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => Text -> Maybe PostAccountExternalAccountsIdRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString))
- data PostAccountExternalAccountsIdRequestBody = PostAccountExternalAccountsIdRequestBody {
- postAccountExternalAccountsIdRequestBodyAccountHolderName :: Maybe Text
- postAccountExternalAccountsIdRequestBodyAccountHolderType :: Maybe PostAccountExternalAccountsIdRequestBodyAccountHolderType'
- postAccountExternalAccountsIdRequestBodyAddressCity :: Maybe Text
- postAccountExternalAccountsIdRequestBodyAddressCountry :: Maybe Text
- postAccountExternalAccountsIdRequestBodyAddressLine1 :: Maybe Text
- postAccountExternalAccountsIdRequestBodyAddressLine2 :: Maybe Text
- postAccountExternalAccountsIdRequestBodyAddressState :: Maybe Text
- postAccountExternalAccountsIdRequestBodyAddressZip :: Maybe Text
- postAccountExternalAccountsIdRequestBodyDefaultForCurrency :: Maybe Bool
- postAccountExternalAccountsIdRequestBodyExpMonth :: Maybe Text
- postAccountExternalAccountsIdRequestBodyExpYear :: Maybe Text
- postAccountExternalAccountsIdRequestBodyExpand :: Maybe ([] Text)
- postAccountExternalAccountsIdRequestBodyMetadata :: Maybe PostAccountExternalAccountsIdRequestBodyMetadata'
- postAccountExternalAccountsIdRequestBodyName :: Maybe Text
- data PostAccountExternalAccountsIdRequestBodyAccountHolderType'
- = PostAccountExternalAccountsIdRequestBodyAccountHolderType'EnumOther Value
- | PostAccountExternalAccountsIdRequestBodyAccountHolderType'EnumTyped Text
- | PostAccountExternalAccountsIdRequestBodyAccountHolderType'EnumString_
- | PostAccountExternalAccountsIdRequestBodyAccountHolderType'EnumStringCompany
- | PostAccountExternalAccountsIdRequestBodyAccountHolderType'EnumStringIndividual
- data PostAccountExternalAccountsIdRequestBodyMetadata' = PostAccountExternalAccountsIdRequestBodyMetadata' {
- data PostAccountExternalAccountsIdResponse
Documentation
postAccountExternalAccountsId Source #
:: (MonadHTTP m, SecurityScheme s) | |
=> Configuration s | The configuration to use in the request |
-> Text | id |
-> Maybe PostAccountExternalAccountsIdRequestBody | The request body to send |
-> m (Either HttpException (Response PostAccountExternalAccountsIdResponse)) | Monad containing the result of the operation |
POST /v1/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>
postAccountExternalAccountsIdRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> Text -> Maybe PostAccountExternalAccountsIdRequestBody -> m (Either HttpException (Response ByteString)) Source #
POST /v1/account/external_accounts/{id}
The same as postAccountExternalAccountsId
but returns the raw ByteString
postAccountExternalAccountsIdM :: forall m s. (MonadHTTP m, SecurityScheme s) => Text -> Maybe PostAccountExternalAccountsIdRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostAccountExternalAccountsIdResponse)) Source #
POST /v1/account/external_accounts/{id}
Monadic version of postAccountExternalAccountsId
(use with runWithConfiguration
)
postAccountExternalAccountsIdRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => Text -> Maybe PostAccountExternalAccountsIdRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString)) Source #
POST /v1/account/external_accounts/{id}
Monadic version of postAccountExternalAccountsIdRaw
(use with runWithConfiguration
)
data PostAccountExternalAccountsIdRequestBody Source #
Defines the data type for the schema postAccountExternalAccountsIdRequestBody
PostAccountExternalAccountsIdRequestBody | |
|
data PostAccountExternalAccountsIdRequestBodyAccountHolderType' Source #
Defines the enum schema postAccountExternalAccountsIdRequestBodyAccount_holder_type'
The type of entity that holds the account. This can be either `individual` or `company`.
Instances
data PostAccountExternalAccountsIdRequestBodyMetadata' Source #
Defines the data type for the schema postAccountExternalAccountsIdRequestBodyMetadata'
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 PostAccountExternalAccountsIdResponse Source #
Represents a response of the operation postAccountExternalAccountsId
.
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), PostAccountExternalAccountsIdResponseError
is used.
PostAccountExternalAccountsIdResponseError String | Means either no matching case available or a parse error |
PostAccountExternalAccountsIdResponse200 ExternalAccount | Successful response. |
PostAccountExternalAccountsIdResponseDefault Error | Error response. |