stripeapi-2.0.0.1: Stripe-Library
Safe HaskellNone
LanguageHaskell2010

StripeAPI.Operations.PostRecipients

Description

Contains the different functions to run the operation postRecipients

Synopsis

Documentation

postRecipients Source #

Arguments

:: forall m. MonadHTTP m 
=> PostRecipientsRequestBody

The request body to send

-> ClientT m (Response PostRecipientsResponse)

Monadic computation which returns 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>

data PostRecipientsRequestBody Source #

Defines the object schema located at paths./v1/recipients.POST.requestBody.content.application/x-www-form-urlencoded.schema in the specification.

Constructors

PostRecipientsRequestBody 

Fields

  • postRecipientsRequestBodyBankAccount :: Maybe Text

    bank_account: A bank account to attach to the recipient. You can provide either a token, like the ones returned by Stripe.js, or a dictionary containing a user's bank account details, with the options described below.

    Constraints:

    • Maximum length of 5000
  • postRecipientsRequestBodyCard :: Maybe Text

    card: A U.S. Visa or MasterCard debit card (_not_ prepaid) to attach to the recipient. If the debit card is not valid, recipient creation will fail. You can provide either a token, like the ones returned by Stripe.js, or a dictionary containing a user's debit card details, with the options described below. Although not all information is required, the extra info helps prevent fraud.

    Constraints:

    • Maximum length of 5000
  • postRecipientsRequestBodyDescription :: Maybe Text

    description: An arbitrary string which you can attach to a `Recipient` object. It is displayed alongside the recipient in the web interface.

    Constraints:

    • Maximum length of 5000
  • postRecipientsRequestBodyEmail :: Maybe Text

    email: The recipient's email address. It is displayed alongside the recipient in the web interface, and can be useful for searching and tracking.

    Constraints:

    • Maximum length of 5000
  • postRecipientsRequestBodyExpand :: Maybe [Text]

    expand: Specifies which fields in the response should be expanded.

  • postRecipientsRequestBodyMetadata :: Maybe PostRecipientsRequestBodyMetadata'Variants

    metadata: 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`.

  • postRecipientsRequestBodyName :: Text

    name: The recipient's full, legal name. For type `individual`, should be in the format `First Last`, `First Middle Last`, or `First M Last` (no prefixes or suffixes). For `corporation`, the full, incorporated name.

    Constraints:

    • Maximum length of 5000
  • postRecipientsRequestBodyTaxId :: Maybe Text

    tax_id: The recipient's tax ID, as a string. For type `individual`, the full SSN; for type `corporation`, the full EIN.

    Constraints:

    • Maximum length of 5000
  • postRecipientsRequestBodyType :: Text

    type: Type of the recipient: either `individual` or `corporation`.

    Constraints:

    • Maximum length of 5000

data PostRecipientsRequestBodyMetadata'Variants Source #

Defines the oneOf schema located at paths./v1/recipients.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.metadata.anyOf in the specification.

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.

Constructors

PostRecipientsResponseError String

Means either no matching case available or a parse error

PostRecipientsResponse200 Recipient

Successful response.

PostRecipientsResponseDefault Error

Error response.