Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation postAccountsAccountBankAccountsId
Synopsis
- postAccountsAccountBankAccountsId :: forall m. MonadHTTP m => PostAccountsAccountBankAccountsIdParameters -> Maybe PostAccountsAccountBankAccountsIdRequestBody -> StripeT m (Response PostAccountsAccountBankAccountsIdResponse)
- data PostAccountsAccountBankAccountsIdParameters = PostAccountsAccountBankAccountsIdParameters {}
- mkPostAccountsAccountBankAccountsIdParameters :: Text -> Text -> PostAccountsAccountBankAccountsIdParameters
- 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'Variants
- postAccountsAccountBankAccountsIdRequestBodyName :: Maybe Text
- mkPostAccountsAccountBankAccountsIdRequestBody :: PostAccountsAccountBankAccountsIdRequestBody
- data PostAccountsAccountBankAccountsIdRequestBodyAccountHolderType'
- = PostAccountsAccountBankAccountsIdRequestBodyAccountHolderType'Other Value
- | PostAccountsAccountBankAccountsIdRequestBodyAccountHolderType'Typed Text
- | PostAccountsAccountBankAccountsIdRequestBodyAccountHolderType'EnumEmptyString
- | PostAccountsAccountBankAccountsIdRequestBodyAccountHolderType'EnumCompany
- | PostAccountsAccountBankAccountsIdRequestBodyAccountHolderType'EnumIndividual
- data PostAccountsAccountBankAccountsIdRequestBodyMetadata'Variants
- data PostAccountsAccountBankAccountsIdResponse
Documentation
postAccountsAccountBankAccountsId Source #
:: forall m. MonadHTTP m | |
=> PostAccountsAccountBankAccountsIdParameters | Contains all available parameters of this operation (query and path parameters) |
-> Maybe PostAccountsAccountBankAccountsIdRequestBody | The request body to send |
-> StripeT m (Response PostAccountsAccountBankAccountsIdResponse) | Monadic computation which returns 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>
data PostAccountsAccountBankAccountsIdParameters Source #
Defines the object schema located at paths./v1/accounts/{account}/bank_accounts/{id}.POST.parameters
in the specification.
PostAccountsAccountBankAccountsIdParameters | |
|
Instances
mkPostAccountsAccountBankAccountsIdParameters Source #
Create a new PostAccountsAccountBankAccountsIdParameters
with all required fields.
data PostAccountsAccountBankAccountsIdRequestBody Source #
Defines the object schema located at paths./v1/accounts/{account}/bank_accounts/{id}.POST.requestBody.content.application/x-www-form-urlencoded.schema
in the specification.
PostAccountsAccountBankAccountsIdRequestBody | |
|
Instances
mkPostAccountsAccountBankAccountsIdRequestBody :: PostAccountsAccountBankAccountsIdRequestBody Source #
Create a new PostAccountsAccountBankAccountsIdRequestBody
with all required fields.
data PostAccountsAccountBankAccountsIdRequestBodyAccountHolderType' Source #
Defines the enum schema located at paths./v1/accounts/{account}/bank_accounts/{id}.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.account_holder_type
in the specification.
The type of entity that holds the account. This can be either `individual` or `company`.
PostAccountsAccountBankAccountsIdRequestBodyAccountHolderType'Other Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
PostAccountsAccountBankAccountsIdRequestBodyAccountHolderType'Typed Text | This constructor can be used to send values to the server which are not present in the specification yet. |
PostAccountsAccountBankAccountsIdRequestBodyAccountHolderType'EnumEmptyString | Represents the JSON value |
PostAccountsAccountBankAccountsIdRequestBodyAccountHolderType'EnumCompany | Represents the JSON value |
PostAccountsAccountBankAccountsIdRequestBodyAccountHolderType'EnumIndividual | Represents the JSON value |
Instances
data PostAccountsAccountBankAccountsIdRequestBodyMetadata'Variants Source #
Defines the oneOf schema located at paths./v1/accounts/{account}/bank_accounts/{id}.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.metadata.anyOf
in the specification.
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`.
PostAccountsAccountBankAccountsIdRequestBodyMetadata'EmptyString | Represents the JSON value |
PostAccountsAccountBankAccountsIdRequestBodyMetadata'Object Object |
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. |