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

Contents

Description

 

Synopsis

Types

data Method #

HTTP Method

The other methods are not required by the Stripe API

Constructors

DELETE 
GET 
POST 

data Expandable id #

a wrapper for fields which can either be an id or an expanded object

Constructors

Id id

an id such as CardId, AccountId, CustomerId, etc

Expanded (ExpandsTo id)

expanded object such as Card, Account, Customer, etc

Instances

(Eq id, Eq (ExpandsTo id)) => Eq (Expandable id) # 

Methods

(==) :: Expandable id -> Expandable id -> Bool #

(/=) :: Expandable id -> Expandable id -> Bool #

(Data id, Data (ExpandsTo id)) => Data (Expandable id) # 

Methods

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

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

toConstr :: Expandable id -> Constr #

dataTypeOf :: Expandable id -> DataType #

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

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

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

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

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

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

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

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

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

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

(Ord id, Ord (ExpandsTo id)) => Ord (Expandable id) # 

Methods

compare :: Expandable id -> Expandable id -> Ordering #

(<) :: Expandable id -> Expandable id -> Bool #

(<=) :: Expandable id -> Expandable id -> Bool #

(>) :: Expandable id -> Expandable id -> Bool #

(>=) :: Expandable id -> Expandable id -> Bool #

max :: Expandable id -> Expandable id -> Expandable id #

min :: Expandable id -> Expandable id -> Expandable id #

(Read id, Read (ExpandsTo id)) => Read (Expandable id) # 
(Show id, Show (ExpandsTo id)) => Show (Expandable id) # 

Methods

showsPrec :: Int -> Expandable id -> ShowS #

show :: Expandable id -> String #

showList :: [Expandable id] -> ShowS #

(FromJSON id, FromJSON (ExpandsTo id)) => FromJSON (Expandable id) #

JSON Instance for Expandable

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 Param k v #

used to set a specific key/value pair when the type is not enough

Constructors

Param (k, v) 

type Params = [(ByteString, ByteString)] #

HTTP Params

data StripeRequest a #

Stripe Request holding Method, URL and Params for a Request. Also includes the function needed to decode the response.

Constructors

StripeRequest 

Fields

type family StripeReturn a :: * #

return type of stripe request

Instances

