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 -> String -> PostAccountExternalAccountsIdRequestBody -> m (Either HttpException (Response PostAccountExternalAccountsIdResponse))
- postAccountExternalAccountsIdRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostAccountExternalAccountsIdRequestBody -> m (Either HttpException (Response ByteString))
- postAccountExternalAccountsIdM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostAccountExternalAccountsIdRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostAccountExternalAccountsIdResponse))
- postAccountExternalAccountsIdRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostAccountExternalAccountsIdRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString))
- data PostAccountExternalAccountsIdRequestBody = PostAccountExternalAccountsIdRequestBody {
- postAccountExternalAccountsIdRequestBodyAccountHolderName :: Maybe String
- postAccountExternalAccountsIdRequestBodyAccountHolderType :: Maybe PostAccountExternalAccountsIdRequestBodyAccountHolderType'
- postAccountExternalAccountsIdRequestBodyAddressCity :: Maybe String
- postAccountExternalAccountsIdRequestBodyAddressCountry :: Maybe String
- postAccountExternalAccountsIdRequestBodyAddressLine1 :: Maybe String
- postAccountExternalAccountsIdRequestBodyAddressLine2 :: Maybe String
- postAccountExternalAccountsIdRequestBodyAddressState :: Maybe String
- postAccountExternalAccountsIdRequestBodyAddressZip :: Maybe String
- postAccountExternalAccountsIdRequestBodyDefaultForCurrency :: Maybe Bool
- postAccountExternalAccountsIdRequestBodyExpMonth :: Maybe String
- postAccountExternalAccountsIdRequestBodyExpYear :: Maybe String
- postAccountExternalAccountsIdRequestBodyExpand :: Maybe ([] String)
- postAccountExternalAccountsIdRequestBodyMetadata :: Maybe PostAccountExternalAccountsIdRequestBodyMetadata'
- postAccountExternalAccountsIdRequestBodyName :: Maybe String
- data PostAccountExternalAccountsIdRequestBodyAccountHolderType'
- = PostAccountExternalAccountsIdRequestBodyAccountHolderType'EnumOther Value
- | PostAccountExternalAccountsIdRequestBodyAccountHolderType'EnumTyped String
- | 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 |
-> String | id |
-> 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 -> String -> 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) => String -> 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) => String -> 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. |