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

Contents

Description

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

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

main :: IO ()
main = do
  let config = StripeConfig (StripeKey "secret_key")
  result <- stripe config $
             createCoupon (Just $ CouponId "$1 Off!") Once
              -&- (AmountOff 1)
              -&- USD
  case result of
    Right coupon      -> print coupon
    Left  stripeError -> print stripeError
Synopsis

API

data GetCoupon Source #

Instances
type StripeReturn GetCoupon Source # 
Instance details

Defined in Web.Stripe.Coupon

getCoupon Source #

Arguments

:: CouponId

CouponId of the Coupon to retrieve

-> StripeRequest GetCoupon 

Retrieve Coupon

updateCoupon Source #

Arguments

:: CouponId

The CoupondId of the Coupon to update

-> StripeRequest UpdateCoupon 

Update Coupon

deleteCoupon Source #

Arguments

:: CouponId

The CoupondId of the Coupon to delete

-> StripeRequest DeleteCoupon 

Delete Coupon

Types

newtype AmountOff Source #

Constructors

AmountOff Int 
Instances
Eq AmountOff Source # 
Instance details

Defined in Web.Stripe.Types

Data AmountOff 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) -> AmountOff -> c AmountOff #

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

toConstr :: AmountOff -> Constr #

dataTypeOf :: AmountOff -> DataType #

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

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

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

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

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

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

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

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

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

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

Ord AmountOff Source # 
Instance details

Defined in Web.Stripe.Types

Read AmountOff Source # 
Instance details

Defined in Web.Stripe.Types

Show AmountOff Source # 
Instance details

Defined in Web.Stripe.Types

ToStripeParam AmountOff Source # 
Instance details

Defined in Web.Stripe.StripeRequest

StripeHasParam CreateCoupon AmountOff 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 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 Currency Source #

Stripe supports 138 currencies

Constructors

AED

United Arab Emirates Dirham

AFN

Afghan Afghani

ALL

Albanian Lek

AMD

Armenian Dram

ANG

Netherlands Antillean Gulden

AOA

Angolan Kwanza

ARS

Argentine Peso

AUD

Australian Dollar

AWG

Aruban Florin

AZN

Azerbaijani Manat

BAM

Bosnia & Herzegovina Convertible Mark

BBD

Barbadian Dollar

BDT

Bangladeshi Taka

BGN

Bulgarian Lev

BIF

Burundian Franc

BMD

Bermudian Dollar

BND

Brunei Dollar

BOB

Bolivian Boliviano

BRL

Brazilian Real

BSD

Bahamian Dollar

BWP

Botswana Pula

BZD

Belize Dollar

CAD

Canadian Dollar

CDF

Congolese Franc

CHF

Swiss Franc

CLP

Chilean Peso

CNY

Chinese Renminbi Yuan

COP

Colombian Peso

CRC

Costa Rican Colón

CVE

Cape Verdean Escudo

CZK

Czech Koruna

DJF

Djiboutian Franc

DKK

Danish Krone

DOP

Dominican Peso

DZD

Algerian Dinar

EEK

Estonian Kroon

EGP

Egyptian Pound

ETB

Ethiopian Birr

EUR

Euro

FJD

Fijian Dollar

FKP

Falkland Islands Pound

GBP

British Pound

GEL

Georgian Lari

GIP

Gibraltar Pound

GMD

Gambian Dalasi

GNF

Guinean Franc

GTQ

Guatemalan Quetzal

GYD

Guyanese Dollar

HKD

Hong Kong Dollar

HNL

Honduran Lempira

HRK

Croatian Kuna

HTG

Haitian Gourde

HUF

Hungarian Forint

IDR

Indonesian Rupiah

ILS

Israeli New Sheqel

INR

Indian Rupee

ISK

Icelandic Króna

JMD

Jamaican Dollar

JPY

Japanese Yen

KES

Kenyan Shilling

KGS

Kyrgyzstani Som

KHR

Cambodian Riel

KMF

Comorian Franc

KRW

South Korean Won

KYD

Cayman Islands Dollar

KZT

Kazakhstani Tenge

LAK

Lao Kip

LBP

Lebanese Pound

LKR

Sri Lankan Rupee

LRD

Liberian Dollar

LSL

Lesotho Loti

LTL

Lithuanian Litas

LVL

Latvian Lats

MAD