type StripeReturn GetTransfers # 
type StripeReturn CancelTransfer # 
type StripeReturn UpdateTransfer # 
type StripeReturn GetTransfer # 
type StripeReturn CreateTransfer # 
type StripeReturn GetBankAccountToken # 
type StripeReturn GetCardToken # 
type StripeReturn CreateBankAccountToken # 
type StripeReturn CreateCardToken # 
type StripeReturn GetSubscriptionsByCustomerId # 
type StripeReturn GetSubscriptions # 
type StripeReturn CancelSubscription # 
type StripeReturn UpdateSubscription # 
type StripeReturn GetSubscription # 
type StripeReturn CreateSubscription # 
type StripeReturn GetAccountDetails # 
type StripeReturn GetRefunds # 
type StripeReturn UpdateRefund # 
type StripeReturn GetRefund # 
type StripeReturn CreateRefund # 
type StripeReturn GetRecipients # 
type StripeReturn DeleteRecipient # 
type StripeReturn UpdateRecipient # 
type StripeReturn GetRecipient # 
type StripeReturn CreateRecipient # 
type StripeReturn GetPlans # 
type StripeReturn DeletePlan # 
type StripeReturn UpdatePlan # 
type StripeReturn GetPlan # 
type StripeReturn CreatePlan # 
type StripeReturn GetInvoiceItems # 
type StripeReturn DeleteInvoiceItem # 
type StripeReturn UpdateInvoiceItem # 
type StripeReturn GetInvoiceItem # 
type StripeReturn CreateInvoiceItem # 
type StripeReturn PayInvoice # 
type StripeReturn UpdateInvoice # 
type StripeReturn GetUpcomingInvoice # 
type StripeReturn GetInvoiceLineItems # 
type StripeReturn GetInvoices # 
type StripeReturn GetInvoice # 
type StripeReturn CreateInvoice # 
type StripeReturn GetEvents # 
type StripeReturn GetEvent # 
type StripeReturn CloseDispute # 
type StripeReturn UpdateDispute # 
type StripeReturn DeleteSubscriptionDiscount # 
type StripeReturn DeleteCustomerDiscount # 
type StripeReturn GetCustomers # 
type StripeReturn DeleteCustomer # 
type StripeReturn UpdateCustomer # 
type StripeReturn GetCustomer # 
type StripeReturn CreateCustomer # 
type StripeReturn GetCoupons # 
type StripeReturn DeleteCoupon # 
type StripeReturn UpdateCoupon # 
type StripeReturn GetCoupon # 
type StripeReturn CreateCoupon # 
type StripeReturn GetCharges # 
type StripeReturn CaptureCharge # 
type StripeReturn UpdateCharge # 
type StripeReturn GetCharge # 
type StripeReturn CreateCharge # 
type StripeReturn GetRecipientCards # 
type StripeReturn GetCustomerCards # 
type StripeReturn DeleteRecipientCard # 
type StripeReturn DeleteCustomerCard # 
type StripeReturn UpdateRecipientCard # 
type StripeReturn UpdateCustomerCard # 
type StripeReturn GetRecipientCard # 
type StripeReturn GetCustomerCard # 
type StripeReturn CreateRecipientCard # 
type StripeReturn CreateCustomerCard # 
type StripeReturn CreateRecipientCardByToken # 
type StripeReturn CreateCustomerCardByToken # 
type StripeReturn GetBalanceTransactionHistory # 
type StripeReturn GetBalanceTransaction # 
type StripeReturn GetBalance # 
type StripeReturn GetApplicationFeeRefunds # 
type StripeReturn UpdateApplicationFeeRefund # 
type StripeReturn GetApplicationFeeRefund # 
type StripeReturn CreateApplicationFeeRefund # 
type StripeReturn GetApplicationFees # 
type StripeReturn GetApplicationFee # 

class ToStripeParam param => StripeHasParam request param #

indicate if a request allows an optional parameter

Instances

