@open-tender/types 0.4.41 → 0.4.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,15 +1,15 @@
1
1
  import { Money, SurchargeType } from '../global';
2
2
  export interface Surcharge {
3
- id: number;
4
- name: string;
5
- surcharge_type: SurchargeType;
6
- position: number;
7
3
  amount: Money;
8
- min_amount: Money;
9
- max_amount: Money;
4
+ id: number;
10
5
  is_active: boolean;
11
6
  is_taxed: boolean;
7
+ max_amount: Money;
8
+ min_amount: Money;
9
+ name: string;
10
+ position: number;
12
11
  requires_approval: boolean;
12
+ surcharge_type: SurchargeType;
13
13
  version: number;
14
14
  }
15
- export declare type Surcharges = Array<Surcharge>;
15
+ export declare type Surcharges = Surcharge[];
@@ -1,15 +1,15 @@
1
1
  import { Money, OrderType, ServiceType, TaxType } from '../global';
2
2
  export interface Tax {
3
+ amount: Money;
3
4
  id: number;
5
+ max_amount: Money;
6
+ min_amount: Money;
4
7
  name: string;
5
- tax_type: TaxType;
8
+ order_type: OrderType | null;
6
9
  position: number;
7
- amount: Money;
8
- min_amount: Money;
9
- max_amount: Money;
10
10
  requires_approval: boolean;
11
11
  service_type: ServiceType | null;
12
- order_type: OrderType | null;
12
+ tax_type: TaxType;
13
13
  version: number;
14
14
  }
15
- export declare type Taxes = Array<Tax>;
15
+ export declare type Taxes = Tax[];
@@ -1,15 +1,15 @@
1
1
  import { Money, SurchargeType } from '../global';
2
2
  export interface Surcharge {
3
- id: number;
4
- name: string;
5
- surcharge_type: SurchargeType;
6
- position: number;
7
3
  amount: Money;
8
- min_amount: Money;
9
- max_amount: Money;
4
+ id: number;
10
5
  is_active: boolean;
11
6
  is_taxed: boolean;
7
+ max_amount: Money;
8
+ min_amount: Money;
9
+ name: string;
10
+ position: number;
12
11
  requires_approval: boolean;
12
+ surcharge_type: SurchargeType;
13
13
  version: number;
14
14
  }
15
- export declare type Surcharges = Array<Surcharge>;
15
+ export declare type Surcharges = Surcharge[];
@@ -1,15 +1,15 @@
1
1
  import { Money, OrderType, ServiceType, TaxType } from '../global';
2
2
  export interface Tax {
3
+ amount: Money;
3
4
  id: number;
5
+ max_amount: Money;
6
+ min_amount: Money;
4
7
  name: string;
5
- tax_type: TaxType;
8
+ order_type: OrderType | null;
6
9
  position: number;
7
- amount: Money;
8
- min_amount: Money;
9
- max_amount: Money;
10
10
  requires_approval: boolean;
11
11
  service_type: ServiceType | null;
12
- order_type: OrderType | null;
12
+ tax_type: TaxType;
13
13
  version: number;
14
14
  }
15
- export declare type Taxes = Array<Tax>;
15
+ export declare type Taxes = Tax[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/types",
3
- "version": "0.4.41",
3
+ "version": "0.4.42",
4
4
  "description": "A library of types for use with Open Tender applications that utilize our cloud-based Order API.",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",
package/dist/.DS_Store DELETED
Binary file