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

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

Web.Stripe.Subscription

Contents

Description

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

{-# LANGUAGE OverloadedStrings #-}
import Web.Stripe
import Web.Stripe.Subscription
import Web.Stripe.Customer
import Web.Stripe.Plan

main :: IO ()
main = do
  let config = StripeConfig (StripeKey "secret_key")
  result <- stripe config $ createCustomer
  case result of
    (Left stripeError) -> print stripeError
    (Right (Customer { customerId = cid })) -> do
      result <- stripe config $ createPlan (PlanId "free plan")
                                           (Amount 0)
                                           USD
                                           Month
                                           (PlanName "sample plan")
      case result of
        (Left stripeError) -> print stripeError
        (Right (Plan { planId = pid })) -> do
           result <- stripe config $ createSubscription cid pid
           case result of
             (Left stripeError)   -> print stripeError
             (Right subscription) -> print subscription
Synopsis

API

createSubscription Source #

Arguments

:: CustomerId

The CustomerId upon which to create the Subscription

-> PlanId

The PlanId to associate the Subscription with

-> StripeRequest CreateSubscription 

Types

newtype ApplicationFeePercent Source #

ApplicationFeePercent

Instances
Eq ApplicationFeePercent Source # 
Instance details

Defined in Web.Stripe.Types

Data ApplicationFeePercent Source # 
Instance details

Defined in Web.Stripe.Types

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ApplicationFeePercent -> c ApplicationFeePercent #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ApplicationFeePercent #

toConstr :: ApplicationFeePercent -> Constr #

dataTypeOf :: ApplicationFeePercent -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ApplicationFeePercent) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ApplicationFeePercent) #

gmapT :: (forall b. Data b => b -> b) -> ApplicationFeePercent -> ApplicationFeePercent #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ApplicationFeePercent -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ApplicationFeePercent -> r #

gmapQ :: (forall d. Data d => d -> u) -> ApplicationFeePercent -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ApplicationFeePercent -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ApplicationFeePercent -> m ApplicationFeePercent #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ApplicationFeePercent -> m ApplicationFeePercent #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ApplicationFeePercent -> m ApplicationFeePercent #

Ord ApplicationFeePercent Source # 
Instance details

Defined in Web.Stripe.Types

Read ApplicationFeePercent Source # 
Instance details

Defined in Web.Stripe.Types

Show ApplicationFeePercent Source # 
Instance details

Defined in Web.Stripe.Types

ToStripeParam ApplicationFeePercent Source # 
Instance details

Defined in Web.Stripe.StripeRequest

StripeHasParam UpdateSubscription ApplicationFeePercent Source # 
Instance details

Defined in Web.Stripe.Subscription

StripeHasParam CreateSubscription ApplicationFeePercent Source # 
Instance details

Defined in Web.Stripe.Subscription

newtype AtPeriodEnd Source #

A flag that if set to true will delay the cancellation of the subscription until the end of the current period.

Constructors

AtPeriodEnd Bool 
Instances
Eq AtPeriodEnd Source # 
Instance details

Defined in Web.Stripe.Types

Data AtPeriodEnd Source # 
Instance details

Defined in Web.Stripe.Types

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> AtPeriodEnd -> c AtPeriodEnd #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c AtPeriodEnd #

toConstr :: AtPeriodEnd -> Constr #

dataTypeOf :: AtPeriodEnd -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c AtPeriodEnd) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c AtPeriodEnd) #

gmapT :: (forall b. Data b => b -> b) -> AtPeriodEnd -> AtPeriodEnd #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> AtPeriodEnd -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> AtPeriodEnd -> r #

gmapQ :: (forall d. Data d => d -> u) -> AtPeriodEnd -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> AtPeriodEnd -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> AtPeriodEnd -> m AtPeriodEnd #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> AtPeriodEnd -> m AtPeriodEnd #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> AtPeriodEnd -> m AtPeriodEnd #

Ord AtPeriodEnd Source # 
Instance details

Defined in Web.Stripe.Types

Read AtPeriodEnd Source # 
Instance details

Defined in Web.Stripe.Types

Show AtPeriodEnd Source # 
Instance details

Defined in Web.Stripe.Types

ToStripeParam AtPeriodEnd Source # 
Instance details

Defined in Web.Stripe.StripeRequest

StripeHasParam CancelSubscription AtPeriodEnd Source # 
Instance details

Defined in Web.Stripe.Subscription

newtype CustomerId Source #

Constructors

CustomerId Text 
Instances
Eq CustomerId Source # 
Instance details

Defined in Web.Stripe.Types

Data CustomerId Source # 
Instance details

Defined in Web.Stripe.Types

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CustomerId -> c CustomerId #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CustomerId #

toConstr :: CustomerId -> Constr #

dataTypeOf :: CustomerId -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CustomerId) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CustomerId) #

gmapT :: (forall b. Data b => b -> b) -> CustomerId -> CustomerId #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CustomerId -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CustomerId -> r #

gmapQ :: (forall d. Data d => d -> u) -> CustomerId -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CustomerId -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CustomerId -> m CustomerId #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CustomerId -> m CustomerId #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CustomerId -> m CustomerId #

Ord CustomerId Source # 
Instance details

Defined in Web.Stripe.Types

Read CustomerId Source # 
Instance details

Defined in Web.Stripe.Types

Show CustomerId Source # 
Instance details

Defined in Web.Stripe.Types

FromJSON CustomerId Source #

