Packages
stripity_stripe
3.2.0
3.3.2
3.3.1
3.2.0
3.1.1
3.1.0
3.0.0
2.17.3
2.17.2
2.17.1
2.17.0
2.16.0
2.15.1
2.15.0
2.14.1
2.14.0
2.13.0
2.12.1
2.12.0
2.11.0
2.10.0
2.9.0
2.8.0
2.7.2
2.7.1
2.7.0
2.6.0
2.5.0
2.4.0
2.3.0
2.2.3
2.2.2
2.2.1
2.2.0
2.1.0
2.0.1
2.0.0
2.0.0-alpha.11
2.0.0-alpha.10
2.0.0-alpha.9
2.0.0-alpha.8
2.0.0-alpha.7
2.0.0-alpha.6
2.0.0-alpha.5
2.0.0-alpha.4
2.0.0-alpha.3
2.0.0-alpha.2
2.0.0-alpha.1
1.6.2
1.6.1
1.6.0
1.4.0
1.3.0
1.2.0
1.1.0
0.5.0
0.4.0
0.3.0
0.2.0
A Stripe client for Elixir.
Current section
Files
Jump to
Current section
Files
stripity_stripe
mix.exs
mix.exs
defmodule Stripe.Mixfile do
use Mix.Project
@source_url "https://github.com/code-corps/stripity_stripe"
@version "3.2.0"
def project do
[
app: :stripity_stripe,
version: @version,
elixir: "~> 1.11",
deps: deps(),
docs: docs(),
package: package(),
elixirc_paths: elixirc_paths(Mix.env()),
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
],
dialyzer: [
plt_add_apps: [:mix],
plt_file: {:no_warn, "priv/plts/stripity_stripe.plt"}
],
test_coverage: [tool: ExCoveralls]
]
end
# Configuration for the OTP application
def application do
[
extra_applications: [],
env: env(),
mod: {Stripe, []}
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp env do
[
api_base_url: "https://api.stripe.com",
api_upload_url: "https://files.stripe.com",
pool_options: [
timeout: 5_000,
max_connections: 10
],
use_connection_pool: true
]
end
defp deps do
[
{:hackney, "~> 1.18"},
{:jason, "~> 1.1"},
{:telemetry, "~> 1.1"},
{:uri_query, "~> 0.2.0"},
{:plug, "~> 1.14", optional: true},
# Non-production dependencies
{:inch_ex, ">= 0.0.0", only: [:dev, :test]},
{:mox, ">= 0.0.0", only: :test},
{:erlexec, "~> 2.0", only: :test},
{:dialyxir, ">= 0.0.0", only: [:dev, :test], runtime: false},
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
{:excoveralls, ">= 0.0.0", only: :test}
]
end
defp docs do
[
extras: [
"CHANGELOG.md": [title: "Changelog"],
"LICENSE.md": [title: "License"],
"README.md": [title: "Overview"]
],
main: "readme",
source_url: @source_url,
source_ref: "v#{@version}",
formatters: ["html"],
groups_for_modules: groups_for_modules(),
nest_modules_by_prefix: nest_modules_by_prefix()
]
end
defp package do
[
description: "A Stripe client for Elixir.",
files: ["lib", "LICENSE*", "mix.exs", "README*", "CHANGELOG*"],
licenses: ["BSD-3-Clause"],
maintainers: [
"Maarten van Vliet",
"Nikola Begedin",
"Scott Newcomer"
],
links: %{
"GitHub" => @source_url
}
]
end
defp groups_for_modules do
[
Main: [
Stripe,
Stripe.API,
Stripe.ApiErrors,
Stripe.Entity,
Stripe.List,
Stripe.Request,
Stripe.SearchResult
],
"Core Resources": [
Stripe.Balance,
Stripe.BalanceTransaction,
Stripe.Charge,
Stripe.Customer,
Stripe.Dispute,
Stripe.Event,
Stripe.FileUpload,
Stripe.FileLink,
Stripe.Mandate,
Stripe.PaymentIntent,
Stripe.Payout,
Stripe.Price,
Stripe.Product,
Stripe.Refund,
Stripe.SetupIntent,
Stripe.TaxId,
Stripe.Token
],
"Payment Methods": [
Stripe.BankAccount,
Stripe.Card,
Stripe.PaymentMethod,
Stripe.Source
],
Checkout: [
Stripe.Checkout.Session
],
Billing: [
Stripe.Coupon,
Stripe.CreditNote,
Stripe.CreditNoteLineItem,
Stripe.CustomerTransactionBalance,
Stripe.Discount,
Stripe.Invoice,
Stripe.Invoiceitem,
Stripe.LineItem,
Stripe.Product,
Stripe.Plan,
Stripe.Subscription,
Stripe.SubscriptionItem,
Stripe.UsageRecord,
Stripe.SubscriptionSchedule,
Stripe.TaxRate
],
"Billing Portal": [
Stripe.BillingPortal.Session
],
Connect: [
Stripe.Account,
Stripe.ApplicationFee,
Stripe.Capability,
Stripe.Connect.OAuth,
Stripe.Connect.OAuth.AuthorizeResponse,
Stripe.Connect.OAuth.DeauthorizeResponse,
Stripe.Connect.OAuth.TokenResponse,
Stripe.CountrySpec,
Stripe.ExternalAccount,
Stripe.FeeRefund,
Stripe.LoginLink,
Stripe.Recipient,
Stripe.Topup,
Stripe.Transfer,
Stripe.TransferReversal
],
Fraud: [
Stripe.Radar.EarlyFraudWarning,
Stripe.Review
],
Identity: [
Stripe.Identity.VerificationSession,
Stripe.Identity.VerificationReport
],
Issuing: [
Stripe.Issuing.Authorization,
Stripe.Issuing.Card,
Stripe.Issuing.Cardholder,
Stripe.Issuing.Transaction,
Stripe.Issuing.Types
],
Terminal: [
Stripe.Terminal.ConnectionToken,
Stripe.Terminal.Location,
Stripe.Terminal.Reader
],
Utilities: [
Stripe.Config,
Stripe.Converter,
Stripe.Types
],
Other: [
~r/.*/
]
]
end
def nest_modules_by_prefix() do
[
Stripe.Connect.OAuth,
Stripe.Connect.OAuth.AuthorizeResponse,
Stripe.Connect.OAuth.TokenResponse,
Stripe.Connect.OAuth.DeauthorizeResponse
]
end
end