import type * as Square from "../index"; /** * Represents an inventory adjustment reason. */ export interface InventoryAdjustmentReason { /** The identifier for this inventory adjustment reason. */ id: Square.InventoryAdjustmentReasonId; /** * The seller-facing name for a custom inventory adjustment reason. This * field is empty for standard and system-generated adjustment reasons. */ name?: string | null; /** * Indicates whether this inventory adjustment reason increases or * decreases inventory. This field is set for custom reasons and for standard * seller-selectable reasons. It is empty for system-generated inventory * events. * See [Direction](#type-direction) for possible values */ direction?: Square.InventoryAdjustmentReasonDirection; /** * An RFC 3339-formatted timestamp that indicates when the custom * adjustment reason was created. This field is empty for standard * adjustment reasons. */ createdAt?: string; /** * An RFC 3339-formatted timestamp that indicates when the custom * adjustment reason was last updated. This field is empty for standard * adjustment reasons. */ updatedAt?: string; /** * Indicates whether this custom inventory adjustment reason has been * deleted. Deleted custom reasons can still be retrieved by ID, but are * omitted from list responses unless deleted reasons are explicitly included. * To restore a deleted custom reason, call * [RestoreInventoryAdjustmentReason](api-endpoint:Inventory-RestoreInventoryAdjustmentReason). * This field is always `false` for standard and system-generated adjustment * reasons. */ isDeleted?: boolean | null; }