Safe Haskell | None |
---|---|
Language | Haskell2010 |
The API
Documentation
type StripeAuth = BasicAuth "Stripe API" () Source #
type StripeApi = "v1" :> StripeApiInternal Source #
type StripeApiInternal = ("customers" :> CustomerApi) :<|> (("products" :> ProductApi) :<|> (("prices" :> PriceApi) :<|> (("subscriptions" :> SubscriptionApi) :<|> (("checkout" :> ("sessions" :> CheckoutApi)) :<|> (("billing_portal" :> ("sessions" :> CustomerPortalApi)) :<|> ("events" :> EventApi)))))) Source #
type CustomerApi = (StripeAuth :> (ReqBody '[FormUrlEncoded] CustomerCreate :> Post '[JSON] Customer)) :<|> ((StripeAuth :> (Capture ":customer_id" CustomerId :> Get '[JSON] Customer)) :<|> ((StripeAuth :> (Capture ":customer_id" CustomerId :> (ReqBody '[FormUrlEncoded] CustomerUpdate :> Post '[JSON] Customer))) :<|> (StripeAuth :> (QueryParam "starting_after" CustomerId :> Get '[JSON] (StripeList Customer))))) Source #
type EventApi = (StripeAuth :> (Capture ":event_id" EventId :> Get '[JSON] Event)) :<|> (StripeAuth :> (QueryParam "starting_after" EventId :> Get '[JSON] (StripeList Event))) Source #
type ProductApi = (StripeAuth :> (ReqBody '[FormUrlEncoded] ProductCreate :> Post '[JSON] Product)) :<|> (StripeAuth :> (Capture ":product_id" ProductId :> Get '[JSON] Product)) Source #
type PriceApi = (StripeAuth :> (ReqBody '[FormUrlEncoded] PriceCreate :> Post '[JSON] Price)) :<|> ((StripeAuth :> (Capture ":product_id" PriceId :> Get '[JSON] Price)) :<|> (StripeAuth :> (QueryParam "lookup_keys[]" Text :> Get '[JSON] (StripeList Price)))) Source #
type SubscriptionApi = (StripeAuth :> (ReqBody '[FormUrlEncoded] SubscriptionCreate :> Post '[JSON] Subscription)) :<|> ((StripeAuth :> (Capture ":subscription_id" SubscriptionId :> Get '[JSON] Subscription)) :<|> (StripeAuth :> (QueryParam "customer" CustomerId :> Get '[JSON] (StripeList Subscription)))) Source #
type CheckoutApi = (StripeAuth :> (ReqBody '[FormUrlEncoded] CheckoutSessionCreate :> Post '[JSON] CheckoutSession)) :<|> (StripeAuth :> (Capture ":session_id" CheckoutSessionId :> Get '[JSON] CheckoutSession)) Source #
type CustomerPortalApi = StripeAuth :> (ReqBody '[FormUrlEncoded] CustomerPortalCreate :> Post '[JSON] CustomerPortal) Source #