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

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

Web.Stripe.InvoiceItem

Contents

Description

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

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

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 $
           createInvoiceItem cid (Amount 100) USD
             -&- (Description "description")
         case result of
           Left stripeError  -> print stripeError
           Right invoiceitem -> print invoiceitem

Synopsis

API

createInvoiceItem #

Arguments

:: CustomerId

CustomerId of Customer on which to create an InvoiceItem

-> Amount

Amount associated with InvoiceItem

-> Currency

Currency to use for InvoiceItem

-> StripeRequest CreateInvoiceItem 

Create an invoice for a Customer

deleteInvoiceItem #

Arguments

:: InvoiceItemId

InvoiceItemdId of InvoiceItem to be deleted

-> StripeRequest DeleteInvoiceItem 

Types

newtype InvoiceItemId #

Constructors

InvoiceItemId Text 

Instances

Eq InvoiceItemId # 
Data InvoiceItemId # 

Methods

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

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

toConstr :: InvoiceItemId -> Constr #

dataTypeOf :: InvoiceItemId -> DataType #

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

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

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

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

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

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

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

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

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

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

Ord InvoiceItemId # 
Read InvoiceItemId # 
Show InvoiceItemId # 
ToStripeParam InvoiceItemId # 
StripeHasParam GetInvoiceItems (EndingBefore InvoiceItemId) # 
StripeHasParam GetInvoiceItems (StartingAfter InvoiceItemId) # 
type ExpandsTo InvoiceItemId # 

data InvoiceItem #

Instances

Eq InvoiceItem # 
Data InvoiceItem # 

Methods

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

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

toConstr :: InvoiceItem -> Constr #

dataTypeOf :: InvoiceItem -> DataType #

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

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

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

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

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

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

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

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

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

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

Ord InvoiceItem # 
Read InvoiceItem # 
Show InvoiceItem # 
FromJSON InvoiceItem #

JSON Instance for InvoiceItem

newtype Created #

Constructors

Created UTCTime 

Instances

Eq Created # 

Methods

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

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

Data Created # 

Methods

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

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

toConstr :: Created -> Constr #

dataTypeOf :: Created -> DataType #

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

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

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

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

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

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

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

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

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

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

Ord Created # 
Read Created # 
Show Created # 
ToStripeParam Created # 
StripeHasParam GetTransfers Created # 
StripeHasParam GetInvoiceItems Created # 
StripeHasParam GetEvents Created # 
StripeHasParam GetCustomers Created # 
StripeHasParam GetCharges Created # 
StripeHasParam GetBalanceTransactionHistory Created # 
StripeHasParam GetApplicationFees Created # 
StripeHasParam GetBalanceTransactionHistory (TimeRange Created) # 

newtype CustomerId #

Constructors

CustomerId Text 

Instances

Eq CustomerId # 
Data CustomerId # 

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 # 
Read CustomerId # 
Show CustomerId # 
FromJSON CustomerId #

JSON Instance for CustomerId

ToStripeParam CustomerId # 
StripeHasParam CreateCardToken CustomerId # 
StripeHasParam GetInvoiceItems CustomerId # 
StripeHasParam GetInvoiceLineItems CustomerId # 
StripeHasParam GetCharges CustomerId # 
StripeHasParam CreateCharge CustomerId # 
StripeHasParam GetCustomers (EndingBefore CustomerId) # 
StripeHasParam GetCustomers (StartingAfter CustomerId) # 
type ExpandsTo CustomerId # 

data Currency #

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

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 # 
Read Currency # 
Show Currency # 
FromJSON Currency #

Currency JSON instances

ToStripeParam Currency # 
StripeHasParam CreateCoupon Currency # 
StripeHasParam GetBalanceTransactionHistory Currency # 

newtype EndingBefore a #

Pagination Option for StripeList

Constructors

EndingBefore a 

Instances

StripeHasParam GetTransfers (EndingBefore TransferId) # 
StripeHasParam GetSubscriptionsByCustomerId (EndingBefore SubscriptionId) # 
StripeHasParam GetSubscriptions (EndingBefore SubscriptionId) # 
StripeHasParam GetRefunds (EndingBefore RefundId) # 
StripeHasParam GetRecipients (EndingBefore RecipientId) # 
StripeHasParam GetPlans (EndingBefore PlanId) # 
StripeHasParam GetInvoiceItems (EndingBefore InvoiceItemId) # 
StripeHasParam GetInvoiceLineItems (EndingBefore InvoiceLineItemId) # 
StripeHasParam GetInvoices (EndingBefore InvoiceId) # 
StripeHasParam GetEvents (EndingBefore EventId) # 
StripeHasParam GetCustomers (EndingBefore CustomerId) # 
StripeHasParam GetCoupons (EndingBefore CouponId) # 
StripeHasParam GetCharges (EndingBefore ChargeId) # 
StripeHasParam GetRecipientCards (EndingBefore CardId) # 
StripeHasParam GetCustomerCards (EndingBefore CardId) # 
StripeHasParam GetBalanceTransactionHistory (EndingBefore TransactionId) # 
StripeHasParam GetApplicationFeeRefunds (EndingBefore RefundId) # 
StripeHasParam GetApplicationFees (EndingBefore ApplicationFeeId) # 
Eq a => Eq (EndingBefore a) # 
Data a => Data (EndingBefore a) # 

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) # 
Read a => Read (EndingBefore a) # 
Show a => Show (EndingBefore a) # 
ToStripeParam param => ToStripeParam (EndingBefore param) # 

