fix(payfit): read absence dates as PayFit lists them (backport !3300)

Backport of the first commit of !3300 (merged) (6b378312) to v5-fix.

Problem

The leave synchronisation fails on the absence format that PayFit documents, and half days are not seen.

Root cause

PayFit lists startDate and endDate as {date, moment} objects. The code expected a plain date and a separate startMoment / endMoment. The test fixtures had the same wrong format.

Fix

PayfitClient.list_absences splits both ends into plain fields. The fixtures use the documented format.

Differences from develop

  • list_absences has no contract filter in v5.
  • The push to PayFit is not in v5, so its tests and the second commit of !3300 (merged) are left out.

Tests

The develop pipeline passed. The suite was not run locally on v5: this MR relies on its pipeline. Not tested with a real PayFit account.

Merge request reports

Loading
Loading