Admin API / Types
DeleteProductOutcome
UnionDeleteProductItemSuccess: the listing is deleted. ProductNotFoundError: the caller reads no listing with this ID, or it is already deleted. UnauthorizedError: the caller reads the listing but cannot delete it; requiredRole is the lowest role that can, and null when no role helps. ProductLockedError: the listing's auction has a bid or its giveaway started.
union DeleteProductOutcome = DeleteProductItemSuccess | ProductLockedError | ProductNotFoundError | UnauthorizedError