Ejemplo n.º 1
0
 /// <summary>
 /// Bulk Insert Timesheets
 /// </summary>
 /// <remarks>
 /// Adds timesheets for the specified business. This will not replace any existing timesheets.
 /// The timesheets should be grouped by their associated employee IDs, with the key for the timesheet array
 /// being the employee ID. For a Standard Employee ID Type, make sure the employee ID is an integer.
 /// </remarks>
 public void BulkInsertTimesheets(int businessId, SgSubmitTimesheetsRequest request)
 {
     ApiRequest($"/business/{businessId}/timesheet/bulk", request, Method.POST);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Bulk Insert Timesheets
 /// </summary>
 /// <remarks>
 /// Adds timesheets for the specified business. This will not replace any existing timesheets.
 /// The timesheets should be grouped by their associated employee IDs, with the key for the timesheet array
 /// being the employee ID. For a Standard Employee ID Type, make sure the employee ID is an integer.
 /// </remarks>
 public Task BulkInsertTimesheetsAsync(int businessId, SgSubmitTimesheetsRequest request, CancellationToken cancellationToken = default)
 {
     return(ApiRequestAsync($"/business/{businessId}/timesheet/bulk", request, Method.POST, cancellationToken));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Update/Replace timesheets
 /// </summary>
 /// <remarks>
 /// Performs the same action as 'Bulk Insert Timesheets', but any existing timesheets
 /// for the specified employees within the specified time period
 /// (StartTime - EndTime) will be replaced with the timesheets specified.
 /// </remarks>
 public void UpdateReplaceTimesheets(int businessId, SgSubmitTimesheetsRequest request)
 {
     ApiRequest($"/business/{businessId}/timesheet/bulk", request, Method.PUT);
 }