JSON Instance for CustomerId

Instance details

Defined in Web.Stripe.Types

ToStripeParam CustomerId Source # 
Instance details

Defined in Web.Stripe.StripeRequest

StripeHasParam CreateCardToken CustomerId Source # 
Instance details

Defined in Web.Stripe.Token

StripeHasParam GetInvoiceItems CustomerId Source # 
Instance details

Defined in Web.Stripe.InvoiceItem

StripeHasParam GetInvoiceLineItems CustomerId Source # 
Instance details

Defined in Web.Stripe.Invoice

StripeHasParam GetInvoices CustomerId Source # 
Instance details

Defined in Web.Stripe.Invoice

StripeHasParam GetCharges CustomerId Source # 
Instance details

Defined in Web.Stripe.Charge

StripeHasParam CreateCharge CustomerId Source # 
Instance details

Defined in Web.Stripe.Charge

StripeHasParam GetCustomers (EndingBefore CustomerId) Source # 
Instance details

Defined in Web.Stripe.Customer

StripeHasParam GetCustomers (StartingAfter CustomerId) Source # 
Instance details

Defined in Web.Stripe.Customer

type ExpandsTo CustomerId Source # 
Instance details

Defined in Web.Stripe.Types

newtype CouponId Source #

Constructors

CouponId Text 
Instances
Eq CouponId Source # 
Instance details

Defined in Web.Stripe.Types

Data CouponId Source # 
Instance details

Defined in Web.Stripe.Types

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CouponId -> c CouponId #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CouponId #

toConstr :: CouponId -> Constr #

dataTypeOf :: CouponId -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CouponId) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CouponId) #

gmapT :: (forall b. Data b => b -> b) -> CouponId -> CouponId #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CouponId -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CouponId -> r #

gmapQ :: (forall d. Data d => d -> u) -> CouponId -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CouponId -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CouponId -> m CouponId #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CouponId -> m CouponId #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CouponId -> m CouponId #

Ord CouponId Source # 
Instance details

Defined in Web.Stripe.Types

Read CouponId Source # 
Instance details

Defined in Web.Stripe.Types

Show CouponId Source # 
Instance details

Defined in Web.Stripe.Types

ToStripeParam CouponId Source # 
Instance details

Defined in Web.Stripe.StripeRequest

StripeHasParam UpdateSubscription CouponId Source # 
Instance details

Defined in Web.Stripe.Subscription

StripeHasParam CreateSubscription CouponId Source # 
Instance details

Defined in Web.Stripe.Subscription

StripeHasParam UpdateCustomer CouponId Source # 
Instance details

Defined in Web.Stripe.Customer

StripeHasParam CreateCustomer CouponId Source # 
Instance details

Defined in Web.Stripe.Customer

StripeHasParam GetCoupons (EndingBefore CouponId) Source # 
Instance details

Defined in Web.Stripe.Coupon

StripeHasParam GetCoupons (StartingAfter CouponId) Source # 
Instance details

Defined in Web.Stripe.Coupon

data Coupon Source #

Coupon Object

Instances
Eq Coupon Source # 
Instance details

Defined in Web.Stripe.Types

Methods

(==) :: Coupon -> Coupon -> Bool #

(/=) :: Coupon -> Coupon -> Bool #

Data Coupon Source # 
Instance details

Defined in Web.Stripe.Types

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Coupon -> c Coupon #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Coupon #

toConstr :: Coupon -> Constr #

dataTypeOf :: Coupon -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Coupon) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Coupon) #

gmapT :: (forall b. Data b => b -> b) -> Coupon -> Coupon #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Coupon -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Coupon -> r #

gmapQ :: (forall d. Data d => d -> u) -> Coupon -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Coupon -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Coupon -> m Coupon #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Coupon -> m Coupon #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Coupon -> m Coupon #

Ord Coupon Source # 
Instance details

Defined in Web.Stripe.Types

Read Coupon Source # 
Instance details

Defined in Web.Stripe.Types

Show Coupon Source # 
Instance details

Defined in Web.Stripe.Types

FromJSON Coupon Source #

JSON Instance for Coupon

Instance details

Defined in Web.Stripe.Types

newtype EndingBefore a Source #

Pagination Option for StripeList

Constructors

EndingBefore a 
Instances
StripeHasParam GetTransfers (EndingBefore TransferId) Source # 
Instance details

Defined in Web.Stripe.Transfer

StripeHasParam GetSubscriptionsByCustomerId (EndingBefore SubscriptionId) Source # 
Instance details

Defined in Web.Stripe.Subscription

StripeHasParam GetSubscriptions (EndingBefore SubscriptionId) Source # 
Instance details

Defined in Web.Stripe.Subscription

StripeHasParam GetRefunds (EndingBefore RefundId) Source # 
Instance details

Defined in Web.Stripe.Refund

StripeHasParam GetRecipients (EndingBefore RecipientId) Source # 
Instance details

Defined in Web.Stripe.Recipient

StripeHasParam GetPlans (EndingBefore PlanId) Source # 
Instance details

Defined in Web.Stripe.Plan

StripeHasParam GetInvoiceItems (EndingBefore InvoiceItemId) Source # 
Instance details

Defined in Web.Stripe.InvoiceItem

StripeHasParam GetInvoiceLineItems (EndingBefore InvoiceLineItemId) Source # 
Instance details

Defined in Web.Stripe.Invoice

