Kandis.Order behaviour (kandis v0.5.12)

Summary

Functions

Callbacks

Link to this callback

apply_delivery_cost(map, map)

@callback apply_delivery_cost(map(), map()) :: map()
Link to this callback

create_lineitem_from_cart_item(map, map)

@callback create_lineitem_from_cart_item(map(), map()) :: map()

Functions

Link to this function

add_all_totals(orderitems, ordervars)

Link to this function

add_lineitems_from_cart(orderitems, ordercart, ordervars)

Link to this function

add_product_subtotal(orderitems, title)

Link to this function

add_total(orderitems, title)

Link to this function

add_total_taxes(orderitems, ordervars)

Link to this function

atomize_maps(rec)

Link to this function

cancel_expired_orders(n \\ 100)

Link to this function

cancel_orders_for_cart_id(cart_id)

Link to this function

clean_for_diff(order)

Link to this function

create_and_assign_new_invoice_nr_for_order(order_nr, tries \\ 0)

Link to this function

create_history_record(order, payload, msg)

Link to this function

create_new_invoice_nr(prefix)

Link to this function

create_new_order(orderitems, ordervars)

Link to this function

create_new_order_nr(is_testmode \\ false)

Link to this function

create_order_record_from_checkout(orderitems, ordervars)

Link to this function

create_orderhtml(orderitems, ordervars, order_record \\ nil, mode \\ "order")

Link to this function

create_orderitems(ordercart, ordervars)

Link to this function

create_taxrate_stats_entry_for_item(item)

Link to this function

create_version_record(order)

Link to this function

create_version_timestamp()

Link to this function

decrement_stock_for_order(order)

Link to this function

decrement_stock_for_sku(sku, amount, order)

Link to this function

delete_latest_invoice(invoice_nr)

Link to this function

erase_archive(order_nr)

Link to this function

erase_history(order_nr)

Link to this function

extract_shipping_address_fields(ordervars)

Link to this function

finish_order(order_nr)

Link to this function

generate_diff(order, updated_order)

Link to this function

get_all_by_cart_id(cart_id)

Link to this function

get_by_any_id(any_id)

Link to this function

get_by_cart_id(cart_id)

Link to this function

get_by_invoice_nr(invoice_nr)

Link to this function

get_by_order_nr(order_nr)

Link to this function

get_current_order_for_vid(vid, params \\ %{})

Link to this function

get_expired_orders()

Link to this function

get_history_list(order)

Link to this function

get_invoice_file(any_id, params \\ %{})

Link to this function

get_invoice_nr_prefix()

Link to this function

get_invoice_nr_prefix(atom)

Link to this function

get_invoice_url(any_id, params \\ %{})

Link to this function

get_latest_invoice_nr(prefix)

Link to this function

get_latest_order_for_vid(vid, params \\ %{})

Link to this function

get_order_file(any_id, mode, params \\ %{})

Link to this function

get_order_file_url(any_id, mode, params \\ %{})

Link to this function

get_order_nr_prefix()

Link to this function

get_order_query(params)

Link to this function

get_orderhtml(order, mode \\ "order")

Link to this function

get_orders(params)

Link to this function

get_random_code(length)

Link to this function

get_sku_amounts_in_order(order)

Link to this function

get_stats_for_lineitems(lineitems)

Link to this function

get_toplevel_order_fields(orderitems, ordervars)

Link to this function

get_version_one_record(order)

Link to this function

get_version_record(order, version)

Link to this function

increment_invoice_nr(invoice_nr, prefix)

Link to this function

is_cancelled?(order)

Link to this function

is_invoiced?(order)

Link to this function

is_testorder?(orderitems, ordervars)

Link to this function

merge_orderitem_change(orderitems, name, new_values)

Link to this function

merge_orderitem_changes(orderitems, orderitem_changes)

Link to this function

order_nr_is_testmode?(order_nr)

Link to this function

order_nr_taken?(order_nr)

Link to this function

remove_all_deleted(orderitems)

Link to this function

remove_all_totals(orderitems)

Link to this function

remove_invoice_nr(order)

Link to this function

remove_subtotal_if_lastitem(lineitems)

Link to this function

restore_archive_version(order_nr, version)

Link to this function

set_state(any_id, new_status)

Link to this function

store_archive_version(order_nr)

Link to this function

store_history_entry(order_nr, payload, msg)

Link to this function

t(lang_or_context, translation_key, variables \\ [])

Link to this function

taxrate_item_append(map, new_item)

Link to this function

update(data, params \\ nil)

Link to this function

update_orderitems(order_nr, new_orderitems)

Link to this function

update_ordervars(order_nr, new_ordervars)

Link to this function

update_stats(orderitems, ordervars)

Link to this function

update_stock(order)

Link to this function

update_taxrate_stats(taxrates, item)

Link to this function

update_taxrate_stats(taxes, _, _)