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