Moroccan Dirham

MDL

Moldovan Leu

MGA

Malagasy Ariary

MKD

Macedonian Denar

MNT

Mongolian Tögrög

MOP

Macanese Pataca

MRO

Mauritanian Ouguiya

MUR

Mauritian Rupee

MVR

Maldivian Rufiyaa

MWK

Malawian Kwacha

MXN

Mexican Peso

MYR

Malaysian Ringgit

MZN

Mozambican Metical

NAD

Namibian Dollar

NGN

Nigerian Naira

NIO

Nicaraguan Córdoba

NOK

Norwegian Krone

NPR

Nepalese Rupee

NZD

New Zealand Dollar

PAB

Panamanian Balboa

PEN

Peruvian Nuevo Sol

PGK

Papua New Guinean Kina

PHP

Philippine Peso

PKR

Pakistani Rupee

PLN

Polish Złoty

PYG

Paraguayan Guaraní

QAR

Qatari Riyal

RON

Romanian Leu

RSD

Serbian Dinar

RUB

Russian Ruble

RWF

Rwandan Franc

SAR

Saudi Riyal

SBD

Solomon Islands Dollar

SCR

Seychellois Rupee

SEK

Swedish Krona

SGD

Singapore Dollar

SHP

Saint Helenian Pound

SLL

Sierra Leonean Leone

SOS

Somali Shilling

SRD

Surinamese Dollar

STD

São Tomé and Príncipe Dobra

SVC

Salvadoran Colón

SZL

Swazi Lilangeni

THB

Thai Baht

TJS

Tajikistani Somoni

TOP

Tongan Paʻanga

TRY

Turkish Lira

TTD

Trinidad and Tobago Dollar

TWD

New Taiwan Dollar

TZS

Tanzanian Shilling

UAH

Ukrainian Hryvnia

UGX

Ugandan Shilling

USD

United States Dollar

UYU

Uruguayan Peso

UZS

Uzbekistani Som

VND

Vietnamese Đồng

VUV

Vanuatu Vatu

WST

Samoan Tala

XAF

Central African Cfa Franc

XCD

East Caribbean Dollar

XOF

West African Cfa Franc

XPF

Cfp Franc

YER

Yemeni Rial

ZAR

South African Rand

ZMW

Zambian Kwacha

UnknownCurrency

Unknown Currency

Instances
Eq Currency Source # 
Instance details

Defined in Web.Stripe.Types

Data Currency 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) -> Currency -> c Currency #

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

toConstr :: Currency -> Constr #

dataTypeOf :: Currency -> DataType #

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

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

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

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

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

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

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

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

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

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

Ord Currency Source # 
Instance details

Defined in Web.Stripe.Types

Read Currency Source # 
Instance details

Defined in Web.Stripe.Types

Show Currency Source # 
Instance details

Defined in Web.Stripe.Types

FromJSON Currency Source #

Currency JSON instances

Instance details

Defined in Web.Stripe.Types

ToStripeParam Currency Source # 
Instance details

Defined in Web.Stripe.StripeRequest

StripeHasParam CreateCoupon Currency Source # 
Instance details

Defined in Web.Stripe.Coupon

StripeHasParam GetBalanceTransactionHistory Currency Source # 
Instance details

Defined in Web.Stripe.Balance

data Duration Source #

Coupon Duration

Constructors

Forever 
Once 
Repeating 
Instances
Eq Duration Source # 
Instance details

Defined in Web.Stripe.Types

Data Duration 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) -> Duration -> c Duration #

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

toConstr :: Duration -> Constr #

dataTypeOf :: Duration -> DataType #

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

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

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

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

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

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

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

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

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

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

Ord Duration Source # 
Instance details

Defined in Web.Stripe.Types

Read Duration Source #

Read instance for Duration

Instance details

Defined in Web.Stripe.Types

Show Duration Source #

Show instance for Duration

Instance details

Defined in Web.Stripe.Types

FromJSON Duration Source #

JSON Instance for Duration

Instance details

Defined in Web.Stripe.Types

ToStripeParam Duration Source # 
Instance details

Defined in Web.Stripe.StripeRequest

newtype DurationInMonths Source #

Constructors

DurationInMonths Int 
Instances
Eq DurationInMonths Source # 
Instance details

Defined in Web.Stripe.Types

