shopoflex-types 1.0.216 → 1.0.218
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 +9 -0
- package/dist/productCart.d.ts +2 -0
- package/package.json +1 -1
package/dist/common.d.ts
CHANGED
|
@@ -134,6 +134,11 @@ export interface PackagingOption {
|
|
|
134
134
|
unitsPerPackage: number;
|
|
135
135
|
barcode?: string;
|
|
136
136
|
}
|
|
137
|
+
export interface AdditionalPrice {
|
|
138
|
+
id: string;
|
|
139
|
+
name: string;
|
|
140
|
+
price: number;
|
|
141
|
+
}
|
|
137
142
|
export interface PriceModel {
|
|
138
143
|
price: number;
|
|
139
144
|
discountedPrice?: number;
|
|
@@ -143,6 +148,7 @@ export interface PriceModel {
|
|
|
143
148
|
minQuantity?: number;
|
|
144
149
|
unit: UnitTypeValue;
|
|
145
150
|
packaging?: PackagingOption[];
|
|
151
|
+
additionalPrices?: AdditionalPrice[];
|
|
146
152
|
}
|
|
147
153
|
export interface Dimensions {
|
|
148
154
|
active: boolean;
|
|
@@ -422,6 +428,7 @@ export interface Vendor {
|
|
|
422
428
|
informative: boolean;
|
|
423
429
|
addToCart?: 'default' | 'whatsapp';
|
|
424
430
|
hidePrice: boolean;
|
|
431
|
+
checkoutBehavior?: 'default' | 'whatsapp';
|
|
425
432
|
};
|
|
426
433
|
template: {
|
|
427
434
|
id: TemplateId;
|
|
@@ -740,12 +747,14 @@ export interface TaxConfig {
|
|
|
740
747
|
show: boolean;
|
|
741
748
|
payer: "vendor" | "customer";
|
|
742
749
|
percentage: number;
|
|
750
|
+
mode?: "flat" | "per_item";
|
|
743
751
|
};
|
|
744
752
|
perCountry?: Record<string, {
|
|
745
753
|
active: boolean;
|
|
746
754
|
show: boolean;
|
|
747
755
|
payer: "vendor" | "customer";
|
|
748
756
|
percentage: number;
|
|
757
|
+
mode?: "flat" | "per_item";
|
|
749
758
|
}>;
|
|
750
759
|
}
|
|
751
760
|
export {};
|
package/dist/productCart.d.ts
CHANGED
|
@@ -47,6 +47,7 @@ export interface VariantType {
|
|
|
47
47
|
}[];
|
|
48
48
|
outputQuantity: number;
|
|
49
49
|
};
|
|
50
|
+
taxEnabled?: boolean;
|
|
50
51
|
}
|
|
51
52
|
export interface VariantAttribute {
|
|
52
53
|
type: string;
|
|
@@ -152,6 +153,7 @@ export interface Cart {
|
|
|
152
153
|
delivery: number;
|
|
153
154
|
total: number;
|
|
154
155
|
tax?: number;
|
|
156
|
+
vendorTax?: number;
|
|
155
157
|
paid?: number;
|
|
156
158
|
cashRounding?: number;
|
|
157
159
|
totalsByUnit?: Record<UnitTypeValue, number>;
|