StripeHasParam GetInvoices (EndingBefore InvoiceId) Source # 
Instance details

Defined in Web.Stripe.Invoice

StripeHasParam GetEvents (EndingBefore EventId) Source # 
Instance details

Defined in Web.Stripe.Event

StripeHasParam GetCustomers (EndingBefore CustomerId) Source # 
Instance details

Defined in Web.Stripe.Customer

StripeHasParam GetCoupons (EndingBefore CouponId) Source # 
Instance details

Defined in Web.Stripe.Coupon

StripeHasParam GetCharges (EndingBefore ChargeId) Source # 
Instance details

Defined in Web.Stripe.Charge

StripeHasParam GetRecipientCards (EndingBefore CardId) Source # 
Instance details

Defined in Web.Stripe.Card

StripeHasParam GetCustomerCards (EndingBefore CardId) Source # 
Instance details

Defined in Web.Stripe.Card

StripeHasParam GetBalanceTransactionHistory (EndingBefore TransactionId) Source # 
Instance details

Defined in Web.Stripe.Balance

StripeHasParam GetApplicationFeeRefunds (EndingBefore RefundId) Source # 
Instance details

Defined in Web.Stripe.ApplicationFeeRefund

StripeHasParam GetApplicationFees (EndingBefore ApplicationFeeId) Source # 
Instance details

Defined in Web.Stripe.ApplicationFee

Eq a => Eq (EndingBefore a) Source # 
Instance details

Defined in Web.Stripe.Types

Data a => Data (EndingBefore a) Source # 
Instance details

Defined in Web.Stripe.Types

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> EndingBefore a -> c (EndingBefore a) #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (EndingBefore a) #

toConstr :: EndingBefore a -> Constr #

dataTypeOf :: EndingBefore a -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (EndingBefore a)) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (EndingBefore a)) #

gmapT :: (forall b. Data b => b -> b) -> EndingBefore a -> EndingBefore a #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> EndingBefore a -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> EndingBefore a -> r #

gmapQ :: (forall d. Data d => d -> u) -> EndingBefore a -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> EndingBefore a -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> EndingBefore a -> m (EndingBefore a) #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> EndingBefore a -> m (EndingBefore a) #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> EndingBefore a -> m (EndingBefore a) #

Ord a => Ord (EndingBefore a) Source # 
Instance details

Defined in Web.Stripe.Types

Read a => Read (EndingBefore a) Source # 
Instance details

Defined in Web.Stripe.Types

Show a => Show (EndingBefore a) Source # 
Instance details

Defined in Web.Stripe.Types

ToStripeParam param => ToStripeParam (EndingBefore param) Source # 
Instance details

Defined in Web.Stripe.StripeRequest

newtype ExpandParams Source #

Type of Expansion Parameters for use on Stripe objects

Constructors

ExpandParams 

Fields

Instances
Eq ExpandParams Source # 
Instance details

Defined in Web.Stripe.Types

Data ExpandParams Source # 
Instance details

Defined in Web.Stripe.Types

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ExpandParams -> c ExpandParams #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ExpandParams #

toConstr :: ExpandParams -> Constr #

dataTypeOf :: ExpandParams -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ExpandParams) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ExpandParams) #

gmapT :: (forall b. Data b => b -> b) -> ExpandParams -> ExpandParams #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ExpandParams -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ExpandParams -> r #

gmapQ :: (forall d. Data d => d -> u) -> ExpandParams -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ExpandParams -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ExpandParams -> m ExpandParams #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ExpandParams -> m ExpandParams #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ExpandParams -> m ExpandParams #

Ord ExpandParams Source # 
Instance details

Defined in Web.Stripe.Types

Read ExpandParams Source # 
Instance details

Defined in Web.Stripe.Types

Show ExpandParams Source # 
Instance details

Defined in Web.Stripe.Types

ToStripeParam ExpandParams Source # 
Instance details

Defined in Web.Stripe.StripeRequest

StripeHasParam GetTransfers ExpandParams Source # 
Instance details

Defined in Web.Stripe.Transfer

StripeHasParam GetTransfer ExpandParams Source # 
Instance details

Defined in Web.Stripe.Transfer

StripeHasParam GetSubscriptionsByCustomerId ExpandParams Source # 
Instance details

Defined in Web.Stripe.Subscription

StripeHasParam GetSubscriptions ExpandParams Source # 
Instance details

Defined in Web.Stripe.Subscription

StripeHasParam GetSubscription ExpandParams Source # 
Instance details

Defined in Web.Stripe.Subscription

StripeHasParam GetRefunds ExpandParams Source # 
Instance details

Defined in Web.Stripe.Refund

StripeHasParam GetRefund ExpandParams Source # 
Instance details

Defined in Web.Stripe.Refund

StripeHasParam GetRecipients ExpandParams Source # 
Instance details

Defined in Web.Stripe.Recipient

StripeHasParam GetRecipient ExpandParams Source # 
Instance details

Defined in Web.Stripe.Recipient

StripeHasParam GetInvoiceItems ExpandParams Source # 
Instance details

Defined in Web.Stripe.InvoiceItem

StripeHasParam GetInvoiceItem ExpandParams Source # 
Instance details

Defined in Web.Stripe.InvoiceItem

StripeHasParam GetInvoices ExpandParams Source # 
Instance details

Defined in Web.Stripe.Invoice

StripeHasParam GetInvoice ExpandParams Source # 
Instance details

Defined in Web.Stripe.Invoice

