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