Kaizen
Browse modulesPricingpricing/sharedTypes

Type Alias: OrderCalculation

type OrderCalculation = {
  applied: AppliedAction[];
  lines_total_cents: number;
  total_cents: number;
};

Defined in: shared/pricing/types/calculation.ts:74

Order-level calculation result. lines_total_cents is the sum of every line's subtotal_cents (the starting point for order-level adjustments). total_cents is the final amount the customer owes after all order-level rules have applied.

Properties

applied

applied: AppliedAction[];

Defined in: shared/pricing/types/calculation.ts:76


lines_total_cents

lines_total_cents: number;

Defined in: shared/pricing/types/calculation.ts:75


total_cents

total_cents: number;

Defined in: shared/pricing/types/calculation.ts:77

On this page