StripeHasParam GetCustomers ExpandParams Source # 
Instance details

Defined in Web.Stripe.Customer

StripeHasParam GetCustomer ExpandParams Source # 
Instance details

Defined in Web.Stripe.Customer

StripeHasParam GetCharges ExpandParams Source # 
Instance details

Defined in Web.Stripe.Charge

StripeHasParam GetCharge ExpandParams Source # 
Instance details

Defined in Web.Stripe.Charge

StripeHasParam CreateCharge ExpandParams Source # 
Instance details

Defined in Web.Stripe.Charge

StripeHasParam GetRecipientCards ExpandParams Source # 
Instance details

Defined in Web.Stripe.Card

StripeHasParam GetCustomerCards ExpandParams Source # 
Instance details

Defined in Web.Stripe.Card

StripeHasParam GetRecipientCard ExpandParams Source # 
Instance details

Defined in Web.Stripe.Card

StripeHasParam GetCustomerCard ExpandParams Source # 
Instance details

Defined in Web.Stripe.Card

StripeHasParam GetBalanceTransaction ExpandParams Source # 
Instance details

Defined in Web.Stripe.Balance

StripeHasParam GetApplicationFeeRefunds ExpandParams Source # 
Instance details

Defined in Web.Stripe.ApplicationFeeRefund

StripeHasParam GetApplicationFeeRefund ExpandParams Source # 
Instance details

Defined in Web.Stripe.ApplicationFeeRefund

StripeHasParam GetApplicationFees ExpandParams Source # 
Instance details

Defined in Web.Stripe.ApplicationFee

StripeHasParam GetApplicationFee ExpandParams Source # 
Instance details

Defined in Web.Stripe.ApplicationFee

newtype Limit Source #

Pagination Option for StripeList

Constructors

Limit Int 
Instances
Eq Limit Source # 
Instance details

Defined in Web.Stripe.Types

Methods

(==) :: Limit -> Limit -> Bool #

(/=) :: Limit -> Limit -> Bool #

Data Limit Source # 
Instance details

Defined in Web.Stripe.Types

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Limit -> c Limit #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Limit #

toConstr :: Limit -> Constr #

dataTypeOf :: Limit -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Limit) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Limit) #

gmapT :: (forall b. Data b => b -> b) -> Limit -> Limit #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Limit -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Limit -> r #

gmapQ :: (forall d. Data d => d -> u) -> Limit -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Limit -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Limit -> m Limit #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Limit -> m Limit #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Limit -> m Limit #

Ord Limit Source # 
Instance details

Defined in Web.Stripe.Types

Methods

compare :: Limit -> Limit -> Ordering #

(<) :: Limit -> Limit -> Bool #

(<=) :: Limit -> Limit -> Bool #

(>) :: Limit -> Limit -> Bool #

(>=) :: Limit -> Limit -> Bool #

max :: Limit -> Limit -> Limit #

min :: Limit -> Limit -> Limit #

Read Limit Source # 
Instance details

Defined in Web.Stripe.Types

Show Limit Source # 
Instance details

Defined in Web.Stripe.Types

Methods

showsPrec :: Int -> Limit -> ShowS #

show :: Limit -> String #

showList :: [Limit] -> ShowS #

ToStripeParam Limit Source # 
Instance details

Defined in Web.Stripe.StripeRequest

StripeHasParam GetTransfers Limit Source # 
Instance details

Defined in Web.Stripe.Transfer

StripeHasParam GetSubscriptionsByCustomerId Limit Source # 
Instance details

Defined in Web.Stripe.Subscription

StripeHasParam GetSubscriptions Limit Source # 
Instance details

Defined in Web.Stripe.Subscription

StripeHasParam GetRefunds Limit Source # 
Instance details

Defined in Web.Stripe.Refund

StripeHasParam GetRecipients Limit Source # 
Instance details

Defined in Web.Stripe.Recipient

StripeHasParam GetPlans Limit Source # 
Instance details

Defined in Web.Stripe.Plan

StripeHasParam GetInvoiceItems Limit Source # 
Instance details

Defined in Web.Stripe.InvoiceItem

StripeHasParam GetInvoiceLineItems Limit Source # 
Instance details

Defined in Web.Stripe.Invoice

StripeHasParam GetInvoices Limit Source # 
Instance details

Defined in Web.Stripe.Invoice

StripeHasParam GetEvents Limit Source # 
Instance details

Defined in Web.Stripe.Event

StripeHasParam GetCustomers Limit Source # 
Instance details

Defined in Web.Stripe.Customer

StripeHasParam GetCoupons Limit Source # 
Instance details

Defined in Web.Stripe.Coupon

StripeHasParam GetCharges Limit Source # 
Instance details

Defined in Web.Stripe.Charge

StripeHasParam GetRecipientCards Limit Source # 
Instance details

Defined in Web.Stripe.Card

StripeHasParam GetCustomerCards Limit Source # 
Instance details

Defined in Web.Stripe.Card

StripeHasParam GetBalanceTransactionHistory Limit Source # 
Instance details

Defined in Web.Stripe.Balance

StripeHasParam GetApplicationFeeRefunds Limit Source # 
Instance details

Defined in Web.Stripe.ApplicationFeeRefund

StripeHasParam GetApplicationFees Limit Source # 
Instance details

Defined in Web.Stripe.ApplicationFee

newtype MetaData Source #

Type of MetaData for use on Stripe objects

