Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation postCustomersCustomerBankAccounts
Synopsis
- postCustomersCustomerBankAccounts :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostCustomersCustomerBankAccountsRequestBody -> m (Either HttpException (Response PostCustomersCustomerBankAccountsResponse))
- postCustomersCustomerBankAccountsRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostCustomersCustomerBankAccountsRequestBody -> m (Either HttpException (Response ByteString))
- postCustomersCustomerBankAccountsM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostCustomersCustomerBankAccountsRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostCustomersCustomerBankAccountsResponse))
- postCustomersCustomerBankAccountsRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostCustomersCustomerBankAccountsRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString))
- data PostCustomersCustomerBankAccountsRequestBody = PostCustomersCustomerBankAccountsRequestBody {
- postCustomersCustomerBankAccountsRequestBodyAlipayAccount :: Maybe String
- postCustomersCustomerBankAccountsRequestBodyBankAccount :: Maybe PostCustomersCustomerBankAccountsRequestBodyBankAccount'Variants
- postCustomersCustomerBankAccountsRequestBodyCard :: Maybe PostCustomersCustomerBankAccountsRequestBodyCard'Variants
- postCustomersCustomerBankAccountsRequestBodyExpand :: Maybe ([] String)
- postCustomersCustomerBankAccountsRequestBodyMetadata :: Maybe PostCustomersCustomerBankAccountsRequestBodyMetadata'
- postCustomersCustomerBankAccountsRequestBodySource :: Maybe String
- data PostCustomersCustomerBankAccountsRequestBodyBankAccount'OneOf2 = PostCustomersCustomerBankAccountsRequestBodyBankAccount'OneOf2 {
- postCustomersCustomerBankAccountsRequestBodyBankAccount'OneOf2AccountHolderName :: Maybe String
- postCustomersCustomerBankAccountsRequestBodyBankAccount'OneOf2AccountHolderType :: Maybe PostCustomersCustomerBankAccountsRequestBodyBankAccount'OneOf2AccountHolderType'
- postCustomersCustomerBankAccountsRequestBodyBankAccount'OneOf2AccountNumber :: String
- postCustomersCustomerBankAccountsRequestBodyBankAccount'OneOf2Country :: String
- postCustomersCustomerBankAccountsRequestBodyBankAccount'OneOf2Currency :: Maybe String
- postCustomersCustomerBankAccountsRequestBodyBankAccount'OneOf2Object :: Maybe PostCustomersCustomerBankAccountsRequestBodyBankAccount'OneOf2Object'
- postCustomersCustomerBankAccountsRequestBodyBankAccount'OneOf2RoutingNumber :: Maybe String
- data PostCustomersCustomerBankAccountsRequestBodyBankAccount'OneOf2AccountHolderType'
- = PostCustomersCustomerBankAccountsRequestBodyBankAccount'OneOf2AccountHolderType'EnumOther Value
- | PostCustomersCustomerBankAccountsRequestBodyBankAccount'OneOf2AccountHolderType'EnumTyped String
- | PostCustomersCustomerBankAccountsRequestBodyBankAccount'OneOf2AccountHolderType'EnumStringCompany
- | PostCustomersCustomerBankAccountsRequestBodyBankAccount'OneOf2AccountHolderType'EnumStringIndividual
- data PostCustomersCustomerBankAccountsRequestBodyBankAccount'OneOf2Object'
- data PostCustomersCustomerBankAccountsRequestBodyBankAccount'Variants
- data PostCustomersCustomerBankAccountsRequestBodyCard'OneOf2 = PostCustomersCustomerBankAccountsRequestBodyCard'OneOf2 {
- postCustomersCustomerBankAccountsRequestBodyCard'OneOf2AddressCity :: Maybe String
- postCustomersCustomerBankAccountsRequestBodyCard'OneOf2AddressCountry :: Maybe String
- postCustomersCustomerBankAccountsRequestBodyCard'OneOf2AddressLine1 :: Maybe String
- postCustomersCustomerBankAccountsRequestBodyCard'OneOf2AddressLine2 :: Maybe String
- postCustomersCustomerBankAccountsRequestBodyCard'OneOf2AddressState :: Maybe String
- postCustomersCustomerBankAccountsRequestBodyCard'OneOf2AddressZip :: Maybe String
- postCustomersCustomerBankAccountsRequestBodyCard'OneOf2Cvc :: Maybe String
- postCustomersCustomerBankAccountsRequestBodyCard'OneOf2ExpMonth :: Integer
- postCustomersCustomerBankAccountsRequestBodyCard'OneOf2ExpYear :: Integer
- postCustomersCustomerBankAccountsRequestBodyCard'OneOf2Metadata :: Maybe PostCustomersCustomerBankAccountsRequestBodyCard'OneOf2Metadata'
- postCustomersCustomerBankAccountsRequestBodyCard'OneOf2Name :: Maybe String
- postCustomersCustomerBankAccountsRequestBodyCard'OneOf2Number :: String
- postCustomersCustomerBankAccountsRequestBodyCard'OneOf2Object :: Maybe PostCustomersCustomerBankAccountsRequestBodyCard'OneOf2Object'
- data PostCustomersCustomerBankAccountsRequestBodyCard'OneOf2Metadata' = PostCustomersCustomerBankAccountsRequestBodyCard'OneOf2Metadata' {
- data PostCustomersCustomerBankAccountsRequestBodyCard'OneOf2Object'
- data PostCustomersCustomerBankAccountsRequestBodyCard'Variants
- data PostCustomersCustomerBankAccountsRequestBodyMetadata' = PostCustomersCustomerBankAccountsRequestBodyMetadata' {
- data PostCustomersCustomerBankAccountsResponse
Documentation
postCustomersCustomerBankAccounts Source #
:: (MonadHTTP m, SecurityScheme s) | |
=> Configuration s | The configuration to use in the request |
-> String | customer | Constraints: Maximum length of 5000 |
-> PostCustomersCustomerBankAccountsRequestBody | The request body to send |
-> m (Either HttpException (Response PostCustomersCustomerBankAccountsResponse)) | Monad containing the result of the operation |
POST /v1/customers/{customer}/bank_accounts
<p>When you create a new credit card, you must specify a customer or recipient on which to create it.</p>
<p>If the card’s owner has no default card, then the new card will become the default. However, if the owner already has a default, then it will not change. To change the default, you should <a href="/docs/api#update_customer">update the customer</a> to have a new <code>default_source</code>.</p>
postCustomersCustomerBankAccountsRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostCustomersCustomerBankAccountsRequestBody -> m (Either HttpException (Response ByteString)) Source #
POST /v1/customers/{customer}/bank_accounts
The same as postCustomersCustomerBankAccounts
but returns the raw ByteString
postCustomersCustomerBankAccountsM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostCustomersCustomerBankAccountsRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostCustomersCustomerBankAccountsResponse)) Source #
POST /v1/customers/{customer}/bank_accounts
Monadic version of postCustomersCustomerBankAccounts
(use with runWithConfiguration
)
postCustomersCustomerBankAccountsRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostCustomersCustomerBankAccountsRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString)) Source #
POST /v1/customers/{customer}/bank_accounts
Monadic version of postCustomersCustomerBankAccountsRaw
(use with runWithConfiguration
)
data PostCustomersCustomerBankAccountsRequestBody Source #
Defines the data type for the schema postCustomersCustomerBankAccountsRequestBody
PostCustomersCustomerBankAccountsRequestBody | |
|
Instances
data PostCustomersCustomerBankAccountsRequestBodyBankAccount'OneOf2 Source #
Defines the data type for the schema postCustomersCustomerBankAccountsRequestBodyBank_account'OneOf2
Instances
data PostCustomersCustomerBankAccountsRequestBodyBankAccount'OneOf2AccountHolderType' Source #
Defines the enum schema postCustomersCustomerBankAccountsRequestBodyBank_account'OneOf2Account_holder_type'
Instances
data PostCustomersCustomerBankAccountsRequestBodyBankAccount'OneOf2Object' Source #
Defines the enum schema postCustomersCustomerBankAccountsRequestBodyBank_account'OneOf2Object'
Instances
data PostCustomersCustomerBankAccountsRequestBodyBankAccount'Variants Source #
Define the one-of schema postCustomersCustomerBankAccountsRequestBodyBank_account'
Either a token, like the ones returned by Stripe.js, or a dictionary containing a user's bank account details.
Instances
data PostCustomersCustomerBankAccountsRequestBodyCard'OneOf2 Source #
Defines the data type for the schema postCustomersCustomerBankAccountsRequestBodyCard'OneOf2
Instances
data PostCustomersCustomerBankAccountsRequestBodyCard'OneOf2Metadata' Source #
Defines the data type for the schema postCustomersCustomerBankAccountsRequestBodyCard'OneOf2Metadata'
Instances
data PostCustomersCustomerBankAccountsRequestBodyCard'OneOf2Object' Source #
Defines the enum schema postCustomersCustomerBankAccountsRequestBodyCard'OneOf2Object'
Instances
data PostCustomersCustomerBankAccountsRequestBodyCard'Variants Source #
Define the one-of schema postCustomersCustomerBankAccountsRequestBodyCard'
A token, like the ones returned by Stripe.js.
Instances
data PostCustomersCustomerBankAccountsRequestBodyMetadata' Source #
Defines the data type for the schema postCustomersCustomerBankAccountsRequestBodyMetadata'
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 PostCustomersCustomerBankAccountsResponse Source #
Represents a response of the operation postCustomersCustomerBankAccounts
.
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), PostCustomersCustomerBankAccountsResponseError
is used.
PostCustomersCustomerBankAccountsResponseError String | Means either no matching case available or a parse error |
PostCustomersCustomerBankAccountsResponse200 PaymentSource | Successful response. |
PostCustomersCustomerBankAccountsResponseDefault Error | Error response. |