stripeapi-0.1.0.0: Stripe-Library

Safe HaskellNone
LanguageHaskell2010

StripeAPI.Operations.PostSources

Description

Contains the different functions to run the operation postSources

Synopsis

Documentation

postSources Source #

Arguments

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

The configuration to use in the request

-> PostSourcesRequestBody

The request body to send

-> m (Either HttpException (Response PostSourcesResponse))

Monad containing the result of the operation

POST /v1/sources

<p>Creates a new source object.</p>

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

POST /v1/sources

The same as postSources but returns the raw ByteString

data PostSourcesRequestBody Source #

Defines the data type for the schema postSourcesRequestBody

Constructors

PostSourcesRequestBody 

Fields

data PostSourcesRequestBodyFlow' Source #

Defines the enum schema postSourcesRequestBodyFlow'

The authentication `flow` of the source to create. `flow` is one of `redirect`, `receiver`, `code_verification`, `none`. It is generally inferred unless a type supports multiple flows.

data PostSourcesRequestBodyMandate' Source #

Defines the data type for the schema postSourcesRequestBodyMandate'

Information about a mandate possibility attached to a source object (generally for bank debits) as well as its acceptance status.

data PostSourcesRequestBodyMandate'Acceptance' Source #

Defines the data type for the schema postSourcesRequestBodyMandate'Acceptance'

data PostSourcesRequestBodyMandate'Acceptance'Offline' Source #

Defines the data type for the schema postSourcesRequestBodyMandate'Acceptance'Offline'

data PostSourcesRequestBodyMandate'Acceptance'Online' Source #

Defines the data type for the schema postSourcesRequestBodyMandate'Acceptance'Online'

data PostSourcesRequestBodyMandate'Acceptance'Status' Source #

Defines the enum schema postSourcesRequestBodyMandate'Acceptance'Status'

data PostSourcesRequestBodyMandate'Acceptance'Type' Source #

Defines the enum schema postSourcesRequestBodyMandate'Acceptance'Type'

data PostSourcesRequestBodyMandate'Amount'OneOf1 Source #

Defines the enum schema postSourcesRequestBodyMandate'Amount'OneOf1

data PostSourcesRequestBodyMandate'Amount'Variants Source #

Define the one-of schema postSourcesRequestBodyMandate'Amount'

Instances
Eq PostSourcesRequestBodyMandate'Amount'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostSources

Show PostSourcesRequestBodyMandate'Amount'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostSources

Generic PostSourcesRequestBodyMandate'Amount'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostSources

ToJSON PostSourcesRequestBodyMandate'Amount'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostSources

FromJSON PostSourcesRequestBodyMandate'Amount'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostSources

type Rep PostSourcesRequestBodyMandate'Amount'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostSources

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

data PostSourcesRequestBodyMandate'Interval' Source #

Defines the enum schema postSourcesRequestBodyMandate'Interval'

data PostSourcesRequestBodyMandate'NotificationMethod' Source #

Defines the enum schema postSourcesRequestBodyMandate'Notification_method'

data PostSourcesRequestBodyOwner' Source #

Defines the data type for the schema postSourcesRequestBodyOwner'

Information about the owner of the payment instrument that may be used or required by particular source types.

data PostSourcesRequestBodyOwner'Address' Source #

Defines the data type for the schema postSourcesRequestBodyOwner'Address'

Constructors

PostSourcesRequestBodyOwner'Address' 

Fields

data PostSourcesRequestBodyReceiver' Source #

Defines the data type for the schema postSourcesRequestBodyReceiver'

Optional parameters for the receiver flow. Can be set only if the source is a receiver (`flow` is `receiver`).

data PostSourcesRequestBodyReceiver'RefundAttributesMethod' Source #

Defines the enum schema postSourcesRequestBodyReceiver'Refund_attributes_method'

Instances
Eq PostSourcesRequestBodyReceiver'RefundAttributesMethod' Source # 
Instance details

Defined in StripeAPI.Operations.PostSources

Show PostSourcesRequestBodyReceiver'RefundAttributesMethod' Source # 
Instance details

Defined in StripeAPI.Operations.PostSources

ToJSON PostSourcesRequestBodyReceiver'RefundAttributesMethod' Source # 
Instance details

Defined in StripeAPI.Operations.PostSources

FromJSON PostSourcesRequestBodyReceiver'RefundAttributesMethod' Source # 
Instance details

Defined in StripeAPI.Operations.PostSources

data PostSourcesRequestBodyRedirect' Source #

Defines the data type for the schema postSourcesRequestBodyRedirect'

Parameters required for the redirect flow. Required if the source is authenticated by a redirect (`flow` is `redirect`).

data PostSourcesRequestBodySourceOrder' Source #

Defines the data type for the schema postSourcesRequestBodySource_order'

Information about the items and shipping associated with the source. Required for transactional credit (for example Klarna) sources before you can charge it.

data PostSourcesRequestBodySourceOrder'Items' Source #

Defines the data type for the schema postSourcesRequestBodySource_order'Items'

data PostSourcesRequestBodySourceOrder'Items'Type' Source #

Defines the enum schema postSourcesRequestBodySource_order'Items'Type'

data PostSourcesRequestBodySourceOrder'Shipping' Source #

Defines the data type for the schema postSourcesRequestBodySource_order'Shipping'

data PostSourcesRequestBodySourceOrder'Shipping'Address' Source #

Defines the data type for the schema postSourcesRequestBodySource_order'Shipping'Address'

Instances
Eq PostSourcesRequestBodySourceOrder'Shipping'Address' Source # 
Instance details

Defined in StripeAPI.Operations.PostSources

Show PostSourcesRequestBodySourceOrder'Shipping'Address' Source # 
Instance details

Defined in StripeAPI.Operations.PostSources

ToJSON PostSourcesRequestBodySourceOrder'Shipping'Address' Source # 
Instance details

Defined in StripeAPI.Operations.PostSources

FromJSON PostSourcesRequestBodySourceOrder'Shipping'Address' Source # 
Instance details

Defined in StripeAPI.Operations.PostSources

data PostSourcesResponse Source #

Represents a response of the operation postSources.

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

Constructors

PostSourcesResponseError String

Means either no matching case available or a parse error

PostSourcesResponse200 Source

Successful response.

PostSourcesResponseDefault Error

Error response.