Constructors

MetaData [(Text, Text)] 
Instances
Eq MetaData Source # 
Instance details

Defined in Web.Stripe.Types

Data MetaData Source # 
Instance details

Defined in Web.Stripe.Types

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> MetaData -> c MetaData #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c MetaData #

toConstr :: MetaData -> Constr #

dataTypeOf :: MetaData -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c MetaData) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c MetaData) #

gmapT :: (forall b. Data b => b -> b) -> MetaData -> MetaData #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> MetaData -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> MetaData -> r #

gmapQ :: (forall d. Data d => d -> u) -> MetaData -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> MetaData -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> MetaData -> m MetaData #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> MetaData -> m MetaData #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> MetaData -> m MetaData #

Ord MetaData Source # 
Instance details

Defined in Web.Stripe.Types

Read MetaData Source # 
Instance details

Defined in Web.Stripe.Types

Show MetaData Source # 
Instance details

Defined in Web.Stripe.Types

FromJSON MetaData Source # 
Instance details

Defined in Web.Stripe.Types

ToStripeParam MetaData Source # 
Instance details

Defined in Web.Stripe.StripeRequest

StripeHasParam UpdateTransfer MetaData Source # 
Instance details

Defined in Web.Stripe.Transfer

StripeHasParam CreateTransfer MetaData Source # 
Instance details

Defined in Web.Stripe.Transfer

StripeHasParam UpdateSubscription MetaData Source # 
Instance details

Defined in Web.Stripe.Subscription

StripeHasParam CreateSubscription MetaData Source # 
Instance details

Defined in Web.Stripe.Subscription

StripeHasParam UpdateRefund MetaData Source # 
Instance details

Defined in Web.Stripe.Refund

StripeHasParam CreateRefund MetaData Source # 
Instance details

Defined in Web.Stripe.Refund

StripeHasParam UpdateRecipient MetaData Source # 
Instance details

Defined in Web.Stripe.Recipient

StripeHasParam CreateRecipient MetaData Source # 
Instance details

Defined in Web.Stripe.Recipient

StripeHasParam UpdatePlan MetaData Source # 
Instance details

Defined in Web.Stripe.Plan

StripeHasParam CreatePlan MetaData Source # 
Instance details

Defined in Web.Stripe.Plan

StripeHasParam UpdateInvoiceItem MetaData Source # 
Instance details

Defined in Web.Stripe.InvoiceItem

StripeHasParam CreateInvoiceItem MetaData Source # 
Instance details

Defined in Web.Stripe.InvoiceItem

StripeHasParam UpdateInvoice MetaData Source # 
Instance details

Defined in Web.Stripe.Invoice

StripeHasParam CreateInvoice MetaData Source # 
Instance details

Defined in Web.Stripe.Invoice

StripeHasParam UpdateDispute MetaData Source # 
Instance details

Defined in Web.Stripe.Dispute

StripeHasParam UpdateCustomer MetaData Source # 
Instance details

Defined in Web.Stripe.Customer

StripeHasParam CreateCustomer MetaData Source # 
Instance details

Defined in Web.Stripe.Customer

StripeHasParam UpdateCoupon MetaData Source # 
Instance details

Defined in Web.Stripe.Coupon

StripeHasParam CreateCoupon MetaData Source # 
Instance details

Defined in Web.Stripe.Coupon

StripeHasParam UpdateCharge MetaData Source # 
Instance details

Defined in Web.Stripe.Charge

StripeHasParam CreateCharge MetaData Source # 
Instance details

Defined in Web.Stripe.Charge

StripeHasParam UpdateApplicationFeeRefund MetaData Source # 
Instance details

Defined in Web.Stripe.ApplicationFeeRefund

StripeHasParam CreateApplicationFeeRefund MetaData Source # 
Instance details

Defined in Web.Stripe.ApplicationFeeRefund

newtype PlanId Source #

PlanId for a Plan

Constructors

PlanId Text 
Instances
Eq PlanId Source # 
Instance details

Defined in Web.Stripe.Types

Methods

(==) :: PlanId -> PlanId -> Bool #

(/=) :: PlanId -> PlanId -> Bool #

Data PlanId Source # 
Instance details

Defined in Web.Stripe.Types

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> PlanId -> c PlanId #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c PlanId #

toConstr :: PlanId -> Constr #

dataTypeOf :: PlanId -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c PlanId) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c PlanId) #

gmapT :: (forall b. Data b => b -> b) -> PlanId -> PlanId #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> PlanId -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> PlanId -> r #

gmapQ :: (forall d. Data d => d -> u) -> PlanId -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> PlanId -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> PlanId -> m PlanId #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> PlanId -> m PlanId #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> PlanId -> m PlanId #

Ord PlanId Source # 
Instance details

Defined in Web.Stripe.Types

Read PlanId Source # 
Instance details

Defined in Web.Stripe.Types

Show PlanId Source # 
Instance details

Defined in Web.Stripe.Types

ToStripeParam PlanId Source # 
Instance details

Defined in Web.Stripe.StripeRequest

StripeHasParam UpdateSubscription PlanId Source # 
Instance details

Defined in Web.Stripe.Subscription

StripeHasParam CreateCustomer PlanId Source # 
Instance details

Defined in Web.Stripe.Customer

StripeHasParam GetPlans (EndingBefore PlanId) Source # 
Instance details

Defined in Web.Stripe.Plan

StripeHasParam GetPlans (StartingAfter PlanId) Source # 
Instance details

