Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation postSources
Synopsis
- postSources :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> PostSourcesRequestBody -> m (Either HttpException (Response PostSourcesResponse))
- postSourcesRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> PostSourcesRequestBody -> m (Either HttpException (Response ByteString))
- postSourcesM :: forall m s. (MonadHTTP m, SecurityScheme s) => PostSourcesRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostSourcesResponse))
- postSourcesRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => PostSourcesRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString))
- data PostSourcesRequestBody = PostSourcesRequestBody {
- postSourcesRequestBodyAmount :: Maybe Integer
- postSourcesRequestBodyCurrency :: Maybe String
- postSourcesRequestBodyCustomer :: Maybe String
- postSourcesRequestBodyExpand :: Maybe ([] String)
- postSourcesRequestBodyFlow :: Maybe PostSourcesRequestBodyFlow'
- postSourcesRequestBodyMandate :: Maybe PostSourcesRequestBodyMandate'
- postSourcesRequestBodyMetadata :: Maybe PostSourcesRequestBodyMetadata'
- postSourcesRequestBodyOriginalSource :: Maybe String
- postSourcesRequestBodyOwner :: Maybe PostSourcesRequestBodyOwner'
- postSourcesRequestBodyReceiver :: Maybe PostSourcesRequestBodyReceiver'
- postSourcesRequestBodyRedirect :: Maybe PostSourcesRequestBodyRedirect'
- postSourcesRequestBodySourceOrder :: Maybe PostSourcesRequestBodySourceOrder'
- postSourcesRequestBodyStatementDescriptor :: Maybe String
- postSourcesRequestBodyToken :: Maybe String
- postSourcesRequestBodyType :: Maybe String
- postSourcesRequestBodyUsage :: Maybe PostSourcesRequestBodyUsage'
- data PostSourcesRequestBodyFlow'
- data PostSourcesRequestBodyMandate' = PostSourcesRequestBodyMandate' {
- postSourcesRequestBodyMandate'Acceptance :: Maybe PostSourcesRequestBodyMandate'Acceptance'
- postSourcesRequestBodyMandate'Amount :: Maybe PostSourcesRequestBodyMandate'Amount'Variants
- postSourcesRequestBodyMandate'Currency :: Maybe String
- postSourcesRequestBodyMandate'Interval :: Maybe PostSourcesRequestBodyMandate'Interval'
- postSourcesRequestBodyMandate'NotificationMethod :: Maybe PostSourcesRequestBodyMandate'NotificationMethod'
- data PostSourcesRequestBodyMandate'Acceptance' = PostSourcesRequestBodyMandate'Acceptance' {
- postSourcesRequestBodyMandate'Acceptance'Date :: Maybe Integer
- postSourcesRequestBodyMandate'Acceptance'Ip :: Maybe String
- postSourcesRequestBodyMandate'Acceptance'Offline :: Maybe PostSourcesRequestBodyMandate'Acceptance'Offline'
- postSourcesRequestBodyMandate'Acceptance'Online :: Maybe PostSourcesRequestBodyMandate'Acceptance'Online'
- postSourcesRequestBodyMandate'Acceptance'Status :: PostSourcesRequestBodyMandate'Acceptance'Status'
- postSourcesRequestBodyMandate'Acceptance'Type :: Maybe PostSourcesRequestBodyMandate'Acceptance'Type'
- postSourcesRequestBodyMandate'Acceptance'UserAgent :: Maybe String
- data PostSourcesRequestBodyMandate'Acceptance'Offline' = PostSourcesRequestBodyMandate'Acceptance'Offline' {}
- data PostSourcesRequestBodyMandate'Acceptance'Online' = PostSourcesRequestBodyMandate'Acceptance'Online' {}
- data PostSourcesRequestBodyMandate'Acceptance'Status'
- = PostSourcesRequestBodyMandate'Acceptance'Status'EnumOther Value
- | PostSourcesRequestBodyMandate'Acceptance'Status'EnumTyped String
- | PostSourcesRequestBodyMandate'Acceptance'Status'EnumStringAccepted
- | PostSourcesRequestBodyMandate'Acceptance'Status'EnumStringPending
- | PostSourcesRequestBodyMandate'Acceptance'Status'EnumStringRefused
- | PostSourcesRequestBodyMandate'Acceptance'Status'EnumStringRevoked
- data PostSourcesRequestBodyMandate'Acceptance'Type'
- data PostSourcesRequestBodyMandate'Amount'OneOf1
- data PostSourcesRequestBodyMandate'Amount'Variants
- data PostSourcesRequestBodyMandate'Interval'
- data PostSourcesRequestBodyMandate'NotificationMethod'
- = PostSourcesRequestBodyMandate'NotificationMethod'EnumOther Value
- | PostSourcesRequestBodyMandate'NotificationMethod'EnumTyped String
- | PostSourcesRequestBodyMandate'NotificationMethod'EnumStringDeprecatedNone
- | PostSourcesRequestBodyMandate'NotificationMethod'EnumStringEmail
- | PostSourcesRequestBodyMandate'NotificationMethod'EnumStringManual
- | PostSourcesRequestBodyMandate'NotificationMethod'EnumStringNone
- | PostSourcesRequestBodyMandate'NotificationMethod'EnumStringStripeEmail
- data PostSourcesRequestBodyMetadata' = PostSourcesRequestBodyMetadata' {
- data PostSourcesRequestBodyOwner' = PostSourcesRequestBodyOwner' {}
- data PostSourcesRequestBodyOwner'Address' = PostSourcesRequestBodyOwner'Address' {
- postSourcesRequestBodyOwner'Address'City :: Maybe String
- postSourcesRequestBodyOwner'Address'Country :: Maybe String
- postSourcesRequestBodyOwner'Address'Line1 :: Maybe String
- postSourcesRequestBodyOwner'Address'Line2 :: Maybe String
- postSourcesRequestBodyOwner'Address'PostalCode :: Maybe String
- postSourcesRequestBodyOwner'Address'State :: Maybe String
- data PostSourcesRequestBodyReceiver' = PostSourcesRequestBodyReceiver' {}
- data PostSourcesRequestBodyReceiver'RefundAttributesMethod'
- = PostSourcesRequestBodyReceiver'RefundAttributesMethod'EnumOther Value
- | PostSourcesRequestBodyReceiver'RefundAttributesMethod'EnumTyped String
- | PostSourcesRequestBodyReceiver'RefundAttributesMethod'EnumStringEmail
- | PostSourcesRequestBodyReceiver'RefundAttributesMethod'EnumStringManual
- | PostSourcesRequestBodyReceiver'RefundAttributesMethod'EnumStringNone
- data PostSourcesRequestBodyRedirect' = PostSourcesRequestBodyRedirect' {}
- data PostSourcesRequestBodySourceOrder' = PostSourcesRequestBodySourceOrder' {}
- data PostSourcesRequestBodySourceOrder'Items' = PostSourcesRequestBodySourceOrder'Items' {
- postSourcesRequestBodySourceOrder'Items'Amount :: Maybe Integer
- postSourcesRequestBodySourceOrder'Items'Currency :: Maybe String
- postSourcesRequestBodySourceOrder'Items'Description :: Maybe String
- postSourcesRequestBodySourceOrder'Items'Parent :: Maybe String
- postSourcesRequestBodySourceOrder'Items'Quantity :: Maybe Integer
- postSourcesRequestBodySourceOrder'Items'Type :: Maybe PostSourcesRequestBodySourceOrder'Items'Type'
- data PostSourcesRequestBodySourceOrder'Items'Type'
- = PostSourcesRequestBodySourceOrder'Items'Type'EnumOther Value
- | PostSourcesRequestBodySourceOrder'Items'Type'EnumTyped String
- | PostSourcesRequestBodySourceOrder'Items'Type'EnumStringDiscount
- | PostSourcesRequestBodySourceOrder'Items'Type'EnumStringShipping
- | PostSourcesRequestBodySourceOrder'Items'Type'EnumStringSku
- | PostSourcesRequestBodySourceOrder'Items'Type'EnumStringTax
- data PostSourcesRequestBodySourceOrder'Shipping' = PostSourcesRequestBodySourceOrder'Shipping' {
- postSourcesRequestBodySourceOrder'Shipping'Address :: PostSourcesRequestBodySourceOrder'Shipping'Address'
- postSourcesRequestBodySourceOrder'Shipping'Carrier :: Maybe String
- postSourcesRequestBodySourceOrder'Shipping'Name :: Maybe String
- postSourcesRequestBodySourceOrder'Shipping'Phone :: Maybe String
- postSourcesRequestBodySourceOrder'Shipping'TrackingNumber :: Maybe String
- data PostSourcesRequestBodySourceOrder'Shipping'Address' = PostSourcesRequestBodySourceOrder'Shipping'Address' {
- postSourcesRequestBodySourceOrder'Shipping'Address'City :: Maybe String
- postSourcesRequestBodySourceOrder'Shipping'Address'Country :: Maybe String
- postSourcesRequestBodySourceOrder'Shipping'Address'Line1 :: String
- postSourcesRequestBodySourceOrder'Shipping'Address'Line2 :: Maybe String
- postSourcesRequestBodySourceOrder'Shipping'Address'PostalCode :: Maybe String
- postSourcesRequestBodySourceOrder'Shipping'Address'State :: Maybe String
- data PostSourcesRequestBodyUsage'
- data PostSourcesResponse
Documentation
:: (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
postSourcesM :: forall m s. (MonadHTTP m, SecurityScheme s) => PostSourcesRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostSourcesResponse)) Source #
POST /v1/sources
Monadic version of postSources
(use with runWithConfiguration
)
postSourcesRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => PostSourcesRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString)) Source #
POST /v1/sources
Monadic version of postSourcesRaw
(use with runWithConfiguration
)
data PostSourcesRequestBody Source #
Defines the data type for the schema postSourcesRequestBody
PostSourcesRequestBody | |
|
Instances
Eq PostSourcesRequestBody Source # | |
Defined in StripeAPI.Operations.PostSources | |
Show PostSourcesRequestBody Source # | |
Defined in StripeAPI.Operations.PostSources showsPrec :: Int -> PostSourcesRequestBody -> ShowS # show :: PostSourcesRequestBody -> String # showList :: [PostSourcesRequestBody] -> ShowS # | |
ToJSON PostSourcesRequestBody Source # | |
Defined in StripeAPI.Operations.PostSources toJSON :: PostSourcesRequestBody -> Value # toEncoding :: PostSourcesRequestBody -> Encoding # toJSONList :: [PostSourcesRequestBody] -> Value # | |
FromJSON PostSourcesRequestBody Source # | |
Defined in StripeAPI.Operations.PostSources |
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.
Instances
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.
PostSourcesRequestBodyMandate' | |
|
data PostSourcesRequestBodyMandate'Acceptance' Source #
Defines the data type for the schema postSourcesRequestBodyMandate'Acceptance'
PostSourcesRequestBodyMandate'Acceptance' | |
|
data PostSourcesRequestBodyMandate'Acceptance'Offline' Source #
Defines the data type for the schema postSourcesRequestBodyMandate'Acceptance'Offline'
PostSourcesRequestBodyMandate'Acceptance'Offline' | |
|
Instances
data PostSourcesRequestBodyMandate'Acceptance'Online' Source #
Defines the data type for the schema postSourcesRequestBodyMandate'Acceptance'Online'
PostSourcesRequestBodyMandate'Acceptance'Online' | |
|
Instances
data PostSourcesRequestBodyMandate'Acceptance'Status' Source #
Defines the enum schema postSourcesRequestBodyMandate'Acceptance'Status'
Instances
data PostSourcesRequestBodyMandate'Acceptance'Type' Source #
Defines the enum schema postSourcesRequestBodyMandate'Acceptance'Type'
Instances
data PostSourcesRequestBodyMandate'Amount'OneOf1 Source #
Defines the enum schema postSourcesRequestBodyMandate'Amount'OneOf1
PostSourcesRequestBodyMandate'Amount'OneOf1EnumOther Value | |
PostSourcesRequestBodyMandate'Amount'OneOf1EnumTyped String | |
PostSourcesRequestBodyMandate'Amount'OneOf1EnumString_ |
data PostSourcesRequestBodyMandate'Amount'Variants Source #
Define the one-of schema postSourcesRequestBodyMandate'Amount'
PostSourcesRequestBodyMandate'Amount'PostSourcesRequestBodyMandate'Amount'OneOf1 PostSourcesRequestBodyMandate'Amount'OneOf1 | |
PostSourcesRequestBodyMandate'Amount'Integer Integer |
Instances
data PostSourcesRequestBodyMandate'Interval' Source #
Defines the enum schema postSourcesRequestBodyMandate'Interval'
data PostSourcesRequestBodyMandate'NotificationMethod' Source #
Defines the enum schema postSourcesRequestBodyMandate'Notification_method'
Instances
data PostSourcesRequestBodyMetadata' Source #
Defines the data type for the schema postSourcesRequestBodyMetadata'
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.
PostSourcesRequestBodyOwner' | |
|
Instances
data PostSourcesRequestBodyOwner'Address' Source #
Defines the data type for the schema postSourcesRequestBodyOwner'Address'
PostSourcesRequestBodyOwner'Address' | |
|
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`).
PostSourcesRequestBodyReceiver' | |
|
data PostSourcesRequestBodyReceiver'RefundAttributesMethod' Source #
Defines the enum schema postSourcesRequestBodyReceiver'Refund_attributes_method'
Instances
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'
PostSourcesRequestBodySourceOrder'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'
PostSourcesRequestBodySourceOrder'Shipping' | |
|
data PostSourcesRequestBodySourceOrder'Shipping'Address' Source #
Defines the data type for the schema postSourcesRequestBodySource_order'Shipping'Address'
PostSourcesRequestBodySourceOrder'Shipping'Address' | |
|
Instances
data PostSourcesRequestBodyUsage' Source #
Defines the enum schema postSourcesRequestBodyUsage'
PostSourcesRequestBodyUsage'EnumOther Value | |
PostSourcesRequestBodyUsage'EnumTyped String | |
PostSourcesRequestBodyUsage'EnumStringReusable | |
PostSourcesRequestBodyUsage'EnumStringSingleUse |
Instances
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.
PostSourcesResponseError String | Means either no matching case available or a parse error |
PostSourcesResponse200 Source | Successful response. |
PostSourcesResponseDefault Error | Error response. |
Instances
Eq PostSourcesResponse Source # | |
Defined in StripeAPI.Operations.PostSources (==) :: PostSourcesResponse -> PostSourcesResponse -> Bool # (/=) :: PostSourcesResponse -> PostSourcesResponse -> Bool # | |
Show PostSourcesResponse Source # | |
Defined in StripeAPI.Operations.PostSources showsPrec :: Int -> PostSourcesResponse -> ShowS # show :: PostSourcesResponse -> String # showList :: [PostSourcesResponse] -> ShowS # |