diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..3550a30 --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +use flake diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..7ccf13a --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,62 @@ +name: Release + +on: + push: + branches: main + workflow_dispatch: + +jobs: + tag: + runs-on: ubuntu-latest + env: + SHA: ${{ github.sha }} + GH_TOKEN: ${{ github.token }} + + steps: + - uses: actions/checkout@v4 + + - id: tag + name: Tag + run: | + TAG=$(/dev/null; then + echo "Tag $TAG exists already" + exit 0 + fi + + gh api '/repos/{owner}/{repo}/git/tags' \ + --method POST \ + --raw-field "tag=$TAG" \ + --raw-field "message=$TAG" \ + --raw-field "object=$SHA" \ + --raw-field "type=commit" + + gh api '/repos/{owner}/{repo}/git/refs' \ + --method POST \ + --raw-field "ref=refs/tags/$TAG" \ + --raw-field "sha=$SHA" + + echo "tag=$TAG" >>"$GITHUB_OUTPUT" + + release: + needs: tag + if: needs.tag.outputs.tag + runs-on: ubuntu-latest + env: + HACKAGE_KEY: ${{ secrets.HACKAGE_UPLOAD_API_KEY }} + + steps: + - uses: actions/checkout@v4 + + - name: "Build with Haddocks" + uses: freckle/stack-action@v5 + with: + test: false + stack-build-arguments: --haddock --haddock-for-hackage + + - name: "Release to Hackage" + run: stack --stack-yaml stack-lts20.yaml upload --pvp-bounds lower recurly-client + + - name: "Upload documentation" + run: stack upload --documentation recurly-client diff --git a/.gitignore b/.gitignore index 06dae82..fda386a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ .stack-work *.hie .hiedb +stack-*.lock +stack.*.lock +.direnv diff --git a/Justfile b/Justfile index 896940c..553c586 100755 --- a/Justfile +++ b/Justfile @@ -1,39 +1,57 @@ +set shell := ["bash", "-uc"] + # Delete all generated code and re-regenerate it all anew -regenerate: clean fetch convert-to-json generate-haskell-code fix-nulls format-generated-code set-package-version +regenerate: clean fetch convert-to-json generate-haskell-code fix-nulls format-generated-code patch-cabal-file # Delete all generated code clean: - #!/usr/bin/env bash - rm -rf spec.json spec.yaml recurly-client + rm -rf spec.json spec.yaml recurly-client/src recurly-client/*.cabal # Download the OpenAPI spec fetch: - #!/usr/bin/env bash curl --fail https://recurly.com/developers/api/spec/v2021-02-25.yaml -o spec.yaml # Convert the downloaded OpenAPI spec to JSON convert-to-json: - #!/usr/bin/env -S nix shell nixpkgs#yq --command bash yq '.' spec.yaml > spec.json # Use openapi3-code-generator to generate Haskell code generate-haskell-code: - #!/usr/bin/env -S nix shell --accept-flake-config 'github:freckle/flakes?dir=main#haskell-openapi3-code-generator-default' --command bash openapi3-code-generator-exe --configuration generator-config.yaml # Replace .:! with .:? to change Null to Nothing fix-nulls: - #!/usr/bin/env -S nix shell nixpkgs#perl --command bash find recurly-client/src -type f -iname "*.hs" -exec \ perl -p -i -e 's/Data\.Aeson\.Types\.FromJSON\.\.:!/Data.Aeson.Types.FromJSON..:?/g' {} \; # Run fourmolu on the generated Haskell code format-generated-code: - #!/usr/bin/env -S nix shell --accept-flake-config 'github:freckle/flakes?dir=main#fourmolu-default' --command bash fourmolu -i recurly-client/src --unsafe -# Use version.txt as the version in the .cabal file -set-package-version: - #!/usr/bin/env bash - VERSION=$(cat version.txt) - perl -p -i -e "s/^(version: *).*$/\${1}${VERSION}/" recurly-client/recurly-client.cabal +patch-cabal-file: + grep -v "^version:" recurly-client/recurly-client.cabal \ + > recurly-client/recurly-client.cabal.tmp.1 + + # First line contains cabal-version + head -n1 recurly-client/recurly-client.cabal.tmp.1 \ + > recurly-client/recurly-client.cabal.tmp.2 + + # Set version + echo -n "version: " >> recurly-client/recurly-client.cabal.tmp.2 + cat ./version.txt >> recurly-client/recurly-client.cabal.tmp.2 + + # Add extra top-level fields + cat ./cabal-fields.txt >> recurly-client/recurly-client.cabal.tmp.2 + + # Copy the rest + tail -n +2 recurly-client/recurly-client.cabal.tmp.1 \ + >> recurly-client/recurly-client.cabal.tmp.2 + + # Replace the original + mv -f recurly-client/recurly-client.cabal.tmp.2 recurly-client/recurly-client.cabal + + # Clean up temporarily files + rm recurly-client/recurly-client.cabal.tmp.* + + # Clean up cabal file + cabal-fmt -i recurly-client/recurly-client.cabal diff --git a/cabal-fields.txt b/cabal-fields.txt new file mode 100644 index 0000000..b0a67bc --- /dev/null +++ b/cabal-fields.txt @@ -0,0 +1,4 @@ +category: Client, Payments +homepage: https://github.com/freckle/recurly-client +license-file: LICENSE +license: MIT diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..4cb23ed --- /dev/null +++ b/flake.lock @@ -0,0 +1,554 @@ +{ + "nodes": { + "autodocodec": { + "flake": false, + "locked": { + "lastModified": 1722952210, + "narHash": "sha256-+vz0En2dkS0nfOq12QAJtV6GcdP0WoDv7HwzrMIsnGo=", + "owner": "NorfairKing", + "repo": "autodocodec", + "rev": "ac36615cb344ec43259fb65cafe3e55308ce4662", + "type": "github" + }, + "original": { + "owner": "NorfairKing", + "repo": "autodocodec", + "type": "github" + } + }, + "flake-compat": { + "flake": false, + "locked": { + "lastModified": 1696426674, + "narHash": "sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U=", + "owner": "edolstra", + "repo": "flake-compat", + "rev": "0f9255e01c2351cc7d116c072cb317785dd33b33", + "type": "github" + }, + "original": { + "owner": "edolstra", + "repo": "flake-compat", + "type": "github" + } + }, + "flake-utils": { + "inputs": { + "systems": "systems" + }, + "locked": { + "lastModified": 1731533236, + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "flake-utils_2": { + "inputs": { + "systems": "systems_2" + }, + "locked": { + "lastModified": 1731533236, + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "flake-utils_3": { + "inputs": { + "systems": "systems_3" + }, + "locked": { + "lastModified": 1710146030, + "narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "freckle": { + "inputs": { + "flake-utils": "flake-utils_2", + "haskell-openapi-code-generator": "haskell-openapi-code-generator", + "nix-github-actions": "nix-github-actions", + "nixpkgs-22-11": "nixpkgs-22-11", + "nixpkgs-23-05": "nixpkgs-23-05", + "nixpkgs-23-11": "nixpkgs-23-11", + "nixpkgs-24-05": "nixpkgs-24-05", + "nixpkgs-24-11": "nixpkgs-24-11", + "nixpkgs-haskell-updates": "nixpkgs-haskell-updates", + "nixpkgs-stable": "nixpkgs-stable_2", + "stack-lint-extra-deps": "stack-lint-extra-deps" + }, + "locked": { + "dir": "main", + "lastModified": 1735950410, + "narHash": "sha256-gDZiLzvhIh5lK7SiSQbXBs+z9mchpwoFFGMwcoxBJYk=", + "ref": "refs/heads/main", + "rev": "a74589ecb93296229dd6a6206f157a6bc73e6883", + "revCount": 122, + "type": "git", + "url": "ssh://git@github.com/freckle/flakes?dir=main" + }, + "original": { + "dir": "main", + "type": "git", + "url": "ssh://git@github.com/freckle/flakes?dir=main" + } + }, + "gitignore": { + "inputs": { + "nixpkgs": [ + "freckle", + "haskell-openapi-code-generator", + "pre-commit-hooks", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1709087332, + "narHash": "sha256-HG2cCnktfHsKV0s4XW83gU3F57gaTljL9KNSuG6bnQs=", + "owner": "hercules-ci", + "repo": "gitignore.nix", + "rev": "637db329424fd7e46cf4185293b9cc8c88c95394", + "type": "github" + }, + "original": { + "owner": "hercules-ci", + "repo": "gitignore.nix", + "type": "github" + } + }, + "haskell-openapi-code-generator": { + "inputs": { + "autodocodec": "autodocodec", + "flake-utils": "flake-utils_3", + "nixpkgs": "nixpkgs", + "pre-commit-hooks": "pre-commit-hooks", + "safe-coloured-text": "safe-coloured-text", + "sydtest": "sydtest", + "validity": "validity" + }, + "locked": { + "lastModified": 1731515792, + "narHash": "sha256-EoU807Pqii6hnLvXIu8G2fDOyKLBrOSesXsEEh3YoZQ=", + "owner": "Haskell-OpenAPI-Code-Generator", + "repo": "Haskell-OpenAPI-Client-Code-Generator", + "rev": "0eb15be1a8ae9c311e727e300e7564bf2eb7096f", + "type": "github" + }, + "original": { + "owner": "Haskell-OpenAPI-Code-Generator", + "repo": "Haskell-OpenAPI-Client-Code-Generator", + "type": "github" + } + }, + "nix-github-actions": { + "inputs": { + "nixpkgs": [ + "freckle", + "nixpkgs-stable" + ] + }, + "locked": { + "lastModified": 1731952509, + "narHash": "sha256-p4gB3Rhw8R6Ak4eMl8pqjCPOLCZRqaehZxdZ/mbFClM=", + "owner": "nix-community", + "repo": "nix-github-actions", + "rev": "7b5f051df789b6b20d259924d349a9ba3319b226", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "nix-github-actions", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1722987190, + "narHash": "sha256-68hmex5efCiM2aZlAAEcQgmFI4ZwWt8a80vOeB/5w3A=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "21cc704b5e918c5fbf4f9fff22b4ac2681706d90", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-24.05", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs-22-11": { + "locked": { + "lastModified": 1688392541, + "narHash": "sha256-lHrKvEkCPTUO+7tPfjIcb7Trk6k31rz18vkyqmkeJfY=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "ea4c80b39be4c09702b0cb3b42eab59e2ba4f24b", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-22.11", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs-23-05": { + "locked": { + "lastModified": 1704290814, + "narHash": "sha256-LWvKHp7kGxk/GEtlrGYV68qIvPHkU9iToomNFGagixU=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "70bdadeb94ffc8806c0570eb5c2695ad29f0e421", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-23.05", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs-23-11": { + "locked": { + "lastModified": 1720535198, + "narHash": "sha256-zwVvxrdIzralnSbcpghA92tWu2DV2lwv89xZc8MTrbg=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "205fd4226592cc83fd4c0885a3e4c9c400efabb5", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-23.11", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs-24-05": { + "locked": { + "lastModified": 1735563628, + "narHash": "sha256-OnSAY7XDSx7CtDoqNh8jwVwh4xNL/2HaJxGjryLWzX8=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "b134951a4c9f3c995fd7be05f3243f8ecd65d798", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-24.05", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs-24-11": { + "locked": { + "lastModified": 1735669367, + "narHash": "sha256-tfYRbFhMOnYaM4ippqqid3BaLOXoFNdImrfBfCp4zn0=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "edf04b75c13c2ac0e54df5ec5c543e300f76f1c9", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-24.11", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs-haskell-updates": { + "locked": { + "lastModified": 1735908276, + "narHash": "sha256-U19gzGJFlGtyNonhg3jhhamQUex5ri3MgR1QKz6w/qg=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "d3780c92e64472e8f9aa54f7bbb0dd4483b98303", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "haskell-updates", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs-stable": { + "locked": { + "lastModified": 1720386169, + "narHash": "sha256-NGKVY4PjzwAa4upkGtAMz1npHGoRzWotlSnVlqI40mo=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "194846768975b7ad2c4988bdb82572c00222c0d7", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-24.05", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs-stable_2": { + "locked": { + "lastModified": 1730883749, + "narHash": "sha256-mwrFF0vElHJP8X3pFCByJR365Q2463ATp2qGIrDUdlE=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "dba414932936fde69f0606b4f1d87c5bc0003ede", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-24.05", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs_2": { + "locked": { + "lastModified": 1719082008, + "narHash": "sha256-jHJSUH619zBQ6WdC21fFAlDxHErKVDJ5fpN0Hgx4sjs=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "9693852a2070b398ee123a329e68f0dab5526681", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixpkgs-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs_3": { + "locked": { + "lastModified": 1733756863, + "narHash": "sha256-gbivEqdl62NnnESKvRiUR+GRhCGrf1mUoNtGl/yYu4k=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "06886d32c517d0e199c0e6d345d54673acc55453", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "haskell-updates", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs_4": { + "locked": { + "lastModified": 1736200483, + "narHash": "sha256-JO+lFN2HsCwSLMUWXHeOad6QUxOuwe9UOAF/iSl1J4I=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "3f0a8ac25fb674611b98089ca3a5dd6480175751", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-24.11", + "repo": "nixpkgs", + "type": "github" + } + }, + "pgp-wordlist": { + "flake": false, + "locked": { + "lastModified": 1714149562, + "narHash": "sha256-WCFQgtWqq+gLst4lXkFYlmlW7L8PQOJfChsKMApy3Ng=", + "owner": "quchen", + "repo": "pgp-wordlist", + "rev": "1f0cfd90d62179952cbfd59c3405283a1d364272", + "type": "github" + }, + "original": { + "owner": "quchen", + "repo": "pgp-wordlist", + "type": "github" + } + }, + "pre-commit-hooks": { + "inputs": { + "flake-compat": "flake-compat", + "gitignore": "gitignore", + "nixpkgs": "nixpkgs_2", + "nixpkgs-stable": "nixpkgs-stable" + }, + "locked": { + "lastModified": 1723202784, + "narHash": "sha256-qbhjc/NEGaDbyy0ucycubq4N3//gDFFH3DOmp1D3u1Q=", + "owner": "cachix", + "repo": "pre-commit-hooks.nix", + "rev": "c7012d0c18567c889b948781bc74a501e92275d1", + "type": "github" + }, + "original": { + "owner": "cachix", + "repo": "pre-commit-hooks.nix", + "type": "github" + } + }, + "root": { + "inputs": { + "flake-utils": "flake-utils", + "freckle": "freckle", + "nixpkgs": "nixpkgs_4" + } + }, + "safe-coloured-text": { + "flake": false, + "locked": { + "lastModified": 1722709522, + "narHash": "sha256-zglWqKISYz34A+/PvqwvwrbQYSEcko8C595VAeINitw=", + "owner": "NorfairKing", + "repo": "safe-coloured-text", + "rev": "046f10147a058c00c2706d98c341219e3cbc7669", + "type": "github" + }, + "original": { + "owner": "NorfairKing", + "repo": "safe-coloured-text", + "type": "github" + } + }, + "stack-lint-extra-deps": { + "inputs": { + "nixpkgs": "nixpkgs_3", + "pgp-wordlist": "pgp-wordlist", + "stacklock2nix": "stacklock2nix" + }, + "locked": { + "lastModified": 1734039705, + "narHash": "sha256-fM6/erR1M+QA0XJ09IrncP4e+HbKkkVNBPuzcFirYY0=", + "owner": "freckle", + "repo": "stack-lint-extra-deps", + "rev": "a5a2596ad473fb330b6fa3b89e28f3f1254df0d6", + "type": "github" + }, + "original": { + "owner": "freckle", + "repo": "stack-lint-extra-deps", + "type": "github" + } + }, + "stacklock2nix": { + "locked": { + "lastModified": 1731366632, + "narHash": "sha256-dd10Hyqbyhg83pgxE8Sl1jo9wdYzTU4muH83TjhyrCY=", + "owner": "cdepillabout", + "repo": "stacklock2nix", + "rev": "3cb77e9c869be90ad939f368096ff2cc940881d4", + "type": "github" + }, + "original": { + "owner": "cdepillabout", + "repo": "stacklock2nix", + "type": "github" + } + }, + "sydtest": { + "flake": false, + "locked": { + "lastModified": 1722766036, + "narHash": "sha256-i7N8HKkFPUfnOOmj47Di/XnQS66mUzTG6HISUccNhOA=", + "owner": "NorfairKing", + "repo": "sydtest", + "rev": "23baea50a08857baf3121fc55096c40a93ff5f17", + "type": "github" + }, + "original": { + "owner": "NorfairKing", + "repo": "sydtest", + "type": "github" + } + }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + }, + "systems_2": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + }, + "systems_3": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + }, + "validity": { + "flake": false, + "locked": { + "lastModified": 1722943924, + "narHash": "sha256-hq5FwDFW+02u5Qsx8v1KWoQUsY6S6ufI4WYKZ6yhYUA=", + "owner": "NorfairKing", + "repo": "validity", + "rev": "51b8843b9bd5228160b99f653d3271147245d689", + "type": "github" + }, + "original": { + "owner": "NorfairKing", + "repo": "validity", + "type": "github" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..6c3ad03 --- /dev/null +++ b/flake.nix @@ -0,0 +1,52 @@ +{ + inputs = { + nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11"; + freckle.url = "git+ssh://git@github.com/freckle/flakes?dir=main"; + flake-utils.url = "github:numtide/flake-utils"; + }; + outputs = + inputs: + inputs.flake-utils.lib.eachDefaultSystem ( + system: + let + nixpkgs = inputs.nixpkgs.legacyPackages.${system}; + freckle = inputs.freckle.packages.${system}; + freckleLib = inputs.freckle.lib.${system}; + + in + rec { + packages = { + cabal-fmt = nixpkgs.haskellPackages.cabal-fmt; + fourmolu = freckle.fourmolu-0-13-x; + ghc = freckleLib.haskellBundle { + ghcVersion = "ghc-9-8-4"; + }; + openapi3-code-generator = freckle.haskell-openapi3-code-generator-default; + perl = nixpkgs.perl; + yq = nixpkgs.yq; + }; + + devShells.default = nixpkgs.mkShell { + buildInputs = with (nixpkgs); [ + pcre + pcre.dev + zlib + zlib.dev + ]; + + nativeBuildInputs = with (packages); [ + cabal-fmt + fourmolu + ghc + openapi3-code-generator + perl + yq + ]; + + shellHook = '' + export STACK_YAML=stack-lts23.yaml + ''; + }; + } + ); +} diff --git a/recurly-client/LICENSE b/recurly-client/LICENSE new file mode 100644 index 0000000..5e37c42 --- /dev/null +++ b/recurly-client/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2025 Haskell-OpenAPI-Code-Generator + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/recurly-client/recurly-client.cabal b/recurly-client/recurly-client.cabal index 29bd52c..df85e46 100644 --- a/recurly-client/recurly-client.cabal +++ b/recurly-client/recurly-client.cabal @@ -1,400 +1,404 @@ cabal-version: 1.12 - -name: recurly-client -version: 0.0.0.1 -build-type: Simple +version: 0.0.0.1 +category: Client, Payments +homepage: https://github.com/freckle/recurly-client +license-file: LICENSE +license: MIT +name: recurly-client +build-type: Simple library exposed-modules: - RecurlyClient - RecurlyClient.Operations.List_accounts - RecurlyClient.Operations.Create_account - RecurlyClient.Operations.Get_account - RecurlyClient.Operations.Update_account - RecurlyClient.Operations.Deactivate_account - RecurlyClient.Operations.List_child_accounts - RecurlyClient.Operations.Get_account_acquisition - RecurlyClient.Operations.Update_account_acquisition - RecurlyClient.Operations.Remove_account_acquisition - RecurlyClient.Operations.Get_account_balance - RecurlyClient.Operations.Get_billing_info - RecurlyClient.Operations.Update_billing_info - RecurlyClient.Operations.Remove_billing_info - RecurlyClient.Operations.Verify_billing_info - RecurlyClient.Operations.Verify_billing_info_cvv - RecurlyClient.Operations.List_billing_infos - RecurlyClient.Operations.Create_billing_info - RecurlyClient.Operations.Get_a_billing_info - RecurlyClient.Operations.Update_a_billing_info - RecurlyClient.Operations.Remove_a_billing_info - RecurlyClient.Operations.List_account_coupon_redemptions - RecurlyClient.Operations.List_active_coupon_redemptions - RecurlyClient.Operations.Create_coupon_redemption - RecurlyClient.Operations.Remove_coupon_redemption - RecurlyClient.Operations.List_account_credit_payments - RecurlyClient.Operations.List_entitlements - RecurlyClient.Operations.List_account_external_account - RecurlyClient.Operations.Create_account_external_account - RecurlyClient.Operations.Get_account_external_account - RecurlyClient.Operations.Update_account_external_account - RecurlyClient.Operations.Delete_account_external_account - RecurlyClient.Operations.List_account_external_invoices - RecurlyClient.Operations.List_account_external_subscriptions - RecurlyClient.Operations.List_account_invoices - RecurlyClient.Operations.Create_invoice - RecurlyClient.Operations.Preview_invoice - RecurlyClient.Operations.List_account_line_items - RecurlyClient.Operations.Create_line_item - RecurlyClient.Operations.List_account_notes - RecurlyClient.Operations.Get_account_note - RecurlyClient.Operations.Reactivate_account - RecurlyClient.Operations.List_shipping_addresses - RecurlyClient.Operations.Create_shipping_address - RecurlyClient.Operations.Get_shipping_address - RecurlyClient.Operations.Update_shipping_address - RecurlyClient.Operations.Remove_shipping_address - RecurlyClient.Operations.List_account_subscriptions - RecurlyClient.Operations.List_account_transactions - RecurlyClient.Operations.List_account_acquisition - RecurlyClient.Operations.List_add_ons - RecurlyClient.Operations.Get_add_on - RecurlyClient.Operations.List_business_entities - RecurlyClient.Operations.Get_business_entity - RecurlyClient.Operations.List_business_entity_invoices - RecurlyClient.Operations.List_coupons - RecurlyClient.Operations.Create_coupon - RecurlyClient.Operations.Get_coupon - RecurlyClient.Operations.Update_coupon - RecurlyClient.Operations.Deactivate_coupon - RecurlyClient.Operations.Generate_unique_coupon_codes - RecurlyClient.Operations.Restore_coupon - RecurlyClient.Operations.List_unique_coupon_codes - RecurlyClient.Operations.List_credit_payments - RecurlyClient.Operations.Get_credit_payment - RecurlyClient.Operations.List_custom_field_definitions - RecurlyClient.Operations.Get_custom_field_definition - RecurlyClient.Operations.List_dunning_campaigns - RecurlyClient.Operations.Get_dunning_campaign - RecurlyClient.Operations.Put_dunning_campaign_bulk_update - RecurlyClient.Operations.Get_export_dates - RecurlyClient.Operations.Get_export_files - RecurlyClient.Operations.List_external_invoices - RecurlyClient.Operations.Show_external_invoice - RecurlyClient.Operations.List_external_products - RecurlyClient.Operations.Create_external_product - RecurlyClient.Operations.Get_external_product - RecurlyClient.Operations.Update_external_product - RecurlyClient.Operations.Deactivate_external_products - RecurlyClient.Operations.List_external_product_external_product_references - RecurlyClient.Operations.Create_external_product_external_product_reference - RecurlyClient.Operations.Get_external_product_external_product_reference - RecurlyClient.Operations.Deactivate_external_product_external_product_reference - RecurlyClient.Operations.List_external_subscriptions - RecurlyClient.Operations.Get_external_subscription - RecurlyClient.Operations.List_external_subscription_external_invoices - RecurlyClient.Operations.List_external_subscription_external_payment_phases - RecurlyClient.Operations.Get_external_subscription_external_payment_phase - RecurlyClient.Operations.List_general_ledger_accounts - RecurlyClient.Operations.Create_general_ledger_account - RecurlyClient.Operations.Get_general_ledger_account - RecurlyClient.Operations.Update_general_ledger_account - RecurlyClient.Operations.List_gift_cards - RecurlyClient.Operations.Create_gift_card - RecurlyClient.Operations.Preview_gift_card - RecurlyClient.Operations.Get_gift_card - RecurlyClient.Operations.Redeem_gift_card - RecurlyClient.Operations.List_invoice_templates - RecurlyClient.Operations.Get_invoice_template - RecurlyClient.Operations.List_invoice_template_accounts - RecurlyClient.Operations.List_invoices - RecurlyClient.Operations.Get_invoice - RecurlyClient.Operations.Update_invoice - RecurlyClient.Operations.Get_invoice_pdf - RecurlyClient.Operations.Apply_credit_balance - RecurlyClient.Operations.Collect_invoice - RecurlyClient.Operations.List_invoice_coupon_redemptions - RecurlyClient.Operations.List_invoice_line_items - RecurlyClient.Operations.Mark_invoice_failed - RecurlyClient.Operations.Mark_invoice_successful - RecurlyClient.Operations.Refund_invoice - RecurlyClient.Operations.List_related_invoices - RecurlyClient.Operations.Reopen_invoice - RecurlyClient.Operations.Record_external_transaction - RecurlyClient.Operations.Void_invoice - RecurlyClient.Operations.List_items - RecurlyClient.Operations.Create_item - RecurlyClient.Operations.Get_item - RecurlyClient.Operations.Update_item - RecurlyClient.Operations.Deactivate_item - RecurlyClient.Operations.Reactivate_item - RecurlyClient.Operations.List_line_items - RecurlyClient.Operations.Get_line_item - RecurlyClient.Operations.Remove_line_item - RecurlyClient.Operations.List_measured_unit - RecurlyClient.Operations.Create_measured_unit - RecurlyClient.Operations.Get_measured_unit - RecurlyClient.Operations.Update_measured_unit - RecurlyClient.Operations.Remove_measured_unit - RecurlyClient.Operations.Get_performance_obligations - RecurlyClient.Operations.Get_performance_obligation - RecurlyClient.Operations.List_plans - RecurlyClient.Operations.Create_plan - RecurlyClient.Operations.Get_plan - RecurlyClient.Operations.Update_plan - RecurlyClient.Operations.Remove_plan - RecurlyClient.Operations.List_plan_add_ons - RecurlyClient.Operations.Create_plan_add_on - RecurlyClient.Operations.Get_plan_add_on - RecurlyClient.Operations.Update_plan_add_on - RecurlyClient.Operations.Remove_plan_add_on - RecurlyClient.Operations.Create_purchase - RecurlyClient.Operations.Create_authorize_purchase - RecurlyClient.Operations.Create_pending_purchase - RecurlyClient.Operations.Preview_purchase - RecurlyClient.Operations.CancelPurchase - RecurlyClient.Operations.Create_capture_purchase - RecurlyClient.Operations.List_shipping_methods - RecurlyClient.Operations.Create_shipping_method - RecurlyClient.Operations.Get_shipping_method - RecurlyClient.Operations.Update_shipping_method - RecurlyClient.Operations.Deactivate_shipping_method - RecurlyClient.Operations.List_sites - RecurlyClient.Operations.Get_site - RecurlyClient.Operations.List_subscriptions - RecurlyClient.Operations.Create_subscription - RecurlyClient.Operations.Get_subscription - RecurlyClient.Operations.Update_subscription - RecurlyClient.Operations.Terminate_subscription - RecurlyClient.Operations.List_usage - RecurlyClient.Operations.Create_usage - RecurlyClient.Operations.Cancel_subscription - RecurlyClient.Operations.Get_subscription_change - RecurlyClient.Operations.Create_subscription_change - RecurlyClient.Operations.Remove_subscription_change - RecurlyClient.Operations.Preview_subscription_change - RecurlyClient.Operations.Convert_trial - RecurlyClient.Operations.List_subscription_coupon_redemptions - RecurlyClient.Operations.List_subscription_invoices - RecurlyClient.Operations.List_subscription_line_items - RecurlyClient.Operations.Pause_subscription - RecurlyClient.Operations.Get_preview_renewal - RecurlyClient.Operations.Reactivate_subscription - RecurlyClient.Operations.Resume_subscription - RecurlyClient.Operations.List_transactions - RecurlyClient.Operations.Get_transaction - RecurlyClient.Operations.Get_unique_coupon_code - RecurlyClient.Operations.Deactivate_unique_coupon_code - RecurlyClient.Operations.Reactivate_unique_coupon_code - RecurlyClient.Operations.Get_usage - RecurlyClient.Operations.Update_usage - RecurlyClient.Operations.Remove_usage - RecurlyClient.Types - RecurlyClient.TypeAlias - RecurlyClient.Types.Account - RecurlyClient.Types.AccountAcquisition - RecurlyClient.Types.AccountAcquisitionList - RecurlyClient.Types.AccountAcquisitionReadOnly - RecurlyClient.Types.AccountAcquisitionUpdate - RecurlyClient.Types.AccountBalance - RecurlyClient.Types.AccountBalanceAmount - RecurlyClient.Types.AccountCreate - RecurlyClient.Types.AccountList - RecurlyClient.Types.AccountMini - RecurlyClient.Types.AccountNote - RecurlyClient.Types.AccountNoteList - RecurlyClient.Types.AccountPurchase - RecurlyClient.Types.AccountReadOnly - RecurlyClient.Types.AccountReference - RecurlyClient.Types.AccountResponse - RecurlyClient.Types.AccountUpdate - RecurlyClient.Types.AddOn - RecurlyClient.Types.AddOnCreate - RecurlyClient.Types.AddOnList - RecurlyClient.Types.AddOnMini - RecurlyClient.Types.AddOnPricing - RecurlyClient.Types.AddOnUpdate - RecurlyClient.Types.Address - RecurlyClient.Types.AddressWithName - RecurlyClient.Types.BillingInfo - RecurlyClient.Types.BillingInfoCreate - RecurlyClient.Types.BillingInfoList - RecurlyClient.Types.BillingInfoVerify - RecurlyClient.Types.BillingInfoVerifyCVV - RecurlyClient.Types.BusinessEntity - RecurlyClient.Types.BusinessEntityList - RecurlyClient.Types.Coupon - RecurlyClient.Types.CouponBulkCreate - RecurlyClient.Types.CouponCreate - RecurlyClient.Types.CouponDiscount - RecurlyClient.Types.CouponDiscountPricing - RecurlyClient.Types.CouponList - RecurlyClient.Types.CouponMini - RecurlyClient.Types.CouponPricing - RecurlyClient.Types.CouponRedemption - RecurlyClient.Types.CouponRedemptionCreate - RecurlyClient.Types.CouponRedemptionList - RecurlyClient.Types.CouponRedemptionMini - RecurlyClient.Types.CouponUpdate - RecurlyClient.Types.CreditPayment - RecurlyClient.Types.CreditPaymentList - RecurlyClient.Types.CustomField - RecurlyClient.Types.CustomFieldDefinition - RecurlyClient.Types.CustomFieldDefinitionList - RecurlyClient.Types.CustomerPermission - RecurlyClient.Types.DunningCampaign - RecurlyClient.Types.DunningCampaignList - RecurlyClient.Types.DunningCampaignsBulkUpdate - RecurlyClient.Types.DunningCampaignsBulkUpdateResponse - RecurlyClient.Types.DunningCycle - RecurlyClient.Types.DunningInterval - RecurlyClient.Types.Entitlement - RecurlyClient.Types.Entitlements - RecurlyClient.Types.Error - RecurlyClient.Types.ErrorMayHaveTransaction - RecurlyClient.Types.ExportDates - RecurlyClient.Types.ExportFile - RecurlyClient.Types.ExportFiles - RecurlyClient.Types.ExternalAccount - RecurlyClient.Types.ExternalAccountCreate - RecurlyClient.Types.ExternalAccountList - RecurlyClient.Types.ExternalAccountUpdate - RecurlyClient.Types.ExternalCharge - RecurlyClient.Types.ExternalInvoice - RecurlyClient.Types.ExternalInvoiceList - RecurlyClient.Types.ExternalPaymentPhase - RecurlyClient.Types.ExternalPaymentPhaseList - RecurlyClient.Types.ExternalProduct - RecurlyClient.Types.ExternalProductCreate - RecurlyClient.Types.ExternalProductList - RecurlyClient.Types.ExternalProductReferenceBase - RecurlyClient.Types.ExternalProductReferenceCollection - RecurlyClient.Types.ExternalProductReferenceCreate - RecurlyClient.Types.ExternalProductReferenceMini - RecurlyClient.Types.ExternalProductUpdate - RecurlyClient.Types.ExternalSubscription - RecurlyClient.Types.ExternalSubscriptionList - RecurlyClient.Types.ExternalTransaction - RecurlyClient.Types.FraudRiskRule - RecurlyClient.Types.GeneralLedgerAccount - RecurlyClient.Types.GeneralLedgerAccountCreate - RecurlyClient.Types.GeneralLedgerAccountList - RecurlyClient.Types.GeneralLedgerAccountUpdate - RecurlyClient.Types.GiftCard - RecurlyClient.Types.GiftCardCreate - RecurlyClient.Types.GiftCardDelivery - RecurlyClient.Types.GiftCardDeliveryCreate - RecurlyClient.Types.GiftCardList - RecurlyClient.Types.GiftCardRedeem - RecurlyClient.Types.GrantedBy - RecurlyClient.Types.Invoice - RecurlyClient.Types.InvoiceAddress - RecurlyClient.Types.InvoiceCollect - RecurlyClient.Types.InvoiceCollection - RecurlyClient.Types.InvoiceCreate - RecurlyClient.Types.InvoiceList - RecurlyClient.Types.InvoiceMini - RecurlyClient.Types.InvoiceRefund - RecurlyClient.Types.InvoiceTemplate - RecurlyClient.Types.InvoiceTemplateList - RecurlyClient.Types.InvoiceUpdate - RecurlyClient.Types.Item - RecurlyClient.Types.ItemCreate - RecurlyClient.Types.ItemList - RecurlyClient.Types.ItemMini - RecurlyClient.Types.ItemUpdate - RecurlyClient.Types.LineItem - RecurlyClient.Types.LineItemCreate - RecurlyClient.Types.LineItemList - RecurlyClient.Types.LineItemRefund - RecurlyClient.Types.MeasuredUnit - RecurlyClient.Types.MeasuredUnitCreate - RecurlyClient.Types.MeasuredUnitList - RecurlyClient.Types.MeasuredUnitUpdate - RecurlyClient.Types.PaymentMethod - RecurlyClient.Types.PercentageTier - RecurlyClient.Types.PercentageTiersByCurrency - RecurlyClient.Types.PerformanceObligation - RecurlyClient.Types.PerformanceObligationList - RecurlyClient.Types.Plan - RecurlyClient.Types.PlanCreate - RecurlyClient.Types.PlanHostedPages - RecurlyClient.Types.PlanList - RecurlyClient.Types.PlanMini - RecurlyClient.Types.PlanPricing - RecurlyClient.Types.PlanRampInterval - RecurlyClient.Types.PlanRampPricing - RecurlyClient.Types.PlanUpdate - RecurlyClient.Types.Pricing - RecurlyClient.Types.ProrationSettings - RecurlyClient.Types.PurchaseCreate - RecurlyClient.Types.Settings - RecurlyClient.Types.ShippingAddress - RecurlyClient.Types.ShippingAddressCreate - RecurlyClient.Types.ShippingAddressList - RecurlyClient.Types.ShippingAddressUpdate - RecurlyClient.Types.ShippingFeeCreate - RecurlyClient.Types.ShippingMethod - RecurlyClient.Types.ShippingMethodCreate - RecurlyClient.Types.ShippingMethodList - RecurlyClient.Types.ShippingMethodMini - RecurlyClient.Types.ShippingMethodUpdate - RecurlyClient.Types.Site - RecurlyClient.Types.SiteList - RecurlyClient.Types.Subscription - RecurlyClient.Types.SubscriptionAddOn - RecurlyClient.Types.SubscriptionAddOnCreate - RecurlyClient.Types.SubscriptionAddOnPercentageTier - RecurlyClient.Types.SubscriptionAddOnTier - RecurlyClient.Types.SubscriptionAddOnUpdate - RecurlyClient.Types.SubscriptionCancel - RecurlyClient.Types.SubscriptionChange - RecurlyClient.Types.SubscriptionChangeBillingInfo - RecurlyClient.Types.SubscriptionChangeBillingInfoCreate - RecurlyClient.Types.SubscriptionChangeCreate - RecurlyClient.Types.SubscriptionChangeShippingCreate - RecurlyClient.Types.SubscriptionCreate - RecurlyClient.Types.SubscriptionList - RecurlyClient.Types.SubscriptionPause - RecurlyClient.Types.SubscriptionPurchase - RecurlyClient.Types.SubscriptionRampInterval - RecurlyClient.Types.SubscriptionRampIntervalResponse - RecurlyClient.Types.SubscriptionShipping - RecurlyClient.Types.SubscriptionShippingCreate - RecurlyClient.Types.SubscriptionShippingPurchase - RecurlyClient.Types.SubscriptionShippingUpdate - RecurlyClient.Types.SubscriptionUpdate - RecurlyClient.Types.TaxDetail - RecurlyClient.Types.TaxInfo - RecurlyClient.Types.Tier - RecurlyClient.Types.TierPricing - RecurlyClient.Types.Transaction - RecurlyClient.Types.TransactionFraudInfo - RecurlyClient.Types.TransactionList - RecurlyClient.Types.UniqueCouponCode - RecurlyClient.Types.UniqueCouponCodeList - RecurlyClient.Types.UniqueCouponCodeParams - RecurlyClient.Types.Usage - RecurlyClient.Types.UsageCreate - RecurlyClient.Types.UsageList - RecurlyClient.Types.User - RecurlyClient.Configuration - RecurlyClient.SecuritySchemes - RecurlyClient.Common - hs-source-dirs: - src + RecurlyClient + RecurlyClient.Common + RecurlyClient.Configuration + RecurlyClient.Operations.Apply_credit_balance + RecurlyClient.Operations.Cancel_subscription + RecurlyClient.Operations.CancelPurchase + RecurlyClient.Operations.Collect_invoice + RecurlyClient.Operations.Convert_trial + RecurlyClient.Operations.Create_account + RecurlyClient.Operations.Create_account_external_account + RecurlyClient.Operations.Create_authorize_purchase + RecurlyClient.Operations.Create_billing_info + RecurlyClient.Operations.Create_capture_purchase + RecurlyClient.Operations.Create_coupon + RecurlyClient.Operations.Create_coupon_redemption + RecurlyClient.Operations.Create_external_product + RecurlyClient.Operations.Create_external_product_external_product_reference + RecurlyClient.Operations.Create_general_ledger_account + RecurlyClient.Operations.Create_gift_card + RecurlyClient.Operations.Create_invoice + RecurlyClient.Operations.Create_item + RecurlyClient.Operations.Create_line_item + RecurlyClient.Operations.Create_measured_unit + RecurlyClient.Operations.Create_pending_purchase + RecurlyClient.Operations.Create_plan + RecurlyClient.Operations.Create_plan_add_on + RecurlyClient.Operations.Create_purchase + RecurlyClient.Operations.Create_shipping_address + RecurlyClient.Operations.Create_shipping_method + RecurlyClient.Operations.Create_subscription + RecurlyClient.Operations.Create_subscription_change + RecurlyClient.Operations.Create_usage + RecurlyClient.Operations.Deactivate_account + RecurlyClient.Operations.Deactivate_coupon + RecurlyClient.Operations.Deactivate_external_product_external_product_reference + RecurlyClient.Operations.Deactivate_external_products + RecurlyClient.Operations.Deactivate_item + RecurlyClient.Operations.Deactivate_shipping_method + RecurlyClient.Operations.Deactivate_unique_coupon_code + RecurlyClient.Operations.Delete_account_external_account + RecurlyClient.Operations.Generate_unique_coupon_codes + RecurlyClient.Operations.Get_a_billing_info + RecurlyClient.Operations.Get_account + RecurlyClient.Operations.Get_account_acquisition + RecurlyClient.Operations.Get_account_balance + RecurlyClient.Operations.Get_account_external_account + RecurlyClient.Operations.Get_account_note + RecurlyClient.Operations.Get_add_on + RecurlyClient.Operations.Get_billing_info + RecurlyClient.Operations.Get_business_entity + RecurlyClient.Operations.Get_coupon + RecurlyClient.Operations.Get_credit_payment + RecurlyClient.Operations.Get_custom_field_definition + RecurlyClient.Operations.Get_dunning_campaign + RecurlyClient.Operations.Get_export_dates + RecurlyClient.Operations.Get_export_files + RecurlyClient.Operations.Get_external_product + RecurlyClient.Operations.Get_external_product_external_product_reference + RecurlyClient.Operations.Get_external_subscription + RecurlyClient.Operations.Get_external_subscription_external_payment_phase + RecurlyClient.Operations.Get_general_ledger_account + RecurlyClient.Operations.Get_gift_card + RecurlyClient.Operations.Get_invoice + RecurlyClient.Operations.Get_invoice_pdf + RecurlyClient.Operations.Get_invoice_template + RecurlyClient.Operations.Get_item + RecurlyClient.Operations.Get_line_item + RecurlyClient.Operations.Get_measured_unit + RecurlyClient.Operations.Get_performance_obligation + RecurlyClient.Operations.Get_performance_obligations + RecurlyClient.Operations.Get_plan + RecurlyClient.Operations.Get_plan_add_on + RecurlyClient.Operations.Get_preview_renewal + RecurlyClient.Operations.Get_shipping_address + RecurlyClient.Operations.Get_shipping_method + RecurlyClient.Operations.Get_site + RecurlyClient.Operations.Get_subscription + RecurlyClient.Operations.Get_subscription_change + RecurlyClient.Operations.Get_transaction + RecurlyClient.Operations.Get_unique_coupon_code + RecurlyClient.Operations.Get_usage + RecurlyClient.Operations.List_account_acquisition + RecurlyClient.Operations.List_account_coupon_redemptions + RecurlyClient.Operations.List_account_credit_payments + RecurlyClient.Operations.List_account_external_account + RecurlyClient.Operations.List_account_external_invoices + RecurlyClient.Operations.List_account_external_subscriptions + RecurlyClient.Operations.List_account_invoices + RecurlyClient.Operations.List_account_line_items + RecurlyClient.Operations.List_account_notes + RecurlyClient.Operations.List_account_subscriptions + RecurlyClient.Operations.List_account_transactions + RecurlyClient.Operations.List_accounts + RecurlyClient.Operations.List_active_coupon_redemptions + RecurlyClient.Operations.List_add_ons + RecurlyClient.Operations.List_billing_infos + RecurlyClient.Operations.List_business_entities + RecurlyClient.Operations.List_business_entity_invoices + RecurlyClient.Operations.List_child_accounts + RecurlyClient.Operations.List_coupons + RecurlyClient.Operations.List_credit_payments + RecurlyClient.Operations.List_custom_field_definitions + RecurlyClient.Operations.List_dunning_campaigns + RecurlyClient.Operations.List_entitlements + RecurlyClient.Operations.List_external_invoices + RecurlyClient.Operations.List_external_product_external_product_references + RecurlyClient.Operations.List_external_products + RecurlyClient.Operations.List_external_subscription_external_invoices + RecurlyClient.Operations.List_external_subscription_external_payment_phases + RecurlyClient.Operations.List_external_subscriptions + RecurlyClient.Operations.List_general_ledger_accounts + RecurlyClient.Operations.List_gift_cards + RecurlyClient.Operations.List_invoice_coupon_redemptions + RecurlyClient.Operations.List_invoice_line_items + RecurlyClient.Operations.List_invoice_template_accounts + RecurlyClient.Operations.List_invoice_templates + RecurlyClient.Operations.List_invoices + RecurlyClient.Operations.List_items + RecurlyClient.Operations.List_line_items + RecurlyClient.Operations.List_measured_unit + RecurlyClient.Operations.List_plan_add_ons + RecurlyClient.Operations.List_plans + RecurlyClient.Operations.List_related_invoices + RecurlyClient.Operations.List_shipping_addresses + RecurlyClient.Operations.List_shipping_methods + RecurlyClient.Operations.List_sites + RecurlyClient.Operations.List_subscription_coupon_redemptions + RecurlyClient.Operations.List_subscription_invoices + RecurlyClient.Operations.List_subscription_line_items + RecurlyClient.Operations.List_subscriptions + RecurlyClient.Operations.List_transactions + RecurlyClient.Operations.List_unique_coupon_codes + RecurlyClient.Operations.List_usage + RecurlyClient.Operations.Mark_invoice_failed + RecurlyClient.Operations.Mark_invoice_successful + RecurlyClient.Operations.Pause_subscription + RecurlyClient.Operations.Preview_gift_card + RecurlyClient.Operations.Preview_invoice + RecurlyClient.Operations.Preview_purchase + RecurlyClient.Operations.Preview_subscription_change + RecurlyClient.Operations.Put_dunning_campaign_bulk_update + RecurlyClient.Operations.Reactivate_account + RecurlyClient.Operations.Reactivate_item + RecurlyClient.Operations.Reactivate_subscription + RecurlyClient.Operations.Reactivate_unique_coupon_code + RecurlyClient.Operations.Record_external_transaction + RecurlyClient.Operations.Redeem_gift_card + RecurlyClient.Operations.Refund_invoice + RecurlyClient.Operations.Remove_a_billing_info + RecurlyClient.Operations.Remove_account_acquisition + RecurlyClient.Operations.Remove_billing_info + RecurlyClient.Operations.Remove_coupon_redemption + RecurlyClient.Operations.Remove_line_item + RecurlyClient.Operations.Remove_measured_unit + RecurlyClient.Operations.Remove_plan + RecurlyClient.Operations.Remove_plan_add_on + RecurlyClient.Operations.Remove_shipping_address + RecurlyClient.Operations.Remove_subscription_change + RecurlyClient.Operations.Remove_usage + RecurlyClient.Operations.Reopen_invoice + RecurlyClient.Operations.Restore_coupon + RecurlyClient.Operations.Resume_subscription + RecurlyClient.Operations.Show_external_invoice + RecurlyClient.Operations.Terminate_subscription + RecurlyClient.Operations.Update_a_billing_info + RecurlyClient.Operations.Update_account + RecurlyClient.Operations.Update_account_acquisition + RecurlyClient.Operations.Update_account_external_account + RecurlyClient.Operations.Update_billing_info + RecurlyClient.Operations.Update_coupon + RecurlyClient.Operations.Update_external_product + RecurlyClient.Operations.Update_general_ledger_account + RecurlyClient.Operations.Update_invoice + RecurlyClient.Operations.Update_item + RecurlyClient.Operations.Update_measured_unit + RecurlyClient.Operations.Update_plan + RecurlyClient.Operations.Update_plan_add_on + RecurlyClient.Operations.Update_shipping_address + RecurlyClient.Operations.Update_shipping_method + RecurlyClient.Operations.Update_subscription + RecurlyClient.Operations.Update_usage + RecurlyClient.Operations.Verify_billing_info + RecurlyClient.Operations.Verify_billing_info_cvv + RecurlyClient.Operations.Void_invoice + RecurlyClient.SecuritySchemes + RecurlyClient.TypeAlias + RecurlyClient.Types + RecurlyClient.Types.Account + RecurlyClient.Types.AccountAcquisition + RecurlyClient.Types.AccountAcquisitionList + RecurlyClient.Types.AccountAcquisitionReadOnly + RecurlyClient.Types.AccountAcquisitionUpdate + RecurlyClient.Types.AccountBalance + RecurlyClient.Types.AccountBalanceAmount + RecurlyClient.Types.AccountCreate + RecurlyClient.Types.AccountList + RecurlyClient.Types.AccountMini + RecurlyClient.Types.AccountNote + RecurlyClient.Types.AccountNoteList + RecurlyClient.Types.AccountPurchase + RecurlyClient.Types.AccountReadOnly + RecurlyClient.Types.AccountReference + RecurlyClient.Types.AccountResponse + RecurlyClient.Types.AccountUpdate + RecurlyClient.Types.AddOn + RecurlyClient.Types.AddOnCreate + RecurlyClient.Types.AddOnList + RecurlyClient.Types.AddOnMini + RecurlyClient.Types.AddOnPricing + RecurlyClient.Types.AddOnUpdate + RecurlyClient.Types.Address + RecurlyClient.Types.AddressWithName + RecurlyClient.Types.BillingInfo + RecurlyClient.Types.BillingInfoCreate + RecurlyClient.Types.BillingInfoList + RecurlyClient.Types.BillingInfoVerify + RecurlyClient.Types.BillingInfoVerifyCVV + RecurlyClient.Types.BusinessEntity + RecurlyClient.Types.BusinessEntityList + RecurlyClient.Types.Coupon + RecurlyClient.Types.CouponBulkCreate + RecurlyClient.Types.CouponCreate + RecurlyClient.Types.CouponDiscount + RecurlyClient.Types.CouponDiscountPricing + RecurlyClient.Types.CouponList + RecurlyClient.Types.CouponMini + RecurlyClient.Types.CouponPricing + RecurlyClient.Types.CouponRedemption + RecurlyClient.Types.CouponRedemptionCreate + RecurlyClient.Types.CouponRedemptionList + RecurlyClient.Types.CouponRedemptionMini + RecurlyClient.Types.CouponUpdate + RecurlyClient.Types.CreditPayment + RecurlyClient.Types.CreditPaymentList + RecurlyClient.Types.CustomerPermission + RecurlyClient.Types.CustomField + RecurlyClient.Types.CustomFieldDefinition + RecurlyClient.Types.CustomFieldDefinitionList + RecurlyClient.Types.DunningCampaign + RecurlyClient.Types.DunningCampaignList + RecurlyClient.Types.DunningCampaignsBulkUpdate + RecurlyClient.Types.DunningCampaignsBulkUpdateResponse + RecurlyClient.Types.DunningCycle + RecurlyClient.Types.DunningInterval + RecurlyClient.Types.Entitlement + RecurlyClient.Types.Entitlements + RecurlyClient.Types.Error + RecurlyClient.Types.ErrorMayHaveTransaction + RecurlyClient.Types.ExportDates + RecurlyClient.Types.ExportFile + RecurlyClient.Types.ExportFiles + RecurlyClient.Types.ExternalAccount + RecurlyClient.Types.ExternalAccountCreate + RecurlyClient.Types.ExternalAccountList + RecurlyClient.Types.ExternalAccountUpdate + RecurlyClient.Types.ExternalCharge + RecurlyClient.Types.ExternalInvoice + RecurlyClient.Types.ExternalInvoiceList + RecurlyClient.Types.ExternalPaymentPhase + RecurlyClient.Types.ExternalPaymentPhaseList + RecurlyClient.Types.ExternalProduct + RecurlyClient.Types.ExternalProductCreate + RecurlyClient.Types.ExternalProductList + RecurlyClient.Types.ExternalProductReferenceBase + RecurlyClient.Types.ExternalProductReferenceCollection + RecurlyClient.Types.ExternalProductReferenceCreate + RecurlyClient.Types.ExternalProductReferenceMini + RecurlyClient.Types.ExternalProductUpdate + RecurlyClient.Types.ExternalSubscription + RecurlyClient.Types.ExternalSubscriptionList + RecurlyClient.Types.ExternalTransaction + RecurlyClient.Types.FraudRiskRule + RecurlyClient.Types.GeneralLedgerAccount + RecurlyClient.Types.GeneralLedgerAccountCreate + RecurlyClient.Types.GeneralLedgerAccountList + RecurlyClient.Types.GeneralLedgerAccountUpdate + RecurlyClient.Types.GiftCard + RecurlyClient.Types.GiftCardCreate + RecurlyClient.Types.GiftCardDelivery + RecurlyClient.Types.GiftCardDeliveryCreate + RecurlyClient.Types.GiftCardList + RecurlyClient.Types.GiftCardRedeem + RecurlyClient.Types.GrantedBy + RecurlyClient.Types.Invoice + RecurlyClient.Types.InvoiceAddress + RecurlyClient.Types.InvoiceCollect + RecurlyClient.Types.InvoiceCollection + RecurlyClient.Types.InvoiceCreate + RecurlyClient.Types.InvoiceList + RecurlyClient.Types.InvoiceMini + RecurlyClient.Types.InvoiceRefund + RecurlyClient.Types.InvoiceTemplate + RecurlyClient.Types.InvoiceTemplateList + RecurlyClient.Types.InvoiceUpdate + RecurlyClient.Types.Item + RecurlyClient.Types.ItemCreate + RecurlyClient.Types.ItemList + RecurlyClient.Types.ItemMini + RecurlyClient.Types.ItemUpdate + RecurlyClient.Types.LineItem + RecurlyClient.Types.LineItemCreate + RecurlyClient.Types.LineItemList + RecurlyClient.Types.LineItemRefund + RecurlyClient.Types.MeasuredUnit + RecurlyClient.Types.MeasuredUnitCreate + RecurlyClient.Types.MeasuredUnitList + RecurlyClient.Types.MeasuredUnitUpdate + RecurlyClient.Types.PaymentMethod + RecurlyClient.Types.PercentageTier + RecurlyClient.Types.PercentageTiersByCurrency + RecurlyClient.Types.PerformanceObligation + RecurlyClient.Types.PerformanceObligationList + RecurlyClient.Types.Plan + RecurlyClient.Types.PlanCreate + RecurlyClient.Types.PlanHostedPages + RecurlyClient.Types.PlanList + RecurlyClient.Types.PlanMini + RecurlyClient.Types.PlanPricing + RecurlyClient.Types.PlanRampInterval + RecurlyClient.Types.PlanRampPricing + RecurlyClient.Types.PlanUpdate + RecurlyClient.Types.Pricing + RecurlyClient.Types.ProrationSettings + RecurlyClient.Types.PurchaseCreate + RecurlyClient.Types.Settings + RecurlyClient.Types.ShippingAddress + RecurlyClient.Types.ShippingAddressCreate + RecurlyClient.Types.ShippingAddressList + RecurlyClient.Types.ShippingAddressUpdate + RecurlyClient.Types.ShippingFeeCreate + RecurlyClient.Types.ShippingMethod + RecurlyClient.Types.ShippingMethodCreate + RecurlyClient.Types.ShippingMethodList + RecurlyClient.Types.ShippingMethodMini + RecurlyClient.Types.ShippingMethodUpdate + RecurlyClient.Types.Site + RecurlyClient.Types.SiteList + RecurlyClient.Types.Subscription + RecurlyClient.Types.SubscriptionAddOn + RecurlyClient.Types.SubscriptionAddOnCreate + RecurlyClient.Types.SubscriptionAddOnPercentageTier + RecurlyClient.Types.SubscriptionAddOnTier + RecurlyClient.Types.SubscriptionAddOnUpdate + RecurlyClient.Types.SubscriptionCancel + RecurlyClient.Types.SubscriptionChange + RecurlyClient.Types.SubscriptionChangeBillingInfo + RecurlyClient.Types.SubscriptionChangeBillingInfoCreate + RecurlyClient.Types.SubscriptionChangeCreate + RecurlyClient.Types.SubscriptionChangeShippingCreate + RecurlyClient.Types.SubscriptionCreate + RecurlyClient.Types.SubscriptionList + RecurlyClient.Types.SubscriptionPause + RecurlyClient.Types.SubscriptionPurchase + RecurlyClient.Types.SubscriptionRampInterval + RecurlyClient.Types.SubscriptionRampIntervalResponse + RecurlyClient.Types.SubscriptionShipping + RecurlyClient.Types.SubscriptionShippingCreate + RecurlyClient.Types.SubscriptionShippingPurchase + RecurlyClient.Types.SubscriptionShippingUpdate + RecurlyClient.Types.SubscriptionUpdate + RecurlyClient.Types.TaxDetail + RecurlyClient.Types.TaxInfo + RecurlyClient.Types.Tier + RecurlyClient.Types.TierPricing + RecurlyClient.Types.Transaction + RecurlyClient.Types.TransactionFraudInfo + RecurlyClient.Types.TransactionList + RecurlyClient.Types.UniqueCouponCode + RecurlyClient.Types.UniqueCouponCodeList + RecurlyClient.Types.UniqueCouponCodeParams + RecurlyClient.Types.Usage + RecurlyClient.Types.UsageCreate + RecurlyClient.Types.UsageList + RecurlyClient.Types.User + + hs-source-dirs: src build-depends: - base >=4.7 && <5 - , text + aeson + , base >=4.7 && <5 + , bytestring , ghc-prim - , http-conduit , http-client + , http-conduit , http-types - , bytestring - , aeson - , unordered-containers - , vector + , mtl , scientific + , text , time - , mtl , transformers + , unordered-containers + , vector + default-language: Haskell2010 diff --git a/recurly-client/src/RecurlyClient/Common.hs b/recurly-client/src/RecurlyClient/Common.hs index 847ae82..8369e9a 100644 --- a/recurly-client/src/RecurlyClient/Common.hs +++ b/recurly-client/src/RecurlyClient/Common.hs @@ -262,7 +262,7 @@ createBaseRequest config method path queryParams = else basePath -- filters all maybe query = BF.second pure <$> serializeQueryParams queryParams - userAgent = configApplicationName config <> " openapi3-code-generator/0.1.0.7 (https://github.com/Haskell-OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator)" + userAgent = configApplicationName config <> " openapi3-code-generator/0.2.0.0 (https://github.com/Haskell-OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator)" addUserAgent = if configIncludeUserAgent config then HS.addRequestHeader HT.hUserAgent $ textToByte userAgent diff --git a/stack-lts-20-26.yaml.lock b/stack-lts-20-26.yaml.lock deleted file mode 100644 index ea5a850..0000000 --- a/stack-lts-20-26.yaml.lock +++ /dev/null @@ -1,12 +0,0 @@ -# This file was autogenerated by Stack. -# You should not edit this file by hand. -# For more information, please see the documentation at: -# https://docs.haskellstack.org/en/stable/lock_files - -packages: [] -snapshots: -- completed: - sha256: 5a59b2a405b3aba3c00188453be172b85893cab8ebc352b1ef58b0eae5d248a2 - size: 650475 - url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/20/26.yaml - original: lts-20.26 diff --git a/stack-lts-20-26.yaml b/stack-lts20.yaml similarity index 100% rename from stack-lts-20-26.yaml rename to stack-lts20.yaml diff --git a/stack-lts21.yaml b/stack-lts21.yaml new file mode 100644 index 0000000..a9f8b70 --- /dev/null +++ b/stack-lts21.yaml @@ -0,0 +1,4 @@ +resolver: lts-21.25 + +packages: + - recurly-client diff --git a/stack-lts22.yaml b/stack-lts22.yaml new file mode 100644 index 0000000..b854b8f --- /dev/null +++ b/stack-lts22.yaml @@ -0,0 +1,4 @@ +resolver: lts-22.43 + +packages: + - recurly-client diff --git a/stack-lts23.yaml b/stack-lts23.yaml new file mode 100644 index 0000000..03c89f0 --- /dev/null +++ b/stack-lts23.yaml @@ -0,0 +1,4 @@ +resolver: lts-23.3 + +packages: + - recurly-client diff --git a/stack-nightly.yaml b/stack-nightly.yaml index 175c7c6..5c81ed0 100644 --- a/stack-nightly.yaml +++ b/stack-nightly.yaml @@ -1,4 +1,4 @@ -resolver: 2024-10-09 +resolver: nightly-2025-01-06 packages: - recurly-client diff --git a/stack.yaml.lock b/stack.yaml.lock deleted file mode 100644 index d058d90..0000000 --- a/stack.yaml.lock +++ /dev/null @@ -1,12 +0,0 @@ -# This file was autogenerated by Stack. -# You should not edit this file by hand. -# For more information, please see the documentation at: -# https://docs.haskellstack.org/en/stable/lock_files - -packages: [] -snapshots: -- completed: - sha256: c6274f9587d6bf40b6aaa7d1092684c37a2d8bb1e0df999ae0e2b755db15682d - size: 720026 - url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/22/37.yaml - original: lts-22.37