Defined in Web.Stripe.Plan

newtype Prorate Source #

Prorate

Constructors

Prorate Bool 
Instances
Eq Prorate Source # 
Instance details

Defined in Web.Stripe.Types

Methods

(==) :: Prorate -> Prorate -> Bool #

(/=) :: Prorate -> Prorate -> Bool #

Data Prorate Source # 
Instance details

Defined in Web.Stripe.Types

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Prorate -> c Prorate #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Prorate #

toConstr :: Prorate -> Constr #

dataTypeOf :: Prorate -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Prorate) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Prorate) #

gmapT :: (forall b. Data b => b -> b) -> Prorate -> Prorate #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Prorate -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Prorate -> r #

gmapQ :: (forall d. Data d => d -> u) -> Prorate -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Prorate -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Prorate -> m Prorate #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Prorate -> m Prorate #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Prorate -> m Prorate #

Ord Prorate Source # 
Instance details

Defined in Web.Stripe.Types

Read Prorate Source # 
Instance details

Defined in Web.Stripe.Types

Show Prorate Source # 
Instance details

Defined in Web.Stripe.Types

ToStripeParam Prorate Source # 
Instance details

Defined in Web.Stripe.StripeRequest

StripeHasParam UpdateSubscription Prorate Source # 
Instance details

Defined in Web.Stripe.Subscription

StripeHasParam CreateSubscription Prorate Source # 
Instance details

Defined in Web.Stripe.Subscription

newtype Quantity Source #

Generic Quantity type to be used with Customer, Subscription and InvoiceLineItem API requests

Constructors

Quantity Int 
Instances
Eq Quantity Source # 
Instance details

Defined in Web.Stripe.Types

Data Quantity Source # 
Instance details

Defined in Web.Stripe.Types

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Quantity -> c Quantity #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Quantity #

toConstr :: Quantity -> Constr #

dataTypeOf :: Quantity -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Quantity) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Quantity) #

gmapT :: (forall b. Data b => b -> b) -> Quantity -> Quantity #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Quantity -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Quantity -> r #

gmapQ :: (forall d. Data d => d -> u) -> Quantity -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Quantity -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Quantity -> m Quantity #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Quantity -> m Quantity #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Quantity -> m Quantity #

Ord Quantity Source # 
Instance details

Defined in Web.Stripe.Types

Read Quantity Source # 
Instance details

Defined in Web.Stripe.Types

Show Quantity Source # 
Instance details

Defined in Web.Stripe.Types

ToStripeParam Quantity Source # 
Instance details

Defined in Web.Stripe.StripeRequest

StripeHasParam UpdateSubscription Quantity Source # 
Instance details

Defined in Web.Stripe.Subscription

StripeHasParam CreateSubscription Quantity Source # 
Instance details

Defined in Web.Stripe.Subscription

StripeHasParam CreateCustomer Quantity Source # 
Instance details

Defined in Web.Stripe.Customer

newtype StartingAfter a Source #

Pagination Option for StripeList

Constructors

StartingAfter a 
Instances
StripeHasParam GetTransfers (StartingAfter TransferId) Source # 
Instance details

Defined in Web.Stripe.Transfer

StripeHasParam GetSubscriptionsByCustomerId (StartingAfter SubscriptionId) Source # 
Instance details

Defined in Web.Stripe.Subscription

StripeHasParam GetSubscriptions (StartingAfter SubscriptionId) Source # 
Instance details

Defined in Web.Stripe.Subscription

StripeHasParam GetRefunds (StartingAfter RefundId) Source # 
Instance details

Defined in Web.Stripe.Refund

StripeHasParam GetRecipients (StartingAfter RecipientId) Source # 
Instance details

Defined in Web.Stripe.Recipient

StripeHasParam GetPlans (StartingAfter PlanId) Source # 
Instance details

Defined in Web.Stripe.Plan

StripeHasParam GetInvoiceItems (StartingAfter InvoiceItemId) Source # 
Instance details

Defined in Web.Stripe.InvoiceItem

StripeHasParam GetInvoiceLineItems (StartingAfter InvoiceLineItemId) Source # 
Instance details

Defined in Web.Stripe.Invoice

StripeHasParam GetInvoices (StartingAfter InvoiceId) Source # 
Instance details

Defined in Web.Stripe.Invoice

StripeHasParam GetEvents (StartingAfter EventId) Source # 
Instance details

Defined in Web.Stripe.Event

StripeHasParam GetCustomers (StartingAfter CustomerId) Source # 
Instance details

Defined in Web.Stripe.Customer

StripeHasParam GetCoupons (StartingAfter CouponId) Source # 
Instance details

Defined in Web.Stripe.Coupon

StripeHasParam GetCharges (StartingAfter ChargeId) Source # 
Instance details

Defined in Web.Stripe.Charge

StripeHasParam GetRecipientCards (StartingAfter CardId) Source # 
Instance details

Defined in Web.Stripe.Card

StripeHasParam GetCustomerCards (StartingAfter CardId) Source # 
Instance details

Defined in Web.Stripe.Card

StripeHasParam GetBalanceTransactionHistory (StartingAfter TransactionId) Source # 
Instance details

Defined in Web.Stripe.Balance

StripeHasParam GetApplicationFeeRefunds (StartingAfter RefundId) Source # 
Instance details

Defined in Web.Stripe.ApplicationFeeRefund

