Current section
Files
Jump to
Current section
Files
lib/chargebeex/quoted_subscription/quoted_subscription.ex
defmodule Chargebeex.QuotedSubscription do
use TypedStruct
typedstruct do
field :billing_period, non_neg_integer()
field :billing_period_unit, String.t()
field :changes_scheduled_at, non_neg_integer()
field :change_option, String.t()
field :contract_term_billing_cycle_on_renewal, non_neg_integer()
field :remaining_billing_cycles, non_neg_integer()
field :start_date, non_neg_integer()
field :trial_end, non_neg_integer()
field :discounts, list()
field :coupons, list()
field :subscription_items, list()
end
@moduledoc """
Struct that represent a Chargebee's API quoted subscription.
"""
use ExConstructor, :build
end