예제 #1
0
 /// <summary>
 /// Create Pay Category
 /// </summary>
 /// <remarks>
 /// Creates a new pay category for the business.
 /// </remarks>
 public Task <MyPayCategoryModel> CreatePayCategoryAsync(int businessId, MyPayCategoryModel payCategory, CancellationToken cancellationToken = default)
 {
     return(ApiRequestAsync <MyPayCategoryModel, MyPayCategoryModel>($"/business/{businessId}/paycategory", payCategory, Method.POST, cancellationToken));
 }
예제 #2
0
 /// <summary>
 /// Update Pay Category
 /// </summary>
 /// <remarks>
 /// Updates the pay category with the specified ID.
 /// </remarks>
 public MyPayCategoryModel UpdatePayCategory(int businessId, int id, MyPayCategoryModel payCategory)
 {
     return(ApiRequest <MyPayCategoryModel, MyPayCategoryModel>($"/business/{businessId}/paycategory/{id}", payCategory, Method.PUT));
 }
예제 #3
0
 /// <summary>
 /// Create Pay Category
 /// </summary>
 /// <remarks>
 /// Creates a new pay category for the business.
 /// </remarks>
 public MyPayCategoryModel CreatePayCategory(int businessId, MyPayCategoryModel payCategory)
 {
     return(ApiRequest <MyPayCategoryModel, MyPayCategoryModel>($"/business/{businessId}/paycategory", payCategory, Method.POST));
 }