stripe-haskell-0.1.0.0: Stripe API for Haskell

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

Web.Stripe.Discount

Contents

Description

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

import Web.Stripe         
import Web.Stripe.Discount
import Web.Stripe.Customer

main :: IO ()
main = do
  let config = SecretKey "secret_key"
  result <- stripe config $ deleteCustomerDiscount (CustomerId "customer_id")
  case result of
    Right deleteResult -> print deleteResult
    Left  stripeError  -> print stripeError

Synopsis

API

deleteCustomerDiscount Source

Arguments

:: CustomerId

The Customer upon which to remove the Discount

-> Stripe StripeDeleteResult 

Delete Customer Discount by CustomerId

deleteSubscriptionDiscount Source

Arguments

:: CustomerId

The Customer to remove the Discount from

-> SubscriptionId

The Subscription to remove the Discount from

-> Stripe StripeDeleteResult 

Delete Subscription Discount by CustomerId and SubscriptionId

Types

data StripeDeleteResult Source

JSON returned from a Stripe deletion request

Constructors

StripeDeleteResult