StripeHasParam GetApplicationFees (StartingAfter ApplicationFeeId) Source # 
Instance details

Defined in Web.Stripe.ApplicationFee

Eq a => Eq (StartingAfter a) Source # 
Instance details

Defined in Web.Stripe.Types

Data a => Data (StartingAfter a) Source # 
Instance details

Defined in Web.Stripe.Types

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> StartingAfter a -> c (StartingAfter a) #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (StartingAfter a) #

toConstr :: StartingAfter a -> Constr #

dataTypeOf :: StartingAfter a -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (StartingAfter a)) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (StartingAfter a)) #

gmapT :: (forall b. Data b => b -> b) -> StartingAfter a -> StartingAfter a #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> StartingAfter a -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> StartingAfter a -> r #

gmapQ :: (forall d. Data d => d -> u) -> StartingAfter a -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> StartingAfter a -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> StartingAfter a -> m (StartingAfter a) #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> StartingAfter a -> m (StartingAfter a) #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> StartingAfter a -> m (StartingAfter a) #

Ord a => Ord (StartingAfter a) Source # 
Instance details

Defined in Web.Stripe.Types

Read a => Read (StartingAfter a) Source # 
Instance details

Defined in Web.Stripe.Types

Show a => Show (StartingAfter a) Source # 
Instance details

Defined in Web.Stripe.Types

ToStripeParam param => ToStripeParam (StartingAfter param) Source # 
Instance details

Defined in Web.Stripe.StripeRequest

data StripeList a Source #

Generic handling of Stripe JSON arrays

Constructors

StripeList 

Fields

Instances
Eq a => Eq (StripeList a) Source # 
Instance details

Defined in Web.Stripe.Types

Methods

(==) :: StripeList a -> StripeList a -> Bool #

(/=) :: StripeList a -> StripeList a -> Bool #

Data a => Data (StripeList a) Source # 
Instance details

Defined in Web.Stripe.Types

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> StripeList a -> c (StripeList a) #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (StripeList a) #

toConstr :: StripeList a -> Constr #

dataTypeOf :: StripeList a -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (StripeList a)) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (StripeList a)) #

gmapT :: (forall b. Data b => b -> b) -> StripeList a -> StripeList a #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> StripeList a -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> StripeList a -> r #

gmapQ :: (forall d. Data d => d -> u) -> StripeList a -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> StripeList a -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> StripeList a -> m (StripeList a) #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> StripeList a -> m (StripeList a) #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> StripeList a -> m (StripeList a) #

Ord a => Ord (StripeList a) Source # 
Instance details

Defined in Web.Stripe.Types

Read a => Read (StripeList a) Source # 
Instance details

Defined in Web.Stripe.Types

Show a => Show (StripeList a) Source # 
Instance details

Defined in Web.Stripe.Types

FromJSON a => FromJSON (StripeList a) Source #

JSON Instance for StripeList

Instance details

Defined in Web.Stripe.Types

data Subscription Source #

Subscription Object

Instances
Eq Subscription Source # 
Instance details

Defined in Web.Stripe.Types

Data Subscription Source # 
Instance details

Defined in Web.Stripe.Types

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Subscription -> c Subscription #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Subscription #

toConstr :: Subscription -> Constr #

dataTypeOf :: Subscription -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Subscription) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Subscription) #

gmapT :: (forall b. Data b => b -> b) -> Subscription -> Subscription #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Subscription -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Subscription -> r #

gmapQ :: (forall d. Data d => d -> u) -> Subscription -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Subscription -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Subscription -> m Subscription #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Subscription -> m Subscription #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Subscription -> m Subscription #

Ord Subscription Source # 
Instance details

Defined in Web.Stripe.Types

Read Subscription Source # 
Instance details

Defined in Web.Stripe.Types

Show Subscription Source # 
Instance details

Defined in Web.Stripe.Types

FromJSON Subscription Source #

JSON Instance for Subscription

Instance details

Defined in Web.Stripe.Types

newtype SubscriptionId Source #

Constructors

SubscriptionId 
Instances
Eq SubscriptionId Source # 
Instance details

Defined in Web.Stripe.Types

Data SubscriptionId Source # 
Instance details

Defined in Web.Stripe.Types

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> SubscriptionId -> c SubscriptionId #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c SubscriptionId #

toConstr :: SubscriptionId -> Constr #

dataTypeOf :: SubscriptionId -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c SubscriptionId) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c SubscriptionId) #

gmapT :: (forall b. Data b => b -> b) -> SubscriptionId -> SubscriptionId #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> SubscriptionId -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> SubscriptionId -> r #

gmapQ :: (forall d. Data d => d -> u) -> SubscriptionId -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> SubscriptionId -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> SubscriptionId -> m SubscriptionId #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> SubscriptionId -> m SubscriptionId #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> SubscriptionId -> m SubscriptionId #

Ord SubscriptionId Source # 
Instance details

Defined in Web.Stripe.Types

Read SubscriptionId Source # 
Instance details

Defined in Web.Stripe.Types

Show SubscriptionId Source # 
Instance details

Defined in Web.Stripe.Types

FromJSON SubscriptionId Source #

JSON Instance for SubscriptionId

Instance details

Defined in Web.Stripe.Types

ToStripeParam SubscriptionId Source # 
Instance details

Defined in Web.Stripe.StripeRequest

StripeHasParam CreateInvoiceItem SubscriptionId Source # 
Instance details

Defined in Web.Stripe.InvoiceItem

