/// <summary> /// Create Pay Schedule /// </summary> /// <remarks> /// Creates a new pay schedule for the business. /// </remarks> public Task <MyPayScheduleModel> CreatePayScheduleAsync(int businessId, MyPayScheduleModel paySchedule, CancellationToken cancellationToken = default) { return(ApiRequestAsync <MyPayScheduleModel, MyPayScheduleModel>($"/business/{businessId}/payschedule", paySchedule, Method.POST, cancellationToken)); }
/// <summary> /// Update Pay Schedule /// </summary> /// <remarks> /// Updates the pay schedule with the specified ID. /// </remarks> public MyPayScheduleModel UpdatePaySchedule(int businessId, int id, MyPayScheduleModel paySchedule) { return(ApiRequest <MyPayScheduleModel, MyPayScheduleModel>($"/business/{businessId}/payschedule/{id}", paySchedule, Method.PUT)); }
/// <summary> /// Create Pay Schedule /// </summary> /// <remarks> /// Creates a new pay schedule for the business. /// </remarks> public MyPayScheduleModel CreatePaySchedule(int businessId, MyPayScheduleModel paySchedule) { return(ApiRequest <MyPayScheduleModel, MyPayScheduleModel>($"/business/{businessId}/payschedule", paySchedule, Method.POST)); }