defmodule YapilyClient.MixProject do use Mix.Project @version "1.0.0" @source_url "https://github.com/iamkanishka/yapily_client" @description "Unofficial Elixir client for the Yapily Open Banking API v12 — " <> "payments, data, VRP, hosted pages, enrichment, and more." def project do [ app: :yapily_client, version: @version, elixir: "~> 1.18", start_permanent: Mix.env() == :prod, deps: deps(), description: @description, package: package(), docs: docs(), aliases: aliases(), test_coverage: [tool: ExCoveralls], preferred_cli_env: [ coveralls: :test, "coveralls.detail": :test, "coveralls.post": :test, "coveralls.html": :test ], dialyzer: [ plt_file: {:no_warn, "priv/plts/dialyzer.plt"}, plt_add_apps: [:ex_unit], flags: [:error_handling, :underspecs] ], name: "YapilyClient", source_url: @source_url, homepage_url: "https://docs.yapily.com" ] end def application do [ extra_applications: [:logger, :crypto], mod: {YapilyClient.Application, []} ] end defp deps do [ {:req, "~> 0.5"}, {:jason, "~> 1.4"}, {:ex_rated, "~> 2.1"}, {:telemetry, "~> 1.2"}, {:ex_doc, "~> 0.40", only: :dev, runtime: false}, {:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false}, {:credo, "~> 1.7", only: [:dev, :test], runtime: false}, {:excoveralls, "~> 0.18", only: :test, runtime: false}, {:mox, "~> 1.1", only: :test} ] end defp package do [ name: "yapily_client", maintainers: ["Kanishka"], licenses: ["MIT"], links: %{ "GitHub" => @source_url, "Yapily API Docs" => "https://docs.yapily.com/api-reference/introduction", "Changelog" => "#{@source_url}/blob/main/CHANGELOG.md" }, files: ~w(lib .formatter.exs mix.exs README.md LICENSE CHANGELOG.md) ] end defp aliases do [ setup: ["deps.get", "deps.compile"], lint: ["format --check-formatted", "credo --strict", "dialyzer"], "test.all": ["coveralls.html"], quality: ["lint", "test.all"] ] end defp docs do [ main: "readme", source_ref: "v#{@version}", source_url: @source_url, extras: ["README.md", "CHANGELOG.md"], groups_for_modules: [ Core: [YapilyClient, YapilyClient.Config], "HTTP & Infrastructure": [ YapilyClient.HTTP.Client, YapilyClient.HTTP.Behaviour, YapilyClient.HTTP.Response, YapilyClient.Webhook, YapilyClient.ConsentPoller ], "Error Handling": [ YapilyClient.Error, YapilyClient.Error.APIError, YapilyClient.Error.EnhancedAPIError, YapilyClient.Error.ValidationError ], Types: [ YapilyClient.Types.Account, YapilyClient.Types.AccountBalance, YapilyClient.Types.AccountIdentification, YapilyClient.Types.Address, YapilyClient.Types.ApplicationBeneficiary, YapilyClient.Types.Authorisation, YapilyClient.Types.Balance, YapilyClient.Types.BalanceDetail, YapilyClient.Types.BulkPayment, YapilyClient.Types.BulkPaymentStatus, YapilyClient.Types.Consent, YapilyClient.Types.DirectDebit, YapilyClient.Types.EnrichmentResult, YapilyClient.Types.EventSubscription, YapilyClient.Types.Identity, YapilyClient.Types.Institution, YapilyClient.Types.InternationalPayment, YapilyClient.Types.Merchant, YapilyClient.Types.Payment, YapilyClient.Types.Payer, YapilyClient.Types.PeriodicPayment, YapilyClient.Types.Recipient, YapilyClient.Types.ScheduledPayment, YapilyClient.Types.Statement, YapilyClient.Types.Transaction, YapilyClient.Types.User, YapilyClient.Types.UserBeneficiary, YapilyClient.Types.VRPConsent, YapilyClient.Types.VRPPayment ], Services: [ YapilyClient.Accounts, YapilyClient.ApplicationManagement, YapilyClient.Authorisations, YapilyClient.Beneficiaries, YapilyClient.BulkPayments, YapilyClient.Consents, YapilyClient.Constraints, YapilyClient.DataPlus, YapilyClient.FinancialData, YapilyClient.HostedPages, YapilyClient.Institutions, YapilyClient.Notifications, YapilyClient.Payments, YapilyClient.Transactions, YapilyClient.Users, YapilyClient.Validate, YapilyClient.VRP, YapilyClient.Webhooks ] ] ] end end