stripeapi-0.1.0.2: Stripe-Library

Safe HaskellNone
LanguageHaskell2010

StripeAPI.Operations.PostCustomersCustomerSources

Description

Contains the different functions to run the operation postCustomersCustomerSources

Synopsis

Documentation

postCustomersCustomerSources Source #

Arguments

:: (MonadHTTP m, SecurityScheme s) 
=> Configuration s

The configuration to use in the request

-> Text

customer | Constraints: Maximum length of 5000

-> Maybe PostCustomersCustomerSourcesRequestBody

The request body to send

-> m (Either HttpException (Response PostCustomersCustomerSourcesResponse))

Monad containing 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 data type for the schema postCustomersCustomerSourcesRequestBody

Constructors

PostCustomersCustomerSourcesRequestBody 

Fields

data PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf2 Source #

Defines the data type for the schema postCustomersCustomerSourcesRequestBodyBank_account'OneOf2

Instances
Eq PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf2 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSources

Show PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf2 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSources

ToJSON PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf2 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSources

FromJSON PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf2 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSources

data PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf2AccountHolderType' Source #

Defines the enum schema postCustomersCustomerSourcesRequestBodyBank_account'OneOf2Account_holder_type'

Instances
Eq PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf2AccountHolderType' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSources

Show PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf2AccountHolderType' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSources

ToJSON PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf2AccountHolderType' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSources

FromJSON PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf2AccountHolderType' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSources

data PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf2Object' Source #

Defines the enum schema postCustomersCustomerSourcesRequestBodyBank_account'OneOf2Object'

Instances
Eq PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf2Object' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSources

Show PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf2Object' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSources

ToJSON PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf2Object' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSources

FromJSON PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf2Object' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSources

data PostCustomersCustomerSourcesRequestBodyBankAccount'Variants Source #

Define the one-of schema postCustomersCustomerSourcesRequestBodyBank_account'

Either a token, like the ones returned by Stripe.js, or a dictionary containing a user's bank account details.

Instances
Eq PostCustomersCustomerSourcesRequestBodyBankAccount'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSources

Show PostCustomersCustomerSourcesRequestBodyBankAccount'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSources

Generic 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

type Rep PostCustomersCustomerSourcesRequestBodyBankAccount'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSources

type Rep PostCustomersCustomerSourcesRequestBodyBankAccount'Variants = D1 (MetaData "PostCustomersCustomerSourcesRequestBodyBankAccount'Variants" "StripeAPI.Operations.PostCustomersCustomerSources" "stripeapi-0.1.0.2-D0ebvtj6l9B4TLqRwmHKaP" False) (C1 (MetaCons "PostCustomersCustomerSourcesRequestBodyBankAccount'Text" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)) :+: C1 (MetaCons "PostCustomersCustomerSourcesRequestBodyBankAccount'PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf2" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf2)))

data PostCustomersCustomerSourcesRequestBodyCard'OneOf2 Source #

Defines the data type for the schema postCustomersCustomerSourcesRequestBodyCard'OneOf2

Constructors

PostCustomersCustomerSourcesRequestBodyCard'OneOf2 

Fields

Instances
Eq PostCustomersCustomerSourcesRequestBodyCard'OneOf2 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSources

Show PostCustomersCustomerSourcesRequestBodyCard'OneOf2 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSources

ToJSON PostCustomersCustomerSourcesRequestBodyCard'OneOf2 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSources

FromJSON PostCustomersCustomerSourcesRequestBodyCard'OneOf2 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSources

data PostCustomersCustomerSourcesRequestBodyCard'OneOf2Metadata' Source #

Defines the data type for the schema postCustomersCustomerSourcesRequestBodyCard'OneOf2Metadata'

Instances
Eq PostCustomersCustomerSourcesRequestBodyCard'OneOf2Metadata' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSources

Show PostCustomersCustomerSourcesRequestBodyCard'OneOf2Metadata' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSources

ToJSON PostCustomersCustomerSourcesRequestBodyCard'OneOf2Metadata' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSources

FromJSON PostCustomersCustomerSourcesRequestBodyCard'OneOf2Metadata' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSources

data PostCustomersCustomerSourcesRequestBodyCard'OneOf2Object' Source #

Defines the enum schema postCustomersCustomerSourcesRequestBodyCard'OneOf2Object'

Instances
Eq PostCustomersCustomerSourcesRequestBodyCard'OneOf2Object' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSources

Show PostCustomersCustomerSourcesRequestBodyCard'OneOf2Object' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSources

ToJSON PostCustomersCustomerSourcesRequestBodyCard'OneOf2Object' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSources

FromJSON PostCustomersCustomerSourcesRequestBodyCard'OneOf2Object' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSources

data PostCustomersCustomerSourcesRequestBodyCard'Variants Source #

Define the one-of schema postCustomersCustomerSourcesRequestBodyCard'

A token, like the ones returned by Stripe.js.

Instances
Eq PostCustomersCustomerSourcesRequestBodyCard'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSources

Show PostCustomersCustomerSourcesRequestBodyCard'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSources

Generic 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

type Rep PostCustomersCustomerSourcesRequestBodyCard'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSources

type Rep PostCustomersCustomerSourcesRequestBodyCard'Variants = D1 (MetaData "PostCustomersCustomerSourcesRequestBodyCard'Variants" "StripeAPI.Operations.PostCustomersCustomerSources" "stripeapi-0.1.0.2-D0ebvtj6l9B4TLqRwmHKaP" False) (C1 (MetaCons "PostCustomersCustomerSourcesRequestBodyCard'Text" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)) :+: C1 (MetaCons "PostCustomersCustomerSourcesRequestBodyCard'PostCustomersCustomerSourcesRequestBodyCard'OneOf2" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 PostCustomersCustomerSourcesRequestBodyCard'OneOf2)))

data PostCustomersCustomerSourcesRequestBodyMetadata' Source #

Defines the data type for the schema postCustomersCustomerSourcesRequestBodyMetadata'

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
Eq PostCustomersCustomerSourcesRequestBodyMetadata' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSources

Show PostCustomersCustomerSourcesRequestBodyMetadata' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSources

ToJSON PostCustomersCustomerSourcesRequestBodyMetadata' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSources

FromJSON PostCustomersCustomerSourcesRequestBodyMetadata' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSources