@final-commerce/common 2.8.1-online.2 → 2.8.1-online.3

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,32 @@ declare enum ShippingChannel {
332
320
  POS = "pos"
333
321
  }
334
322
 
323
+ declare enum TaxProductType {
324
+ STANDARD = "standard",
325
+ BASIC_FOOD = "basic_food",
326
+ CHILDRENS_CLOTHING = "childrens_clothing",
327
+ EXEMPT = "exempt"
328
+ }
329
+ declare enum TaxSource {
330
+ MERCHANT = "merchant",
331
+ AUTOMATIC = "automatic"
332
+ }
333
+
334
+ interface OrderTax {
335
+ name: string;
336
+ taxTableId?: string;
337
+ taxTableName?: string;
338
+ id?: string;
339
+ percentage: number;
340
+ amount: number;
341
+ taxableAmount?: number;
342
+ compounding?: boolean;
343
+ priority?: number;
344
+ source?: TaxSource | `${TaxSource}`;
345
+ code?: string;
346
+ place?: string;
347
+ }
348
+
335
349
  interface OrderShippingLine {
336
350
  type: ShippingOptionType | `${ShippingOptionType}`;
337
351
  name?: string;
@@ -525,6 +539,9 @@ interface OrderLineItem {
525
539
  stockQuantity?: number;
526
540
  unitRatioToBase?: number;
527
541
  stockVariantId?: string;
542
+ taxType?: TaxProductType | `${TaxProductType}` | null;
543
+ taxCategoryIds?: string[];
544
+ taxTableId?: string;
528
545
  }
529
546
 
530
547
  interface OrderCustomSaleDiscount {
@@ -718,6 +735,7 @@ interface Category extends BaseEntity {
718
735
  parentId?: string;
719
736
  menuOrder?: number;
720
737
  source?: string;
738
+ taxType?: TaxProductType | `${TaxProductType}` | null;
721
739
  }
722
740
 
723
741
  interface CompanyExtension extends BaseEntity {
@@ -1001,6 +1019,7 @@ interface Order extends BaseEntity {
1001
1019
  billing?: Address$1;
1002
1020
  shipping?: Address$1;
1003
1021
  shippingLine?: OrderShippingLine;
1022
+ taxPlace?: string;
1004
1023
  lineItems: Partial<OrderLineItem>[];
1005
1024
  customSales?: OrderCustomSale[];
1006
1025
  nonRevenueItems?: NonRevenueItem$1[];
@@ -1055,6 +1074,7 @@ interface Product extends BaseEntity {
1055
1074
  maxPrice?: number;
1056
1075
  supplier?: string;
1057
1076
  taxTable?: string | null;
1077
+ taxType?: TaxProductType | `${TaxProductType}` | null;
1058
1078
  defaultVariantId?: string;
1059
1079
  categories?: string[];
1060
1080
  outlets?: string[];
@@ -1288,6 +1308,9 @@ interface Tax {
1288
1308
  taxTableId: string;
1289
1309
  compounding?: boolean;
1290
1310
  priority?: number;
1311
+ source?: TaxSource | `${TaxSource}`;
1312
+ code?: string;
1313
+ place?: string;
1291
1314
  }
1292
1315
  interface Tip {
1293
1316
  amount: number;
@@ -1540,6 +1563,9 @@ interface LineItem {
1540
1563
  stockQuantity?: number;
1541
1564
  unitRatioToBase?: number;
1542
1565
  stockVariantId?: string;
1566
+ taxType?: TaxProductType | `${TaxProductType}` | null;
1567
+ taxCategoryIds?: string[];
1568
+ taxTableId?: string;
1543
1569
  }
1544
1570
 
1545
1571
  interface TipPayment {
@@ -1785,6 +1811,7 @@ interface FullProduct {
1785
1811
  companyId?: string;
1786
1812
  externalId: string;
1787
1813
  taxTable: string;
1814
+ taxType?: TaxProductType | `${TaxProductType}` | null;
1788
1815
  name: string;
1789
1816
  description?: string;
1790
1817
  shortDescription?: string;
@@ -1901,6 +1928,8 @@ interface ActiveProduct {
1901
1928
  price: number;
1902
1929
  images: string[];
1903
1930
  taxTableId: string;
1931
+ taxType?: TaxProductType | `${TaxProductType}` | null;
1932
+ taxCategoryIds?: string[];
1904
1933
  quantity: number;
1905
1934
  note?: string;
1906
1935
  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,32 @@ declare enum ShippingChannel {
332
320
  POS = "pos"
333
321
  }
334
322
 
323
+ declare enum TaxProductType {
324
+ STANDARD = "standard",
325
+ BASIC_FOOD = "basic_food",
326
+ CHILDRENS_CLOTHING = "childrens_clothing",
327
+ EXEMPT = "exempt"
328
+ }
329
+ declare enum TaxSource {
330
+ MERCHANT = "merchant",
331
+ AUTOMATIC = "automatic"
332
+ }
333
+
334
+ interface OrderTax {
335
+ name: string;
336
+ taxTableId?: string;
337
+ taxTableName?: string;
338
+ id?: string;
339
+ percentage: number;
340
+ amount: number;
341
+ taxableAmount?: number;
342
+ compounding?: boolean;
343
+ priority?: number;
344
+ source?: TaxSource | `${TaxSource}`;
345
+ code?: string;
346
+ place?: string;
347
+ }
348
+
335
349
  interface OrderShippingLine {
336
350
  type: ShippingOptionType | `${ShippingOptionType}`;
337
351
  name?: string;
@@ -525,6 +539,9 @@ interface OrderLineItem {
525
539
  stockQuantity?: number;
526
540
  unitRatioToBase?: number;
527
541
  stockVariantId?: string;
542
+ taxType?: TaxProductType | `${TaxProductType}` | null;
543
+ taxCategoryIds?: string[];
544
+ taxTableId?: string;
528
545
  }
529
546
 
530
547
  interface OrderCustomSaleDiscount {
@@ -718,6 +735,7 @@ interface Category extends BaseEntity {
718
735
  parentId?: string;
719
736
  menuOrder?: number;
720
737
  source?: string;
738
+ taxType?: TaxProductType | `${TaxProductType}` | null;
721
739
  }
722
740
 
723
741
  interface CompanyExtension extends BaseEntity {
@@ -1001,6 +1019,7 @@ interface Order extends BaseEntity {
1001
1019
  billing?: Address$1;
1002
1020
  shipping?: Address$1;
1003
1021
  shippingLine?: OrderShippingLine;
1022
+ taxPlace?: string;
1004
1023
  lineItems: Partial<OrderLineItem>[];
1005
1024
  customSales?: OrderCustomSale[];
1006
1025
  nonRevenueItems?: NonRevenueItem$1[];
@@ -1055,6 +1074,7 @@ interface Product extends BaseEntity {
1055
1074
  maxPrice?: number;
1056
1075
  supplier?: string;
1057
1076
  taxTable?: string | null;
1077
+ taxType?: TaxProductType | `${TaxProductType}` | null;
1058
1078
  defaultVariantId?: string;
1059
1079
  categories?: string[];
1060
1080
  outlets?: string[];
@@ -1288,6 +1308,9 @@ interface Tax {
1288
1308
  taxTableId: string;
1289
1309
  compounding?: boolean;
1290
1310
  priority?: number;
1311
+ source?: TaxSource | `${TaxSource}`;
1312
+ code?: string;
1313
+ place?: string;
1291
1314
  }
1292
1315
  interface Tip {
1293
1316
  amount: number;
@@ -1540,6 +1563,9 @@ interface LineItem {
1540
1563
  stockQuantity?: number;
1541
1564
  unitRatioToBase?: number;
1542
1565
  stockVariantId?: string;
1566
+ taxType?: TaxProductType | `${TaxProductType}` | null;
1567
+ taxCategoryIds?: string[];
1568
+ taxTableId?: string;
1543
1569
  }
1544
1570
 
1545
1571
  interface TipPayment {
@@ -1785,6 +1811,7 @@ interface FullProduct {
1785
1811
  companyId?: string;
1786
1812
  externalId: string;
1787
1813
  taxTable: string;
1814
+ taxType?: TaxProductType | `${TaxProductType}` | null;
1788
1815
  name: string;
1789
1816
  description?: string;
1790
1817
  shortDescription?: string;
@@ -1901,6 +1928,8 @@ interface ActiveProduct {
1901
1928
  price: number;
1902
1929
  images: string[];
1903
1930
  taxTableId: string;
1931
+ taxType?: TaxProductType | `${TaxProductType}` | null;
1932
+ taxCategoryIds?: string[];
1904
1933
  quantity: number;
1905
1934
  note?: string;
1906
1935
  discounts?: Discount[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@final-commerce/common",
3
- "version": "2.8.1-online.2",
3
+ "version": "2.8.1-online.3",
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": {