This has been implemented in a straightforward way in equations (7.10), (7.11) and (7.13).
Other types of boundary conditions appear, for example, when the derivatives of the function are known (instead of the values themselves) at the boundary - this is the Neumann condition.