View Source Chargebeex.Invoice (chargebeex v0.4.0)

Summary

Types

@type t() :: %Chargebeex.Invoice{
  adjustment_credit_notes: list() | nil,
  amount_adjusted: integer() | nil,
  amount_due: integer() | nil,
  amount_paid: integer() | nil,
  amount_to_collect: integer() | nil,
  applied_credits: list() | nil,
  base_currency_code: String.t() | nil,
  billing_address: map() | nil,
  credits_applied: integer() | nil,
  currency_code: String.t() | nil,
  customer_id: String.t() | nil,
  date: integer() | nil,
  deleted: boolean() | nil,
  due_date: integer() | nil,
  dunning_attempts: list() | nil,
  exchange_rate: integer() | nil,
  first_invoice: boolean() | nil,
  has_advance_charges: boolean() | nil,
  id: String.t() | nil,
  is_gifted: boolean() | nil,
  issued_credit_notes: list() | nil,
  line_items: list() | nil,
  linked_orders: list() | nil,
  linked_payments: list() | nil,
  net_term_days: integer() | nil,
  new_sales_amount: integer() | nil,
  object: map() | nil,
  paid_at: integer() | nil,
  price_type: String.t() | nil,
  recurring: boolean() | nil,
  resource_version: integer() | nil,
  resources: map(),
  round_off_amount: integer() | nil,
  shipping_address: map() | nil,
  status: String.t() | nil,
  sub_total: integer() | nil,
  subscription_id: String.t() | nil,
  tax: integer() | nil,
  term_finalized: boolean() | nil,
  total: integer() | nil,
  updated_at: integer() | nil,
  write_off_amount: integer() | nil
}

Functions

Link to this function

build(map_or_kwlist, opts \\ [])

View Source
@spec build(ExConstructor.map_or_kwlist(), Keyword.t()) :: %Chargebeex.Invoice{
  adjustment_credit_notes: term(),
  amount_adjusted: term(),
  amount_due: term(),
  amount_paid: term(),
  amount_to_collect: term(),
  applied_credits: term(),
  base_currency_code: term(),
  billing_address: term(),
  credits_applied: term(),
  currency_code: term(),
  customer_id: term(),
  date: term(),
  deleted: term(),
  due_date: term(),
  dunning_attempts: term(),
  exchange_rate: term(),
  first_invoice: term(),
  has_advance_charges: term(),
  id: term(),
  is_gifted: term(),
  issued_credit_notes: term(),
  line_items: term(),
  linked_orders: term(),
  linked_payments: term(),
  net_term_days: term(),
  new_sales_amount: term(),
  object: term(),
  paid_at: term(),
  price_type: term(),
  recurring: term(),
  resource_version: term(),
  resources: term(),
  round_off_amount: term(),
  shipping_address: term(),
  status: term(),
  sub_total: term(),
  subscription_id: term(),
  tax: term(),
  term_finalized: term(),
  total: term(),
  updated_at: term(),
  write_off_amount: term()
}
Link to this function

create(params, opts \\ [])

View Source

Callback implementation for Chargebeex.Resource.create/2.

Callback implementation for Chargebeex.Resource.delete/2.

Link to this function

list(params \\ %{}, opts \\ [])

View Source

Callback implementation for Chargebeex.Resource.list/2.

Link to this function

retrieve(id, opts \\ [])

View Source

Callback implementation for Chargebeex.Resource.retrieve/2.

Link to this function

update(id, params, opts \\ [])

View Source

Callback implementation for Chargebeex.Resource.update/3.