AlmondTill/G3N API

Policy value record

The PolicyValueRecord family — 5 operations.

A policy value is one dated window in your policy schedule — a setting from the platform’s fixed list (the appointment lead time, the maximum days ahead a booking may be made, the no-show window, the overbooking switch, and the fraud-alert thresholds, one per signal) given a whole-number value inside the setting’s bounds, from a start instant to an end (always present; far in the future means the standing value). Each window is anchored to exactly one organization or one store or warehouse: at a place, the store’s window wins over the organization’s, and the built-in default stands wherever no window covers. The start defaults to now and is never in the past, so the schedule is always an honest history of which value applied when; a window that starts inside the previous one trims that predecessor, and one that overlaps any other window refuses, naming the blockers. The setting, value and window are fixed once written — supersede with a new window; only a window that has not yet taken effect can be cancelled. The caption is the one thing you can edit.

Operations

OperationKindWhat it does
createPolicyValueRecordmutationSchedule a policy value for an organization or a location — e.g. a fraud-alert threshold.
doomPolicyValueRecordmutationCancel a policy value window that has not started yet.
policyValuequeryOne scheduled policy value — the key, the value, where it applies, and when.
policyValuesqueryYour group’s policy schedule, page by page — every value window ever set, kept forever.
updatePolicyValueRecordmutationRename a policy value window.