Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation postCustomersCustomerBankAccounts
Synopsis
- postCustomersCustomerBankAccounts :: forall m. MonadHTTP m => Text -> Maybe PostCustomersCustomerBankAccountsRequestBody -> StripeT m (Response PostCustomersCustomerBankAccountsResponse)
- data PostCustomersCustomerBankAccountsRequestBody = PostCustomersCustomerBankAccountsRequestBody {
- postCustomersCustomerBankAccountsRequestBodyAlipayAccount :: Maybe Text
- postCustomersCustomerBankAccountsRequestBodyBankAccount :: Maybe PostCustomersCustomerBankAccountsRequestBodyBankAccount'Variants
- postCustomersCustomerBankAccountsRequestBodyCard :: Maybe PostCustomersCustomerBankAccountsRequestBodyCard'Variants
- postCustomersCustomerBankAccountsRequestBodyExpand :: Maybe [Text]
- postCustomersCustomerBankAccountsRequestBodyMetadata :: Maybe Object
- postCustomersCustomerBankAccountsRequestBodySource :: Maybe Text
- mkPostCustomersCustomerBankAccountsRequestBody :: PostCustomersCustomerBankAccountsRequestBody
- data PostCustomersCustomerBankAccountsRequestBodyBankAccount'OneOf1 = PostCustomersCustomerBankAccountsRequestBodyBankAccount'OneOf1 {
- postCustomersCustomerBankAccountsRequestBodyBankAccount'OneOf1AccountHolderName :: Maybe Text
- postCustomersCustomerBankAccountsRequestBodyBankAccount'OneOf1AccountHolderType :: Maybe PostCustomersCustomerBankAccountsRequestBodyBankAccount'OneOf1AccountHolderType'
- postCustomersCustomerBankAccountsRequestBodyBankAccount'OneOf1AccountNumber :: Text
- postCustomersCustomerBankAccountsRequestBodyBankAccount'OneOf1Country :: Text
- postCustomersCustomerBankAccountsRequestBodyBankAccount'OneOf1Currency :: Maybe Text
- postCustomersCustomerBankAccountsRequestBodyBankAccount'OneOf1RoutingNumber :: Maybe Text
- mkPostCustomersCustomerBankAccountsRequestBodyBankAccount'OneOf1 :: Text -> Text -> PostCustomersCustomerBankAccountsRequestBodyBankAccount'OneOf1
- data PostCustomersCustomerBankAccountsRequestBodyBankAccount'OneOf1AccountHolderType'
- = PostCustomersCustomerBankAccountsRequestBodyBankAccount'OneOf1AccountHolderType'Other Value
- | PostCustomersCustomerBankAccountsRequestBodyBankAccount'OneOf1AccountHolderType'Typed Text
- | PostCustomersCustomerBankAccountsRequestBodyBankAccount'OneOf1AccountHolderType'EnumCompany
- | PostCustomersCustomerBankAccountsRequestBodyBankAccount'OneOf1AccountHolderType'EnumIndividual
- data PostCustomersCustomerBankAccountsRequestBodyBankAccount'Variants
- data PostCustomersCustomerBankAccountsRequestBodyCard'OneOf1 = PostCustomersCustomerBankAccountsRequestBodyCard'OneOf1 {
- postCustomersCustomerBankAccountsRequestBodyCard'OneOf1AddressCity :: Maybe Text
- postCustomersCustomerBankAccountsRequestBodyCard'OneOf1AddressCountry :: Maybe Text
- postCustomersCustomerBankAccountsRequestBodyCard'OneOf1AddressLine1 :: Maybe Text
- postCustomersCustomerBankAccountsRequestBodyCard'OneOf1AddressLine2 :: Maybe Text
- postCustomersCustomerBankAccountsRequestBodyCard'OneOf1AddressState :: Maybe Text
- postCustomersCustomerBankAccountsRequestBodyCard'OneOf1AddressZip :: Maybe Text
- postCustomersCustomerBankAccountsRequestBodyCard'OneOf1Cvc :: Maybe Text
- postCustomersCustomerBankAccountsRequestBodyCard'OneOf1ExpMonth :: Int
- postCustomersCustomerBankAccountsRequestBodyCard'OneOf1ExpYear :: Int
- postCustomersCustomerBankAccountsRequestBodyCard'OneOf1Metadata :: Maybe Object
- postCustomersCustomerBankAccountsRequestBodyCard'OneOf1Name :: Maybe Text
- postCustomersCustomerBankAccountsRequestBodyCard'OneOf1Number :: Text
- mkPostCustomersCustomerBankAccountsRequestBodyCard'OneOf1 :: Int -> Int -> Text -> PostCustomersCustomerBankAccountsRequestBodyCard'OneOf1
- data PostCustomersCustomerBankAccountsRequestBodyCard'Variants
- data PostCustomersCustomerBankAccountsResponse
Documentation
postCustomersCustomerBankAccounts Source #
:: forall m. MonadHTTP m | |
=> Text | customer | Constraints: Maximum length of 5000 |
-> Maybe PostCustomersCustomerBankAccountsRequestBody | The request body to send |
-> StripeT m (Response PostCustomersCustomerBankAccountsResponse) | Monadic computation which returns 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>
data PostCustomersCustomerBankAccountsRequestBody Source #
Defines the object schema located at paths./v1/customers/{customer}/bank_accounts.POST.requestBody.content.application/x-www-form-urlencoded.schema
in the specification.
PostCustomersCustomerBankAccountsRequestBody | |
|
Instances
mkPostCustomersCustomerBankAccountsRequestBody :: PostCustomersCustomerBankAccountsRequestBody Source #
Create a new PostCustomersCustomerBankAccountsRequestBody
with all required fields.
data PostCustomersCustomerBankAccountsRequestBodyBankAccount'OneOf1 Source #
Defines the object schema located at paths./v1/customers/{customer}/bank_accounts.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.bank_account.anyOf
in the specification.
PostCustomersCustomerBankAccountsRequestBodyBankAccount'OneOf1 | |
|
Instances
mkPostCustomersCustomerBankAccountsRequestBodyBankAccount'OneOf1 Source #
Create a new PostCustomersCustomerBankAccountsRequestBodyBankAccount'OneOf1
with all required fields.
data PostCustomersCustomerBankAccountsRequestBodyBankAccount'OneOf1AccountHolderType' Source #
Defines the enum schema located at paths./v1/customers/{customer}/bank_accounts.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.bank_account.anyOf.properties.account_holder_type
in the specification.
PostCustomersCustomerBankAccountsRequestBodyBankAccount'OneOf1AccountHolderType'Other Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
PostCustomersCustomerBankAccountsRequestBodyBankAccount'OneOf1AccountHolderType'Typed Text | This constructor can be used to send values to the server which are not present in the specification yet. |
PostCustomersCustomerBankAccountsRequestBodyBankAccount'OneOf1AccountHolderType'EnumCompany | Represents the JSON value |
PostCustomersCustomerBankAccountsRequestBodyBankAccount'OneOf1AccountHolderType'EnumIndividual | Represents the JSON value |
Instances
data PostCustomersCustomerBankAccountsRequestBodyBankAccount'Variants Source #
Defines the oneOf schema located at paths./v1/customers/{customer}/bank_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 PostCustomersCustomerBankAccountsRequestBodyCard'OneOf1 Source #
Defines the object schema located at paths./v1/customers/{customer}/bank_accounts.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.card.anyOf
in the specification.
Instances
mkPostCustomersCustomerBankAccountsRequestBodyCard'OneOf1 Source #
Create a new PostCustomersCustomerBankAccountsRequestBodyCard'OneOf1
with all required fields.
data PostCustomersCustomerBankAccountsRequestBodyCard'Variants Source #
Defines the oneOf schema located at paths./v1/customers/{customer}/bank_accounts.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.card.anyOf
in the specification.
A token, like the ones returned by Stripe.js.
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. |