File size: 922 Bytes
1477a90
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
import "@typespec/http";
import "@typespec/rest";
import "@typespec/openapi";
import "@typespec/openapi3";
import "../common/error.tsp";
import "../shared/index.tsp";
import "./taxcodes.tsp";

using TypeSpec.Http;
using TypeSpec.OpenAPI;

namespace Defaults;

interface OrganizationDefaultTaxCodesOperations {
  @get
  @operationId("get-organization-default-tax-codes")
  @summary("Get organization default tax codes")
  @extension(Shared.UnstableExtension, true)
  get():
    | Shared.GetResponse<OrganizationDefaultTaxCodes>
    | Common.NotFound
    | Common.ErrorResponses;

  @put
  @operationId("update-organization-default-tax-codes")
  @summary("Update organization default tax codes")
  @extension(Shared.UnstableExtension, true)
  update(@body body: Shared.UpdateRequest<OrganizationDefaultTaxCodes>):
    | Shared.UpsertResponse<OrganizationDefaultTaxCodes>
    | Common.NotFound
    | Common.ErrorResponses;
}