+ /**
+ * Get legacy fields which we still maybe support.
+ *
+ * These are contribution specific but I think it's ok to have one list of legacy supported
+ * params in a central place.
+ *
+ * @return array
+ */
+ protected static function getLegacySupportedFields(): array {
+ // @todo enotices when these are hit so we can start to elimnate them.
+ $fieldAliases = [
+ 'financial_type' => 'financial_type_id',
+ 'contribution_page' => 'contribution_page_id',
+ 'payment_instrument' => 'payment_instrument_id',
+ // or payment_instrument_id?
+ 'contribution_payment_instrument' => 'contribution_payment_instrument_id',
+ 'contribution_status' => 'contribution_status_id',
+ ];
+ return $fieldAliases;
+ }
+