-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathITaxCodeProvider.cs
42 lines (39 loc) · 1.1 KB
/
ITaxCodeProvider.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace OrderCloud.Catalyst
{
/// <summary>
/// An interface to define tax categorization for products. Meant to be used as part of product create and edit.
/// </summary>
public interface ITaxCodesProvider
{
/// <summary>
/// List the various tax categories a product could fall under
/// </summary>
Task<TaxCategorizationResponse> ListTaxCodesAsync(string filterTerm, OCIntegrationConfig configOverride = null);
}
public class TaxCategorizationResponse
{
public List<TaxCategorization> Categories { get; set; }
}
/// <summary>
/// A Tax categorization for a product
/// </summary>
public class TaxCategorization
{
/// <summary>
/// A code that represents this categorization
/// </summary>
public string Code { get; set; }
/// <summary>
/// A reasonable short name for this categorization
/// </summary>
public string Description { get; set; }
/// <summary>
/// A full description for this categorization
/// </summary>
public string LongDescription { get; set; }
}
}