StripeHasParam GetUpcomingInvoice SubscriptionId Source # 
Instance details

Defined in Web.Stripe.Invoice

StripeHasParam GetInvoiceLineItems SubscriptionId Source # 
Instance details

Defined in Web.Stripe.Invoice

StripeHasParam CreateInvoice SubscriptionId Source # 
Instance details

Defined in Web.Stripe.Invoice

StripeHasParam GetSubscriptionsByCustomerId (EndingBefore SubscriptionId) Source # 
Instance details

Defined in Web.Stripe.Subscription

StripeHasParam GetSubscriptionsByCustomerId (StartingAfter SubscriptionId) Source # 
Instance details

Defined in Web.Stripe.Subscription

StripeHasParam GetSubscriptions (EndingBefore SubscriptionId) Source # 
Instance details

Defined in Web.Stripe.Subscription

StripeHasParam GetSubscriptions (StartingAfter SubscriptionId) Source # 
Instance details

Defined in Web.Stripe.Subscription

data SubscriptionStatus Source #

Status of a Subscription

Instances
Eq SubscriptionStatus Source # 
Instance details

Defined in Web.Stripe.Types

Data SubscriptionStatus Source # 
Instance details

Defined in Web.Stripe.Types

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> SubscriptionStatus -> c SubscriptionStatus #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c SubscriptionStatus #

toConstr :: SubscriptionStatus -> Constr #

dataTypeOf :: SubscriptionStatus -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c SubscriptionStatus) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c SubscriptionStatus) #

gmapT :: (forall b. Data b => b -> b) -> SubscriptionStatus -> SubscriptionStatus #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> SubscriptionStatus -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> SubscriptionStatus -> r #

gmapQ :: (forall d. Data d => d -> u) -> SubscriptionStatus -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> SubscriptionStatus -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> SubscriptionStatus -> m SubscriptionStatus #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> SubscriptionStatus -> m SubscriptionStatus #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> SubscriptionStatus -> m SubscriptionStatus #

Ord SubscriptionStatus Source # 
Instance details

Defined in Web.Stripe.Types

Read SubscriptionStatus Source # 
Instance details

Defined in Web.Stripe.Types

Show SubscriptionStatus Source # 
Instance details

Defined in Web.Stripe.Types

FromJSON SubscriptionStatus Source #

JSON Instance for SubscriptionStatus

Instance details

Defined in Web.Stripe.Types

newtype TaxPercent Source #

Constructors

TaxPercent Double 
Instances
Eq TaxPercent Source # 
Instance details

Defined in Web.Stripe.Types

Data TaxPercent Source # 
Instance details

Defined in Web.Stripe.Types

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> TaxPercent -> c TaxPercent #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c TaxPercent #

toConstr :: TaxPercent -> Constr #

dataTypeOf :: TaxPercent -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c TaxPercent) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c TaxPercent) #

gmapT :: (forall b. Data b => b -> b) -> TaxPercent -> TaxPercent #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> TaxPercent -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> TaxPercent -> r #

gmapQ :: (forall d. Data d => d -> u) -> TaxPercent -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> TaxPercent -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> TaxPercent -> m TaxPercent #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> TaxPercent -> m TaxPercent #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> TaxPercent -> m TaxPercent #

Ord TaxPercent Source # 
Instance details

Defined in Web.Stripe.Types

Read TaxPercent Source # 
Instance details

Defined in Web.Stripe.Types

Show TaxPercent Source # 
Instance details

Defined in Web.Stripe.Types

ToStripeParam TaxPercent Source # 
Instance details

Defined in Web.Stripe.StripeRequest

StripeHasParam UpdateSubscription TaxPercent Source # 
Instance details

Defined in Web.Stripe.Subscription

StripeHasParam CreateSubscription TaxPercent Source # 
Instance details

Defined in Web.Stripe.Subscription

newtype TrialEnd Source #

TrialEnd for a Plan

Constructors

TrialEnd UTCTime 
Instances
Eq TrialEnd Source # 
Instance details

Defined in Web.Stripe.Types

Data TrialEnd Source # 
Instance details

Defined in Web.Stripe.Types

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> TrialEnd -> c TrialEnd #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c TrialEnd #

toConstr :: TrialEnd -> Constr #

dataTypeOf :: TrialEnd -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c TrialEnd) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c TrialEnd) #

gmapT :: (forall b. Data b => b -> b) -> TrialEnd -> TrialEnd #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> TrialEnd -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> TrialEnd -> r #

gmapQ :: (forall d. Data d => d -> u) -> TrialEnd -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> TrialEnd -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> TrialEnd -> m TrialEnd #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> TrialEnd -> m TrialEnd #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> TrialEnd -> m TrialEnd #

Ord TrialEnd Source # 
Instance details

Defined in Web.Stripe.Types

Read TrialEnd Source # 
Instance details

Defined in Web.Stripe.Types

Show TrialEnd Source # 
Instance details

Defined in Web.Stripe.Types

ToStripeParam TrialEnd Source # 
Instance details

Defined in Web.Stripe.StripeRequest

StripeHasParam UpdateSubscription TrialEnd Source # 
Instance details

Defined in Web.Stripe.Subscription

StripeHasParam CreateSubscription TrialEnd Source # 
Instance details

Defined in Web.Stripe.Subscription

StripeHasParam CreateCustomer TrialEnd Source # 
Instance details

Defined in Web.Stripe.Customer