Skip to content

scarf-sh/Stripe-Haskell-Library

 
 

Repository files navigation

Stripe-Haskell-Library

CircleCI

This code is auto-generated by Haskell-OpenAPI-Client-Code-Generator available on Hackage.

Generation

The files were auto-generated and formatted (with ormolu) with:

openapi3-code-generator-exe stripe-api.yml --force --property-type-suffix="'" --module-name "StripeAPI" --convert-to-camel-case --omit-additional-operation-functions --package-name "stripeapi"
for file in $(find src -name "*.hs"); do LC_ALL=C.UTF-8 ormolu -m inplace $file; done

How to use

See example/src/StripeHandling.hs for an example usage. The example can be run as follows (add your Stripe API key to example/src/StripeHandling.hs):

cd example
stack run --fast

Extra modules

There are a few hand-written modules which are currently:

  • StripeAPI.Types.NotificationEventData.Extra

As they are not reexported (to modify as little of the generated code as possible) you need to explicitly import them (see example/src/StripeHandling.hs for an example).

On the package level

From hackage

  • install cabal
  • cabal install stripeapi (This may take a while)

From source

See https://github.com/Haskell-OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator#example-package for an example project generated with the same code generator.

Hackage

This library is available at https://hackage.haskell.org/package/stripeapi.

About

Auto Generated Haskell Library for Stripe

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Haskell 100.0%