@final-commerce/common 2.11.0 → 2.11.1-online.1

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.
@@ -38,18 +38,6 @@ interface VariantInventory {
38
38
  outletId: string;
39
39
  }
40
40
 
41
- interface OrderTax {
42
- name: string;
43
- taxTableId?: string;
44
- taxTableName?: string;
45
- id?: string;
46
- percentage: number;
47
- amount: number;
48
- taxableAmount?: number;
49
- compounding?: boolean;
50
- priority?: number;
51
- }
52
-
53
41
  declare enum CurrencyCode {
54
42
  USD = "USD",
55
43
  EUR = "EUR",
@@ -332,6 +320,26 @@ declare enum ShippingChannel {
332
320
  POS = "pos"
333
321
  }
334
322
 
323
+ declare enum TaxSource {
324
+ MERCHANT = "merchant",
325
+ AUTOMATIC = "automatic"
326
+ }
327
+
328
+ interface OrderTax {
329
+ name: string;
330
+ taxTableId?: string;
331
+ taxTableName?: string;
332
+ id?: string;
333
+ percentage: number;
334
+ amount: number;
335
+ taxableAmount?: number;
336
+ compounding?: boolean;
337
+ priority?: number;
338
+ source?: TaxSource | `${TaxSource}`;
339
+ code?: string;
340
+ place?: string;
341
+ }
342
+
335
343
  interface OrderShippingLine {
336
344
  type: ShippingOptionType | `${ShippingOptionType}`;
337
345
  name?: string;
@@ -529,6 +537,9 @@ interface OrderLineItem {
529
537
  stockQuantity?: number;
530
538
  unitRatioToBase?: number;
531
539
  stockVariantId?: string;
540
+ taxType?: string | null;
541
+ taxCategoryIds?: string[];
542
+ taxTableId?: string;
532
543
  }
533
544
 
534
545
  interface OrderCustomSaleDiscount {
@@ -724,6 +735,7 @@ interface Category extends BaseEntity {
724
735
  parentId?: string;
725
736
  menuOrder?: number;
726
737
  source?: string;
738
+ taxType?: string | null;
727
739
  }
728
740
 
729
741
  interface CompanyExtension extends BaseEntity {
@@ -1007,6 +1019,8 @@ interface Order extends BaseEntity {
1007
1019
  billing?: Address$1;
1008
1020
  shipping?: Address$1;
1009
1021
  shippingLine?: OrderShippingLine;
1022
+ taxPlace?: string;
1023
+ taxTableVersion?: string;
1010
1024
  lineItems: Partial<OrderLineItem>[];
1011
1025
  customSales?: OrderCustomSale[];
1012
1026
  nonRevenueItems?: NonRevenueItem$1[];
@@ -1061,6 +1075,7 @@ interface Product extends BaseEntity {
1061
1075
  maxPrice?: number;
1062
1076
  supplier?: string;
1063
1077
  taxTable?: string | null;
1078
+ taxType?: string | null;
1064
1079
  defaultVariantId?: string;
1065
1080
  categories?: string[];
1066
1081
  outlets?: string[];
@@ -1294,6 +1309,9 @@ interface Tax {
1294
1309
  taxTableId: string;
1295
1310
  compounding?: boolean;
1296
1311
  priority?: number;
1312
+ source?: TaxSource | `${TaxSource}`;
1313
+ code?: string;
1314
+ place?: string;
1297
1315
  }
1298
1316
  interface Tip {
1299
1317
  amount: number;
@@ -1547,6 +1565,9 @@ interface LineItem {
1547
1565
  stockQuantity?: number;
1548
1566
  unitRatioToBase?: number;
1549
1567
  stockVariantId?: string;
1568
+ taxType?: string | null;
1569
+ taxCategoryIds?: string[];
1570
+ taxTableId?: string;
1550
1571
  }
1551
1572
 
1552
1573
  interface TipPayment {
@@ -1795,6 +1816,7 @@ interface FullProduct {
1795
1816
  companyId?: string;
1796
1817
  externalId: string;
1797
1818
  taxTable: string;
1819
+ taxType?: string | null;
1798
1820
  name: string;
1799
1821
  description?: string;
1800
1822
  shortDescription?: string;
@@ -1911,6 +1933,8 @@ interface ActiveProduct {
1911
1933
  price: number;
1912
1934
  images: string[];
1913
1935
  taxTableId: string;
1936
+ taxType?: string | null;
1937
+ taxCategoryIds?: string[];
1914
1938
  quantity: number;
1915
1939
  note?: string;
1916
1940
  discounts?: Discount[];
@@ -38,18 +38,6 @@ interface VariantInventory {
38
38
  outletId: string;
39
39
  }
40
40
 
41
- interface OrderTax {
42
- name: string;
43
- taxTableId?: string;
44
- taxTableName?: string;
45
- id?: string;
46
- percentage: number;
47
- amount: number;
48
- taxableAmount?: number;
49
- compounding?: boolean;
50
- priority?: number;
51
- }
52
-
53
41
  declare enum CurrencyCode {
54
42
  USD = "USD",
55
43
  EUR = "EUR",
@@ -332,6 +320,26 @@ declare enum ShippingChannel {
332
320
  POS = "pos"
333
321
  }
334
322
 
323
+ declare enum TaxSource {
324
+ MERCHANT = "merchant",
325
+ AUTOMATIC = "automatic"
326
+ }
327
+
328
+ interface OrderTax {
329
+ name: string;
330
+ taxTableId?: string;
331
+ taxTableName?: string;
332
+ id?: string;
333
+ percentage: number;
334
+ amount: number;
335
+ taxableAmount?: number;
336
+ compounding?: boolean;
337
+ priority?: number;
338
+ source?: TaxSource | `${TaxSource}`;
339
+ code?: string;
340
+ place?: string;
341
+ }
342
+
335
343
  interface OrderShippingLine {
336
344
  type: ShippingOptionType | `${ShippingOptionType}`;
337
345
  name?: string;
@@ -529,6 +537,9 @@ interface OrderLineItem {
529
537
  stockQuantity?: number;
530
538
  unitRatioToBase?: number;
531
539
  stockVariantId?: string;
540
+ taxType?: string | null;
541
+ taxCategoryIds?: string[];
542
+ taxTableId?: string;
532
543
  }
533
544
 
534
545
  interface OrderCustomSaleDiscount {
@@ -724,6 +735,7 @@ interface Category extends BaseEntity {
724
735
  parentId?: string;
725
736
  menuOrder?: number;
726
737
  source?: string;
738
+ taxType?: string | null;
727
739
  }
728
740
 
729
741
  interface CompanyExtension extends BaseEntity {
@@ -1007,6 +1019,8 @@ interface Order extends BaseEntity {
1007
1019
  billing?: Address$1;
1008
1020
  shipping?: Address$1;
1009
1021
  shippingLine?: OrderShippingLine;
1022
+ taxPlace?: string;
1023
+ taxTableVersion?: string;
1010
1024
  lineItems: Partial<OrderLineItem>[];
1011
1025
  customSales?: OrderCustomSale[];
1012
1026
  nonRevenueItems?: NonRevenueItem$1[];
@@ -1061,6 +1075,7 @@ interface Product extends BaseEntity {
1061
1075
  maxPrice?: number;
1062
1076
  supplier?: string;
1063
1077
  taxTable?: string | null;
1078
+ taxType?: string | null;
1064
1079
  defaultVariantId?: string;
1065
1080
  categories?: string[];
1066
1081
  outlets?: string[];
@@ -1294,6 +1309,9 @@ interface Tax {
1294
1309
  taxTableId: string;
1295
1310
  compounding?: boolean;
1296
1311
  priority?: number;
1312
+ source?: TaxSource | `${TaxSource}`;
1313
+ code?: string;
1314
+ place?: string;
1297
1315
  }
1298
1316
  interface Tip {
1299
1317
  amount: number;
@@ -1547,6 +1565,9 @@ interface LineItem {
1547
1565
  stockQuantity?: number;
1548
1566
  unitRatioToBase?: number;
1549
1567
  stockVariantId?: string;
1568
+ taxType?: string | null;
1569
+ taxCategoryIds?: string[];
1570
+ taxTableId?: string;
1550
1571
  }
1551
1572
 
1552
1573
  interface TipPayment {
@@ -1795,6 +1816,7 @@ interface FullProduct {
1795
1816
  companyId?: string;
1796
1817
  externalId: string;
1797
1818
  taxTable: string;
1819
+ taxType?: string | null;
1798
1820
  name: string;
1799
1821
  description?: string;
1800
1822
  shortDescription?: string;
@@ -1911,6 +1933,8 @@ interface ActiveProduct {
1911
1933
  price: number;
1912
1934
  images: string[];
1913
1935
  taxTableId: string;
1936
+ taxType?: string | null;
1937
+ taxCategoryIds?: string[];
1914
1938
  quantity: number;
1915
1939
  note?: string;
1916
1940
  discounts?: Discount[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@final-commerce/common",
3
- "version": "2.11.0",
3
+ "version": "2.11.1-online.1",
4
4
  "description": "Shared utilities, types, constants, and engineering governance configs for the Final Commerce platform.",
5
5
  "homepage": "https://github.com/Final-Commerce/common#readme",
6
6
  "bugs": {