A study of resonant structures in B^{+}→D^{*+}D^{-}K^{+} and B^{+}→D^{*-}D^{+}K^{+} decays is performed, using proton-proton collision data at center-of-mass energies of sqrt[s]=7, 8, and 13 TeV recorded by the LHCb experiment, corresponding to an integrated luminosity of 9 fb^{-1}. A simultaneous amplitude fit is performed to the two channels with contributions from resonances decaying to D^{*-}D^{+} and D^{*+}D^{-} states linked by C parity. This procedure allows the C parities of resonances in the D^{*±}D^{∓} mass spectra to be determined. Four charmonium or charmoniumlike states are observed decaying into D^{*±}D^{∓}: η_{c}(3945), h_{c}(4000), χ_{c1}(4010), and h_{c}(4300), with quantum numbers J^{PC} equal to 0^{-+}, 1^{+-}, 1^{++}, and 1^{+-}, respectively. At least three of these states have not been observed previously. In addition, the existence of the T_{c[over ¯]s[over ¯]0}^{*}(2870)^{0} and T_{c[over ¯]s[over ¯]1}^{*}(2900)^{0} resonances in the D^{-}K^{+} mass spectrum, already observed in the B^{+}→D^{+}D^{-}K^{+} decay, is confirmed in a different production channel.