Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation postAccountBankAccountsId
Synopsis
- postAccountBankAccountsId :: forall m. MonadHTTP m => Text -> Maybe PostAccountBankAccountsIdRequestBody -> StripeT m (Response PostAccountBankAccountsIdResponse)
- data PostAccountBankAccountsIdRequestBody = PostAccountBankAccountsIdRequestBody {
- postAccountBankAccountsIdRequestBodyAccountHolderName :: Maybe Text
- postAccountBankAccountsIdRequestBodyAccountHolderType :: Maybe PostAccountBankAccountsIdRequestBodyAccountHolderType'
- postAccountBankAccountsIdRequestBodyAddressCity :: Maybe Text
- postAccountBankAccountsIdRequestBodyAddressCountry :: Maybe Text
- postAccountBankAccountsIdRequestBodyAddressLine1 :: Maybe Text
- postAccountBankAccountsIdRequestBodyAddressLine2 :: Maybe Text
- postAccountBankAccountsIdRequestBodyAddressState :: Maybe Text
- postAccountBankAccountsIdRequestBodyAddressZip :: Maybe Text
- postAccountBankAccountsIdRequestBodyDefaultForCurrency :: Maybe Bool
- postAccountBankAccountsIdRequestBodyExpMonth :: Maybe Text
- postAccountBankAccountsIdRequestBodyExpYear :: Maybe Text
- postAccountBankAccountsIdRequestBodyExpand :: Maybe [Text]
- postAccountBankAccountsIdRequestBodyMetadata :: Maybe PostAccountBankAccountsIdRequestBodyMetadata'Variants
- postAccountBankAccountsIdRequestBodyName :: Maybe Text
- mkPostAccountBankAccountsIdRequestBody :: PostAccountBankAccountsIdRequestBody
- data PostAccountBankAccountsIdRequestBodyAccountHolderType'
- = PostAccountBankAccountsIdRequestBodyAccountHolderType'Other Value
- | PostAccountBankAccountsIdRequestBodyAccountHolderType'Typed Text
- | PostAccountBankAccountsIdRequestBodyAccountHolderType'EnumEmptyString
- | PostAccountBankAccountsIdRequestBodyAccountHolderType'EnumCompany
- | PostAccountBankAccountsIdRequestBodyAccountHolderType'EnumIndividual
- data PostAccountBankAccountsIdRequestBodyMetadata'Variants
- data PostAccountBankAccountsIdResponse
Documentation
postAccountBankAccountsId Source #
:: forall m. MonadHTTP m | |
=> Text | id |
-> Maybe PostAccountBankAccountsIdRequestBody | The request body to send |
-> StripeT m (Response PostAccountBankAccountsIdResponse) | Monadic computation which returns the result of the operation |
POST /v1/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 PostAccountBankAccountsIdRequestBody Source #
Defines the object schema located at paths./v1/account/bank_accounts/{id}.POST.requestBody.content.application/x-www-form-urlencoded.schema
in the specification.
PostAccountBankAccountsIdRequestBody | |
|
mkPostAccountBankAccountsIdRequestBody :: PostAccountBankAccountsIdRequestBody Source #
Create a new PostAccountBankAccountsIdRequestBody
with all required fields.
data PostAccountBankAccountsIdRequestBodyAccountHolderType' Source #
Defines the enum schema located at paths./v1/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`.
PostAccountBankAccountsIdRequestBodyAccountHolderType'Other Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
PostAccountBankAccountsIdRequestBodyAccountHolderType'Typed Text | This constructor can be used to send values to the server which are not present in the specification yet. |
PostAccountBankAccountsIdRequestBodyAccountHolderType'EnumEmptyString | Represents the JSON value |
PostAccountBankAccountsIdRequestBodyAccountHolderType'EnumCompany | Represents the JSON value |
PostAccountBankAccountsIdRequestBodyAccountHolderType'EnumIndividual | Represents the JSON value |
Instances
data PostAccountBankAccountsIdRequestBodyMetadata'Variants Source #
Defines the oneOf schema located at paths./v1/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`.
PostAccountBankAccountsIdRequestBodyMetadata'EmptyString | Represents the JSON value |
PostAccountBankAccountsIdRequestBodyMetadata'Object Object |
Instances
data PostAccountBankAccountsIdResponse Source #
Represents a response of the operation postAccountBankAccountsId
.
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), PostAccountBankAccountsIdResponseError
is used.
PostAccountBankAccountsIdResponseError String | Means either no matching case available or a parse error |
PostAccountBankAccountsIdResponse200 ExternalAccount | Successful response. |
PostAccountBankAccountsIdResponseDefault Error | Error response. |