This code is auto-generated by Haskell-OpenAPI-Client-Code-Generator available on Hackage.
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
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
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).
- install cabal
cabal install stripeapi
(This may take a while)
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.
This library is available at https://hackage.haskell.org/package/stripeapi.