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