stripeapi-1.0.0.0: Stripe-Library
Safe HaskellNone
LanguageHaskell2010

StripeAPI.Operations.PostCustomersCustomerBankAccounts

Description

Contains the different functions to run the operation postCustomersCustomerBankAccounts

Synopsis

Documentation

postCustomersCustomerBankAccounts Source #

Arguments

:: 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.

Constructors

PostCustomersCustomerBankAccountsRequestBody 

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.

Instances

Instances details
Eq PostCustomersCustomerBankAccountsRequestBodyBankAccount'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerBankAccounts

Show PostCustomersCustomerBankAccountsRequestBodyBankAccount'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerBankAccounts

ToJSON PostCustomersCustomerBankAccountsRequestBodyBankAccount'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerBankAccounts

FromJSON PostCustomersCustomerBankAccountsRequestBodyBankAccount'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerBankAccounts

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.

Constructors

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 "company"

PostCustomersCustomerBankAccountsRequestBodyBankAccount'OneOf1AccountHolderType'EnumIndividual

Represents the JSON value "individual"

Instances

Instances details
Eq PostCustomersCustomerBankAccountsRequestBodyBankAccount'OneOf1AccountHolderType' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerBankAccounts

Show PostCustomersCustomerBankAccountsRequestBodyBankAccount'OneOf1AccountHolderType' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerBankAccounts

ToJSON PostCustomersCustomerBankAccountsRequestBodyBankAccount'OneOf1AccountHolderType' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerBankAccounts

FromJSON PostCustomersCustomerBankAccountsRequestBodyBankAccount'OneOf1AccountHolderType' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerBankAccounts

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

Instances details
Eq PostCustomersCustomerBankAccountsRequestBodyBankAccount'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerBankAccounts

Show PostCustomersCustomerBankAccountsRequestBodyBankAccount'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerBankAccounts

ToJSON PostCustomersCustomerBankAccountsRequestBodyBankAccount'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerBankAccounts

FromJSON PostCustomersCustomerBankAccountsRequestBodyBankAccount'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerBankAccounts

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

Instances details
Eq PostCustomersCustomerBankAccountsRequestBodyCard'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerBankAccounts

Show PostCustomersCustomerBankAccountsRequestBodyCard'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerBankAccounts

ToJSON PostCustomersCustomerBankAccountsRequestBodyCard'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerBankAccounts

FromJSON PostCustomersCustomerBankAccountsRequestBodyCard'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerBankAccounts

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

Instances details
Eq PostCustomersCustomerBankAccountsRequestBodyCard'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerBankAccounts

Show PostCustomersCustomerBankAccountsRequestBodyCard'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerBankAccounts

ToJSON PostCustomersCustomerBankAccountsRequestBodyCard'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerBankAccounts

FromJSON PostCustomersCustomerBankAccountsRequestBodyCard'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerBankAccounts