Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation postRecipients
Synopsis
- postRecipients :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> PostRecipientsRequestBody -> m (Either HttpException (Response PostRecipientsResponse))
- postRecipientsRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> PostRecipientsRequestBody -> m (Either HttpException (Response ByteString))
- postRecipientsM :: forall m s. (MonadHTTP m, SecurityScheme s) => PostRecipientsRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostRecipientsResponse))
- postRecipientsRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => PostRecipientsRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString))
- data PostRecipientsRequestBody = PostRecipientsRequestBody {
- postRecipientsRequestBodyBankAccount :: Maybe String
- postRecipientsRequestBodyCard :: Maybe String
- postRecipientsRequestBodyDescription :: Maybe String
- postRecipientsRequestBodyEmail :: Maybe String
- postRecipientsRequestBodyExpand :: Maybe ([] String)
- postRecipientsRequestBodyMetadata :: Maybe PostRecipientsRequestBodyMetadata'
- postRecipientsRequestBodyName :: String
- postRecipientsRequestBodyTaxId :: Maybe String
- postRecipientsRequestBodyType :: String
- data PostRecipientsRequestBodyMetadata' = PostRecipientsRequestBodyMetadata' {
- data PostRecipientsResponse
Documentation
:: (MonadHTTP m, SecurityScheme s) | |
=> Configuration s | The configuration to use in the request |
-> PostRecipientsRequestBody | The request body to send |
-> m (Either HttpException (Response PostRecipientsResponse)) | Monad containing the result of the operation |
POST /v1/recipients
<p>Creates a new <code>Recipient</code> object and verifies the recipient’s identity. Also verifies the recipient’s bank account information or debit card, if either is provided.</p>
postRecipientsRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> PostRecipientsRequestBody -> m (Either HttpException (Response ByteString)) Source #
POST /v1/recipients
The same as postRecipients
but returns the raw ByteString
postRecipientsM :: forall m s. (MonadHTTP m, SecurityScheme s) => PostRecipientsRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostRecipientsResponse)) Source #
POST /v1/recipients
Monadic version of postRecipients
(use with runWithConfiguration
)
postRecipientsRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => PostRecipientsRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString)) Source #
POST /v1/recipients
Monadic version of postRecipientsRaw
(use with runWithConfiguration
)
data PostRecipientsRequestBody Source #
Defines the data type for the schema postRecipientsRequestBody
PostRecipientsRequestBody | |
|
Instances
data PostRecipientsRequestBodyMetadata' Source #
Defines the data type for the schema postRecipientsRequestBodyMetadata'
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 PostRecipientsResponse Source #
Represents a response of the operation postRecipients
.
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), PostRecipientsResponseError
is used.
PostRecipientsResponseError String | Means either no matching case available or a parse error |
PostRecipientsResponse200 Recipient | Successful response. |
PostRecipientsResponseDefault Error | Error response. |
Instances
Eq PostRecipientsResponse Source # | |
Defined in StripeAPI.Operations.PostRecipients | |
Show PostRecipientsResponse Source # | |
Defined in StripeAPI.Operations.PostRecipients showsPrec :: Int -> PostRecipientsResponse -> ShowS # show :: PostRecipientsResponse -> String # showList :: [PostRecipientsResponse] -> ShowS # |