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.Discount

Contents

Description

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

{-# LANGUAGE OverloadedStrings #-}
import Web.Stripe
import Web.Stripe.Discount
import Web.Stripe.Customer

main :: IO ()
main = do
  let config = StripeConfig (StripeKey "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

-> StripeRequest DeleteCustomerDiscount 

Delete Customer Discount by CustomerId

deleteSubscriptionDiscount Source

Arguments

:: CustomerId

The Customer to remove the Discount from

-> SubscriptionId

The Subscription to remove the Discount from

-> StripeRequest DeleteSubscriptionDiscount 

Delete Subscription Discount by CustomerId and SubscriptionId

Types