newtype ExpandParams #

Type of Expansion Parameters for use on Stripe objects

Constructors

ExpandParams 

Fields

Instances

Eq ExpandParams # 
Data ExpandParams # 

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 # 
Read ExpandParams # 
Show ExpandParams # 
ToStripeParam ExpandParams # 
StripeHasParam GetTransfers ExpandParams # 
StripeHasParam GetTransfer ExpandParams # 
StripeHasParam GetSubscriptionsByCustomerId ExpandParams # 
StripeHasParam GetSubscriptions ExpandParams # 
StripeHasParam GetSubscription ExpandParams # 
StripeHasParam GetRefunds ExpandParams # 
StripeHasParam GetRefund ExpandParams # 
StripeHasParam GetRecipients ExpandParams # 
StripeHasParam GetRecipient ExpandParams # 
StripeHasParam GetInvoiceItems ExpandParams # 
StripeHasParam GetInvoiceItem ExpandParams # 
StripeHasParam GetInvoices ExpandParams # 
StripeHasParam GetInvoice ExpandParams # 
StripeHasParam GetCustomers ExpandParams # 
StripeHasParam GetCustomer ExpandParams # 
StripeHasParam GetCharges ExpandParams # 
StripeHasParam GetCharge ExpandParams # 
StripeHasParam CreateCharge ExpandParams # 
StripeHasParam GetRecipientCards ExpandParams # 
StripeHasParam GetCustomerCards ExpandParams # 
StripeHasParam GetRecipientCard ExpandParams # 
StripeHasParam GetCustomerCard ExpandParams # 
StripeHasParam GetBalanceTransaction ExpandParams # 
StripeHasParam GetApplicationFeeRefunds ExpandParams # 
StripeHasParam GetApplicationFeeRefund ExpandParams # 
StripeHasParam GetApplicationFees ExpandParams # 
StripeHasParam GetApplicationFee ExpandParams # 

newtype InvoiceId #

Constructors

InvoiceId Text 

Instances

Eq InvoiceId # 
Data InvoiceId # 

Methods

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

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

toConstr :: InvoiceId -> Constr #

dataTypeOf :: InvoiceId -> DataType #

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

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

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

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

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

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

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

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

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

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

Ord InvoiceId # 
Read InvoiceId # 
Show InvoiceId # 
FromJSON InvoiceId #

JSON Instance for InvoiceId

ToStripeParam InvoiceId # 
StripeHasParam CreateInvoiceItem InvoiceId # 
StripeHasParam GetInvoices (EndingBefore InvoiceId) # 
StripeHasParam GetInvoices (StartingAfter InvoiceId) # 
type ExpandsTo InvoiceId # 

data Invoice #

Invoice Object

Instances

Eq Invoice # 

Methods

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

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

Data Invoice # 

Methods

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

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

toConstr :: Invoice -> Constr #

dataTypeOf :: Invoice -> DataType #

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

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

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

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

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

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

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

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

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

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

Ord Invoice # 
Read Invoice # 
Show Invoice # 
FromJSON Invoice #

JSON Instance for Invoice

newtype Limit #

Pagination Option for StripeList

Constructors

Limit Int 

Instances

Eq Limit # 

Methods

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

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

Data Limit # 

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 # 

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 # 
Show Limit # 

Methods

showsPrec :: Int -> Limit -> ShowS #

show :: Limit -> String #

showList :: [Limit] -> ShowS #

ToStripeParam Limit # 
StripeHasParam GetTransfers Limit # 
StripeHasParam GetSubscriptionsByCustomerId Limit # 
StripeHasParam GetSubscriptions Limit # 
StripeHasParam GetRefunds Limit # 
StripeHasParam GetRecipients Limit # 
StripeHasParam GetPlans Limit # 
StripeHasParam GetInvoiceItems Limit # 
StripeHasParam GetInvoiceLineItems Limit # 
StripeHasParam GetInvoices Limit # 
StripeHasParam GetEvents Limit # 
StripeHasParam GetCustomers Limit # 
StripeHasParam GetCoupons Limit # 
StripeHasParam GetCharges Limit # 
StripeHasParam GetRecipientCards Limit # 
StripeHasParam GetCustomerCards Limit # 
StripeHasParam GetBalanceTransactionHistory Limit # 
StripeHasParam GetApplicationFeeRefunds Limit # 
StripeHasParam GetApplicationFees Limit # 

newtype SubscriptionId #

Constructors

SubscriptionId 

Instances

Eq SubscriptionId # 
Data SubscriptionId # 

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 # 
Read SubscriptionId # 
Show SubscriptionId # 
FromJSON SubscriptionId #

