Skip to content

Commit

Permalink
add application_fee back to invoice
Browse files Browse the repository at this point in the history
  • Loading branch information
jalexander committed Nov 19, 2024
1 parent d9388b3 commit 3741fb6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/stripe/subscriptions/invoice.ex
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ defmodule Stripe.Invoice do
Stripe API reference: https://stripe.com/docs/api#invoice
DEPRECATED BUT STILL IN USE:
application_fee
closed
"""

Expand All @@ -28,6 +29,7 @@ defmodule Stripe.Invoice do
amount_due: integer,
amount_paid: integer,
amount_remaining: integer,
application_fee: integer | nil,
application_fee_amount: integer | nil,
attempt_count: non_neg_integer,
attempted: boolean,
Expand Down Expand Up @@ -112,6 +114,7 @@ defmodule Stripe.Invoice do
:amount_due,
:amount_paid,
:amount_remaining,
:application_fee,
:application_fee_amount,
:attempt_count,
:attempted,
Expand Down Expand Up @@ -183,6 +186,7 @@ defmodule Stripe.Invoice do
@spec create(params, Stripe.options()) :: {:ok, t} | {:error, Stripe.Error.t()}
when params:
%{
optional(:application_fee) => integer,
optional(:application_fee_amount) => integer,
optional(:auto_advance) => boolean,
optional(:billing) => String.t(),
Expand Down Expand Up @@ -236,6 +240,7 @@ defmodule Stripe.Invoice do
@spec update(Stripe.id() | t, params, Stripe.options()) :: {:ok, t} | {:error, Stripe.Error.t()}
when params:
%{
optional(:application_fee) => integer,
optional(:application_fee_amount) => integer,
optional(:auto_advance) => boolean,
optional(:closed) => boolean,
Expand Down

0 comments on commit 3741fb6

Please sign in to comment.