stripe-core-2.0.0: Stripe API for Haskell - Pure Core

Copyright(c) David Johnson, 2014
Maintainerdjohnson.m@gmail.com
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Web.Stripe.Recipient

Contents

Description

https://stripe.com/docs/api#recipients

{-# LANGUAGE OverloadedStrings #-}
import Web.Stripe
import Web.Stripe.Recipient

main :: IO ()
main = do
  let config = StripeConfig (StripeKey "secret_key")
  result <- stripe config $
      createRecipient (Name "simon marlow")
                      Individual
  case result of
    Right recipient  -> print recipient
    Left stripeError -> print stripeError

Synopsis

API

getRecipient Source

Arguments

:: RecipientId

The RecipientId of the Recipient to be retrieved

-> StripeRequest GetRecipient 

Retrieve a Recipient

deleteRecipient Source

Arguments

:: RecipientId

RecipiendId of Recipient to delete

-> StripeRequest DeleteRecipient 

Delete a Recipient

Types

newtype ExpandParams Source

Type of Expansion Parameters for use on Stripe objects

Constructors

ExpandParams 

Fields

getExpandParams :: [Text]