You are right, in a device configuration the Dirichlet boundary conditions are set for the C direction.
The boundary conditions that are printed in the script are the ones for the left and right electrodes and are set to periodic in all three directions.
Select "show default" in the Script detail window when you save the script and all the parameters, including the default ones, will be printed in the script.
including the Poisson solver for the device:
device_poisson_solver = FastFourier2DSolver(
boundary_conditions=[[PeriodicBoundaryCondition,PeriodicBoundaryCondition],
[PeriodicBoundaryCondition,PeriodicBoundaryCondition],
[DirichletBoundaryCondition,DirichletBoundaryCondition]],
order=2
)