Skip to content

scarf-sh/Stripe-Haskell-Library

This branch is 6 commits ahead of, 5 commits behind Haskell-OpenAPI-Code-Generator/Stripe-Haskell-Library:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

3b02e28 · Jan 30, 2024

History

40 Commits
May 29, 2020
Jun 26, 2022
Jan 29, 2024
Dec 8, 2021
May 15, 2020
Jan 10, 2022
Dec 8, 2021
Jan 30, 2024
Jan 29, 2024
Jan 30, 2024

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%