You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
records_jsonpath="$.payrollOutputs[*]"#There's a root level processMessages key that has metaData about the corresponding payroll(s) might be useful, ignoring for now to move forward quickly
217
+
schema_filepath=SCHEMAS_DIR/"payroll_output.json"
218
+
219
+
defget_child_context(self, record, context):
220
+
return {
221
+
"_sdc_payroll_item_id": record["itemID"]
222
+
}
223
+
224
+
defget_url_params( # noqa: PLR6301
225
+
self,
226
+
context,
227
+
next_page_token
228
+
) ->dict[str, t.Any] |str:
229
+
# Date 30 days ago
230
+
date=self.get_starting_timestamp(context)
231
+
date_str=date.strftime("%Y%m%d")
232
+
self.logger.info(f"Payroll is using 'payPeriodEndDate ge {date_str}'")
233
+
return {
234
+
"$filter": f"payPeriodEndDate ge {date_str}"
235
+
}
236
+
237
+
defpost_process(self, record, context):
238
+
# We subtract 30 days as recent payrolls are not available to pull
239
+
# There could be a case where a payroll completes that's more recent than payrolls that havne't been completed yet so we want to play it safe and try to get them all
240
+
# This gives us a good chance of pulling all the most recent payrolls
0 commit comments