StripeHasParam GetTransfers ExpandParams # 
StripeHasParam GetTransfers Limit # 
StripeHasParam GetTransfers RecipientId # 
StripeHasParam GetTransfers TransferStatus # 
StripeHasParam GetTransfers Date # 
StripeHasParam GetTransfers Created # 
StripeHasParam UpdateTransfer Description # 
StripeHasParam UpdateTransfer MetaData # 
StripeHasParam GetTransfer ExpandParams # 
StripeHasParam CreateTransfer Description # 
StripeHasParam CreateTransfer MetaData # 
StripeHasParam CreateTransfer BankAccountId # 
StripeHasParam CreateTransfer CardId # 
StripeHasParam CreateTransfer StatementDescription # 
StripeHasParam CreateCardToken CustomerId # 
StripeHasParam GetSubscriptionsByCustomerId ExpandParams # 
StripeHasParam GetSubscriptionsByCustomerId Limit # 
StripeHasParam GetSubscriptions ExpandParams # 
StripeHasParam GetSubscriptions Limit # 
StripeHasParam CancelSubscription AtPeriodEnd # 
StripeHasParam UpdateSubscription Prorate # 
StripeHasParam UpdateSubscription Quantity # 
StripeHasParam UpdateSubscription MetaData # 
StripeHasParam UpdateSubscription ApplicationFeePercent # 
StripeHasParam UpdateSubscription CouponId # 
StripeHasParam UpdateSubscription TrialEnd # 
StripeHasParam UpdateSubscription PlanId # 
StripeHasParam UpdateSubscription TaxPercent # 
StripeHasParam UpdateSubscription CardId # 
StripeHasParam GetSubscription ExpandParams # 
StripeHasParam CreateSubscription Prorate # 
StripeHasParam CreateSubscription Quantity # 
StripeHasParam CreateSubscription MetaData # 
StripeHasParam CreateSubscription ApplicationFeePercent # 
StripeHasParam CreateSubscription CouponId # 
StripeHasParam CreateSubscription TrialEnd # 
StripeHasParam CreateSubscription TaxPercent # 
StripeHasParam CreateSubscription CardId # 
StripeHasParam GetRefunds ExpandParams # 
StripeHasParam GetRefunds Limit # 
StripeHasParam UpdateRefund MetaData # 
StripeHasParam GetRefund ExpandParams # 
StripeHasParam CreateRefund MetaData # 
StripeHasParam CreateRefund Amount # 
StripeHasParam CreateRefund RefundReason # 
StripeHasParam CreateRefund RefundApplicationFee # 
StripeHasParam GetRecipients ExpandParams # 
StripeHasParam GetRecipients Limit # 
StripeHasParam GetRecipients IsVerified # 
StripeHasParam UpdateRecipient Email # 
StripeHasParam UpdateRecipient Description # 
StripeHasParam UpdateRecipient Name # 
StripeHasParam UpdateRecipient MetaData # 
StripeHasParam UpdateRecipient TokenId # 
StripeHasParam UpdateRecipient TaxID # 
StripeHasParam UpdateRecipient NewBankAccount # 
StripeHasParam UpdateRecipient DefaultCard # 
StripeHasParam UpdateRecipient NewCard # 
StripeHasParam UpdateRecipient CardId # 
StripeHasParam GetRecipient ExpandParams # 
StripeHasParam CreateRecipient Email # 
StripeHasParam CreateRecipient Description # 
StripeHasParam CreateRecipient MetaData # 
StripeHasParam CreateRecipient TokenId # 
StripeHasParam CreateRecipient TaxID # 
StripeHasParam CreateRecipient NewBankAccount # 
StripeHasParam CreateRecipient NewCard # 
StripeHasParam CreateRecipient CardId # 
StripeHasParam GetPlans Limit # 
StripeHasParam UpdatePlan PlanName # 
StripeHasParam UpdatePlan MetaData # 
StripeHasParam UpdatePlan StatementDescription # 
StripeHasParam CreatePlan MetaData # 
StripeHasParam CreatePlan TrialPeriodDays # 
StripeHasParam CreatePlan IntervalCount # 
StripeHasParam CreatePlan StatementDescription # 
StripeHasParam GetInvoiceItems ExpandParams # 
StripeHasParam GetInvoiceItems Limit # 
StripeHasParam GetInvoiceItems CustomerId # 
StripeHasParam GetInvoiceItems Created # 
StripeHasParam UpdateInvoiceItem Description # 
StripeHasParam UpdateInvoiceItem MetaData # 
StripeHasParam UpdateInvoiceItem Amount # 
StripeHasParam GetInvoiceItem ExpandParams # 
StripeHasParam CreateInvoiceItem Description # 
StripeHasParam CreateInvoiceItem MetaData # 
StripeHasParam CreateInvoiceItem InvoiceId # 
StripeHasParam CreateInvoiceItem SubscriptionId # 
StripeHasParam UpdateInvoice Description # 
StripeHasParam UpdateInvoice MetaData # 
StripeHasParam UpdateInvoice ApplicationFeeId # 
StripeHasParam UpdateInvoice Forgiven # 
StripeHasParam UpdateInvoice Closed # 
StripeHasParam UpdateInvoice StatementDescription # 
StripeHasParam GetUpcomingInvoice SubscriptionId # 
StripeHasParam GetInvoiceLineItems Limit # 
StripeHasParam GetInvoiceLineItems SubscriptionId # 
StripeHasParam GetInvoiceLineItems CustomerId # 
StripeHasParam GetInvoices ExpandParams # 
StripeHasParam GetInvoices Limit # 
StripeHasParam GetInvoice ExpandParams # 
StripeHasParam CreateInvoice Description # 
StripeHasParam CreateInvoice MetaData # 
StripeHasParam CreateInvoice ApplicationFeeId # 
StripeHasParam CreateInvoice SubscriptionId # 
StripeHasParam CreateInvoice StatementDescription # 
StripeHasParam GetEvents Limit # 
StripeHasParam GetEvents Created # 
StripeHasParam UpdateDispute MetaData # 
StripeHasParam UpdateDispute Evidence # 
StripeHasParam GetCustomers ExpandParams # 
StripeHasParam GetCustomers Limit # 
StripeHasParam GetCustomers Created # 
StripeHasParam UpdateCustomer Email # 
StripeHasParam UpdateCustomer Description # 
StripeHasParam UpdateCustomer MetaData # 
StripeHasParam UpdateCustomer TokenId # 
StripeHasParam UpdateCustomer CouponId # 
StripeHasParam UpdateCustomer DefaultCard # 
StripeHasParam UpdateCustomer NewCard # 
StripeHasParam UpdateCustomer AccountBalance # 
StripeHasParam GetCustomer ExpandParams # 
StripeHasParam CreateCustomer Email # 
StripeHasParam CreateCustomer Quantity # 
StripeHasParam CreateCustomer Description # 
StripeHasParam CreateCustomer MetaData # 
StripeHasParam CreateCustomer TokenId # 
StripeHasParam CreateCustomer CouponId # 
StripeHasParam CreateCustomer TrialEnd # 
StripeHasParam CreateCustomer PlanId # 
StripeHasParam CreateCustomer NewCard # 
StripeHasParam CreateCustomer AccountBalance # 
StripeHasParam GetCoupons Limit # 
StripeHasParam UpdateCoupon MetaData # 
StripeHasParam CreateCoupon Currency # 
StripeHasParam CreateCoupon MetaData # 
StripeHasParam CreateCoupon DurationInMonths # 
StripeHasParam CreateCoupon RedeemBy # 
StripeHasParam CreateCoupon PercentOff # 
StripeHasParam CreateCoupon MaxRedemptions # 
StripeHasParam CreateCoupon AmountOff # 
StripeHasParam GetCharges ExpandParams # 
StripeHasParam GetCharges Limit # 
StripeHasParam GetCharges CustomerId # 
StripeHasParam GetCharges Created # 
StripeHasParam CaptureCharge ReceiptEmail # 
StripeHasParam CaptureCharge Amount # 
StripeHasParam UpdateCharge Description # 
StripeHasParam UpdateCharge MetaData # 
StripeHasParam GetCharge ExpandParams # 
StripeHasParam CreateCharge ReceiptEmail # 
StripeHasParam CreateCharge Description # 
StripeHasParam CreateCharge ExpandParams # 
StripeHasParam CreateCharge MetaData # 
StripeHasParam CreateCharge TokenId # 
StripeHasParam CreateCharge ApplicationFeeAmount # 
StripeHasParam CreateCharge NewCard # 
StripeHasParam CreateCharge CustomerId # 
StripeHasParam CreateCharge Capture # 
StripeHasParam CreateCharge StatementDescription # 
StripeHasParam GetRecipientCards ExpandParams # 
StripeHasParam GetRecipientCards Limit # 
StripeHasParam GetCustomerCards ExpandParams # 
StripeHasParam GetCustomerCards Limit # 
StripeHasParam UpdateRecipientCard Name # 
StripeHasParam UpdateRecipientCard AddressZip # 
StripeHasParam UpdateRecipientCard AddressState # 
StripeHasParam UpdateRecipientCard AddressLine2 # 
StripeHasParam UpdateRecipientCard AddressLine1 # 
StripeHasParam UpdateRecipientCard AddressCountry # 
StripeHasParam UpdateRecipientCard AddressCity # 
StripeHasParam UpdateRecipientCard ExpYear # 
StripeHasParam UpdateRecipientCard ExpMonth # 
StripeHasParam UpdateCustomerCard Name # 
StripeHasParam UpdateCustomerCard AddressZip # 
StripeHasParam UpdateCustomerCard AddressState # 
StripeHasParam UpdateCustomerCard AddressLine2 # 
StripeHasParam UpdateCustomerCard AddressLine1 # 
StripeHasParam UpdateCustomerCard AddressCountry # 
StripeHasParam UpdateCustomerCard AddressCity # 
StripeHasParam UpdateCustomerCard ExpYear # 
StripeHasParam UpdateCustomerCard ExpMonth # 
StripeHasParam GetRecipientCard ExpandParams # 
StripeHasParam GetCustomerCard ExpandParams # 
StripeHasParam GetBalanceTransactionHistory Currency # 
StripeHasParam GetBalanceTransactionHistory Limit # 
StripeHasParam GetBalanceTransactionHistory TransactionType # 
StripeHasParam GetBalanceTransactionHistory TransferId # 
StripeHasParam GetBalanceTransactionHistory Created # 
StripeHasParam GetBalanceTransactionHistory AvailableOn # 
StripeHasParam GetBalanceTransaction ExpandParams # 
StripeHasParam GetApplicationFeeRefunds ExpandParams # 
StripeHasParam GetApplicationFeeRefunds Limit # 
StripeHasParam UpdateApplicationFeeRefund MetaData # 
StripeHasParam GetApplicationFeeRefund ExpandParams # 
StripeHasParam CreateApplicationFeeRefund MetaData # 
StripeHasParam CreateApplicationFeeRefund Amount # 
StripeHasParam GetApplicationFees ExpandParams # 
StripeHasParam GetApplicationFees Limit # 
StripeHasParam GetApplicationFees ChargeId # 
StripeHasParam GetApplicationFees Created # 
StripeHasParam GetApplicationFee ExpandParams # 
StripeHasParam GetTransfers (EndingBefore TransferId) # 
StripeHasParam GetTransfers (StartingAfter TransferId) # 
StripeHasParam GetSubscriptionsByCustomerId (EndingBefore SubscriptionId) # 
StripeHasParam GetSubscriptionsByCustomerId (StartingAfter SubscriptionId) # 
StripeHasParam GetSubscriptions (EndingBefore SubscriptionId) # 
StripeHasParam GetSubscriptions (StartingAfter SubscriptionId) # 
StripeHasParam GetRefunds (EndingBefore RefundId) # 
StripeHasParam GetRefunds (StartingAfter RefundId) # 
StripeHasParam GetRecipients (EndingBefore RecipientId) # 
StripeHasParam GetRecipients (StartingAfter RecipientId) # 
StripeHasParam GetPlans (EndingBefore PlanId) # 
StripeHasParam GetPlans (StartingAfter PlanId) # 
StripeHasParam GetInvoiceItems (EndingBefore InvoiceItemId) # 
StripeHasParam GetInvoiceItems (StartingAfter InvoiceItemId) # 
StripeHasParam GetInvoiceLineItems (EndingBefore InvoiceLineItemId) # 
StripeHasParam GetInvoiceLineItems (StartingAfter InvoiceLineItemId) # 
StripeHasParam GetInvoices (EndingBefore InvoiceId) # 
StripeHasParam GetInvoices (StartingAfter InvoiceId) # 
StripeHasParam GetEvents (EndingBefore EventId) # 
StripeHasParam GetEvents (StartingAfter EventId) # 
StripeHasParam GetCustomers (EndingBefore CustomerId) # 
StripeHasParam GetCustomers (StartingAfter CustomerId) # 
StripeHasParam GetCoupons (EndingBefore CouponId) # 
StripeHasParam GetCoupons (StartingAfter CouponId) # 
StripeHasParam GetCharges (EndingBefore ChargeId) # 
StripeHasParam GetCharges (StartingAfter ChargeId) # 
StripeHasParam GetRecipientCards (EndingBefore CardId) # 
StripeHasParam GetRecipientCards (StartingAfter CardId) # 
StripeHasParam GetCustomerCards (EndingBefore CardId) # 
StripeHasParam GetCustomerCards (StartingAfter CardId) # 
StripeHasParam GetBalanceTransactionHistory (EndingBefore TransactionId) # 
StripeHasParam GetBalanceTransactionHistory (StartingAfter TransactionId) # 
ToStripeParam a => StripeHasParam GetBalanceTransactionHistory (Source a) # 
StripeHasParam GetBalanceTransactionHistory (TimeRange Created) # 
StripeHasParam GetBalanceTransactionHistory (TimeRange AvailableOn) # 
StripeHasParam GetApplicationFeeRefunds (EndingBefore RefundId) # 
StripeHasParam GetApplicationFeeRefunds (StartingAfter RefundId) # 
StripeHasParam GetApplicationFees (EndingBefore ApplicationFeeId) # 
StripeHasParam GetApplicationFees (StartingAfter ApplicationFeeId) # 

