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