JSON Instance for SubscriptionId

ToStripeParam SubscriptionId # 
StripeHasParam CreateInvoiceItem SubscriptionId # 
StripeHasParam GetUpcomingInvoice SubscriptionId # 
StripeHasParam GetInvoiceLineItems SubscriptionId # 
StripeHasParam CreateInvoice SubscriptionId # 
StripeHasParam GetSubscriptionsByCustomerId (EndingBefore SubscriptionId) # 
StripeHasParam GetSubscriptionsByCustomerId (StartingAfter SubscriptionId) # 
StripeHasParam GetSubscriptions (EndingBefore SubscriptionId) # 
StripeHasParam GetSubscriptions (StartingAfter SubscriptionId) # 

newtype StartingAfter a #

Pagination Option for StripeList

Constructors

StartingAfter a 

Instances

StripeHasParam GetTransfers (StartingAfter TransferId) # 
StripeHasParam GetSubscriptionsByCustomerId (StartingAfter SubscriptionId) # 
StripeHasParam GetSubscriptions (StartingAfter SubscriptionId) # 
StripeHasParam GetRefunds (StartingAfter RefundId) # 
StripeHasParam GetRecipients (StartingAfter RecipientId) # 
StripeHasParam GetPlans (StartingAfter PlanId) # 
StripeHasParam GetInvoiceItems (StartingAfter InvoiceItemId) # 
StripeHasParam GetInvoiceLineItems (StartingAfter InvoiceLineItemId) # 
StripeHasParam GetInvoices (StartingAfter InvoiceId) # 
StripeHasParam GetEvents (StartingAfter EventId) # 
StripeHasParam GetCustomers (StartingAfter CustomerId) # 
StripeHasParam GetCoupons (StartingAfter CouponId) # 
StripeHasParam GetCharges (StartingAfter ChargeId) # 
StripeHasParam GetRecipientCards (StartingAfter CardId) # 
StripeHasParam GetCustomerCards (StartingAfter CardId) # 
StripeHasParam GetBalanceTransactionHistory (StartingAfter TransactionId) # 
StripeHasParam GetApplicationFeeRefunds (StartingAfter RefundId) # 
StripeHasParam GetApplicationFees (StartingAfter ApplicationFeeId) # 
Eq a => Eq (StartingAfter a) # 
Data a => Data (StartingAfter a) # 

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) # 
Read a => Read (StartingAfter a) # 
Show a => Show (StartingAfter a) # 
ToStripeParam param => ToStripeParam (StartingAfter param) # 

data StripeDeleteResult #

JSON returned from a Stripe deletion request

Constructors

StripeDeleteResult 

Instances

Eq StripeDeleteResult # 
Data StripeDeleteResult # 

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 # 
Read StripeDeleteResult # 
Show StripeDeleteResult # 
FromJSON StripeDeleteResult #

JSON Instance for StripeDeleteResult

data StripeList a #

Generic handling of Stripe JSON arrays

Constructors

StripeList 

Fields

Instances

Eq a => Eq (StripeList a) # 

Methods

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

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

Data a => Data (StripeList a) # 

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) # 
Read a => Read (StripeList a) # 
Show a => Show (StripeList a) # 
FromJSON a => FromJSON (StripeList a) #

JSON Instance for StripeList

newtype Description #

Generic Description for use in constructing API Calls

Constructors

Description Text 

Instances

Eq Description # 
Data Description # 

Methods

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

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

toConstr :: Description -> Constr #

dataTypeOf :: Description -> DataType #

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

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

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

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

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

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

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

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

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

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

Ord Description # 
Read Description # 
Show Description # 
FromJSON Description # 
ToStripeParam Description # 
StripeHasParam UpdateTransfer Description # 
StripeHasParam CreateTransfer Description # 
StripeHasParam UpdateRecipient Description # 
StripeHasParam CreateRecipient Description # 
StripeHasParam UpdateInvoiceItem Description # 
StripeHasParam CreateInvoiceItem Description # 
StripeHasParam UpdateInvoice Description # 
StripeHasParam CreateInvoice Description # 
StripeHasParam UpdateCustomer Description # 
StripeHasParam CreateCustomer Description # 
StripeHasParam UpdateCharge Description # 
StripeHasParam CreateCharge Description # 

newtype Amount #

Amount representing a monetary value. Stripe represents pennies as whole numbers i.e. 100 = $1

Constructors

Amount 

Fields

Instances

Eq Amount # 

Methods

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

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

Data Amount # 

Methods

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

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

toConstr :: Amount -> Constr #

dataTypeOf :: Amount -> DataType #

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

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

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

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

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

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

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

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

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

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

Ord Amount # 
Read Amount # 
Show Amount # 
ToStripeParam Amount # 
StripeHasParam CreateRefund Amount # 
StripeHasParam UpdateInvoiceItem Amount # 
StripeHasParam CaptureCharge Amount # 
StripeHasParam CreateApplicationFeeRefund Amount #