stripeapi-0.1.0.0: Stripe-Library

Safe HaskellNone
LanguageHaskell2010

StripeAPI.Operations.PostAccount

Description

Contains the different functions to run the operation postAccount

Synopsis

Documentation

postAccount Source #

Arguments

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

The configuration to use in the request

-> PostAccountRequestBody

The request body to send

-> m (Either HttpException (Response PostAccountResponse))

Monad containing the result of the operation

POST /v1/account

<p>Updates a connected <a href="/docs/connect/accounts">Express or Custom account</a> by setting the values of the parameters passed. Any parameters not provided are left unchanged. Most parameters can be changed only for Custom accounts. (These are marked <strong>Custom Only</strong> below.) Parameters marked <strong>Custom and Express</strong> are supported by both account types.</p>

<p>To update your own account, use the <a href="https://dashboard.stripe.com/account">Dashboard</a>. Refer to our <a href="/docs/connect/updating-accounts">Connect</a> documentation to learn more about updating accounts.</p>

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

POST /v1/account

The same as postAccount but returns the raw ByteString

data PostAccountRequestBody Source #

Defines the data type for the schema postAccountRequestBody

Constructors

PostAccountRequestBody 

Fields

data PostAccountRequestBodyBankAccount'OneOf2 Source #

Defines the data type for the schema postAccountRequestBodyBank_account'OneOf2

data PostAccountRequestBodyBankAccount'OneOf2AccountHolderType' Source #

Defines the enum schema postAccountRequestBodyBank_account'OneOf2Account_holder_type'

Instances
Eq PostAccountRequestBodyBankAccount'OneOf2AccountHolderType' Source # 
Instance details

Defined in StripeAPI.Operations.PostAccount

Show PostAccountRequestBodyBankAccount'OneOf2AccountHolderType' Source # 
Instance details

Defined in StripeAPI.Operations.PostAccount

ToJSON PostAccountRequestBodyBankAccount'OneOf2AccountHolderType' Source # 
Instance details

Defined in StripeAPI.Operations.PostAccount

FromJSON PostAccountRequestBodyBankAccount'OneOf2AccountHolderType' Source # 
Instance details

Defined in StripeAPI.Operations.PostAccount

data PostAccountRequestBodyBankAccount'OneOf2Object' Source #

Defines the enum schema postAccountRequestBodyBank_account'OneOf2Object'

data PostAccountRequestBodyBankAccount'Variants Source #

Define the one-of schema postAccountRequestBodyBank_account'

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

Instances
Eq PostAccountRequestBodyBankAccount'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostAccount

Show PostAccountRequestBodyBankAccount'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostAccount

Generic PostAccountRequestBodyBankAccount'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostAccount

ToJSON PostAccountRequestBodyBankAccount'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostAccount

FromJSON PostAccountRequestBodyBankAccount'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostAccount

type Rep PostAccountRequestBodyBankAccount'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostAccount

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

data PostAccountRequestBodyBusinessProfile' Source #

Defines the data type for the schema postAccountRequestBodyBusiness_profile'

Business information about the account.

data PostAccountRequestBodyBusinessType' Source #

Defines the enum schema postAccountRequestBodyBusiness_type'

The business type.

data PostAccountRequestBodyCompany' Source #

Defines the data type for the schema postAccountRequestBodyCompany'

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

data PostAccountRequestBodyCompany'Address' Source #

Defines the data type for the schema postAccountRequestBodyCompany'Address'

Constructors

PostAccountRequestBodyCompany'Address' 

Fields

data PostAccountRequestBodyCompany'AddressKana' Source #

Defines the data type for the schema postAccountRequestBodyCompany'Address_kana'

Constructors

PostAccountRequestBodyCompany'AddressKana' 

Fields

data PostAccountRequestBodyCompany'AddressKanji' Source #

Defines the data type for the schema postAccountRequestBodyCompany'Address_kanji'

Constructors

PostAccountRequestBodyCompany'AddressKanji' 

Fields

data PostAccountRequestBodyCompany'Structure' Source #

Defines the enum schema postAccountRequestBodyCompany'Structure'

data PostAccountRequestBodyCompany'Verification' Source #

Defines the data type for the schema postAccountRequestBodyCompany'Verification'

data PostAccountRequestBodyCompany'Verification'Document' Source #

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

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

Defined in StripeAPI.Operations.PostAccount

Show PostAccountRequestBodyCompany'Verification'Document' Source # 
Instance details

Defined in StripeAPI.Operations.PostAccount

ToJSON PostAccountRequestBodyCompany'Verification'Document' Source # 
Instance details

Defined in StripeAPI.Operations.PostAccount

FromJSON PostAccountRequestBodyCompany'Verification'Document' Source # 
Instance details

Defined in StripeAPI.Operations.PostAccount

data PostAccountRequestBodyIndividual' Source #

Defines the data type for the schema postAccountRequestBodyIndividual'

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

Constructors

PostAccountRequestBodyIndividual' 

Fields

data PostAccountRequestBodyIndividual'Address' Source #

Defines the data type for the schema postAccountRequestBodyIndividual'Address'

Constructors

PostAccountRequestBodyIndividual'Address' 

Fields

data PostAccountRequestBodyIndividual'AddressKana' Source #

Defines the data type for the schema postAccountRequestBodyIndividual'Address_kana'

Constructors

PostAccountRequestBodyIndividual'AddressKana' 

Fields

data PostAccountRequestBodyIndividual'AddressKanji' Source #

Defines the data type for the schema postAccountRequestBodyIndividual'Address_kanji'

Constructors

PostAccountRequestBodyIndividual'AddressKanji' 

Fields

data PostAccountRequestBodyIndividual'Dob'OneOf1 Source #

