/// <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)); }
/// <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)); }
/// <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)); }