stripeapi-0.1.0.0: Stripe-Library

Safe HaskellNone
LanguageHaskell2010

StripeAPI.Operations.PostTokens

Description

Contains the different functions to run the operation postTokens

Synopsis

Documentation

postTokens Source #

Arguments

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

The configuration to use in the request

-> PostTokensRequestBody

The request body to send

-> m (Either HttpException (Response PostTokensResponse))

Monad containing the result of the operation

POST /v1/tokens

<p>Creates a single-use token that represents a bank account’s details. This token can be used with any API method in place of a bank account dictionary. This token can be used only once, by attaching it to a <a href="#accounts">Custom account</a>.</p>

postTokensRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> PostTokensRequestBody -> m (Either HttpException (Response ByteString)) Source #

POST /v1/tokens

The same as postTokens but returns the raw ByteString

data PostTokensRequestBody Source #

Defines the data type for the schema postTokensRequestBody

Constructors

PostTokensRequestBody 

Fields

data PostTokensRequestBodyAccount' Source #

Defines the data type for the schema postTokensRequestBodyAccount'

Information for the account this token will represent.

data PostTokensRequestBodyAccount'BusinessType' Source #

Defines the enum schema postTokensRequestBodyAccount'Business_type'

data PostTokensRequestBodyAccount'Company' Source #

Defines the data type for the schema postTokensRequestBodyAccount'Company'

Constructors

PostTokensRequestBodyAccount'Company' 

Fields

data PostTokensRequestBodyAccount'Company'Address' Source #

Defines the data type for the schema postTokensRequestBodyAccount'Company'Address'

Constructors

PostTokensRequestBodyAccount'Company'Address' 

Fields

data PostTokensRequestBodyAccount'Company'AddressKana' Source #

Defines the data type for the schema postTokensRequestBodyAccount'Company'Address_kana'

data PostTokensRequestBodyAccount'Company'AddressKanji' Source #

Defines the data type for the schema postTokensRequestBodyAccount'Company'Address_kanji'

data PostTokensRequestBodyAccount'Company'Structure' Source #

Defines the enum schema postTokensRequestBodyAccount'Company'Structure'

data PostTokensRequestBodyAccount'Company'Verification' Source #

Defines the data type for the schema postTokensRequestBodyAccount'Company'Verification'

data PostTokensRequestBodyAccount'Company'Verification'Document' Source #

Defines the data type for the schema postTokensRequestBodyAccount'Company'Verification'Document'

Instances
Eq PostTokensRequestBodyAccount'Company'Verification'Document' Source # 
Instance details

Defined in StripeAPI.Operations.PostTokens

Show PostTokensRequestBodyAccount'Company'Verification'Document' Source # 
Instance details

Defined in StripeAPI.Operations.PostTokens

ToJSON PostTokensRequestBodyAccount'Company'Verification'Document' Source # 
Instance details

Defined in StripeAPI.Operations.PostTokens

FromJSON PostTokensRequestBodyAccount'Company'Verification'Document' Source # 
Instance details

Defined in StripeAPI.Operations.PostTokens

data PostTokensRequestBodyAccount'Individual' Source #

Defines the data type for the schema postTokensRequestBodyAccount'Individual'

Constructors

PostTokensRequestBodyAccount'Individual' 

Fields

data PostTokensRequestBodyAccount'Individual'Address' Source #

Defines the data type for the schema postTokensRequestBodyAccount'Individual'Address'

data PostTokensRequestBodyAccount'Individual'AddressKana' Source #

Defines the data type for the schema postTokensRequestBodyAccount'Individual'Address_kana'

Instances
Eq PostTokensRequestBodyAccount'Individual'AddressKana' Source # 
Instance details

Defined in StripeAPI.Operations.PostTokens

Show PostTokensRequestBodyAccount'Individual'AddressKana' Source # 
Instance details

Defined in StripeAPI.Operations.PostTokens

ToJSON PostTokensRequestBodyAccount'Individual'AddressKana' Source # 
Instance details

Defined in StripeAPI.Operations.PostTokens

FromJSON PostTokensRequestBodyAccount'Individual'AddressKana' Source # 
Instance details

Defined in StripeAPI.Operations.PostTokens

data PostTokensRequestBodyAccount'Individual'AddressKanji' Source #

Defines the data type for the schema postTokensRequestBodyAccount'Individual'Address_kanji'

Instances
Eq PostTokensRequestBodyAccount'Individual'AddressKanji' Source # 
Instance details