class ToStripeParam param where #

convert a parameter to a key/value

Minimal complete definition

toStripeParam

Methods

toStripeParam :: param -> [(ByteString, ByteString)] -> [(ByteString, ByteString)] #

Instances

ToStripeParam Currency # 
ToStripeParam ReceiptEmail # 
ToStripeParam Email # 
ToStripeParam AtPeriodEnd # 
ToStripeParam Prorate # 
ToStripeParam Quantity # 
ToStripeParam Description # 
ToStripeParam PlanName # 
ToStripeParam Name # 
ToStripeParam ExpandParams # 
ToStripeParam MetaData # 
ToStripeParam Limit # 
ToStripeParam TokenId # 
ToStripeParam EventId # 
ToStripeParam TransactionType # 
ToStripeParam TransactionId # 
ToStripeParam ApplicationFeeAmount # 
ToStripeParam ApplicationFeePercent # 
ToStripeParam ApplicationFeeId # 
ToStripeParam RecipientType # 
ToStripeParam TaxID # 
ToStripeParam RecipientId # 
ToStripeParam NewBankAccount # 
ToStripeParam BankAccountId # 
ToStripeParam TransferStatus # 
ToStripeParam TransferId # 
ToStripeParam Evidence # 
ToStripeParam Forgiven # 
ToStripeParam Closed # 
ToStripeParam InvoiceLineItemId # 
ToStripeParam InvoiceItemId # 
ToStripeParam InvoiceId # 
ToStripeParam Amount # 
ToStripeParam TrialPeriodDays # 
ToStripeParam IntervalCount # 
ToStripeParam DurationInMonths # 
ToStripeParam RedeemBy # 
ToStripeParam PercentOff # 
ToStripeParam MaxRedemptions # 
ToStripeParam AmountOff # 
ToStripeParam CouponId # 
ToStripeParam Duration # 
ToStripeParam Interval # 
ToStripeParam TrialEnd # 
ToStripeParam PlanId # 
ToStripeParam TaxPercent # 
ToStripeParam SubscriptionId # 
ToStripeParam DefaultCard # 
ToStripeParam NewCard # 
ToStripeParam IsVerified # 
ToStripeParam AddressZip # 
ToStripeParam AddressState # 
ToStripeParam AddressLine2 # 
ToStripeParam AddressLine1 # 
ToStripeParam AddressCountry # 
ToStripeParam AddressCity # 
ToStripeParam CVC # 
ToStripeParam ExpYear # 
ToStripeParam ExpMonth # 
ToStripeParam CardNumber # 
ToStripeParam CardId # 
ToStripeParam AccountBalance # 
ToStripeParam CustomerId # 
ToStripeParam RefundReason # 
ToStripeParam RefundApplicationFee # 
ToStripeParam RefundId # 
ToStripeParam Capture # 
ToStripeParam StatementDescription # 
ToStripeParam ChargeId # 
ToStripeParam Date # 
ToStripeParam Created # 
ToStripeParam AvailableOn # 
ToStripeParam param => ToStripeParam (EndingBefore param) # 
ToStripeParam param => ToStripeParam (StartingAfter param) # 
ToStripeParam a => ToStripeParam (Source a) # 
ToStripeParam a => ToStripeParam (TimeRange a) # 
ToStripeParam (Param Text Text) # 

(-&-) :: StripeHasParam request param => StripeRequest request -> param -> StripeRequest request #

add an optional parameter to a StripeRequest

mkStripeRequest :: Method -> Text -> Params -> StripeRequest a #

HTTP Params

helper function for building a StripeRequest