Constructs a lock, optionally seeded from another lock or from an
iterable of [policyGroupId, Price] pairs.
Passing undefined/null yields an empty lock. Records with the same
policyGroupId accumulate in insertion order.
Throws ParamError on an invalid policyGroupId, a malformed entry, or
a non-iterable argument.
ReadonlyisReturns true when the lock holds no price records.
ReadonlylengthReturns the number of stored price records.
Returns true when both locks hold the same records in the same order.
Appends [policyGroupId, price] entries from an iterable.
Each price accepts a Price object or a DecimalInput.
Throws ParamError on an invalid entry or a non-iterable argument.
Appends every record from other into this lock.
Stores price under policyGroupId, preserving prior prices.
price accepts a Price object or a DecimalInput.
Throws ParamError on an invalid policyGroupId or price.
Stores every price under policyGroupId, preserving prior prices.
prices is an iterable of Price objects or DecimalInput values.
Throws ParamError on an invalid policyGroupId or price.
StaticfromStaticfromStaticfrom
Serializable grouped
(policyGroupId, price)reservation context.