Defined in StripeAPI.Operations.PostTokens

Show PostTokensRequestBodyAccount'Individual'AddressKanji' Source # 
Instance details

Defined in StripeAPI.Operations.PostTokens

ToJSON PostTokensRequestBodyAccount'Individual'AddressKanji' Source # 
Instance details

Defined in StripeAPI.Operations.PostTokens

FromJSON PostTokensRequestBodyAccount'Individual'AddressKanji' Source # 
Instance details

Defined in StripeAPI.Operations.PostTokens

data PostTokensRequestBodyAccount'Individual'Dob'OneOf1 Source #

Defines the enum schema postTokensRequestBodyAccount'Individual'Dob'OneOf1

data PostTokensRequestBodyAccount'Individual'Dob'OneOf2 Source #

Defines the data type for the schema postTokensRequestBodyAccount'Individual'Dob'OneOf2

data PostTokensRequestBodyAccount'Individual'Dob'Variants Source #

Define the one-of schema postTokensRequestBodyAccount'Individual'Dob'

Instances
Eq PostTokensRequestBodyAccount'Individual'Dob'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostTokens

Show PostTokensRequestBodyAccount'Individual'Dob'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostTokens

Generic PostTokensRequestBodyAccount'Individual'Dob'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostTokens

ToJSON PostTokensRequestBodyAccount'Individual'Dob'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostTokens

FromJSON PostTokensRequestBodyAccount'Individual'Dob'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostTokens

type Rep PostTokensRequestBodyAccount'Individual'Dob'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostTokens

type Rep PostTokensRequestBodyAccount'Individual'Dob'Variants = D1 (MetaData "PostTokensRequestBodyAccount'Individual'Dob'Variants" "StripeAPI.Operations.PostTokens" "stripeapi-0.1.0.0-A3hJyYFbMZN6w4qjBpK6b6" False) (C1 (MetaCons "PostTokensRequestBodyAccount'Individual'Dob'PostTokensRequestBodyAccount'Individual'Dob'OneOf1" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 PostTokensRequestBodyAccount'Individual'Dob'OneOf1)) :+: C1 (MetaCons "PostTokensRequestBodyAccount'Individual'Dob'PostTokensRequestBodyAccount'Individual'Dob'OneOf2" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 PostTokensRequestBodyAccount'Individual'Dob'OneOf2)))

data PostTokensRequestBodyAccount'Individual'Metadata' Source #

Defines the data type for the schema postTokensRequestBodyAccount'Individual'Metadata'

data PostTokensRequestBodyAccount'Individual'Verification' Source #

Defines the data type for the schema postTokensRequestBodyAccount'Individual'Verification'

Instances
Eq PostTokensRequestBodyAccount'Individual'Verification' Source # 
Instance details

Defined in StripeAPI.Operations.PostTokens

Show PostTokensRequestBodyAccount'Individual'Verification' Source # 
Instance details

Defined in StripeAPI.Operations.PostTokens

ToJSON PostTokensRequestBodyAccount'Individual'Verification' Source # 
Instance details

Defined in StripeAPI.Operations.PostTokens

FromJSON PostTokensRequestBodyAccount'Individual'Verification' Source # 
Instance details

Defined in StripeAPI.Operations.PostTokens

data PostTokensRequestBodyAccount'Individual'Verification'AdditionalDocument' Source #

Defines the data type for the schema postTokensRequestBodyAccount'Individual'Verification'Additional_document'

Instances
Eq PostTokensRequestBodyAccount'Individual'Verification'AdditionalDocument' Source # 
Instance details

Defined in StripeAPI.Operations.PostTokens

Show PostTokensRequestBodyAccount'Individual'Verification'AdditionalDocument' Source # 
Instance details

Defined in StripeAPI.Operations.PostTokens

ToJSON PostTokensRequestBodyAccount'Individual'Verification'AdditionalDocument' Source # 
Instance details

Defined in StripeAPI.Operations.PostTokens

FromJSON PostTokensRequestBodyAccount'Individual'Verification'AdditionalDocument' Source # 
Instance details

Defined in StripeAPI.Operations.PostTokens

data PostTokensRequestBodyAccount'Individual'Verification'Document' Source #

Defines the data type for the schema postTokensRequestBodyAccount'Individual'Verification'Document'

Instances
Eq PostTokensRequestBodyAccount'Individual'Verification'Document' Source # 
Instance details

Defined in StripeAPI.Operations.PostTokens

Show PostTokensRequestBodyAccount'Individual'Verification'Document' Source # 
Instance details

Defined in StripeAPI.Operations.PostTokens

ToJSON PostTokensRequestBodyAccount'Individual'Verification'Document' Source # 
Instance details

Defined in StripeAPI.Operations.PostTokens

FromJSON PostTokensRequestBodyAccount'Individual'Verification'Document' Source # 
Instance details

Defined in StripeAPI.Operations.PostTokens

data PostTokensRequestBodyBankAccount' Source #

Defines the data type for the schema postTokensRequestBodyBank_account'

The bank account this token will represent.

Constructors

PostTokensRequestBodyBankAccount' 

Fields

data PostTokensRequestBodyBankAccount'AccountHolderType' Source #

Defines the enum schema postTokensRequestBodyBank_account'Account_holder_type'

Instances
Eq PostTokensRequestBodyBankAccount'AccountHolderType' Source # 
Instance details

Defined in StripeAPI.Operations.PostTokens

Show PostTokensRequestBodyBankAccount'AccountHolderType' Source # 
Instance details

Defined in StripeAPI.Operations.PostTokens

ToJSON PostTokensRequestBodyBankAccount'AccountHolderType' Source # 
Instance details

Defined in StripeAPI.Operations.PostTokens

FromJSON PostTokensRequestBodyBankAccount'AccountHolderType' Source # 
Instance details

Defined in StripeAPI.Operations.PostTokens

data PostTokensRequestBodyCard'OneOf2 Source #

Defines the data type for the schema postTokensRequestBodyCard'OneOf2

Constructors

PostTokensRequestBodyCard'OneOf2 

Fields

data PostTokensRequestBodyCard'Variants Source #

Define the one-of schema postTokensRequestBodyCard'

Instances
Eq PostTokensRequestBodyCard'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostTokens

Show PostTokensRequestBodyCard'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostTokens

Generic PostTokensRequestBodyCard'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostTokens

Associated Types

type Rep PostTokensRequestBodyCard'Variants :: Type -> Type #

ToJSON PostTokensRequestBodyCard'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostTokens

FromJSON PostTokensRequestBodyCard'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostTokens

type Rep PostTokensRequestBodyCard'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostTokens

type Rep PostTokensRequestBodyCard'Variants = D1 (MetaData "PostTokensRequestBodyCard'Variants" "StripeAPI.Operations.PostTokens" "stripeapi-0.1.0.0-A3hJyYFbMZN6w4qjBpK6b6" False) (C1 (MetaCons "PostTokensRequestBodyCard'String" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 String)) :+: C1 (MetaCons "PostTokensRequestBodyCard'PostTokensRequestBodyCard'OneOf2" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 PostTokensRequestBodyCard'OneOf2)))

data PostTokensRequestBodyPerson' Source #

Defines the data type for the schema postTokensRequestBodyPerson'

Information for the person this token will represent.

Constructors

PostTokensRequestBodyPerson' 

Fields

data PostTokensRequestBodyPerson'Address' Source #

Defines the data type for the schema postTokensRequestBodyPerson'Address'

Constructors

PostTokensRequestBodyPerson'Address' 

Fields

data PostTokensRequestBodyPerson'AddressKana' Source #

Defines the data type for the schema postTokensRequestBodyPerson'Address_kana'

Constructors

PostTokensRequestBodyPerson'AddressKana' 

Fields

data PostTokensRequestBodyPerson'AddressKanji' Source #

Defines the data type for the schema postTokensRequestBodyPerson'Address_kanji'

Constructors

PostTokensRequestBodyPerson'AddressKanji' 

Fields

data PostTokensRequestBodyPerson'Dob'OneOf1 Source #

Defines the enum schema postTokensRequestBodyPerson'Dob'OneOf1

data PostTokensRequestBodyPerson'Dob'OneOf2 Source #

Defines the data type for the schema postTokensRequestBodyPerson'Dob'OneOf2

data PostTokensRequestBodyPerson'Dob'Variants Source #

Define the one-of schema postTokensRequestBodyPerson'Dob'

Instances
Eq PostTokensRequestBodyPerson'Dob'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostTokens

Show PostTokensRequestBodyPerson'Dob'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostTokens

Generic PostTokensRequestBodyPerson'Dob'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostTokens

ToJSON PostTokensRequestBodyPerson'Dob'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostTokens

FromJSON PostTokensRequestBodyPerson'Dob'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostTokens

type Rep PostTokensRequestBodyPerson'Dob'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostTokens

type Rep PostTokensRequestBodyPerson'Dob'Variants = D1 (MetaData "PostTokensRequestBodyPerson'Dob'Variants" "StripeAPI.Operations.PostTokens" "stripeapi-0.1.0.0-A3hJyYFbMZN6w4qjBpK6b6" False) (C1 (MetaCons "PostTokensRequestBodyPerson'Dob'PostTokensRequestBodyPerson'Dob'OneOf1" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 PostTokensRequestBodyPerson'Dob'OneOf1)) :+: C1 (MetaCons "PostTokensRequestBodyPerson'Dob'PostTokensRequestBodyPerson'Dob'OneOf2" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 PostTokensRequestBodyPerson'Dob'OneOf2)))

data PostTokensRequestBodyPerson'Relationship' Source #

Defines the data type for the schema postTokensRequestBodyPerson'Relationship'

data PostTokensRequestBodyPerson'Relationship'PercentOwnership'OneOf1 Source #

Defines the enum schema postTokensRequestBodyPerson'Relationship'Percent_ownership'OneOf1

Instances
Eq PostTokensRequestBodyPerson'Relationship'PercentOwnership'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostTokens

Show PostTokensRequestBodyPerson'Relationship'PercentOwnership'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostTokens

ToJSON PostTokensRequestBodyPerson'Relationship'PercentOwnership'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostTokens

FromJSON PostTokensRequestBodyPerson'Relationship'PercentOwnership'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostTokens

data PostTokensRequestBodyPerson'Relationship'PercentOwnership'Variants Source #

Define the one-of schema postTokensRequestBodyPerson'Relationship'Percent_ownership'

Instances
Eq PostTokensRequestBodyPerson'Relationship'PercentOwnership'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostTokens

Show PostTokensRequestBodyPerson'Relationship'PercentOwnership'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostTokens

Generic PostTokensRequestBodyPerson'Relationship'PercentOwnership'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostTokens

ToJSON PostTokensRequestBodyPerson'Relationship'PercentOwnership'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostTokens

FromJSON PostTokensRequestBodyPerson'Relationship'PercentOwnership'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostTokens

type Rep PostTokensRequestBodyPerson'Relationship'PercentOwnership'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostTokens

type Rep PostTokensRequestBodyPerson'Relationship'PercentOwnership'Variants = D1 (MetaData "PostTokensRequestBodyPerson'Relationship'PercentOwnership'Variants" "StripeAPI.Operations.PostTokens" "stripeapi-0.1.0.0-A3hJyYFbMZN6w4qjBpK6b6" False) (C1 (MetaCons "PostTokensRequestBodyPerson'Relationship'PercentOwnership'PostTokensRequestBodyPerson'Relationship'PercentOwnership'OneOf1" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 PostTokensRequestBodyPerson'Relationship'PercentOwnership'OneOf1)) :+: C1 (MetaCons "PostTokensRequestBodyPerson'Relationship'PercentOwnership'Double" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Double)))

data PostTokensRequestBodyPerson'Verification' Source #

Defines the data type for the schema postTokensRequestBodyPerson'Verification'

data PostTokensRequestBodyPerson'Verification'AdditionalDocument' Source #

Defines the data type for the schema postTokensRequestBodyPerson'Verification'Additional_document'

Instances
Eq PostTokensRequestBodyPerson'Verification'AdditionalDocument' Source # 
Instance details

Defined in StripeAPI.Operations.PostTokens

Show PostTokensRequestBodyPerson'Verification'AdditionalDocument' Source # 
Instance details

Defined in StripeAPI.Operations.PostTokens

ToJSON PostTokensRequestBodyPerson'Verification'AdditionalDocument' Source # 
Instance details

Defined in StripeAPI.Operations.PostTokens

FromJSON PostTokensRequestBodyPerson'Verification'AdditionalDocument' Source # 
Instance details

Defined in StripeAPI.Operations.PostTokens

data PostTokensRequestBodyPerson'Verification'Document' Source #

Defines the data type for the schema postTokensRequestBodyPerson'Verification'Document'

data PostTokensResponse Source #

Represents a response of the operation postTokens.

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), PostTokensResponseError is used.

Constructors

PostTokensResponseError String

Means either no matching case available or a parse error

PostTokensResponse200 Token

Successful response.

PostTokensResponseDefault Error

Error response.