@shopware/composables 0.0.0-canary-20250116155626
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/LICENSE +21 -0
- package/README.md +172 -0
- package/composables/index.ts +1 -0
- package/dist/index.d.mts +2239 -0
- package/dist/index.d.ts +2239 -0
- package/dist/index.mjs +2686 -0
- package/nuxt.config.ts +14 -0
- package/package.json +83 -0
- package/src/_test/index.ts +1 -0
- package/src/_test/useSetup.ts +43 -0
- package/src/cms/README.md +9 -0
- package/src/cms/cmsAssociations.ts +28 -0
- package/src/cms/index.ts +2 -0
- package/src/cms/useCmsElementConfig.test.ts +145 -0
- package/src/cms/useCmsElementConfig.ts +29 -0
- package/src/cms/useCmsElementImage.test.ts +179 -0
- package/src/cms/useCmsElementImage.ts +103 -0
- package/src/cms/useCmsElementProductBox.test.ts +15 -0
- package/src/cms/useCmsElementProductBox.ts +25 -0
- package/src/createShopwareContext.test.ts +23 -0
- package/src/createShopwareContext.ts +43 -0
- package/src/devtools/plugin.ts +201 -0
- package/src/helpers/ContextError.spec.ts +20 -0
- package/src/helpers/ContextError.ts +6 -0
- package/src/index.test.ts +54 -0
- package/src/index.ts +111 -0
- package/src/mocks/Cart.ts +774 -0
- package/src/mocks/CmsPage.ts +544 -0
- package/src/mocks/CmsProductBox.ts +377 -0
- package/src/mocks/Configurator.ts +123 -0
- package/src/mocks/Country.ts +184 -0
- package/src/mocks/CrossSellingResponse.ts +552 -0
- package/src/mocks/LandingPage.ts +62 -0
- package/src/mocks/Menu.ts +598 -0
- package/src/mocks/Order.ts +1151 -0
- package/src/mocks/Product.ts +473 -0
- package/src/mocks/ProductTierPrices.ts +771 -0
- package/src/mocks/Salutations.ts +51 -0
- package/src/mocks/Search.ts +518 -0
- package/src/types/cmsBlockTypes.ts +80 -0
- package/src/types/cmsElementTypes.ts +381 -0
- package/src/types/cmsSectionTypes.ts +15 -0
- package/src/types/index.ts +52 -0
- package/src/useAddToCart/useAddToCart.test.ts +39 -0
- package/src/useAddToCart/useAddToCart.ts +90 -0
- package/src/useAddress/useAddress.test.ts +134 -0
- package/src/useAddress/useAddress.ts +202 -0
- package/src/useB2bQuoteManagement/useB2bQuoteManagement.test.ts +137 -0
- package/src/useB2bQuoteManagement/useB2bQuoteManagement.ts +225 -0
- package/src/useBreadcrumbs/useBreadcrumbs.test.ts +71 -0
- package/src/useBreadcrumbs/useBreadcrumbs.ts +89 -0
- package/src/useCart/useCart.test.ts +251 -0
- package/src/useCart/useCart.ts +314 -0
- package/src/useCartErrorParamsResolver/useCartErrorParamsResolver.test.ts +122 -0
- package/src/useCartErrorParamsResolver/useCartErrorParamsResolver.ts +80 -0
- package/src/useCartItem/useCartItem.test.ts +168 -0
- package/src/useCartItem/useCartItem.ts +157 -0
- package/src/useCartNotification/useCartNotification.test.ts +129 -0
- package/src/useCartNotification/useCartNotification.ts +63 -0
- package/src/useCategory/useCategory.test.ts +14 -0
- package/src/useCategory/useCategory.ts +32 -0
- package/src/useCategorySearch/useCategorySearch.test.ts +98 -0
- package/src/useCategorySearch/useCategorySearch.ts +81 -0
- package/src/useCheckout/useCheckout.test.ts +104 -0
- package/src/useCheckout/useCheckout.ts +163 -0
- package/src/useCmsBlock/useCmsBlock.test.ts +25 -0
- package/src/useCmsBlock/useCmsBlock.ts +36 -0
- package/src/useCmsMeta/useCmsMeta.test.ts +17 -0
- package/src/useCmsMeta/useCmsMeta.ts +46 -0
- package/src/useCmsSection/useCmsSection.test.ts +18 -0
- package/src/useCmsSection/useCmsSection.ts +39 -0
- package/src/useCmsTranslations/useCmsTranslations.test.ts +10 -0
- package/src/useCmsTranslations/useCmsTranslations.ts +9 -0
- package/src/useContext/useContext.ts +36 -0
- package/src/useCountries/useCountries.test.ts +64 -0
- package/src/useCountries/useCountries.ts +64 -0
- package/src/useCustomerOrders/useCustomerOrders.test.ts +47 -0
- package/src/useCustomerOrders/useCustomerOrders.ts +89 -0
- package/src/useCustomerPassword/useCustomerPassword.test.ts +164 -0
- package/src/useCustomerPassword/useCustomerPassword.ts +57 -0
- package/src/useDefaultOrderAssociations/useDefaultOrderAssociations.test.ts +41 -0
- package/src/useDefaultOrderAssociations/useDefaultOrderAssociations.ts +45 -0
- package/src/useInternationalization/useInternationalization.test.ts +155 -0
- package/src/useInternationalization/useInternationalization.ts +159 -0
- package/src/useLandingSearch/useLandingSearch.test.ts +30 -0
- package/src/useLandingSearch/useLandingSearch.ts +58 -0
- package/src/useListing/useListing.test.ts +249 -0
- package/src/useListing/useListing.ts +592 -0
- package/src/useLocalWishlist/useLocalWishlist.test.ts +54 -0
- package/src/useLocalWishlist/useLocalWishlist.ts +95 -0
- package/src/useNavigation/useNavigation.test.ts +68 -0
- package/src/useNavigation/useNavigation.ts +83 -0
- package/src/useNavigationContext/useNavigationContext.test.ts +48 -0
- package/src/useNavigationContext/useNavigationContext.ts +39 -0
- package/src/useNavigationSearch/useNavigationSearch.test.ts +110 -0
- package/src/useNavigationSearch/useNavigationSearch.ts +60 -0
- package/src/useNewsletter/useNewsletter.test.ts +55 -0
- package/src/useNewsletter/useNewsletter.ts +109 -0
- package/src/useNotifications/useNotifications.test.ts +56 -0
- package/src/useNotifications/useNotifications.ts +119 -0
- package/src/useOrderDetails/useOrderDetails.test.ts +224 -0
- package/src/useOrderDetails/useOrderDetails.ts +329 -0
- package/src/useOrderPayment/useOrderPayment.test.ts +80 -0
- package/src/useOrderPayment/useOrderPayment.ts +119 -0
- package/src/usePrice/usePrice.test.ts +97 -0
- package/src/usePrice/usePrice.ts +106 -0
- package/src/useProduct/useProduct.test.ts +36 -0
- package/src/useProduct/useProduct.ts +56 -0
- package/src/useProductAssociations/useProductAssociations.spec.ts +105 -0
- package/src/useProductAssociations/useProductAssociations.ts +107 -0
- package/src/useProductConfigurator/useProductConfigurator.spec.ts +77 -0
- package/src/useProductConfigurator/useProductConfigurator.ts +134 -0
- package/src/useProductPrice/useProductPrice.test.ts +126 -0
- package/src/useProductPrice/useProductPrice.ts +131 -0
- package/src/useProductReviews/useProductReviews.test.ts +45 -0
- package/src/useProductReviews/useProductReviews.ts +80 -0
- package/src/useProductSearch/useProductSearch.test.ts +37 -0
- package/src/useProductSearch/useProductSearch.ts +58 -0
- package/src/useProductSearchSuggest/useProductSearchSuggest.test.ts +19 -0
- package/src/useProductSearchSuggest/useProductSearchSuggest.ts +67 -0
- package/src/useProductWishlist/useProductWishlist.test.ts +63 -0
- package/src/useProductWishlist/useProductWishlist.ts +74 -0
- package/src/useSalutations/useSalutations.spec.ts +37 -0
- package/src/useSalutations/useSalutations.ts +55 -0
- package/src/useSessionContext/useSessionContext.test.ts +221 -0
- package/src/useSessionContext/useSessionContext.ts +281 -0
- package/src/useShopwareContext/useShopwareContext.test.ts +8 -0
- package/src/useShopwareContext/useShopwareContext.ts +31 -0
- package/src/useSyncWishlist/useSyncWishlist.test.ts +117 -0
- package/src/useSyncWishlist/useSyncWishlist.ts +117 -0
- package/src/useUrlResolver/useUrlResolver.test.ts +25 -0
- package/src/useUrlResolver/useUrlResolver.ts +31 -0
- package/src/useUser/useUser.test.ts +290 -0
- package/src/useUser/useUser.ts +321 -0
- package/src/useWishlist/useWishlist.test.ts +178 -0
- package/src/useWishlist/useWishlist.ts +128 -0
- package/types/api-types.ts +11 -0
|
@@ -0,0 +1,774 @@
|
|
|
1
|
+
const Cart = {
|
|
2
|
+
extensions: {
|
|
3
|
+
"cart-promotions": {
|
|
4
|
+
addedCodes: [],
|
|
5
|
+
blockedPromotionIds: [],
|
|
6
|
+
apiAlias:
|
|
7
|
+
"shopware_core_checkout_promotion_cart_extension_cart_extension",
|
|
8
|
+
},
|
|
9
|
+
},
|
|
10
|
+
price: {
|
|
11
|
+
netPrice: 15.06,
|
|
12
|
+
totalPrice: 16.11,
|
|
13
|
+
calculatedTaxes: [
|
|
14
|
+
{
|
|
15
|
+
tax: 1.05,
|
|
16
|
+
taxRate: 7,
|
|
17
|
+
price: 16.11,
|
|
18
|
+
apiAlias: "cart_tax_calculated",
|
|
19
|
+
},
|
|
20
|
+
],
|
|
21
|
+
taxRules: [
|
|
22
|
+
{
|
|
23
|
+
taxRate: 7,
|
|
24
|
+
percentage: 100,
|
|
25
|
+
apiAlias: "cart_tax_rule",
|
|
26
|
+
},
|
|
27
|
+
],
|
|
28
|
+
positionPrice: 16.11,
|
|
29
|
+
taxStatus: "gross",
|
|
30
|
+
rawTotal: 16.11,
|
|
31
|
+
apiAlias: "cart_price",
|
|
32
|
+
},
|
|
33
|
+
lineItems: [
|
|
34
|
+
{
|
|
35
|
+
payload: {
|
|
36
|
+
isCloseout: false,
|
|
37
|
+
customFields: [],
|
|
38
|
+
createdAt: "2020-08-06 06:26:45.454",
|
|
39
|
+
releaseDate: null,
|
|
40
|
+
isNew: false,
|
|
41
|
+
markAsTopseller: null,
|
|
42
|
+
productNumber: "943280",
|
|
43
|
+
manufacturerId: "05cd4e976df14c4d90e351f345ff5aa3",
|
|
44
|
+
taxId: "94f1e03140d24698a894320e258e6d83",
|
|
45
|
+
tagIds: null,
|
|
46
|
+
categoryIds: [
|
|
47
|
+
"525abe8981214bd2ba94fd33942333ec",
|
|
48
|
+
"bda4b60e845240b2b9d6b60e71196e14",
|
|
49
|
+
"79f30922410344cca284b80be225cbfe",
|
|
50
|
+
"6bb2662482fe42fb90129f32cdd645bb",
|
|
51
|
+
],
|
|
52
|
+
propertyIds: [
|
|
53
|
+
"88592e7788484990b5a7389751eafebe",
|
|
54
|
+
"dbc078734b5b49a9a05a07646ccb8cdc",
|
|
55
|
+
],
|
|
56
|
+
optionIds: null,
|
|
57
|
+
options: [],
|
|
58
|
+
streamIds: [
|
|
59
|
+
"1318833f46df457981763b94179d9ef0",
|
|
60
|
+
"5675448d6b3a4dd2a659d31a3dde74da",
|
|
61
|
+
"e8a363db4d1542dca933ffde1ebeace4",
|
|
62
|
+
],
|
|
63
|
+
parentId: null,
|
|
64
|
+
stock: 49485,
|
|
65
|
+
features: [],
|
|
66
|
+
},
|
|
67
|
+
label: "Smoking Board Cedar Wood ",
|
|
68
|
+
quantity: 1,
|
|
69
|
+
priceDefinition: {
|
|
70
|
+
price: 17.9,
|
|
71
|
+
taxRules: [
|
|
72
|
+
{
|
|
73
|
+
taxRate: 7,
|
|
74
|
+
percentage: 100,
|
|
75
|
+
apiAlias: "cart_tax_rule",
|
|
76
|
+
},
|
|
77
|
+
],
|
|
78
|
+
quantity: 1,
|
|
79
|
+
isCalculated: true,
|
|
80
|
+
referencePriceDefinition: null,
|
|
81
|
+
listPrice: null,
|
|
82
|
+
regulationPrice: null,
|
|
83
|
+
type: "quantity",
|
|
84
|
+
apiAlias: "cart_price_quantity",
|
|
85
|
+
},
|
|
86
|
+
price: {
|
|
87
|
+
unitPrice: 17.9,
|
|
88
|
+
quantity: 1,
|
|
89
|
+
totalPrice: 17.9,
|
|
90
|
+
calculatedTaxes: [
|
|
91
|
+
{
|
|
92
|
+
tax: 1.17,
|
|
93
|
+
taxRate: 7,
|
|
94
|
+
price: 17.9,
|
|
95
|
+
apiAlias: "cart_tax_calculated",
|
|
96
|
+
},
|
|
97
|
+
],
|
|
98
|
+
taxRules: [
|
|
99
|
+
{
|
|
100
|
+
taxRate: 7,
|
|
101
|
+
percentage: 100,
|
|
102
|
+
apiAlias: "cart_tax_rule",
|
|
103
|
+
},
|
|
104
|
+
],
|
|
105
|
+
referencePrice: null,
|
|
106
|
+
listPrice: null,
|
|
107
|
+
regulationPrice: null,
|
|
108
|
+
apiAlias: "calculated_price",
|
|
109
|
+
},
|
|
110
|
+
good: true,
|
|
111
|
+
description: null,
|
|
112
|
+
cover: {
|
|
113
|
+
translated: {
|
|
114
|
+
alt: null,
|
|
115
|
+
title: null,
|
|
116
|
+
customFields: {},
|
|
117
|
+
},
|
|
118
|
+
createdAt: "2020-08-06T06:25:50.000+00:00",
|
|
119
|
+
updatedAt: "2020-08-06T06:26:45.419+00:00",
|
|
120
|
+
mimeType: "image/jpeg",
|
|
121
|
+
fileExtension: "jpg",
|
|
122
|
+
fileSize: 369797,
|
|
123
|
+
title: null,
|
|
124
|
+
metaData: {
|
|
125
|
+
type: 2,
|
|
126
|
+
width: 1248,
|
|
127
|
+
height: 848,
|
|
128
|
+
},
|
|
129
|
+
uploadedAt: null,
|
|
130
|
+
alt: null,
|
|
131
|
+
url: "https://cdn.shopware.store/a/B/m/pPkDE/media/7e/8c/b2/PT_Ra-ucherbretter_Stein.jpg?1596695205",
|
|
132
|
+
fileName: "PT_Ra-ucherbretter_Stein",
|
|
133
|
+
translations: null,
|
|
134
|
+
thumbnails: [
|
|
135
|
+
{
|
|
136
|
+
translated: [],
|
|
137
|
+
createdAt: "2020-08-06T06:25:49.998+00:00",
|
|
138
|
+
updatedAt: "2020-08-06T06:26:45.417+00:00",
|
|
139
|
+
width: 400,
|
|
140
|
+
path: "thumbnail/7e/8c/b2/PT_Ra-ucherbretter_Stein_400x400.jpg",
|
|
141
|
+
height: 400,
|
|
142
|
+
url: "https://cdn.shopware.store/a/B/m/pPkDE/thumbnail/7e/8c/b2/PT_Ra-ucherbretter_Stein_400x400.jpg?1596695205",
|
|
143
|
+
mediaId: "0c25b06daa244618b342284498dc35ea",
|
|
144
|
+
customFields: null,
|
|
145
|
+
id: "6385b30ea2df41359c43393cbd1c4e7a",
|
|
146
|
+
apiAlias: "media_thumbnail",
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
translated: [],
|
|
150
|
+
createdAt: "2020-08-06T06:25:49.998+00:00",
|
|
151
|
+
updatedAt: "2020-08-06T06:26:45.418+00:00",
|
|
152
|
+
width: 800,
|
|
153
|
+
path: "thumbnail/7e/8c/b2/PT_Ra-ucherbretter_Stein_800x800.jpg",
|
|
154
|
+
height: 800,
|
|
155
|
+
url: "https://cdn.shopware.store/a/B/m/pPkDE/thumbnail/7e/8c/b2/PT_Ra-ucherbretter_Stein_800x800.jpg?1596695205",
|
|
156
|
+
mediaId: "0c25b06daa244618b342284498dc35ea",
|
|
157
|
+
customFields: null,
|
|
158
|
+
id: "678bf56ab659463881007faff7271744",
|
|
159
|
+
apiAlias: "media_thumbnail",
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
translated: [],
|
|
163
|
+
createdAt: "2020-08-06T06:25:49.999+00:00",
|
|
164
|
+
updatedAt: "2020-08-06T06:26:45.419+00:00",
|
|
165
|
+
width: 1920,
|
|
166
|
+
path: "thumbnail/7e/8c/b2/PT_Ra-ucherbretter_Stein_1920x1920.jpg",
|
|
167
|
+
height: 1920,
|
|
168
|
+
url: "https://cdn.shopware.store/a/B/m/pPkDE/thumbnail/7e/8c/b2/PT_Ra-ucherbretter_Stein_1920x1920.jpg?1596695205",
|
|
169
|
+
mediaId: "0c25b06daa244618b342284498dc35ea",
|
|
170
|
+
customFields: null,
|
|
171
|
+
id: "a980475a6bf14f4086b50ac4ebe6e39e",
|
|
172
|
+
apiAlias: "media_thumbnail",
|
|
173
|
+
},
|
|
174
|
+
],
|
|
175
|
+
hasFile: true,
|
|
176
|
+
private: false,
|
|
177
|
+
path: "media/7e/8c/b2/PT_Ra-ucherbretter_Stein.jpg",
|
|
178
|
+
config: null,
|
|
179
|
+
customFields: null,
|
|
180
|
+
id: "0c25b06daa244618b342284498dc35ea",
|
|
181
|
+
apiAlias: "media",
|
|
182
|
+
},
|
|
183
|
+
deliveryInformation: {
|
|
184
|
+
stock: 49485,
|
|
185
|
+
weight: null,
|
|
186
|
+
freeDelivery: false,
|
|
187
|
+
restockTime: 1,
|
|
188
|
+
deliveryTime: {
|
|
189
|
+
name: "1-3 days",
|
|
190
|
+
min: 1,
|
|
191
|
+
max: 3,
|
|
192
|
+
unit: "day",
|
|
193
|
+
apiAlias: "cart_delivery_time",
|
|
194
|
+
},
|
|
195
|
+
height: 140,
|
|
196
|
+
width: 300,
|
|
197
|
+
length: 8,
|
|
198
|
+
apiAlias: "cart_delivery_information",
|
|
199
|
+
},
|
|
200
|
+
children: [],
|
|
201
|
+
requirement: null,
|
|
202
|
+
removable: true,
|
|
203
|
+
stackable: true,
|
|
204
|
+
quantityInformation: {
|
|
205
|
+
minPurchase: 1,
|
|
206
|
+
maxPurchase: 5,
|
|
207
|
+
purchaseSteps: 1,
|
|
208
|
+
apiAlias: "cart_quantity_information",
|
|
209
|
+
},
|
|
210
|
+
modified: false,
|
|
211
|
+
dataTimestamp: "2024-06-07T11:20:57.749+00:00",
|
|
212
|
+
dataContextHash: "2f271a8e884e48d3a80a6cd2371fe573",
|
|
213
|
+
uniqueIdentifier: "018ff26e2c6970c2b690d6b041233454",
|
|
214
|
+
states: ["is-physical"],
|
|
215
|
+
modifiedByApp: false,
|
|
216
|
+
id: "65666d2629744f65b981cc6263d3ef0a",
|
|
217
|
+
type: "product",
|
|
218
|
+
referencedId: "65666d2629744f65b981cc6263d3ef0a",
|
|
219
|
+
apiAlias: "cart_line_item",
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
payload: {
|
|
223
|
+
promotionId: "b2a7e27856ea4f93977e3ba58b8c32bd",
|
|
224
|
+
priority: 1,
|
|
225
|
+
discountId: "1326f60448d84aed964d77ca1c2dde90",
|
|
226
|
+
discountType: "percentage",
|
|
227
|
+
code: "",
|
|
228
|
+
value: "10",
|
|
229
|
+
promotionCodeType: "global",
|
|
230
|
+
maxValue: "",
|
|
231
|
+
discountScope: "cart",
|
|
232
|
+
preventCombination: false,
|
|
233
|
+
exclusions: [],
|
|
234
|
+
groupId: "",
|
|
235
|
+
setGroups: [],
|
|
236
|
+
filter: {
|
|
237
|
+
sorterKey: null,
|
|
238
|
+
applierKey: null,
|
|
239
|
+
usageKey: null,
|
|
240
|
+
pickerKey: null,
|
|
241
|
+
},
|
|
242
|
+
composition: [
|
|
243
|
+
{
|
|
244
|
+
id: "65666d2629744f65b981cc6263d3ef0a",
|
|
245
|
+
quantity: 1,
|
|
246
|
+
discount: 1.79,
|
|
247
|
+
},
|
|
248
|
+
],
|
|
249
|
+
},
|
|
250
|
+
label: "Your lucky day!",
|
|
251
|
+
quantity: 1,
|
|
252
|
+
priceDefinition: {
|
|
253
|
+
percentage: -10,
|
|
254
|
+
filter: null,
|
|
255
|
+
type: "percentage",
|
|
256
|
+
apiAlias: "cart_price_percentage",
|
|
257
|
+
},
|
|
258
|
+
price: {
|
|
259
|
+
unitPrice: -1.79,
|
|
260
|
+
quantity: 1,
|
|
261
|
+
totalPrice: -1.79,
|
|
262
|
+
calculatedTaxes: [
|
|
263
|
+
{
|
|
264
|
+
tax: -0.12,
|
|
265
|
+
taxRate: 7,
|
|
266
|
+
price: -1.79,
|
|
267
|
+
apiAlias: "cart_tax_calculated",
|
|
268
|
+
},
|
|
269
|
+
],
|
|
270
|
+
taxRules: [
|
|
271
|
+
{
|
|
272
|
+
taxRate: 7,
|
|
273
|
+
percentage: 100,
|
|
274
|
+
apiAlias: "cart_tax_rule",
|
|
275
|
+
},
|
|
276
|
+
],
|
|
277
|
+
referencePrice: null,
|
|
278
|
+
listPrice: null,
|
|
279
|
+
regulationPrice: null,
|
|
280
|
+
apiAlias: "calculated_price",
|
|
281
|
+
},
|
|
282
|
+
good: false,
|
|
283
|
+
description: "Your lucky day!",
|
|
284
|
+
cover: null,
|
|
285
|
+
deliveryInformation: null,
|
|
286
|
+
children: [],
|
|
287
|
+
requirement: {
|
|
288
|
+
_name: "andContainer",
|
|
289
|
+
rules: [],
|
|
290
|
+
apiAlias: "rule_andContainer",
|
|
291
|
+
},
|
|
292
|
+
removable: true,
|
|
293
|
+
stackable: false,
|
|
294
|
+
quantityInformation: null,
|
|
295
|
+
modified: false,
|
|
296
|
+
dataTimestamp: null,
|
|
297
|
+
dataContextHash: null,
|
|
298
|
+
uniqueIdentifier: "018ff26e2cb47374ae97ab8c671bf525",
|
|
299
|
+
states: [],
|
|
300
|
+
modifiedByApp: false,
|
|
301
|
+
id: "1326f60448d84aed964d77ca1c2dde90",
|
|
302
|
+
type: "promotion",
|
|
303
|
+
referencedId: "",
|
|
304
|
+
apiAlias: "cart_line_item",
|
|
305
|
+
},
|
|
306
|
+
],
|
|
307
|
+
errors: {
|
|
308
|
+
"promotion-discount-added-1326f60448d84aed964d77ca1c2dde90": {
|
|
309
|
+
message: "Discount Your lucky day! has been added",
|
|
310
|
+
code: 0,
|
|
311
|
+
key: "promotion-discount-added-1326f60448d84aed964d77ca1c2dde90",
|
|
312
|
+
level: 0,
|
|
313
|
+
messageKey: "promotion-discount-added",
|
|
314
|
+
},
|
|
315
|
+
},
|
|
316
|
+
deliveries: [
|
|
317
|
+
{
|
|
318
|
+
positions: [
|
|
319
|
+
{
|
|
320
|
+
lineItem: {
|
|
321
|
+
payload: {
|
|
322
|
+
isCloseout: false,
|
|
323
|
+
customFields: [],
|
|
324
|
+
createdAt: "2020-08-06 06:26:45.454",
|
|
325
|
+
releaseDate: null,
|
|
326
|
+
isNew: false,
|
|
327
|
+
markAsTopseller: null,
|
|
328
|
+
productNumber: "943280",
|
|
329
|
+
manufacturerId: "05cd4e976df14c4d90e351f345ff5aa3",
|
|
330
|
+
taxId: "94f1e03140d24698a894320e258e6d83",
|
|
331
|
+
tagIds: null,
|
|
332
|
+
categoryIds: [
|
|
333
|
+
"525abe8981214bd2ba94fd33942333ec",
|
|
334
|
+
"bda4b60e845240b2b9d6b60e71196e14",
|
|
335
|
+
"79f30922410344cca284b80be225cbfe",
|
|
336
|
+
"6bb2662482fe42fb90129f32cdd645bb",
|
|
337
|
+
],
|
|
338
|
+
propertyIds: [
|
|
339
|
+
"88592e7788484990b5a7389751eafebe",
|
|
340
|
+
"dbc078734b5b49a9a05a07646ccb8cdc",
|
|
341
|
+
],
|
|
342
|
+
optionIds: null,
|
|
343
|
+
options: [],
|
|
344
|
+
streamIds: [
|
|
345
|
+
"1318833f46df457981763b94179d9ef0",
|
|
346
|
+
"5675448d6b3a4dd2a659d31a3dde74da",
|
|
347
|
+
"e8a363db4d1542dca933ffde1ebeace4",
|
|
348
|
+
],
|
|
349
|
+
parentId: null,
|
|
350
|
+
stock: 49485,
|
|
351
|
+
features: [],
|
|
352
|
+
},
|
|
353
|
+
label: "Smoking Board Cedar Wood ",
|
|
354
|
+
quantity: 1,
|
|
355
|
+
priceDefinition: {
|
|
356
|
+
price: 17.9,
|
|
357
|
+
taxRules: [
|
|
358
|
+
{
|
|
359
|
+
taxRate: 7,
|
|
360
|
+
percentage: 100,
|
|
361
|
+
apiAlias: "cart_tax_rule",
|
|
362
|
+
},
|
|
363
|
+
],
|
|
364
|
+
quantity: 1,
|
|
365
|
+
isCalculated: true,
|
|
366
|
+
referencePriceDefinition: null,
|
|
367
|
+
listPrice: null,
|
|
368
|
+
regulationPrice: null,
|
|
369
|
+
type: "quantity",
|
|
370
|
+
apiAlias: "cart_price_quantity",
|
|
371
|
+
},
|
|
372
|
+
price: {
|
|
373
|
+
unitPrice: 17.9,
|
|
374
|
+
quantity: 1,
|
|
375
|
+
totalPrice: 17.9,
|
|
376
|
+
calculatedTaxes: [
|
|
377
|
+
{
|
|
378
|
+
tax: 1.17,
|
|
379
|
+
taxRate: 7,
|
|
380
|
+
price: 17.9,
|
|
381
|
+
apiAlias: "cart_tax_calculated",
|
|
382
|
+
},
|
|
383
|
+
],
|
|
384
|
+
taxRules: [
|
|
385
|
+
{
|
|
386
|
+
taxRate: 7,
|
|
387
|
+
percentage: 100,
|
|
388
|
+
apiAlias: "cart_tax_rule",
|
|
389
|
+
},
|
|
390
|
+
],
|
|
391
|
+
referencePrice: null,
|
|
392
|
+
listPrice: null,
|
|
393
|
+
regulationPrice: null,
|
|
394
|
+
apiAlias: "calculated_price",
|
|
395
|
+
},
|
|
396
|
+
good: true,
|
|
397
|
+
description: null,
|
|
398
|
+
cover: {
|
|
399
|
+
translated: {
|
|
400
|
+
alt: null,
|
|
401
|
+
title: null,
|
|
402
|
+
customFields: {},
|
|
403
|
+
},
|
|
404
|
+
createdAt: "2020-08-06T06:25:50.000+00:00",
|
|
405
|
+
updatedAt: "2020-08-06T06:26:45.419+00:00",
|
|
406
|
+
mimeType: "image/jpeg",
|
|
407
|
+
fileExtension: "jpg",
|
|
408
|
+
fileSize: 369797,
|
|
409
|
+
title: null,
|
|
410
|
+
metaData: {
|
|
411
|
+
type: 2,
|
|
412
|
+
width: 1248,
|
|
413
|
+
height: 848,
|
|
414
|
+
},
|
|
415
|
+
uploadedAt: null,
|
|
416
|
+
alt: null,
|
|
417
|
+
url: "https://cdn.shopware.store/a/B/m/pPkDE/media/7e/8c/b2/PT_Ra-ucherbretter_Stein.jpg?1596695205",
|
|
418
|
+
fileName: "PT_Ra-ucherbretter_Stein",
|
|
419
|
+
translations: null,
|
|
420
|
+
thumbnails: [
|
|
421
|
+
{
|
|
422
|
+
translated: [],
|
|
423
|
+
createdAt: "2020-08-06T06:25:49.998+00:00",
|
|
424
|
+
updatedAt: "2020-08-06T06:26:45.417+00:00",
|
|
425
|
+
width: 400,
|
|
426
|
+
path: "thumbnail/7e/8c/b2/PT_Ra-ucherbretter_Stein_400x400.jpg",
|
|
427
|
+
height: 400,
|
|
428
|
+
url: "https://cdn.shopware.store/a/B/m/pPkDE/thumbnail/7e/8c/b2/PT_Ra-ucherbretter_Stein_400x400.jpg?1596695205",
|
|
429
|
+
mediaId: "0c25b06daa244618b342284498dc35ea",
|
|
430
|
+
customFields: null,
|
|
431
|
+
id: "6385b30ea2df41359c43393cbd1c4e7a",
|
|
432
|
+
apiAlias: "media_thumbnail",
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
translated: [],
|
|
436
|
+
createdAt: "2020-08-06T06:25:49.998+00:00",
|
|
437
|
+
updatedAt: "2020-08-06T06:26:45.418+00:00",
|
|
438
|
+
width: 800,
|
|
439
|
+
path: "thumbnail/7e/8c/b2/PT_Ra-ucherbretter_Stein_800x800.jpg",
|
|
440
|
+
height: 800,
|
|
441
|
+
url: "https://cdn.shopware.store/a/B/m/pPkDE/thumbnail/7e/8c/b2/PT_Ra-ucherbretter_Stein_800x800.jpg?1596695205",
|
|
442
|
+
mediaId: "0c25b06daa244618b342284498dc35ea",
|
|
443
|
+
customFields: null,
|
|
444
|
+
id: "678bf56ab659463881007faff7271744",
|
|
445
|
+
apiAlias: "media_thumbnail",
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
translated: [],
|
|
449
|
+
createdAt: "2020-08-06T06:25:49.999+00:00",
|
|
450
|
+
updatedAt: "2020-08-06T06:26:45.419+00:00",
|
|
451
|
+
width: 1920,
|
|
452
|
+
path: "thumbnail/7e/8c/b2/PT_Ra-ucherbretter_Stein_1920x1920.jpg",
|
|
453
|
+
height: 1920,
|
|
454
|
+
url: "https://cdn.shopware.store/a/B/m/pPkDE/thumbnail/7e/8c/b2/PT_Ra-ucherbretter_Stein_1920x1920.jpg?1596695205",
|
|
455
|
+
mediaId: "0c25b06daa244618b342284498dc35ea",
|
|
456
|
+
customFields: null,
|
|
457
|
+
id: "a980475a6bf14f4086b50ac4ebe6e39e",
|
|
458
|
+
apiAlias: "media_thumbnail",
|
|
459
|
+
},
|
|
460
|
+
],
|
|
461
|
+
hasFile: true,
|
|
462
|
+
private: false,
|
|
463
|
+
path: "media/7e/8c/b2/PT_Ra-ucherbretter_Stein.jpg",
|
|
464
|
+
config: null,
|
|
465
|
+
customFields: null,
|
|
466
|
+
id: "0c25b06daa244618b342284498dc35ea",
|
|
467
|
+
apiAlias: "media",
|
|
468
|
+
},
|
|
469
|
+
deliveryInformation: {
|
|
470
|
+
stock: 49485,
|
|
471
|
+
weight: null,
|
|
472
|
+
freeDelivery: false,
|
|
473
|
+
restockTime: 1,
|
|
474
|
+
deliveryTime: {
|
|
475
|
+
name: "1-3 days",
|
|
476
|
+
min: 1,
|
|
477
|
+
max: 3,
|
|
478
|
+
unit: "day",
|
|
479
|
+
apiAlias: "cart_delivery_time",
|
|
480
|
+
},
|
|
481
|
+
height: 140,
|
|
482
|
+
width: 300,
|
|
483
|
+
length: 8,
|
|
484
|
+
apiAlias: "cart_delivery_information",
|
|
485
|
+
},
|
|
486
|
+
children: [],
|
|
487
|
+
requirement: null,
|
|
488
|
+
removable: true,
|
|
489
|
+
stackable: true,
|
|
490
|
+
quantityInformation: {
|
|
491
|
+
minPurchase: 1,
|
|
492
|
+
maxPurchase: 5,
|
|
493
|
+
purchaseSteps: 1,
|
|
494
|
+
apiAlias: "cart_quantity_information",
|
|
495
|
+
},
|
|
496
|
+
modified: true,
|
|
497
|
+
dataTimestamp: "2024-06-07T11:20:57.749+00:00",
|
|
498
|
+
dataContextHash: "2f271a8e884e48d3a80a6cd2371fe573",
|
|
499
|
+
uniqueIdentifier: "018ff26e2c6970c2b690d6b041233454",
|
|
500
|
+
states: ["is-physical"],
|
|
501
|
+
modifiedByApp: false,
|
|
502
|
+
id: "65666d2629744f65b981cc6263d3ef0a",
|
|
503
|
+
type: "product",
|
|
504
|
+
referencedId: "65666d2629744f65b981cc6263d3ef0a",
|
|
505
|
+
apiAlias: "cart_line_item",
|
|
506
|
+
},
|
|
507
|
+
quantity: 1,
|
|
508
|
+
price: {
|
|
509
|
+
unitPrice: 17.9,
|
|
510
|
+
quantity: 1,
|
|
511
|
+
totalPrice: 17.9,
|
|
512
|
+
calculatedTaxes: [
|
|
513
|
+
{
|
|
514
|
+
tax: 1.17,
|
|
515
|
+
taxRate: 7,
|
|
516
|
+
price: 17.9,
|
|
517
|
+
apiAlias: "cart_tax_calculated",
|
|
518
|
+
},
|
|
519
|
+
],
|
|
520
|
+
taxRules: [
|
|
521
|
+
{
|
|
522
|
+
taxRate: 7,
|
|
523
|
+
percentage: 100,
|
|
524
|
+
apiAlias: "cart_tax_rule",
|
|
525
|
+
},
|
|
526
|
+
],
|
|
527
|
+
referencePrice: null,
|
|
528
|
+
listPrice: null,
|
|
529
|
+
regulationPrice: null,
|
|
530
|
+
apiAlias: "calculated_price",
|
|
531
|
+
},
|
|
532
|
+
identifier: "65666d2629744f65b981cc6263d3ef0a",
|
|
533
|
+
deliveryDate: {
|
|
534
|
+
earliest: "2024-06-08T16:00:00.000+00:00",
|
|
535
|
+
latest: "2024-06-10T16:00:00.000+00:00",
|
|
536
|
+
apiAlias: "cart_delivery_date",
|
|
537
|
+
},
|
|
538
|
+
apiAlias: "cart_delivery_position",
|
|
539
|
+
},
|
|
540
|
+
],
|
|
541
|
+
location: {
|
|
542
|
+
country: {
|
|
543
|
+
translated: {
|
|
544
|
+
name: "Germany",
|
|
545
|
+
customFields: {},
|
|
546
|
+
addressFormat: [
|
|
547
|
+
["address/company", "symbol/dash", "address/department"],
|
|
548
|
+
["address/first_name", "address/last_name"],
|
|
549
|
+
["address/street"],
|
|
550
|
+
["address/zipcode", "address/city"],
|
|
551
|
+
["address/country", "address/country_state"],
|
|
552
|
+
],
|
|
553
|
+
},
|
|
554
|
+
createdAt: "2020-08-06T06:23:29.788+00:00",
|
|
555
|
+
updatedAt: "2023-07-18T09:16:36.937+00:00",
|
|
556
|
+
name: "Germany",
|
|
557
|
+
iso: "DE",
|
|
558
|
+
position: 1,
|
|
559
|
+
active: true,
|
|
560
|
+
shippingAvailable: true,
|
|
561
|
+
iso3: "DEU",
|
|
562
|
+
displayStateInRegistration: false,
|
|
563
|
+
forceStateInRegistration: false,
|
|
564
|
+
checkVatIdPattern: false,
|
|
565
|
+
vatIdPattern: "(DE)?[0-9]{9}",
|
|
566
|
+
vatIdRequired: false,
|
|
567
|
+
customerTax: {
|
|
568
|
+
enabled: false,
|
|
569
|
+
currencyId: "b7d2554b0ce847cd82f3ac9bd1c0dfca",
|
|
570
|
+
amount: 0,
|
|
571
|
+
apiAlias:
|
|
572
|
+
"shopware_core_framework_data_abstraction_layer_tax_free_config",
|
|
573
|
+
},
|
|
574
|
+
companyTax: {
|
|
575
|
+
enabled: false,
|
|
576
|
+
currencyId: "b7d2554b0ce847cd82f3ac9bd1c0dfca",
|
|
577
|
+
amount: 0,
|
|
578
|
+
apiAlias:
|
|
579
|
+
"shopware_core_framework_data_abstraction_layer_tax_free_config",
|
|
580
|
+
},
|
|
581
|
+
states: null,
|
|
582
|
+
translations: null,
|
|
583
|
+
postalCodeRequired: false,
|
|
584
|
+
checkPostalCodePattern: false,
|
|
585
|
+
checkAdvancedPostalCodePattern: false,
|
|
586
|
+
advancedPostalCodePattern: null,
|
|
587
|
+
defaultPostalCodePattern: "\\d{5}",
|
|
588
|
+
addressFormat: [
|
|
589
|
+
["address/company", "symbol/dash", "address/department"],
|
|
590
|
+
["address/first_name", "address/last_name"],
|
|
591
|
+
["address/street"],
|
|
592
|
+
["address/zipcode", "address/city"],
|
|
593
|
+
["address/country", "address/country_state"],
|
|
594
|
+
],
|
|
595
|
+
customFields: null,
|
|
596
|
+
id: "a5a0a68c168d4a33894f9ce5d6950045",
|
|
597
|
+
apiAlias: "country",
|
|
598
|
+
},
|
|
599
|
+
state: null,
|
|
600
|
+
address: null,
|
|
601
|
+
apiAlias: "cart_delivery_shipping_location",
|
|
602
|
+
},
|
|
603
|
+
deliveryDate: {
|
|
604
|
+
earliest: "2024-06-08T16:00:00.000+00:00",
|
|
605
|
+
latest: "2024-06-10T16:00:00.000+00:00",
|
|
606
|
+
apiAlias: "cart_delivery_date",
|
|
607
|
+
},
|
|
608
|
+
shippingMethod: {
|
|
609
|
+
translated: {
|
|
610
|
+
name: "Standard",
|
|
611
|
+
customFields: {
|
|
612
|
+
sendcloud_service_point_enabled: "0",
|
|
613
|
+
},
|
|
614
|
+
description: null,
|
|
615
|
+
trackingUrl: null,
|
|
616
|
+
},
|
|
617
|
+
createdAt: "2020-08-06T06:23:32.016+00:00",
|
|
618
|
+
updatedAt: "2023-05-16T15:31:50.158+00:00",
|
|
619
|
+
name: "Standard",
|
|
620
|
+
active: true,
|
|
621
|
+
position: 0,
|
|
622
|
+
description: null,
|
|
623
|
+
trackingUrl: null,
|
|
624
|
+
deliveryTimeId: "aca1d61eafd74b2095035bb4f9a373dc",
|
|
625
|
+
deliveryTime: {
|
|
626
|
+
translated: {
|
|
627
|
+
name: "Instant download",
|
|
628
|
+
customFields: {},
|
|
629
|
+
},
|
|
630
|
+
createdAt: "2023-02-06T14:41:50.564+00:00",
|
|
631
|
+
updatedAt: null,
|
|
632
|
+
name: "Instant download",
|
|
633
|
+
min: 0,
|
|
634
|
+
max: 0,
|
|
635
|
+
unit: "hour",
|
|
636
|
+
customFields: null,
|
|
637
|
+
id: "aca1d61eafd74b2095035bb4f9a373dc",
|
|
638
|
+
apiAlias: "delivery_time",
|
|
639
|
+
},
|
|
640
|
+
translations: null,
|
|
641
|
+
availabilityRule: null,
|
|
642
|
+
prices: [
|
|
643
|
+
{
|
|
644
|
+
translated: [],
|
|
645
|
+
createdAt: "2020-08-06T06:23:32.029+00:00",
|
|
646
|
+
updatedAt: null,
|
|
647
|
+
shippingMethodId: "a9d9cc502b3547f4a89eb2830c032c78",
|
|
648
|
+
ruleId: null,
|
|
649
|
+
calculation: 1,
|
|
650
|
+
quantityStart: 0,
|
|
651
|
+
quantityEnd: null,
|
|
652
|
+
calculationRuleId: null,
|
|
653
|
+
currencyPrice: [
|
|
654
|
+
{
|
|
655
|
+
currencyId: "b7d2554b0ce847cd82f3ac9bd1c0dfca",
|
|
656
|
+
net: 0,
|
|
657
|
+
gross: 0,
|
|
658
|
+
linked: false,
|
|
659
|
+
listPrice: null,
|
|
660
|
+
percentage: null,
|
|
661
|
+
regulationPrice: null,
|
|
662
|
+
apiAlias: "price",
|
|
663
|
+
},
|
|
664
|
+
],
|
|
665
|
+
customFields: null,
|
|
666
|
+
id: "09163f081c0246e2b3348bedce814c75",
|
|
667
|
+
apiAlias: "shipping_method_price",
|
|
668
|
+
},
|
|
669
|
+
{
|
|
670
|
+
translated: [],
|
|
671
|
+
createdAt: "2020-08-06T06:26:54.179+00:00",
|
|
672
|
+
updatedAt: null,
|
|
673
|
+
shippingMethodId: "a9d9cc502b3547f4a89eb2830c032c78",
|
|
674
|
+
ruleId: null,
|
|
675
|
+
calculation: 1,
|
|
676
|
+
quantityStart: 0,
|
|
677
|
+
quantityEnd: null,
|
|
678
|
+
calculationRuleId: null,
|
|
679
|
+
currencyPrice: [
|
|
680
|
+
{
|
|
681
|
+
currencyId: "b7d2554b0ce847cd82f3ac9bd1c0dfca",
|
|
682
|
+
net: 0,
|
|
683
|
+
gross: 0,
|
|
684
|
+
linked: false,
|
|
685
|
+
listPrice: null,
|
|
686
|
+
percentage: null,
|
|
687
|
+
regulationPrice: null,
|
|
688
|
+
apiAlias: "price",
|
|
689
|
+
},
|
|
690
|
+
],
|
|
691
|
+
customFields: null,
|
|
692
|
+
id: "0b4ce04df7f847be809e2835541ea63f",
|
|
693
|
+
apiAlias: "shipping_method_price",
|
|
694
|
+
},
|
|
695
|
+
],
|
|
696
|
+
mediaId: null,
|
|
697
|
+
media: null,
|
|
698
|
+
tags: null,
|
|
699
|
+
taxType: "auto",
|
|
700
|
+
technicalName: "shipping_standard",
|
|
701
|
+
tax: null,
|
|
702
|
+
customFields: {
|
|
703
|
+
sendcloud_service_point_enabled: "0",
|
|
704
|
+
},
|
|
705
|
+
id: "a9d9cc502b3547f4a89eb2830c032c78",
|
|
706
|
+
apiAlias: "shipping_method",
|
|
707
|
+
},
|
|
708
|
+
shippingCosts: {
|
|
709
|
+
unitPrice: 0,
|
|
710
|
+
quantity: 1,
|
|
711
|
+
totalPrice: 0,
|
|
712
|
+
calculatedTaxes: [
|
|
713
|
+
{
|
|
714
|
+
tax: 0,
|
|
715
|
+
taxRate: 7,
|
|
716
|
+
price: 0,
|
|
717
|
+
apiAlias: "cart_tax_calculated",
|
|
718
|
+
},
|
|
719
|
+
],
|
|
720
|
+
taxRules: [
|
|
721
|
+
{
|
|
722
|
+
taxRate: 7,
|
|
723
|
+
percentage: 100,
|
|
724
|
+
apiAlias: "cart_tax_rule",
|
|
725
|
+
},
|
|
726
|
+
],
|
|
727
|
+
referencePrice: null,
|
|
728
|
+
listPrice: null,
|
|
729
|
+
regulationPrice: null,
|
|
730
|
+
apiAlias: "calculated_price",
|
|
731
|
+
},
|
|
732
|
+
apiAlias: "cart_delivery",
|
|
733
|
+
},
|
|
734
|
+
],
|
|
735
|
+
transactions: [
|
|
736
|
+
{
|
|
737
|
+
amount: {
|
|
738
|
+
unitPrice: 16.11,
|
|
739
|
+
quantity: 1,
|
|
740
|
+
totalPrice: 16.11,
|
|
741
|
+
calculatedTaxes: [
|
|
742
|
+
{
|
|
743
|
+
tax: 1.05,
|
|
744
|
+
taxRate: 7,
|
|
745
|
+
price: 16.11,
|
|
746
|
+
apiAlias: "cart_tax_calculated",
|
|
747
|
+
},
|
|
748
|
+
],
|
|
749
|
+
taxRules: [
|
|
750
|
+
{
|
|
751
|
+
taxRate: 7,
|
|
752
|
+
percentage: 100,
|
|
753
|
+
apiAlias: "cart_tax_rule",
|
|
754
|
+
},
|
|
755
|
+
],
|
|
756
|
+
referencePrice: null,
|
|
757
|
+
listPrice: null,
|
|
758
|
+
regulationPrice: null,
|
|
759
|
+
apiAlias: "calculated_price",
|
|
760
|
+
},
|
|
761
|
+
paymentMethodId: "b7f6cd663b774e9485e33ed1a776c8d9",
|
|
762
|
+
apiAlias: "cart_transaction",
|
|
763
|
+
},
|
|
764
|
+
],
|
|
765
|
+
modified: false,
|
|
766
|
+
customerComment: null,
|
|
767
|
+
affiliateCode: null,
|
|
768
|
+
campaignCode: null,
|
|
769
|
+
source: null,
|
|
770
|
+
token: "RgICfwdUJgNxOgjH9t7HVx2Al6kMavaw",
|
|
771
|
+
apiAlias: "cart",
|
|
772
|
+
};
|
|
773
|
+
|
|
774
|
+
export default Cart;
|