@gomusdev/web-components 1.20.1 → 1.22.0
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-js/components/cart/mocks/gomusTicketMocks.d.ts +107 -10
- package/dist-js/components/cart/mocks/testCart.d.ts +1 -1
- package/dist-js/components/link/Link.svelte.d.ts +1 -0
- package/dist-js/components/link/entry.d.ts +0 -0
- package/dist-js/components/ticketSelection/TicketSelectionDetails.svelte.d.ts +6 -7
- package/dist-js/components/ticketSelection/subcomponents/calendar/lib/calendar.svelte.d.ts +24 -8
- package/dist-js/components/ticketSelection/subcomponents/tickets/subcomponents/segment/TicketSegment.svelte.d.ts +1 -767
- package/dist-js/components/ticketSelection/subcomponents/tickets/subcomponents/segment/TicketSegmentDetails.svelte.d.ts +1027 -0
- package/dist-js/components/ticketSelection/subcomponents/tickets/subcomponents/utils.svelte.d.ts +2 -7
- package/dist-js/gomus-webcomponents.css +9 -2
- package/dist-js/gomus-webcomponents.iife.js +757 -482
- package/dist-js/gomus-webcomponents.js +757 -482
- package/dist-js/lib/helpers/context.svelte.d.ts +1 -0
- package/dist-js/lib/models/cart/CartEvents.svelte.d.ts +1 -0
- package/dist-js/lib/models/cart/CartItem.d.ts +37 -0
- package/dist-js/lib/models/cart/cart.svelte.d.ts +191 -0
- package/dist-js/lib/models/cart/localStorage.spec.d.ts +1 -0
- package/dist-js/lib/models/cart/localStorage.svelte.d.ts +46 -0
- package/dist-js/lib/models/cart/selectOptions.d.ts +10 -0
- package/dist-js/lib/models/cart/selectOptions.spec.d.ts +1 -0
- package/dist-js/lib/models/cart/types.d.ts +13 -0
- package/dist-js/lib/models/scalePrice/UIScaledPrice.spec.d.ts +1 -0
- package/dist-js/lib/models/scalePrice/UIScaledPrice.svelte.d.ts +51 -0
- package/dist-js/lib/models/ticket/UITicket.spec.d.ts +1 -0
- package/dist-js/lib/{gomusTicket.svelte.d.ts → models/ticket/UITicket.svelte.d.ts} +109 -11
- package/dist-js/lib/stores/shop.svelte.d.ts +41 -0
- package/dist-js/lib/vitest/msw/handlers.d.ts +1 -1
- package/dist-js/mocks/MSWMocks.d.ts +3 -0
- package/dist-js/mocks/ScalingPricesMocks.d.ts +24 -0
- package/dist-js/mocks/mocks.d.ts +1324 -695
- package/package.json +1 -1
- package/dist-js/components/cart/lib/CartEvents.svelte.d.ts +0 -1
- package/dist-js/components/cart/lib/CartItem.d.ts +0 -135
- package/dist-js/components/cart/lib/cart.svelte.d.ts +0 -616
- package/dist-js/components/cart/lib/localStorage.svelte.d.ts +0 -146
- /package/dist-js/components/{cart/lib/CartEvents.spec.d.ts → link/Link.spec.d.ts} +0 -0
- /package/dist-js/components/{cart/lib/cart.svelte.spec.d.ts → ticketSelection/subcomponents/tickets/subcomponents/segment/TicketSegment.spec.d.ts} +0 -0
- /package/dist-js/{components/cart/lib/localStorage.spec.d.ts → lib/models/cart/CartEvents.spec.d.ts} +0 -0
- /package/dist-js/lib/{gomusTicket.spec.d.ts → models/cart/cart.svelte.spec.d.ts} +0 -0
package/dist-js/mocks/mocks.d.ts
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
|
+
import { UITicketType } from '../lib/models/ticket/UITicket.svelte.ts';
|
|
1
2
|
export declare const UITimeslotTicketsMocks: {
|
|
2
|
-
uiTicket1: {
|
|
3
|
-
|
|
3
|
+
uiTicket1: () => {
|
|
4
|
+
product_type: import('../lib/models/cart/types').ProductType;
|
|
5
|
+
type: UITicketType;
|
|
4
6
|
shop_order: number;
|
|
5
|
-
max_capacity: number;
|
|
6
|
-
min_quantity: number;
|
|
7
|
-
max_quantity: number;
|
|
8
7
|
minAvailableCapacity: number;
|
|
9
8
|
selectedTime: string;
|
|
10
|
-
quantity: number;
|
|
11
9
|
id: number;
|
|
12
10
|
title: string;
|
|
13
11
|
ticket_type: "time_slot" | "annual" | "normal";
|
|
@@ -53,20 +51,120 @@ export declare const UITimeslotTicketsMocks: {
|
|
|
53
51
|
total_capacities: {
|
|
54
52
|
[key: string]: number;
|
|
55
53
|
};
|
|
54
|
+
max_capacity: number;
|
|
56
55
|
max_total_capacity: number;
|
|
57
56
|
dynamic_prices: {
|
|
58
57
|
[key: string]: number;
|
|
59
58
|
} | null;
|
|
60
59
|
uid: number;
|
|
61
60
|
} | {
|
|
62
|
-
|
|
61
|
+
product_type: import('../lib/models/cart/types').ProductType;
|
|
62
|
+
type: UITicketType;
|
|
63
63
|
shop_order: number;
|
|
64
|
+
id: number;
|
|
65
|
+
title: string;
|
|
66
|
+
ticket_type: "time_slot" | "annual" | "normal";
|
|
67
|
+
bookable: boolean;
|
|
68
|
+
museum_ids: number[];
|
|
69
|
+
exhibition_ids: number[];
|
|
70
|
+
price_cents: number;
|
|
71
|
+
discount: number;
|
|
72
|
+
vat_pct: number;
|
|
73
|
+
tax_included: boolean;
|
|
74
|
+
entry_duration: number | null;
|
|
75
|
+
min_persons: number;
|
|
76
|
+
max_persons: number;
|
|
77
|
+
quota_ids: number[];
|
|
78
|
+
first_entry: number;
|
|
79
|
+
last_entry: number;
|
|
80
|
+
personalizeable: boolean;
|
|
81
|
+
attendees: boolean | string;
|
|
82
|
+
identification: boolean | string;
|
|
83
|
+
free_timing: boolean;
|
|
84
|
+
is_collective: boolean;
|
|
85
|
+
is_upgrade: boolean;
|
|
86
|
+
is_mantle: boolean;
|
|
87
|
+
description: string | null;
|
|
88
|
+
sub_ticket_ids: number[];
|
|
89
|
+
sub_tickets: {
|
|
90
|
+
[key: string]: {
|
|
91
|
+
title?: string;
|
|
92
|
+
min_persons?: number;
|
|
93
|
+
max_persons?: number;
|
|
94
|
+
description?: string | null;
|
|
95
|
+
};
|
|
96
|
+
} | null;
|
|
97
|
+
is_sub_ticket: boolean;
|
|
98
|
+
created_at: string;
|
|
99
|
+
updated_at: string;
|
|
100
|
+
shipped_with_merchandise_id: number | null;
|
|
101
|
+
restricted_shop_account: boolean;
|
|
102
|
+
cash_point_order: number;
|
|
103
|
+
capacities: {
|
|
104
|
+
[key: string]: number;
|
|
105
|
+
};
|
|
106
|
+
total_capacities: {
|
|
107
|
+
[key: string]: number;
|
|
108
|
+
};
|
|
64
109
|
max_capacity: number;
|
|
65
|
-
|
|
66
|
-
|
|
110
|
+
max_total_capacity: number;
|
|
111
|
+
dynamic_prices: {
|
|
112
|
+
[key: string]: number;
|
|
113
|
+
} | null;
|
|
114
|
+
uid: number;
|
|
115
|
+
} | {
|
|
116
|
+
product_type: import('../lib/models/cart/types').ProductType;
|
|
117
|
+
type: UITicketType;
|
|
118
|
+
shop_order: number;
|
|
67
119
|
minAvailableCapacity: number;
|
|
68
120
|
selectedTime: string;
|
|
69
|
-
|
|
121
|
+
id: number;
|
|
122
|
+
title: string;
|
|
123
|
+
ticket_type: "time_slot" | "annual" | "normal";
|
|
124
|
+
bookable: boolean;
|
|
125
|
+
museum_ids: number[];
|
|
126
|
+
exhibition_ids: number[];
|
|
127
|
+
price_cents: number;
|
|
128
|
+
discount: number;
|
|
129
|
+
vat_pct: number;
|
|
130
|
+
tax_included: boolean;
|
|
131
|
+
entry_duration: number | null;
|
|
132
|
+
min_persons: number;
|
|
133
|
+
max_persons: number;
|
|
134
|
+
quota_ids: number[];
|
|
135
|
+
first_entry: number;
|
|
136
|
+
last_entry: number;
|
|
137
|
+
personalizeable: boolean;
|
|
138
|
+
attendees: boolean | string;
|
|
139
|
+
identification: boolean | string;
|
|
140
|
+
free_timing: boolean;
|
|
141
|
+
is_collective: boolean;
|
|
142
|
+
is_upgrade: boolean;
|
|
143
|
+
is_mantle: boolean;
|
|
144
|
+
description: string | null;
|
|
145
|
+
sub_ticket_ids: number[];
|
|
146
|
+
sub_tickets: {
|
|
147
|
+
[key: string]: {
|
|
148
|
+
title?: string;
|
|
149
|
+
min_persons?: number;
|
|
150
|
+
max_persons?: number;
|
|
151
|
+
description?: string | null;
|
|
152
|
+
};
|
|
153
|
+
} | null;
|
|
154
|
+
is_sub_ticket: boolean;
|
|
155
|
+
created_at: string;
|
|
156
|
+
updated_at: string;
|
|
157
|
+
shipped_with_merchandise_id: number | null;
|
|
158
|
+
restricted_shop_account: boolean;
|
|
159
|
+
cash_point_order: number;
|
|
160
|
+
dynamic_prices: {
|
|
161
|
+
[key: string]: number;
|
|
162
|
+
} | null;
|
|
163
|
+
uid: number;
|
|
164
|
+
} | {
|
|
165
|
+
product_type: import('../lib/models/cart/types').ProductType;
|
|
166
|
+
type: UITicketType;
|
|
167
|
+
shop_order: number;
|
|
70
168
|
id: number;
|
|
71
169
|
title: string;
|
|
72
170
|
ticket_type: "time_slot" | "annual" | "normal";
|
|
@@ -111,15 +209,12 @@ export declare const UITimeslotTicketsMocks: {
|
|
|
111
209
|
} | null;
|
|
112
210
|
uid: number;
|
|
113
211
|
};
|
|
114
|
-
uiTicket2: {
|
|
115
|
-
|
|
212
|
+
uiTicket2: () => {
|
|
213
|
+
product_type: import('../lib/models/cart/types').ProductType;
|
|
214
|
+
type: UITicketType;
|
|
116
215
|
shop_order: number;
|
|
117
|
-
max_capacity: number;
|
|
118
|
-
min_quantity: number;
|
|
119
|
-
max_quantity: number;
|
|
120
216
|
minAvailableCapacity: number;
|
|
121
217
|
selectedTime: string;
|
|
122
|
-
quantity: number;
|
|
123
218
|
id: number;
|
|
124
219
|
title: string;
|
|
125
220
|
ticket_type: "time_slot" | "annual" | "normal";
|
|
@@ -165,20 +260,120 @@ export declare const UITimeslotTicketsMocks: {
|
|
|
165
260
|
total_capacities: {
|
|
166
261
|
[key: string]: number;
|
|
167
262
|
};
|
|
263
|
+
max_capacity: number;
|
|
168
264
|
max_total_capacity: number;
|
|
169
265
|
dynamic_prices: {
|
|
170
266
|
[key: string]: number;
|
|
171
267
|
} | null;
|
|
172
268
|
uid: number;
|
|
173
269
|
} | {
|
|
174
|
-
|
|
270
|
+
product_type: import('../lib/models/cart/types').ProductType;
|
|
271
|
+
type: UITicketType;
|
|
175
272
|
shop_order: number;
|
|
273
|
+
id: number;
|
|
274
|
+
title: string;
|
|
275
|
+
ticket_type: "time_slot" | "annual" | "normal";
|
|
276
|
+
bookable: boolean;
|
|
277
|
+
museum_ids: number[];
|
|
278
|
+
exhibition_ids: number[];
|
|
279
|
+
price_cents: number;
|
|
280
|
+
discount: number;
|
|
281
|
+
vat_pct: number;
|
|
282
|
+
tax_included: boolean;
|
|
283
|
+
entry_duration: number | null;
|
|
284
|
+
min_persons: number;
|
|
285
|
+
max_persons: number;
|
|
286
|
+
quota_ids: number[];
|
|
287
|
+
first_entry: number;
|
|
288
|
+
last_entry: number;
|
|
289
|
+
personalizeable: boolean;
|
|
290
|
+
attendees: boolean | string;
|
|
291
|
+
identification: boolean | string;
|
|
292
|
+
free_timing: boolean;
|
|
293
|
+
is_collective: boolean;
|
|
294
|
+
is_upgrade: boolean;
|
|
295
|
+
is_mantle: boolean;
|
|
296
|
+
description: string | null;
|
|
297
|
+
sub_ticket_ids: number[];
|
|
298
|
+
sub_tickets: {
|
|
299
|
+
[key: string]: {
|
|
300
|
+
title?: string;
|
|
301
|
+
min_persons?: number;
|
|
302
|
+
max_persons?: number;
|
|
303
|
+
description?: string | null;
|
|
304
|
+
};
|
|
305
|
+
} | null;
|
|
306
|
+
is_sub_ticket: boolean;
|
|
307
|
+
created_at: string;
|
|
308
|
+
updated_at: string;
|
|
309
|
+
shipped_with_merchandise_id: number | null;
|
|
310
|
+
restricted_shop_account: boolean;
|
|
311
|
+
cash_point_order: number;
|
|
312
|
+
capacities: {
|
|
313
|
+
[key: string]: number;
|
|
314
|
+
};
|
|
315
|
+
total_capacities: {
|
|
316
|
+
[key: string]: number;
|
|
317
|
+
};
|
|
176
318
|
max_capacity: number;
|
|
177
|
-
|
|
178
|
-
|
|
319
|
+
max_total_capacity: number;
|
|
320
|
+
dynamic_prices: {
|
|
321
|
+
[key: string]: number;
|
|
322
|
+
} | null;
|
|
323
|
+
uid: number;
|
|
324
|
+
} | {
|
|
325
|
+
product_type: import('../lib/models/cart/types').ProductType;
|
|
326
|
+
type: UITicketType;
|
|
327
|
+
shop_order: number;
|
|
179
328
|
minAvailableCapacity: number;
|
|
180
329
|
selectedTime: string;
|
|
181
|
-
|
|
330
|
+
id: number;
|
|
331
|
+
title: string;
|
|
332
|
+
ticket_type: "time_slot" | "annual" | "normal";
|
|
333
|
+
bookable: boolean;
|
|
334
|
+
museum_ids: number[];
|
|
335
|
+
exhibition_ids: number[];
|
|
336
|
+
price_cents: number;
|
|
337
|
+
discount: number;
|
|
338
|
+
vat_pct: number;
|
|
339
|
+
tax_included: boolean;
|
|
340
|
+
entry_duration: number | null;
|
|
341
|
+
min_persons: number;
|
|
342
|
+
max_persons: number;
|
|
343
|
+
quota_ids: number[];
|
|
344
|
+
first_entry: number;
|
|
345
|
+
last_entry: number;
|
|
346
|
+
personalizeable: boolean;
|
|
347
|
+
attendees: boolean | string;
|
|
348
|
+
identification: boolean | string;
|
|
349
|
+
free_timing: boolean;
|
|
350
|
+
is_collective: boolean;
|
|
351
|
+
is_upgrade: boolean;
|
|
352
|
+
is_mantle: boolean;
|
|
353
|
+
description: string | null;
|
|
354
|
+
sub_ticket_ids: number[];
|
|
355
|
+
sub_tickets: {
|
|
356
|
+
[key: string]: {
|
|
357
|
+
title?: string;
|
|
358
|
+
min_persons?: number;
|
|
359
|
+
max_persons?: number;
|
|
360
|
+
description?: string | null;
|
|
361
|
+
};
|
|
362
|
+
} | null;
|
|
363
|
+
is_sub_ticket: boolean;
|
|
364
|
+
created_at: string;
|
|
365
|
+
updated_at: string;
|
|
366
|
+
shipped_with_merchandise_id: number | null;
|
|
367
|
+
restricted_shop_account: boolean;
|
|
368
|
+
cash_point_order: number;
|
|
369
|
+
dynamic_prices: {
|
|
370
|
+
[key: string]: number;
|
|
371
|
+
} | null;
|
|
372
|
+
uid: number;
|
|
373
|
+
} | {
|
|
374
|
+
product_type: import('../lib/models/cart/types').ProductType;
|
|
375
|
+
type: UITicketType;
|
|
376
|
+
shop_order: number;
|
|
182
377
|
id: number;
|
|
183
378
|
title: string;
|
|
184
379
|
ticket_type: "time_slot" | "annual" | "normal";
|
|
@@ -227,7 +422,7 @@ export declare const UITimeslotTicketsMocks: {
|
|
|
227
422
|
export declare const ApiTimeslotTicketMocks: {
|
|
228
423
|
ticket1: {
|
|
229
424
|
id: number;
|
|
230
|
-
ticket_type:
|
|
425
|
+
ticket_type: "time_slot";
|
|
231
426
|
title: string;
|
|
232
427
|
description: string;
|
|
233
428
|
min_persons: number;
|
|
@@ -287,7 +482,7 @@ export declare const ApiTimeslotTicketMocks: {
|
|
|
287
482
|
id: number;
|
|
288
483
|
title: string;
|
|
289
484
|
description: string;
|
|
290
|
-
ticket_type:
|
|
485
|
+
ticket_type: "time_slot";
|
|
291
486
|
quantity: number;
|
|
292
487
|
selectedTime: string;
|
|
293
488
|
bookable: boolean;
|
|
@@ -546,14 +741,11 @@ export declare const ApiAnnualTicketMocks: {
|
|
|
546
741
|
};
|
|
547
742
|
export declare const UIAnnualTicketMocks: {
|
|
548
743
|
ticket1: {
|
|
549
|
-
|
|
744
|
+
product_type: import('../lib/models/cart/types').ProductType;
|
|
745
|
+
type: UITicketType;
|
|
550
746
|
shop_order: number;
|
|
551
|
-
max_capacity: number;
|
|
552
|
-
min_quantity: number;
|
|
553
|
-
max_quantity: number;
|
|
554
747
|
minAvailableCapacity: number;
|
|
555
748
|
selectedTime: string;
|
|
556
|
-
quantity: number;
|
|
557
749
|
id: number;
|
|
558
750
|
title: string;
|
|
559
751
|
ticket_type: "time_slot" | "annual" | "normal";
|
|
@@ -599,20 +791,16 @@ export declare const UIAnnualTicketMocks: {
|
|
|
599
791
|
total_capacities: {
|
|
600
792
|
[key: string]: number;
|
|
601
793
|
};
|
|
794
|
+
max_capacity: number;
|
|
602
795
|
max_total_capacity: number;
|
|
603
796
|
dynamic_prices: {
|
|
604
797
|
[key: string]: number;
|
|
605
798
|
} | null;
|
|
606
799
|
uid: number;
|
|
607
800
|
} | {
|
|
608
|
-
|
|
801
|
+
product_type: import('../lib/models/cart/types').ProductType;
|
|
802
|
+
type: UITicketType;
|
|
609
803
|
shop_order: number;
|
|
610
|
-
max_capacity: number;
|
|
611
|
-
min_quantity: number;
|
|
612
|
-
max_quantity: number;
|
|
613
|
-
minAvailableCapacity: number;
|
|
614
|
-
selectedTime: string;
|
|
615
|
-
quantity: number;
|
|
616
804
|
id: number;
|
|
617
805
|
title: string;
|
|
618
806
|
ticket_type: "time_slot" | "annual" | "normal";
|
|
@@ -652,20 +840,24 @@ export declare const UIAnnualTicketMocks: {
|
|
|
652
840
|
shipped_with_merchandise_id: number | null;
|
|
653
841
|
restricted_shop_account: boolean;
|
|
654
842
|
cash_point_order: number;
|
|
843
|
+
capacities: {
|
|
844
|
+
[key: string]: number;
|
|
845
|
+
};
|
|
846
|
+
total_capacities: {
|
|
847
|
+
[key: string]: number;
|
|
848
|
+
};
|
|
849
|
+
max_capacity: number;
|
|
850
|
+
max_total_capacity: number;
|
|
655
851
|
dynamic_prices: {
|
|
656
852
|
[key: string]: number;
|
|
657
853
|
} | null;
|
|
658
854
|
uid: number;
|
|
659
|
-
}
|
|
660
|
-
|
|
661
|
-
type:
|
|
855
|
+
} | {
|
|
856
|
+
product_type: import('../lib/models/cart/types').ProductType;
|
|
857
|
+
type: UITicketType;
|
|
662
858
|
shop_order: number;
|
|
663
|
-
max_capacity: number;
|
|
664
|
-
min_quantity: number;
|
|
665
|
-
max_quantity: number;
|
|
666
859
|
minAvailableCapacity: number;
|
|
667
860
|
selectedTime: string;
|
|
668
|
-
quantity: number;
|
|
669
861
|
id: number;
|
|
670
862
|
title: string;
|
|
671
863
|
ticket_type: "time_slot" | "annual" | "normal";
|
|
@@ -705,26 +897,14 @@ export declare const UIAnnualTicketMocks: {
|
|
|
705
897
|
shipped_with_merchandise_id: number | null;
|
|
706
898
|
restricted_shop_account: boolean;
|
|
707
899
|
cash_point_order: number;
|
|
708
|
-
capacities: {
|
|
709
|
-
[key: string]: number;
|
|
710
|
-
};
|
|
711
|
-
total_capacities: {
|
|
712
|
-
[key: string]: number;
|
|
713
|
-
};
|
|
714
|
-
max_total_capacity: number;
|
|
715
900
|
dynamic_prices: {
|
|
716
901
|
[key: string]: number;
|
|
717
902
|
} | null;
|
|
718
903
|
uid: number;
|
|
719
904
|
} | {
|
|
720
|
-
|
|
905
|
+
product_type: import('../lib/models/cart/types').ProductType;
|
|
906
|
+
type: UITicketType;
|
|
721
907
|
shop_order: number;
|
|
722
|
-
max_capacity: number;
|
|
723
|
-
min_quantity: number;
|
|
724
|
-
max_quantity: number;
|
|
725
|
-
minAvailableCapacity: number;
|
|
726
|
-
selectedTime: string;
|
|
727
|
-
quantity: number;
|
|
728
908
|
id: number;
|
|
729
909
|
title: string;
|
|
730
910
|
ticket_type: "time_slot" | "annual" | "normal";
|
|
@@ -769,15 +949,12 @@ export declare const UIAnnualTicketMocks: {
|
|
|
769
949
|
} | null;
|
|
770
950
|
uid: number;
|
|
771
951
|
};
|
|
772
|
-
|
|
773
|
-
|
|
952
|
+
ticket2: {
|
|
953
|
+
product_type: import('../lib/models/cart/types').ProductType;
|
|
954
|
+
type: UITicketType;
|
|
774
955
|
shop_order: number;
|
|
775
|
-
max_capacity: number;
|
|
776
|
-
min_quantity: number;
|
|
777
|
-
max_quantity: number;
|
|
778
956
|
minAvailableCapacity: number;
|
|
779
957
|
selectedTime: string;
|
|
780
|
-
quantity: number;
|
|
781
958
|
id: number;
|
|
782
959
|
title: string;
|
|
783
960
|
ticket_type: "time_slot" | "annual" | "normal";
|
|
@@ -823,20 +1000,16 @@ export declare const UIAnnualTicketMocks: {
|
|
|
823
1000
|
total_capacities: {
|
|
824
1001
|
[key: string]: number;
|
|
825
1002
|
};
|
|
1003
|
+
max_capacity: number;
|
|
826
1004
|
max_total_capacity: number;
|
|
827
1005
|
dynamic_prices: {
|
|
828
1006
|
[key: string]: number;
|
|
829
1007
|
} | null;
|
|
830
1008
|
uid: number;
|
|
831
1009
|
} | {
|
|
832
|
-
|
|
1010
|
+
product_type: import('../lib/models/cart/types').ProductType;
|
|
1011
|
+
type: UITicketType;
|
|
833
1012
|
shop_order: number;
|
|
834
|
-
max_capacity: number;
|
|
835
|
-
min_quantity: number;
|
|
836
|
-
max_quantity: number;
|
|
837
|
-
minAvailableCapacity: number;
|
|
838
|
-
selectedTime: string;
|
|
839
|
-
quantity: number;
|
|
840
1013
|
id: number;
|
|
841
1014
|
title: string;
|
|
842
1015
|
ticket_type: "time_slot" | "annual" | "normal";
|
|
@@ -876,140 +1049,440 @@ export declare const UIAnnualTicketMocks: {
|
|
|
876
1049
|
shipped_with_merchandise_id: number | null;
|
|
877
1050
|
restricted_shop_account: boolean;
|
|
878
1051
|
cash_point_order: number;
|
|
1052
|
+
capacities: {
|
|
1053
|
+
[key: string]: number;
|
|
1054
|
+
};
|
|
1055
|
+
total_capacities: {
|
|
1056
|
+
[key: string]: number;
|
|
1057
|
+
};
|
|
1058
|
+
max_capacity: number;
|
|
1059
|
+
max_total_capacity: number;
|
|
879
1060
|
dynamic_prices: {
|
|
880
1061
|
[key: string]: number;
|
|
881
1062
|
} | null;
|
|
882
1063
|
uid: number;
|
|
883
|
-
}
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
1064
|
+
} | {
|
|
1065
|
+
product_type: import('../lib/models/cart/types').ProductType;
|
|
1066
|
+
type: UITicketType;
|
|
1067
|
+
shop_order: number;
|
|
1068
|
+
minAvailableCapacity: number;
|
|
1069
|
+
selectedTime: string;
|
|
1070
|
+
id: number;
|
|
1071
|
+
title: string;
|
|
1072
|
+
ticket_type: "time_slot" | "annual" | "normal";
|
|
1073
|
+
bookable: boolean;
|
|
1074
|
+
museum_ids: number[];
|
|
1075
|
+
exhibition_ids: number[];
|
|
1076
|
+
price_cents: number;
|
|
1077
|
+
discount: number;
|
|
1078
|
+
vat_pct: number;
|
|
1079
|
+
tax_included: boolean;
|
|
1080
|
+
entry_duration: number | null;
|
|
1081
|
+
min_persons: number;
|
|
1082
|
+
max_persons: number;
|
|
1083
|
+
quota_ids: number[];
|
|
1084
|
+
first_entry: number;
|
|
1085
|
+
last_entry: number;
|
|
1086
|
+
personalizeable: boolean;
|
|
1087
|
+
attendees: boolean | string;
|
|
1088
|
+
identification: boolean | string;
|
|
1089
|
+
free_timing: boolean;
|
|
1090
|
+
is_collective: boolean;
|
|
1091
|
+
is_upgrade: boolean;
|
|
1092
|
+
is_mantle: boolean;
|
|
1093
|
+
description: string | null;
|
|
1094
|
+
sub_ticket_ids: number[];
|
|
1095
|
+
sub_tickets: {
|
|
1096
|
+
[key: string]: {
|
|
1097
|
+
title?: string;
|
|
1098
|
+
min_persons?: number;
|
|
1099
|
+
max_persons?: number;
|
|
1100
|
+
description?: string | null;
|
|
1101
|
+
};
|
|
1102
|
+
} | null;
|
|
1103
|
+
is_sub_ticket: boolean;
|
|
1104
|
+
created_at: string;
|
|
1105
|
+
updated_at: string;
|
|
1106
|
+
shipped_with_merchandise_id: number | null;
|
|
1107
|
+
restricted_shop_account: boolean;
|
|
1108
|
+
cash_point_order: number;
|
|
1109
|
+
dynamic_prices: {
|
|
1110
|
+
[key: string]: number;
|
|
1111
|
+
} | null;
|
|
1112
|
+
uid: number;
|
|
1113
|
+
} | {
|
|
1114
|
+
product_type: import('../lib/models/cart/types').ProductType;
|
|
1115
|
+
type: UITicketType;
|
|
1116
|
+
shop_order: number;
|
|
1117
|
+
id: number;
|
|
1118
|
+
title: string;
|
|
1119
|
+
ticket_type: "time_slot" | "annual" | "normal";
|
|
1120
|
+
bookable: boolean;
|
|
1121
|
+
museum_ids: number[];
|
|
1122
|
+
exhibition_ids: number[];
|
|
1123
|
+
price_cents: number;
|
|
1124
|
+
discount: number;
|
|
1125
|
+
vat_pct: number;
|
|
1126
|
+
tax_included: boolean;
|
|
1127
|
+
entry_duration: number | null;
|
|
1128
|
+
min_persons: number;
|
|
1129
|
+
max_persons: number;
|
|
1130
|
+
quota_ids: number[];
|
|
1131
|
+
first_entry: number;
|
|
1132
|
+
last_entry: number;
|
|
1133
|
+
personalizeable: boolean;
|
|
1134
|
+
attendees: boolean | string;
|
|
1135
|
+
identification: boolean | string;
|
|
1136
|
+
free_timing: boolean;
|
|
1137
|
+
is_collective: boolean;
|
|
1138
|
+
is_upgrade: boolean;
|
|
1139
|
+
is_mantle: boolean;
|
|
1140
|
+
description: string | null;
|
|
1141
|
+
sub_ticket_ids: number[];
|
|
1142
|
+
sub_tickets: {
|
|
1143
|
+
[key: string]: {
|
|
1144
|
+
title?: string;
|
|
1145
|
+
min_persons?: number;
|
|
1146
|
+
max_persons?: number;
|
|
1147
|
+
description?: string | null;
|
|
1148
|
+
};
|
|
1149
|
+
} | null;
|
|
1150
|
+
is_sub_ticket: boolean;
|
|
1151
|
+
created_at: string;
|
|
1152
|
+
updated_at: string;
|
|
1153
|
+
shipped_with_merchandise_id: number | null;
|
|
1154
|
+
restricted_shop_account: boolean;
|
|
1155
|
+
cash_point_order: number;
|
|
1156
|
+
dynamic_prices: {
|
|
1157
|
+
[key: string]: number;
|
|
1158
|
+
} | null;
|
|
1159
|
+
uid: number;
|
|
1160
|
+
};
|
|
1161
|
+
ticket3: {
|
|
1162
|
+
product_type: import('../lib/models/cart/types').ProductType;
|
|
1163
|
+
type: UITicketType;
|
|
1164
|
+
shop_order: number;
|
|
1165
|
+
minAvailableCapacity: number;
|
|
1166
|
+
selectedTime: string;
|
|
1167
|
+
id: number;
|
|
1168
|
+
title: string;
|
|
1169
|
+
ticket_type: "time_slot" | "annual" | "normal";
|
|
1170
|
+
bookable: boolean;
|
|
1171
|
+
museum_ids: number[];
|
|
1172
|
+
exhibition_ids: number[];
|
|
1173
|
+
price_cents: number;
|
|
1174
|
+
discount: number;
|
|
1175
|
+
vat_pct: number;
|
|
1176
|
+
tax_included: boolean;
|
|
1177
|
+
entry_duration: number | null;
|
|
1178
|
+
min_persons: number;
|
|
1179
|
+
max_persons: number;
|
|
1180
|
+
quota_ids: number[];
|
|
1181
|
+
first_entry: number;
|
|
1182
|
+
last_entry: number;
|
|
1183
|
+
personalizeable: boolean;
|
|
1184
|
+
attendees: boolean | string;
|
|
1185
|
+
identification: boolean | string;
|
|
1186
|
+
free_timing: boolean;
|
|
1187
|
+
is_collective: boolean;
|
|
1188
|
+
is_upgrade: boolean;
|
|
1189
|
+
is_mantle: boolean;
|
|
1190
|
+
description: string | null;
|
|
1191
|
+
sub_ticket_ids: number[];
|
|
1192
|
+
sub_tickets: {
|
|
1193
|
+
[key: string]: {
|
|
1194
|
+
title?: string;
|
|
1195
|
+
min_persons?: number;
|
|
1196
|
+
max_persons?: number;
|
|
1197
|
+
description?: string | null;
|
|
1198
|
+
};
|
|
1199
|
+
} | null;
|
|
1200
|
+
is_sub_ticket: boolean;
|
|
1201
|
+
created_at: string;
|
|
1202
|
+
updated_at: string;
|
|
1203
|
+
shipped_with_merchandise_id: number | null;
|
|
1204
|
+
restricted_shop_account: boolean;
|
|
1205
|
+
cash_point_order: number;
|
|
1206
|
+
capacities: {
|
|
1207
|
+
[key: string]: number;
|
|
1208
|
+
};
|
|
1209
|
+
total_capacities: {
|
|
1210
|
+
[key: string]: number;
|
|
1211
|
+
};
|
|
1212
|
+
max_capacity: number;
|
|
1213
|
+
max_total_capacity: number;
|
|
1214
|
+
dynamic_prices: {
|
|
1215
|
+
[key: string]: number;
|
|
1216
|
+
} | null;
|
|
1217
|
+
uid: number;
|
|
1218
|
+
} | {
|
|
1219
|
+
product_type: import('../lib/models/cart/types').ProductType;
|
|
1220
|
+
type: UITicketType;
|
|
1221
|
+
shop_order: number;
|
|
1222
|
+
id: number;
|
|
1223
|
+
title: string;
|
|
1224
|
+
ticket_type: "time_slot" | "annual" | "normal";
|
|
1225
|
+
bookable: boolean;
|
|
1226
|
+
museum_ids: number[];
|
|
1227
|
+
exhibition_ids: number[];
|
|
1228
|
+
price_cents: number;
|
|
1229
|
+
discount: number;
|
|
1230
|
+
vat_pct: number;
|
|
1231
|
+
tax_included: boolean;
|
|
1232
|
+
entry_duration: number | null;
|
|
1233
|
+
min_persons: number;
|
|
1234
|
+
max_persons: number;
|
|
1235
|
+
quota_ids: number[];
|
|
1236
|
+
first_entry: number;
|
|
1237
|
+
last_entry: number;
|
|
1238
|
+
personalizeable: boolean;
|
|
1239
|
+
attendees: boolean | string;
|
|
1240
|
+
identification: boolean | string;
|
|
1241
|
+
free_timing: boolean;
|
|
1242
|
+
is_collective: boolean;
|
|
1243
|
+
is_upgrade: boolean;
|
|
1244
|
+
is_mantle: boolean;
|
|
1245
|
+
description: string | null;
|
|
1246
|
+
sub_ticket_ids: number[];
|
|
1247
|
+
sub_tickets: {
|
|
1248
|
+
[key: string]: {
|
|
1249
|
+
title?: string;
|
|
1250
|
+
min_persons?: number;
|
|
1251
|
+
max_persons?: number;
|
|
1252
|
+
description?: string | null;
|
|
1253
|
+
};
|
|
1254
|
+
} | null;
|
|
1255
|
+
is_sub_ticket: boolean;
|
|
1256
|
+
created_at: string;
|
|
1257
|
+
updated_at: string;
|
|
1258
|
+
shipped_with_merchandise_id: number | null;
|
|
1259
|
+
restricted_shop_account: boolean;
|
|
1260
|
+
cash_point_order: number;
|
|
1261
|
+
capacities: {
|
|
1262
|
+
[key: string]: number;
|
|
1263
|
+
};
|
|
1264
|
+
total_capacities: {
|
|
1265
|
+
[key: string]: number;
|
|
1266
|
+
};
|
|
1267
|
+
max_capacity: number;
|
|
1268
|
+
max_total_capacity: number;
|
|
1269
|
+
dynamic_prices: {
|
|
1270
|
+
[key: string]: number;
|
|
1271
|
+
} | null;
|
|
1272
|
+
uid: number;
|
|
1273
|
+
} | {
|
|
1274
|
+
product_type: import('../lib/models/cart/types').ProductType;
|
|
1275
|
+
type: UITicketType;
|
|
1276
|
+
shop_order: number;
|
|
1277
|
+
minAvailableCapacity: number;
|
|
1278
|
+
selectedTime: string;
|
|
1279
|
+
id: number;
|
|
1280
|
+
title: string;
|
|
1281
|
+
ticket_type: "time_slot" | "annual" | "normal";
|
|
1282
|
+
bookable: boolean;
|
|
1283
|
+
museum_ids: number[];
|
|
1284
|
+
exhibition_ids: number[];
|
|
1285
|
+
price_cents: number;
|
|
1286
|
+
discount: number;
|
|
1287
|
+
vat_pct: number;
|
|
1288
|
+
tax_included: boolean;
|
|
1289
|
+
entry_duration: number | null;
|
|
1290
|
+
min_persons: number;
|
|
1291
|
+
max_persons: number;
|
|
1292
|
+
quota_ids: number[];
|
|
1293
|
+
first_entry: number;
|
|
1294
|
+
last_entry: number;
|
|
1295
|
+
personalizeable: boolean;
|
|
1296
|
+
attendees: boolean | string;
|
|
1297
|
+
identification: boolean | string;
|
|
1298
|
+
free_timing: boolean;
|
|
1299
|
+
is_collective: boolean;
|
|
1300
|
+
is_upgrade: boolean;
|
|
1301
|
+
is_mantle: boolean;
|
|
1302
|
+
description: string | null;
|
|
1303
|
+
sub_ticket_ids: number[];
|
|
1304
|
+
sub_tickets: {
|
|
1305
|
+
[key: string]: {
|
|
1306
|
+
title?: string;
|
|
1307
|
+
min_persons?: number;
|
|
1308
|
+
max_persons?: number;
|
|
1309
|
+
description?: string | null;
|
|
1310
|
+
};
|
|
1311
|
+
} | null;
|
|
1312
|
+
is_sub_ticket: boolean;
|
|
1313
|
+
created_at: string;
|
|
1314
|
+
updated_at: string;
|
|
1315
|
+
shipped_with_merchandise_id: number | null;
|
|
1316
|
+
restricted_shop_account: boolean;
|
|
1317
|
+
cash_point_order: number;
|
|
1318
|
+
dynamic_prices: {
|
|
1319
|
+
[key: string]: number;
|
|
1320
|
+
} | null;
|
|
1321
|
+
uid: number;
|
|
1322
|
+
} | {
|
|
1323
|
+
product_type: import('../lib/models/cart/types').ProductType;
|
|
1324
|
+
type: UITicketType;
|
|
1325
|
+
shop_order: number;
|
|
1326
|
+
id: number;
|
|
1327
|
+
title: string;
|
|
1328
|
+
ticket_type: "time_slot" | "annual" | "normal";
|
|
1329
|
+
bookable: boolean;
|
|
1330
|
+
museum_ids: number[];
|
|
1331
|
+
exhibition_ids: number[];
|
|
1332
|
+
price_cents: number;
|
|
1333
|
+
discount: number;
|
|
1334
|
+
vat_pct: number;
|
|
1335
|
+
tax_included: boolean;
|
|
1336
|
+
entry_duration: number | null;
|
|
1337
|
+
min_persons: number;
|
|
1338
|
+
max_persons: number;
|
|
1339
|
+
quota_ids: number[];
|
|
1340
|
+
first_entry: number;
|
|
1341
|
+
last_entry: number;
|
|
1342
|
+
personalizeable: boolean;
|
|
1343
|
+
attendees: boolean | string;
|
|
1344
|
+
identification: boolean | string;
|
|
1345
|
+
free_timing: boolean;
|
|
1346
|
+
is_collective: boolean;
|
|
1347
|
+
is_upgrade: boolean;
|
|
1348
|
+
is_mantle: boolean;
|
|
1349
|
+
description: string | null;
|
|
1350
|
+
sub_ticket_ids: number[];
|
|
1351
|
+
sub_tickets: {
|
|
1352
|
+
[key: string]: {
|
|
1353
|
+
title?: string;
|
|
1354
|
+
min_persons?: number;
|
|
1355
|
+
max_persons?: number;
|
|
1356
|
+
description?: string | null;
|
|
1357
|
+
};
|
|
1358
|
+
} | null;
|
|
1359
|
+
is_sub_ticket: boolean;
|
|
1360
|
+
created_at: string;
|
|
1361
|
+
updated_at: string;
|
|
1362
|
+
shipped_with_merchandise_id: number | null;
|
|
1363
|
+
restricted_shop_account: boolean;
|
|
1364
|
+
cash_point_order: number;
|
|
1365
|
+
dynamic_prices: {
|
|
1366
|
+
[key: string]: number;
|
|
1367
|
+
} | null;
|
|
1368
|
+
uid: number;
|
|
1369
|
+
};
|
|
1370
|
+
};
|
|
1371
|
+
export declare const CartMocks: {
|
|
1372
|
+
cartOneItem: () => {
|
|
887
1373
|
items: {
|
|
888
|
-
type: import('../
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
min_quantity: number;
|
|
894
|
-
max_quantity: number;
|
|
895
|
-
minAvailableCapacity: number;
|
|
896
|
-
selectedTime: string;
|
|
897
|
-
quantity: number;
|
|
1374
|
+
type: import('../lib/models/cart/types').ProductType;
|
|
1375
|
+
product: import('../lib/models/cart/types').Product;
|
|
1376
|
+
orderAttributes(): {
|
|
1377
|
+
shipped_with_merchandise_id: null;
|
|
1378
|
+
shipping_mode: string;
|
|
898
1379
|
id: number;
|
|
899
|
-
|
|
900
|
-
ticket_type: "time_slot" | "annual" | "normal";
|
|
901
|
-
bookable: boolean;
|
|
902
|
-
museum_ids: number[];
|
|
903
|
-
exhibition_ids: number[];
|
|
904
|
-
price_cents: number;
|
|
905
|
-
discount: number;
|
|
906
|
-
vat_pct: number;
|
|
907
|
-
tax_included: boolean;
|
|
908
|
-
entry_duration: number | null;
|
|
909
|
-
min_persons: number;
|
|
910
|
-
max_persons: number;
|
|
911
|
-
quota_ids: number[];
|
|
912
|
-
first_entry: number;
|
|
913
|
-
last_entry: number;
|
|
914
|
-
personalizeable: boolean;
|
|
915
|
-
attendees: boolean | string;
|
|
916
|
-
identification: boolean | string;
|
|
917
|
-
free_timing: boolean;
|
|
918
|
-
is_collective: boolean;
|
|
919
|
-
is_upgrade: boolean;
|
|
920
|
-
is_mantle: boolean;
|
|
921
|
-
description: string | null;
|
|
922
|
-
sub_ticket_ids: number[];
|
|
923
|
-
sub_tickets: {
|
|
924
|
-
[key: string]: {
|
|
925
|
-
title?: string;
|
|
926
|
-
min_persons?: number;
|
|
927
|
-
max_persons?: number;
|
|
928
|
-
description?: string | null;
|
|
929
|
-
};
|
|
930
|
-
} | null;
|
|
931
|
-
is_sub_ticket: boolean;
|
|
932
|
-
created_at: string;
|
|
933
|
-
updated_at: string;
|
|
934
|
-
shipped_with_merchandise_id: number | null;
|
|
935
|
-
restricted_shop_account: boolean;
|
|
936
|
-
cash_point_order: number;
|
|
937
|
-
capacities: {
|
|
938
|
-
[key: string]: number;
|
|
939
|
-
};
|
|
940
|
-
total_capacities: {
|
|
941
|
-
[key: string]: number;
|
|
942
|
-
};
|
|
943
|
-
max_total_capacity: number;
|
|
944
|
-
dynamic_prices: {
|
|
945
|
-
[key: string]: number;
|
|
946
|
-
} | null;
|
|
947
|
-
uid: number;
|
|
948
|
-
} | {
|
|
949
|
-
type: "annual" | "timeslot" | "day";
|
|
950
|
-
shop_order: number;
|
|
951
|
-
max_capacity: number;
|
|
952
|
-
min_quantity: number;
|
|
953
|
-
max_quantity: number;
|
|
954
|
-
minAvailableCapacity: number;
|
|
955
|
-
selectedTime: string;
|
|
1380
|
+
time: string;
|
|
956
1381
|
quantity: number;
|
|
1382
|
+
} | {
|
|
1383
|
+
shipped_with_merchandise_id: null;
|
|
1384
|
+
shipping_mode: string;
|
|
957
1385
|
id: number;
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
museum_ids: number[];
|
|
962
|
-
exhibition_ids: number[];
|
|
963
|
-
price_cents: number;
|
|
964
|
-
discount: number;
|
|
965
|
-
vat_pct: number;
|
|
966
|
-
tax_included: boolean;
|
|
967
|
-
entry_duration: number | null;
|
|
968
|
-
min_persons: number;
|
|
969
|
-
max_persons: number;
|
|
970
|
-
quota_ids: number[];
|
|
971
|
-
first_entry: number;
|
|
972
|
-
last_entry: number;
|
|
973
|
-
personalizeable: boolean;
|
|
974
|
-
attendees: boolean | string;
|
|
975
|
-
identification: boolean | string;
|
|
976
|
-
free_timing: boolean;
|
|
977
|
-
is_collective: boolean;
|
|
978
|
-
is_upgrade: boolean;
|
|
979
|
-
is_mantle: boolean;
|
|
980
|
-
description: string | null;
|
|
981
|
-
sub_ticket_ids: number[];
|
|
982
|
-
sub_tickets: {
|
|
983
|
-
[key: string]: {
|
|
984
|
-
title?: string;
|
|
985
|
-
min_persons?: number;
|
|
986
|
-
max_persons?: number;
|
|
987
|
-
description?: string | null;
|
|
988
|
-
};
|
|
989
|
-
} | null;
|
|
990
|
-
is_sub_ticket: boolean;
|
|
991
|
-
created_at: string;
|
|
992
|
-
updated_at: string;
|
|
993
|
-
shipped_with_merchandise_id: number | null;
|
|
994
|
-
restricted_shop_account: boolean;
|
|
995
|
-
cash_point_order: number;
|
|
996
|
-
dynamic_prices: {
|
|
997
|
-
[key: string]: number;
|
|
998
|
-
} | null;
|
|
999
|
-
uid: number;
|
|
1386
|
+
quantities: {
|
|
1387
|
+
[x: number]: number;
|
|
1388
|
+
};
|
|
1000
1389
|
};
|
|
1001
|
-
|
|
1390
|
+
uuid: string;
|
|
1391
|
+
subId: string;
|
|
1392
|
+
price_cents: number;
|
|
1393
|
+
price_formatted: string;
|
|
1394
|
+
final_price_cents: number;
|
|
1395
|
+
final_price_formatted: string;
|
|
1396
|
+
total_price_cents: number;
|
|
1397
|
+
total_price_formatted: string;
|
|
1398
|
+
quantity: number;
|
|
1399
|
+
time: string;
|
|
1400
|
+
}[];
|
|
1401
|
+
contingent: number;
|
|
1402
|
+
uid: string;
|
|
1403
|
+
readonly nonEmptyItems: {
|
|
1404
|
+
type: import('../lib/models/cart/types').ProductType;
|
|
1405
|
+
product: import('../lib/models/cart/types').Product;
|
|
1406
|
+
orderAttributes(): {
|
|
1407
|
+
shipped_with_merchandise_id: null;
|
|
1408
|
+
shipping_mode: string;
|
|
1002
1409
|
id: number;
|
|
1003
1410
|
time: string;
|
|
1004
1411
|
quantity: number;
|
|
1005
|
-
shipped_with_merchandise_id?: number | null;
|
|
1006
1412
|
} | {
|
|
1413
|
+
shipped_with_merchandise_id: null;
|
|
1414
|
+
shipping_mode: string;
|
|
1415
|
+
id: number;
|
|
1416
|
+
quantities: {
|
|
1417
|
+
[x: number]: number;
|
|
1418
|
+
};
|
|
1419
|
+
};
|
|
1420
|
+
uuid: string;
|
|
1421
|
+
subId: string;
|
|
1422
|
+
price_cents: number;
|
|
1423
|
+
price_formatted: string;
|
|
1424
|
+
final_price_cents: number;
|
|
1425
|
+
final_price_formatted: string;
|
|
1426
|
+
total_price_cents: number;
|
|
1427
|
+
total_price_formatted: string;
|
|
1428
|
+
quantity: number;
|
|
1429
|
+
time: string;
|
|
1430
|
+
}[];
|
|
1431
|
+
readonly totalPriceCents: number;
|
|
1432
|
+
readonly totalQuantity: number;
|
|
1433
|
+
orderData(): {
|
|
1434
|
+
items: {
|
|
1435
|
+
type: import('../lib/models/cart/types').ProductType;
|
|
1436
|
+
attributes: {
|
|
1437
|
+
shipped_with_merchandise_id: null;
|
|
1438
|
+
shipping_mode: string;
|
|
1439
|
+
id: number;
|
|
1440
|
+
time: string;
|
|
1441
|
+
quantity: number;
|
|
1442
|
+
} | {
|
|
1443
|
+
shipped_with_merchandise_id: null;
|
|
1444
|
+
shipping_mode: string;
|
|
1445
|
+
id: number;
|
|
1446
|
+
quantities: {
|
|
1447
|
+
[x: number]: number;
|
|
1448
|
+
};
|
|
1449
|
+
};
|
|
1450
|
+
}[];
|
|
1451
|
+
shipping_address_id: null;
|
|
1452
|
+
comment: null;
|
|
1453
|
+
reference: null;
|
|
1454
|
+
payment_mode_id: string;
|
|
1455
|
+
coupons: never[];
|
|
1456
|
+
donations: never[];
|
|
1457
|
+
affiliate: {};
|
|
1458
|
+
total: number;
|
|
1459
|
+
};
|
|
1460
|
+
readonly totalFormatted: string;
|
|
1461
|
+
clearItems(): void;
|
|
1462
|
+
deleteItem(item: import('../lib/models/cart/types').CartItem): void;
|
|
1463
|
+
addItem(item: import('../lib/models/cart/types').CartItem): void;
|
|
1464
|
+
addItems(items: import('../lib/models/cart/types').CartItem[]): void;
|
|
1465
|
+
};
|
|
1466
|
+
cartTwoItems: () => {
|
|
1467
|
+
items: {
|
|
1468
|
+
type: import('../lib/models/cart/types').ProductType;
|
|
1469
|
+
product: import('../lib/models/cart/types').Product;
|
|
1470
|
+
orderAttributes(): {
|
|
1471
|
+
shipped_with_merchandise_id: null;
|
|
1472
|
+
shipping_mode: string;
|
|
1007
1473
|
id: number;
|
|
1008
1474
|
time: string;
|
|
1009
1475
|
quantity: number;
|
|
1010
|
-
|
|
1476
|
+
} | {
|
|
1477
|
+
shipped_with_merchandise_id: null;
|
|
1478
|
+
shipping_mode: string;
|
|
1479
|
+
id: number;
|
|
1480
|
+
quantities: {
|
|
1481
|
+
[x: number]: number;
|
|
1482
|
+
};
|
|
1011
1483
|
};
|
|
1012
1484
|
uuid: string;
|
|
1485
|
+
subId: string;
|
|
1013
1486
|
price_cents: number;
|
|
1014
1487
|
price_formatted: string;
|
|
1015
1488
|
final_price_cents: number;
|
|
@@ -1019,133 +1492,121 @@ export declare const CartMocks: {
|
|
|
1019
1492
|
quantity: number;
|
|
1020
1493
|
time: string;
|
|
1021
1494
|
}[];
|
|
1495
|
+
contingent: number;
|
|
1022
1496
|
uid: string;
|
|
1023
1497
|
readonly nonEmptyItems: {
|
|
1024
|
-
type: import('../
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
minAvailableCapacity: number;
|
|
1032
|
-
selectedTime: string;
|
|
1498
|
+
type: import('../lib/models/cart/types').ProductType;
|
|
1499
|
+
product: import('../lib/models/cart/types').Product;
|
|
1500
|
+
orderAttributes(): {
|
|
1501
|
+
shipped_with_merchandise_id: null;
|
|
1502
|
+
shipping_mode: string;
|
|
1503
|
+
id: number;
|
|
1504
|
+
time: string;
|
|
1033
1505
|
quantity: number;
|
|
1506
|
+
} | {
|
|
1507
|
+
shipped_with_merchandise_id: null;
|
|
1508
|
+
shipping_mode: string;
|
|
1034
1509
|
id: number;
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
bookable: boolean;
|
|
1038
|
-
museum_ids: number[];
|
|
1039
|
-
exhibition_ids: number[];
|
|
1040
|
-
price_cents: number;
|
|
1041
|
-
discount: number;
|
|
1042
|
-
vat_pct: number;
|
|
1043
|
-
tax_included: boolean;
|
|
1044
|
-
entry_duration: number | null;
|
|
1045
|
-
min_persons: number;
|
|
1046
|
-
max_persons: number;
|
|
1047
|
-
quota_ids: number[];
|
|
1048
|
-
first_entry: number;
|
|
1049
|
-
last_entry: number;
|
|
1050
|
-
personalizeable: boolean;
|
|
1051
|
-
attendees: boolean | string;
|
|
1052
|
-
identification: boolean | string;
|
|
1053
|
-
free_timing: boolean;
|
|
1054
|
-
is_collective: boolean;
|
|
1055
|
-
is_upgrade: boolean;
|
|
1056
|
-
is_mantle: boolean;
|
|
1057
|
-
description: string | null;
|
|
1058
|
-
sub_ticket_ids: number[];
|
|
1059
|
-
sub_tickets: {
|
|
1060
|
-
[key: string]: {
|
|
1061
|
-
title?: string;
|
|
1062
|
-
min_persons?: number;
|
|
1063
|
-
max_persons?: number;
|
|
1064
|
-
description?: string | null;
|
|
1065
|
-
};
|
|
1066
|
-
} | null;
|
|
1067
|
-
is_sub_ticket: boolean;
|
|
1068
|
-
created_at: string;
|
|
1069
|
-
updated_at: string;
|
|
1070
|
-
shipped_with_merchandise_id: number | null;
|
|
1071
|
-
restricted_shop_account: boolean;
|
|
1072
|
-
cash_point_order: number;
|
|
1073
|
-
capacities: {
|
|
1074
|
-
[key: string]: number;
|
|
1510
|
+
quantities: {
|
|
1511
|
+
[x: number]: number;
|
|
1075
1512
|
};
|
|
1076
|
-
|
|
1077
|
-
|
|
1513
|
+
};
|
|
1514
|
+
uuid: string;
|
|
1515
|
+
subId: string;
|
|
1516
|
+
price_cents: number;
|
|
1517
|
+
price_formatted: string;
|
|
1518
|
+
final_price_cents: number;
|
|
1519
|
+
final_price_formatted: string;
|
|
1520
|
+
total_price_cents: number;
|
|
1521
|
+
total_price_formatted: string;
|
|
1522
|
+
quantity: number;
|
|
1523
|
+
time: string;
|
|
1524
|
+
}[];
|
|
1525
|
+
readonly totalPriceCents: number;
|
|
1526
|
+
readonly totalQuantity: number;
|
|
1527
|
+
orderData(): {
|
|
1528
|
+
items: {
|
|
1529
|
+
type: import('../lib/models/cart/types').ProductType;
|
|
1530
|
+
attributes: {
|
|
1531
|
+
shipped_with_merchandise_id: null;
|
|
1532
|
+
shipping_mode: string;
|
|
1533
|
+
id: number;
|
|
1534
|
+
time: string;
|
|
1535
|
+
quantity: number;
|
|
1536
|
+
} | {
|
|
1537
|
+
shipped_with_merchandise_id: null;
|
|
1538
|
+
shipping_mode: string;
|
|
1539
|
+
id: number;
|
|
1540
|
+
quantities: {
|
|
1541
|
+
[x: number]: number;
|
|
1542
|
+
};
|
|
1078
1543
|
};
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1544
|
+
}[];
|
|
1545
|
+
shipping_address_id: null;
|
|
1546
|
+
comment: null;
|
|
1547
|
+
reference: null;
|
|
1548
|
+
payment_mode_id: string;
|
|
1549
|
+
coupons: never[];
|
|
1550
|
+
donations: never[];
|
|
1551
|
+
affiliate: {};
|
|
1552
|
+
total: number;
|
|
1553
|
+
};
|
|
1554
|
+
readonly totalFormatted: string;
|
|
1555
|
+
clearItems(): void;
|
|
1556
|
+
deleteItem(item: import('../lib/models/cart/types').CartItem): void;
|
|
1557
|
+
addItem(item: import('../lib/models/cart/types').CartItem): void;
|
|
1558
|
+
addItems(items: import('../lib/models/cart/types').CartItem[]): void;
|
|
1559
|
+
};
|
|
1560
|
+
cartThreeItems: () => {
|
|
1561
|
+
items: {
|
|
1562
|
+
type: import('../lib/models/cart/types').ProductType;
|
|
1563
|
+
product: import('../lib/models/cart/types').Product;
|
|
1564
|
+
orderAttributes(): {
|
|
1565
|
+
shipped_with_merchandise_id: null;
|
|
1566
|
+
shipping_mode: string;
|
|
1567
|
+
id: number;
|
|
1568
|
+
time: string;
|
|
1092
1569
|
quantity: number;
|
|
1570
|
+
} | {
|
|
1571
|
+
shipped_with_merchandise_id: null;
|
|
1572
|
+
shipping_mode: string;
|
|
1093
1573
|
id: number;
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
museum_ids: number[];
|
|
1098
|
-
exhibition_ids: number[];
|
|
1099
|
-
price_cents: number;
|
|
1100
|
-
discount: number;
|
|
1101
|
-
vat_pct: number;
|
|
1102
|
-
tax_included: boolean;
|
|
1103
|
-
entry_duration: number | null;
|
|
1104
|
-
min_persons: number;
|
|
1105
|
-
max_persons: number;
|
|
1106
|
-
quota_ids: number[];
|
|
1107
|
-
first_entry: number;
|
|
1108
|
-
last_entry: number;
|
|
1109
|
-
personalizeable: boolean;
|
|
1110
|
-
attendees: boolean | string;
|
|
1111
|
-
identification: boolean | string;
|
|
1112
|
-
free_timing: boolean;
|
|
1113
|
-
is_collective: boolean;
|
|
1114
|
-
is_upgrade: boolean;
|
|
1115
|
-
is_mantle: boolean;
|
|
1116
|
-
description: string | null;
|
|
1117
|
-
sub_ticket_ids: number[];
|
|
1118
|
-
sub_tickets: {
|
|
1119
|
-
[key: string]: {
|
|
1120
|
-
title?: string;
|
|
1121
|
-
min_persons?: number;
|
|
1122
|
-
max_persons?: number;
|
|
1123
|
-
description?: string | null;
|
|
1124
|
-
};
|
|
1125
|
-
} | null;
|
|
1126
|
-
is_sub_ticket: boolean;
|
|
1127
|
-
created_at: string;
|
|
1128
|
-
updated_at: string;
|
|
1129
|
-
shipped_with_merchandise_id: number | null;
|
|
1130
|
-
restricted_shop_account: boolean;
|
|
1131
|
-
cash_point_order: number;
|
|
1132
|
-
dynamic_prices: {
|
|
1133
|
-
[key: string]: number;
|
|
1134
|
-
} | null;
|
|
1135
|
-
uid: number;
|
|
1574
|
+
quantities: {
|
|
1575
|
+
[x: number]: number;
|
|
1576
|
+
};
|
|
1136
1577
|
};
|
|
1137
|
-
|
|
1578
|
+
uuid: string;
|
|
1579
|
+
subId: string;
|
|
1580
|
+
price_cents: number;
|
|
1581
|
+
price_formatted: string;
|
|
1582
|
+
final_price_cents: number;
|
|
1583
|
+
final_price_formatted: string;
|
|
1584
|
+
total_price_cents: number;
|
|
1585
|
+
total_price_formatted: string;
|
|
1586
|
+
quantity: number;
|
|
1587
|
+
time: string;
|
|
1588
|
+
}[];
|
|
1589
|
+
contingent: number;
|
|
1590
|
+
uid: string;
|
|
1591
|
+
readonly nonEmptyItems: {
|
|
1592
|
+
type: import('../lib/models/cart/types').ProductType;
|
|
1593
|
+
product: import('../lib/models/cart/types').Product;
|
|
1594
|
+
orderAttributes(): {
|
|
1595
|
+
shipped_with_merchandise_id: null;
|
|
1596
|
+
shipping_mode: string;
|
|
1138
1597
|
id: number;
|
|
1139
1598
|
time: string;
|
|
1140
1599
|
quantity: number;
|
|
1141
|
-
shipped_with_merchandise_id?: number | null;
|
|
1142
1600
|
} | {
|
|
1601
|
+
shipped_with_merchandise_id: null;
|
|
1602
|
+
shipping_mode: string;
|
|
1143
1603
|
id: number;
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1604
|
+
quantities: {
|
|
1605
|
+
[x: number]: number;
|
|
1606
|
+
};
|
|
1147
1607
|
};
|
|
1148
1608
|
uuid: string;
|
|
1609
|
+
subId: string;
|
|
1149
1610
|
price_cents: number;
|
|
1150
1611
|
price_formatted: string;
|
|
1151
1612
|
final_price_cents: number;
|
|
@@ -1156,9 +1617,10 @@ export declare const CartMocks: {
|
|
|
1156
1617
|
time: string;
|
|
1157
1618
|
}[];
|
|
1158
1619
|
readonly totalPriceCents: number;
|
|
1159
|
-
|
|
1620
|
+
readonly totalQuantity: number;
|
|
1621
|
+
orderData(): {
|
|
1160
1622
|
items: {
|
|
1161
|
-
type:
|
|
1623
|
+
type: import('../lib/models/cart/types').ProductType;
|
|
1162
1624
|
attributes: {
|
|
1163
1625
|
shipped_with_merchandise_id: null;
|
|
1164
1626
|
shipping_mode: string;
|
|
@@ -1169,8 +1631,9 @@ export declare const CartMocks: {
|
|
|
1169
1631
|
shipped_with_merchandise_id: null;
|
|
1170
1632
|
shipping_mode: string;
|
|
1171
1633
|
id: number;
|
|
1172
|
-
|
|
1173
|
-
|
|
1634
|
+
quantities: {
|
|
1635
|
+
[x: number]: number;
|
|
1636
|
+
};
|
|
1174
1637
|
};
|
|
1175
1638
|
}[];
|
|
1176
1639
|
shipping_address_id: null;
|
|
@@ -1184,328 +1647,256 @@ export declare const CartMocks: {
|
|
|
1184
1647
|
};
|
|
1185
1648
|
readonly totalFormatted: string;
|
|
1186
1649
|
clearItems(): void;
|
|
1187
|
-
deleteItem(item: import('../
|
|
1188
|
-
addItem(item: import('../
|
|
1189
|
-
addItems(items: import('../
|
|
1650
|
+
deleteItem(item: import('../lib/models/cart/types').CartItem): void;
|
|
1651
|
+
addItem(item: import('../lib/models/cart/types').CartItem): void;
|
|
1652
|
+
addItems(items: import('../lib/models/cart/types').CartItem[]): void;
|
|
1190
1653
|
};
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
max_persons?: number;
|
|
1233
|
-
description?: string | null;
|
|
1234
|
-
};
|
|
1235
|
-
} | null;
|
|
1236
|
-
is_sub_ticket: boolean;
|
|
1237
|
-
created_at: string;
|
|
1238
|
-
updated_at: string;
|
|
1239
|
-
shipped_with_merchandise_id: number | null;
|
|
1240
|
-
restricted_shop_account: boolean;
|
|
1241
|
-
cash_point_order: number;
|
|
1242
|
-
capacities: {
|
|
1243
|
-
[key: string]: number;
|
|
1654
|
+
};
|
|
1655
|
+
export declare const CartItemMocks: {
|
|
1656
|
+
timeslotItem1: {
|
|
1657
|
+
type: import('../lib/models/cart/types').ProductType;
|
|
1658
|
+
product: {
|
|
1659
|
+
product_type: import('../lib/models/cart/types').ProductType;
|
|
1660
|
+
type: UITicketType;
|
|
1661
|
+
shop_order: number;
|
|
1662
|
+
minAvailableCapacity: number;
|
|
1663
|
+
selectedTime: string;
|
|
1664
|
+
id: number;
|
|
1665
|
+
title: string;
|
|
1666
|
+
ticket_type: "time_slot" | "annual" | "normal";
|
|
1667
|
+
bookable: boolean;
|
|
1668
|
+
museum_ids: number[];
|
|
1669
|
+
exhibition_ids: number[];
|
|
1670
|
+
price_cents: number;
|
|
1671
|
+
discount: number;
|
|
1672
|
+
vat_pct: number;
|
|
1673
|
+
tax_included: boolean;
|
|
1674
|
+
entry_duration: number | null;
|
|
1675
|
+
min_persons: number;
|
|
1676
|
+
max_persons: number;
|
|
1677
|
+
quota_ids: number[];
|
|
1678
|
+
first_entry: number;
|
|
1679
|
+
last_entry: number;
|
|
1680
|
+
personalizeable: boolean;
|
|
1681
|
+
attendees: boolean | string;
|
|
1682
|
+
identification: boolean | string;
|
|
1683
|
+
free_timing: boolean;
|
|
1684
|
+
is_collective: boolean;
|
|
1685
|
+
is_upgrade: boolean;
|
|
1686
|
+
is_mantle: boolean;
|
|
1687
|
+
description: string | null;
|
|
1688
|
+
sub_ticket_ids: number[];
|
|
1689
|
+
sub_tickets: {
|
|
1690
|
+
[key: string]: {
|
|
1691
|
+
title?: string;
|
|
1692
|
+
min_persons?: number;
|
|
1693
|
+
max_persons?: number;
|
|
1694
|
+
description?: string | null;
|
|
1244
1695
|
};
|
|
1245
|
-
|
|
1246
|
-
|
|
1696
|
+
} | null;
|
|
1697
|
+
is_sub_ticket: boolean;
|
|
1698
|
+
created_at: string;
|
|
1699
|
+
updated_at: string;
|
|
1700
|
+
shipped_with_merchandise_id: number | null;
|
|
1701
|
+
restricted_shop_account: boolean;
|
|
1702
|
+
cash_point_order: number;
|
|
1703
|
+
capacities: {
|
|
1704
|
+
[key: string]: number;
|
|
1705
|
+
};
|
|
1706
|
+
total_capacities: {
|
|
1707
|
+
[key: string]: number;
|
|
1708
|
+
};
|
|
1709
|
+
max_capacity: number;
|
|
1710
|
+
max_total_capacity: number;
|
|
1711
|
+
dynamic_prices: {
|
|
1712
|
+
[key: string]: number;
|
|
1713
|
+
} | null;
|
|
1714
|
+
uid: number;
|
|
1715
|
+
} | {
|
|
1716
|
+
product_type: import('../lib/models/cart/types').ProductType;
|
|
1717
|
+
type: UITicketType;
|
|
1718
|
+
shop_order: number;
|
|
1719
|
+
id: number;
|
|
1720
|
+
title: string;
|
|
1721
|
+
ticket_type: "time_slot" | "annual" | "normal";
|
|
1722
|
+
bookable: boolean;
|
|
1723
|
+
museum_ids: number[];
|
|
1724
|
+
exhibition_ids: number[];
|
|
1725
|
+
price_cents: number;
|
|
1726
|
+
discount: number;
|
|
1727
|
+
vat_pct: number;
|
|
1728
|
+
tax_included: boolean;
|
|
1729
|
+
entry_duration: number | null;
|
|
1730
|
+
min_persons: number;
|
|
1731
|
+
max_persons: number;
|
|
1732
|
+
quota_ids: number[];
|
|
1733
|
+
first_entry: number;
|
|
1734
|
+
last_entry: number;
|
|
1735
|
+
personalizeable: boolean;
|
|
1736
|
+
attendees: boolean | string;
|
|
1737
|
+
identification: boolean | string;
|
|
1738
|
+
free_timing: boolean;
|
|
1739
|
+
is_collective: boolean;
|
|
1740
|
+
is_upgrade: boolean;
|
|
1741
|
+
is_mantle: boolean;
|
|
1742
|
+
description: string | null;
|
|
1743
|
+
sub_ticket_ids: number[];
|
|
1744
|
+
sub_tickets: {
|
|
1745
|
+
[key: string]: {
|
|
1746
|
+
title?: string;
|
|
1747
|
+
min_persons?: number;
|
|
1748
|
+
max_persons?: number;
|
|
1749
|
+
description?: string | null;
|
|
1247
1750
|
};
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
min_quantity: number;
|
|
1258
|
-
max_quantity: number;
|
|
1259
|
-
minAvailableCapacity: number;
|
|
1260
|
-
selectedTime: string;
|
|
1261
|
-
quantity: number;
|
|
1262
|
-
id: number;
|
|
1263
|
-
title: string;
|
|
1264
|
-
ticket_type: "time_slot" | "annual" | "normal";
|
|
1265
|
-
bookable: boolean;
|
|
1266
|
-
museum_ids: number[];
|
|
1267
|
-
exhibition_ids: number[];
|
|
1268
|
-
price_cents: number;
|
|
1269
|
-
discount: number;
|
|
1270
|
-
vat_pct: number;
|
|
1271
|
-
tax_included: boolean;
|
|
1272
|
-
entry_duration: number | null;
|
|
1273
|
-
min_persons: number;
|
|
1274
|
-
max_persons: number;
|
|
1275
|
-
quota_ids: number[];
|
|
1276
|
-
first_entry: number;
|
|
1277
|
-
last_entry: number;
|
|
1278
|
-
personalizeable: boolean;
|
|
1279
|
-
attendees: boolean | string;
|
|
1280
|
-
identification: boolean | string;
|
|
1281
|
-
free_timing: boolean;
|
|
1282
|
-
is_collective: boolean;
|
|
1283
|
-
is_upgrade: boolean;
|
|
1284
|
-
is_mantle: boolean;
|
|
1285
|
-
description: string | null;
|
|
1286
|
-
sub_ticket_ids: number[];
|
|
1287
|
-
sub_tickets: {
|
|
1288
|
-
[key: string]: {
|
|
1289
|
-
title?: string;
|
|
1290
|
-
min_persons?: number;
|
|
1291
|
-
max_persons?: number;
|
|
1292
|
-
description?: string | null;
|
|
1293
|
-
};
|
|
1294
|
-
} | null;
|
|
1295
|
-
is_sub_ticket: boolean;
|
|
1296
|
-
created_at: string;
|
|
1297
|
-
updated_at: string;
|
|
1298
|
-
shipped_with_merchandise_id: number | null;
|
|
1299
|
-
restricted_shop_account: boolean;
|
|
1300
|
-
cash_point_order: number;
|
|
1301
|
-
dynamic_prices: {
|
|
1302
|
-
[key: string]: number;
|
|
1303
|
-
} | null;
|
|
1304
|
-
uid: number;
|
|
1751
|
+
} | null;
|
|
1752
|
+
is_sub_ticket: boolean;
|
|
1753
|
+
created_at: string;
|
|
1754
|
+
updated_at: string;
|
|
1755
|
+
shipped_with_merchandise_id: number | null;
|
|
1756
|
+
restricted_shop_account: boolean;
|
|
1757
|
+
cash_point_order: number;
|
|
1758
|
+
capacities: {
|
|
1759
|
+
[key: string]: number;
|
|
1305
1760
|
};
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
time: string;
|
|
1309
|
-
quantity: number;
|
|
1310
|
-
shipped_with_merchandise_id?: number | null;
|
|
1311
|
-
} | {
|
|
1312
|
-
id: number;
|
|
1313
|
-
time: string;
|
|
1314
|
-
quantity: number;
|
|
1315
|
-
shipped_with_merchandise_id?: number | null;
|
|
1761
|
+
total_capacities: {
|
|
1762
|
+
[key: string]: number;
|
|
1316
1763
|
};
|
|
1317
|
-
|
|
1764
|
+
max_capacity: number;
|
|
1765
|
+
max_total_capacity: number;
|
|
1766
|
+
dynamic_prices: {
|
|
1767
|
+
[key: string]: number;
|
|
1768
|
+
} | null;
|
|
1769
|
+
uid: number;
|
|
1770
|
+
} | {
|
|
1771
|
+
product_type: import('../lib/models/cart/types').ProductType;
|
|
1772
|
+
type: UITicketType;
|
|
1773
|
+
shop_order: number;
|
|
1774
|
+
minAvailableCapacity: number;
|
|
1775
|
+
selectedTime: string;
|
|
1776
|
+
id: number;
|
|
1777
|
+
title: string;
|
|
1778
|
+
ticket_type: "time_slot" | "annual" | "normal";
|
|
1779
|
+
bookable: boolean;
|
|
1780
|
+
museum_ids: number[];
|
|
1781
|
+
exhibition_ids: number[];
|
|
1318
1782
|
price_cents: number;
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
museum_ids: number[];
|
|
1344
|
-
exhibition_ids: number[];
|
|
1345
|
-
price_cents: number;
|
|
1346
|
-
discount: number;
|
|
1347
|
-
vat_pct: number;
|
|
1348
|
-
tax_included: boolean;
|
|
1349
|
-
entry_duration: number | null;
|
|
1350
|
-
min_persons: number;
|
|
1351
|
-
max_persons: number;
|
|
1352
|
-
quota_ids: number[];
|
|
1353
|
-
first_entry: number;
|
|
1354
|
-
last_entry: number;
|
|
1355
|
-
personalizeable: boolean;
|
|
1356
|
-
attendees: boolean | string;
|
|
1357
|
-
identification: boolean | string;
|
|
1358
|
-
free_timing: boolean;
|
|
1359
|
-
is_collective: boolean;
|
|
1360
|
-
is_upgrade: boolean;
|
|
1361
|
-
is_mantle: boolean;
|
|
1362
|
-
description: string | null;
|
|
1363
|
-
sub_ticket_ids: number[];
|
|
1364
|
-
sub_tickets: {
|
|
1365
|
-
[key: string]: {
|
|
1366
|
-
title?: string;
|
|
1367
|
-
min_persons?: number;
|
|
1368
|
-
max_persons?: number;
|
|
1369
|
-
description?: string | null;
|
|
1370
|
-
};
|
|
1371
|
-
} | null;
|
|
1372
|
-
is_sub_ticket: boolean;
|
|
1373
|
-
created_at: string;
|
|
1374
|
-
updated_at: string;
|
|
1375
|
-
shipped_with_merchandise_id: number | null;
|
|
1376
|
-
restricted_shop_account: boolean;
|
|
1377
|
-
cash_point_order: number;
|
|
1378
|
-
capacities: {
|
|
1379
|
-
[key: string]: number;
|
|
1380
|
-
};
|
|
1381
|
-
total_capacities: {
|
|
1382
|
-
[key: string]: number;
|
|
1783
|
+
discount: number;
|
|
1784
|
+
vat_pct: number;
|
|
1785
|
+
tax_included: boolean;
|
|
1786
|
+
entry_duration: number | null;
|
|
1787
|
+
min_persons: number;
|
|
1788
|
+
max_persons: number;
|
|
1789
|
+
quota_ids: number[];
|
|
1790
|
+
first_entry: number;
|
|
1791
|
+
last_entry: number;
|
|
1792
|
+
personalizeable: boolean;
|
|
1793
|
+
attendees: boolean | string;
|
|
1794
|
+
identification: boolean | string;
|
|
1795
|
+
free_timing: boolean;
|
|
1796
|
+
is_collective: boolean;
|
|
1797
|
+
is_upgrade: boolean;
|
|
1798
|
+
is_mantle: boolean;
|
|
1799
|
+
description: string | null;
|
|
1800
|
+
sub_ticket_ids: number[];
|
|
1801
|
+
sub_tickets: {
|
|
1802
|
+
[key: string]: {
|
|
1803
|
+
title?: string;
|
|
1804
|
+
min_persons?: number;
|
|
1805
|
+
max_persons?: number;
|
|
1806
|
+
description?: string | null;
|
|
1383
1807
|
};
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
discount: number;
|
|
1406
|
-
vat_pct: number;
|
|
1407
|
-
tax_included: boolean;
|
|
1408
|
-
entry_duration: number | null;
|
|
1409
|
-
min_persons: number;
|
|
1410
|
-
max_persons: number;
|
|
1411
|
-
quota_ids: number[];
|
|
1412
|
-
first_entry: number;
|
|
1413
|
-
last_entry: number;
|
|
1414
|
-
personalizeable: boolean;
|
|
1415
|
-
attendees: boolean | string;
|
|
1416
|
-
identification: boolean | string;
|
|
1417
|
-
free_timing: boolean;
|
|
1418
|
-
is_collective: boolean;
|
|
1419
|
-
is_upgrade: boolean;
|
|
1420
|
-
is_mantle: boolean;
|
|
1421
|
-
description: string | null;
|
|
1422
|
-
sub_ticket_ids: number[];
|
|
1423
|
-
sub_tickets: {
|
|
1424
|
-
[key: string]: {
|
|
1425
|
-
title?: string;
|
|
1426
|
-
min_persons?: number;
|
|
1427
|
-
max_persons?: number;
|
|
1428
|
-
description?: string | null;
|
|
1429
|
-
};
|
|
1430
|
-
} | null;
|
|
1431
|
-
is_sub_ticket: boolean;
|
|
1432
|
-
created_at: string;
|
|
1433
|
-
updated_at: string;
|
|
1434
|
-
shipped_with_merchandise_id: number | null;
|
|
1435
|
-
restricted_shop_account: boolean;
|
|
1436
|
-
cash_point_order: number;
|
|
1437
|
-
dynamic_prices: {
|
|
1438
|
-
[key: string]: number;
|
|
1439
|
-
} | null;
|
|
1440
|
-
uid: number;
|
|
1441
|
-
};
|
|
1442
|
-
attributes: {
|
|
1443
|
-
id: number;
|
|
1444
|
-
time: string;
|
|
1445
|
-
quantity: number;
|
|
1446
|
-
shipped_with_merchandise_id?: number | null;
|
|
1447
|
-
} | {
|
|
1448
|
-
id: number;
|
|
1449
|
-
time: string;
|
|
1450
|
-
quantity: number;
|
|
1451
|
-
shipped_with_merchandise_id?: number | null;
|
|
1452
|
-
};
|
|
1453
|
-
uuid: string;
|
|
1808
|
+
} | null;
|
|
1809
|
+
is_sub_ticket: boolean;
|
|
1810
|
+
created_at: string;
|
|
1811
|
+
updated_at: string;
|
|
1812
|
+
shipped_with_merchandise_id: number | null;
|
|
1813
|
+
restricted_shop_account: boolean;
|
|
1814
|
+
cash_point_order: number;
|
|
1815
|
+
dynamic_prices: {
|
|
1816
|
+
[key: string]: number;
|
|
1817
|
+
} | null;
|
|
1818
|
+
uid: number;
|
|
1819
|
+
} | {
|
|
1820
|
+
product_type: import('../lib/models/cart/types').ProductType;
|
|
1821
|
+
type: UITicketType;
|
|
1822
|
+
shop_order: number;
|
|
1823
|
+
id: number;
|
|
1824
|
+
title: string;
|
|
1825
|
+
ticket_type: "time_slot" | "annual" | "normal";
|
|
1826
|
+
bookable: boolean;
|
|
1827
|
+
museum_ids: number[];
|
|
1828
|
+
exhibition_ids: number[];
|
|
1454
1829
|
price_cents: number;
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1830
|
+
discount: number;
|
|
1831
|
+
vat_pct: number;
|
|
1832
|
+
tax_included: boolean;
|
|
1833
|
+
entry_duration: number | null;
|
|
1834
|
+
min_persons: number;
|
|
1835
|
+
max_persons: number;
|
|
1836
|
+
quota_ids: number[];
|
|
1837
|
+
first_entry: number;
|
|
1838
|
+
last_entry: number;
|
|
1839
|
+
personalizeable: boolean;
|
|
1840
|
+
attendees: boolean | string;
|
|
1841
|
+
identification: boolean | string;
|
|
1842
|
+
free_timing: boolean;
|
|
1843
|
+
is_collective: boolean;
|
|
1844
|
+
is_upgrade: boolean;
|
|
1845
|
+
is_mantle: boolean;
|
|
1846
|
+
description: string | null;
|
|
1847
|
+
sub_ticket_ids: number[];
|
|
1848
|
+
sub_tickets: {
|
|
1849
|
+
[key: string]: {
|
|
1850
|
+
title?: string;
|
|
1851
|
+
min_persons?: number;
|
|
1852
|
+
max_persons?: number;
|
|
1853
|
+
description?: string | null;
|
|
1479
1854
|
};
|
|
1480
|
-
}
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1855
|
+
} | null;
|
|
1856
|
+
is_sub_ticket: boolean;
|
|
1857
|
+
created_at: string;
|
|
1858
|
+
updated_at: string;
|
|
1859
|
+
shipped_with_merchandise_id: number | null;
|
|
1860
|
+
restricted_shop_account: boolean;
|
|
1861
|
+
cash_point_order: number;
|
|
1862
|
+
dynamic_prices: {
|
|
1863
|
+
[key: string]: number;
|
|
1864
|
+
} | null;
|
|
1865
|
+
uid: number;
|
|
1489
1866
|
};
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1867
|
+
orderAttributes(): {
|
|
1868
|
+
shipped_with_merchandise_id: null;
|
|
1869
|
+
shipping_mode: string;
|
|
1870
|
+
id: number;
|
|
1871
|
+
time: string;
|
|
1872
|
+
quantity: number;
|
|
1873
|
+
} | {
|
|
1874
|
+
shipped_with_merchandise_id: null;
|
|
1875
|
+
shipping_mode: string;
|
|
1876
|
+
id: number;
|
|
1877
|
+
quantities: {
|
|
1878
|
+
[x: number]: number;
|
|
1879
|
+
};
|
|
1880
|
+
};
|
|
1881
|
+
uuid: string;
|
|
1882
|
+
subId: string;
|
|
1883
|
+
price_cents: number;
|
|
1884
|
+
price_formatted: string;
|
|
1885
|
+
final_price_cents: number;
|
|
1886
|
+
final_price_formatted: string;
|
|
1887
|
+
total_price_cents: number;
|
|
1888
|
+
total_price_formatted: string;
|
|
1889
|
+
quantity: number;
|
|
1890
|
+
time: string;
|
|
1495
1891
|
};
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
type: "annual" | "timeslot" | "day";
|
|
1892
|
+
timeslotItem2: {
|
|
1893
|
+
type: import('../lib/models/cart/types').ProductType;
|
|
1894
|
+
product: {
|
|
1895
|
+
product_type: import('../lib/models/cart/types').ProductType;
|
|
1896
|
+
type: UITicketType;
|
|
1502
1897
|
shop_order: number;
|
|
1503
|
-
max_capacity: number;
|
|
1504
|
-
min_quantity: number;
|
|
1505
|
-
max_quantity: number;
|
|
1506
1898
|
minAvailableCapacity: number;
|
|
1507
1899
|
selectedTime: string;
|
|
1508
|
-
quantity: number;
|
|
1509
1900
|
id: number;
|
|
1510
1901
|
title: string;
|
|
1511
1902
|
ticket_type: "time_slot" | "annual" | "normal";
|
|
@@ -1551,20 +1942,120 @@ export declare const CartItemMocks: {
|
|
|
1551
1942
|
total_capacities: {
|
|
1552
1943
|
[key: string]: number;
|
|
1553
1944
|
};
|
|
1945
|
+
max_capacity: number;
|
|
1946
|
+
max_total_capacity: number;
|
|
1947
|
+
dynamic_prices: {
|
|
1948
|
+
[key: string]: number;
|
|
1949
|
+
} | null;
|
|
1950
|
+
uid: number;
|
|
1951
|
+
} | {
|
|
1952
|
+
product_type: import('../lib/models/cart/types').ProductType;
|
|
1953
|
+
type: UITicketType;
|
|
1954
|
+
shop_order: number;
|
|
1955
|
+
id: number;
|
|
1956
|
+
title: string;
|
|
1957
|
+
ticket_type: "time_slot" | "annual" | "normal";
|
|
1958
|
+
bookable: boolean;
|
|
1959
|
+
museum_ids: number[];
|
|
1960
|
+
exhibition_ids: number[];
|
|
1961
|
+
price_cents: number;
|
|
1962
|
+
discount: number;
|
|
1963
|
+
vat_pct: number;
|
|
1964
|
+
tax_included: boolean;
|
|
1965
|
+
entry_duration: number | null;
|
|
1966
|
+
min_persons: number;
|
|
1967
|
+
max_persons: number;
|
|
1968
|
+
quota_ids: number[];
|
|
1969
|
+
first_entry: number;
|
|
1970
|
+
last_entry: number;
|
|
1971
|
+
personalizeable: boolean;
|
|
1972
|
+
attendees: boolean | string;
|
|
1973
|
+
identification: boolean | string;
|
|
1974
|
+
free_timing: boolean;
|
|
1975
|
+
is_collective: boolean;
|
|
1976
|
+
is_upgrade: boolean;
|
|
1977
|
+
is_mantle: boolean;
|
|
1978
|
+
description: string | null;
|
|
1979
|
+
sub_ticket_ids: number[];
|
|
1980
|
+
sub_tickets: {
|
|
1981
|
+
[key: string]: {
|
|
1982
|
+
title?: string;
|
|
1983
|
+
min_persons?: number;
|
|
1984
|
+
max_persons?: number;
|
|
1985
|
+
description?: string | null;
|
|
1986
|
+
};
|
|
1987
|
+
} | null;
|
|
1988
|
+
is_sub_ticket: boolean;
|
|
1989
|
+
created_at: string;
|
|
1990
|
+
updated_at: string;
|
|
1991
|
+
shipped_with_merchandise_id: number | null;
|
|
1992
|
+
restricted_shop_account: boolean;
|
|
1993
|
+
cash_point_order: number;
|
|
1994
|
+
capacities: {
|
|
1995
|
+
[key: string]: number;
|
|
1996
|
+
};
|
|
1997
|
+
total_capacities: {
|
|
1998
|
+
[key: string]: number;
|
|
1999
|
+
};
|
|
2000
|
+
max_capacity: number;
|
|
1554
2001
|
max_total_capacity: number;
|
|
1555
2002
|
dynamic_prices: {
|
|
1556
2003
|
[key: string]: number;
|
|
1557
2004
|
} | null;
|
|
1558
2005
|
uid: number;
|
|
1559
2006
|
} | {
|
|
1560
|
-
|
|
2007
|
+
product_type: import('../lib/models/cart/types').ProductType;
|
|
2008
|
+
type: UITicketType;
|
|
1561
2009
|
shop_order: number;
|
|
1562
|
-
max_capacity: number;
|
|
1563
|
-
min_quantity: number;
|
|
1564
|
-
max_quantity: number;
|
|
1565
2010
|
minAvailableCapacity: number;
|
|
1566
2011
|
selectedTime: string;
|
|
1567
|
-
|
|
2012
|
+
id: number;
|
|
2013
|
+
title: string;
|
|
2014
|
+
ticket_type: "time_slot" | "annual" | "normal";
|
|
2015
|
+
bookable: boolean;
|
|
2016
|
+
museum_ids: number[];
|
|
2017
|
+
exhibition_ids: number[];
|
|
2018
|
+
price_cents: number;
|
|
2019
|
+
discount: number;
|
|
2020
|
+
vat_pct: number;
|
|
2021
|
+
tax_included: boolean;
|
|
2022
|
+
entry_duration: number | null;
|
|
2023
|
+
min_persons: number;
|
|
2024
|
+
max_persons: number;
|
|
2025
|
+
quota_ids: number[];
|
|
2026
|
+
first_entry: number;
|
|
2027
|
+
last_entry: number;
|
|
2028
|
+
personalizeable: boolean;
|
|
2029
|
+
attendees: boolean | string;
|
|
2030
|
+
identification: boolean | string;
|
|
2031
|
+
free_timing: boolean;
|
|
2032
|
+
is_collective: boolean;
|
|
2033
|
+
is_upgrade: boolean;
|
|
2034
|
+
is_mantle: boolean;
|
|
2035
|
+
description: string | null;
|
|
2036
|
+
sub_ticket_ids: number[];
|
|
2037
|
+
sub_tickets: {
|
|
2038
|
+
[key: string]: {
|
|
2039
|
+
title?: string;
|
|
2040
|
+
min_persons?: number;
|
|
2041
|
+
max_persons?: number;
|
|
2042
|
+
description?: string | null;
|
|
2043
|
+
};
|
|
2044
|
+
} | null;
|
|
2045
|
+
is_sub_ticket: boolean;
|
|
2046
|
+
created_at: string;
|
|
2047
|
+
updated_at: string;
|
|
2048
|
+
shipped_with_merchandise_id: number | null;
|
|
2049
|
+
restricted_shop_account: boolean;
|
|
2050
|
+
cash_point_order: number;
|
|
2051
|
+
dynamic_prices: {
|
|
2052
|
+
[key: string]: number;
|
|
2053
|
+
} | null;
|
|
2054
|
+
uid: number;
|
|
2055
|
+
} | {
|
|
2056
|
+
product_type: import('../lib/models/cart/types').ProductType;
|
|
2057
|
+
type: UITicketType;
|
|
2058
|
+
shop_order: number;
|
|
1568
2059
|
id: number;
|
|
1569
2060
|
title: string;
|
|
1570
2061
|
ticket_type: "time_slot" | "annual" | "normal";
|
|
@@ -1609,18 +2100,22 @@ export declare const CartItemMocks: {
|
|
|
1609
2100
|
} | null;
|
|
1610
2101
|
uid: number;
|
|
1611
2102
|
};
|
|
1612
|
-
|
|
2103
|
+
orderAttributes(): {
|
|
2104
|
+
shipped_with_merchandise_id: null;
|
|
2105
|
+
shipping_mode: string;
|
|
1613
2106
|
id: number;
|
|
1614
2107
|
time: string;
|
|
1615
2108
|
quantity: number;
|
|
1616
|
-
shipped_with_merchandise_id?: number | null;
|
|
1617
2109
|
} | {
|
|
2110
|
+
shipped_with_merchandise_id: null;
|
|
2111
|
+
shipping_mode: string;
|
|
1618
2112
|
id: number;
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
2113
|
+
quantities: {
|
|
2114
|
+
[x: number]: number;
|
|
2115
|
+
};
|
|
1622
2116
|
};
|
|
1623
2117
|
uuid: string;
|
|
2118
|
+
subId: string;
|
|
1624
2119
|
price_cents: number;
|
|
1625
2120
|
price_formatted: string;
|
|
1626
2121
|
final_price_cents: number;
|
|
@@ -1630,17 +2125,14 @@ export declare const CartItemMocks: {
|
|
|
1630
2125
|
quantity: number;
|
|
1631
2126
|
time: string;
|
|
1632
2127
|
};
|
|
1633
|
-
|
|
1634
|
-
type: import('../
|
|
1635
|
-
|
|
1636
|
-
|
|
2128
|
+
annualItem1: {
|
|
2129
|
+
type: import('../lib/models/cart/types').ProductType;
|
|
2130
|
+
product: {
|
|
2131
|
+
product_type: import('../lib/models/cart/types').ProductType;
|
|
2132
|
+
type: UITicketType;
|
|
1637
2133
|
shop_order: number;
|
|
1638
|
-
max_capacity: number;
|
|
1639
|
-
min_quantity: number;
|
|
1640
|
-
max_quantity: number;
|
|
1641
2134
|
minAvailableCapacity: number;
|
|
1642
2135
|
selectedTime: string;
|
|
1643
|
-
quantity: number;
|
|
1644
2136
|
id: number;
|
|
1645
2137
|
title: string;
|
|
1646
2138
|
ticket_type: "time_slot" | "annual" | "normal";
|
|
@@ -1686,20 +2178,16 @@ export declare const CartItemMocks: {
|
|
|
1686
2178
|
total_capacities: {
|
|
1687
2179
|
[key: string]: number;
|
|
1688
2180
|
};
|
|
2181
|
+
max_capacity: number;
|
|
1689
2182
|
max_total_capacity: number;
|
|
1690
2183
|
dynamic_prices: {
|
|
1691
2184
|
[key: string]: number;
|
|
1692
2185
|
} | null;
|
|
1693
2186
|
uid: number;
|
|
1694
2187
|
} | {
|
|
1695
|
-
|
|
2188
|
+
product_type: import('../lib/models/cart/types').ProductType;
|
|
2189
|
+
type: UITicketType;
|
|
1696
2190
|
shop_order: number;
|
|
1697
|
-
max_capacity: number;
|
|
1698
|
-
min_quantity: number;
|
|
1699
|
-
max_quantity: number;
|
|
1700
|
-
minAvailableCapacity: number;
|
|
1701
|
-
selectedTime: string;
|
|
1702
|
-
quantity: number;
|
|
1703
2191
|
id: number;
|
|
1704
2192
|
title: string;
|
|
1705
2193
|
ticket_type: "time_slot" | "annual" | "normal";
|
|
@@ -1739,43 +2227,24 @@ export declare const CartItemMocks: {
|
|
|
1739
2227
|
shipped_with_merchandise_id: number | null;
|
|
1740
2228
|
restricted_shop_account: boolean;
|
|
1741
2229
|
cash_point_order: number;
|
|
2230
|
+
capacities: {
|
|
2231
|
+
[key: string]: number;
|
|
2232
|
+
};
|
|
2233
|
+
total_capacities: {
|
|
2234
|
+
[key: string]: number;
|
|
2235
|
+
};
|
|
2236
|
+
max_capacity: number;
|
|
2237
|
+
max_total_capacity: number;
|
|
1742
2238
|
dynamic_prices: {
|
|
1743
2239
|
[key: string]: number;
|
|
1744
2240
|
} | null;
|
|
1745
2241
|
uid: number;
|
|
1746
|
-
};
|
|
1747
|
-
attributes: {
|
|
1748
|
-
id: number;
|
|
1749
|
-
time: string;
|
|
1750
|
-
quantity: number;
|
|
1751
|
-
shipped_with_merchandise_id?: number | null;
|
|
1752
2242
|
} | {
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
quantity: number;
|
|
1756
|
-
shipped_with_merchandise_id?: number | null;
|
|
1757
|
-
};
|
|
1758
|
-
uuid: string;
|
|
1759
|
-
price_cents: number;
|
|
1760
|
-
price_formatted: string;
|
|
1761
|
-
final_price_cents: number;
|
|
1762
|
-
final_price_formatted: string;
|
|
1763
|
-
total_price_cents: number;
|
|
1764
|
-
total_price_formatted: string;
|
|
1765
|
-
quantity: number;
|
|
1766
|
-
time: string;
|
|
1767
|
-
};
|
|
1768
|
-
annualTicket1: {
|
|
1769
|
-
type: import('../components/cart/lib/CartItem.ts').OrderItemType;
|
|
1770
|
-
item: {
|
|
1771
|
-
type: "annual" | "timeslot" | "day";
|
|
2243
|
+
product_type: import('../lib/models/cart/types').ProductType;
|
|
2244
|
+
type: UITicketType;
|
|
1772
2245
|
shop_order: number;
|
|
1773
|
-
max_capacity: number;
|
|
1774
|
-
min_quantity: number;
|
|
1775
|
-
max_quantity: number;
|
|
1776
2246
|
minAvailableCapacity: number;
|
|
1777
2247
|
selectedTime: string;
|
|
1778
|
-
quantity: number;
|
|
1779
2248
|
id: number;
|
|
1780
2249
|
title: string;
|
|
1781
2250
|
ticket_type: "time_slot" | "annual" | "normal";
|
|
@@ -1815,26 +2284,14 @@ export declare const CartItemMocks: {
|
|
|
1815
2284
|
shipped_with_merchandise_id: number | null;
|
|
1816
2285
|
restricted_shop_account: boolean;
|
|
1817
2286
|
cash_point_order: number;
|
|
1818
|
-
capacities: {
|
|
1819
|
-
[key: string]: number;
|
|
1820
|
-
};
|
|
1821
|
-
total_capacities: {
|
|
1822
|
-
[key: string]: number;
|
|
1823
|
-
};
|
|
1824
|
-
max_total_capacity: number;
|
|
1825
2287
|
dynamic_prices: {
|
|
1826
2288
|
[key: string]: number;
|
|
1827
2289
|
} | null;
|
|
1828
2290
|
uid: number;
|
|
1829
2291
|
} | {
|
|
1830
|
-
|
|
2292
|
+
product_type: import('../lib/models/cart/types').ProductType;
|
|
2293
|
+
type: UITicketType;
|
|
1831
2294
|
shop_order: number;
|
|
1832
|
-
max_capacity: number;
|
|
1833
|
-
min_quantity: number;
|
|
1834
|
-
max_quantity: number;
|
|
1835
|
-
minAvailableCapacity: number;
|
|
1836
|
-
selectedTime: string;
|
|
1837
|
-
quantity: number;
|
|
1838
2295
|
id: number;
|
|
1839
2296
|
title: string;
|
|
1840
2297
|
ticket_type: "time_slot" | "annual" | "normal";
|
|
@@ -1879,18 +2336,22 @@ export declare const CartItemMocks: {
|
|
|
1879
2336
|
} | null;
|
|
1880
2337
|
uid: number;
|
|
1881
2338
|
};
|
|
1882
|
-
|
|
2339
|
+
orderAttributes(): {
|
|
2340
|
+
shipped_with_merchandise_id: null;
|
|
2341
|
+
shipping_mode: string;
|
|
1883
2342
|
id: number;
|
|
1884
2343
|
time: string;
|
|
1885
2344
|
quantity: number;
|
|
1886
|
-
shipped_with_merchandise_id?: number | null;
|
|
1887
2345
|
} | {
|
|
2346
|
+
shipped_with_merchandise_id: null;
|
|
2347
|
+
shipping_mode: string;
|
|
1888
2348
|
id: number;
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
2349
|
+
quantities: {
|
|
2350
|
+
[x: number]: number;
|
|
2351
|
+
};
|
|
1892
2352
|
};
|
|
1893
2353
|
uuid: string;
|
|
2354
|
+
subId: string;
|
|
1894
2355
|
price_cents: number;
|
|
1895
2356
|
price_formatted: string;
|
|
1896
2357
|
final_price_cents: number;
|
|
@@ -1900,17 +2361,14 @@ export declare const CartItemMocks: {
|
|
|
1900
2361
|
quantity: number;
|
|
1901
2362
|
time: string;
|
|
1902
2363
|
};
|
|
1903
|
-
|
|
1904
|
-
type: import('../
|
|
1905
|
-
|
|
1906
|
-
|
|
2364
|
+
annualItem2: {
|
|
2365
|
+
type: import('../lib/models/cart/types').ProductType;
|
|
2366
|
+
product: {
|
|
2367
|
+
product_type: import('../lib/models/cart/types').ProductType;
|
|
2368
|
+
type: UITicketType;
|
|
1907
2369
|
shop_order: number;
|
|
1908
|
-
max_capacity: number;
|
|
1909
|
-
min_quantity: number;
|
|
1910
|
-
max_quantity: number;
|
|
1911
2370
|
minAvailableCapacity: number;
|
|
1912
2371
|
selectedTime: string;
|
|
1913
|
-
quantity: number;
|
|
1914
2372
|
id: number;
|
|
1915
2373
|
title: string;
|
|
1916
2374
|
ticket_type: "time_slot" | "annual" | "normal";
|
|
@@ -1956,20 +2414,120 @@ export declare const CartItemMocks: {
|
|
|
1956
2414
|
total_capacities: {
|
|
1957
2415
|
[key: string]: number;
|
|
1958
2416
|
};
|
|
2417
|
+
max_capacity: number;
|
|
1959
2418
|
max_total_capacity: number;
|
|
1960
2419
|
dynamic_prices: {
|
|
1961
2420
|
[key: string]: number;
|
|
1962
2421
|
} | null;
|
|
1963
2422
|
uid: number;
|
|
1964
2423
|
} | {
|
|
1965
|
-
|
|
2424
|
+
product_type: import('../lib/models/cart/types').ProductType;
|
|
2425
|
+
type: UITicketType;
|
|
1966
2426
|
shop_order: number;
|
|
2427
|
+
id: number;
|
|
2428
|
+
title: string;
|
|
2429
|
+
ticket_type: "time_slot" | "annual" | "normal";
|
|
2430
|
+
bookable: boolean;
|
|
2431
|
+
museum_ids: number[];
|
|
2432
|
+
exhibition_ids: number[];
|
|
2433
|
+
price_cents: number;
|
|
2434
|
+
discount: number;
|
|
2435
|
+
vat_pct: number;
|
|
2436
|
+
tax_included: boolean;
|
|
2437
|
+
entry_duration: number | null;
|
|
2438
|
+
min_persons: number;
|
|
2439
|
+
max_persons: number;
|
|
2440
|
+
quota_ids: number[];
|
|
2441
|
+
first_entry: number;
|
|
2442
|
+
last_entry: number;
|
|
2443
|
+
personalizeable: boolean;
|
|
2444
|
+
attendees: boolean | string;
|
|
2445
|
+
identification: boolean | string;
|
|
2446
|
+
free_timing: boolean;
|
|
2447
|
+
is_collective: boolean;
|
|
2448
|
+
is_upgrade: boolean;
|
|
2449
|
+
is_mantle: boolean;
|
|
2450
|
+
description: string | null;
|
|
2451
|
+
sub_ticket_ids: number[];
|
|
2452
|
+
sub_tickets: {
|
|
2453
|
+
[key: string]: {
|
|
2454
|
+
title?: string;
|
|
2455
|
+
min_persons?: number;
|
|
2456
|
+
max_persons?: number;
|
|
2457
|
+
description?: string | null;
|
|
2458
|
+
};
|
|
2459
|
+
} | null;
|
|
2460
|
+
is_sub_ticket: boolean;
|
|
2461
|
+
created_at: string;
|
|
2462
|
+
updated_at: string;
|
|
2463
|
+
shipped_with_merchandise_id: number | null;
|
|
2464
|
+
restricted_shop_account: boolean;
|
|
2465
|
+
cash_point_order: number;
|
|
2466
|
+
capacities: {
|
|
2467
|
+
[key: string]: number;
|
|
2468
|
+
};
|
|
2469
|
+
total_capacities: {
|
|
2470
|
+
[key: string]: number;
|
|
2471
|
+
};
|
|
1967
2472
|
max_capacity: number;
|
|
1968
|
-
|
|
1969
|
-
|
|
2473
|
+
max_total_capacity: number;
|
|
2474
|
+
dynamic_prices: {
|
|
2475
|
+
[key: string]: number;
|
|
2476
|
+
} | null;
|
|
2477
|
+
uid: number;
|
|
2478
|
+
} | {
|
|
2479
|
+
product_type: import('../lib/models/cart/types').ProductType;
|
|
2480
|
+
type: UITicketType;
|
|
2481
|
+
shop_order: number;
|
|
1970
2482
|
minAvailableCapacity: number;
|
|
1971
2483
|
selectedTime: string;
|
|
1972
|
-
|
|
2484
|
+
id: number;
|
|
2485
|
+
title: string;
|
|
2486
|
+
ticket_type: "time_slot" | "annual" | "normal";
|
|
2487
|
+
bookable: boolean;
|
|
2488
|
+
museum_ids: number[];
|
|
2489
|
+
exhibition_ids: number[];
|
|
2490
|
+
price_cents: number;
|
|
2491
|
+
discount: number;
|
|
2492
|
+
vat_pct: number;
|
|
2493
|
+
tax_included: boolean;
|
|
2494
|
+
entry_duration: number | null;
|
|
2495
|
+
min_persons: number;
|
|
2496
|
+
max_persons: number;
|
|
2497
|
+
quota_ids: number[];
|
|
2498
|
+
first_entry: number;
|
|
2499
|
+
last_entry: number;
|
|
2500
|
+
personalizeable: boolean;
|
|
2501
|
+
attendees: boolean | string;
|
|
2502
|
+
identification: boolean | string;
|
|
2503
|
+
free_timing: boolean;
|
|
2504
|
+
is_collective: boolean;
|
|
2505
|
+
is_upgrade: boolean;
|
|
2506
|
+
is_mantle: boolean;
|
|
2507
|
+
description: string | null;
|
|
2508
|
+
sub_ticket_ids: number[];
|
|
2509
|
+
sub_tickets: {
|
|
2510
|
+
[key: string]: {
|
|
2511
|
+
title?: string;
|
|
2512
|
+
min_persons?: number;
|
|
2513
|
+
max_persons?: number;
|
|
2514
|
+
description?: string | null;
|
|
2515
|
+
};
|
|
2516
|
+
} | null;
|
|
2517
|
+
is_sub_ticket: boolean;
|
|
2518
|
+
created_at: string;
|
|
2519
|
+
updated_at: string;
|
|
2520
|
+
shipped_with_merchandise_id: number | null;
|
|
2521
|
+
restricted_shop_account: boolean;
|
|
2522
|
+
cash_point_order: number;
|
|
2523
|
+
dynamic_prices: {
|
|
2524
|
+
[key: string]: number;
|
|
2525
|
+
} | null;
|
|
2526
|
+
uid: number;
|
|
2527
|
+
} | {
|
|
2528
|
+
product_type: import('../lib/models/cart/types').ProductType;
|
|
2529
|
+
type: UITicketType;
|
|
2530
|
+
shop_order: number;
|
|
1973
2531
|
id: number;
|
|
1974
2532
|
title: string;
|
|
1975
2533
|
ticket_type: "time_slot" | "annual" | "normal";
|
|
@@ -2014,18 +2572,89 @@ export declare const CartItemMocks: {
|
|
|
2014
2572
|
} | null;
|
|
2015
2573
|
uid: number;
|
|
2016
2574
|
};
|
|
2017
|
-
|
|
2575
|
+
orderAttributes(): {
|
|
2576
|
+
shipped_with_merchandise_id: null;
|
|
2577
|
+
shipping_mode: string;
|
|
2018
2578
|
id: number;
|
|
2019
2579
|
time: string;
|
|
2020
2580
|
quantity: number;
|
|
2021
|
-
shipped_with_merchandise_id?: number | null;
|
|
2022
2581
|
} | {
|
|
2582
|
+
shipped_with_merchandise_id: null;
|
|
2583
|
+
shipping_mode: string;
|
|
2584
|
+
id: number;
|
|
2585
|
+
quantities: {
|
|
2586
|
+
[x: number]: number;
|
|
2587
|
+
};
|
|
2588
|
+
};
|
|
2589
|
+
uuid: string;
|
|
2590
|
+
subId: string;
|
|
2591
|
+
price_cents: number;
|
|
2592
|
+
price_formatted: string;
|
|
2593
|
+
final_price_cents: number;
|
|
2594
|
+
final_price_formatted: string;
|
|
2595
|
+
total_price_cents: number;
|
|
2596
|
+
total_price_formatted: string;
|
|
2597
|
+
quantity: number;
|
|
2598
|
+
time: string;
|
|
2599
|
+
};
|
|
2600
|
+
eventScaledItem1: {
|
|
2601
|
+
type: import('../lib/models/cart/types').ProductType;
|
|
2602
|
+
product: {
|
|
2603
|
+
type: "scale";
|
|
2604
|
+
max_capacity: number;
|
|
2605
|
+
min_quantity: number;
|
|
2606
|
+
max_quantity: number;
|
|
2607
|
+
minAvailableCapacity: number;
|
|
2608
|
+
selectedTime: string;
|
|
2609
|
+
quantity: number;
|
|
2610
|
+
accounting_article_id: number;
|
|
2611
|
+
accounting_article_type: string;
|
|
2612
|
+
description: string;
|
|
2613
|
+
group: boolean;
|
|
2614
|
+
optional: boolean;
|
|
2615
|
+
price_cents: number;
|
|
2616
|
+
scale_price_id: number;
|
|
2617
|
+
title: string;
|
|
2618
|
+
vat_pct: number;
|
|
2619
|
+
id: number;
|
|
2620
|
+
tax_included: boolean;
|
|
2621
|
+
product_type: import('../lib/models/cart/types').ProductType;
|
|
2622
|
+
uid: number;
|
|
2623
|
+
} | {
|
|
2624
|
+
type: "scale";
|
|
2625
|
+
max_capacity: number;
|
|
2626
|
+
min_quantity: number;
|
|
2627
|
+
max_quantity: number;
|
|
2628
|
+
product_type: import('../lib/models/cart/types').ProductType;
|
|
2629
|
+
accounting_article_id: number;
|
|
2630
|
+
accounting_article_type: string;
|
|
2631
|
+
description: string;
|
|
2632
|
+
group: boolean;
|
|
2633
|
+
optional: boolean;
|
|
2634
|
+
price_cents: number;
|
|
2635
|
+
scale_price_id: number;
|
|
2636
|
+
title: string;
|
|
2637
|
+
vat_pct: number;
|
|
2638
|
+
id: number;
|
|
2639
|
+
tax_included: boolean;
|
|
2640
|
+
uid: number;
|
|
2641
|
+
};
|
|
2642
|
+
orderAttributes(): {
|
|
2643
|
+
shipped_with_merchandise_id: null;
|
|
2644
|
+
shipping_mode: string;
|
|
2023
2645
|
id: number;
|
|
2024
2646
|
time: string;
|
|
2025
2647
|
quantity: number;
|
|
2026
|
-
|
|
2648
|
+
} | {
|
|
2649
|
+
shipped_with_merchandise_id: null;
|
|
2650
|
+
shipping_mode: string;
|
|
2651
|
+
id: number;
|
|
2652
|
+
quantities: {
|
|
2653
|
+
[x: number]: number;
|
|
2654
|
+
};
|
|
2027
2655
|
};
|
|
2028
2656
|
uuid: string;
|
|
2657
|
+
subId: string;
|
|
2029
2658
|
price_cents: number;
|
|
2030
2659
|
price_formatted: string;
|
|
2031
2660
|
final_price_cents: number;
|