View Source Chargebeex.ItemPrice (chargebeex v0.1.0)

Struct that represent a Chargebee's API item price resource.

Link to this section Summary

Types

"web" | "app_store" | "play_store"

"all" | "restricted"

"day" | "week" | "month" | "year"

"flat_fee" | "per_unit" | "tiered" | "volume" | "stairstep"

"active" | "archived" | "deleted"

t()

"site_default" | "activate_subscription" | "cancel_subscription"

"plan" | "addon" | "charge"

Functions

Callback implementation for Chargebeex.Resource.build/1.

Callback implementation for Chargebeex.Resource.create/1.

Callback implementation for Chargebeex.Resource.delete/1.

Callback implementation for Chargebeex.Resource.list/1.

Callback implementation for Chargebeex.Resource.retrieve/1.

Callback implementation for Chargebeex.Resource.update/2.

Link to this section Types

@type channel() :: String.t()

"web" | "app_store" | "play_store"

@type item_applicability() :: String.t()

"all" | "restricted"

@type period_unit() :: String.t()

"day" | "week" | "month" | "year"

@type pricing_model() :: String.t()

"flat_fee" | "per_unit" | "tiered" | "volume" | "stairstep"

@type status() :: String.t()

"active" | "archived" | "deleted"

@type t() :: %Chargebeex.ItemPrice{
  accounting_detail: %{},
  archived_at: non_neg_integer(),
  billing_cycles: non_neg_integer(),
  channel: channel(),
  created_at: non_neg_integer(),
  currency_code: String.t(),
  description: String.t(),
  external_name: String.t(),
  free_quantity: non_neg_integer(),
  free_quantity_in_decimal: String.t(),
  id: String.t(),
  invoice_notes: String.t(),
  is_taxable: boolean(),
  item_family_id: String.t(),
  item_id: String.t(),
  item_type: type(),
  metadata: map(),
  name: String.t(),
  period: non_neg_integer(),
  period_unit: period_unit(),
  price: non_neg_integer(),
  price_in_decimal: String.t(),
  pricing_model: pricing_model(),
  resource_version: String.t(),
  shipping_period: non_neg_integer(),
  shipping_period_unit: period_unit(),
  show_description_in_invoices: boolean(),
  show_description_in_quotes: boolean(),
  status: status(),
  tax_detail: %{},
  tiers: %{},
  trial_end_action: trial_end_action(),
  trial_period: non_neg_integer(),
  trial_period_unit: String.t(),
  updated_at: non_neg_integer()
}
@type trial_end_action() :: String.t()

"site_default" | "activate_subscription" | "cancel_subscription"

@type type() :: String.t()

"plan" | "addon" | "charge"

Link to this section Functions

Callback implementation for Chargebeex.Resource.build/1.

Callback implementation for Chargebeex.Resource.create/1.

Callback implementation for Chargebeex.Resource.delete/1.

Callback implementation for Chargebeex.Resource.list/1.

Callback implementation for Chargebeex.Resource.retrieve/1.

Callback implementation for Chargebeex.Resource.update/2.