shopoflex-types 1.0.241 → 1.0.245

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.
package/dist/common.d.ts CHANGED
@@ -484,8 +484,8 @@ export interface Vendor {
484
484
  }[];
485
485
  /** POS-to-POS inter-branch item request settings (opt-in, off by default). */
486
486
  posStockTransfer?: import('./interBranchRequest').PosStockTransferSettings;
487
- getTaxConfig(country?: string): TaxSettings;
488
- calculateTax(subtotal: number, country?: string): {
487
+ getTaxConfig(country?: string, branchId?: string): TaxSettings;
488
+ calculateTax(subtotal: number, country?: string, branchId?: string): {
489
489
  taxAmount: number;
490
490
  taxConfig: TaxSettings;
491
491
  taxIncludedInTotal: boolean;
@@ -719,6 +719,8 @@ export interface IBranch {
719
719
  showCost?: boolean;
720
720
  preventSessionCloseIfOpenCarts?: boolean;
721
721
  autoLockPosOnInit?: boolean;
722
+ requireKitchenPrintBeforeReceipt?: boolean;
723
+ requireReceiptPrintBeforeCheckout?: boolean;
722
724
  }
723
725
  export interface PaginationQuery {
724
726
  page?: string;
@@ -794,5 +796,17 @@ export interface TaxConfig {
794
796
  percentage: number;
795
797
  mode?: "flat" | "per_item";
796
798
  }>;
799
+ /**
800
+ * Per-branch tax overrides, keyed by branch `_id`. When a branch has an entry
801
+ * here it fully replaces the resolved `fixed`/`perCountry` rule for that branch.
802
+ * Branches without an entry fall back to the global config (backward compatible).
803
+ */
804
+ taxByBranch?: Record<string, {
805
+ active: boolean;
806
+ show: boolean;
807
+ payer: "vendor" | "customer";
808
+ percentage: number;
809
+ mode?: "flat" | "per_item";
810
+ }>;
797
811
  }
798
812
  export {};
@@ -220,6 +220,7 @@ export interface Cart {
220
220
  tax?: number;
221
221
  vendorTax?: number;
222
222
  paid?: number;
223
+ refundedAmount?: number;
223
224
  cashRounding?: number;
224
225
  totalsByUnit?: Record<UnitTypeValue, number>;
225
226
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shopoflex-types",
3
- "version": "1.0.241",
3
+ "version": "1.0.245",
4
4
  "description": "Shared TypeScript types for Shopoflex applications",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",