コード例 #1
0
 /// <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));
 }
コード例 #2
0
 /// <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));
 }
コード例 #3
0
 /// <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));
 }