Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation postSourcesSource
Synopsis
- postSourcesSource :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostSourcesSourceRequestBody -> m (Either HttpException (Response PostSourcesSourceResponse))
- postSourcesSourceRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostSourcesSourceRequestBody -> m (Either HttpException (Response ByteString))
- postSourcesSourceM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostSourcesSourceRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostSourcesSourceResponse))
- postSourcesSourceRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostSourcesSourceRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString))
- data PostSourcesSourceRequestBody = PostSourcesSourceRequestBody {
- postSourcesSourceRequestBodyAmount :: Maybe Integer
- postSourcesSourceRequestBodyExpand :: Maybe ([] String)
- postSourcesSourceRequestBodyMandate :: Maybe PostSourcesSourceRequestBodyMandate'
- postSourcesSourceRequestBodyMetadata :: Maybe PostSourcesSourceRequestBodyMetadata'
- postSourcesSourceRequestBodyOwner :: Maybe PostSourcesSourceRequestBodyOwner'
- postSourcesSourceRequestBodySourceOrder :: Maybe PostSourcesSourceRequestBodySourceOrder'
- data PostSourcesSourceRequestBodyMandate' = PostSourcesSourceRequestBodyMandate' {
- postSourcesSourceRequestBodyMandate'Acceptance :: Maybe PostSourcesSourceRequestBodyMandate'Acceptance'
- postSourcesSourceRequestBodyMandate'Amount :: Maybe PostSourcesSourceRequestBodyMandate'Amount'Variants
- postSourcesSourceRequestBodyMandate'Currency :: Maybe String
- postSourcesSourceRequestBodyMandate'Interval :: Maybe PostSourcesSourceRequestBodyMandate'Interval'
- postSourcesSourceRequestBodyMandate'NotificationMethod :: Maybe PostSourcesSourceRequestBodyMandate'NotificationMethod'
- data PostSourcesSourceRequestBodyMandate'Acceptance' = PostSourcesSourceRequestBodyMandate'Acceptance' {
- postSourcesSourceRequestBodyMandate'Acceptance'Date :: Maybe Integer
- postSourcesSourceRequestBodyMandate'Acceptance'Ip :: Maybe String
- postSourcesSourceRequestBodyMandate'Acceptance'Offline :: Maybe PostSourcesSourceRequestBodyMandate'Acceptance'Offline'
- postSourcesSourceRequestBodyMandate'Acceptance'Online :: Maybe PostSourcesSourceRequestBodyMandate'Acceptance'Online'
- postSourcesSourceRequestBodyMandate'Acceptance'Status :: PostSourcesSourceRequestBodyMandate'Acceptance'Status'
- postSourcesSourceRequestBodyMandate'Acceptance'Type :: Maybe PostSourcesSourceRequestBodyMandate'Acceptance'Type'
- postSourcesSourceRequestBodyMandate'Acceptance'UserAgent :: Maybe String
- data PostSourcesSourceRequestBodyMandate'Acceptance'Offline' = PostSourcesSourceRequestBodyMandate'Acceptance'Offline' {}
- data PostSourcesSourceRequestBodyMandate'Acceptance'Online' = PostSourcesSourceRequestBodyMandate'Acceptance'Online' {}
- data PostSourcesSourceRequestBodyMandate'Acceptance'Status'
- = PostSourcesSourceRequestBodyMandate'Acceptance'Status'EnumOther Value
- | PostSourcesSourceRequestBodyMandate'Acceptance'Status'EnumTyped String
- | PostSourcesSourceRequestBodyMandate'Acceptance'Status'EnumStringAccepted
- | PostSourcesSourceRequestBodyMandate'Acceptance'Status'EnumStringPending
- | PostSourcesSourceRequestBodyMandate'Acceptance'Status'EnumStringRefused
- | PostSourcesSourceRequestBodyMandate'Acceptance'Status'EnumStringRevoked
- data PostSourcesSourceRequestBodyMandate'Acceptance'Type'
- data PostSourcesSourceRequestBodyMandate'Amount'OneOf1
- data PostSourcesSourceRequestBodyMandate'Amount'Variants
- data PostSourcesSourceRequestBodyMandate'Interval'
- = PostSourcesSourceRequestBodyMandate'Interval'EnumOther Value
- | PostSourcesSourceRequestBodyMandate'Interval'EnumTyped String
- | PostSourcesSourceRequestBodyMandate'Interval'EnumStringOneTime
- | PostSourcesSourceRequestBodyMandate'Interval'EnumStringScheduled
- | PostSourcesSourceRequestBodyMandate'Interval'EnumStringVariable
- data PostSourcesSourceRequestBodyMandate'NotificationMethod'
- = PostSourcesSourceRequestBodyMandate'NotificationMethod'EnumOther Value
- | PostSourcesSourceRequestBodyMandate'NotificationMethod'EnumTyped String
- | PostSourcesSourceRequestBodyMandate'NotificationMethod'EnumStringDeprecatedNone
- | PostSourcesSourceRequestBodyMandate'NotificationMethod'EnumStringEmail
- | PostSourcesSourceRequestBodyMandate'NotificationMethod'EnumStringManual
- | PostSourcesSourceRequestBodyMandate'NotificationMethod'EnumStringNone
- | PostSourcesSourceRequestBodyMandate'NotificationMethod'EnumStringStripeEmail
- data PostSourcesSourceRequestBodyMetadata' = PostSourcesSourceRequestBodyMetadata' {
- data PostSourcesSourceRequestBodyOwner' = PostSourcesSourceRequestBodyOwner' {}
- data PostSourcesSourceRequestBodyOwner'Address' = PostSourcesSourceRequestBodyOwner'Address' {
- postSourcesSourceRequestBodyOwner'Address'City :: Maybe String
- postSourcesSourceRequestBodyOwner'Address'Country :: Maybe String
- postSourcesSourceRequestBodyOwner'Address'Line1 :: Maybe String
- postSourcesSourceRequestBodyOwner'Address'Line2 :: Maybe String
- postSourcesSourceRequestBodyOwner'Address'PostalCode :: Maybe String
- postSourcesSourceRequestBodyOwner'Address'State :: Maybe String
- data PostSourcesSourceRequestBodySourceOrder' = PostSourcesSourceRequestBodySourceOrder' {}
- data PostSourcesSourceRequestBodySourceOrder'Items' = PostSourcesSourceRequestBodySourceOrder'Items' {
- postSourcesSourceRequestBodySourceOrder'Items'Amount :: Maybe Integer
- postSourcesSourceRequestBodySourceOrder'Items'Currency :: Maybe String
- postSourcesSourceRequestBodySourceOrder'Items'Description :: Maybe String
- postSourcesSourceRequestBodySourceOrder'Items'Parent :: Maybe String
- postSourcesSourceRequestBodySourceOrder'Items'Quantity :: Maybe Integer
- postSourcesSourceRequestBodySourceOrder'Items'Type :: Maybe PostSourcesSourceRequestBodySourceOrder'Items'Type'
- data PostSourcesSourceRequestBodySourceOrder'Items'Type'
- = PostSourcesSourceRequestBodySourceOrder'Items'Type'EnumOther Value
- | PostSourcesSourceRequestBodySourceOrder'Items'Type'EnumTyped String
- | PostSourcesSourceRequestBodySourceOrder'Items'Type'EnumStringDiscount
- | PostSourcesSourceRequestBodySourceOrder'Items'Type'EnumStringShipping
- | PostSourcesSourceRequestBodySourceOrder'Items'Type'EnumStringSku
- | PostSourcesSourceRequestBodySourceOrder'Items'Type'EnumStringTax
- data PostSourcesSourceRequestBodySourceOrder'Shipping' = PostSourcesSourceRequestBodySourceOrder'Shipping' {
- postSourcesSourceRequestBodySourceOrder'Shipping'Address :: PostSourcesSourceRequestBodySourceOrder'Shipping'Address'
- postSourcesSourceRequestBodySourceOrder'Shipping'Carrier :: Maybe String
- postSourcesSourceRequestBodySourceOrder'Shipping'Name :: Maybe String
- postSourcesSourceRequestBodySourceOrder'Shipping'Phone :: Maybe String
- postSourcesSourceRequestBodySourceOrder'Shipping'TrackingNumber :: Maybe String
- data PostSourcesSourceRequestBodySourceOrder'Shipping'Address' = PostSourcesSourceRequestBodySourceOrder'Shipping'Address' {
- postSourcesSourceRequestBodySourceOrder'Shipping'Address'City :: Maybe String
- postSourcesSourceRequestBodySourceOrder'Shipping'Address'Country :: Maybe String
- postSourcesSourceRequestBodySourceOrder'Shipping'Address'Line1 :: String
- postSourcesSourceRequestBodySourceOrder'Shipping'Address'Line2 :: Maybe String
- postSourcesSourceRequestBodySourceOrder'Shipping'Address'PostalCode :: Maybe String
- postSourcesSourceRequestBodySourceOrder'Shipping'Address'State :: Maybe String
- data PostSourcesSourceResponse
Documentation
:: (MonadHTTP m, SecurityScheme s) | |
=> Configuration s | The configuration to use in the request |
-> String | source | Constraints: Maximum length of 5000 |
-> PostSourcesSourceRequestBody | The request body to send |
-> m (Either HttpException (Response PostSourcesSourceResponse)) | Monad containing the result of the operation |
POST /v1/sources/{source}
<p>Updates the specified source by setting the values of the parameters passed. Any parameters not provided will be left unchanged.</p>
<p>This request accepts the <code>metadata</code> and <code>owner</code> as arguments. It is also possible to update type specific information for selected payment methods. Please refer to our <a href="/docs/sources">payment method guides</a> for more detail.</p>
postSourcesSourceRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostSourcesSourceRequestBody -> m (Either HttpException (Response ByteString)) Source #
POST /v1/sources/{source}
The same as postSourcesSource
but returns the raw ByteString
postSourcesSourceM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostSourcesSourceRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostSourcesSourceResponse)) Source #
POST /v1/sources/{source}
Monadic version of postSourcesSource
(use with runWithConfiguration
)
postSourcesSourceRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostSourcesSourceRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString)) Source #
POST /v1/sources/{source}
Monadic version of postSourcesSourceRaw
(use with runWithConfiguration
)
data PostSourcesSourceRequestBody Source #
Defines the data type for the schema postSourcesSourceRequestBody
PostSourcesSourceRequestBody | |
|
Instances
data PostSourcesSourceRequestBodyMandate' Source #
Defines the data type for the schema postSourcesSourceRequestBodyMandate'
Information about a mandate possibility attached to a source object (generally for bank debits) as well as its acceptance status.
PostSourcesSourceRequestBodyMandate' | |
|
data PostSourcesSourceRequestBodyMandate'Acceptance' Source #
Defines the data type for the schema postSourcesSourceRequestBodyMandate'Acceptance'
PostSourcesSourceRequestBodyMandate'Acceptance' | |
|
Instances
data PostSourcesSourceRequestBodyMandate'Acceptance'Offline' Source #
Defines the data type for the schema postSourcesSourceRequestBodyMandate'Acceptance'Offline'
Instances
data PostSourcesSourceRequestBodyMandate'Acceptance'Online' Source #
Defines the data type for the schema postSourcesSourceRequestBodyMandate'Acceptance'Online'
Instances
data PostSourcesSourceRequestBodyMandate'Acceptance'Status' Source #
Defines the enum schema postSourcesSourceRequestBodyMandate'Acceptance'Status'
Instances
data PostSourcesSourceRequestBodyMandate'Acceptance'Type' Source #
Defines the enum schema postSourcesSourceRequestBodyMandate'Acceptance'Type'
Instances
data PostSourcesSourceRequestBodyMandate'Amount'OneOf1 Source #
Defines the enum schema postSourcesSourceRequestBodyMandate'Amount'OneOf1
PostSourcesSourceRequestBodyMandate'Amount'OneOf1EnumOther Value | |
PostSourcesSourceRequestBodyMandate'Amount'OneOf1EnumTyped String | |
PostSourcesSourceRequestBodyMandate'Amount'OneOf1EnumString_ |
Instances
data PostSourcesSourceRequestBodyMandate'Amount'Variants Source #
Define the one-of schema postSourcesSourceRequestBodyMandate'Amount'
Instances
data PostSourcesSourceRequestBodyMandate'Interval' Source #
Defines the enum schema postSourcesSourceRequestBodyMandate'Interval'
Instances
data PostSourcesSourceRequestBodyMandate'NotificationMethod' Source #
Defines the enum schema postSourcesSourceRequestBodyMandate'Notification_method'
Instances
data PostSourcesSourceRequestBodyMetadata' Source #
Defines the data type for the schema postSourcesSourceRequestBodyMetadata'
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 PostSourcesSourceRequestBodyOwner' Source #
Defines the data type for the schema postSourcesSourceRequestBodyOwner'
Information about the owner of the payment instrument that may be used or required by particular source types.
PostSourcesSourceRequestBodyOwner' | |
|
data PostSourcesSourceRequestBodyOwner'Address' Source #
Defines the data type for the schema postSourcesSourceRequestBodyOwner'Address'
PostSourcesSourceRequestBodyOwner'Address' | |
|
data PostSourcesSourceRequestBodySourceOrder' Source #
Defines the data type for the schema postSourcesSourceRequestBodySource_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 PostSourcesSourceRequestBodySourceOrder'Items' Source #
Defines the data type for the schema postSourcesSourceRequestBodySource_order'Items'
PostSourcesSourceRequestBodySourceOrder'Items' | |
|
Instances
data PostSourcesSourceRequestBodySourceOrder'Items'Type' Source #
Defines the enum schema postSourcesSourceRequestBodySource_order'Items'Type'
Instances
data PostSourcesSourceRequestBodySourceOrder'Shipping' Source #
Defines the data type for the schema postSourcesSourceRequestBodySource_order'Shipping'
PostSourcesSourceRequestBodySourceOrder'Shipping' | |
|
Instances
data PostSourcesSourceRequestBodySourceOrder'Shipping'Address' Source #
Defines the data type for the schema postSourcesSourceRequestBodySource_order'Shipping'Address'
PostSourcesSourceRequestBodySourceOrder'Shipping'Address' | |
|
Instances
data PostSourcesSourceResponse Source #
Represents a response of the operation postSourcesSource
.
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), PostSourcesSourceResponseError
is used.
PostSourcesSourceResponseError String | Means either no matching case available or a parse error |
PostSourcesSourceResponse200 Source | Successful response. |
PostSourcesSourceResponseDefault Error | Error response. |