Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation postTransfers
Synopsis
- postTransfers :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> PostTransfersRequestBody -> m (Either HttpException (Response PostTransfersResponse))
- postTransfersRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> PostTransfersRequestBody -> m (Either HttpException (Response ByteString))
- postTransfersM :: forall m s. (MonadHTTP m, SecurityScheme s) => PostTransfersRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostTransfersResponse))
- postTransfersRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => PostTransfersRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString))
- data PostTransfersRequestBody = PostTransfersRequestBody {
- postTransfersRequestBodyAmount :: Maybe Integer
- postTransfersRequestBodyCurrency :: String
- postTransfersRequestBodyDescription :: Maybe String
- postTransfersRequestBodyDestination :: String
- postTransfersRequestBodyExpand :: Maybe ([] String)
- postTransfersRequestBodyMetadata :: Maybe PostTransfersRequestBodyMetadata'
- postTransfersRequestBodySourceTransaction :: Maybe String
- postTransfersRequestBodySourceType :: Maybe PostTransfersRequestBodySourceType'
- postTransfersRequestBodyTransferGroup :: Maybe String
- data PostTransfersRequestBodyMetadata' = PostTransfersRequestBodyMetadata' {
- data PostTransfersRequestBodySourceType'
- data PostTransfersResponse
Documentation
:: (MonadHTTP m, SecurityScheme s) | |
=> Configuration s | The configuration to use in the request |
-> PostTransfersRequestBody | The request body to send |
-> m (Either HttpException (Response PostTransfersResponse)) | Monad containing the result of the operation |
POST /v1/transfers
<p>To send funds from your Stripe account to a connected account, you create a new transfer object. Your <a href="#balance">Stripe balance</a> must be able to cover the transfer amount, or you’ll receive an “Insufficient Funds” error.</p>
postTransfersRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> PostTransfersRequestBody -> m (Either HttpException (Response ByteString)) Source #
POST /v1/transfers
The same as postTransfers
but returns the raw ByteString
postTransfersM :: forall m s. (MonadHTTP m, SecurityScheme s) => PostTransfersRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostTransfersResponse)) Source #
POST /v1/transfers
Monadic version of postTransfers
(use with runWithConfiguration
)
postTransfersRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => PostTransfersRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString)) Source #
POST /v1/transfers
Monadic version of postTransfersRaw
(use with runWithConfiguration
)
data PostTransfersRequestBody Source #
Defines the data type for the schema postTransfersRequestBody
PostTransfersRequestBody | |
|
Instances
data PostTransfersRequestBodyMetadata' Source #
Defines the data type for the schema postTransfersRequestBodyMetadata'
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 PostTransfersRequestBodySourceType' Source #
Defines the enum schema postTransfersRequestBodySource_type'
The source balance to use for this transfer. One of `bank_account`, `card`, or `fpx`. For most users, this will default to `card`.
data PostTransfersResponse Source #
Represents a response of the operation postTransfers
.
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), PostTransfersResponseError
is used.
PostTransfersResponseError String | Means either no matching case available or a parse error |
PostTransfersResponse200 Transfer | Successful response. |
PostTransfersResponseDefault Error | Error response. |
Instances
Eq PostTransfersResponse Source # | |
Defined in StripeAPI.Operations.PostTransfers (==) :: PostTransfersResponse -> PostTransfersResponse -> Bool # (/=) :: PostTransfersResponse -> PostTransfersResponse -> Bool # | |
Show PostTransfersResponse Source # | |
Defined in StripeAPI.Operations.PostTransfers showsPrec :: Int -> PostTransfersResponse -> ShowS # show :: PostTransfersResponse -> String # showList :: [PostTransfersResponse] -> ShowS # |