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