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