Defines the enum schema postAccountRequestBodyIndividual'Dob'OneOf1

data PostAccountRequestBodyIndividual'Dob'OneOf2 Source #

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

data PostAccountRequestBodyIndividual'Dob'Variants Source #

Define the one-of schema postAccountRequestBodyIndividual'Dob'

Instances
Eq PostAccountRequestBodyIndividual'Dob'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostAccount

Show PostAccountRequestBodyIndividual'Dob'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostAccount

Generic PostAccountRequestBodyIndividual'Dob'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostAccount

ToJSON PostAccountRequestBodyIndividual'Dob'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostAccount

FromJSON PostAccountRequestBodyIndividual'Dob'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostAccount

type Rep PostAccountRequestBodyIndividual'Dob'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostAccount

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

data PostAccountRequestBodyIndividual'Metadata' Source #

Defines the data type for the schema postAccountRequestBodyIndividual'Metadata'

data PostAccountRequestBodyIndividual'Verification' Source #

Defines the data type for the schema postAccountRequestBodyIndividual'Verification'

data PostAccountRequestBodyIndividual'Verification'AdditionalDocument' Source #

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

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

Defined in StripeAPI.Operations.PostAccount

Show PostAccountRequestBodyIndividual'Verification'AdditionalDocument' Source # 
Instance details

Defined in StripeAPI.Operations.PostAccount

ToJSON PostAccountRequestBodyIndividual'Verification'AdditionalDocument' Source # 
Instance details

Defined in StripeAPI.Operations.PostAccount

FromJSON PostAccountRequestBodyIndividual'Verification'AdditionalDocument' Source # 
Instance details

Defined in StripeAPI.Operations.PostAccount

data PostAccountRequestBodyIndividual'Verification'Document' Source #

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

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

Defined in StripeAPI.Operations.PostAccount

Show PostAccountRequestBodyIndividual'Verification'Document' Source # 
Instance details

Defined in StripeAPI.Operations.PostAccount

ToJSON PostAccountRequestBodyIndividual'Verification'Document' Source # 
Instance details

Defined in StripeAPI.Operations.PostAccount

FromJSON PostAccountRequestBodyIndividual'Verification'Document' Source # 
Instance details

Defined in StripeAPI.Operations.PostAccount

data PostAccountRequestBodyMetadata' Source #

Defines the data type for the schema postAccountRequestBodyMetadata'

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 PostAccountRequestBodyRequestedCapabilities' Source #

Defines the enum schema postAccountRequestBodyRequested_capabilities'

data PostAccountRequestBodySettings' Source #

Defines the data type for the schema postAccountRequestBodySettings'

Options for customizing how the account functions within Stripe.

data PostAccountRequestBodySettings'Branding' Source #

Defines the data type for the schema postAccountRequestBodySettings'Branding'

Constructors

PostAccountRequestBodySettings'Branding' 

Fields

data PostAccountRequestBodySettings'CardPayments' Source #

Defines the data type for the schema postAccountRequestBodySettings'Card_payments'

data PostAccountRequestBodySettings'CardPayments'DeclineOn' Source #

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

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

Defined in StripeAPI.Operations.PostAccount

Show PostAccountRequestBodySettings'CardPayments'DeclineOn' Source # 
Instance details

Defined in StripeAPI.Operations.PostAccount

ToJSON PostAccountRequestBodySettings'CardPayments'DeclineOn' Source # 
Instance details

Defined in StripeAPI.Operations.PostAccount

FromJSON PostAccountRequestBodySettings'CardPayments'DeclineOn' Source # 
Instance details

Defined in StripeAPI.Operations.PostAccount

data PostAccountRequestBodySettings'Payments' Source #

Defines the data type for the schema postAccountRequestBodySettings'Payments'

Constructors

PostAccountRequestBodySettings'Payments' 

Fields

data PostAccountRequestBodySettings'Payouts' Source #

Defines the data type for the schema postAccountRequestBodySettings'Payouts'

data PostAccountRequestBodySettings'Payouts'Schedule' Source #

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

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

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

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

Defined in StripeAPI.Operations.PostAccount

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

Defined in StripeAPI.Operations.PostAccount

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

Defined in StripeAPI.Operations.PostAccount

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

Defined in StripeAPI.Operations.PostAccount

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

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

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

Defined in StripeAPI.Operations.PostAccount

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

Defined in StripeAPI.Operations.PostAccount

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

Defined in StripeAPI.Operations.PostAccount

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

Defined in StripeAPI.Operations.PostAccount

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

Defined in StripeAPI.Operations.PostAccount

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

Defined in StripeAPI.Operations.PostAccount

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

data PostAccountRequestBodySettings'Payouts'Schedule'Interval' Source #

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

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

Defined in StripeAPI.Operations.PostAccount

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

Defined in StripeAPI.Operations.PostAccount

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

Defined in StripeAPI.Operations.PostAccount

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

Defined in StripeAPI.Operations.PostAccount

data PostAccountRequestBodySettings'Payouts'Schedule'WeeklyAnchor' Source #

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

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

Defined in StripeAPI.Operations.PostAccount

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

Defined in StripeAPI.Operations.PostAccount

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

Defined in StripeAPI.Operations.PostAccount

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

Defined in StripeAPI.Operations.PostAccount

data PostAccountRequestBodyTosAcceptance' Source #

Defines the data type for the schema postAccountRequestBodyTos_acceptance'

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

data PostAccountResponse Source #

Represents a response of the operation postAccount.

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

Constructors

PostAccountResponseError String

Means either no matching case available or a parse error

PostAccountResponse200 Account

Successful response.

PostAccountResponseDefault Error

Error response.