From 5c665f6cadbd573acf0e04574a5885a7f9c22057 Mon Sep 17 00:00:00 2001 From: Andrew Summers Date: Wed, 8 Feb 2017 20:05:53 -0600 Subject: [PATCH] Fixed dialyzer warnings by fixing bug. The argument order to Stripe.Request.update had the params in a different order. --- lib/stripe/invoice.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/stripe/invoice.ex b/lib/stripe/invoice.ex index 3652065b..8381cfa6 100644 --- a/lib/stripe/invoice.ex +++ b/lib/stripe/invoice.ex @@ -87,9 +87,9 @@ defmodule Stripe.Invoice do Takes the `id` and a map of changes. """ - @spec update(t, map, list) :: {:ok, t} | {:error, Stripe.api_error_struct} + @spec update(binary, map, Keyword.t) :: {:ok, t} | {:error, Stripe.api_error_struct} def update(id, changes, opts \\ []) do endpoint = @plural_endpoint <> "/" <> id - Stripe.Request.update(endpoint, changes, @schema, __MODULE__, @nullable_keys, opts) + Stripe.Request.update(endpoint, changes, @schema, @nullable_keys, __MODULE__, opts) end end