If it is a less than 24h connection then it will always be the higher APD.
However, if the connection is more than 24 hours, i.e. a stopover, then it will charge only the APD for the shorthaul segment (and if the shorthaul segment is in Y and longer segment in C, it is still charged for Y)