Esempio n. 1
0
 /// <summary>
 /// Create Deduction Category
 /// </summary>
 /// <remarks>
 /// Creates a deduction category for the business.
 /// </remarks>
 public Task <SgDeductionCategoryModel> CreateDeductionCategoryAsync(int businessId, SgDeductionCategoryModel deductionCategory, CancellationToken cancellationToken = default)
 {
     return(ApiRequestAsync <SgDeductionCategoryModel, SgDeductionCategoryModel>($"/business/{businessId}/deductioncategory", deductionCategory, Method.POST, cancellationToken));
 }
Esempio n. 2
0
 /// <summary>
 /// Update Deduction Category
 /// </summary>
 /// <remarks>
 /// Updates the deduction category with the specified ID.
 /// </remarks>
 public SgDeductionCategoryModel UpdateDeductionCategory(int businessId, int id, SgDeductionCategoryModel deductionCategory)
 {
     return(ApiRequest <SgDeductionCategoryModel, SgDeductionCategoryModel>($"/business/{businessId}/deductioncategory/{id}", deductionCategory, Method.PUT));
 }
Esempio n. 3
0
 /// <summary>
 /// Create Deduction Category
 /// </summary>
 /// <remarks>
 /// Creates a deduction category for the business.
 /// </remarks>
 public SgDeductionCategoryModel CreateDeductionCategory(int businessId, SgDeductionCategoryModel deductionCategory)
 {
     return(ApiRequest <SgDeductionCategoryModel, SgDeductionCategoryModel>($"/business/{businessId}/deductioncategory", deductionCategory, Method.POST));
 }