Data DurationInMonths 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) -> DurationInMonths -> c DurationInMonths #

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

toConstr :: DurationInMonths -> Constr #

dataTypeOf :: DurationInMonths -> DataType #

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

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

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

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

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

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

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

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

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

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

Ord DurationInMonths Source # 
Instance details

Defined in Web.Stripe.Types

Read DurationInMonths Source # 
Instance details

Defined in Web.Stripe.Types

Show DurationInMonths Source # 
Instance details

Defined in Web.Stripe.Types

ToStripeParam DurationInMonths Source # 
Instance details

Defined in Web.Stripe.StripeRequest

StripeHasParam CreateCoupon DurationInMonths Source # 
Instance details

Defined in Web.Stripe.Coupon

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 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 MaxRedemptions Source #

Constructors

MaxRedemptions Int 
Instances
Eq MaxRedemptions Source # 
Instance details

Defined in Web.Stripe.Types

Data MaxRedemptions 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) -> MaxRedemptions -> c MaxRedemptions #

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

toConstr :: MaxRedemptions -> Constr #

dataTypeOf :: MaxRedemptions -> DataType #

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

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

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

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

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

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

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

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

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

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

Ord MaxRedemptions Source # 
Instance details

Defined in Web.Stripe.Types

Read MaxRedemptions Source # 
Instance details

Defined in Web.Stripe.Types

Show MaxRedemptions Source # 
Instance details

Defined in Web.Stripe.Types

ToStripeParam MaxRedemptions Source # 
Instance details

Defined in Web.Stripe.StripeRequest

StripeHasParam CreateCoupon MaxRedemptions Source # 
Instance details

Defined in Web.Stripe.Coupon

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 PercentOff Source #

Constructors

PercentOff Int 
Instances
Eq PercentOff Source # 
Instance details

Defined in Web.Stripe.Types

Data PercentOff 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) -> PercentOff -> c PercentOff #

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

toConstr :: PercentOff -> Constr #

dataTypeOf :: PercentOff -> DataType #

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

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

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

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

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

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

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

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

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

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

Ord PercentOff Source # 
Instance details

Defined in Web.Stripe.Types

Read PercentOff Source # 
Instance details

Defined in Web.Stripe.Types

Show PercentOff Source # 
Instance details

Defined in Web.Stripe.Types

ToStripeParam PercentOff Source # 
Instance details

Defined in Web.Stripe.StripeRequest

StripeHasParam CreateCoupon PercentOff Source # 
Instance details

Defined in Web.Stripe.Coupon

newtype RedeemBy Source #

RedeemBy date for a Coupon

Constructors

RedeemBy UTCTime 
Instances
Eq RedeemBy Source # 
Instance details

Defined in Web.Stripe.Types

Data RedeemBy 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) -> RedeemBy -> c RedeemBy #

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

toConstr :: RedeemBy -> Constr #

dataTypeOf :: RedeemBy -> DataType #

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

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

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

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

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

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

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

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

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

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

Ord RedeemBy Source # 
Instance details

Defined in Web.Stripe.Types

Read RedeemBy Source # 
Instance details

Defined in Web.Stripe.Types

Show RedeemBy Source # 
Instance details

Defined in Web.Stripe.Types

ToStripeParam RedeemBy Source # 
Instance details

Defined in Web.Stripe.StripeRequest

StripeHasParam CreateCoupon RedeemBy Source # 
Instance details

Defined in Web.Stripe.Coupon

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 StripeDeleteResult Source #

JSON returned from a Stripe deletion request

Constructors

StripeDeleteResult 
Instances
Eq StripeDeleteResult Source # 
Instance details

Defined in Web.Stripe.Types

Data StripeDeleteResult 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) -> StripeDeleteResult -> c StripeDeleteResult #

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

toConstr :: StripeDeleteResult -> Constr #

dataTypeOf :: StripeDeleteResult -> DataType #

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

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

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

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

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

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

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

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

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

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

Ord StripeDeleteResult Source # 
Instance details

Defined in Web.Stripe.Types

Read StripeDeleteResult Source # 
Instance details

Defined in Web.Stripe.Types

Show StripeDeleteResult Source # 
Instance details

Defined in Web.Stripe.Types

FromJSON StripeDeleteResult Source #

JSON Instance for StripeDeleteResult

Instance details

Defined in Web.Stripe.Types

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