Channex Taxes v0.2.9 Taxes.Types View Source

Module with type definition used at Taxes application

Link to this section Summary

Link to this section Types

Link to this type

payload()

View Source
payload() :: %{
  :taxes => [tax()],
  :raw_price => float(),
  :count_of_persons => non_neg_integer(),
  :count_of_rooms => non_neg_integer(),
  :count_of_nights => non_neg_integer(),
  optional(:calculated_taxes) => list(),
  optional(:inclusive) => nil | list(),
  optional(:exclusive) => nil | list(),
  optional(:net_price) => nil | float(),
  optional(:total_price) => nil | float()
}
Link to this type

tax()

View Source
tax() :: %{
  title: String.t(),
  rate: float(),
  is_inclusive: boolean(),
  logic: :percent,
  taxes: nil | [tax()]
}