@mailbiz/onsite-yampi-vendor 0.1.3 → 0.1.4

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.
@@ -124,9 +124,11 @@ interface YampiCategoryData {
124
124
  active: boolean;
125
125
  url_path: string;
126
126
  }
127
+ type YampiCheckoutContextCart = YampiCheckoutCart | [
128
+ ];
127
129
  interface YampiCheckoutContext {
128
130
  referrer_url?: string;
129
- cart?: YampiCheckoutCart;
131
+ cart?: YampiCheckoutContextCart;
130
132
  state?: {
131
133
  updateDomAfterInstallmentLoad?: boolean;
132
134
  eventsInitialized?: boolean;
@@ -159,13 +161,13 @@ interface YampiCheckoutCart {
159
161
  }
160
162
  interface YampiCheckoutPrices {
161
163
  items_amount: number;
162
- total_items: string;
164
+ total_items: string | number;
163
165
  subtotal: number;
164
166
  discount: number;
165
167
  discount_without_wallet: number;
166
168
  items_discount: number;
167
169
  shipment: number;
168
- shipment_original_value: number | null;
170
+ shipment_original_value: string | number | null;
169
171
  shipment_discount_value?: number;
170
172
  shipment_discount_percent?: string;
171
173
  promocode_discount_value?: number;
@@ -313,6 +315,15 @@ interface YampiCheckoutCartItem {
313
315
  simple: number;
314
316
  brand?: YampiBrand;
315
317
  };
318
+ stocks?: Array<{
319
+ id: number;
320
+ option_id: number;
321
+ stock_id: number;
322
+ quantity: number;
323
+ min_quantity: number;
324
+ created_at: string;
325
+ updated_at: string;
326
+ }>;
316
327
  };
317
328
  discounts?: unknown[];
318
329
  }