stripeapi-2.0.0.1: Stripe-Library
Safe HaskellNone
LanguageHaskell2010

StripeAPI.Operations.PostCustomersCustomerSources

Description

Contains the different functions to run the operation postCustomersCustomerSources

Synopsis

Documentation

postCustomersCustomerSources Source #

Arguments

:: forall m. MonadHTTP m 
=> Text

customer | Constraints: Maximum length of 5000

-> Maybe PostCustomersCustomerSourcesRequestBody

The request body to send

-> ClientT m (Response PostCustomersCustomerSourcesResponse)

Monadic computation which returns the result of the operation

POST /v1/customers/{customer}/sources

<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 PostCustomersCustomerSourcesRequestBody Source #

Defines the object schema located at paths./v1/customers/{customer}/sources.POST.requestBody.content.application/x-www-form-urlencoded.schema in the specification.

Constructors

PostCustomersCustomerSourcesRequestBody 

Fields

data PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf1 Source #

Defines the object schema located at paths./v1/customers/{customer}/sources.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.bank_account.anyOf in the specification.

Instances

Instances details
Eq PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSources

Show PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSources

ToJSON PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSources

FromJSON PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSources

data PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf1AccountHolderType' Source #

Defines the enum schema located at paths./v1/customers/{customer}/sources.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.bank_account.anyOf.properties.account_holder_type in the specification.

Constructors

PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf1AccountHolderType'Other Value

This case is used if the value encountered during decoding does not match any of the provided cases in the specification.

PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf1AccountHolderType'Typed Text

This constructor can be used to send values to the server which are not present in the specification yet.

PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf1AccountHolderType'EnumCompany

Represents the JSON value "company"

PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf1AccountHolderType'EnumIndividual

Represents the JSON value "individual"

Instances

Instances details
Eq PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf1AccountHolderType' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSources

Show PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf1AccountHolderType' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSources

ToJSON PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf1AccountHolderType' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSources

FromJSON PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf1AccountHolderType' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSources

data PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf1Object' Source #

Defines the enum schema located at paths./v1/customers/{customer}/sources.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.bank_account.anyOf.properties.object in the specification.

Constructors

PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf1Object'Other Value

This case is used if the value encountered during decoding does not match any of the provided cases in the specification.

PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf1Object'Typed Text

This constructor can be used to send values to the server which are not present in the specification yet.

PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf1Object'EnumBankAccount

Represents the JSON value "bank_account"

Instances

Instances details
Eq PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf1Object' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSources

Show PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf1Object' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSources

ToJSON PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf1Object' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSources

FromJSON PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf1Object' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSources

data PostCustomersCustomerSourcesRequestBodyBankAccount'Variants Source #

Defines the oneOf schema located at paths./v1/customers/{customer}/sources.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 PostCustomersCustomerSourcesRequestBodyBankAccount'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSources

Show PostCustomersCustomerSourcesRequestBodyBankAccount'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSources

ToJSON PostCustomersCustomerSourcesRequestBodyBankAccount'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSources

FromJSON PostCustomersCustomerSourcesRequestBodyBankAccount'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSources

data PostCustomersCustomerSourcesRequestBodyCard'OneOf1 Source #

Defines the object schema located at paths./v1/customers/{customer}/sources.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.card.anyOf in the specification.

Constructors

PostCustomersCustomerSourcesRequestBodyCard'OneOf1 

Instances

Instances details
Eq PostCustomersCustomerSourcesRequestBodyCard'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSources

Show PostCustomersCustomerSourcesRequestBodyCard'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSources

ToJSON PostCustomersCustomerSourcesRequestBodyCard'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSources

FromJSON PostCustomersCustomerSourcesRequestBodyCard'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSources

data PostCustomersCustomerSourcesRequestBodyCard'OneOf1Object' Source #

Defines the enum schema located at paths./v1/customers/{customer}/sources.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.card.anyOf.properties.object in the specification.

Constructors

PostCustomersCustomerSourcesRequestBodyCard'OneOf1Object'Other Value

This case is used if the value encountered during decoding does not match any of the provided cases in the specification.

PostCustomersCustomerSourcesRequestBodyCard'OneOf1Object'Typed Text

This constructor can be used to send values to the server which are not present in the specification yet.

PostCustomersCustomerSourcesRequestBodyCard'OneOf1Object'EnumCard

Represents the JSON value "card"

Instances

Instances details
Eq PostCustomersCustomerSourcesRequestBodyCard'OneOf1Object' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSources

Show PostCustomersCustomerSourcesRequestBodyCard'OneOf1Object' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSources

ToJSON PostCustomersCustomerSourcesRequestBodyCard'OneOf1Object' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSources

FromJSON PostCustomersCustomerSourcesRequestBodyCard'OneOf1Object' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSources

data PostCustomersCustomerSourcesRequestBodyCard'Variants Source #

Defines the oneOf schema located at paths./v1/customers/{customer}/sources.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 PostCustomersCustomerSourcesRequestBodyCard'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSources

Show PostCustomersCustomerSourcesRequestBodyCard'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSources

ToJSON PostCustomersCustomerSourcesRequestBodyCard'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSources

FromJSON PostCustomersCustomerSourcesRequestBodyCard'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSources