stripeapi-0.1.0.0: Stripe-Library

Safe HaskellNone
LanguageHaskell2010

StripeAPI.Operations.PostAccounts

Description

Contains the different functions to run the operation postAccounts

Synopsis

Documentation

postAccounts Source #

Arguments

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

The configuration to use in the request

-> PostAccountsRequestBody

The request body to send

-> m (Either HttpException (Response PostAccountsResponse))

Monad containing the result of the operation

POST /v1/accounts

<p>With <a href="/docs/connect">Connect</a>, you can create Stripe accounts for your users. To do this, you’ll first need to <a href="https://dashboard.stripe.com/account/applications/settings">register your platform</a>.</p>

<p>For Standard accounts, parameters other than <code>country</code>, <code>email</code>, and <code>type</code> are used to prefill the account application that we ask the account holder to complete.</p>

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

POST /v1/accounts

The same as postAccounts but returns the raw ByteString

data PostAccountsRequestBody Source #

Defines the data type for the schema postAccountsRequestBody

Constructors

PostAccountsRequestBody 

Fields

data PostAccountsRequestBodyBankAccount'OneOf2 Source #

Defines the data type for the schema postAccountsRequestBodyBank_account'OneOf2

data PostAccountsRequestBodyBankAccount'OneOf2AccountHolderType' Source #

Defines the enum schema postAccountsRequestBodyBank_account'OneOf2Account_holder_type'

Instances
Eq PostAccountsRequestBodyBankAccount'OneOf2AccountHolderType' Source # 
Instance details

Defined in StripeAPI.Operations.PostAccounts

Show PostAccountsRequestBodyBankAccount'OneOf2AccountHolderType' Source # 
Instance details

Defined in StripeAPI.Operations.PostAccounts

ToJSON PostAccountsRequestBodyBankAccount'OneOf2AccountHolderType' Source # 
Instance details

Defined in StripeAPI.Operations.PostAccounts

FromJSON PostAccountsRequestBodyBankAccount'OneOf2AccountHolderType' Source # 
Instance details

Defined in StripeAPI.Operations.PostAccounts

data PostAccountsRequestBodyBankAccount'OneOf2Object' Source #

Defines the enum schema postAccountsRequestBodyBank_account'OneOf2Object'

data PostAccountsRequestBodyBankAccount'Variants Source #

Define the one-of schema postAccountsRequestBodyBank_account'

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

Instances
Eq PostAccountsRequestBodyBankAccount'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostAccounts

Show PostAccountsRequestBodyBankAccount'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostAccounts

Generic PostAccountsRequestBodyBankAccount'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostAccounts

ToJSON PostAccountsRequestBodyBankAccount'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostAccounts

FromJSON PostAccountsRequestBodyBankAccount'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostAccounts

type Rep PostAccountsRequestBodyBankAccount'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostAccounts

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

data PostAccountsRequestBodyBusinessProfile' Source #

Defines the data type for the schema postAccountsRequestBodyBusiness_profile'

Business information about the account.

data PostAccountsRequestBodyBusinessType' Source #

Defines the enum schema postAccountsRequestBodyBusiness_type'

The business type.

data PostAccountsRequestBodyCompany' Source #

Defines the data type for the schema postAccountsRequestBodyCompany'

Information about the company or business. This field is null unless `business_type` is set to `company`, `government_entity`, or `non_profit`.

data PostAccountsRequestBodyCompany'Address' Source #

Defines the data type for the schema postAccountsRequestBodyCompany'Address'

Constructors

PostAccountsRequestBodyCompany'Address' 

Fields

data PostAccountsRequestBodyCompany'AddressKana' Source #

Defines the data type for the schema postAccountsRequestBodyCompany'Address_kana'

Constructors

PostAccountsRequestBodyCompany'AddressKana' 

Fields

data PostAccountsRequestBodyCompany'AddressKanji' Source #

Defines the data type for the schema postAccountsRequestBodyCompany'Address_kanji'

Constructors

PostAccountsRequestBodyCompany'AddressKanji' 

Fields

data PostAccountsRequestBodyCompany'Structure' Source #

Defines the enum schema postAccountsRequestBodyCompany'Structure'

data PostAccountsRequestBodyCompany'Verification' Source #

Defines the data type for the schema postAccountsRequestBodyCompany'Verification'

data PostAccountsRequestBodyCompany'Verification'Document' Source #

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

Instances
Eq PostAccountsRequestBodyCompany'Verification'Document' Source # 
Instance details

Defined in StripeAPI.Operations.PostAccounts

Show PostAccountsRequestBodyCompany'Verification'Document' Source # 
Instance details

Defined in StripeAPI.Operations.PostAccounts

ToJSON PostAccountsRequestBodyCompany'Verification'Document' Source # 
Instance details

Defined in StripeAPI.Operations.PostAccounts

FromJSON PostAccountsRequestBodyCompany'Verification'Document' Source # 
Instance details

Defined in StripeAPI.Operations.PostAccounts

data PostAccountsRequestBodyIndividual' Source #

Defines the data type for the schema postAccountsRequestBodyIndividual'

Information about the person represented by the account. This field is null unless `business_type` is set to `individual`.

Constructors

PostAccountsRequestBodyIndividual' 

Fields

data PostAccountsRequestBodyIndividual'Address' Source #

Defines the data type for the schema postAccountsRequestBodyIndividual'Address'

Constructors

PostAccountsRequestBodyIndividual'Address' 

Fields

data PostAccountsRequestBodyIndividual'AddressKana' Source #

Defines the data type for the schema postAccountsRequestBodyIndividual'Address_kana'

Constructors

PostAccountsRequestBodyIndividual'AddressKana' 

Fields

data PostAccountsRequestBodyIndividual'AddressKanji' Source #

Defines the data type for the schema postAccountsRequestBodyIndividual'Address_kanji'

Constructors

PostAccountsRequestBodyIndividual'AddressKanji' 

Fields

data PostAccountsRequestBodyIndividual'Dob'OneOf1 Source #

Defines the enum schema postAccountsRequestBodyIndividual'Dob'OneOf1

data PostAccountsRequestBodyIndividual'Dob'OneOf2 Source #

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

data PostAccountsRequestBodyIndividual'Dob'Variants Source #

Define the one-of schema postAccountsRequestBodyIndividual'Dob'

Instances
Eq PostAccountsRequestBodyIndividual'Dob'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostAccounts

Show PostAccountsRequestBodyIndividual'Dob'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostAccounts

Generic PostAccountsRequestBodyIndividual'Dob'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostAccounts

ToJSON PostAccountsRequestBodyIndividual'Dob'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostAccounts

FromJSON PostAccountsRequestBodyIndividual'Dob'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostAccounts

type Rep PostAccountsRequestBodyIndividual'Dob'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostAccounts

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

data PostAccountsRequestBodyIndividual'Metadata' Source #

Defines the data type for the schema postAccountsRequestBodyIndividual'Metadata'

data PostAccountsRequestBodyIndividual'Verification' Source #

Defines the data type for the schema postAccountsRequestBodyIndividual'Verification'

data PostAccountsRequestBodyIndividual'Verification'AdditionalDocument' Source #

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

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

Defined in StripeAPI.Operations.PostAccounts

Show PostAccountsRequestBodyIndividual'Verification'AdditionalDocument' Source # 
Instance details

Defined in StripeAPI.Operations.PostAccounts

ToJSON PostAccountsRequestBodyIndividual'Verification'AdditionalDocument' Source # 
Instance details

Defined in StripeAPI.Operations.PostAccounts

FromJSON PostAccountsRequestBodyIndividual'Verification'AdditionalDocument' Source # 
Instance details

Defined in StripeAPI.Operations.PostAccounts

data PostAccountsRequestBodyIndividual'Verification'Document' Source #

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

Instances
Eq PostAccountsRequestBodyIndividual'Verification'Document' Source # 
Instance details

Defined in StripeAPI.Operations.PostAccounts

Show PostAccountsRequestBodyIndividual'Verification'Document' Source # 
Instance details

Defined in StripeAPI.Operations.PostAccounts

ToJSON PostAccountsRequestBodyIndividual'Verification'Document' Source # 
Instance details

Defined in StripeAPI.Operations.PostAccounts

FromJSON PostAccountsRequestBodyIndividual'Verification'Document' Source # 
Instance details

Defined in StripeAPI.Operations.PostAccounts

data PostAccountsRequestBodyMetadata' Source #

Defines the data type for the schema postAccountsRequestBodyMetadata'

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

data PostAccountsRequestBodyRequestedCapabilities' Source #

Defines the enum schema postAccountsRequestBodyRequested_capabilities'

data PostAccountsRequestBodySettings' Source #

Defines the data type for the schema postAccountsRequestBodySettings'

Options for customizing how the account functions within Stripe.

data PostAccountsRequestBodySettings'Branding' Source #

Defines the data type for the schema postAccountsRequestBodySettings'Branding'

Constructors

PostAccountsRequestBodySettings'Branding' 

Fields

data PostAccountsRequestBodySettings'CardPayments' Source #

Defines the data type for the schema postAccountsRequestBodySettings'Card_payments'

data PostAccountsRequestBodySettings'CardPayments'DeclineOn' Source #

Defines the data type for the schema postAccountsRequestBodySettings'Card_payments'Decline_on'

Instances
Eq PostAccountsRequestBodySettings'CardPayments'DeclineOn' Source # 
Instance details

Defined in StripeAPI.Operations.PostAccounts

Show PostAccountsRequestBodySettings'CardPayments'DeclineOn' Source # 
Instance details

Defined in StripeAPI.Operations.PostAccounts

ToJSON PostAccountsRequestBodySettings'CardPayments'DeclineOn' Source # 
Instance details

Defined in StripeAPI.Operations.PostAccounts

FromJSON PostAccountsRequestBodySettings'CardPayments'DeclineOn' Source # 
Instance details

Defined in StripeAPI.Operations.PostAccounts

data PostAccountsRequestBodySettings'Payments' Source #

Defines the data type for the schema postAccountsRequestBodySettings'Payments'

Constructors

PostAccountsRequestBodySettings'Payments' 

Fields

data PostAccountsRequestBodySettings'Payouts' Source #

Defines the data type for the schema postAccountsRequestBodySettings'Payouts'

data PostAccountsRequestBodySettings'Payouts'Schedule' Source #

Defines the data type for the schema postAccountsRequestBodySettings'Payouts'Schedule'

data PostAccountsRequestBodySettings'Payouts'Schedule'DelayDays'OneOf1 Source #

Defines the enum schema postAccountsRequestBodySettings'Payouts'Schedule'Delay_days'OneOf1

Instances
Eq PostAccountsRequestBodySettings'Payouts'Schedule'DelayDays'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostAccounts

Show PostAccountsRequestBodySettings'Payouts'Schedule'DelayDays'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostAccounts

ToJSON PostAccountsRequestBodySettings'Payouts'Schedule'DelayDays'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostAccounts

FromJSON PostAccountsRequestBodySettings'Payouts'Schedule'DelayDays'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostAccounts

data PostAccountsRequestBodySettings'Payouts'Schedule'DelayDays'Variants Source #

Define the one-of schema postAccountsRequestBodySettings'Payouts'Schedule'Delay_days'

Instances
Eq PostAccountsRequestBodySettings'Payouts'Schedule'DelayDays'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostAccounts

Show PostAccountsRequestBodySettings'Payouts'Schedule'DelayDays'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostAccounts

Generic PostAccountsRequestBodySettings'Payouts'Schedule'DelayDays'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostAccounts

ToJSON PostAccountsRequestBodySettings'Payouts'Schedule'DelayDays'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostAccounts

FromJSON PostAccountsRequestBodySettings'Payouts'Schedule'DelayDays'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostAccounts

type Rep PostAccountsRequestBodySettings'Payouts'Schedule'DelayDays'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostAccounts

type Rep PostAccountsRequestBodySettings'Payouts'Schedule'DelayDays'Variants = D1 (MetaData "PostAccountsRequestBodySettings'Payouts'Schedule'DelayDays'Variants" "StripeAPI.Operations.PostAccounts" "stripeapi-0.1.0.0-A3hJyYFbMZN6w4qjBpK6b6" False) (C1 (MetaCons "PostAccountsRequestBodySettings'Payouts'Schedule'DelayDays'PostAccountsRequestBodySettings'Payouts'Schedule'DelayDays'OneOf1" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 PostAccountsRequestBodySettings'Payouts'Schedule'DelayDays'OneOf1)) :+: C1 (MetaCons "PostAccountsRequestBodySettings'Payouts'Schedule'DelayDays'Integer" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Integer)))

data PostAccountsRequestBodySettings'Payouts'Schedule'Interval' Source #

Defines the enum schema postAccountsRequestBodySettings'Payouts'Schedule'Interval'

Instances
Eq PostAccountsRequestBodySettings'Payouts'Schedule'Interval' Source # 
Instance details

Defined in StripeAPI.Operations.PostAccounts

Show PostAccountsRequestBodySettings'Payouts'Schedule'Interval' Source # 
Instance details

Defined in StripeAPI.Operations.PostAccounts

ToJSON PostAccountsRequestBodySettings'Payouts'Schedule'Interval' Source # 
Instance details

Defined in StripeAPI.Operations.PostAccounts

FromJSON PostAccountsRequestBodySettings'Payouts'Schedule'Interval' Source # 
Instance details

Defined in StripeAPI.Operations.PostAccounts

data PostAccountsRequestBodySettings'Payouts'Schedule'WeeklyAnchor' Source #

Defines the enum schema postAccountsRequestBodySettings'Payouts'Schedule'Weekly_anchor'

Instances
Eq PostAccountsRequestBodySettings'Payouts'Schedule'WeeklyAnchor' Source # 
Instance details

Defined in StripeAPI.Operations.PostAccounts

Show PostAccountsRequestBodySettings'Payouts'Schedule'WeeklyAnchor' Source # 
Instance details

Defined in StripeAPI.Operations.PostAccounts

ToJSON PostAccountsRequestBodySettings'Payouts'Schedule'WeeklyAnchor' Source # 
Instance details

Defined in StripeAPI.Operations.PostAccounts

FromJSON PostAccountsRequestBodySettings'Payouts'Schedule'WeeklyAnchor' Source # 
Instance details

Defined in StripeAPI.Operations.PostAccounts

data PostAccountsRequestBodyTosAcceptance' Source #

Defines the data type for the schema postAccountsRequestBodyTos_acceptance'

Details on the account's acceptance of the Stripe Services Agreement.

data PostAccountsRequestBodyType' Source #

Defines the enum schema postAccountsRequestBodyType'

The type of Stripe account to create. Currently must be `custom`, as only Custom accounts may be created via the API.

data PostAccountsResponse Source #

Represents a response of the operation postAccounts.

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

Constructors

PostAccountsResponseError String

Means either no matching case available or a parse error

PostAccountsResponse200 Account

Successful response.

PostAccountsResponseDefault Error

Error response.