Constructs an empty adjustment; populate it through the group setters.
The amount group, or undefined.
Sets the amount group.
Accepts an AccountAdjustmentAmount object or a plain
AccountAdjustmentAmountInit literal.
Throws ParamError when a literal field is invalid.
The bounds group, or undefined.
Sets the bounds group.
Accepts an AccountAdjustmentBounds object or a plain
AccountAdjustmentBoundsInit literal.
Throws ParamError when a literal field is invalid.
The operation group (a balance or position operation), or undefined.
Sets the operation group.
Accepts an AccountAdjustmentBalanceOperation or an
AccountAdjustmentPositionOperation object, or a plain object literal
of either shape (a
mode/leverage/underlyingAsset/settlementAsset/collateralAsset
field selects the position form; otherwise the balance form).
Throws ParamError/AssetError when value is neither operation type
nor a valid literal.
Returns a deep copy of this adjustment, including its groups.
Top-level account adjustment: operation, amount, and bounds.