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