Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation postAccountsAccountExternalAccounts
Synopsis
- postAccountsAccountExternalAccounts :: forall m. MonadHTTP m => Text -> Maybe PostAccountsAccountExternalAccountsRequestBody -> ClientT m (Response PostAccountsAccountExternalAccountsResponse)
- data PostAccountsAccountExternalAccountsRequestBody = PostAccountsAccountExternalAccountsRequestBody {
- postAccountsAccountExternalAccountsRequestBodyBankAccount :: Maybe PostAccountsAccountExternalAccountsRequestBodyBankAccount'Variants
- postAccountsAccountExternalAccountsRequestBodyDefaultForCurrency :: Maybe Bool
- postAccountsAccountExternalAccountsRequestBodyExpand :: Maybe [Text]
- postAccountsAccountExternalAccountsRequestBodyExternalAccount :: Maybe Text
- postAccountsAccountExternalAccountsRequestBodyMetadata :: Maybe Object
- mkPostAccountsAccountExternalAccountsRequestBody :: PostAccountsAccountExternalAccountsRequestBody
- data PostAccountsAccountExternalAccountsRequestBodyBankAccount'OneOf1 = PostAccountsAccountExternalAccountsRequestBodyBankAccount'OneOf1 {
- postAccountsAccountExternalAccountsRequestBodyBankAccount'OneOf1AccountHolderName :: Maybe Text
- postAccountsAccountExternalAccountsRequestBodyBankAccount'OneOf1AccountHolderType :: Maybe PostAccountsAccountExternalAccountsRequestBodyBankAccount'OneOf1AccountHolderType'
- postAccountsAccountExternalAccountsRequestBodyBankAccount'OneOf1AccountNumber :: Text
- postAccountsAccountExternalAccountsRequestBodyBankAccount'OneOf1Country :: Text
- postAccountsAccountExternalAccountsRequestBodyBankAccount'OneOf1Currency :: Maybe Text
- postAccountsAccountExternalAccountsRequestBodyBankAccount'OneOf1Object :: Maybe PostAccountsAccountExternalAccountsRequestBodyBankAccount'OneOf1Object'
- postAccountsAccountExternalAccountsRequestBodyBankAccount'OneOf1RoutingNumber :: Maybe Text
- mkPostAccountsAccountExternalAccountsRequestBodyBankAccount'OneOf1 :: Text -> Text -> PostAccountsAccountExternalAccountsRequestBodyBankAccount'OneOf1
- data PostAccountsAccountExternalAccountsRequestBodyBankAccount'OneOf1AccountHolderType'
- = PostAccountsAccountExternalAccountsRequestBodyBankAccount'OneOf1AccountHolderType'Other Value
- | PostAccountsAccountExternalAccountsRequestBodyBankAccount'OneOf1AccountHolderType'Typed Text
- | PostAccountsAccountExternalAccountsRequestBodyBankAccount'OneOf1AccountHolderType'EnumCompany
- | PostAccountsAccountExternalAccountsRequestBodyBankAccount'OneOf1AccountHolderType'EnumIndividual
- data PostAccountsAccountExternalAccountsRequestBodyBankAccount'OneOf1Object'
- data PostAccountsAccountExternalAccountsRequestBodyBankAccount'Variants
- data PostAccountsAccountExternalAccountsResponse
Documentation
postAccountsAccountExternalAccounts Source #
:: forall m. MonadHTTP m | |
=> Text | account | Constraints: Maximum length of 5000 |
-> Maybe PostAccountsAccountExternalAccountsRequestBody | The request body to send |
-> ClientT m (Response PostAccountsAccountExternalAccountsResponse) | Monadic computation which returns the result of the operation |
POST /v1/accounts/{account}/external_accounts
<p>Create an external account for a given account.</p>
data PostAccountsAccountExternalAccountsRequestBody Source #
Defines the object schema located at paths./v1/accounts/{account}/external_accounts.POST.requestBody.content.application/x-www-form-urlencoded.schema
in the specification.
PostAccountsAccountExternalAccountsRequestBody | |
|
Instances
mkPostAccountsAccountExternalAccountsRequestBody :: PostAccountsAccountExternalAccountsRequestBody Source #
Create a new PostAccountsAccountExternalAccountsRequestBody
with all required fields.
data PostAccountsAccountExternalAccountsRequestBodyBankAccount'OneOf1 Source #
Defines the object schema located at paths./v1/accounts/{account}/external_accounts.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.bank_account.anyOf
in the specification.
Instances
mkPostAccountsAccountExternalAccountsRequestBodyBankAccount'OneOf1 Source #
Create a new PostAccountsAccountExternalAccountsRequestBodyBankAccount'OneOf1
with all required fields.
data PostAccountsAccountExternalAccountsRequestBodyBankAccount'OneOf1AccountHolderType' Source #
Defines the enum schema located at paths./v1/accounts/{account}/external_accounts.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.bank_account.anyOf.properties.account_holder_type
in the specification.
PostAccountsAccountExternalAccountsRequestBodyBankAccount'OneOf1AccountHolderType'Other Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
PostAccountsAccountExternalAccountsRequestBodyBankAccount'OneOf1AccountHolderType'Typed Text | This constructor can be used to send values to the server which are not present in the specification yet. |
PostAccountsAccountExternalAccountsRequestBodyBankAccount'OneOf1AccountHolderType'EnumCompany | Represents the JSON value |
PostAccountsAccountExternalAccountsRequestBodyBankAccount'OneOf1AccountHolderType'EnumIndividual | Represents the JSON value |
Instances
data PostAccountsAccountExternalAccountsRequestBodyBankAccount'OneOf1Object' Source #
Defines the enum schema located at paths./v1/accounts/{account}/external_accounts.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.bank_account.anyOf.properties.object
in the specification.
PostAccountsAccountExternalAccountsRequestBodyBankAccount'OneOf1Object'Other Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
PostAccountsAccountExternalAccountsRequestBodyBankAccount'OneOf1Object'Typed Text | This constructor can be used to send values to the server which are not present in the specification yet. |
PostAccountsAccountExternalAccountsRequestBodyBankAccount'OneOf1Object'EnumBankAccount | Represents the JSON value |
Instances
data PostAccountsAccountExternalAccountsRequestBodyBankAccount'Variants Source #
Defines the oneOf schema located at paths./v1/accounts/{account}/external_accounts.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.bank_account.anyOf
in the specification.
Either a token, like the ones returned by Stripe.js, or a dictionary containing a user's bank account details.
Instances
data PostAccountsAccountExternalAccountsResponse Source #
Represents a response of the operation postAccountsAccountExternalAccounts
.
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), PostAccountsAccountExternalAccountsResponseError
is used.
PostAccountsAccountExternalAccountsResponseError String | Means either no matching case available or a parse error |
PostAccountsAccountExternalAccountsResponse200 ExternalAccount | Successful response. |
PostAccountsAccountExternalAccountsResponseDefault Error | Error response. |